]> git.proxmox.com Git - grub2.git/blob - ChangeLog
Mark miscompile error for translation.
[grub2.git] / ChangeLog
1 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
2
3 Mark miscompile error for translation.
4
5 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
6
7 Use %I64 and not %ll when using OS printf if compiling for windows.
8
9 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
10
11 Update Mac code to match new register_efi prototype.
12
13 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
14
15 Implement better integration with Mac firmware.
16
17 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
18
19 * grub-core/loader/multiboot_mbi2.c: Implement special value for
20 load_addr.
21
22 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
23
24 Include serial module in default_payload.elf.
25
26 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
27
28 Add explicit thumb interwork bx in asm files.
29
30 Shouldn't matter for armv >= 5 but let's be safe.
31
32 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
33
34 Implement Truecrypt ISO loader.
35
36 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
37
38 * grub-core/lib/arg.c: Ensure at least a single space between commands.
39
40 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
41
42 Implement grub_file tool and use it to implement generating of config
43 in separate root.
44
45 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
46
47 Change to v1 xen grants.
48
49 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
50
51 * grub-core/lib/i386/xen/relocator.S: Fix hypercall ABI violation.
52
53 GRUB relied on %ebx being preserved across hypercall which isn't true.
54
55 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
56
57 * grub-core/lib/x86_64/xen/relocator.S: Fix hypercall ABI violation.
58
59 GRUB relied on %rdi being preserved across hypercall which isn't true.
60
61 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
62
63 Implement XEN VFB support.
64
65 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
66
67 Remove grub_bios_interrupt on coreboot.
68
69 It's not used currently and cannot be used safely currently.
70
71 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
72
73 Update exclude.pot and mark few strings for translation.
74
75 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
76
77 * util/grub-mkrescue.c: Fix incorrect file usage in fallback code.
78
79 Reported by: Jon McCune
80
81 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
82
83 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
84 Add verbose information which firmware directories were tried.
85
86 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
87
88 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect_all): New
89 function to optionally redirect all three standard descriptors.
90 Redefine grub_util_exec, grub_util_exec_redirect and
91 grub_util_exec_redirect_null to use it.
92 * include/grub/emu/exec.h: Define it.
93 * include/grub/osdep/exec_unix.h: Delete, it is unused.
94 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
95 Use grub_util_exec_redirect_all to redirect error to NULL.
96
97 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
98
99 * grub-core/tests/sleep_test.c: Silence spurious warning.
100
101 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
102
103 Make grub_xen_hypercall on i386 cdecl rather than stdcall to avoid
104 linker trying to "fixup" the code.
105
106 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
107
108 * grub-core/kern/x86_64/xen/startup.S: Align stack.
109
110 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
111
112 Add support for converting PE+ to Elf64.
113
114 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
115
116 * grub-core/commands/minicmd.c (grub_mini_cmd_dump): Handle LLP case.
117
118 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
119
120 Remove practice of assigning random const pointers to device id.
121
122 This is not required as cache code already checks driver id as well.
123
124 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
125
126 * include/grub/x86_64/types.h: Define sizeof (long) as 4 when compiling
127 with mingw.
128
129 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
130
131 * include/grub/efi/api.h: Don't use call wrappers when compiled with
132 mingw or cygwin as API already matches.
133
134 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
135
136 * grub-core/lib/posix_wrap/errno.h: Undefine errno before redefining.
137
138 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
139
140 * include/grub/efi/api.h: Define (u)intn_t based on pointer size and
141 not on long.
142
143 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
144
145 Handle X86_64_PC64 relocation.
146
147 Those are generated by some cygwin compilers.
148
149 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
150
151 Determine the need for mingw-related stubs at compile time rather than
152 using not very significant $target_os.
153
154 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
155
156 * grub-core/genmod.sh.in: Strip before converting to ELF as strip
157 may not work with ELF.
158
159 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
160
161 Use unix functions for temporary files and special files on cygwin.
162
163 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
164
165 Define functions explicitly rather than using --defsym in tests
166 whenever possible. Respect locality in remaining cases.
167
168 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
169
170 * grub-core/genmoddep.awk: Remove explicit getline < /dev/stdin.
171
172 2013-12-15 Andrey Borzenkov <arvidjaar@gmail.com>
173
174 * grub-core/osdep/windows/platform.c (grub_install_register_efi): Handle
175 unlikely errors when getting EFI variables and make exhaustive search
176 for all BootNNNN variables to find matching one.
177
178 2013-12-15 Ian Campbell <ijc@hellion.org.uk>
179
180 * grub-core/kern/uboot/init.c: Fix units of uboot timer.
181
182 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
183
184 New functional test for sleep function.
185
186 This test allows to check sleep without qemu. Keep qemu version as
187 well as functional test won't notice if all clocks are going too fast
188 or too slow.
189
190 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
191
192 Add explicit sysv_abi on amd64 asm routines.
193
194 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
195
196 * grub-core/commands/efi/lsefisystab.c: Use %lld to show
197 num_table_entries.
198
199 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
200
201 * include/grub/test.h: Use gnu_printf rather than printf on GRUB
202 functions.
203
204 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
205
206 * grub-core/loader/i386/linux.c: Use grub_addr_t rather than long when
207 appropriate.
208
209 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
210
211 * grub-core/loader/i386/linux.c: Use %p rather than %lx for pointers.
212
213 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
214
215 * grub-core/kern/elfXX.c: Use grub_addr_t rather than long when
216 appropriate.
217
218 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
219
220 * grub-core/disk/loopback.c: Use sequential IDs rather than pointer.
221
222 In case of quick removal of loopback and adding another one it may
223 get same ID, confusing the cache system.
224
225 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
226
227 * grub-core/commands/acpi.c: Use grub_addr_t rather than long when
228 appropriate.
229
230 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
231
232 * grub-core/kern/i386/coreboot/cbtable.c: Use char * arithmetic rather
233 than converting to long.
234
235 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
236
237 * grub-core/disk/cryptodisk.c: Rename "n" to "last_cryptodisk_id".
238
239 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
240
241 * util/grub-mkimagexx.c (relocate_addresses): Display offset rather
242 than almost useless pointer.
243
244 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
245
246 Add gcc_struct to all packed structures when compiling with mingw.
247
248 Just "packed" doesn't always pack the way we expect.
249
250 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
251
252 * include/grub/i386/coreboot/lbio.h: Add missing attribute (packed).
253
254 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
255
256 * util/grub-pe2elf.c: Fix handling of .bss.
257
258 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
259
260 Implement windows flavour of EFI install routines.
261
262 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
263
264 * conf/Makefile.extra-dist: Adjust path to conf/i386-cygwin-img-ld.sc.
265
266 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
267
268 Change grub_install_register_efi interface to pass GRUB device.
269
270 This allows grub_install_register_efi to request partition info
271 directly.
272
273 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
274
275 Workaround cygwin bug when using \\?\Volume{GUID} syntax.
276
277 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
278
279 Do not use TCHAR string functions as they are not available on cygwin.
280
281 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
282
283 Workaround windows bug when querying EFI system partition parameters.
284
285 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
286
287 * grub-core/kern/i386/qemu/init.c (resource): Decrease struct size
288 by using bitfields.
289
290 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
291
292 * grub-core/boot/i386/qemu/boot.S: Add missing EXT_C.
293
294 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
295
296 Make i386-* other than i386-pc compileable under cygwin.
297
298 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
299
300 Fix definition of grub_efi_hard_drive_device_path. Take care that
301 existing code would work even if by some reason bogus definition is
302 used by EFI implementations.
303
304 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
305
306 * grub-core/osdep/windows/hostdisk.c: Fix cygwin compilation.
307
308 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
309
310 * grub-core/osdep/windows/blocklist.c: Add missing cast in printf
311 invocation.
312
313 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
314
315 * util/config.c: Remove trailing newline from distributor in simple
316 parsing.
317
318 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
319
320 * include/grub/efi/api.h: Rename protocol and interface to avoid
321 conflict.
322
323 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
324
325 * .gitignore: Add .exe variants. Add missing files. Remove few outdated
326 entries.
327
328 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
329
330 * grub-core/osdep/exec.c: Use unix version on cygwin.
331
332 2013-12-13 Vladimir Serbinenko <phcoder@gmail.com>
333
334 Implement multiboot2 EFI BS specification.
335
336 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
337
338 * grub-core/normal/charset.c: Fix premature line wrap and crash.
339 Crash happened only in some cases like a string starting at the
340 half of the screen of same length.
341
342 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
343
344 * include/grub/efiemu/efiemu.h: Sync configuration table declaration
345 with EFI counterpart.
346
347 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
348
349 Propagate the EFI commits to x86-efi specific parts.
350
351 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
352
353 * grub-core/commands/efi/lssal.c: Fix terminating condition.
354
355 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
356
357 Introduce grub_efi_packed_guid and use it where alignment is not
358 guaranteed.
359
360 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
361
362 * include/grub/efi/api.h (grub_efi_device_path): Define length as
363 unaligned u16 rather than u8[2].
364
365 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
366
367 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Add checks
368 for relocation range.
369
370 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
371
372 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Handle
373 non-function pcrel21b relocation. It happens with .text.unlikely
374 section.
375
376 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
377
378 * make MAX_USABLE_ADDRESS platform-specific
379 * grub-core/kern/efi/mm.c: add Vladimir's new BYTES_TO_PAGES_DOWN macro.
380
381 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
382
383 * grub-core/lib/fdt.c: change memcpy => grub_memcpy
384
385 2013-12-09 Jon McCune <jonmccune@google.com>
386
387 * Add --no-rs-codes flag to optionally disable reed-solomon codes
388 in grub-install and grub-bios-setup for x86 BIOS targets.
389
390 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
391
392 Add missing compile and link options for sparc64-emu.
393
394 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
395
396 Implement sparc64 trampolines (needed for sparc64-emu).
397
398 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
399
400 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Check
401 range of R_SPARC_HI22.
402 Implement R_SPARC_LM22.
403
404 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
405
406 * grub-core/kern/powerpc/dl_helper.c (grub_arch_dl_get_tramp_got_size):
407 Do not explicitly check for symbol table as it's already checked in
408 platform-independent layer.
409
410 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
411
412 * grub-core/kern/emu/cache.c [__ia64__]: Use our cache cleaning routine
413 on ia64 as __clear_cache is a dummy on ia64.
414
415 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
416
417 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
418 Do not explicitly check for symbol table as it's already checked in
419 platform-independent layer.
420
421 2013-12-09 Colin Watson <cjwatson@ubuntu.com>
422
423 * util/grub-mkconfig.in: Add missing newline to output.
424
425 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
426
427 * grub-core/kern/ia64/efi/init.c (grub_arch_sync_caches): Move to ...
428 * grub-core/kern/ia64/cache.c (grub_arch_sync_caches): ... here.
429
430 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
431
432 * grub-core/kern/emu/main.c: Silence missing prototypes to allow emu
433 compilation with GCC <= 4.2.
434 * grub-core/kern/emu/argp_common.c: Likewise.
435
436 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
437
438 * include/grub/kernel.h [__sparc__]: Restrict sparc64-ieee1275 to
439 right platform rather than leaking to sparc64-emu.
440
441 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
442
443 * grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
444 But ensure that the variables in question are indeed unsigned.
445
446 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
447
448 * grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
449
450 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
451
452 Remove grub_memalign on emu.
453
454 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
455
456 * grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
457 truncate incomplete lines but instead flushes them.
458
459 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
460
461 Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
462 and implement windows variant.
463
464 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
465
466 Fix mips-emu compilation.
467
468 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
469
470 * configure.ac: Check for freetype library usability.
471
472 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
473
474 Make arm-emu work.
475
476 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
477
478 * util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.
479
480 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
481
482 * docs/grub.texi (Environment): Update color_normal and color_highlight
483 defaults (light-gray instead of white).
484
485 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
486
487 * grub-core/normal/main.c (INIT): Set default color to light-gray
488 to match GRUB_TERM_DEFAULT_NORMAL_COLOR (i.e. rescue mode), Linux
489 and apparently BIOS defaults.
490
491 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
492
493 Transform -C option to grub-mkstandalone to --core-compress available
494 in all grub-install flavours.
495
496 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
497
498 Merge GRUBFS and GRUB_FS variables.
499
500 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
501
502 Revert commit 69ca97c820, it caused failures when using OS device name
503 in grub-install. Instead just strip off parenthesis in grub-install
504 if (hdX) was passed.
505
506 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
507
508 * util/grub-install.c (push_partmap_module): Add helper to convert
509 partmap names to module names and use it in probe_mods(). Fixes
510 failure to find partmap modules in diskfilter case.
511
512 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
513
514 * configure.ac: Make unifont mandatory on coreboot.
515
516 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
517
518 * configure.ac: Skip unifont 6.3 pcf and bdf.
519
520 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
521
522 * Makefile.am: Remove partial font files if generation failed.
523
524 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
525
526 * util/misc.c (grub_qsort_strcmp): Add qsort helper function to sort
527 strings.
528 * include/grub/util/misc.h: Define it ...
529 * util/grub-install.c (device_map_check_duplicates): ... and use it.
530
531 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
532
533 * util/grub.d/30_os-prober.in: Fix use of grub-probe instead of
534 ${grub_probe}.
535
536 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
537
538 Don't add -mlong-calls when compiling with clang.
539
540 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
541
542 * configure.ac: Fix a typo.
543
544 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
545
546 Revamp relocation handling.
547
548 Move more code to common dl.c. Add missing veneers for arm and arm64.
549 Decreases kernel size by 70 bytes on i386-pc (40-50 compressed)
550
551 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
552
553 * util/grub-mkimagexx.c: Fix reloc section generation for ia64.
554
555 2013-12-05 Mike Gilbert <floppym@gentoo.org>
556
557 * INSTALL: Raise minimum python version to 2.6.
558 * gentpl.py: Use python3-style print function.
559
560 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
561
562 * util/grub-install.c: Mention Boot* variable.
563
564 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
565
566 * grub-core/osdep/linux/hostdisk.c
567 (grub_util_find_partition_start_os): Initialise start to avoid
568 spurious compiler warning.
569
570 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
571
572 On Linux, read partition start offsets from sysfs if possible, to
573 cope with block device drivers that don't implement HDIO_GETGEO.
574 Fixes Ubuntu bug #1237519.
575
576 * grub-core/osdep/linux/hostdisk.c (sysfs_partition_path): New
577 function.
578 (sysfs_partition_start): Likewise.
579 (grub_util_find_partition_start_os): Try sysfs_partition_start
580 before HDIO_GETGEO.
581
582 2013-12-05 Leif Lindholm <leif.lindholm@linaro.org>
583
584 * grub-core/kern/fdt.c: Update struct size when adding node.
585
586 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
587
588 Handle unaligned .bss on sparc64.
589
590 Current code improperly assumes that both __bss_start and _end are
591 aligned to 8-bytes. Eliminating this assumption and explicitly align
592 modules.
593
594 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
595
596 * grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
597 so it doesn't land in the middle of loaded image.
598
599 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
600
601 * configure.ac: Move all warning options that may be absent in
602 gcc >= 3.1 to optional.
603
604 Note: while this allows to compile with older GCC, official requirements
605 remain the same and no support for older GCC.
606
607 2013-12-04 Colin Watson <cjwatson@ubuntu.com>
608
609 Copying the themes directory in grub-shell isn't
610 parallel-test-friendly and breaks on the second test when the source
611 directory is read-only (as in "make distcheck"). Instead, add a
612 hidden --themes-directory option to grub-mkrescue et al, and use it
613 in grub-shell.
614
615 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
616
617 * conf/Makefile.common (CFLAGS_GNULIB): Remove -Wno-old-style-definition
618 as it's no longer necessarry.
619
620 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
621
622 * configure.ac: Allow compilation with older GCC for ARM.
623
624 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
625
626 * configure.ac: Add -no-integrated-as if {addme|ame} isn't supported.
627 * INSTALL: Note that GRUBwas successfully compiled with clang 3.2 for
628 ppc.
629
630 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
631
632 * grub-core/kern/emu/main.c: Ignore missing prototype for main.
633
634 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
635
636 Pass font config to config.h and not by TARGET_CFLAGS as adding
637 arguments doesn't work if TARGET_CFLAGS is specified on command
638 line.
639
640 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
641
642 * configure.ac: Add -Wvla if compiler supports it.
643
644 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
645
646 * grub-core/osdep/windows/emuconsole.c (grub_console_putchar):
647 Remove variable length arrays.
648 * grub-core/term/efi/console.c (grub_console_putchar): Likewise.
649
650 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
651
652 * grub-core/kern/i386/qemu/init.c: Remove variable length arrays.
653
654 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
655
656 * include/grub/types.h: Declare all byteswaps as inline functions
657 except compile-time ones.
658
659 Solves variable shadowing in constructions like
660 cpu_to_le (le_to_cpu(x) + 1).
661
662 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
663
664 * grub-core/kern/efi/efi.c: Remove variable length arrays.
665
666 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
667
668 * grub-core/kern/uboot/init.c (uboot_timer_ms): Fix overflow after 71
669 minutes.
670
671 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
672
673 * grub-core/disk/ieee1275/ofdisk.c: Remove variable length arrays.
674 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
675
676 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
677
678 * grub-core/Makefile.core.def (setjmp): Distribute
679 lib/arm64/setjmp.S.
680
681 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
682
683 Add a new timeout_style environment variable and a corresponding
684 GRUB_TIMEOUT_STYLE configuration key for grub-mkconfig. This
685 controls hidden-timeout handling more simply than the previous
686 arrangements, and pressing any hotkeys associated with menu entries
687 during the hidden timeout will now boot the corresponding menu entry
688 immediately.
689
690 GRUB_HIDDEN_TIMEOUT=<non-empty> + GRUB_TIMEOUT=<non-zero> now
691 generates a warning, and if it shows the menu it will do so as if
692 the second timeout were not present. Other combinations are
693 translated into reasonable equivalents.
694
695 Based loosely on work by Franz Hsieh. Fixes Ubuntu bug #1178618.
696
697 2013-12-02 Vladimir Serbinenko <phcoder@gmail.com>
698
699 * util/config.c: Add missing pointer adjustment.
700 Reported by: qwertial
701
702 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
703
704 * grub-core/kern/arm64/dl_helper.c: Include grub/arm64/reloc.h
705 directly, not via `cpu' link, to fix libgrub.pp generation.
706
707 2013-11-30 Leif Lindholm <leif.lindholm@linaro.org>
708
709 New port arm64-efi.
710
711 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
712
713 * docs/grub.texi (sleep): Document exit codes.
714
715 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
716
717 Ensure that -mno-unaligned-access or some equivalent option is used.
718
719 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
720
721 * grub-core/lib/libgcrypt/mpi/longlong.h: Fix compilation error with
722 -march=armv3.
723
724 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
725
726 Remove leftover GRUB_IA64_DL_TRAMP_SIZE.
727
728 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
729
730 * docs/grub-dev.texi (Font Metrics): Exclude @image command from DVI
731 builds, since we don't have an EPS version of font_char_metrics.png.
732 Add leading dot to image extension per the Texinfo documentation.
733
734 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
735
736 * util/grub-gen-asciih.c: Include FT_SYNTHESIS_H rather than
737 <freetype/ftsynth.h>, fixing build with FreeType 2.5.1.
738 * util/grub-gen-widthspec.c: Likewise.
739 * util/grub-mkfont.c: Likewise.
740
741 2013-11-29 Andrey Borzenkov <arvidjaar@gmail.com>
742
743 * util/grub-setup.c (main): Move parsing of (hdX) syntax to ...
744 * util/setup.c (SETUP): ... here. Fixes regression: grub-install
745 failed to install on (hdX).
746 * util/grub-setup.c (get_device_name): Remove, not needed after
747 above change.
748
749 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
750
751 * grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.
752
753 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
754
755 * util/grub-fstest.c: Remove variable length arrays.
756
757 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
758
759 * grub-core/osdep/linux/ofpath.c: Check return value of read.
760
761 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
762
763 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
764 computing crc32 rather than handling with md fundtions directly.
765
766 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
767
768 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
769 checking fwstart.img rather than md fundtions directly.
770
771 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
772
773 * util/grub-mkrescue.c (main): Check that fread succeeded.
774
775 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
776
777 * conf/Makefile.common: Remove -mexplicit-relocs and
778 -DUSE_ASCII_FALLBACK on yeeloong.
779
780 -DUSE_ASCII_FALLBACK is already added by font snippets.
781 -mexplicit-relocs isn't needed is compiler/assemblera are
782 configured properly.
783 If they're not we shouldn't attempt to fix it by ourselves.
784 Binary compare between before and after shows no difference.
785
786 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
787
788 * grub-core/Makefile.core.def: Remove libgnulib.a and use its
789 sources in dependencies directly.
790
791 This was the only instance of "library" in core config. A bug was
792 reported that -fno-stack-protector wasn't passed to it. Instead of
793 figuring out why it failed just remove this construction used
794 needlessly.
795
796 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
797
798 * grub-core/osdep/unix/password.c (grub_password_get): Check that
799 fgets succeeded.
800
801 2013-11-27 Francesco Lavra <francescolavra.fl@gmail.com>
802
803 * docs/grub.texi (ls): Fix command description in case of a device name
804 passed as argument.
805
806 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
807
808 Eliminate variable length arrays in grub_vsnprintf_real.
809
810 A bit tricky because this function has to continue to work without
811 heap for short strings. Fixing prealloc to 32 arguments is reasonable
812 but make all stack references use 32-bit offset rather than 8-bit one.
813 So split va_args preparsing to separate function and put the prealloc
814 into the caller.
815
816 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
817
818 Introduce grub_util_file_sync and use it instead of fsync(fileno(f)).
819 Fixes build for windows.
820
821 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
822
823 * gentpl.py: Don't generate platform-dependent conditionals for
824 platform-independent targets.
825
826 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
827
828 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect): Remove
829 references to mdadm from otherwise generic code.
830 (grub_util_exec_pipe): Likewise.
831 (grub_util_exec_pipe_stderr): Likewise.
832 * grub-core/osdep/unix/getroot.c (grub_util_pull_lvm_by_command):
833 This function calls vgs, not mdadm; adjust variable names
834 accordingly.
835
836 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
837
838 Generate Makefile.*.am directly from gentpl.py, eliminating the use
839 of Autogen. The Autogen definitions files remain intact as they
840 offer a useful abstraction.
841
842 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
843
844 Add grub_util_disable_fd_syncs call to turn grub_util_fd_sync calls
845 into no-ops, and use it in programs that copy files but do not need
846 to take special care to sync writes (grub-mknetdir, grub-rescue,
847 grub-mkstandalone).
848
849 2013-11-26 Colin Watson <cjwatson@ubuntu.com>
850
851 * tests/util/grub-fs-tester.in: Execute xorriso from $PATH rather
852 than hardcoding /usr/local/bin/xorriso.
853
854 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
855
856 Add PCI command activation to all PCI drivers as required for coreboot
857 and maybe some other firmwares.
858
859 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
860
861 * grub-core/Makefile.am: Reduce gratuituous differences between Apple
862 and non-Apple variants of efiemu compile.
863
864 2013-11-25 Andrey Borzenkov <arvidjaar@gmail.com>
865
866 * configure.ac: Add explicit check for linking format of
867 efiemu64; save it as EFIEMU64_LINK_FORMAT.
868 * grub-core/Makefile.am: Use EFIEMU64_LINK_FORMAT instead of
869 hardcoding linking format.
870
871 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
872
873 * util/grub-mknetdir.c: Look for platform directories under pkglibdir
874 and not pkgdatadir.
875
876 2013-11-25 Colin Watson <cjwatson@ubuntu.com>
877 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
878
879 Add a --locale-directory option to grub-install and related tools.
880
881 * include/grub/util/install.h (GRUB_INSTALL_OPTIONS): Add
882 --locale-directory option.
883 (enum grub_install_options): Add
884 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
885 * util/grub-install-common.c (grub_install_help_filter): Handle
886 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
887 (grub_install_parse): Likewise.
888 (get_localedir): New function to check for a user-provided option
889 before trying grub_util_get_localedir.
890 (copy_locales): Use get_localedir rather than
891 grub_util_get_localedir. Handle differing locale directory layouts.
892 (grub_install_copy_files): Likewise.
893
894 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
895
896 * grub-core/osdep/unix/platform.c (get_ofpathname): Trim ending newline.
897 Don't rely on PATH_MAX.
898
899 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
900
901 * grub-core/genmoddep.awk: Use more portable && rather than and.
902
903 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
904
905 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Create _edata by placing
906 an object after data. While it doesn't seem right solution, it
907 works well enough and OSX isn't main compilation platform.
908
909 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
910
911 * gentpl.py: Add -ed2016 in order to make objconv accept our binary.
912 While it doesn't seem right solution, it works well enough and
913 OSX isn't main compilation platform.
914
915 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
916
917 * configure.ac: Add -static to LDFLAGS when using apple linker to
918 prevent it from pulling in dynamic linker.
919
920 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
921
922 Apple assembly doesn't handle symbol arithmetic well. So define an
923 offset symbol in boot.S and use it.
924
925 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
926
927 Apple assembly doesn't handle symbol arithmetic well. So instead
928 of getting addres of kernel_sector + 4 define kernel_sector_high.
929 It also makes code more readable.
930
931 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
932
933 With Apple assembly in .macro environvemnt you have to use $$ instead
934 of $. So introduce new preprocessor macro MACRO_DOLLAR(x) which expands
935 to $$x on Apple and to $x on everything else.
936
937 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
938
939 * grub-core/Makefile.am: Use correct TARGET_OBJCONV rather than
940 OBJCONV.
941
942 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
943
944 * grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple
945 and non-Apple. This instruction is shorter and faster,
946 so no reason not to use it on both.
947
948 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
949
950 * grub-core/lib/reed_solomon.c: Use section _text, _text rather than
951 .text when compiling for Apple.
952
953 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
954
955 * grub-core/term/arc/console.c: Add missing cast to silence warning.
956
957 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
958
959 * grub-core/boot/i386/pc/boot.S: Fix floppy probe. Due to missing
960 %dx restore the probe worked on non-existant drive. Reorganize the
961 code a little bit to free 2 bytes necessary for push/pop.
962
963 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
964
965 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
966 Add missing cast to silence warning.
967
968 2013-11-23 Keshav Padram Amburay <the.ridikulus.rat@gmail.com>
969
970 * util/grub-install.c (update_nvram): Support --no-nvram flag
971 for EFI targets.
972
973 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
974
975 * INSTALL: Add note about sparc64/ia64 with clang (unsupported).
976
977 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
978
979 * util/garbage-gen.c: Add missing include of sys/time.h.
980
981 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
982
983 Don't add -mflush-func if it's not supported by compiler.
984
985 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
986
987 Move common BIOS/coreboot memory map declarations to
988 include/grub/i386/memory_raw.h and eliminate duplicate declarations.
989
990 2013-11-22 Andrey Borzenkov <arvidjaar@gmail.com>
991
992 * Makefile.am: Add util/garbage-gen.c to EXTRA_DIST.
993
994 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
995
996 * INSTALL: Document why older clang versions aren't appropriate.
997
998 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
999
1000 * INSTALL: Document about clang for mips.
1001
1002 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1003
1004 * grub-core/lib/libgcrypt/mpi/longlong.h: Use C version with mips
1005 clang.
1006
1007 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1008
1009 Add *-xen to the list of grub-install-common platforms.
1010
1011 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1012
1013 * configure.ac: Do not enforce -mcmodel=large. It's not necessarry with
1014 3 last commits.
1015
1016 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1017
1018 * grub-core/kern/xen/init.c: Do not map more pages than we can address.
1019
1020 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1021
1022 * grub-core/kern/efi/mm.c: Limit allocations to 2GiB when not compiling
1023 with -mcmodel=large.
1024
1025 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1026
1027 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Add
1028 range-checking for 32-bit quantities.
1029
1030 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1031
1032 * configure.ac: Compile with -fPIC when compiling with clang on
1033 mips.
1034
1035 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1036
1037 * configure.ac: Add -no-integrated-as on mips(el) to TARGET_CCASFLAGS
1038 when compiling with clang.
1039
1040 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1041
1042 clang emits calls to abort () under some unknown conditions.
1043 Export abort () when compiling with clang.
1044
1045 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1046
1047 * docs/grub-dev.texi: Document stack and heap sizes.
1048
1049 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1050
1051 * include/grub/i386/pc/memory.h: Decrease
1052 GRUB_MEMORY_MACHINE_SCRATCH_SIZE and increase
1053 GRUB_MEMORY_MACHINE_PROT_STACK_SIZE.
1054 The binary doesn't change (checked). It's more to better reflect actual
1055 usage.
1056
1057 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1058
1059 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Ensure
1060 at compile time that enough of scratch size is available.
1061
1062 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1063
1064 * grub-core/kern/x86_64/efi/callwrap.S: Fix stack alignment.
1065 Previously we misaligned stack by 8 in startup.S and compensated
1066 for it in callwrap.S. According to ABI docs (EFI and sysv amd64)
1067 right behaviour is to align stack in startup.S and keep it aligned
1068 in callwrap.S. startup.S part was committed few commits before. This
1069 takes care of callwrap.S.
1070 Reported by: Gary Lin.
1071
1072 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1073
1074 * grub-core/boot/mips/startup_raw.S: Handle the case of gap between
1075 .data and .bss. May happen if compiler and assembly use different
1076 alignment.
1077
1078 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1079
1080 On MIPS handle got16 relocations to local symbols in an ABI-compliant
1081 way.
1082
1083 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1084
1085 Add support for a new magic symbol _gp_disp on mips to handle PIC
1086 binaries.
1087
1088 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1089
1090 Use $t9 for indirect calls from asm to C as PIC ABI requires.
1091
1092 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1093
1094 Remove -march=mips3 from TARGET_CCASFLAGS as it creates linking problem
1095 when rest of GRUB is compiled for hisher stepping. Instead use
1096 .set mips3/.set mips1 around cache and sync opcodes.
1097
1098 2013-11-21 Vladimir Serbinenko <phcoder@gmail.com>
1099
1100 Unify GOT/trampoline handling between PPC, MIPS and IA64 as they
1101 do essentially the same thing, do it in similar way.
1102
1103 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
1104
1105 * util/grub-mkrescue.c (main): If a source directory is not
1106 specified, read platform-specific files from subdirectories of
1107 pkglibdir, not pkgdatadir.
1108
1109 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
1110
1111 * grub-core/normal/progress.c: Remove unused file.
1112
1113 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
1114
1115 * grub-core/lib/crypto.c (grub_crypto_hash): Remove variable length
1116 array.
1117
1118 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
1119
1120 * util/grub-mkconfig.in: Say explicit "grub configuration" rather
1121 than grub.cfg.
1122
1123 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
1124
1125 * coreboot.cfg: Add missing file.
1126
1127 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
1128
1129 * Makefile.am: Allow STRIP to be empty when creating windowszip.
1130
1131 2013-11-19 Axel Kellermann <axel.kellermann@gmx.de>
1132
1133 * util/grub.d/30_os-prober.in: Add GRUB_OS_PROBER_SKIP_LIST to
1134 selectively skipping systems.
1135
1136 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
1137
1138 * Makefile.util.def (grub-mkimage): Add
1139 grub-core/osdep/aros/config.c to extra_dist.
1140 * conf/Makefile.extra-dist (EXTRA_DIST): Add docs/autoiso.cfg,
1141 docs/osdetect.cfg, grub-core/gnulib-fix-null-deref.diff,
1142 grub-core/gnulib-fix-width.diff, grub-core/gnulib-no-abort.diff, and
1143 grub-core/gnulib-no-gets.diff.
1144
1145 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
1146
1147 Add automated filesystem checking based on scripts I've used now for
1148 quite some time locally. Most of the test require root so they are
1149 skipped when run without necessarry privelegies.
1150
1151 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
1152
1153 * util/grub-install.c (main): Adjust info messages to match
1154 installed paths of grub-bios-setup and grub-sparc64-setup.
1155
1156 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
1157
1158 * util/grub-install-common.c (copy_locales): Consistently use
1159 grub_util_get_localedir () rather than LOCALEDIR.
1160 (grub_install_copy_files): Likewise.
1161
1162 2013-11-19 Josh Triplett <josh@joshtriplett.org>
1163
1164 * grub-core/kern/x86_64/efi/startup.S (_start): Align the stack to a
1165 16-byte boundary, as required by the x86-64 ABI, before calling
1166 grub_main. In some cases, GCC emits code that assumes this
1167 alignment, which crashes if not aligned. The EFI firmware is also
1168 entitled to assume that stack alignment without checking.
1169
1170 2013-11-18 Josh Triplett <josh@joshtriplett.org>
1171
1172 * grub-core/mmap/efi/mmap.c (grub_mmap_register): Round up/down to
1173 4k page boundaries as expected by firmware rather than 1k
1174 boundaries.
1175 (grub_mmap_malign_and_register): Likewise.
1176
1177 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1178
1179 * tests/grub_func_test.in: Decrease RAM size to 512M. With less
1180 fragmentation 512M is enough.
1181
1182 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1183
1184 * grub-core/kern/mm.c (grub_real_malloc): Decrease cut-off of moving the
1185 pointer to 32K. This is the size of cache element which is the most
1186 common allocation >1K. This way the pointer is always around blocks
1187 of 32K and so we keep performance while decreasing fragmentation.
1188
1189 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1190
1191 * grub-core/kern/mm.c (grub_real_malloc): Don't update the pointer to
1192 current memory when allocating large chunks. This significantly
1193 decreases memory fragmentation.
1194
1195 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
1196
1197 * tests/gzcompress_test.in: Skip if gzip is not installed (unlikely,
1198 but for symmetry).
1199 * tests/lzocompress_test.in: Skip if lzop is not installed.
1200 * tests/xzcompress_test.in: Skip if xz is not installed.
1201
1202 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
1203
1204 * util/grub-mkrescue.c (main): Fix typo.
1205
1206 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1207
1208 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Update
1209 clock frequency to 200 MHz,
1210
1211 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1212
1213 * tests/util/grub-shell.in: Increase console size to 1024x1024.
1214
1215 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1216
1217 * Makefile.am (default_payload.elf): Add pata to loaded modules.
1218 Load config file from (cbfsdisk)/etc/grub.cfg.
1219
1220 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1221
1222 * util/grub-install-common.c (grub_install_copy_files): Fix module
1223 destination directory.
1224
1225 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
1226
1227 * tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo
1228 files have not been built.
1229
1230 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
1231
1232 * grub-core/osdep/unix/hostdisk.c (grub_util_make_temporary_file):
1233 Handle errors from mkstemp.
1234 (grub_util_make_temporary_dir): Handle errors from mkdtemp.
1235
1236 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1237
1238 * tests/util/grub-shell.in: Use -cdrom and don't force cdrom
1239 on primary master on pseries.
1240
1241 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1242
1243 * grub-core/tests/videotest_checksum.c: Don't reload unifont if it's
1244 already loaded. This saves memory needed for tests,
1245
1246 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1247
1248 * util/grub-mkrescue.c (main): Fix a typo to make yeeloong part
1249 work again.
1250
1251 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1252
1253 * grub-core/term/terminfo.c (grub_cmd_terminfo): Fix a typo to make -g
1254 work again.
1255
1256 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1257
1258 * tests/util/grub-shell.in: For powerpc tests put the CD-ROM as primary
1259 master since with some combinations of qemu and firmware only primary
1260 IDE channel is available.
1261
1262 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1263
1264 * grub-core/tests/gfxterm_menu.c: Skip high-resolution tests on
1265 low-memory platforms where we don't have enough memory for them.
1266 * grub-core/tests/videotest_checksum.c: Likewise.
1267
1268 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1269
1270 * grub-core/tests/cmdline_cat_test.c: Don't reload unifont if it's
1271 already loaded. This saves memory needed for tests,
1272
1273 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1274
1275 Fix handling of install lists.
1276
1277 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1278
1279 * grub-core/lib/sparc64/setjmp.S: Force spilling of current window.
1280
1281 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1282
1283 On i386-ieee1275 we run in paged mode. So we need to explicitly map
1284 the devices before accessing them.
1285
1286 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1287
1288 * grub-core/lib/relocator.c (grub_mm_check_real): Accept const char *
1289 as file argument.
1290
1291 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1292
1293 * grub-core/normal/cmdline.c (grub_cmdline_get): Plug memory leak.
1294
1295 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1296
1297 * grub-core/kern/file.c (grub_file_open): Free file->name on failure.
1298 (grub_file_close): Free file->name.
1299
1300 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1301
1302 * grub-core/commands/verify.c (free_pk): Plug memory leak.
1303 (grub_load_public_key): Likewise.
1304 (grub_verify_signature_real): Likewise.
1305 (grub_cmd_verify_signature): Likewise.
1306
1307 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1308
1309 * grub-core/commands/legacycfg.c (grub_legacy_check_md5_password): Plug
1310 memory leak.
1311
1312 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1313
1314 * grub-core/lib/powerpc/setjmp.S (grub_setjmp): Save r31.
1315 (grub_longjmp): Restore r31.
1316 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Reserve space for r31.
1317
1318 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1319
1320 * util/grub-mkrescue.c (make_image_fwdisk_abs): Insert all partmap
1321 modules to be in line with make_image_abs.
1322
1323 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1324
1325 * include/grub/mips/setjmp.h (grub_jmp_buf): Fix buffer size.
1326
1327 setjmp.S uses 12 entries but buffer is declared with only 11 entries.
1328
1329 2013-11-17 Ian Campbell <ijc@hellion.org.uk>
1330
1331 * grub-core/disk/uboot/ubootdisk.c: Include SCSI disks.
1332
1333 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1334
1335 * tests/grub_func_test.in: Increase memory reservation as on EFI we need
1336 to leave some memory to firmware.
1337
1338 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1339
1340 * grub-core/tests/cmdline_cat_test.c (cmdline_cat_test): Ignore errors
1341 of loading gfxterm as gfxterm is embed in kernel on some platforms.
1342 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Likewise.
1343 Load gfxmenu.
1344
1345 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1346
1347 * tests/core_compress_test.in: Use full arguments as grub-mkimage-extra
1348 now needs full arguments.
1349
1350 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1351
1352 * util/grub-mkrescue.c (main): Add trailing \n in
1353 .disk_label.contentDetails to be in line with previous shell script.
1354
1355 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1356
1357 * util/grub-mkrescue.c (main): Use right source file for bootinfo.txt.
1358
1359 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1360
1361 * util/grub-install-common.c (grub_install_parse): Recognize
1362 --compress=none like shell script did.
1363
1364 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1365
1366 * include/grub/misc.h: Replace check for __sparc64__ with one for
1367 __sparc__ as __sparc64__ isn't actually defined.
1368
1369 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1370
1371 * tests/util/grub-shell.in: Use escc-ch-b on powerpc. This is missing
1372 counterpart of fixing the naming of escc ports.
1373
1374 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1375
1376 * util/grub-install-common.c (platforms): Fix the order of entries and
1377 remove useless field val.
1378
1379 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1380
1381 * util/grub-install.c: Add new option --no-bootsector to skip
1382 installing of bootsector. Accept --grub-setup=/bin/true as
1383 backwards-compatible synonym.
1384
1385 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
1386
1387 * util/grub-install.c (device_map_check_duplicates): Fix incorrect
1388 order of qsort arguments (number of elements vs. element size).
1389
1390 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1391
1392 Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir
1393 the function of these files exceeds what can be sanely handled in shell
1394 in posix-comaptible way. Also writing it in C extends the functionality
1395 to non-UNIX-like OS and minimal environments.
1396
1397 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1398
1399 * grub-core/kern/arm/cache.S: Don't switch back to ARM mode when
1400 compiling to thumb2.
1401 * grub-core/kern/arm/cache_armv7.S: Likewise.
1402 * grub-core/lib/arm/setjmp.S: Likewise.
1403
1404 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
1405
1406 * grub-core/kern/arm/uboot/startup.S: delete superflouous save of r8
1407 in grub_uboot_syscall
1408
1409 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1410
1411 Decrease stack usage in lexer.
1412
1413 We have only 92K of stack and using over 4K per frame is wasteful
1414
1415 * grub-core/script/yylex.l (yyalloc), (yyfree), (yyrealloc): Declare
1416 as macros so that compiler would remove useless structure on stack.
1417 Better solution would be to fix flex not to put this structure on
1418 the stack but flex is external program.
1419
1420 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1421
1422 Decrease stack usage in signature verification.
1423
1424 We have only 92K of stack and using over 4K per frame is wasteful
1425
1426 * grub-core/commands/verify.c (grub_load_public_key): Allocate on heap
1427 rather than stack.
1428 (grub_verify_signature_real): Likewise.
1429
1430 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1431
1432 Decrease stack usage in mdraid 0.9x.
1433
1434 We have only 92K of stack and using over 4K per frame is wasteful
1435
1436 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Allocate on heap
1437 rather than stack.
1438
1439 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1440
1441 Decrease stack usage in BtrFS.
1442
1443 We have only 92K of stack and using over 4K per frame is wasteful
1444
1445 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Allocate on heap
1446 rather than stack.
1447
1448 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1449
1450 Decrease stack usage in JFS.
1451
1452 We have only 92K of stack and using over 4K per frame is wasteful
1453
1454 * grub-core/fs/jfs.c (getblk): Allocate on heap rather than on
1455 stack. Note: this function is recursive.
1456 (grub_jfs_read_inode): Read only part we care about.
1457
1458 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
1459
1460 * grub-core/kern/arm/uboot/startup.S: fix grub_uboot_syscall va_arg
1461 handling
1462
1463 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
1464
1465 * configure.ac: Restore -nostdlib for libgcc symbols tests.
1466
1467 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
1468
1469 * docs/grub.texi (Environment): Document cmdpath.
1470
1471 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
1472
1473 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
1474 Remove "unused" attribute from arguments, they are used.
1475
1476 2013-11-15 Colin Watson <cjwatson@debian.org>
1477
1478 * .gitignore: Only ignore grub-mk* at the top level.
1479
1480 2013-11-15 Colin Watson <cjwatson@ubuntu.com>
1481
1482 * util/grub-reboot.in (usage): Fix a typo.
1483
1484 2013-11-15 Vladimir Serbinenko <phcoder@gmail.com>
1485
1486 Replace libgcc version of ctz with our own.
1487
1488 On upcoming arm64 port libgcc ctz* are not usable in standalone
1489 environment. Since we need ctz* for this case and implementation is
1490 in C we may as well use it on all concerned platforms.
1491
1492 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1493
1494 * configure.ac: Probe for linking format rather than guessing it based
1495 on target_os.
1496
1497 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1498
1499 * grub-core/disk/xen/xendisk.c (grub_xendisk_fini): Set state to
1500 "1" prior to handoff.
1501
1502 Reported by: M A Young.
1503
1504 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1505
1506 * grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add
1507 \0 to all files.
1508
1509 Reported by: M A Young.
1510
1511 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1512
1513 * grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
1514 compilation on NetBSD.
1515
1516 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1517
1518 * acinclude.m4: Don't add -P on initial nm test.
1519
1520 Note: even though this patch postdates Andrey's it bears 14 Nov as
1521 date due to timezone difference.
1522
1523 2013-11-15 Andrey Borzenkov <arvidjaar@gmail.com>
1524
1525 * grub-core/Makefile.core.def (signature_test): Add missing
1526 tests/signatures.h.
1527
1528 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
1529
1530 * util/grub-install_header: Set localedir here, since this file is
1531 where it's used.
1532 * util/grub-install.in: Remove setting of localedir.
1533 * util/grub-mkrescue.in: Likewise.
1534
1535 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1536
1537 * Makefile.am (default_payload.elf): Add uhci, ohci and usb_keyboard.
1538
1539 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1540
1541 * configure.ac: Move nm checks to the end.
1542 Call grub_PROG_NM_WORKS.
1543 * acinclude.m4: New check grub_PROG_NM_WORKS.
1544 Use $TARGET_CFLAGS -c when compiling test binary.
1545
1546 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
1547
1548 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Remove
1549 unused variables.
1550
1551 2013-11-14 Matthew Garrett <mjg@redhat.com>
1552
1553 * grub-core/kern/main.c (grub_set_prefix_and_root): Set variable
1554 cmdpath to firmware directory.
1555
1556 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1557
1558 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Reset the pointer
1559 at the start of second iteration.
1560
1561 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1562
1563 * grub-core/Makefile.am (efiemu64.o): Explicitly set link format.
1564
1565 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1566
1567 * Makefile.am (default_payload.elf): New target for easier coreboot
1568 build.
1569
1570 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1571
1572 * grub-core/kern/arm/cache_armv6.S: Remove special handling for
1573 clang (not necessarry with -no-integrated-as).
1574 * include/grub/symbol.h [__arm__]: Likewise.
1575
1576 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1577
1578 * configure.ac: Use -no-integrated-as on arm with clang.
1579 * INSTALL: Mention ARM compilation with clang.
1580
1581 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1582
1583 * conf/Makefile.common (CCASFLAGS_PLATFORM) [COND_arm]: Add
1584 -mthumb-interwork.
1585
1586 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
1587
1588 * grub-core/fs/ext2.c (grub_ext2_read_block): Factor out common
1589 code for indirect block handling.
1590
1591 Saves 185 bytes on compressed image.
1592
1593 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1594
1595 Fix make clean.
1596
1597 * Makefile.am: Remove build-grub-* in make clean.
1598
1599 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1600
1601 New files to gitignore.
1602
1603 * .gitignore: Add build-grub-gen-asciih, build-grub-gen-widthspec,
1604 build-grub-mkfont, and grub-emu-lite. Remove .bzrignore.
1605
1606 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
1607
1608 * grub-core/kern/arm/misc.S: Make thumb2-compatible.
1609
1610 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
1611
1612 * .gitignore: fix rules for .dep* and add *.a post git migration
1613
1614 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
1615
1616 * configure.ac (AM_INIT_AUTOMAKE): Require at least version 1.10.1,
1617 to match INSTALL.
1618
1619 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
1620
1621 * grub-core/kern/misc.c: Don't redirect divisions in the
1622 GRUB_UTIL case.
1623 * include/grub/misc.h: Likewise.
1624
1625 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
1626
1627 * grub-core/osdep/unix/emuconsole.c (put): Pacify the compiler on
1628 systems that require checking the return value of write.
1629
1630 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
1631
1632 * util/grub-install.in (efi_quiet): Fix inverted logic: make
1633 efibootmgr quiet when --debug is not used, rather than when it is.
1634
1635 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
1636
1637 * gentpl.py (define_macro_for_platform_dependencies): Remove
1638 first (and thus unused) of two definitions for this function.
1639 (platform_dependencies): Likewise.
1640
1641 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
1642
1643 * acinclude.m4 (grub_apple_cc): Remove; since the removal of nested
1644 functions, we only need to check this for the target, not the host.
1645 * configure.ac (grub_apple_cc): Likewise.
1646
1647 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1648
1649 * grub-core/kern/arm/cache.c (probe_caches): Move asm part to ...
1650 * grub-core/kern/arm/cache_armv6.S: ... here. This allows this
1651 asm to stay in arm even if surrounding is thumb.
1652
1653 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1654
1655 * grub-core/kern/arm/misc.S: Add __muldi3 and __aeabi_lmul. Those
1656 helper functions are needed for thumb.
1657
1658 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1659
1660 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
1661 level / 3 division explicitly unsigned. Saves few bytes.
1662
1663 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1664
1665 * grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
1666
1667 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1668
1669 * grub-core/normal/datetime.c (grub_get_weekday): Use if rather than
1670 division.
1671
1672 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1673
1674 * grub-core/kern/uboot/init.c: Move grub_uboot_machine_type and
1675 grub_uboot_boot_data to asm part.
1676
1677 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1678
1679 * grub-core/kern/arm/uboot/startup.S: Remove = by replacing with
1680 literal load.
1681 (grub_uboot_syscall): Save/restore r9 and align stack.
1682
1683 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1684
1685 * grub-core/kern/arm/cache.S: Replace = with explicit litteral load.
1686
1687 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1688
1689 * include/grub/symbol.h (END) [__arm__]: New macros. Replace all .end
1690 occurencies with END.
1691
1692 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
1693
1694 * util/grub-editenv.c (help_filter, argp): Document how to delete
1695 the whole environment block.
1696 Reported by Dan Jacobson. Fixes Debian bug #726265.
1697
1698 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
1699
1700 * docs/grub.texi (Internationalisation, Supported kernels): Fix
1701 sectioning.
1702
1703 2013-11-13 Josh Triplett <josh@joshtriplett.org>
1704
1705 * grub-core/normal/term.c (grub_set_more): Use bool logic rather than
1706 increment/decrement.
1707
1708 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1709
1710 * grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when
1711 compiling with clang.
1712
1713 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1714
1715 * grub-core/kern/arm/uboot/startup.S: Use .org rather than assigning
1716 ".".
1717
1718 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1719
1720 Redirect all divisions to grub_divmod64.
1721
1722 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1723
1724 * grub-core/term/tparm.c (tparam_internal): Use unsigned divisions.
1725
1726 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1727
1728 Add missing includes of loader.h.
1729
1730 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1731
1732 * configure.ac: Allow disabling themes.
1733
1734 2013-11-12 Lukas Schwaighofer <lukas@schwaighofer.name>
1735
1736 * util/grub.d/20_linux_xen.in: Don't decompress initrd.
1737
1738 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1739
1740 * grub-core/term/at_keyboard.c: Don't poll non-functional AT controller
1741 until it becomes operational.
1742
1743 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1744
1745 * grub-core/Makefile.core.def (legacy_password_test): Disable
1746 on platforms where no legacycfg is compiled.
1747 * grub-core/tests/lib/functional_test.c: Tolerate failure to
1748 load legacy_password_test.
1749
1750 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1751
1752 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
1753
1754 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1755
1756 * grub-core/efiemu/prepare.c: Remove variable length arrays.
1757
1758 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1759
1760 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
1761 strict-aliasing warning.
1762 (fsync): Silence cast warning.
1763
1764 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1765
1766 * grub-core/commands/verify.c: Remove variable length arrays.
1767 Load gcry_dsa/gcry_rsa automatically.
1768
1769 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1770
1771 * grub-core/tests/signature_test.c: New test.
1772
1773 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1774
1775 * grub-core/disk/cryptodisk.c (luks_script_get): Adapt to new procfs
1776 API.
1777
1778 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1779
1780 * grub-core/tests/legacy_password_test.c (vectors): Make static.
1781 * grub-core/tests/pbkdf2_test.c (vectors): Likewise.
1782
1783 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1784
1785 * grub-core/tests/setjmp_test.c: Reset counter to 0 before starting.
1786
1787 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1788
1789 * grub-core/fs/proc.c: Allow \0 in proc files.
1790
1791 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1792
1793 * grub-core/tests/xnu_uuid_test.c: Fix assert message.
1794
1795 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1796
1797 * grub-core/tests/xnu_uuid_test.c: Fix copyright year.
1798
1799 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1800
1801 * grub-core/fs/ext2.c: Remove variable length arrays.
1802
1803 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1804
1805 * grub-core/lib/crypto.c (grub_crypto_cbc_decrypt): Remove variable
1806 length arrays.
1807
1808 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1809
1810 * grub-core/disk/AFSplitter.c: Remove variable length arrays.
1811 * grub-core/disk/cryptodisk.c: Likewise.
1812 * grub-core/disk/geli.c: Likewise.
1813 * grub-core/disk/luks.c: Likewise.
1814
1815 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1816
1817 * grub-core/tests/legacy_password_test.c: New test.
1818 * grub-core/commands/legacycfg.c: Remove variable length arrays.
1819
1820 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1821
1822 * grub-core/lib/pbkdf2.c: Remove variable length arrays.
1823
1824 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1825
1826 * grub-core/tests/pbkdf2_test.c: New test.
1827
1828 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1829
1830 * grub-core/lib/xzembed/xz_dec_stream.c: Remove variable length arrays.
1831
1832 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1833
1834 * grub-core/io/lzopio.c: Remove variable length arrays.
1835
1836 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1837
1838 * include/grub/crypto.h: Add maximums on hash size and cipher block
1839 size.
1840
1841 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1842
1843 * grub-core/commands/xnu_uuid.c: Remove variable length arrays.
1844
1845 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1846
1847 * grub-core/tests/xnu_uuid_test.c: New test.
1848
1849 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1850
1851 * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
1852 covers it).
1853
1854 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1855
1856 * grub-core/commands/hashsum.c: Remove variable length arrays.
1857
1858 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1859
1860 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
1861 condition.
1862 * tests/grub_func_test.in: Increase memory allocation.
1863
1864 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1865
1866 * grub-core/osdep/unix/getroot.c [HAVE_STRUCT_STATFS_F_FSTYPENAME
1867 && HAVE_STRUCT_STATFS_F_MNTFROMNAME]: Include sys/param.h and
1868 sys/mount.h.
1869
1870 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1871
1872 * grub-core/osdep/apple/hostdisk.c (grub_util_get_fd_size): Rename to ..
1873 (grub_util_get_fd_size_os): ...this.
1874 (grub_hostdisk_flush_initial_buffer): New empty function.
1875
1876 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1877
1878 * grub-core/gensyminfo.sh.in: Handle the case of portable output
1879 without --defined-only.
1880
1881 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1882
1883 * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
1884 rip-relative addressing in prologue.
1885
1886 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1887
1888 * include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
1889 * grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
1890
1891 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1892
1893 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
1894 Add missing semicolon.
1895
1896 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1897
1898 * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen.
1899
1900 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1901
1902 * configure.ac: Check for lzma.h for enabling liblzma and allow
1903 manual disabling.
1904
1905 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1906
1907 Add missing includes of loader.h.
1908
1909 2013-11-11 Fam Zheng <famcool@gmail.com>
1910
1911 * util/grub.d/30_os-prober.in: Add minix entry.
1912
1913 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1914
1915 * grub-core/loader/i386/coreboot/chainloader.c (load_segment): Use
1916 right buffer for temporary load.
1917
1918 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1919
1920 * grub-core/loader/i386/coreboot/chainloader.c: Support tianocore.
1921
1922 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1923
1924 * grub-core/loader/i386/coreboot/chainloader.c: Support lzma-compressed
1925 payload.
1926
1927 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1928
1929 * include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
1930 not Types.h.
1931 * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
1932 environment.
1933 (LzmaDec_InitDicAndState): Make static.
1934
1935 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1936
1937 * util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
1938
1939 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1940
1941 * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
1942
1943 Reported by: Aaro Koskinen <aaro.koskinen@iki.fi>
1944
1945 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1946
1947 * docs/grub-dev.texi: Replace bzr references with git ones.
1948
1949 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
1950
1951 * docs/grub.texi (Simple configuration): Remove reference to
1952 grub-reboot from saved default entry description - grub-default
1953 does not use it anymore.
1954
1955 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1956
1957 * configure.ac: Make efiemu test cflags match the cflags efiemu is
1958 compiled with.
1959
1960 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
1961
1962 * docs/grub.texi (Simple configuration): Document GRUB_DISABLE_SUBMENU.
1963
1964 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1965
1966 Fix grub_machine_fini bitrot.
1967
1968 Reported by: Glenn Washburn.
1969
1970 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1971
1972 * configure.ac: Remove leftover -fnested-funcions -Wl,-allow_execute.
1973
1974 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1975
1976 * grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and
1977 -DELF.
1978 * grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
1979 instead of ELF*.
1980
1981 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1982
1983 * configure.ac: Restore CFLAGS to TARGET_CFLAGS before external tests.
1984 Add -march=core2 when testing compile of efiemu64.
1985
1986 Thanks Andrey Borzenkov for spotting this.
1987
1988 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
1989
1990 Add new ports: i386-xen and x86_64-xen. This allows running GRUB in
1991 XEN PV environment and load kernels.
1992
1993 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
1994
1995 * grub-core/loader/i386/multiboot_mbi.c: Handle space in command line.
1996 * grub-core/loader/multiboot_mbi2.c: Likewise.
1997
1998 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
1999
2000 * grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
2001 handling.
2002
2003 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
2004
2005 * grub-core/commands/i386/cmostest.c: Add new command "cmosset".
2006
2007 Tested by: Denis 'GNUtoo' Carikli.
2008
2009 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2010
2011 * grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
2012
2013 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2014
2015 * grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
2016 Use to get rounded angle rather than truncated.
2017
2018 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2019
2020 * grub-core/term/serial.c: Add option for enabling/disabling
2021 RTS/CTS flow control.
2022
2023 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2024
2025 * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
2026 divisions.
2027
2028 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2029
2030 * grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
2031 Use grub_fatal rather than divide by zero.
2032 * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
2033
2034 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2035
2036 * include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
2037 truncate.
2038 (grub_fixed_fsf_divide): Likewise.
2039
2040 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2041
2042 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Avoid
2043 division by-zero and senseless negative divisions.
2044
2045 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2046
2047 * grub-core/gfxmenu/gui_circular_progress.c (circprog_paint): Avoid
2048 division by-zero and senseless negative divisions.
2049 (circprog_set_property): Don't accept negative num_ticks.
2050
2051 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2052
2053 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Avoid
2054 division by-zero and senseless negative divisions.
2055
2056 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2057
2058 * configure.ac: Use elf_*_fbsd on kfreebsd.
2059
2060 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2061
2062 * grub-core/tests/div_test.c: New test.
2063
2064 2013-11-08 Vladimir Testov <vladimir.testov@rosalab.ru>
2065
2066 * grub-core/gfxmenu/gui_box.c: Updated to work with area status.
2067 * grub-core/gfxmenu/gui_canvas.c: Likewise.
2068 * grub-core/gfxmenu/view.c: Likewise.
2069 * grub-core/video/fb/video_fb.c: Introduce new functions:
2070 grub_video_set_area_status, grub_video_get_area_status,
2071 grub_video_set_region, grub_video_get_region.
2072 * grub-core/video/bochs.c: Likewise.
2073 * grub-core/video/capture.c: Likewise.
2074 * grub-core/video/video.c: Likewise.
2075 * grub-core/video/cirrus.c: Likewise.
2076 * grub-core/video/efi_gop.c: Likewise.
2077 * grub-core/video/efi_uga.c: Likewise.
2078 * grub-core/video/emu/sdl.c: Likewise.
2079 * grub-core/video/radeon_fuloong2e.c: Likewise.
2080 * grub-core/video/sis315pro.c: Likewise.
2081 * grub-core/video/sm712.c: Likewise.
2082 * grub-core/video/i386/pc/vbe.c: Likewise.
2083 * grub-core/video/i386/pc/vga.c: Likewise.
2084 * grub-core/video/ieee1275.c: Likewise.
2085 * grub-core/video/i386/coreboot/cbfb.c: Likewise.
2086 * include/grub/video.h: Likewise.
2087 * include/grub/video_fb.h: Likewise.
2088 * include/grub/fbfill.h: Updated render_target structure.
2089 grub_video_rect_t viewport, region, area
2090 int area_offset_x, area_offset_y, area_enabled
2091 * include/grub/gui.h: New helper function
2092 grub_video_bounds_inside_region.
2093 * docs/grub-dev.texi: Added information about new functions.
2094
2095 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2096
2097 * grub-core/kern/mm.c (grub_real_malloc): Use AND rather than MOD
2098 for alignment.
2099
2100 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2101
2102 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
2103 missing attribute.
2104 * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
2105
2106 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2107
2108 * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
2109 simple division on arm and ia64.
2110
2111 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2112
2113 * grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
2114 link with libgcc.
2115
2116 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2117
2118 * include/grub/symbol.h (FUNCTION), (VARIABLE): Fix precedence logic.
2119
2120 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2121
2122 * include/grub/symbol.h (FUNCTION), (VARIABLE) [__arm__]: Use % as
2123 prefix symbol, not @.
2124
2125 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2126
2127 * INSTALL: Add note about older gcc and clang.
2128
2129 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2130
2131 * tests/util/grub-shell.in: Boot as hdd on ppc by default.
2132
2133 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2134
2135 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
2136 NULL pointer dereference.
2137
2138 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2139
2140 * grub-core/Makefile.am: Do not include libgcc.h when compiling with
2141 clang.
2142
2143 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2144
2145 * grub-core/kern/powerpc/dl.c: Add missing pragma to silence cast-align
2146 warnings.
2147
2148 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2149
2150 * grub-core/net/net.c (grub_net_route_unregister): Remove unused
2151 function.
2152 * grub-core/loader/i386/xnu.c (hextoval): Likewise.
2153 * grub-core/disk/geli.c (ascii2hex): Likewise.
2154
2155 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2156
2157 * configure.ac: Run linker tests without -Werror.
2158 Define TARGET_LDFLAGS_STATIC_LIBGCC and TARGET_LIBGCC.
2159 Change all occurences of -static-libgcc resp -lgcc to
2160 TARGET_LDFLAGS_STATIC_LIBGCC resp TARGET_LIBGCC.
2161
2162 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2163
2164 * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
2165
2166 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2167
2168 Allow compiling with clang (not really supported though).
2169
2170 * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
2171 unconditionally.
2172 * configure.ac: Add -no-integrated-as when using clangfor asm files.
2173 Add -mrtd -mregparm=3 on i386 when not using clang.
2174 * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
2175
2176 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2177
2178 * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
2179 bindings.
2180 * grub-core/lib/reed_solomon.c: Likewise.
2181 * include/grub/i386/gdb.h: Likewise.
2182 * include/grub/i386/pc/int.h: Likewise.
2183 * include/grub/i386/pc/pxe.h: Likewise.
2184 * include/grub/ieee1275/ieee1275.h: Likewise.
2185
2186 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2187
2188 Import libgcrypt 1.5.3.
2189
2190 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2191
2192 * configure.ac: Don't add -Wcast-align on x86.
2193
2194 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2195
2196 * configure.ac: Add -freg-struct-return on all platforms that
2197 support it.
2198
2199 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2200
2201 * acinclude.m4: Use -Werror on parameter tests.
2202 * configure.ac: Likewise.
2203
2204 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2205
2206 * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
2207
2208 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2209
2210 * configure.ac: Check that -malign-loops works rather than assuming that
2211 either -falign-loops or -malign-loops work.
2212
2213 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2214
2215 * configure.ac: Remove -fnested-functions. We don't need it anymore.
2216
2217 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2218
2219 * configure.ac: Prevent cflags leaking to subsequent tests by always
2220 resetting cflags to target_cflags in target tests.
2221
2222 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2223
2224 * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
2225 function.
2226
2227 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2228
2229 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
2230
2231 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2232
2233 * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
2234
2235 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2236
2237 * grub-core/normal/cmdline.c (grub_cmdline_get):
2238 Remove nested functions.
2239
2240 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2241
2242 * tests/test_sha512sum.in: Make it work on emu.
2243
2244 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2245
2246 * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
2247 functions.
2248 (grub_bidi_line_logical_to_visual): Likewise.
2249
2250 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2251
2252 Remove vestiges of -Wunsafe-loop-optimisations.
2253
2254 * conf/Makefile.common (CFLAGS_GNULIB): Remove
2255 -Wno-unsafe-loop-optimisations.
2256 * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
2257 pragma.
2258 * grub-core/io/gzio.c: Likewise.
2259 * grub-core/script/parser.y: Likewise.
2260 * grub-core/script/yylex.l: Likewise.
2261 * util/grub-mkfont.c: Likewise.
2262
2263 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2264
2265 * util/grub-mkfont.c (process_cursive): Remove nested function.
2266
2267 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2268
2269 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
2270 (grub_boot_time): Likewise.
2271
2272 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2273
2274 * include/grub/symbol.h (FUNCTION): Use @function rather than
2275 "function".
2276 (VARIABLE): Likewise.
2277
2278 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2279
2280 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
2281
2282 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2283
2284 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
2285 (parse_dhcp_vendor): Likewise.
2286
2287 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2288
2289 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
2290
2291 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2292
2293 * grub-core/gettext/gettext.c (main_context), (secondary_context):
2294 Define after defining type and not before.
2295
2296 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2297
2298 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
2299 type.
2300 (grub_gcm_decrypt): Likewise.
2301 (algo_decrypt): Likewise.
2302 (grub_zfs_decrypt_real): Transform error type.
2303
2304 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2305
2306 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
2307
2308 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2309
2310 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
2311 (grub_usbms_cbi_reset): Likewise.
2312 (grub_usbms_bo_reset): Likewise.
2313 (grub_usbms_reset): Likewise.
2314 (grub_usbms_attach): Likewise.
2315 (grub_usbms_transfer_cbi): Likewise.
2316
2317 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2318
2319 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
2320 "checksum = checksum;".
2321
2322 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2323
2324 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
2325 entry_type.
2326
2327 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2328
2329 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
2330 BIOS disk check.
2331
2332 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2333
2334 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
2335 type.
2336 (grub_ehci_fini_hw): Likewise.
2337 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
2338
2339 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2340
2341 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
2342 return grub_usb_err_t for cosistency. All users updated.
2343
2344 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2345
2346 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
2347 assigning to itself.
2348
2349 2013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
2350 2013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2351
2352 Issue separate DNS queries for ipv4 and ipv6
2353
2354 Adding multiple questions on a single DNS query is not supportted by
2355 most DNS servers. This patch issues two separate DNS queries
2356 sequentially for ipv4 and then for ipv6.
2357
2358 Fixes: https://savannah.gnu.org/bugs/?39710
2359
2360 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
2361 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
2362 * (grub_net_dns_lookup): Now using separated dns packages.
2363 * (grub_cmd_nslookup): Add error condition.
2364 * (grub_cmd_list_dns): Print DNS option.
2365 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
2366 --prefer-ipv4, and --prefer-ipv6.
2367 * include/grub/net.h (grub_dns_option_t): New enum.
2368 * (grub_net_network_level_address): option added.
2369
2370 2013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
2371
2372 * grub-core/video/fb/video_fb.c: Merge two blit functions
2373 into one.
2374
2375 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
2376
2377 * grub-core/term/terminfo.c: Add sequences for home and end.
2378
2379 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
2380
2381 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
2382 graphics console.
2383
2384 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
2385
2386 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
2387 add mode 0x12.
2388
2389 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2390
2391 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
2392 e-mail by Per Öberg.
2393
2394 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2395
2396 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
2397 name.
2398
2399 2013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
2400
2401 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
2402 emu platforms.
2403 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
2404
2405 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2406
2407 * docs/grub.texi: Document usage of menuentry id.
2408
2409 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2410
2411 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
2412
2413 2013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
2414
2415 * grub-core/commands/i386/nthibr.c: New command.
2416
2417 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2418
2419 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
2420
2421 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2422
2423 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
2424 coordinate.
2425
2426 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2427
2428 Support GRUB_DISABLE_SUBMENU config.
2429
2430 Inspired by patch from Prarit Bhargava.
2431
2432 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2433
2434 * docs/grub.texi: Mention RSA support.
2435
2436 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2437
2438 * grub-core/commands/verify.c: Add RSA support.
2439
2440 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2441
2442 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
2443 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
2444 device is known to be ATAPI.
2445
2446 2013-11-03 Mike Frysinger <vapier>
2447
2448 * configure.ac: Don't add target-prefix.
2449
2450 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2451
2452 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
2453 variables.
2454
2455 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2456
2457 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
2458 if language is English.
2459
2460 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2461
2462 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
2463
2464 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2465
2466 * configure.ac: Don't add -m32/-m64 on emu.
2467
2468 2013-11-02 neil
2469
2470 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
2471 broken linux headers.
2472
2473 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2474
2475 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
2476
2477 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2478
2479 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
2480 Reed-Solomon recovery if more than half of redundancy info is 0.
2481
2482 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2483
2484 * util/grub-mount.c: Handle symlinks to directories.
2485
2486 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2487
2488 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
2489 find_file recursively for symlink.
2490
2491 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2492
2493 * tests/util/grub-shell.in: Copy themes.
2494
2495 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2496
2497 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
2498
2499 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2500
2501 * configure.ac: Use 0x8000 for address instead of 8000.
2502
2503 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2504
2505 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
2506 signature.
2507
2508 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2509
2510 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
2511 variable.
2512
2513 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2514
2515 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
2516
2517 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2518
2519 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
2520 file_progress_read_hook.
2521 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
2522
2523 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2524
2525 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
2526 and double.
2527
2528 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
2529
2530 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
2531
2532 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
2533
2534 Rewrite blocklist functions in order to get progress when
2535 reading large extents and decrease amount of blocklist hook calls.
2536
2537 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
2538
2539 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
2540 of SI suffixes.
2541
2542 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
2543
2544 Support --base-clock for serial command to handle weird cards with
2545 non-standard base clock.
2546
2547 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
2548
2549 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
2550 strncpy.
2551 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
2552 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
2553 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
2554 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
2555 + strcpy rather than strncpy.
2556
2557 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
2558
2559 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
2560 (check_pool_label): Likewise. Fixes overflow.
2561 (nvlist_find_value): Fix comparison.
2562
2563 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
2564
2565 * include/grub/misc.h (grub_strcat): Removed. All users changed to
2566 more appropriate functions.
2567
2568 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
2569
2570 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
2571 realloc.
2572
2573 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
2574
2575 * util/grub-mkrescue.in: Do not use UUID search on EFI.
2576
2577 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
2578
2579 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
2580 on core size.
2581
2582 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2583
2584 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
2585
2586 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2587
2588 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
2589 (initialize_tables): reset tl and td to NULL after freeing.
2590
2591 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2592
2593 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
2594
2595 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2596
2597 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
2598 of supported tags.
2599
2600 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2601
2602 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
2603
2604 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2605
2606 * grub-core/loader/multiboot.c: Add support for multiboot kernels
2607 quirks.
2608
2609 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2610
2611 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
2612 a page in protected space.
2613
2614 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2615
2616 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
2617 allocate space for zero-sized modules.
2618
2619 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2620
2621 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
2622
2623 2013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
2624
2625 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
2626
2627 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2628
2629 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
2630 safeguards. Fixes a crash with i386/pc/console.c.
2631
2632 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2633
2634 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
2635 and grub_hostfs_init.
2636
2637 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2638
2639 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
2640 windows method on other platforms without good stat as well.
2641
2642 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2643
2644 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
2645
2646 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2647
2648 Make / in btrfs refer to real root, not the default volume.
2649 Modify mkrelpath to work even if device is mounted with subvolid option.
2650
2651 2013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
2652
2653 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
2654 extra_dist.
2655 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
2656 extra_dist.
2657
2658 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
2659
2660 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
2661 fails.
2662
2663 2013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
2664
2665 * docs/autoiso.cfg: New file.
2666
2667 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
2668
2669 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
2670 COND_GRUB_PE2ELF conditions.
2671
2672 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
2673
2674 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
2675 "vnd", "rd" and "fd" disks.
2676
2677 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
2678
2679 Move grub_disk_write out of kernel into disk.mod.
2680
2681 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
2682
2683 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
2684 handling.
2685
2686 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
2687
2688 * grub-core/kern/misc.c (grub_abort): Make static
2689
2690 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
2691
2692 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
2693 transform invalid unicode codepoints.
2694
2695 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
2696
2697 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
2698 \0 checking.
2699
2700 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
2701
2702 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
2703
2704 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2705
2706 Consolidate cpuid code.
2707
2708 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2709
2710 Move cpuid code to cpuid.h and TSC code to tsc.c.
2711
2712 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
2713
2714 * util/grub.d/00_header.in: Don't use LANG if it's not set.
2715
2716 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
2717
2718 * util/grub-mkconfig.in: Replace $0 with $self.
2719 * util/grub-reboot.in: Likewise.
2720 * util/grub-set-default.in: Likewise.
2721
2722 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
2723
2724 * docs/osdetect.cfg: New file.
2725
2726 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
2727
2728 * tests/util/grub-shell.in: Add new --debug option.
2729
2730 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
2731
2732 * tests/test_unset.in: New test.
2733
2734 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
2735
2736 * tests/test_sha512sum.in: New test.
2737
2738 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2739
2740 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
2741 * include/grub/misc.h: Remove strncat.
2742 * grub-core/lib/posix_wrap/string.h: Likewise.
2743
2744 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2745
2746 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
2747 Try to handle more than 0xFFFF packets.
2748 Reported by: Bernhard Übelacker <bernhardu>.
2749 He also spotted few overflows in first version of this patch.
2750
2751 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2752
2753 * tests/date_unit_test.c: New test.
2754
2755 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2756
2757 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
2758 of first three years after start of validity of unixtime.
2759
2760 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2761
2762 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
2763 division as the one making more sense.
2764 (update_screen): Likewise.
2765 (complete): Likewise.
2766
2767 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2768
2769 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
2770
2771 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2772
2773 Make char and string width grub_size_t rather than grub_ssize_t.
2774
2775 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2776
2777 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
2778 unsigned.
2779 (grub_history_replace): Likewise.
2780
2781 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2782
2783 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
2784 appropriate.
2785
2786 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2787
2788 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
2789 appropriate.
2790
2791 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2792
2793 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
2794 Use unsigned divisions rather than signed variants.
2795
2796 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2797
2798 * grub-core/video/readers/png.c (grub_png_convert_image): Use
2799 unsigned arithmetics.
2800 Add missing break.
2801
2802 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2803
2804 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
2805
2806 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2807
2808 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
2809 rather than signed one.
2810 (recovery): Likewise.
2811
2812 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2813
2814 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
2815
2816 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2817
2818 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
2819 than signed.
2820
2821 2013-10-25 Jon McCune <jonmccune@google.com>
2822
2823 * docs/grub.texi: Cleanup security documentation around signatures.
2824
2825 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2826
2827 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
2828
2829 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2830
2831 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
2832 than int.
2833
2834 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2835
2836 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
2837 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
2838 functions when compiling for kernel.
2839
2840 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2841
2842 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
2843 unsigned long long when using %llu.
2844
2845 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2846
2847 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
2848 terminal after updating progress.
2849
2850 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2851
2852 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
2853 argument. We don't disable Gate A20 in this code.
2854
2855 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2856
2857 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
2858 Conceptually based on change in branch "vbe-on-coreboot".
2859
2860 2013-10-24 Robert Millan <rmh@gnu.org>
2861
2862 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
2863 numeric constants with their symbolic equivalent.
2864 Taken from branch "vbe-on-coreboot".
2865
2866 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
2867
2868 * docs/grub.texi: Fix ordering and use pxref rather than xref.
2869
2870 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
2871
2872 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
2873 divmod64 for offset division.
2874
2875 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2876
2877 Rename .bzrignore to .gitignore. Add "*.o" rule.
2878
2879 * .bzrignore: Renamed to...
2880 * .gitignore: ...this.
2881
2882 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2883
2884 Add new progress module that displays the load progress of files.
2885
2886 * grub-core/lib/progress.c: New file.
2887 * grub-core/Makefile.core.def (progress): New module.
2888 * grub-core/kern/file.c (grub_file_open): File name added.
2889 * (grub_file_read): Progress hook added.
2890 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
2891 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
2892 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
2893 * include/grub/file.h (struct grub_file): Add progress module members.
2894 * include/grub/term.h (struct grub_term_output): Likewise.
2895 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
2896 Terminal velocity added.
2897 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
2898 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
2899 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
2900 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
2901 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
2902 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
2903 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
2904 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
2905 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
2906 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
2907 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
2908 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
2909
2910 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
2911
2912 Verify signatures of signatures unless --skip-sig is specified.
2913
2914 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
2915
2916 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
2917 \0 checking.
2918
2919 Saves 70 bytes on compressed image.
2920
2921 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
2922
2923 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
2924 check.
2925
2926 Saves 10 bytes on compressed image.
2927
2928 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
2929
2930 * grub-core/kern/misc.c (grub_isprint): Move to ...
2931 * include/grub/misc.h (grub_isprint): ... here. Make inline.
2932
2933 Saves 20 bytes on compressed image due to remving exporting.
2934
2935 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
2936
2937 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
2938
2939 Saves 5 bytes on compressed image.
2940
2941 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
2942
2943 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
2944 function get_utf8.
2945
2946 Saves 379 bytes on compressed image.
2947
2948 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
2949
2950 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
2951
2952 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
2953
2954 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
2955
2956 Saves 40 bytes on compressed image.
2957
2958 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
2959
2960 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
2961 mask rather than 64-bit type.
2962
2963 Saves 20 bytes on compressed image.
2964
2965 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
2966
2967 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
2968 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
2969
2970 Saves 273 bytes on compressed image.
2971
2972 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
2973
2974 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
2975 variable length arrays.
2976
2977 Saves 50 bytes on compressed image.
2978
2979 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
2980
2981 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
2982
2983 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
2984
2985 * grub-core/fs/ufs.c: Remove variable length arrays.
2986
2987 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
2988
2989 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
2990
2991 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
2992
2993 * grub-core/fs/zfs.c: Remove variable length arrays.
2994 Reduces zfs.mod by 160 bytes (208 compressed).
2995
2996 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
2997
2998 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
2999
3000 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3001
3002 * grub-core/net/arp.c: Remove variable length arrays.
3003 * grub-core/net/bootp.c: Likewise.
3004 * grub-core/net/dns.c: Likewise.
3005 * grub-core/net/icmp6.c: Likewise.
3006 * grub-core/net/net.c: Likewise.
3007
3008 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3009
3010 * grub-core/fs/ntfs.c: Remove variable length arrays.
3011 Increases ntfs.mod by 64 bytes (but decreases by 3 when
3012 compressed).
3013
3014 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3015
3016 * grub-core/fs/hfs.c: Remove variable length arrays.
3017 Reduces hfs.mod by 8 bytes (52 compressed).
3018
3019 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3020
3021 * grub-core/fs/udf.c: Remove variable length arrays.
3022 Increases udf.mod by 128 bytes (but decreases by 13 when
3023 compressed).
3024
3025 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3026
3027 * grub-core/fs/iso9660.c: Remove variable length arrays.
3028 Increases iso9660.mod by 200 bytes (but decreases by 79 when
3029 compressed).
3030
3031 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3032
3033 * grub-core/fs/nilfs2.c: Remove variable length arrays.
3034 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
3035 compressed).
3036
3037 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3038
3039 * grub-core/fs/xfs.c: Remove variable length arrays.
3040 Reduces xfs.mod by 40 bytes (43 compressed).
3041
3042 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3043
3044 * grub-core/fs/fshelp.c: Remove variable length arrays.
3045 Reduces fshelp.mod by 116 bytes (23 compressed).
3046
3047 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3048
3049 * grub-core/normal/completion.c: Remove variable length arrays.
3050 * grub-core/normal/menu_entry.c: Likewise.
3051
3052 Reduces normal.mod by 496 bytes.
3053
3054 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3055
3056 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
3057 by 356 bytes (158 compressed).
3058
3059 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3060
3061 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
3062 by 364 bytes (169 compressed).
3063
3064 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3065
3066 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
3067 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
3068 * include/grub/types.h (grub_unaligned_uint64_t): New type.
3069
3070 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3071
3072 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
3073 bitmasks to small structures of size chosen to fit in registers.
3074
3075 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3076
3077 * conf/Makefile.common: Use -freg-struct-return on i386. This
3078 decreases code size and improves performance.
3079
3080 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3081
3082 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
3083
3084 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3085
3086 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
3087 "(null)" string.
3088 Simplify expressions to save around 256 bytes in kernel.img.
3089 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
3090
3091 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3092
3093 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
3094 Use GRUB_UTIL_FD_O_* rather than O_*.
3095
3096 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3097
3098 Add haiku-specific functions.
3099
3100 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3101
3102 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
3103
3104 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3105
3106 Move stat () and device mode checking into OS-dependent files as
3107 long as performance doesn't suffer.
3108
3109 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3110
3111 Split make_system_path_relative_to_its_root into separate file
3112 relpath.c from getroot.c as it's common between unix and haiku
3113 but otherwise haiku doesn't use any functions from unix getroot.c.
3114
3115 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3116
3117 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
3118 New function.
3119 (grub_util_is_special_file): Likewise.
3120
3121 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3122
3123 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
3124 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
3125
3126 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3127
3128 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
3129 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
3130
3131 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3132
3133 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
3134 (load_image): Likewise.
3135
3136 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3137
3138 * util/grub-render-label.c: Move backend part to ...
3139 * util/render-label.c: ... here.
3140
3141 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3142
3143 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
3144 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
3145
3146 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3147
3148 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
3149
3150 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3151
3152 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
3153 CD-ROM in case when it's declared as having subpartitions.
3154
3155 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3156
3157 Don't add -lm on haiku.
3158
3159 * configure.ac: Define BUILD_LIBM to -lm on most platforms
3160 and empty on haiku.
3161 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
3162 -lm.
3163
3164 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3165
3166 * configure.ac: Use -melf_*_haiku as target on haiku.
3167
3168 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3169
3170 * Makefile.util.def: Add util/setup.c to extra_dist.
3171
3172 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3173
3174 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
3175 unknown types through.
3176
3177 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3178
3179 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
3180 (grub_util_check_char_device): Likewise.
3181 * include/grub/emu/getroot.h: Likewise.
3182
3183 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3184
3185 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
3186 memset rather than inline static function.
3187
3188 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3189
3190 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
3191 not doing embedded decompressor.
3192
3193 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3194
3195 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
3196 shadowing.
3197 * grub-core/kern/disk.c: Likewise.
3198 * grub-core/kern/misc.c: Likewise.
3199 * include/grub/parser.h: Likewise.
3200 * include/grub/script_sh.h: Likewise.
3201 * include/grub/zfs/zfs.h: Likewise.
3202
3203 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3204
3205 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
3206
3207 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3208
3209 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
3210 defined before trying to use it.
3211
3212 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3213
3214 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
3215 warning.
3216
3217 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3218
3219 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
3220 Use __unused__ rather than __used__ on gcc < 3.2.
3221
3222 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3223
3224 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
3225 gcc < 4.0.
3226 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
3227
3228 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3229
3230 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
3231
3232 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3233
3234 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
3235 * include/grub/emu/misc.h: Likewise.
3236
3237 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3238
3239 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
3240 cur_color.
3241
3242 2013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
3243
3244 * grub-core/tests/checksums.h: Regenerated due to progress bar
3245 get_minimal_size changes.
3246
3247 2013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
3248
3249 Added `tr' command support.
3250
3251 * grub-core/commands/tr.c: New file.
3252 * grub-core/Makefile.core.def: Build rules for new module.
3253
3254 * tests/grub_cmd_tr.in: New test.
3255 * Makefile.util.def: Build rules for new test.
3256
3257 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
3258
3259 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
3260
3261 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
3262
3263 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
3264 * docs/gurb.texi: Likewise.
3265
3266 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
3267
3268 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
3269 Pixmap highlighted section with east and west slices was displayed
3270 incorrectly due to negative width of the central slice.
3271
3272 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
3273
3274 * docs/grub.texi: Graphical options information update.
3275 Removed outdated. Updated current. Inserted missed.
3276
3277 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3278
3279 * docs/grub.texi: Mention few new platform-specific commands.
3280
3281 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3282
3283 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
3284 currently used so this doesn't really have any effect.
3285 Reported by: Douglas Ray <dougray>
3286
3287 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3288
3289 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
3290 compilation but prevents gcc from displaying messages in non-Latin
3291 alphabets.
3292 * conf/Makefile.common: Likewise.
3293
3294 2013-10-16 Hiroyuki YAMAMORI
3295
3296 Handle Japanese special keys.
3297 Reported by: Hiroyuki YAMAMORI.
3298 Codes supplied by: Hiroyuki YAMAMORI.
3299
3300 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
3301
3302 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
3303
3304 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
3305
3306 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
3307 * docs/grub.texi: Likewise.
3308
3309 2013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3310
3311 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
3312 value in case of incomplete read.
3313 (grub_util_fd_write): Likewise.
3314
3315 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3316
3317 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
3318
3319 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3320
3321 * util/grub-editenv.c (create_envblk_file): More from here ...
3322 * util/editenv.c (grub_util_create_envblk_file): ... to here.
3323
3324 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3325
3326 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
3327 canonicalize file name before doing the rest.
3328
3329 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3330
3331 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
3332 mingw32.
3333
3334 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3335
3336 Define grub_util_is_directory/regular/special_file and
3337 use OS-dependent versions rather than to rely on stat().
3338
3339 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3340
3341 * util/grub-mkimage.c: Move backend part to ...
3342 * util/mkimage.c: ... here.
3343
3344 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3345
3346 Allow compilation with mingw64 albeit with warnings due to lack of
3347 %llx/%llu.
3348
3349 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
3350 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
3351 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
3352 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
3353 on mingw64.
3354 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
3355
3356 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3357
3358 Remove leftover references to some of the system headers.
3359
3360 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3361
3362 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
3363 read.
3364
3365 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3366
3367 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
3368 of strerror.
3369
3370 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3371
3372 Split out blocklist retrieving from setup.c to
3373 grub-core/osdep/blocklist.c and add windows implementation since
3374 generic version doesn't work on NTFS on Windows due to aggressive
3375 unflushable cache.
3376
3377 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3378
3379 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
3380 files.
3381
3382 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3383
3384 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
3385 Cut tailing newline. Remove arbitrary limitation. Always use
3386 grub_util_tchar_to_utf8.
3387
3388 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3389
3390 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
3391 * tests/printf_unit_test.c (printf_test): Add %% tests.
3392 Reported by: Paulo Flabiano Smorigo.
3393
3394 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3395
3396 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
3397 implement fsync.
3398
3399 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3400
3401 * configure.ac: Check for nvlist_lookup_string in nvpair since we
3402 use nvlist_lookup_string and don't use nvlist_print.
3403
3404 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3405
3406 Add wrappers around rename, unlink, mkdir, opendir, readdir and
3407 closedir to handle filename charset translation.
3408
3409 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3410
3411 * include/grub/emu/hostdisk.h: Move file operations to
3412 * include/grub/emu/hostfile.h: ... here.
3413
3414 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3415
3416 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
3417 unicode path.
3418
3419 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3420
3421 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
3422
3423 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3424
3425 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
3426 and remove export.h.
3427
3428 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3429
3430 * grub-core/kern/emu/error.c: Removed.
3431 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
3432 explicitly as it's already in libgnu.a.
3433
3434 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3435
3436 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
3437 config-util.h include.
3438
3439 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3440
3441 Split emunet into platform-dependent and GRUB-binding parts. Keep
3442 platform-dependent part in kernel for easy access to OS functions.
3443
3444 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3445
3446 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
3447 open/read/write.
3448
3449 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3450
3451 * grub-core/osdep/windows/emuconsole.c: New file.
3452
3453 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
3454
3455 * conf/Makefile.extra-dist: Add osdep/*/init.c
3456
3457 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3458
3459 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
3460
3461 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3462
3463 * util/grub-probe.c (probe): Separate different drives in hint-str
3464 by spaces and not newlines.
3465 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
3466
3467 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
3468
3469 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
3470 Handle CD-ROMs.
3471
3472 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3473
3474 Pass-through unknown E820 types. It required reorganisation of mmap
3475 module.
3476
3477 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
3478
3479 * Makefile.util.def: Add osdep/init.c to grub-mount files.
3480
3481 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3482
3483 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
3484 fseeko.
3485
3486 2013-10-14 qwertial <qwertial>
3487
3488 * grub-core/gdb_grub.in: Fix overflow and wrong field.
3489
3490 2013-10-14 Jon McCune <jonmccune@google.com>
3491
3492 * docs/grub.texi: Document new signatures possibility.
3493
3494 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3495
3496 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
3497
3498 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3499
3500 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
3501 missing prototype.
3502 (grub_util_tchar_to_utf8): Likewise.
3503
3504 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3505
3506 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
3507 * grub-core/kern/emu/main.c: Add missing include.
3508 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
3509 Don't call grub_util_init_nls.
3510 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
3511 Likewise.
3512
3513 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
3514
3515 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
3516 stat.
3517
3518 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
3519
3520 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
3521
3522 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
3523
3524 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
3525
3526 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
3527
3528 Add a wrapper for fopen. On unix-like systems just pass-through. On
3529 windows use unicode version.
3530
3531 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
3532
3533 Move set_program_name and init_nls to host_init. On windows
3534 fix in this fuction console and argument charset as well.
3535
3536 2013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
3537
3538 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
3539 GRUB_ENABLE_CRYPTODISK.
3540
3541 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
3542 GRUB_ENABLE_CRYPTODISK.
3543 * util/grub-mkconfig_lib.in: Likewise.
3544
3545 2013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
3546
3547 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
3548
3549 2013-10-12 Melki Christian <Christian.melki@saabgroup.com>
3550
3551 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
3552 error when enabling debug.
3553
3554 2013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
3555
3556 * configure.ac: Use -melf_*_obsd on openbsd.
3557
3558 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
3559
3560 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
3561
3562 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
3563
3564 * include/grub/misc.h: Use gnu_printf rather than printf as format
3565 template since our functions are independent of libc.
3566
3567 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
3568
3569 * util/grub-setup.c (setup): Move copying of partition table as
3570 futher up as possible to avoid possible overwrite by floppy routines.
3571
3572 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
3573
3574 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
3575
3576 2013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
3577
3578 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
3579 * docs/grub.texi: Likewise.
3580
3581 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
3582
3583 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
3584 it's mostly unused. Move vestiges to the callers.
3585
3586 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
3587
3588 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
3589 version of salt and hash. Use grub_snprintf rather than snprintf.
3590
3591 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
3592
3593 * docs/grub.texi: Fix problem with braces.
3594
3595 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
3596
3597 * conf/Makefile.extra-dist: Fix extra-dist list.
3598 * grub-core/Makefile.core.def: Likewise.
3599
3600 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
3601
3602 * docs/grub.texi: Document disk names used on Windows and AROS.
3603
3604 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
3605
3606 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
3607 with AROS devs.
3608 * grub-core/osdep/aros/hostdisk.c: Likewise.
3609
3610 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
3611
3612 Avoid including hostfile.h when not necessarry as it pulls
3613 in OS-specific headers which may redefine generic names
3614 like "far".
3615
3616 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
3617
3618 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
3619 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
3620 scrollbar_bottom_pad
3621 * docs/grub.texi: Likewise.
3622
3623 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
3624
3625 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
3626
3627 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
3628
3629 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
3630
3631 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
3632
3633 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
3634 Removed.
3635 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
3636 Made static.
3637
3638 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
3639
3640 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
3641 leftover.
3642
3643 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
3644
3645 Move OS-specific driver configuration to grub_util_fd_open. This
3646 moves OS-dependent parts from kern/emu/hostdisk.c to
3647 grub-core/osdep/*/hostdisk.c.
3648
3649 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
3650
3651 * util/grub-mkimage.c (generate_image): Use size_t instead of
3652 grub_size_t.
3653 * util/grub-mkimagexx.c (locate_sections): Likewise.
3654 (load_image): Likewise.
3655
3656 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
3657
3658 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
3659 size_t.
3660 (grub_util_write_image): Likewise.
3661
3662 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3663
3664 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
3665 get random when no RNG is available.
3666 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
3667
3668 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3669
3670 * include/grub/util/lvm.h: Removed.
3671
3672 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3673
3674 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
3675 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
3676
3677 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3678
3679 * grub-core/osdep/windows/sleep.c: Add missing config.h.
3680
3681 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3682
3683 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
3684
3685 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3686
3687 * grub-core/net/drivers/emu/emunet.c: Move to ..
3688 * grub-core/osdep/linux/emunet.c: ..here.
3689
3690 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3691
3692 * util/ieee1275/ofpath.c: Move to ...
3693 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
3694 * grub-core/osdep/basic/ofpath.c: ..here.
3695
3696 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3697
3698 Move password-querying (util-version) routines to grub-core/osdep.
3699
3700 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3701
3702 Move sleep routines to grub-core/osdep.
3703
3704 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3705
3706 Move OS-dependent files to grub-core/osdep and document it.
3707
3708 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3709
3710 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
3711 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
3712
3713 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3714
3715 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
3716
3717 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3718
3719 * util/misc.c: Remove leftover inclusion of malloc.h.
3720
3721 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3722
3723 * include/grub/setjmp.h: Remove leftover GRUBOF.
3724
3725 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3726
3727 * util/raid.c: Fold into ...
3728 * util/getroot_linux.c: ... here. Make all functions static.
3729
3730 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3731
3732 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
3733 macros to GRUB ones.
3734
3735 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3736
3737 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
3738 occasional bug. If there are too many boot entries or too low
3739 scrollbar height then we need to use another formula to calculate
3740 the position and size of the scrollbar thumb.
3741
3742 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3743
3744 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
3745
3746 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3747
3748 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
3749 * docs/grub.texi: Likewise.
3750
3751 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3752
3753 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
3754 viewport.
3755
3756 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3757
3758 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
3759 minimal width calculations.
3760
3761 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
3762
3763 * docs/grub.texi: Update note on colors on emu console.
3764
3765 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
3766
3767 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
3768 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
3769 it's FS and not GRUB limitation.
3770
3771 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
3772
3773 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
3774
3775 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
3776
3777 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
3778
3779 2013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
3780
3781 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
3782 kernels by version order.
3783
3784 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
3785
3786 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
3787
3788 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
3789
3790 Add AROS hostdisk and getroot routines.
3791
3792 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
3793
3794 Make cryptodisk and diskfilter probe data retrievable programmatically
3795 and not just printable.
3796
3797 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
3798
3799 Split random retrieving code into separate files.
3800
3801 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
3802
3803 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
3804 R_ARM_V4BX.
3805
3806 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
3807
3808 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
3809 condition.
3810 * grub-core/tests/fake_input.c: Likewise.
3811 * grub-core/tests/cmdline_cat_test.c: Likewise.
3812
3813 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
3814
3815 * grub-core/video/capture.c: Do not do finalization when .fini
3816 is called as there is explicit capture_end.
3817
3818 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
3819
3820 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
3821 changing windows to avoid crash.
3822
3823 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
3824
3825 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
3826
3827 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
3828
3829 * po/exclude.pot: Add several strings to exclude.
3830
3831 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
3832
3833 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
3834
3835 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
3836
3837 * autogen.sh: Add ./util/grub-gen-widthspec.c and
3838 ./util/grub-gen-asciih.c to exclude list.
3839
3840 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
3841
3842 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
3843 and don't mark error strings for translation.
3844
3845 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
3846
3847 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
3848 properly in case of missing block size.
3849
3850 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
3851
3852 * grub-core/lib/arm/setjmp.S: Add missing license section.
3853
3854 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
3855
3856 * po/swiss.sed: Add replacement for key names and for term computer.
3857
3858 2013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
3859
3860 * grub-core/gfxmenu/theme_loader.c: New global options for the
3861 theme background image handling. desktop-image-scale-method,
3862 desktop-image-h-align, desktop-image-v-align.
3863 * grub-core/gfxmenu/view.c: Likewise.
3864 * include/gfxmenu_view.h: Likewise.
3865 * include/bitmap_scale.h: Proportional scale functions introduced.
3866 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
3867 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
3868 cases of unexpected input variables for scale functions.
3869 * docs/grub.texi: Updated documentation for new options.
3870
3871 2013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
3872
3873 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
3874
3875 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
3876
3877 * grub-core/tests/checksums.h: Corrected due to changes in
3878 bilinear interpolation function.
3879
3880 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
3881
3882 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
3883 to eliminate artefacts in bilinear interpolation.
3884
3885 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
3886
3887 * grub-core/video/readers/tga.c: Support paletted tga.
3888
3889 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
3890
3891 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
3892 incorrect cbcr setting when in color mode.
3893
3894 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
3895
3896 * grub-core/video/readers/png.c: Support paletted images and clean up
3897 greyscale support.
3898
3899 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
3900
3901 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
3902 usage of wrong table which resulted in mishandling of 4-byte
3903 sequences.
3904
3905 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
3906
3907 * grub-core/term/terminfo.c: Add Home and End key sequences.
3908
3909 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
3910
3911 * grub-core/video/readers/png.c (grub_png_decode_image_header):
3912 Fix formula for computing total number of bytes.
3913
3914 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
3915
3916 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
3917 image processing, fix big-endian and support grayscale.
3918
3919 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
3920
3921 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
3922 Correctly will with maximum transparency when using index color.
3923
3924 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
3925
3926 * grub-core/video/readers/png.c: Support grayscale
3927
3928 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
3929
3930 * grub-core/video/readers/jpeg.c: Support grayscale.
3931
3932 2013-09-26 Jon McCune <jonmccune@google.com>
3933
3934 * grub-core/commands/loadenv.c: Support skipping signature check
3935 and variable names filtering.
3936
3937 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
3938
3939 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
3940 * grub-core/kern/emu/hostfs.c: Likewise.
3941 * util/getroot_unix.c: Likewise.
3942
3943 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
3944
3945 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
3946 Migrate all explicit defines to this new one.
3947
3948 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
3949
3950 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
3951 grub_util_fd_strerror when using grub_util_fd_*.
3952 (grub_util_fd_open_device): Likewise.
3953 (grub_util_biosdisk_read): Likewise.
3954 (grub_util_biosdisk_write): Likewise.
3955 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
3956 (grub_util_fd_strerror): Likewise.
3957 (grub_util_fd_sync): Likewise.
3958 (grub_util_fd_close): Likewise.
3959 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
3960 (grub_util_fd_close): Likewise.
3961 (grub_util_fd_strerror): Likewise.
3962 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
3963 function proto rather than macro.
3964 (grub_util_fd_sync): Likewise.
3965 (grub_util_fd_open): Likewise.
3966 (grub_util_fd_strerror): New proto.
3967
3968 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
3969
3970 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
3971 platforms on which it doesn't work.
3972
3973 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
3974
3975 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
3976 stat immediately to where it's used.
3977
3978 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
3979
3980 * util/getroot.c (grub_util_check_block_device): Move to ...
3981 * util/getroot_unix.c (grub_util_check_block_device): ... here.
3982 * util/getroot.c (grub_util_check_char_device): Move to ...
3983 * util/getroot_unix.c (grub_util_check_char_device): ... here.
3984
3985 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
3986
3987 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
3988 disk closing logic.
3989
3990 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
3991
3992 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
3993
3994 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
3995
3996 * docs/grub.texi (File name syntax): Document ZFS filenames
3997 (/volume@snapshot/...).
3998
3999 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4000
4001 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
4002 Always return full path. Fixes a problem with mkrelpath.
4003
4004 2013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4005
4006 * util/grub-install.in: Add GPT PReP support.
4007 * util/grub-probe.c (probe): Support GPT partition type.
4008 (main): Support -t gpt_parttype.
4009
4010 2013-09-23 Aleš Nesrsta <starous@volny.cz>
4011
4012 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
4013
4014 2013-09-23 Massimo Maggi <me@massimo-maggi.eu>
4015
4016 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
4017
4018 2013-09-23 Tim Hardeck <thardeck>
4019
4020 * util/grub.d/10_hurd.in: Filter out character for the class.
4021 * util/grub.d/10_kfreebsd.in: Likewise.
4022 * util/grub.d/10_linux.in: Likewise.
4023 * util/grub.d/20_linux_xen.in: Likewise.
4024
4025 2013-09-23 Melki Christian <Christian.melki@saabgroup.com>
4026
4027 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
4028 "changed".
4029
4030 2013-09-23 Josh Triplett <josh@joshtriplett.org>
4031
4032 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
4033 boot partition.
4034
4035 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4036
4037 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
4038 doesn't use posix_wrap. Keep literal -fno-builtin however.
4039
4040 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4041
4042 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
4043
4044 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4045 2013-09-23 neil
4046
4047 * configure.ac: Do not enable -Wmissing-noreturn as its
4048 usefulness is limited and creates problems on some OS notably with
4049 code generated by bison.
4050
4051 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4052 2013-09-23 neil
4053
4054 * configure.ac: Do not explicitly enable -Waddress as it's not
4055 supported by all gcc and when it is, it's already enabled by -Wall.
4056
4057 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4058
4059 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
4060 desactivated use of EDID at all.
4061
4062 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4063 2013-09-23 neil
4064
4065 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
4066 video if no text is available.
4067
4068 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4069 2013-09-23 neil
4070
4071 * configure.ac: Substitute TARGET_RANLIB.
4072
4073 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4074 2013-09-23 neil
4075
4076 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
4077
4078 Based on patches from AROS.
4079
4080 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4081 2013-09-23 neil
4082
4083 * grub-core/Makefile.am: Override STRIP and RANLIB.
4084 * configure.ac: compute TARGET_RANLIB.
4085 * INSTALL: Document TARGET_RANLIB
4086
4087 Based on patches from AROS.
4088
4089 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4090
4091 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
4092 that floppies are unpartitioned.
4093
4094 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4095
4096 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
4097 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
4098
4099 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4100
4101 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
4102 less nice but more portable.
4103 * grub-core/lib/posix_wrap/wchar.h: Likewise.
4104
4105 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4106
4107 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
4108 for cheat_fd.
4109 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
4110 functions.
4111 (grub_cryptodisk_cheat_insert): Likewise.
4112 (grub_cryptodisk_close): Likewise.
4113
4114 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4115
4116 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
4117 Use windows path for DEFAULT_DIRECTORY.
4118
4119 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4120
4121 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
4122 difference was likely just gcc version, not anything mingw-related.
4123
4124 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4125
4126 Use Winapi on both cygwin and mingw32 to share more code between both.
4127
4128 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
4129
4130 * util/grub-install.in: Add --grub-editenv option.
4131 * util/grub-install_header (grub_compress_file): Explicitly check for
4132 plain file to avoid cp error.
4133
4134 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
4135
4136 * docs/grub.texi (Device syntax): Document new LVM UUID based device
4137 names; fix LVM driver name (lvm, not lv).
4138 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
4139 names.
4140
4141 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
4142
4143 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
4144 files rather than one file with loads of #if's.
4145 * util/getroot.c: Likewise.
4146
4147 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
4148
4149 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
4150
4151 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
4152
4153 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
4154 GNU/Hurd to the list of checked PRNG.
4155
4156 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
4157
4158 * configure.ac: On FreeBSD use -melf_*_fbsd format.
4159
4160 2013-09-21 Ales Nesrsta <starous@volny.cz>
4161
4162 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
4163
4164 2013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4165
4166 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
4167 * grub-core/disk/lvm.c: Add LVM UUIDs.
4168 * util/getroot.c: Use LVM UUIDs whenever possible.
4169
4170 2013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
4171
4172 * docs/grub.texi (Networking commands): Add documentation for
4173 network related commands.
4174
4175 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
4176
4177 * util/getroot.c (grub_util_open_dm): Check major rather than the name
4178 to determine if device is handled by devmapper.
4179 (convert_system_partition_to_system_disk): Likewise.
4180 (get_dm_uuid): Don't check explicitly if device is mapped, it's
4181 already done in grub_util_open_dm.
4182
4183 2013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
4184
4185 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
4186 Clean up stack manipulation (sync_caches_armv*)
4187
4188 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
4189
4190 * util/lvm.c: Remove since unused. Remove remaining references.
4191
4192 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
4193
4194 Handle the case of partitioned LVM properly.
4195
4196 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
4197 Stop on meeting LVM, mpath or DMRAID.
4198 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
4199 (read_device_map): Likewise.
4200 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
4201 device is full disk rather than erroring out on LVM and similar cases.
4202
4203 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
4204
4205 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
4206
4207 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
4208
4209 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
4210 4K before the end.
4211 Reported by: Leif Lindholm
4212
4213 2013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
4214 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
4215
4216 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
4217 codes.
4218
4219 2013-09-18 Colin Watson <cjwatson@ubuntu.com>
4220
4221 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
4222 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
4223
4224 2013-09-18 Douglas Ray <dougray@cpan.org>
4225
4226 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
4227 as secure.
4228
4229 2013-09-18 Aleš Nesrsta <starous@volny.cz>
4230
4231 * docs/grub.texi: Fix broken link.
4232
4233 2013-09-18 Melki Christian <Christian.melki@saabgroup.com>
4234
4235 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
4236 to break endless loop.
4237
4238 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
4239
4240 * util/grub-fstest.c: Fix several printf formats.
4241 * util/grub-mkimage.c: Likewise.
4242 * util/grub-mkimagexx.c: Likewise.
4243 * util/grub-script-check.c: Likewise.
4244
4245 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
4246
4247 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
4248 error.
4249
4250 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
4251
4252 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
4253
4254 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
4255
4256 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
4257 removed in current versions cygwin_conv_*.
4258
4259 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
4260
4261 * configure.ac: Disable efiemu runtime on cygwin.
4262
4263 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
4264
4265 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
4266 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
4267
4268 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4269
4270 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
4271 error message.
4272
4273 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4274
4275 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
4276 windows variant.
4277 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
4278 data.
4279
4280 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4281
4282 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
4283 when on x86 and not cygwin.
4284 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
4285 -Wl,-melf_x86_64.
4286
4287 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4288
4289 * configure.ac: Set CPP to build one when checkoing for freetype for
4290 build.
4291
4292 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4293
4294 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
4295 [!GRUB_BUILD]: Remove has_argument.
4296
4297 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4298
4299 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
4300 Replace with a dummy.
4301
4302 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4303
4304 * configure.ac: Don't change host_os from mingw to cygwin.
4305
4306 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4307
4308 * configure.ac: Change target_os from windows to cygwin.
4309
4310 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4311
4312 Handle grub-pe2elf and grub-mkfont for cases when build != host.
4313
4314 * Makefile.am (build-grub-mkfont): Don't include gnulib.
4315 (build-grub-gen-asciih): Likewise.
4316 (build-grub-gen-widthspec): Likewise.
4317 * Makefile.util.def (grub-pe2elf): Remove.
4318 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
4319 * configure.ac: Separate tests for build.
4320 Move ./build-grub-pe2elf to grub-core.
4321 Fix typo.
4322 * grub-core/Makefile.am (build-grub-pe2elf): New target.
4323 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
4324 defined.
4325 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
4326 constants.
4327 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
4328 * util/grub-pe2elf.c: Simplify not to rely on getopt.
4329 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
4330
4331 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4332
4333 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
4334 mingw32 as well based on grub_util_get_disk_size.
4335 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
4336 grub_util_get_fd_size.
4337 (sync): Removed.
4338 (fsync): Moved to ...
4339 * grub-core/kern/emu/misc.c (fsync): ... here.
4340
4341 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4342
4343 * include/grub/mm.h (grub_extend_alloc): Remove.
4344 * grub-core/loader/i386/pc/plan9.c: Use own version of
4345 grub_extend_alloc with appropriate types.
4346
4347 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4348
4349 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
4350
4351 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4352
4353 * util/getroot.c: Include sys/wait.h only when we need waitpid.
4354
4355 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4356
4357 Fix dependencies on cygwin.
4358
4359 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
4360 dependencies when used and defined.
4361 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
4362
4363 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4364
4365 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
4366 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
4367
4368 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4369
4370 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
4371 implementation available to cause compile-time rather than runtime
4372 error.
4373
4374 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4375
4376 * util/grub-fstest.c: Don't check for symlinks on windows.
4377
4378 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4379
4380 * INSTALL: Mention unavailability of man pages when cross-compiling.
4381
4382 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4383
4384 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
4385 and gcry_log_bug.
4386 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
4387
4388 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4389
4390 * INSTALL: Document cross-compilation.
4391 * acinclude.m4: Determine whether nm support -P and --defined-only.
4392 * configure.ac: Add TARGET_ to all variables pertaining to target
4393 that don't have it yet.
4394 * gentpl.py: Likewise.
4395 * grub-core/Makefile.am: Likewise.
4396 * grub-core/genmod.sh.in: Likewise.
4397 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
4398 as well.
4399
4400 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
4401
4402 * configure.ac: Remove -Wempty-body. It's not essential and needs
4403 recent gcc.
4404
4405 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
4406
4407 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
4408 * util/getroot.c: Likewise.
4409
4410 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4411
4412 * grub-core/disk/ahci.c: Add needed explicit cast.
4413 * grub-core/lib/backtrace.c: Likewise.
4414 * grub-core/net/ip.c: Likewise.
4415 * grub-core/net/tcp.c: Likewise.
4416 * grub-core/net/udp.c: Likewise.
4417
4418 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4419
4420 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
4421
4422 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4423
4424 * util/import_gcry.py: Add final newline in visibility.h.
4425
4426 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4427
4428 * conf/Makefile.common: Fix typo.
4429
4430 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4431
4432 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
4433
4434 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4435
4436 * Makefile.am (widthspec.h): Fix typo.
4437 * util/grub-gen-widthspec.c: Likewise.
4438
4439 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4440
4441 Move ascii.h and widthspec.h generation to a separate build-time-only
4442 tool.
4443
4444 2013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
4445
4446 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
4447 Always fill bootdisk info and improve check for NetBSD disklabel.
4448
4449 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
4450
4451 * conf/Makefile.extra-dist: Add util/bin2h.c.
4452 Reported by: floppym.
4453
4454 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
4455
4456 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
4457
4458 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
4459
4460 * configure.ac: Disable unifont and starfield if no freetype was found.
4461
4462 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
4463
4464 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
4465 on NetBSD and OpenBSD.
4466
4467 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
4468
4469 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
4470
4471 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
4472
4473 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
4474 reduced. Inheritant options are processed during the theme loading.
4475
4476 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
4477
4478 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
4479
4480 2013-08-14 Avik Sil <aviksil@in.ibm.com>
4481
4482 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
4483
4484 2013-08-14 Avik Sil <aviksil@in.ibm.com>
4485
4486 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
4487 using qemu.
4488
4489 2013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4490
4491 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
4492 remove-potcdate.sed.
4493
4494 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
4495
4496 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
4497 unused attribute from pull argument.
4498
4499 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
4500
4501 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
4502 memory leak.
4503
4504 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
4505
4506 * util/getroot.c (pull_lvm_by_command): add --separator option
4507 to vgs call to disable padding of output to 10 characters.
4508
4509 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
4510
4511 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
4512 here ...
4513 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
4514 here.
4515
4516 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
4517
4518 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
4519 length.
4520
4521 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
4522
4523 Fix handling of build-time grub-bin2h and grub-mkfont when doing
4524 full Canadian cross. Tested with build=x86_64, host=arm,
4525 target=ppc-ieee1275.
4526
4527 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
4528
4529 * configure.ac: Error if no $BUILD_CC could be found.
4530 Reported by: DevHC.
4531
4532 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
4533
4534 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
4535 i386-multiboot.
4536
4537 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
4538
4539 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
4540 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
4541
4542 2013-08-13 Colin Watson <cjwatson@ubuntu.com>
4543
4544 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
4545 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
4546 falling back to the partition device, otherwise a later call to this
4547 function may fail spuriously.
4548 Reported by Axel Beckert. Fixes Debian bug #708614.
4549
4550 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
4551
4552 * autogen.sh: Replace find -not by the POSIX-compliant find !.
4553
4554 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
4555
4556 Prevent shadowing of stdlib's devname(3) on BSD.
4557
4558 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
4559 and devlast to diskname and disklast, respectively.
4560
4561 2013-08-11 Colin Watson <cjwatson@ubuntu.com>
4562
4563 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
4564
4565 2013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4566
4567 * docs/grub.texi: Introduce terminal window position options:
4568 terminal-left: terminal window's left position
4569 terminal-top: terminal window's top position
4570 terminal-width: terminal window's width
4571 terminal-height: terminal window's height
4572 terminal-border: terminal window's border width
4573 * grub-core/gfxmenu/theme-loader.c: Likewise.
4574 * include/grub/gfxmenu_view.h: Likewise.
4575 * po/exlude.pot: Likewise.
4576 * grub-core/gfxmenu/view.c: Likewise.
4577 Also updated minimal window size.
4578 Also terminal_sanity_check function has been introduced.
4579 * grub-core/tests/checksums.h: Update (terminal window height
4580 is adjusted now for low resolution screen)
4581
4582 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
4583
4584 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
4585 position).
4586
4587 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
4588
4589 * po/exclude.pot: Add few recent exceptions.
4590
4591 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
4592
4593 * tests/grub_func_test.in: Add unicode.pf2.
4594
4595 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
4596
4597 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
4598 standard rather than noral color, in line with other terminals.
4599
4600 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
4601
4602 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
4603 analysis.
4604
4605 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
4606
4607 * grub-core/loader/arm/linux.c: Change printf to dprintf.
4608
4609 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
4610
4611 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
4612 inappropriate printf.
4613
4614 2013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
4615
4616 * .bzrignore: Remove grub-core/lib/dtc-grub,
4617 grub-core/Makefile.libfdt.def
4618 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
4619
4620 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
4621
4622 * include/grub/video.h (grub_video_register): Keep double-linked as
4623 well as single-linked invariants.
4624 Reported by: qwertial.
4625
4626 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
4627
4628 * grub-core/commands/nativedisk.c (get_uuid): Handle
4629 GRUB_DISK_DEVICE_UBOOTDISK_ID.
4630
4631 2013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
4632
4633 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
4634 maximum of NW, N, NE heights instead of N's height and maximum of
4635 NW, W, SW widths instead of W's width. (So the box will be always
4636 correctly drawn)
4637
4638 2013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
4639
4640 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
4641 Fix misuse of variable count.
4642
4643 2013-07-18 Leif Lindholm <leif.lindholm@arm.com>
4644 2013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
4645 2013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
4646
4647 New ports to arm-uboot and arm-efi.
4648 Mostly by Leif Lindholm with some additions from
4649 Francesco Lavra and cleanup by Vladimir Serbinenko.
4650
4651 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
4652
4653 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
4654 and not before.
4655 Reported by: Leon Drugi.
4656
4657 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
4658
4659 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
4660 Reported by: Paulo Flabiano Smorigo.
4661
4662 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
4663
4664 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
4665
4666 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
4667
4668 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
4669
4670 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
4671
4672 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
4673
4674 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
4675
4676 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
4677
4678 2013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
4679
4680 * grub-core/net/bootp.c: Export net_* variables.
4681 * grub-core/net/net.c: Likewise.
4682
4683 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
4684
4685 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
4686
4687 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
4688
4689 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
4690
4691 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
4692
4693 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
4694
4695 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
4696
4697 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
4698
4699 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
4700
4701 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
4702 <= 0.
4703
4704 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
4705
4706 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
4707 functions.
4708
4709 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
4710
4711 * grub-core/fs/zfs/zfs_lz4.c: New file.
4712 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
4713
4714 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
4715
4716 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
4717
4718 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
4719
4720 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
4721 (check_pool_label): Likewise.
4722 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
4723
4724 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
4725
4726 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
4727
4728 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
4729
4730 * docs/grub.texi (Commands): Document postition parameters
4731 for menuentry command.
4732
4733 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
4734
4735 * util/grub-mknetdir.in: Remove stray line from help output.
4736
4737 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
4738
4739 Remove early sm712 init as there is no reason for it (the "watchdog"
4740 effect was due to wrong GPIO map).
4741
4742 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
4743
4744 * grub-core/commands/pcidump.c: Remove static variables.
4745
4746 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
4747
4748 * grub-core/commands/sleep.c: Refresh screen before sleeping.
4749
4750 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
4751
4752 * configure.ac: Move delimiter after the infos.
4753
4754 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
4755
4756 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
4757
4758 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
4759
4760 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
4761 not filling whole 8x16 space.
4762
4763 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
4764
4765 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
4766
4767 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
4768
4769 * configure.ac: Indicate which liblzma is used if any.
4770
4771 2013-06-21 Paul Wise <pabs3@bonedaddy.net>
4772 2013-06-21 Craig Sanders <savannah@taz.net.au>
4773
4774 * util/grub-reboot.in: Document submenu usage.
4775
4776 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
4777
4778 * .bzrignore: Update with a number of new test-related files.
4779
4780 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
4781
4782 * util/grub-script-check.c: Fail on scripts containing no
4783 commands, to guard against corrupted grub-mkconfig setups that
4784 produce no useful output.
4785 * tests/grub_script_no_commands.in: New test.
4786 * Makefile.util.def (grub_script_no_commands): Add.
4787 Reported by Hans Putter. Fixes Debian bug #713886.
4788
4789 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
4790
4791 * grub-core/disk/diskfilter.c: Forgot to remove comment
4792 from previous commit.
4793
4794 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
4795
4796 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
4797 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
4798
4799 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
4800
4801 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
4802
4803 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
4804
4805 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
4806 rescan diskfilter devices until nothing new is found.
4807
4808 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
4809
4810 Fix casts when compiling coreboot-specific code for 64-bit EFI.
4811
4812 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
4813
4814 Don't try to detect cbfs on *-emu.
4815
4816 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
4817
4818 * grub-core/term/gfxterm.c: USe right background color when scrolling.
4819
4820 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
4821
4822 Add support for processed coreboot payload chainloading.
4823
4824 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
4825
4826 Enable coreboot information commands even when not loaded as
4827 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
4828
4829 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
4830
4831 Support for cbfs. Also factor out the part which is common
4832 for all archives to a separate module. This splits tar from cpio
4833 as they are very different but keeps cpio, cpio_be, odc and newc
4834 together since they're very similar.
4835
4836 2013-06-15 David Michael <fedora.dm0@gmail.com>
4837
4838 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
4839 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
4840
4841 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
4842
4843 * tests/grub_script_eval.in: Really add the eval test.
4844
4845 2013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
4846
4847 Move flavour-specific parts out of common cpio.c file and
4848 rename remaining to cpio_common.c
4849
4850 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
4851
4852 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
4853 off new function grub_script_execute_new_scope. Change callers to use
4854 either of them as appropriate.
4855 * grub-core/commands/eval.c: New command eval.
4856 * docs/grub.texi (Commands): Document it.
4857
4858 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
4859
4860 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
4861 to fetch values when listing.
4862
4863 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
4864
4865 Fix make dist on non-pc.
4866
4867 2013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
4868
4869 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
4870 without a device name.
4871
4872 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4873
4874 Remove enable_executable_check as it's not needed anymore.
4875 Reported by: dougray.
4876
4877 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4878
4879 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
4880 ambigouos RAID before discovering RAIDs on top of it.
4881 Reported by: bodom.
4882
4883 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4884
4885 Fix typo (failback vs fallback).
4886
4887 2013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
4888
4889 * util/grub.d/30_os-prober.in: Add support for probing EFI
4890 System Partition (as of os-prober 1.58).
4891
4892 2013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
4893
4894 * configure.ac: Add yet another path to unifont. For parabola.
4895
4896 2013-05-30 Josh Triplett <josh@joshtriplett.org>
4897
4898 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
4899 handling to copy the killed characters to the kill buffer as
4900 UCS4 stored as grub_uint32_t rather than as 8-bit characters
4901 stored as char. Eliminates UCS4 truncation and corruption
4902 observed when killing characters with Ctrl-u and yanking them
4903 back with Ctrl-y.
4904
4905 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
4906
4907 Detach optional parts of gfxterm and integrate in with coreboot init.
4908
4909 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
4910
4911 Move blit and fill dispatcher to appropriate files to decrease export
4912 and relocation overhead.
4913
4914 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
4915
4916 * grub-core/font/font.c, include/grub/font.h: Inline simple font
4917 functions.
4918
4919 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
4920
4921 * grub-core/Makefile.am: Fix compilation problem with some
4922 automake versions.
4923
4924 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
4925
4926 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
4927
4928 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
4929
4930 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
4931 automake versions.
4932
4933 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
4934
4935 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
4936 SSDT.
4937
4938 2013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
4939
4940 * grub-core/partmap/dfly.c: New partition map.
4941
4942 2013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
4943
4944 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
4945 checking.
4946 Reported by: Francesco Lavra.
4947
4948 2013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
4949
4950 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
4951 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
4952 false conditions.
4953 * conf/Makefile.common: define dist_grubconf_DATA
4954
4955 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4956
4957 Progressively skip menu elements on small terminals rather
4958 than crashing.
4959
4960 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4961
4962 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
4963 to avoid losing last column.
4964
4965 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4966
4967 * po/exclude.pot: Add missing string "%C".
4968
4969 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4970
4971 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
4972 after the test.
4973
4974 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
4975
4976 * util/grub-install.in: Gettextize "Not found" message.
4977
4978 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
4979
4980 Fix distfiles list.
4981 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
4982
4983 2013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4984
4985 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
4986 present.
4987 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
4988
4989 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
4990
4991 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
4992
4993 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
4994
4995 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
4996 attribute since structure is not necessarily aligned.
4997
4998 2013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
4999
5000 * docs/grub.texi (Device syntax): Clarify description of network
5001 drives.
5002
5003 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5004
5005 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
5006 for vasprintf presence.
5007
5008 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5009
5010 * util/grub-install.in: Handle efibootmgr presence check.
5011 Reported by: Leif Lindholm.
5012
5013 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5014
5015 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
5016 new strings to translate.
5017
5018 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5019
5020 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
5021 yet another string (pun intended) to translate.
5022
5023 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5024
5025 * po/POTFILES-shell.in: Autogenerate it.
5026
5027 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5028
5029 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
5030
5031 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5032
5033 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
5034 misnomer.
5035
5036 2013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
5037
5038 * docs/grub.texi (Network): Add description of net_default_interface,
5039 net_default_ip and net_default_mac. Rewrite variables description
5040 to emphasize that they are per-interface.
5041
5042 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
5043
5044 New test: cmdline and cat.
5045
5046 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
5047
5048 * grub-core/commands/cat.c: Show UTF-8 characters.
5049
5050 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
5051
5052 * conf/Makefile.common: Poison float and double on non-emu.
5053
5054 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
5055
5056 * configure.ac: Don't disable extended registers on emu.
5057
5058 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5059
5060 * configure.ac: Don't use extended registers on x86_64.
5061 Reported by: Peter Jones.
5062
5063 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5064
5065 * grub-core/term/efi/console.c: Fix compile error.
5066
5067 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5068
5069 Compressed HFS+ support.
5070
5071 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5072
5073 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
5074 pixel".
5075
5076 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5077
5078 Menu color test.
5079
5080 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5081
5082 * grub-core/tests/setjmp_test.c: New test.
5083
5084 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5085
5086 New variables 'net_default_*' to determine MAC/IP of default interface.
5087
5088 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5089
5090 * tests/gettext_strings_test.in: A test to check for strings not
5091 marked for translation.
5092
5093 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5094
5095 * autogen.sh: Exclude unused libgcrypt files from translation.
5096
5097 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5098
5099 Simplify few strings.
5100
5101 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5102
5103 Mark few forgotten strings for translation.
5104
5105 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5106
5107 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
5108 rather than printf.
5109
5110 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5111
5112 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
5113 rather than printf.
5114 * grub-core/video/readers/tga.c: Likewise.
5115
5116 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5117
5118 * tests/priority_queue_unit_test.cc: New test.
5119
5120 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5121
5122 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
5123 than printf.
5124
5125 2013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
5126
5127 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
5128 variable for one time boot menu entry.
5129
5130 2013-05-05 Bean <bean123ch@gmail.com>
5131
5132 * grub-core/commands/testspeed.c: New command testspeed.
5133
5134 2013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5135
5136 Factor-out human-size printing.
5137
5138 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5139
5140 Agglomerate more mallocs to speed-up gfxterm.
5141
5142 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5143
5144 Speed-up gfxterm by slightly agglomerating mallocs.
5145
5146 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5147
5148 More video checks.
5149
5150 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5151
5152 Speed-up gfxterm by saving intermediate results in index+alpha
5153 format.
5154
5155 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5156
5157 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
5158 test.
5159
5160 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5161
5162 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
5163 line of timeout as it may contain the rest of long line.
5164
5165 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5166
5167 * grub-core/normal/main.c: Fix freed memory dereference.
5168
5169 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5170
5171 Fix several memory leaks.
5172
5173 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5174
5175 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
5176
5177 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5178
5179 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
5180
5181 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5182
5183 Fix test -a and -o precedence.
5184 Reported by: adrian15.
5185
5186 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5187
5188 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
5189
5190 2013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
5191
5192 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
5193 and add it as source to functional_test module.
5194
5195 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5196
5197 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
5198
5199 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5200
5201 New series of tests for gfxterm and gfxmenu.
5202
5203 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5204
5205 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
5206 the theme path relative to $prefix/themes.
5207
5208 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5209
5210 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
5211 Fix order bug.
5212 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
5213
5214 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5215
5216 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
5217 descriptor.
5218
5219 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5220
5221 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
5222 grub_gfxmenu_timeout_notifications.
5223 (grub_gfxmenu_view_destroy): Likewise.
5224
5225 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5226
5227 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
5228
5229 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5230
5231 Several fixes to ieee1275 and big-endian video.
5232
5233 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5234
5235 Add missing exports on mips.
5236
5237 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5238
5239 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
5240 if no unifont is found.
5241 Restore original keyboard.
5242
5243 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5244
5245 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
5246 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
5247
5248 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5249
5250 First automated video test (running videotest and comparing results)
5251
5252 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5253
5254 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
5255 instead of 2 to have full RGB/CMY test pattern.
5256
5257 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
5258
5259 Add few more tests.
5260
5261 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
5262
5263 * include/grub/arc/arc.h: Account for missing "other" peripheral on
5264 ARCS. All users updated.
5265
5266 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
5267
5268 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
5269
5270 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
5271
5272 * grub-core/partmap/amiga.c: Fix size of checksummed block.
5273
5274 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5275
5276 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
5277 Reported by: qwertial.
5278
5279 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
5280
5281 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
5282 with syntax "XXX deg"/"XXX °".
5283
5284 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5285
5286 Make PCI init in i386-qemu port more robust.
5287
5288 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
5289
5290 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
5291 cached view is reused.
5292 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
5293 open boot menus.
5294
5295 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5296
5297 Unify more code in grub-install_header.
5298
5299 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5300
5301 Add few new tests.
5302
5303 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5304
5305 Enforce disabling of firmware disk drivers when native drivers kick in.
5306
5307 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5308
5309 * grub-core/commands/nativedisk.c: Customize the list of modules on
5310 platform. Don't try to search for disks already using native drivers.
5311
5312 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5313
5314 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
5315 platforms.
5316
5317 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5318
5319 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
5320 handling of variables containing backslash.
5321
5322 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5323
5324 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
5325 dereference.
5326 Reported by: qwertial.
5327
5328 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5329
5330 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
5331
5332 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5333
5334 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
5335 dereference.
5336 Reported by: qwertial.
5337
5338 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5339
5340 * docs/grub.texi: Add a comment about usefullness of nativedisk.
5341
5342 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5343
5344 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
5345
5346 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5347
5348 New command `nativedisk'.
5349
5350 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5351
5352 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
5353 * grub-core/loader/i386/bsd.c: Likewise.
5354
5355 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5356
5357 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
5358
5359 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5360
5361 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
5362 grub_get_unaligned16 rather than shifts.
5363
5364 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5365
5366 * grub-core/kern/file.c: Use const char * rather than casting to
5367 non-const.
5368
5369 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5370
5371 * grub-core/commands/probe.c: Add missing grub_device_close.
5372
5373 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5374
5375 * INSTALL: Document linguas.sh.
5376
5377 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5378
5379 Remove POTFILES.in and regenerate it in autogen.sh.
5380
5381 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5382
5383 Move --directory/--override-directorry to grub-install_header and unify.
5384
5385 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5386
5387 * grub-core/term/morse.c: Macroify dih and dah.
5388
5389 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5390
5391 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
5392
5393 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
5394
5395 * grub-core/term/ns8250.c: Systematically probe ports by writing
5396 to SR before using them.
5397
5398 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5399
5400 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
5401 disks.
5402 (check_sas): Get sas_adress info.
5403
5404 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
5405
5406 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
5407 ports.
5408
5409 2013-04-27 Leon Drugi <eyak>
5410
5411 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
5412 BSS clearing.
5413
5414 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
5415
5416 Core compression test.
5417
5418 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
5419
5420 Implement grub_machine_get_bootlocation for ARC.
5421
5422 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
5423
5424 Improve AHCI detection and command issuing.
5425
5426 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5427
5428 Fix pseries test.
5429
5430 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5431
5432 Make 'make check' work on emu.
5433
5434 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5435
5436 Replace libcurses with our own vt100 handling for the ease of testing
5437 and decreasing prerequisites.
5438
5439 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5440
5441 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
5442
5443 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5444
5445 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
5446 compile when not needed.
5447
5448 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5449
5450 * tests/pseries_test.in: New test.
5451
5452 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5453
5454 Add test to check that different boot mediums work.
5455
5456 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5457
5458 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
5459 ofw limited ISO support.
5460
5461 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5462
5463 * configure.ac: Fix loongson conditional.
5464
5465 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5466
5467 Enable mipsel-arc.
5468
5469 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5470
5471 Add serial on ARC platform.
5472
5473 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5474
5475 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
5476 commit.
5477
5478 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5479
5480 * tests/partmap_test.in: Add missing double semicolon.
5481
5482 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5483
5484 * util/grub-mkrescue.in: Fix loongson filename.
5485
5486 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5487
5488 * util/grub-mkrescue.in: Move all files that don't have a location
5489 set in stone under /boot/grub. Use ISO hard links rather than copies
5490 to save some space.
5491
5492 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5493
5494 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
5495 bogus SLOF values.
5496
5497 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5498
5499 Make check work on mips-arc.
5500
5501 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5502
5503 * util/grub-mkrescue.in: Alias sashARCS as sash.
5504
5505 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5506
5507 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
5508 it's serial.
5509
5510 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5511
5512 * util/grub-install.in: Fix target fo qemu_mips.
5513 Fix extension on EFI.
5514
5515 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5516
5517 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
5518 in front of chosen entry to mark it even if highlighting is lost.
5519
5520 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5521
5522 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
5523 gfxpayload=keep if cbfb is active.
5524
5525 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5526
5527 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
5528
5529 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5530
5531 Add missing video ids to coreboot and ieee1275 video.
5532
5533 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5534
5535 * util/grub-mkrescue.in: Add mips-arc support.
5536
5537 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5538
5539 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
5540
5541 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5542
5543 Move mips-arc link address. Previous link address was chosen
5544 in belief that RAM on SGI platforms grows down while in fact it
5545 grows up from an unusual base.
5546
5547 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
5548
5549 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
5550 Fix a type which prevented CD-ROM and floppy boot.
5551
5552 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
5553
5554 Support coreboot framebuffer.
5555
5556 * grub-core/video/i386/coreboot/cbfb.c: New file.
5557
5558 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
5559
5560 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
5561 detecting too small regions.
5562
5563 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
5564
5565 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
5566
5567 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
5568
5569 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
5570 Remove dprintf.
5571 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
5572
5573 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
5574
5575 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
5576 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
5577 * grub-core/loader/powerpc/ieee1275/linux.c
5578 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
5579
5580 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
5581
5582 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
5583 Look for /boot-rom as well as /rom/boot-rom.
5584
5585 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
5586
5587 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
5588 handling when creating text_layer failed.
5589 * grub-core/video/video.c (grub_video_create_render_target):
5590 Set result to 0 on error.
5591 (grub_video_delete_render_target): Do not dereference NULL.
5592
5593 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
5594
5595 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
5596 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
5597 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
5598 (grub_linux_load64): Mask out 2 high bits.
5599
5600 2013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
5601
5602 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
5603 more place.
5604
5605 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
5606
5607 Add support for pseries and other bootinfo machines to grub-mkrescue.
5608
5609 Tested by: Paulo Flabiano Smorigo.
5610
5611 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
5612
5613 * util/grub-mkrescue.in: Add GPT for EFI boot.
5614
5615 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
5616
5617 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
5618 It improves performance in qemu.
5619
5620 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
5621
5622 * build-aux/snippet: Add missing gnulib files.
5623
5624 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
5625
5626 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
5627
5628 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
5629
5630 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
5631
5632 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5633 2013-04-15 Peter Jones <pjones@redhat.com>
5634
5635 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
5636 sectors.
5637 Based on patch by Peter Jones.
5638
5639 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5640
5641 Fix DMRAID partition handling.
5642
5643 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5644
5645 * tests/grub_cmd_date.in: Skip on sparc64.
5646
5647 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5648
5649 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
5650 firmware error messages.
5651
5652 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5653
5654 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
5655 source and destination differ.
5656
5657 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5658
5659 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
5660 detection.
5661
5662 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
5663
5664 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
5665 match config-util.h to avoid warnings and increase compatibility.
5666
5667 2013-04-14 Szymon Janc <szymon@janc.net.pl>
5668 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
5669
5670 Add option to compress files on install/image creation.
5671
5672 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
5673
5674 * docs/grub-dev.texi: Rearrange menu to match the section order.
5675 Reported by: Bryan Hundven.
5676
5677 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
5678
5679 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
5680
5681 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
5682
5683 Move GRUB out of system area when using xorriso 1.2.9 or later.
5684
5685 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
5686
5687 * tests/grub_cmd_date.in: Add missing exit 1.
5688
5689 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
5690
5691 * tests/partmap_test.in: Skip on sparc64.
5692
5693 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
5694
5695 Support grub-shell on sparc64.
5696
5697 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
5698
5699 Support mkrescue on sparc64.
5700
5701 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
5702
5703 Allow IEEE1275 ports on path even if it wasn't detected automatically.
5704 Needed on OpenBIOS due to incomplete device tree.
5705
5706 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
5707
5708 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
5709 would be otherwise excluded.
5710
5711 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
5712
5713 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
5714 Inline name defines used only once.
5715
5716 2013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
5717
5718 Fix memory leaks in ofnet.
5719 Reported by: Francesco Lavra.
5720
5721 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5722
5723 * docs/man/grub-glue-efi.h2m: Add missing file.
5724
5725 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5726
5727 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
5728
5729 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5730
5731 Better support Apple Intel Macs on CD.
5732
5733 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5734
5735 Replace stpcpy with grub_stpcpy in tools.
5736
5737 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5738
5739 Handle Japanese special keys.
5740 Reported by: Hiroyuki YAMAMORI.
5741 Codes supplied by: Hiroyuki YAMAMORI.
5742
5743 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5744
5745 * util/grub-mkimage.c: Document memdisk implying --prefix.
5746
5747 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5748
5749 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
5750 much we can do about it anyway.
5751
5752 2013-04-12 Aleš Nesrsta <starous@volny.cz>
5753
5754 Fix handling of split transfers.
5755
5756 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5757
5758 * grub-core/net/http.c: Fix bad free.
5759
5760 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5761
5762 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
5763 than buffer size.
5764
5765 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5766
5767 Disable partmap check on i386-ieee1275 due to openfirmware issues.
5768
5769 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5770
5771 * tests/util/grub-shell.in: Fix it on powerpc.
5772
5773 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5774
5775 Turn off QEMU ACPI-way since new releases don't have shutdown port
5776 anymore.
5777
5778 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5779
5780 * docs/grub.texi: Update coreboot status info.
5781
5782 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5783
5784 * tests/grub_cmd_date.in: New test for datetime.
5785
5786 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5787
5788 * tests/partmap_test.in: Fix missing qemudisk setting.
5789
5790 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5791
5792 Support i386-ieee1275 grub-mkrescue and make check on it.
5793
5794 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5795
5796 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
5797 feature for it.
5798
5799 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5800
5801 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
5802 GRUB_CMDLINE_XEN_DEFAULT.
5803 Reported by: Marc Warne (GigaTux) <gigatux>
5804
5805 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5806
5807 Import new gnulib.
5808
5809 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5810
5811 Use ACPI shutdown intests as traditional port was removed.
5812
5813 2013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
5814
5815 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
5816 distinction.
5817
5818 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5819
5820 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
5821 Fix few warining messages and leaks while on it.
5822
5823 2013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
5824
5825 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
5826 links under grub-core/lib/libgcrypt-grub/mpi.
5827
5828 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5829
5830 Fix ia64-efi image generation on big-endian machines. Deduplicate
5831 some code while on it.
5832 Reported by: Leif Lindholm.
5833
5834 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
5835
5836 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
5837 as extra_dist.
5838
5839 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
5840
5841 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
5842
5843 2013-04-08 Bryan Hundven <bryanhundven@gmail.com>
5844
5845 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
5846 texinfo-5.1.
5847
5848 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5849
5850 * grub-core/normal/term.c: Few more fixes for menu entry editor
5851 rendering.
5852 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
5853
5854 2013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
5855
5856 * grub-core/normal/term.c: Few more fixes for menu entry editor
5857 rendering.
5858 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
5859
5860 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
5861
5862 * conf/Makefile.extra-dist (EXTRA_DIST): Add
5863 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
5864
5865 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
5866
5867 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
5868 instead of hardcoding grub.mo.
5869
5870 2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
5871
5872 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
5873
5874 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5875
5876 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
5877 grub-core/disk/geli.c.
5878
5879 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5880
5881 * util/grub-mkfont.c: Prefer enum to #define.
5882
5883 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5884
5885 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
5886
5887 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5888
5889 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
5890
5891 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5892
5893 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
5894
5895 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5896
5897 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
5898
5899 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5900
5901 * include/grub/bsdlabel.h: Use enums.
5902
5903 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5904
5905 Move GRUB_CHAR_BIT to types.h.
5906
5907 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
5908
5909 * docs/grub.texi: Document more user commands.
5910
5911 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
5912
5913 * docs/grub.texi: Document menuentry --id option.
5914
5915 2013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
5916
5917 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
5918
5919 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5920
5921 Unify file copying setup across different install scripts. Add
5922 options for performing partial install.
5923
5924 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5925 2013-04-04 Peter Jones <pjones@redhat.com>
5926
5927 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
5928
5929 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5930
5931 Use TSC as a possible time source on i386-ieee1275.
5932
5933 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5934
5935 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
5936 Init err.
5937
5938 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5939
5940 * util/grub-setup.c (setup): Handle some corner cases.
5941
5942 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5943
5944 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
5945
5946 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
5947
5948 * grub-core/commands/verify.c: Save verified file to avoid it being
5949 tampered with after verification was done.
5950
5951 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
5952
5953 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
5954 reported width by one to compensate for curesor algorithm problem.
5955
5956 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
5957
5958 Fix screen corruption in menu entry editor and simplify the code
5959 flow while on it.
5960
5961 2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
5962
5963 * util/grub-mount.c (fuse_init): Return error if fuse_main
5964 failed.
5965
5966 2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
5967
5968 * include/grub/elf.h: Add missing ARM relocation codes and fix
5969 existing ones.
5970
5971 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
5972
5973 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
5974
5975 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
5976 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
5977
5978 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
5979 into account when calculating radius.
5980
5981 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
5982
5983 * grub-core/gfxmenu/view.c: Fix off-by-one error.
5984
5985 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
5986
5987 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
5988
5989 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
5990
5991 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
5992 missing closing bracket.
5993
5994 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
5995
5996 * INSTALL: Mention xorriso requirement.
5997
5998 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
5999
6000 * grub-core/commands/verify.c: Fix hash algorithms values for
6001 the first three hashes - they start with 1, not with 0.
6002
6003 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
6004
6005 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
6006 Try terminating EFI services several times due to quirks in some
6007 implementations.
6008
6009 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
6010
6011 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
6012 skipping Event, Device, Processor, PowerRes, ThermalZone, and
6013 BankField extended opcodes.
6014 (get_sleep_type): Add minimal scope handling (just enough to
6015 handle setting the scope to the root path).
6016 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
6017 * include/grub/acpi.h: Add enumeration values for Event, Device,
6018 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
6019
6020 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
6021
6022 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
6023 memory leak.
6024
6025 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
6026
6027 * grub-core/disk/ahci.c: Give more time for AHCI request.
6028
6029 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
6030
6031 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
6032 command.
6033
6034 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
6035
6036 Replace the region at 0 from coreboot tables to available in BSD
6037 memory map.
6038
6039 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6040
6041 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
6042 non-BIOS platforms.
6043
6044 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6045
6046 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
6047 platforms.
6048
6049 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6050
6051 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
6052 handling of multi-device filesystems.
6053
6054 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6055
6056 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
6057 platforms.
6058
6059 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6060
6061 Add new 'proc' filesystem framework and put luks_script into it.
6062
6063 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6064
6065 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
6066 and qemu.
6067
6068 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
6069
6070 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
6071
6072 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
6073
6074 Add ability to generate newc additions on runtime.
6075
6076 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
6077
6078 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
6079 description.
6080
6081 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
6082
6083 * po/POTFILES.in: Regenerate.
6084
6085 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
6086
6087 * grub-core/commands/verify.c (hashes): Add several hashes
6088 from the spec.
6089
6090 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
6091
6092 Slight improve in USB-related boot-time checkpoints.
6093
6094 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
6095
6096 * grub-core/commands/boottime.c: Fix copyright header.
6097
6098 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
6099
6100 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
6101 coreboot tables content. Support for cbmemc.
6102
6103 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
6104
6105 Fix a conflict between ports structures with 2 controllers of
6106 same kind.
6107
6108 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
6109
6110 * include/grub/boottime.h: Add missing file.
6111
6112 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
6113
6114 Initialize USB ports in parallel to speed-up boot.
6115
6116 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
6117
6118 Fix USB devices not being detected when requested
6119 due to delayed attach.
6120
6121 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
6122
6123 Implement boot time analysis framework.
6124
6125 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
6126
6127 Remove get_endpoint_descriptor and change all functions needing
6128 descriptor to just receive it as argument rather than endpoint
6129 address.
6130
6131 2013-03-19 Aleš Nesrsta <starous@volny.cz>
6132
6133 Better estimate the maximum USB transfer size.
6134
6135 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
6136
6137 Resend a packet if we got the wrong buffer in status.
6138
6139 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6140
6141 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
6142 multiplication rather than division.
6143
6144 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6145
6146 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
6147 than divisions.
6148
6149 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6150
6151 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
6152 operations to have intended shifts and not divisions.
6153
6154 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6155
6156 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
6157 intended shifts rather than division.
6158
6159 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6160
6161 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
6162 computation for some years before epoch. Avode confusing division
6163 while on it.
6164
6165 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6166
6167 * grub-core/video/i386/pc/vbe.c
6168 (grub_video_vbe_print_adapter_specific_info): Replace division by
6169 shifts.
6170
6171 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6172
6173 Adjust types in gdb module to have intended unsigned shifts rather than
6174 signed divisions.
6175
6176 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6177
6178 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
6179 maximum size is 4G - 1 on hfs
6180
6181 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6182
6183 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
6184
6185 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6186
6187 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
6188 function.
6189
6190 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
6191
6192 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
6193 causing gcc error with gcc 4.7.1.
6194
6195 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
6196
6197 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
6198 dereference null pointer. While the code is technically correct, gcc
6199 may eliminate a null check if pointer is already dereferenced.
6200
6201 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
6202
6203 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
6204 OOM check.
6205 * grub-core/normal/term.c (read_terminal_list): Likewise.
6206
6207 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
6208
6209 Lift up core size limits on some platforms. Fix potential memory
6210 corruption with big core on small memory systems. Document remaining
6211 limits.
6212
6213 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
6214
6215 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
6216 gotoxy to 0,0.
6217
6218 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6219
6220 Remove all trampoline support. Add -Wtrampolines when
6221 present. Remove symbols used for trampolines to make
6222 link fail if trampolines are present.
6223
6224 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6225
6226 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
6227 append out of its parent.
6228
6229 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6230
6231 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
6232 parent.
6233
6234 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6235
6236 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
6237 all vars to a macro. All users updated.
6238
6239 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6240
6241 * grub-core/disk/ieee1275/nand.c: Fix compilation on
6242 i386-ieee1275.
6243
6244 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6245
6246 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
6247
6248 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6249
6250 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
6251
6252 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6253
6254 Move to more hookless approach in IEEE1275 devices handling.
6255
6256 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6257
6258 * grub-core/kern/term.c (grub_term_normal_color),
6259 (grub_term_highlight_color): Add back lost defaults.
6260
6261 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6262
6263 Make elfload not use hooks. Opt for flags and iterators instead.
6264
6265 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6266
6267 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
6268 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
6269
6270 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6271
6272 * grub-core/script/execute.c (gettext_append): Remove nested functions.
6273
6274 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6275
6276 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
6277 hook pass-through parameter. All users updated and unnested.
6278
6279 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6280
6281 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
6282 out of its parent.
6283
6284 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6285
6286 * grub-core/fs/hfs.c: Remove nested functions.
6287
6288 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6289
6290 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
6291 the context through.
6292 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
6293
6294 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6295
6296 * util/grub-editenv.c (list_variables): Move print_var out of its
6297 parent.
6298
6299 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6300
6301 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
6302 function.
6303
6304 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6305
6306 * grub-core/gentrigtables.c: Make tables const.
6307
6308 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6309
6310 Remove nested functions from videoinfo iterators.
6311
6312 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6313
6314 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
6315 for 64-bit platforms.
6316
6317 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6318
6319 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
6320 a FOR_CHILDREN macro.
6321
6322 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6323
6324 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
6325 platform from firmware path.
6326
6327 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6328
6329 Enable linux16 on non-BIOS systems for i.a. memtest.
6330
6331 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
6332 correctly.
6333 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
6334
6335 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6336
6337 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
6338 Fix end of table condition.
6339
6340 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6341
6342 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
6343 out of its parent.
6344
6345 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6346
6347 * grub-core/fs/jfs.c: Remove nested functions.
6348
6349 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6350
6351 * grub-core/fs/minix.c: Remove nested functions.
6352
6353 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6354
6355 * grub-core/fs/iso9660.c: Remove nested functions.
6356
6357 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6358
6359 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
6360 of parent function.
6361
6362 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6363
6364 * util/grub-fstest.c: Remove nested functions.
6365
6366 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6367
6368 * grub-core/loader/machoXX.c: Remove nested functions.
6369
6370 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
6371
6372 Remove nested functions from disk and file read hooks.
6373
6374 * include/grub/disk.h (grub_disk_read_hook_t): New type.
6375 (struct grub_disk): Add read_hook_data member.
6376 * include/grub/file.h (struct grub_file): Likewise.
6377 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
6378 argument.
6379
6380 Update all callers.
6381
6382 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
6383
6384 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
6385 Fix off by one error in enumerating extended partitions.
6386
6387 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
6388
6389 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
6390 memory leak if device name is not found.
6391
6392 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
6393
6394 * grub-core/normal/menu_entry.c (update_screen): remove
6395 unused variable `off' which caused scroll down arrow to be always shown.
6396
6397 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
6398
6399 * grub-core/normal/menu_entry.c (insert_string): fix off by one
6400 access to unallocated memory.
6401
6402 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
6403
6404 * Makefile.util.def: Add partmap/msdos.c to common library.
6405 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
6406 * grub-core/disk/ldm.c: Check for existence of
6407 GRUB_PC_PARTITION_TYPE_LDM.
6408
6409 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
6410
6411 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
6412 sizes and display sector size.
6413
6414 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
6415
6416 Implement new command cmosdump.
6417
6418 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6419
6420 Support Openfirmware disks with non-512B sectors.
6421
6422 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
6423 size of the disk.
6424 * (grub_ofdisk_get_block_size): New function.
6425 * (grub_ofdisk_prepare): Use the correct block size.
6426 * (grub_ofdisk_read): Likewise.
6427 * (grub_ofdisk_write): Likewise.
6428 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
6429 New proto.
6430
6431 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
6432
6433 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
6434
6435 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6436
6437 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
6438 on first error.
6439
6440 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6441
6442 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
6443 freeing it.
6444
6445 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6446
6447 Implement USBDebug (full USB stack variant).
6448
6449 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6450
6451 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
6452 unless they have unexpected values.
6453
6454 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6455
6456 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
6457 grub_print_error.
6458
6459 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6460
6461 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
6462 zero-out of port structure.
6463
6464 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
6465
6466 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
6467 of extended attributes.
6468
6469 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
6470
6471 * util/grub-install.in: change misleading comment about
6472 device.map creation
6473
6474 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
6475
6476 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
6477 when menu highlight color isn't set.
6478
6479 2013-01-27 C. Masloch <pushbx@38.de>
6480
6481 Improve FreeDOS direct loading support compatibility.
6482
6483 * include/grub/i386/relocator.h (grub_relocator16_state):
6484 New member ebp.
6485 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
6486 variable.
6487 (grub_relocator16_boot): Handle %ebp.
6488 * grub-core/lib/i386/relocator16.S: Likewise.
6489 * grub-core/loader/i386/pc/freedos.c:
6490 Load BPB to pass kernel which partition to load from.
6491 Check that kernel file is not too large.
6492 Set register dl to BIOS unit number as well.
6493
6494 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
6495
6496 * util/grub-reboot.in (usage): Document the need for
6497 GRUB_DEFAULT=saved.
6498 * util/grub-set-default.in (usage): Likewise.
6499 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
6500
6501 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
6502
6503 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
6504 than defining WORDS_BIGENDIAN manually.
6505
6506 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
6507
6508 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
6509 invariants.
6510
6511 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
6512
6513 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
6514 nested.
6515 (blit_comb: add_device_width): Likewise.
6516
6517 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
6518
6519 Remove nested functions from USB iterators.
6520
6521 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
6522 (grub_usb_controller_iterate_hook_t): Likewise.
6523 (grub_usb_iterate): Add hook_data argument.
6524 (grub_usb_controller_iterate): Likewise.
6525 (struct grub_usb_controller_dev.iterate): Likewise.
6526
6527 Update all implementations and callers.
6528
6529 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
6530
6531 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
6532 margin when not needed.
6533
6534 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
6535
6536 Make color variables global instead of it being per-terminal.
6537
6538 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
6539
6540 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
6541 asterisk.
6542
6543 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
6544
6545 Fix powerpc and sparc64 build failures caused by un-nesting memory
6546 map iterators.
6547
6548 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
6549
6550 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
6551 parameter declarations.
6552
6553 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
6554
6555 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
6556
6557 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
6558
6559 Improve spkmomdem reliability by adding a separator between bytes.
6560
6561 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
6562
6563 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
6564 an Acer registration utility with several sightings in the wild.
6565 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
6566
6567 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
6568
6569 Remove nested functions from filesystem directory iterators.
6570
6571 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
6572 (struct grub_fs.dir): Add hook_data argument.
6573
6574 Update all implementations and callers.
6575
6576 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
6577
6578 * docs/grub.texi (Multi-boot manual config): Fix typo for
6579 "recommended".
6580
6581 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
6582
6583 * util/grub-mkimage.c (main): Postpone freeing arguments.output
6584 until after its use in generate_image.
6585
6586 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
6587
6588 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
6589 initrd size to addr_min, since the initrd will be allocated after
6590 this address.
6591
6592 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
6593
6594 * conf/Makefile.common: Fix autogen rules to pass definition
6595 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
6596
6597 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
6598
6599 * include/grub/elf.h: Update ARM definitions based on binutils.
6600
6601 2013-01-20 Aleš Nesrsta <starous@volny.cz>
6602
6603 Split long USB transfers into short ones.
6604
6605 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
6606
6607 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
6608 is interrupted by ESC.
6609
6610 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
6611
6612 * util/grub-script-check.c (main): Uniform the error message.
6613
6614 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
6615
6616 Remove nested functions from ELF iterators.
6617
6618 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
6619
6620 Remove nested functions from device iterators.
6621
6622 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
6623 (grub_arc_iterate_devs): Add hook_data argument.
6624 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
6625 (struct grub_ata_dev.iterate): Add hook_data argument.
6626 * include/grub/device.h (grub_device_iterate_hook_t): New type.
6627 (grub_device_iterate): Add hook_data argument.
6628 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
6629 (struct grub_disk_dev.iterate): Add hook_data argument.
6630 (grub_disk_dev_iterate): Likewise.
6631 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
6632 Likewise.
6633 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
6634 Likewise.
6635 * include/grub/partition.h (grub_partition_iterate_hook_t): New
6636 type.
6637 (struct grub_partition_map.iterate): Add hook_data argument.
6638 (grub_partition_iterate): Likewise.
6639 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
6640 (struct grub_scsi_dev.iterate): Add hook_data argument.
6641
6642 Update all callers.
6643
6644 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
6645
6646 Fix typos for "developer" and "development".
6647
6648 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
6649
6650 Add license header to spkmodem-recv.c.
6651
6652 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
6653
6654 Rewrite spkmodem to use PIT for timing. Double the speed.
6655
6656 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
6657
6658 Add new command pcidump.
6659
6660 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
6661
6662 New terminal outputs using serial: morse and spkmodem.
6663
6664 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
6665
6666 Improve bidi handling in entry editor.
6667
6668 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
6669
6670 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
6671 argument to prevent name collision.
6672
6673 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
6674
6675 Remove nested functions from script reading and parsing.
6676
6677 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
6678 getline_data argument, passed to getline.
6679 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
6680 getline_data argument, passed to grub_parser_split_cmdline.
6681 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
6682 lexerstate->getline_data to lexerstate->getline.
6683 (grub_script_lexer_init): Add getline_data argument, saved in
6684 lexerstate->getline_data.
6685 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
6686 argument, passed to grub_script_parse.
6687 * grub-core/script/script.c (grub_script_parse): Add getline_data
6688 argument, passed to grub_script_lexer_init.
6689 * include/grub/parser.h (grub_parser_split_cmdline): Update
6690 prototype. Update all callers to pass appropriate getline data.
6691 (struct grub_parser.parse_line): Likewise.
6692 (grub_rescue_parse_line): Likewise.
6693 * include/grub/reader.h (grub_reader_getline_t): Add void *
6694 argument.
6695 * include/grub/script_sh.h (struct grub_lexer_param): Add
6696 getline_data member.
6697 (grub_script_parse): Update prototype. Update all callers to pass
6698 appropriate getline data.
6699 (grub_script_lexer_init): Likewise.
6700 (grub_normal_parse_line): Likewise.
6701
6702 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
6703 data argument.
6704 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
6705 static instead of nested. Rename to ...
6706 (grub_parser_execute_getline): ... this.
6707 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
6708 data argument.
6709 * grub-core/normal/main.c (read_config_file: getline): Make static
6710 instead of nested. Rename to ...
6711 (read_config_file_getline): ... this.
6712 (grub_normal_read_line): Add unused data argument.
6713 * grub-core/script/execute.c (grub_script_execute_sourcecode:
6714 getline): Make static instead of nested. Rename to ...
6715 (grub_script_execute_sourcecode_getline): ... this.
6716 * util/grub-script-check.c (main: get_config_line): Make static
6717 instead of nested.
6718
6719 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
6720
6721 Remove nested functions from memory map iterators.
6722
6723 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
6724 argument, passed to hook.
6725 * grub-core/kern/i386/coreboot/mmap.c
6726 (grub_linuxbios_table_iterate): Likewise.
6727 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
6728 instead of nested.
6729 (grub_machine_mmap_iterate): Add hook_data argument.
6730 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
6731 Add hook_data argument, passed to hook.
6732 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
6733 Likewise.
6734 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
6735 Likewise.
6736 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
6737 Likewise.
6738 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
6739 Likewise.
6740 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
6741 Likewise.
6742 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
6743 Likewise.
6744 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
6745 (grub_machine_mmap_iterate): Likewise.
6746 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
6747 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
6748 prototype.
6749 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
6750 Remove NESTED_FUNC_ATTR from here and from all users.
6751 (grub_mmap_iterate): Update prototype.
6752 (grub_efi_mmap_iterate): Update prototype. Update all callers to
6753 pass appropriate hook data.
6754 (grub_machine_mmap_iterate): Likewise.
6755
6756 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
6757 static instead of nested.
6758 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
6759 Rename to ...
6760 (lsmmap_hook): ... this.
6761 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
6762 Likewise.
6763 (grub_efiemu_mmap_fill: fill_hook): Likewise.
6764 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
6765 heap_init): Likewise.
6766 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
6767 Rename to ...
6768 (mmap_iterate_hook): ... this.
6769 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
6770 Likewise.
6771 * grub-core/lib/ieee1275/relocator.c
6772 (grub_relocator_firmware_get_max_events: count): Likewise.
6773 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
6774 to ...
6775 (grub_relocator_firmware_fill_events_iter): ... this.
6776 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
6777 hook): Likewise. Rename to ...
6778 (grub_relocator_alloc_chunk_align_iter): ... this.
6779 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
6780 Rename to ...
6781 (generate_e820_mmap_iter): ... this.
6782 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
6783 Rename to ...
6784 (count_hook): ... this.
6785 (grub_linux_boot: hook): Likewise. Rename to ...
6786 (grub_linux_boot_mmap_find): ... this.
6787 (grub_linux_boot: hook_fill): Likewise. Rename to ...
6788 (grub_linux_boot_mmap_fill): ... this.
6789 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
6790 hook): Likewise. Rename to ...
6791 (grub_fill_multiboot_mmap_iter): ... this.
6792 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
6793 hook): Likewise. Rename to ...
6794 (count_hook): ... this.
6795 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
6796 hook): Likewise. Rename to ...
6797 (grub_fill_multiboot_mmap_iter): ... this.
6798 * grub-core/loader/powerpc/ieee1275/linux.c
6799 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
6800 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
6801 Likewise. Rename to ...
6802 (alloc_phys_choose): ... this.
6803 (determine_phys_base: get_physbase): Likewise.
6804 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
6805 find_hook): Likewise.
6806 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
6807 (malloc_hook: count_hook): Likewise.
6808 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
6809 Likewise. Rename to ...
6810 (lower_hook): ... this.
6811 (grub_mmap_get_upper: hook): Likewise. Rename to ...
6812 (upper_hook): ... this.
6813 (grub_mmap_get_post64: hook): Likewise. Rename to ...
6814 (post64_hook): ... this.
6815 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
6816 Likewise. Rename to ...
6817 (lower_hook): ... this.
6818 (grub_mmap_get_upper: hook): Likewise. Rename to ...
6819 (upper_hook): ... this.
6820 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
6821 (grub_mmap_iterate: fill_hook): Likewise.
6822 (fill_mask): Pass addr and mask within a single struct.
6823 (grub_cmd_badram: hook): Make static instead of nested. Rename
6824 to ...
6825 (badram_iter): ... this.
6826 (grub_cmd_cutmem: hook): Likewise. Rename to ...
6827 (cutmem_iter): ... this.
6828
6829 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
6830
6831 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
6832 delimit path in strings using quotes.
6833 * util/getroot.c (grub_guess_root_devices): Likewise.
6834 (grub_make_system_path_relative_to_its_root): Likewise.
6835 * util/grub-probe.c (probe): Likewise.
6836 * util/ieee1275/ofpath.c (find_obppath): Likewise.
6837 (xrealpath): Likewise.
6838
6839 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
6840
6841 Fix compilation with older compilers.
6842
6843 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
6844 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
6845 declarations.
6846 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
6847 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
6848 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
6849 identifier with b.
6850 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
6851 * include/grub/crypto.h: Add type defines.
6852 * util/import_gcrypth.sed: Remove duplicate type defines.
6853
6854 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
6855
6856 New command list_trusted.
6857
6858 * grub-core/commands/verify.c (grub_cmd_list): New function.
6859
6860 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
6861
6862 * util/grub-mkimage.c (generate_image): Fix "size of public key"
6863 info message.
6864
6865 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
6866
6867 Remove nested functions from PCI iterators.
6868
6869 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
6870 passed to hook. Update all callers to pass appropriate hook data.
6871 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
6872 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
6873 Remove NESTED_FUNC_ATTR from here and from all users.
6874 (grub_pci_iterate): Update prototype.
6875 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
6876 instead of nested. Rename to ...
6877 (grub_cs5536_find_iter): ... this.
6878 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
6879 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
6880 Likewise.
6881 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
6882 Likewise.
6883 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
6884 Likewise.
6885 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
6886 Likewise.
6887 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
6888 * grub-core/video/radeon_fuloong2e.c
6889 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
6890 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
6891 find_card): Likewise.
6892 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
6893 Likewise.
6894
6895 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6896
6897 * grub-core/commands/verify.c: Mark messages for translating.
6898
6899 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6900
6901 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
6902 fatal.
6903
6904 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6905
6906 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
6907 fatal.
6908
6909 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6910
6911 * autogen.sh: Do not try to delete nonexistant files.
6912 * util/import_gcrypth.sed: Add some missing header removals.
6913
6914 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
6915
6916 Clean up dangling references to grub-setup.
6917 Fixes Ubuntu bug #1082045.
6918
6919 * docs/grub.texi (Images): Refer generally to grub-install rather
6920 than directly to grub-setup.
6921 (Installing GRUB using grub-install): Remove direct reference to
6922 grub-setup.
6923 (Device map) Likewise.
6924 (Invoking grub-install): Likewise.
6925 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
6926 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
6927 * util/grub-install.in (usage): Likewise.
6928
6929 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
6930 Apply to grub-bios-setup and grub-sparc64-setup rather than to
6931 grub-setup.
6932 * configure.ac: Remove grub_setup output variable.
6933
6934 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
6935 to grub-bios-setup.
6936 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
6937 grub-setup to grub-sparc64-setup.
6938
6939 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
6940
6941 Import gcrypt public-key cryptography and implement signature checking.
6942
6943 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6944
6945 * grub-core/fs/ntfs.c: Ue more appropriate types.
6946 * grub-core/fs/ntfscomp.c: Likewise.
6947 * include/grub/ntfs.h: Likewise.
6948
6949 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6950
6951 Support Apple FAT binaries on non-Apple platforms.
6952
6953 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
6954 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
6955 Likewise.
6956 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
6957 Apple FAT binaries.
6958
6959 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6960
6961 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
6962 sector devices.
6963
6964 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
6965
6966 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
6967 explicitly zeroing elements.
6968 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
6969 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
6970 of elements in a structure already allocated using grub_zalloc.
6971 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
6972
6973 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
6974
6975 * docs/grub.texi (grub_cpu): New subsection.
6976 (grub_platform): Likewise.
6977
6978 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
6979
6980 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
6981
6982 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
6983
6984 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
6985 divisions.
6986
6987 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
6988
6989 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
6990 * grub-core/fs/ntfscomp.c: Likewise.
6991 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
6992 (grub_ntfs_comp): Likewise.
6993
6994 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
6995
6996 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
6997 Rename to ...
6998 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
6999 of groups_per_block. All users updated.
7000
7001 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
7002
7003 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
7004 grub_error properly.
7005 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
7006 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
7007
7008 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
7009
7010 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
7011 always in /boot/zfs.
7012 Reported by: Yuta Satoh.
7013
7014 2013-01-03 Yuta Satoh <nigoro>
7015
7016 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
7017 ${grub_probe}
7018
7019 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
7020
7021 * configure.ac: Extend -Wno-trampolines to host.
7022
7023 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
7024
7025 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
7026 entry->len = 0.
7027
7028 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
7029
7030 * docs/grub.texi (Invoking grub-mkrelpath): New section.
7031 (Invoking grub-script-check): Likewise.
7032
7033 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
7034
7035 * docs/grub.texi (Invoking grub-mount): New section.
7036 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
7037
7038 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
7039
7040 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
7041 test failures, so that a failing unit test correctly causes 'make
7042 check' to fail.
7043
7044 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
7045
7046 Fix failing printf test.
7047
7048 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
7049 '$' in the correct order when collecting type information.
7050
7051 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
7052
7053 * docs/grub.texi (configfile): Explain environment variable
7054 handling.
7055 (source): New section.
7056 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
7057
7058 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
7059
7060 Remove several trivially-unnecessary uses of nested functions.
7061
7062 * grub-core/commands/i386/pc/sendkey.c
7063 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
7064 instead of nested.
7065 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
7066 Rename to ...
7067 (legacy_file_getline): ... this.
7068 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
7069 Likewise.
7070 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
7071 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
7072 to ...
7073 (probe_dummy_iter): ... this.
7074 * grub-core/kern/i386/coreboot/mmap.c
7075 (grub_linuxbios_table_iterate: check_signature): Likewise.
7076 * grub-core/kern/parser.c (grub_parser_split_cmdline:
7077 check_varstate): Likewise. Mark inline.
7078 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
7079 an additional parameter.
7080 (find_long: fnd_long): Likewise. Pass two additional parameters.
7081 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
7082 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
7083 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
7084 Likewise. Rename to ...
7085 (grub_cmos_find_port_iter): ... this.
7086 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
7087 Rename to ...
7088 (find_rtc_iter): ... this.
7089
7090 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
7091 function directly into the function body, since it is only called
7092 once.
7093
7094 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
7095
7096 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
7097 __attribute__ ((unused)).
7098 * grub-core/video/bochs.c (find_card): Likewise.
7099 * grub-core/video/cirrus.c (find_card): Likewise.
7100 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
7101 * grub-core/video/sis315pro.c (find_card): Likewise.
7102 * grub-core/video/sm712.c (find_card): Likewise.
7103
7104 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
7105
7106 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
7107 Fixes Savannah bug #37821.
7108
7109 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
7110
7111 Apply program name transformations at build-time rather than at
7112 run-time. Fixes Debian bug #696465.
7113
7114 * acinclude.m4 (grub_TRANSFORM): New macro.
7115 * configure.ac: Create output variables with transformed names for
7116 most programs.
7117 * util/bash-completion.d/grub-completion.bash.in: Use
7118 pre-transformed variables for program names.
7119 * util/grub-install.in: Likewise.
7120 * util/grub-kbdcomp.in: Likewise.
7121 * util/grub-mkconfig.in: Likewise.
7122 * util/grub-mkconfig_lib.in: Likewise.
7123 * util/grub-mknetdir.in: Likewise.
7124 * util/grub-mkrescue.in: Likewise.
7125 * util/grub-mkstandalone.in: Likewise.
7126 * util/grub-reboot.in: Likewise.
7127 * util/grub-set-default.in: Likewise.
7128 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
7129 * tests/util/grub-shell-tester.in: Remove unused assignment.
7130 * tests/util/grub-shell.in: Likewise.
7131 * util/grub.d/00_header.in: Likewise.
7132
7133 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
7134
7135 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
7136
7137 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
7138 HAVE_RAW_DECL_GETS.
7139 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
7140
7141 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
7142
7143 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
7144 Reported by: Eriks Latosheks <foresterlv>.
7145
7146 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7147
7148 * docs/grub.texi (Network): Update instructions on generating netboot
7149 image.
7150
7151 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7152
7153 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
7154 around device name if necessarry.
7155
7156 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7157
7158 * util/grub-install.in: Follow the symbolic link parameter added
7159 to the file command.
7160
7161 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
7162
7163 * util/grub-install.in: Remove stale TODO.
7164
7165 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7166
7167 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
7168 dynamic allocation for the bootpath buffer.
7169
7170 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
7171
7172 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
7173 window too small.
7174
7175 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7176
7177 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
7178 argument rather than font name. All users updated.
7179 (grub_gfxterm_set_window): Likewise.
7180
7181 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
7182
7183 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
7184 from working.
7185
7186 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7187
7188 * util/getroot.c (convert_system_partition_to_system_disk): Support
7189 nbd disks.
7190
7191 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7192
7193 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
7194 infinite loop on corrupted FS.
7195
7196 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
7197
7198 Fix big-endian mtime.
7199
7200 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
7201 together sec and usec.
7202 (grub_ufs_dir): Use correct byteswapping for UFS time.
7203
7204 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
7205
7206 Support big-endian UFS1.
7207
7208 * Makefile.util.def (libgrubmods): Add ufs_be.c
7209 * grub-core/Makefile.core.def (ufs1_be): New module.
7210 * grub-core/fs/ufs_be.c: New file.
7211 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
7212 the file.
7213
7214 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
7215
7216 * include/grub/types.h: Fix functionality unaffecting typo in
7217 GRUB_TARGET_WORDSIZE conditional macro.
7218
7219 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7220
7221 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
7222
7223 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
7224
7225 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
7226 that /netbsd appears first (when it exists).
7227
7228 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
7229
7230 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
7231 Fixes Savannah bug #37558.
7232
7233 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
7234
7235 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
7236 description of extract_entries_configfile.
7237
7238 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
7239
7240 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
7241 preferred_address.
7242 (grub_cmd_linux): Likewise.
7243 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
7244 preferred_lifetime. Update all users.
7245
7246 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
7247
7248 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
7249 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
7250
7251 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
7252
7253 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
7254 errors from grub-probe to /dev/null, not stdout.
7255
7256 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
7257
7258 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
7259 sector 1.
7260
7261 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
7262
7263 * util/grub-install.in: Make the error message if $source_dir
7264 doesn't exist more useful.
7265
7266 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
7267
7268 Fix grub-emu build on FreeBSD.
7269
7270 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
7271 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
7272 headers on Linux.
7273 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
7274 implementation is currently Linux-specific.
7275 * util/getroot.c (exec_pipe): Define only on Linux or when either
7276 libzfs or libnvpair is unavailable.
7277 (find_root_devices_from_poolname): Remove unused path variable.
7278
7279 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
7280
7281 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
7282 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
7283 should fit before end == 63.
7284
7285 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
7286
7287 * util/grub-setup.c (write_rootdev): Remove unused core_img
7288 parameter. Update all callers.
7289 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
7290 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
7291 GRUB_SETUP_BIOS.
7292
7293 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
7294
7295 * util/grub-mkconfig_lib.in (grub_tab): New variable.
7296 (grub_add_tab): New function.
7297 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
7298 * util/grub.d/10_illumos.in: Likewise.
7299 * util/grub.d/10_kfreebsd.in: Likewise.
7300 * util/grub.d/10_linux.in: Likewise.
7301 * util/grub.d/10_netbsd.in: Likewise.
7302 * util/grub.d/10_windows.in: Likewise.
7303 * util/grub.d/10_xnu.in: Likewise.
7304 * util/grub.d/20_linux_xen.in: Likewise.
7305 * util/grub.d/30_os-prober.in: Likewise.
7306
7307 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
7308
7309 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
7310 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
7311 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
7312 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
7313 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
7314 ieee1275-nocursor.
7315 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
7316 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
7317
7318 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
7319
7320 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
7321 le-conversion.
7322 Reported by: BURETTE, Bernard.
7323
7324 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
7325
7326 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
7327 from comment.
7328
7329 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
7330
7331 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
7332 IEEE1275 machines. Fixes powerpc-emu compilation.
7333 * include/grub/terminfo.h: Likewise.
7334
7335 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
7336
7337 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
7338 a const pointer.
7339 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
7340 const pointer.
7341 (efiemu_set_variable): Make vendor_guid a const pointer.
7342
7343 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
7344
7345 Don't require grub-mkconfig_lib to generate manpages for programs.
7346
7347 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
7348 dependencies, don't add grub-mkconfig_lib.
7349 (program): Pass empty adddeps.
7350 (script): Pass grub-mkconfig_lib as adddeps.
7351
7352 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
7353
7354 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
7355 * util/getroot.c (grub_find_device): Likewise.
7356 (get_mdadm_uuid): Likewise.
7357 (grub_util_is_imsm): Likewise.
7358 (grub_util_pull_device): Likewise.
7359 * util/grub-probe.c (probe): Likewise.
7360
7361 2012-09-10 Benoit Gschwind <gschwind>
7362
7363 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
7364 (devs): Add devpath_8.
7365
7366 2012-09-08 Peter Jones <pjones@redhat.com>
7367
7368 * grub-core/Makefile.core.def (efifwsetup): New module.
7369 * grub-core/commands/efi/efifwsetup.c: New file.
7370 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
7371 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
7372 New define.
7373 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
7374
7375 2012-09-05 Jiri Slaby <jslaby@suse.cz>
7376
7377 * configure.ac: Add SuSe path.
7378
7379 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
7380
7381 * NEWS: Fix typo.
7382
7383 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
7384
7385 * util/import_gcry.py: Sort cipher_files, to make build system
7386 generation more deterministic.
7387
7388 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7389
7390 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
7391 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
7392 (grub_set_datetime): Likewise.
7393
7394 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7395
7396 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
7397 warnings.
7398
7399 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7400
7401 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
7402
7403 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7404
7405 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
7406
7407 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
7408
7409 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
7410 required for checkouts from bzr, but it may be useful for users or
7411 distributors wishing to update translations against a tarball
7412 distribution, and it can be helpful for the tarball to be a superset
7413 of what's in bzr.
7414
7415 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
7416
7417 * Makefile.am (EXTRA_DIST): Add
7418 grub-core/tests/boot/linux.init-mips.S,
7419 grub-core/tests/boot/linux.init-ppc.S, and
7420 grub-core/tests/boot/linux-ppc.cfg.
7421
7422 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
7423
7424 * grub-core/mmap/mips/loongson: Remove empty directory.
7425
7426 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
7427
7428 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
7429 gone.
7430
7431 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
7432
7433 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
7434 grub-sparc64-setup.
7435
7436 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
7437
7438 * configure.ac: Strengthen the test for working -nostdinc -isystem.
7439
7440 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
7441
7442 * po/POTFILES.in: Regenerated.
7443
7444 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
7445
7446 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
7447 (NetBSD): New subsection.
7448
7449 2012-07-22 Ales Nesrsta <starous@volny.cz>
7450
7451 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
7452 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
7453
7454 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
7455
7456 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
7457 * util/grub.d/10_hurd.in: Add missing quoting.
7458 * util/grub.d/10_illumos.in: Likewise.
7459 * util/grub.d/10_kfreebsd.in: Likewise.
7460 * util/grub.d/10_linux.in: Likewise.
7461 * util/grub.d/20_linux_xen.in: Likewise.
7462
7463 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
7464
7465 New command `lsefi'.
7466
7467 * grub-core/Makefile.core.def (lsefi): New module.
7468 * grub-core/commands/efi/lsefi.c: New file.
7469 * include/grub/efi/api.h: Add more GUIDs.
7470
7471 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
7472
7473 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
7474 (grub_bsd_elf32_hook): Likewise.
7475 (grub_bsd_elf64_size_hook): Likewise.
7476 (grub_bsd_elf64_hook): Likewise.
7477 (grub_bsd_load_elf): Likewise.
7478
7479 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
7480
7481 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
7482 if hash function is unavailable.
7483 (dec_stream_header): Likewise.
7484
7485 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
7486
7487 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
7488 filter state.
7489
7490 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
7491
7492 Fix coreboot compilation.
7493
7494 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
7495 (grub_vga_text_init_real): ... this.
7496 (grub_vga_text_fini): Rename to ...
7497 (grub_vga_text_fini_real): ... this.
7498
7499 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
7500
7501 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
7502
7503 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7504
7505 * grub-core/lib/legacy_parse.c: Support clear and testload.
7506
7507 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7508
7509 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
7510
7511 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7512
7513 * grub-core/fs/ext2.c: Experimental support for 64-bit.
7514
7515 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7516
7517 * grub-core/net/tftp.c (ack): Fix endianness problem.
7518 (tftp_receive): Likewise.
7519 Reported by: Michael Davidsaver.
7520
7521 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7522
7523 * gentpl.py: Make mans depend on grub-mkconfig_lib.
7524
7525 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7526
7527 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
7528 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
7529 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
7530
7531 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7532
7533 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
7534 efi_mmap_size.
7535 Reported by: Stuart Hayes.
7536
7537 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
7538
7539 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
7540
7541 * grub-core/Makefile.core.def (mda_text): New module.
7542 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
7543 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
7544 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
7545 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
7546 here.
7547 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
7548 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
7549 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
7550 here.
7551 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
7552 to ..
7553 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
7554 ... here
7555 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
7556 here.
7557 * grub-core/term/i386/vga_common.c: Removed.
7558 * include/grub/i386/vga_common.h: Likewise.
7559 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
7560 (grub_vga_cr_bw_read): Likewise.
7561 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
7562 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
7563 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
7564 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
7565 grub_vga_cr_read/grub_vga_cr_write.
7566 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
7567
7568 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
7569
7570 * configure.ac: Bump version to 2.00.
7571 * grub-core/normal/main.c (features): Add feature_200_final.
7572
7573 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
7574 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
7575
7576 * NEWS: Fix unclarity and language mistakes.
7577
7578 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
7579
7580 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
7581 additional size to 3 pages.
7582 Reported by: Stuart Hayes.
7583
7584 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
7585
7586 * NEWS: Add 2.00 entry.
7587
7588 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
7589
7590 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
7591 put explicit "/" for empty path.
7592 (wildcard_expand): Improve dprintf.
7593
7594 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
7595
7596 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
7597 it's equal to currnode. This can happen with "" symlink.
7598
7599 2012-06-27 Yves Blusseau <blusseau@zetam.org>
7600
7601 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
7602 echo shell command by printf command.
7603
7604 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
7605
7606 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
7607 the value returned by firmware is the maximal position, not diumension.
7608 (grub_terminfo_output_state): Use a more sane fallback.
7609
7610 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
7611
7612 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
7613
7614 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
7615
7616 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
7617 frequency to 150 MHz.
7618
7619 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
7620
7621 Apple fixes.
7622
7623 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
7624 __APPLE_
7625 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
7626 definition.
7627 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
7628
7629 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
7630
7631 Handle slash in HFS label.
7632
7633 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
7634 (grub_hfs_dir): Tanslate slash.
7635 (grub_hfs_label): Don't translate slash.
7636
7637 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
7638
7639 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
7640 network protocol listing since it introduces problematic dependency on
7641 net module.
7642
7643 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
7644
7645 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
7646
7647 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
7648
7649 Init video early on yeeloong to avoid being rebooted by watchdog.
7650
7651 * grub-core/Makefile.am (gensm712): New target.
7652 (sm712_start.S): Likewise.
7653 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
7654 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
7655 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
7656 description.
7657 * include/grub/vga.h: Move registry definitions to...
7658 * include/grub/vgaregs.h: ... here.
7659
7660 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
7661
7662 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
7663 signedness.
7664
7665 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
7666
7667 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
7668 platforms with firmware disk drivers in the core.
7669
7670 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
7671
7672 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
7673 informative verbose message.
7674 (read_lv): Handle 64-bit segment size.
7675
7676 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
7677
7678 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
7679
7680 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
7681
7682 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
7683 character but still remove trainling spaces.
7684 (grub_fat_label): Ignore archive flag.
7685
7686 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
7687
7688 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
7689 cast between linux_kernel_header and linux_kernel_params.
7690
7691 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
7692
7693 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
7694 type for size.
7695 (grub_raid6_recover_func_t): Likewise.
7696 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
7697 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
7698
7699 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
7700
7701 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
7702
7703 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
7704
7705 Fix overflow.
7706
7707 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
7708 [__NetBSD__]: Add explicit cast before bitshift.
7709
7710 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
7711
7712 * configure.ac: Bump to 2.00~rc1.
7713
7714 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
7715
7716 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
7717 half of $a0.
7718
7719 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
7720 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
7721
7722 * docs/grub.texi: Fix search syntax.
7723 (Multi-boot manual config): Put msdos rather than GPT example.
7724 Grammar corrections.
7725
7726 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
7727
7728 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
7729
7730 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
7731
7732 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
7733
7734 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
7735
7736 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
7737 message on double free. Put the value of magic in case of mismatch.
7738
7739 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
7740
7741 Speed-up video on yeeloong.
7742
7743 * grub-core/video/sm712.c (framebuffer): Remove render_target and
7744 add cached_ptr.
7745 (grub_video_sm712_video_fini): Unmap cached_ptr.
7746 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
7747 (grub_video_sm712_set_active_render_target): Removed.
7748 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
7749 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
7750 sync caches.
7751
7752 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
7753
7754 Avoid flushing the same line multiple times on loongson.
7755
7756 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
7757 Step in 32 bytes and not 1 byte.
7758 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
7759 Likewise.
7760
7761 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
7762
7763 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
7764 subvolumes.
7765
7766 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
7767
7768 Implement flow control for http.
7769
7770 * grub-core/net/http.c (parse_line): Handle response 206.
7771 (http_receive): Stall if too many packets are in the queue.
7772 (http_establish): Fix range header.
7773 (http_seek): Fix double free.
7774 (http_close): Likewise.
7775 (http_packets_pulled): New function.
7776 (grub_http_protocol): Set http_seek
7777 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
7778 (ack_real): Set window depending on i_stall.
7779 (grub_net_send_tcp_packet): Likewise.
7780 (grub_net_tcp_stall): New function.
7781 (grub_net_tcp_unstall): Likewise.
7782 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
7783 (grub_net_tcp_unstall): Likewise.
7784
7785 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
7786
7787 * grub-core/net/tftp.c: Decrease stall to 50 packets.
7788
7789 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
7790
7791 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
7792
7793 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
7794
7795 * tests/util/grub-shell.in: Fix a typo.
7796
7797 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
7798
7799 Implement flow control for tftp.
7800
7801 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
7802 packets but stop only if stop condition is satisfied.
7803 (grub_net_fs_read_real): Call packets_pulled after real read. Use
7804 `stall' instead of `eof' as stop condition.
7805 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
7806 (http_err): Likewise.
7807 * grub-core/net/tftp.c (ack): Replace the first argument with data
7808 instead of socket.
7809 (tftp_receive): Stall if too many packets are in wait queue.
7810 (tftp_packets_pulled): New function.
7811 (grub_tftp_protocol): Set packets_pulled.
7812 * include/grub/net.h (grub_net_packets): New field count.
7813 (grub_net_put_packet): Increment count.
7814 (grub_net_remove_packet): Likewise.
7815 (grub_net_app_protocol): New field `packets_pulled'.
7816 (grub_net): New field `stall'.
7817
7818 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
7819
7820 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
7821 sync part to handle them.
7822
7823 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
7824
7825 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
7826 * grub-core/net/drivers/ieee1275/ofnet.c
7827 (grub_ieee1275_net_config_real): Likewise.
7828
7829 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
7830
7831 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
7832 the direct route for server/gateway.
7833
7834 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
7835
7836 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
7837 IP address to server name since we may not hame the DNS.
7838
7839 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
7840
7841 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
7842 freeing random buffer on failure.
7843 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
7844
7845 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
7846
7847 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
7848
7849 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
7850
7851 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
7852 reserved bytes.
7853 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
7854 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
7855 Handle malloc error correctly.
7856
7857 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
7858
7859 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
7860 blocks.
7861
7862 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
7863
7864 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
7865 increment.
7866
7867 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
7868
7869 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
7870 none is explicitly specified.
7871
7872 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
7873
7874 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
7875 while reallocating.
7876
7877 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
7878
7879 Respect netmask from bootp/dhcp.
7880
7881 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
7882 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
7883 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
7884 into ...
7885 (grub_net_add_ipv4_local): ... this.
7886 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
7887 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
7888 (grub_net_add_ipv4_local): New proto.
7889
7890 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
7891
7892 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
7893 determining EFI memory map size.
7894
7895 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
7896
7897 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
7898
7899 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
7900
7901 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
7902 when looking for partition separator.
7903
7904 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
7905
7906 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
7907 Escape commas.
7908
7909 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
7910
7911 Restructure FAT driver to avoid hook in label reading as it hits a
7912 GCC bug.
7913
7914 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
7915 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
7916 (grub_fat_iterate_dir): Split into ...
7917 (grub_fat_iterate_init): ... this, ...
7918 (grub_fat_iterate_fini): ... this, ...
7919 (grub_fat_iterate_dir_next): ... and this. All users updated.
7920
7921 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
7922
7923 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
7924 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
7925 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
7926 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
7927 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
7928 New fields last_key and last_key_time.
7929 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
7930 extended key-esc into extended key-extended key.
7931
7932 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
7933
7934 Avoid unnecessary memcpy of whole video buffer.
7935
7936 * grub-core/video/fb/video_fb.c (dirty): New struct.
7937 (framebuffer): Add members current_dirty and previous_dirty.
7938 (dirty): New function.
7939 (grub_video_fb_fill_rect): Update dirty.
7940 (common_blitter): Likewise.
7941 (grub_video_fb_scroll): Likewise.
7942 (doublebuf_blit_update_screen): Copy only dirty part.
7943 (doublebuf_pageflipping_update_screen): Likewise.
7944 (grub_video_fb_doublebuf_blit_init): Init dirty.
7945 (doublebuf_pageflipping_init): Likewise.
7946 (grub_video_fb_setup): Likewise.
7947
7948 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
7949
7950 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
7951 poll rate.
7952
7953 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
7954
7955 Fix wildcard regexp dot and other special characters handling.
7956 Reported by: Robert Mabee.
7957
7958 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
7959 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
7960 (split_path): Trigger expansion on '?'.
7961 (unescape): New function.
7962 (wildcard_expand): Unescape parts copied without globbing.
7963 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
7964 (grub_script_arglist_to_argv): Don't unescape expansions.
7965
7966 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
7967
7968 * include/grub/net.h (grub_net_card): New member txbufsize.
7969 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
7970 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
7971 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
7972 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
7973 txbufsize.
7974 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
7975 compatible property to check for macs. Set
7976 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
7977 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
7978 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
7979 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
7980 (send_card_buffer): Use txbuf.
7981 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
7982 nested function out of the parent while on it.
7983
7984 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
7985
7986 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
7987 presence check.
7988 (grub_ieee1275_net_config_real): Fix config pointer.
7989
7990 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
7991
7992 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
7993 filename parsing to non-block devices.
7994
7995 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
7996
7997 * grub-core/kern/device.c (grub_device_open): Remove dead code.
7998
7999 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
8000
8001 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
8002 All users updated.
8003
8004 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
8005
8006 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
8007 UUID search command even if hints probing failed.
8008
8009 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
8010
8011 * po/POTFILES.in: Regenerated.
8012
8013 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
8014
8015 Speed-up video on fuloong.
8016
8017 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
8018 New function.
8019 (grub_pci_device_unmap_range): Handle non-cached address.
8020 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
8021 add direct_ptr.
8022 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
8023 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
8024 (grub_video_sis315pro_set_active_render_target): Removed.
8025 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
8026 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
8027 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
8028 sync caches.
8029 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
8030 New proto.
8031
8032 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
8033
8034 * docs/grub.texi (Multi-boot manual config): New section.
8035
8036 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
8037
8038 Avoid slow read-back from VRAM.
8039
8040 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
8041 Move from here ...
8042 * grub-core/video/fb/video_fb.c
8043 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
8044 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
8045 (front_target): Remove front_target. Add pages.
8046 (grub_video_fb_init): Skip setting front_pages.
8047 (grub_video_fb_fini): Likewise.
8048 (doublebuf_blit_update_screen): Use pages.
8049 (grub_video_fb_doublebuf_blit_init): Likewise.
8050 (doublebuf_pageflipping_init): Allocate offscreen buffer.
8051 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
8052 (grub_video_fb_setup): Prefer doublebuffing.
8053
8054 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
8055
8056 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
8057 gzio.
8058
8059 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
8060
8061 Add loongson tests.
8062
8063 * tests/util/grub-shell.in: Handle loongson.
8064 * tests/partmap_test.in: Add loongson to the list of platform using ATA
8065 drivers.
8066 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
8067 Reboot instead of shutdown if REBOOT is defined.
8068
8069 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
8070
8071 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
8072 sized ports since unlike on real hardware qemu supports only 32-bit
8073 regs.
8074
8075 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
8076
8077 * Makefile.util.def (grub-mkrescue): Enable on loongson.
8078 * util/grub-mkrescue.in: Handle loongson.
8079
8080 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
8081
8082 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
8083 Set is_part appropriately.
8084 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
8085 names. Canonicalize partition without full disk.
8086
8087 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
8088
8089 Revert usb-quiesce since it's wrong.
8090
8091 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
8092 (grub_ofdisk_init): Don't do quiesce.
8093
8094 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
8095
8096 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
8097 PowerMac workaround to Xserves as well.
8098 Information supplied by: Benjamin Herrenschmidt.
8099
8100 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
8101
8102 Don't assume that beginning address is also the entry point on ppc.
8103
8104 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
8105 (grub_linux_boot): Use linux_entry.
8106 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
8107 (grub_linux_load64): Likewise.
8108
8109 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
8110
8111 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
8112
8113 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
8114
8115 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
8116 needlessly lose the console.
8117
8118 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
8119
8120 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
8121 space.
8122
8123 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
8124
8125 Remove non-functional EFI grub_get_rtc. Put a better fatal message
8126 than current grub_get_rtc() not implemented when booted with
8127 coreboot without TSC.
8128
8129 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
8130 Add machine/time.h to kernel headers on loongson.
8131 * grub-core/Makefile.core.def (kernel): Remove
8132 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
8133 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
8134 (grub_get_rtc): Likewise.
8135 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
8136 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
8137 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
8138 * grub-core/kern/i386/tsc.c (grub_tsc_init)
8139 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
8140 rather than installing known non-working time source.
8141 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
8142 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
8143 * include/grub/time.h: Don't include machine/time.h.
8144 * include/grub/efi/time.h: Removed.
8145 * include/grub/i386/efi/time.h: Likewise.
8146 * include/grub/i386/ieee1275/time.h: Likewise.
8147 * include/grub/powerpc/ieee1275/time.h: Likewise.
8148 * include/grub/sparc64/ieee1275/time.h: Likewise.
8149 * include/grub/x86_64/efi/time.h: Likewise.
8150
8151 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
8152
8153 Remove dot on i and j when combining with above diacritics.
8154
8155 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
8156 value.
8157 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
8158 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
8159 with dotless variants when any combining above is present.
8160
8161 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
8162
8163 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
8164 text and not binary.
8165
8166 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
8167
8168 Stop polling as soon as we have the packet we were waiting for.
8169
8170 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
8171 All users updated.
8172 * grub-core/net/arp.c (have_pending): New var.
8173 (pending_req): Likewise.
8174 (grub_net_arp_send_request): Fill pending_req and use have_pending as
8175 stop indicator.
8176 (grub_net_arp_receive): Set have_pending.
8177 * grub-core/net/dns.c (recv_data): New field stop.
8178 (recv_hook): Set stop.
8179 (grub_net_dns_lookup): Init stop and use as stop condition.
8180 * grub-core/net/http.c (http_establish): Use headers_recv as stop
8181 condition.
8182 * grub-core/net/net.c (grub_net_poll_cards): New argument
8183 stop_condition. Stop when it goes true.
8184 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
8185 indicator.
8186 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
8187
8188 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
8189
8190 Keep TX and RX buffers on EFI rather than always allocate new ones.
8191
8192 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
8193 card. All users updated.
8194 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
8195 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
8196 (get_card_packet): Likewise.
8197 (grub_efinet_findcards): Init new fields.
8198
8199 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
8200
8201 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
8202 compilation error on sparc64.
8203
8204 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
8205
8206 Use ITC on IA64 rather than broken routine based on daytime.
8207
8208 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
8209 ia64.
8210 (grub_get_rtc) [__ia64__]: Likewise.
8211 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
8212 (get_itc): New function.
8213 (grub_rtc_get_time_ms): Likewise.
8214 (grub_machine_init): Calibrate ITC.
8215 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
8216 Keep only on non-ia64. Don't export since it's broken and used only
8217 if TSC is unavailable.
8218
8219 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
8220
8221 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
8222 even if it's used.
8223 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
8224 Skip if parent is unused.
8225
8226 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8227
8228 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
8229
8230 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8231
8232 Fix wildcard escaping.
8233
8234 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
8235 * grub-core/script/execute.c (wildcard_escape): .. to here.
8236 Don't escape dot.
8237 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
8238 * grub-core/script/execute.c (wildcard_unescape): .. to here.
8239 Don't escape dot.
8240 * grub-core/script/execute.c (gettext_append): Always escape.
8241 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
8242 * grub-core/script/yylex.l: Don't cut away the escaping.
8243 * tests/grub_script_echo1.in: Add tests with wildcard.
8244
8245 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8246
8247 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
8248 (ftdi_hw_configure): Likewise.
8249 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
8250 define.
8251 (real_config): Handle 1.5 stop bits.
8252 (pl2303_hw_configure): Likewise.
8253
8254 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8255
8256 * Makefile.am: Add ppc linux bootcheck.
8257 * grub-core/tests/boot/linux-ppc.cfg: New file.
8258 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
8259
8260 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8261
8262 * tests/grub_script_expansion.in: Skip network protocols.
8263
8264 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8265
8266 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
8267
8268 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8269
8270 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
8271 --rom-directory.
8272 Add -graft-points.
8273
8274 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8275
8276 ESCC serial driver for conducting sautomated tests in qemu.
8277 Not tested on real hardware.
8278
8279 * include/grub/serial.h (grub_serial_port): New field escc_desc.
8280 * grub-core/term/ieee1275/escc.c: New file.
8281 * grub-core/Makefile.core.def (escc): New module.
8282
8283 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8284
8285 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
8286 invalid on error.
8287 (serial_hw_fetch): Don't read invalid handle.
8288 (serial_hw_put): Don't write into invalid handle.
8289
8290 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8291
8292 Add a 1.5 stop bits value.
8293
8294 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
8295 * include/grub/serial.h (grub_serial_stop_bits_t): Add
8296 GRUB_SERIAL_STOP_BITS_1_5.
8297
8298 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8299
8300 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
8301 value rather than let it uninited.
8302
8303 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8304
8305 * grub-core/commands/wildcard.c (+check_file): New function.
8306 (wildcard_expand): Don't expand to non-existing files, expand with
8307 suffix and not attempt to expand if not needed.
8308
8309 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8310
8311 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
8312 out of partitions containing other partitions.
8313
8314 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8315
8316 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
8317 on some qemu versions with GRUB.
8318
8319 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
8320 define.
8321 (grub_openbsd_bootarg_pcibios): New struct.
8322 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
8323 Add PCIINFO.
8324
8325 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8326
8327 * tests/util/grub-shell.in: Trim firmware output on EFI.
8328
8329 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8330
8331 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
8332 and coreboot since it's already in kernel.
8333
8334 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8335
8336 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
8337 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
8338 to here. New return value start. All users updated.
8339 Recursively scan linear mappings.
8340 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
8341 proto.
8342 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
8343 Use grub_util_get_dm_node_linear_info.
8344 * util/getroot.c (convert_system_partition_to_system_disk): Use
8345 grub_util_info rather than grub_dprintf.
8346 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
8347
8348 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8349
8350 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
8351
8352 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
8353 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
8354
8355 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8356
8357 * include/grub/types.h (grub_set_unaligned64): New function.
8358 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
8359 (setup): Likewise.
8360
8361 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8362
8363 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
8364 (grub_ofdisk_fini): Quiesce USB devices.
8365
8366 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8367
8368 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
8369 caches.
8370
8371 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8372
8373 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
8374
8375 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8376
8377 * grub-core/disk/pata.c (grub_pata_pio_read)
8378 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
8379 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
8380
8381 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8382
8383 Extend automated tests to qemu-mips.
8384
8385 * Makefile.am: reorganise tests and enable qemu-mips.
8386 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
8387 * grub-core/tests/boot/linux.init-mips.S: New file.
8388 * tests/partmap_test.in: Handle ata0 disks.
8389 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
8390 non-pc i386.
8391
8392 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8393
8394 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
8395 ia64.
8396 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
8397 quotes while on it.
8398
8399 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8400
8401 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
8402 (grub_halt): Likewise.
8403 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
8404
8405 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8406
8407 * grub-core/term/serial.c (grub_serial_register)
8408 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
8409 the behaviour in line with x86 platforms.
8410
8411 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8412
8413 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
8414 (grub_ata_strncpy): Likewise.
8415 (grub_ata_identify): Add missing byteswaps.
8416
8417 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8418
8419 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
8420 byte-swap.
8421 (screen_read_char): Likewise.
8422 (grub_vga_text_cls): Likewise.
8423
8424 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8425
8426 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
8427 filenames.
8428 (make_file_path): Likewise.
8429
8430 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8431
8432 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
8433 machines.
8434 Tested by: Paulo Flabiano Smorigo.
8435 Crucial information about API supplied by: Coleen <Last name unknown>.
8436 Reviewed by: Coleen <Last name unknown>.
8437
8438 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
8439
8440 * util/grub-mkimage.c: Disable -Wcast-align.
8441
8442 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
8443
8444 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
8445 as they are fatal.
8446
8447 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
8448
8449 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
8450
8451 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
8452
8453 * util/grub-probe.c (escape_of_path): Fix double free.
8454
8455 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
8456
8457 * grub-core/commands/videoinfo.c (hook): Show pitch.
8458
8459 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
8460
8461 * util/grub.d/20_linux_xen.in: Skip xen-syms.
8462
8463 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
8464
8465 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
8466 (probe): Add ieee1275 to OFW devices.
8467
8468 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
8469
8470 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
8471
8472 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
8473
8474 Handle IBM OFW path.
8475
8476 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
8477 available.
8478 (of_path_of_scsi): Handle vdevice.
8479
8480 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
8481
8482 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
8483 Allocate in multiples of 16 to avoid adding a few bytes free region the
8484 windows bugs upon.
8485
8486 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
8487
8488 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
8489 Allocate in multiples of 16 to avoid adding a few bytes free region the
8490 windows bugs upon.
8491 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
8492
8493 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
8494
8495 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
8496 resolutions.
8497 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
8498 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
8499
8500 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
8501
8502 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
8503
8504 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
8505
8506 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
8507 resulted in \\ at the end of the line.
8508
8509 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
8510
8511 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
8512 (grub_parser_cmdline_state): Likewise.
8513 (grub_parser_split_cmdline): Likewise.
8514
8515 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
8516
8517 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
8518 /dev/root and /dev/dm-*.
8519
8520 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
8521
8522 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
8523 fix partially stale display.
8524
8525 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
8526
8527 * grub-core/normal/menu_entry.c (backward_char): Use right line for
8528 substraction.
8529
8530 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
8531
8532 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
8533 Fix MBR remapping workaround.
8534 (grub_util_biosdisk_read) [__linux__]: Likewise.
8535
8536 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
8537
8538 * util/grub-install.in: Check for ieee1275 and not ieee1276.
8539
8540 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
8541
8542 * configure.ac: Bump to beta6.
8543
8544 2012-05-31 Christer Weinigel <christer@weinigel.se>
8545
8546 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
8547
8548 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
8549
8550 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
8551 (grub_cmd_linux): Likewise.
8552
8553 2012-05-31 Christer Weinigel <christer@weinigel.se>
8554
8555 Fix EHCI low-speed.
8556
8557 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
8558 (GRUB_EHCI_MULT_TWO): Likewise.
8559 (GRUB_EHCI_MULT_THREE): Likewise.
8560 (GRUB_EHCI_CMASK_MASK): New enum value.
8561 (GRUB_EHCI_SMASK_MASK): Likewise.
8562 (GRUB_EHCI_CMASK_OFF): Likewise.
8563 (GRUB_EHCI_SMASK_OFF): Likewise.
8564 (grub_ehci_pci_iter): Enable periodic schedule.
8565 (grub_ehci_parse_notrun): Likewise.
8566 (grub_ehci_restore_hw): Likewise.
8567 (grub_ehci_setup_qh): Set flags for low speed transfers.
8568 (grub_ehci_find_qh): Use periodic list for low speed.
8569 (grub_ehci_setup_transfer): Check periodic queue as well.
8570 (grub_ehci_check_transfer): Likewise.
8571 (grub_ehci_cancel_transfer): Cancel periodic transfer.
8572
8573 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8574
8575 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
8576 parameter is used.
8577
8578 2012-05-31 Peter Jones <pjones@redhat.com>
8579
8580 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
8581 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
8582 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
8583
8584 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
8585
8586 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
8587 uninited variable. Allocate at least setup_sects.
8588
8589 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
8590
8591 Fix handling of EFI with big memory maps.
8592
8593 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
8594 (real_mode_mem): Likewise.
8595 (real_mode_target): Likewise.
8596 (real_mode_pages): Likewise.
8597 (prot_mode_pages): Likewise.
8598 (linux_params): New var.
8599 (linux_cmdline): Likewise.
8600 (free_pages): Don't set real mode variables.
8601 (allocate_pages): Don't allocate real mode memory.
8602 (grub_e820_add_region): Remove the limit.
8603 (grub_linux_boot): Allocate and copy real mode memory.
8604 (grub_linux_unload): Free linux_cmdline.
8605 (grub_cmd_linux): Use temporary storage for parameters.
8606 (grub_cmd_initrd): Likewise.
8607 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
8608 (linux_kernel_params): Make it 1K big.
8609
8610 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
8611
8612 * Makefile.util.def: Remove -Wno-format.
8613 * grub-core/Makefile.core.def: Likewise.
8614
8615 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
8616
8617 * tests/cmp_unit_test.c: Add missing failure message.
8618 * tests/example_unit_test.c: Likewise.
8619 * tests/printf_unit_test.c: Likewise.
8620
8621 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
8622
8623 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
8624 relaxation of protective MBR requirements.
8625
8626 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
8627
8628 * configure.ac: Add condition for COND_HOST_XNU.
8629 * Makefile.util.def (10_xnu): New script.
8630 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
8631
8632 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
8633
8634 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
8635 objconv bug.
8636
8637 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
8638
8639 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
8640 Binary on other platforms stays identical.
8641
8642 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
8643
8644 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
8645 Apple.
8646
8647 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
8648
8649 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
8650
8651 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
8652
8653 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
8654 rather than defining size_t ourselves to avoid conflict.
8655
8656 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
8657
8658 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
8659 initialisation to avoid __bzero reference.
8660
8661 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
8662
8663 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
8664 version.
8665 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
8666 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
8667 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
8668 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
8669 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
8670
8671 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
8672
8673 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
8674 * grub-core/kern/misc.c: Likewise.
8675 * grub-core/loader/i386/xnu.c: Likewise.
8676 * include/grub/i386/tsc.h: Likewise.
8677 * include/grub/symbol.h: Likewise.
8678
8679 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
8680
8681 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
8682 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
8683 on older compiler.
8684
8685 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
8686
8687 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
8688 Implement Apple flavour.
8689 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
8690
8691 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
8692
8693 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
8694 (memmove) [__APPLE__]: Likewise.
8695 (memcpy) [__APPLE__]: Likewise.
8696 (memset) [__APPLE__]: Likewise.
8697 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
8698 (memmove) [__APPLE__]: Likewise.
8699 (memcpy) [__APPLE__]: Likewise.
8700 (memset) [__APPLE__]: Likewise.
8701
8702 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
8703
8704 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
8705 dependency discard.
8706
8707 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8708
8709 * grub-core/normal/main.c (read_config_file): Provide config_file and
8710 config_directory.
8711 * util/grub.d/41_custom.in: Use config_directoy when available.
8712
8713 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8714
8715 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
8716 (grub_bfs_dir): Likewise.
8717
8718 2012-05-27 Peter Jones <pjones@redhat.com>
8719
8720 The old code gives arguments to a printf function which can't work
8721 correctly, and the compiler complains.
8722
8723 * grub-core/tests/example_functional_test.c (example_test): Add
8724 missing text.
8725 * grub-core/tests/lib/test.c (add_failure): Rewrite.
8726 * include/grub/test.h (grub_test_assert_helper): New declaration.
8727 (grub_test_assert): Use grub_test_assert_helper.
8728
8729 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8730
8731 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
8732 (exfctest): ... this to avoid overlong filenames.
8733 All users updated.
8734
8735 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8736
8737 Handle "." and ".." on squashfs.
8738
8739 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
8740 Make inode numbers into stack.
8741 (grub_squash_read_symlink): Use stack.
8742 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
8743 (make_root_node): Fill stack.
8744 (grub_squash_open): Use stack.
8745
8746 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8747
8748 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
8749 freeing.
8750
8751 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8752
8753 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
8754 stderr on test calls.
8755
8756 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8757
8758 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
8759
8760 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8761
8762 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
8763
8764 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8765
8766 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
8767 "..".
8768
8769 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8770
8771 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
8772 (grub_hfsplus_iterate_dir): Add "." and "..".
8773
8774 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8775
8776 * grub-core/fs/cpio.c (canonicalize): Handle "..".
8777 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
8778
8779 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8780
8781 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
8782 (find_path): Handle "." and "..".
8783
8784 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8785
8786 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
8787 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
8788 (grub_affs_iterate_dir): Handle hardlinks.
8789
8790 2012-05-26 Matthew Garrett <mjg@redhat.com>
8791
8792 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
8793 (grub_efi_console_fini): Likewise.
8794 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
8795 (grub_video_gop_fill_mode_info): Rename to ...
8796 (grub_video_gop_fill_real_mode_info): ... this.
8797 (grub_video_gop_fill_mode_info): New function.
8798 (grub_video_gop_setup): Setup double framebuffer.
8799 (grub_video_gop_get_info_and_fini): Use original framebuffer.
8800 Free offscreen.
8801 (grub_video_gop_swap_buffers): Copy framebuffer.
8802 (grub_video_gop_fini): Free offscreen buffer.
8803 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
8804 New enum.
8805 (grub_efi_gop_blt_pixel): New struct.
8806
8807 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
8808
8809 * gentpl.py: Remove error disabling for objconv.
8810
8811 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
8812
8813 * configure.ac: Remove -Wunitialized as it's not available on older
8814 compilers.
8815
8816 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
8817
8818 Fix extent overflow comparator.
8819
8820 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
8821 (grub_hfsplus_read_block): Set type.
8822 (grub_hfsplus_cmp_extkey): Compare type.
8823
8824 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
8825
8826 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
8827
8828 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
8829
8830 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
8831 than 0.
8832
8833 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
8834
8835 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
8836 (dejavu_bold_14.pf2): New target.
8837
8838 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
8839
8840 * configure.ac: Fix djvu font detection.
8841
8842 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
8843
8844 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
8845 ext* instead of ext2.
8846
8847 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
8848
8849 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
8850 name with \0.
8851
8852 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
8853
8854 * docs/grub-dev.texi: Remove dot from .png.
8855
8856 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
8857
8858 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
8859 protective entry in any slot.
8860 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
8861 if protective entry is found in any slot.
8862
8863 Protective entry in non-first slot make no sense but is a widespread
8864 brain damage.
8865
8866 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
8867
8868 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
8869
8870 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
8871
8872 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
8873 with old reiserfs.
8874 (grub_reiserfs_open): Don't free root.
8875
8876 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
8877
8878 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
8879 after freeing for safety.
8880
8881 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
8882
8883 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
8884 Reported by: Jordan Uggla.
8885
8886 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
8887
8888 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
8889 actual implementation. Specifically, clarify that the grub menu will
8890 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
8891 passed.
8892
8893 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
8894
8895 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
8896 of r0.
8897
8898 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
8899
8900 Remove unjustified hard dependency of normal.mod on gfxterm.
8901
8902 * include/grub/term.h (grub_term_output): New member fullscreen.
8903 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
8904 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
8905 (grub_gfxterm): Set .fullscreen.
8906 * grub-core/normal/menu.c (menu_init): Use fullscreen.
8907 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
8908
8909 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
8910
8911 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
8912 mentioning possible problems with non-ASCII (non-compliant) ISOs.
8913 Mention case-insensitive AFFS, SFS and JFS.
8914
8915 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
8916
8917 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
8918
8919 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
8920
8921 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
8922 a bad FS.
8923
8924 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
8925
8926 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
8927 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
8928
8929 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
8930
8931 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
8932 (grub_jfs_mount): Fill caseins.
8933 (grub_jfs_find_file): Respect caseins.
8934
8935 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
8936
8937 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
8938 through UTF-16.
8939
8940 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
8941
8942 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
8943 New argument origpath. All users updated.
8944
8945 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
8946
8947 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
8948 (read_attr): Ensure that we read start of possibly compressed block.
8949
8950 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
8951
8952 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
8953 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
8954 All users updated.
8955
8956 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
8957
8958 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
8959 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
8960 (dejavu.pf2): Replace with ...
8961 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
8962 this.
8963
8964 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
8965
8966 * util/grub.d/20_linux_xen.in: Add missing line.
8967
8968 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
8969
8970 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
8971 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
8972 (grub_utf16_to_utf8): Likewise.
8973
8974 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
8975
8976 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
8977 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
8978 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8979 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
8980 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
8981 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
8982
8983 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
8984
8985 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
8986 a bad FS.
8987
8988 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
8989
8990 * grub-core/fs/udf.c (read_string): Bail out on size=0.
8991 (grub_udf_read_symlink): Handle read_string failure.
8992
8993 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
8994
8995 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
8996 comment.
8997
8998 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
8999
9000 Fix handling of UDF symlinks.
9001
9002 * grub-core/fs/udf.c (read_string): New argument outbuf.
9003 All users updated.
9004 (grub_ufs_read_symlink): Rename to ...
9005 (grub_udf_read_symlink): ... this. All users updated.
9006 Handle symlinks with more than one component.
9007
9008 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
9009
9010 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
9011 symlinks. Replace leading colon with a slash.
9012
9013 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
9014
9015 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
9016 filename.
9017
9018 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
9019
9020 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
9021 match in inner node.
9022
9023 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
9024
9025 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
9026 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
9027 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
9028 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
9029 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
9030 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
9031 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
9032 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
9033 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
9034
9035 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
9036
9037 Use grub-probe and not cmp to check that disk is empty.
9038
9039 * util/grub-install.in: Use grub-probe for zero-check.
9040 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
9041 (probe): Handle PRINT_ZERO_CHECK.
9042 (argp_parser): Handle -t zero_check.
9043
9044 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
9045
9046 Flush block cache on adding disk to device map.
9047
9048 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
9049 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
9050 adding.
9051 (read_device_map): Likewise.
9052 (open_device): Flush on opening.
9053
9054 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
9055
9056 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
9057 (handle_symlink): Fix off-by-one error.
9058 Canonicalize the target.
9059 (grub_cpio_dir): Canonicalize the name.
9060 Fix memory leak.
9061 Set directory.
9062 (grub_cpio_open): Canonicalize the name.
9063
9064 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
9065
9066 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
9067 handling.
9068
9069 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
9070
9071 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
9072 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
9073
9074 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
9075
9076 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
9077 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
9078 All users updated.
9079
9080 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
9081
9082 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
9083 counterpart.
9084
9085 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
9086
9087 Fix UFS1 big file support.
9088
9089 * grub-core/fs/ufs.c (INODE): Removed.
9090 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
9091 64-bit.
9092 (INODE_MODE): Simplify.
9093 (grub_ufs_inode): Use uint64_t for size and not int64_t.
9094 (grub_ufs_lookup_symlink): Don't use INODE.
9095
9096 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
9097
9098 Fix minixfs with non-power-of-two blocks since it's supported by minix.
9099
9100 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
9101 (grub_minix_data): Replace log_block_size with block_size.
9102 (grub_minix_read_file): Use block_size but avoid 64-bit division.
9103 (grub_minix_mount): Fill block_size.
9104
9105 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
9106
9107 * configure.ac: Bump to beta5.
9108
9109 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
9110
9111 Fix wrapped HFS+ handling.
9112
9113 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
9114 blocks_start. All users updated.
9115 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
9116 wrapping offset.
9117 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
9118
9119 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
9120
9121 Fix long symlinks on reiserfs.
9122
9123 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
9124 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
9125 (grub_reiserfs_iterate_dir): Save size for non-directories.
9126 (grub_reiserfs_open): Don't reread stat block as we already know the
9127 size.
9128 (grub_reiserfs_read): Split into...
9129 (grub_reiserfs_read_real): ... and ...
9130 (grub_reiserfs_read): ...this.
9131
9132 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
9133
9134 Fix non-indexed JFS.
9135
9136 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
9137 (grub_jfs_data): New field namecomponentlen.
9138 (grub_jfs_mount): Fill namecomponentlen.
9139 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
9140
9141 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
9142
9143 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
9144 * tests/grub_script_echo1.in: Add tests.
9145
9146 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
9147
9148 * util/grub-install.in: Ignore empty devicetree directory.
9149
9150 2012-05-08 Bean <bean123ch@gmail.com>
9151
9152 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
9153 All users updated.
9154 (free_rsm): Free header as well.
9155 (free_old_fragments): Fix memory leak.
9156 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
9157 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
9158 (destroy_pq): Likewise.
9159 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
9160
9161 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
9162
9163 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
9164 resulting hash as a precaution.
9165
9166 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
9167
9168 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
9169 '_' in variable names.
9170 * grub-core/net/net.c (grub_net_network_level_interface_register):
9171 Likewise.
9172
9173 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
9174
9175 Fix AFFS with non-512B blocks.
9176
9177 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
9178 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
9179 (grub_affs_data): Replace blocksize with log_blocksize.
9180 (grub_affs_read_block): Fix non-512B blocks.
9181 (grub_affs_read_symlink): Likewise.
9182 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
9183 (grub_affs_read): Fix non-512B blocks.
9184 (grub_affs_label): Likewise.
9185 (grub_affs_mtime): Likewise.
9186 (grub_affs_mount): Fix block detection routine.
9187
9188 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
9189
9190 Add filesystem mtime to AFFS.
9191
9192 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
9193 (aftime2ctime): New function.
9194 (grub_affs_dir): Use aftime2ctime.
9195 (grub_affs_label): Fix return value.
9196 (grub_affs_mtime): New function.
9197 (grub_affs_fs): Add mtime.
9198
9199 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
9200
9201 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
9202 UTF-8.
9203
9204 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
9205
9206 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
9207 UTF-8.
9208
9209 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
9210
9211 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
9212
9213 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
9214
9215 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
9216 flags.
9217 (FLAGS_CASE_SENSITIVE): New enum value.
9218 (cache_entry): New struct.
9219 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
9220 cache_size and cache.
9221 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
9222 Add log_blocksize and fshelp_flags.
9223 (grub_sfs_read_extent): Handle non-512 blocks.
9224 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
9225 (grub_sfs_read_file): Handle non-512 blocks.
9226 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
9227 fshelp_flags.
9228 (grub_sfs_read_symlink): Handle non-512 blocks.
9229 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
9230 (grub_sfs_dir): Free cache.
9231 (grub_sfs_close): Likewise.
9232
9233 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
9234
9235 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
9236 filesystems.
9237
9238 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
9239
9240 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
9241
9242 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
9243
9244 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
9245
9246 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
9247
9248 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
9249 (grub_sfs_read_extent): Likewise.
9250 (grub_sfs_read_block): Likewise.
9251 (grub_sfs_mount): Likewise.
9252 (grub_sfs_iterate_dir): Likewise.
9253 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
9254 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
9255
9256 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9257
9258 Fix errors on compressed NTFS with 512B clusters.
9259
9260 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
9261 types.
9262 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
9263 not 0.
9264 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
9265 Relax check for inline extents.
9266 (ntfscomp): Return correct -1 on error and not 0.
9267
9268 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9269
9270 * util/grub-install.in: Fix handling of prefix containing spaces.
9271
9272 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9273
9274 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
9275 (grub_squash_read_data): Fix offset byte-swapping.
9276
9277 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9278
9279 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
9280 per common usage and preffered in several parts of code.
9281 (grub_memcmp): Likewise.
9282 (grub_strncmp): Likewise.
9283 * include/grub/misc.h (grub_strcasecmp): Likewise.
9284 (grub_strncasecmp): Likewise.
9285 * Makefile.util.def (cmp_test): New test.
9286 (grub_script_strcmp): Likewise.
9287 * tests/cmp_unit_test.c: New file.
9288 * tests/grub_script_strcmp.in: Likewise.
9289 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
9290
9291 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9292
9293 * include/grub/pci.h: Move enums into no-asm part.
9294
9295 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9296
9297 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
9298
9299 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
9300
9301 * util/getroot.c (find_hurd_root_device): Try to make error message
9302 and comments to translators clearer.
9303
9304 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9305
9306 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
9307
9308 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9309
9310 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
9311 btrfs.
9312
9313 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9314
9315 * docs/grub.cfg: Update.
9316
9317 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9318
9319 * docs/grub.texi (PXE): Remove not present variables.
9320
9321 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9322
9323 * grub-core/net/net.c (defserver_set_env): New function.
9324 (defserver_get_env): Likewise.
9325 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
9326
9327 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9328
9329 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
9330 entries.
9331
9332 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9333
9334 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
9335 * grub-core/kern/emu/hostdisk.c: Likewise.
9336
9337 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
9338
9339 Handle hurd userspace partitions.
9340
9341 * util/getroot.c (find_hurd_root_device): New function.
9342 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
9343
9344 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9345
9346 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
9347 names.
9348 Reported by: Bastian Blank.
9349
9350 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9351
9352 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
9353 crossing page boundary.
9354
9355 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9356
9357 Fix B-tree search in BFS, especially in presence of non-ASCII
9358 characters.
9359
9360 * grub-core/fs/bfs.c (bfs_strcmp): New function.
9361 (find_in_b_tree): Use standard bsearch + btree algorithm.
9362
9363 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9364
9365 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
9366 and so on.
9367
9368 2012-05-03 Matthew Garrett <mjg@redhat.com>
9369 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9370
9371 Suspend broadcom cards in order to stop their DMA.
9372
9373 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
9374 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
9375 (pci): Don't build on x86 EFI.
9376 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
9377 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
9378 New function.
9379 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
9380 stop_broadcom if running on EFI.
9381 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
9382 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
9383 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
9384 (grub_pci_find_capability): New proto.
9385
9386 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9387
9388 * docs/grub.texi: Remove dot from the extension as it apparently
9389 doesn't work with some makeinfo versions.
9390
9391 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9392
9393 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
9394 with GRUB expectance.
9395
9396 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9397
9398 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
9399
9400 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9401
9402 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
9403 zero after directory block since last entry may be not 0-terminated if
9404 it ends on block boundary. Use continue instead of if spanning whole
9405 loop.
9406
9407 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9408
9409 Support 4K sectors UDF inline files.
9410
9411 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
9412 (grub_udf_extended_file_entry): Likewise.
9413 (grub_fshelp_node): Name the anonymous union. Put block at the end.
9414 All users updated.
9415 (get_fshelp_size): New function.
9416 (grub_udf_read_icb): Read whole block.
9417 (grub_udf_iterate_dir): Likewise.
9418 (grub_udf_dir): Likewise.
9419 (grub_udf_open): Likewise.
9420
9421 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9422
9423 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
9424
9425 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9426
9427 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
9428 inline symlinks in addition to workaround.
9429
9430 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9431
9432 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
9433
9434 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9435
9436 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
9437
9438 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9439
9440 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
9441
9442 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
9443
9444 Fix reiserfs big seek times.
9445
9446 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
9447 exact. All users updated.
9448 (grub_reiserfs_read): Use nearest btree search for seeking.
9449 Fix return value on error.
9450
9451 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
9452
9453 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
9454 entries.
9455 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
9456 * docs/grub.texi: Update menuentry description.
9457
9458 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
9459
9460 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
9461 crash when embedding onto filesystem.
9462
9463 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
9464
9465 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
9466 name.
9467
9468 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9469
9470 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
9471
9472 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9473
9474 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
9475 commit.
9476
9477 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9478 2012-05-01 Bean <bean123ch@gmail.com>
9479
9480 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
9481
9482 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9483
9484 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
9485 Special behaviour for len = 0 to read whole file isn't used anywhere and
9486 can cause buffer ovewrflows in several places.
9487
9488 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9489
9490 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
9491
9492 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9493
9494 Handle RAIDZ on non-512B sectors.
9495
9496 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
9497 max_children_ashift.
9498 (fill_vdev_info_real): Fill max_children_ashift.
9499 (read_device): Use max_children_ashift.
9500
9501 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9502
9503 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
9504
9505 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9506
9507 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
9508 disk names.
9509 * docs/grub.texi: Update device.map parts.
9510
9511 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9512
9513 Don't scan into non-diskfilter devices having diskfilter names.
9514
9515 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
9516 (scan_disk): New argument accept_diskfilter. Fix recursion depth
9517 handling.
9518 (scan_disk_hook): New function.
9519
9520 2012-04-29 Bean <bean123ch@gmail.com>
9521
9522 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
9523 allocation.
9524
9525 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
9526
9527 * configure.ac: Detect starfield theme font path
9528 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
9529
9530 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
9531
9532 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
9533 geometry on serial consoles.
9534
9535 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
9536
9537 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
9538 because of network consoles.
9539
9540 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
9541
9542 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
9543 handling.
9544
9545 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
9546
9547 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
9548 falls on Q syndrom.
9549
9550 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
9551
9552 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
9553 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
9554
9555 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
9556
9557 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
9558 Allocate at lest 8192 for temporary buffer as required for lzo.
9559
9560 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
9561
9562 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
9563 to cluster_bits, since it's already added in.
9564 (grub_fat_read_data): Likewise.
9565
9566 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
9567
9568 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
9569 as long as cluster size is multiple of 512 bytes.
9570
9571 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
9572
9573 * util/grub-mkrescue.in: Fix locale directory.
9574
9575 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
9576
9577 * grub-core/kern/emu/hostdisk.c (map): Make static.
9578
9579 2012-04-23 Bean <bean123ch@gmail.com>
9580
9581 * util/grub-fstest.c (fstest): Add missing break.
9582
9583 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
9584
9585 Fix hurd build.
9586
9587 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
9588 not define nr variable.
9589 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
9590 find_root_devices_from_poolname, find_root_devices_from_libzfs,
9591 grub_find_device): Do not define.
9592
9593 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
9594
9595 Fix kfreebsd compile and behaviour.
9596
9597 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
9598 format-security.
9599 * util/getroot.c: Fix wait.h include.
9600 (grub_guess_root_devices): Error if grub_find_device fails.
9601 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
9602 (grub_util_get_dev_abstraction): Likewise.
9603 (grub_util_pull_device): Likewise.
9604 (grub_util_get_grub_dev): Likewise.
9605 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
9606
9607 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
9608
9609 Fix and unify wholedisk detection.
9610
9611 * util/getroot.c (convert_system_partition_to_system_disk): New argument
9612 is_part. All users updated.
9613 (device_is_wholedisk): Removed.
9614 (grub_util_biosdisk_get_grub_dev): Use is_part.
9615
9616 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
9617
9618 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
9619 mode.
9620
9621 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
9622
9623 * configure.ac: Bump to beta4.
9624
9625 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
9626
9627 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
9628 --fs-uuid --set UUID syntax.
9629
9630 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
9631
9632 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
9633 disunification.
9634
9635 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
9636
9637 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
9638
9639 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
9640
9641 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
9642
9643 2012-04-18 Mike Gilbert <floppym@gentoo.org>
9644
9645 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
9646
9647 2012-04-18 Bean <bean123ch@gmail.com>
9648
9649 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
9650 place.
9651
9652 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
9653
9654 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
9655 users updated.
9656 (grub_util_biosdisk_read): Handle Linux partitions not exactly
9657 corresponding to GRUB partitions.
9658 (grub_util_biosdisk_write): Likewise.
9659
9660 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
9661
9662 Scan mdraid before LVM.
9663
9664 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
9665 (grub_diskfilter_register_front): ... this.
9666 (grub_diskfilter_register_back): New function.
9667 All users of grub_diskfilter_register updated.
9668
9669 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
9670
9671 * util/grub-install.in: Fix an automatic target detection bug.
9672
9673 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
9674
9675 * util/grub-install.in: New option --efi-directory.
9676
9677 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
9678
9679 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
9680 boot services if we have no other choice.
9681
9682 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
9683
9684 * util/grub-mknetdir.in: Rename --override-directory to --directory and
9685 document it.
9686 * tests/util/grub-shell.in: Update to --directory.
9687
9688 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
9689
9690 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
9691
9692 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
9693
9694 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
9695 (grub_minix_read_file): Likewise.
9696 (grub_minix_read_inode): Likewise.
9697 (grub_minix_find_file): Likewise.
9698 (grub_minix_dir): Likewise.
9699
9700 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
9701
9702 * util/grub-setup.c (setup): Fix partition handling and blocklist
9703 check.
9704
9705 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
9706
9707 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
9708 redundant buggy overlap check.
9709
9710 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
9711
9712 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
9713 and grub-mknetdir.
9714
9715 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
9716
9717 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
9718 kh.loadflags on pre-2.00 kernels.
9719
9720 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
9721
9722 Terminate UNDI and PXE before launching the payload to avoid problems
9723 with DMA.
9724
9725 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
9726 (grub_loader_flags): ... this. All users updated.
9727 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
9728 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
9729 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
9730 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
9731 function.
9732 (grub_pxe_restore): Likewise.
9733 (fini_hnd): New var.
9734 (GRUB_MOD_INIT): Register shutdown hook.
9735 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
9736 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
9737 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
9738 (grub_loader_set): Rename second argument to flags.
9739
9740 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
9741
9742 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
9743 written bytes.
9744 (grub_get_num_of_utf8_bytes): New function.
9745 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
9746 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
9747 executing it.
9748 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
9749 (grub_ucs4_to_utf8): Change return type.
9750
9751 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
9752
9753 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
9754 warning.
9755 * grub-core/fs/bfs.c (hop_level): Likewise.
9756 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
9757
9758 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
9759
9760 * grub-core/lib/adler32.c: Recode due to license unclearness.
9761
9762 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
9763
9764 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
9765 (test_header): Likewise.
9766
9767 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
9768
9769 Fix --help formatting.
9770
9771 * util/grub-mkconfig_lib.in (print_option_help): New function.
9772 (grub_fmt): Likewise.
9773 * util/grub-install.in: Use print_option_help and grub_fmt.
9774 * util/grub-kbdcomp.in: Likewise.
9775 * util/grub-mkconfig.in: Likewise.
9776 * util/grub-mknetdir.in: Likewise.
9777 * util/grub-mkrescue.in: Likewise.
9778 * util/grub-mkstandalone.in: Likewise.
9779 * util/grub-reboot.in: Likewise.
9780 * util/grub-set-default.in: Likewise.
9781 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
9782
9783 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
9784
9785 * linguas.sh: Remove autogenerated *.po.
9786
9787 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
9788
9789 * po/README: Move language fetcing to ...
9790 * linguas.sh: ... here.
9791 * po/README: Point to linguas.sh.
9792
9793 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
9794
9795 * po/README: Exclude ko.po due to disclaimer problems.
9796
9797 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
9798
9799 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
9800 len = 0.
9801 (grub_gettext_translate_real): Handle 0th string.
9802 (grub_gettext_translate): Ensure that "" isn't translated.
9803
9804 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
9805
9806 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
9807 TRANSLATORS comment.
9808 (grub_diskfilter_print_partmap): Propagate changing of error into
9809 warning.
9810
9811 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
9812
9813 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
9814 to uint64_t to prevent overflow.
9815 (grub_diskfilter_lv): Increase start_extent and extent_count
9816 to uint64_t to prevent overflow.
9817
9818 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
9819
9820 * configure.ac: Increase version.
9821
9822 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
9823
9824 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
9825
9826 * po/Rules-translit: New file.
9827 * po/arabic.sed: Likewise.
9828 * po/cyrillic.sed: Likewise.
9829 * po/greek.sed: Likewise.
9830 * po/hebrew.sed: Likewise.
9831 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
9832 * po/Makefile.in.in: Add extra_dist4.
9833
9834 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
9835
9836 Handle big-endian minixfs (fixes minixfs tests on bigendian).
9837
9838 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
9839 modify names. Introduce MODE_BIGENDIAN.
9840 * grub-core/fs/minix_be.c: New file.
9841 * grub-core/fs/minix2_be.c: Likewise
9842 * grub-core/fs/minix3_be.c: Likewise.
9843 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
9844 minix3_be.
9845 * grub-core/Makefile.core.def (minix_be): New module.
9846 (minix2_be): Likewise.
9847 (minix3_be): Likewise.
9848
9849 2012-04-01 Felix <email@hamburg.de>
9850
9851 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
9852 (devs): Add MBP 2011.
9853
9854 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
9855
9856 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
9857
9858 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
9859
9860 * grub-core/normal/cmdline.c (print_completion): New field
9861 prompt_len.
9862 (grub_cmdline_get): Handle width properly.
9863
9864 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
9865
9866 * grub-core/commands/lsacpi.c (options): Add missing terminator.
9867
9868 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
9869
9870 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
9871 after 29th of February.
9872
9873 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
9874
9875 Fix exfat endianness handling.
9876
9877 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
9878 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
9879 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
9880 Byte-swap utf16 when necessary.
9881 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
9882
9883 2012-03-31 Anton Blanchard <anton@samba.org>
9884 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
9885
9886 Fix btrfs endianness handling.
9887
9888 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
9889 (lower_bound): Make root uint64_t. Use root in le.
9890 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
9891 (find_path): Fix template key init.
9892 (grub_btrfs_dir): Fix mtime byteswap.
9893 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
9894
9895 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
9896
9897 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
9898 recursion_depth. Break infinite resursions. All users updated.
9899
9900 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
9901
9902 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
9903 after free.
9904 Reported by: Peter Jones.
9905
9906 2012-03-31 Anton Blanchard <anton@samba.org>
9907
9908 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
9909 8 bit values.
9910
9911 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
9912
9913 * util/grub-install.in: Fix nvram call for PreP.
9914
9915 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
9916
9917 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
9918 the error when some elements are missing into a warning.
9919
9920 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
9921
9922 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
9923
9924 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
9925
9926 * docs/grub.texi (Invoking grub-probe): New section.
9927 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
9928
9929 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
9930
9931 Fix tab and wide character handling in editor and menu.
9932
9933 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
9934 agglomerate control characters with combining marks.
9935 (bidi_line_wrap): Allow break on tab.
9936 (grub_unicode_get_comb_start): New function.
9937 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
9938 and tab correctly.
9939 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
9940 with a space.
9941 * grub-core/normal/term.c (print_ucs4_terminal): New argument
9942 fixed_tab_size. All users updated.
9943 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
9944 (grub_term_getcharwidth): Handle \t.
9945 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
9946 and copy.
9947
9948 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
9949
9950 Handle big-endian mdraid.
9951
9952 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
9953 * grub-core/Makefile.core.def (mdraid09_be): New module.
9954 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
9955 rather than grub_le_to_cpu* and grub_cpu_to_le*.
9956 * grub-core/disk/mdraid_linux_be.c: New file.
9957
9958 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
9959
9960 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
9961
9962 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
9963
9964 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
9965 missing quotes which caused confusion among translators.
9966
9967 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
9968
9969 * util/grub-mkconfig_lib.in: Fix typo.
9970
9971 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
9972
9973 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
9974 spaces.
9975 * tests/grub_script_leading_whitespace.in: New file.
9976 * Makefile.util.def (grub_script_leading_whitespace): New test.
9977
9978 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
9979
9980 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
9981 to work.
9982
9983 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
9984
9985 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
9986 starts with control character.
9987
9988 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
9989
9990 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
9991 overflow.
9992 (grub_gdb_outbuf): Likewise.
9993
9994 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
9995
9996 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
9997 zero terminator. Fixes a crash.
9998
9999 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
10000
10001 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
10002 beyond 4 GiB.
10003 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
10004 images independently of preffered adderss field.
10005
10006 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
10007
10008 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
10009 * grub-core/commands/regexp.c: Likewise.
10010 * grub-core/loader/i386/linux.c: Likewise.
10011 * grub-core/partmap/msdos.c: Likewise.
10012 * grub-core/script/execute.c: Likewise.
10013 * grub-core/term/gfxterm.c: Likewise.
10014
10015 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
10016
10017 Add variable parsing in $"..." and fix several mismatches with bash.
10018
10019 * Makefile.util.def (grub_script_gettext): New test.
10020 * grub-core/script/execute.c (parse_string): New function.
10021 (gettext_append): Likewise.
10022 (grub_script_arglist_to_argv): Use gettext_append.
10023 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
10024 * tests/grub_script_gettext.in: New file.
10025
10026 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
10027
10028 Fix handling of leading spaces in scripts.
10029
10030 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
10031 spaces.
10032 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
10033 other than skipping \r. All users updated.
10034 * tests/grub_script_echo1.in: Add space-related tests.
10035 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
10036
10037 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
10038
10039 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
10040
10041 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10042
10043 * configure.ac: Bump up the version to beta2.
10044
10045 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10046
10047 Fix gettext reload bugs (e.g. inability to disable gettext
10048 once enabled).
10049
10050 * grub-core/gettext/gettext.c: Encapsulate all static variables in
10051 main_context and secondary_context. All functions updated.
10052 (grub_gettext_translate): Rename to ...
10053 (grub_gettext_translate_real): ... this. Return NULL on failed
10054 translate.
10055 (grub_gettext_translate): Handle secondary context.
10056 (grub_gettext_delete_list): Close file and zero-out the context.
10057 (grub_mofile_open): Don't call grub_gettext_delete_list.
10058 Don't close file.
10059 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
10060 if locale="" to avoid pointless error message.
10061 (grub_gettext_env_write_lang): Update lang even if load fails.
10062 Handle secondary context.
10063 (grub_gettext_reread_prefix): New function.
10064 (read_main): Likewise.
10065 (read_secondary): Likewise.
10066 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
10067 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
10068 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
10069 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
10070
10071 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10072
10073 * configure.ac: Decrease warning level to avoid spurious warnings and
10074 to be able to compile with GCC 4.2.
10075 * Makefile.util.def: Remove -Wno-error=logical-op.
10076
10077 2012-03-10 William Bittner <william.bittner@gmail.com>
10078
10079 * util/import_unicode.py: Add missing brackets around string for
10080 python 3 support.
10081
10082 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10083
10084 Fix efi chainloader on network root.
10085
10086 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
10087 network devices.
10088 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
10089 New function.
10090
10091 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10092
10093 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
10094 unused show_text member.
10095 * docs/grub.texi: Document "text" property.
10096
10097 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10098
10099 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
10100 in dprintf.
10101
10102 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10103
10104 Fix IMSM handling on Fedora.
10105
10106 * util/getroot.c (grub_util_is_imsm): New function.
10107 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
10108
10109 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10110
10111 * Makefile.am: Strip gold section.
10112 * conf/Makefile.common: Likewise.
10113 * gentpl.py: Likewise.
10114 * grub-core/Makefile.core.def: Likewise.
10115 * grub-core/genmod.sh.in: Likewise.
10116
10117 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10118
10119 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
10120 * util/grub.d/20_linux_xen.in: Likewise.
10121 Based on Debian patch.
10122
10123 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10124
10125 * util/grub.d/10_linux.in: Fix syntax error resulting in
10126 Richard Laager's patch.
10127 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
10128
10129 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10130
10131 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
10132 dependencies.
10133
10134 2012-03-10 Richard Laager <rlaager@wiktel.com>
10135
10136 * util/grub.d/10_linux.in: Fix ZFS root passing.
10137
10138 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10139
10140 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
10141 * grub-core/commands/xnu_uuid.c: Likewise.
10142 * grub-core/loader/efi/appleloader.c: Likewise.
10143 * grub-core/script/execute.c: Likewise.
10144 * grub-core/script/main.c: Likewise.
10145 * util/grub-mkfont.c: Likewise.
10146
10147 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10148
10149 * util/grub-mkfont.c (options): Use more appropriate "select" that
10150 "set" for face index.
10151
10152 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10153
10154 * util/grub-editenv.c (options): Gettextize command summaries.
10155
10156 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10157
10158 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
10159 "out of memory" error messagge.
10160
10161 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10162
10163 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
10164 of diskfilter for diskfilter on diskfilter support.
10165
10166 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10167
10168 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
10169
10170 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10171
10172 * util/grub-install.in: Check for themes/starfield/theme.txt and not
10173 themes/starfield.
10174
10175 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10176
10177 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
10178
10179 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10180
10181 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
10182
10183 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10184
10185 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
10186 of error message.
10187
10188 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
10189
10190 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
10191
10192 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
10193
10194 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
10195 message.
10196 * util/grub-install.in: Fix and gettextize error message.
10197
10198 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
10199
10200 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
10201 Gettextize.
10202 * util/grub-mount.c (options): Likewise.
10203
10204 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
10205
10206 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
10207 gettextize.
10208 * grub-core/commands/search_wrap.c (options): Likewise.
10209
10210 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
10211
10212 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
10213
10214 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
10215
10216 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
10217 size calculation.
10218 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
10219 none is known.
10220
10221 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
10222
10223 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
10224 "temporary" since it's used in identifier and is limited in space.
10225
10226 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
10227
10228 * po/POTFILES.in: Regenerate. Include *.h since they contain
10229 translatable strings as well.
10230
10231 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
10232
10233 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
10234 byte-swap on big-endian.
10235 Reported by: Lennart Sorensen
10236
10237 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
10238
10239 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
10240 (allocate_pages): Improve dprintf.
10241 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
10242 code32_start. Fill code32_start and kernel_alignment in params.
10243 (grub_cmd_initrd): Use prot_init_space.
10244
10245 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10246
10247 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
10248
10249 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10250
10251 * util/grub-install.in: Add missing dot at the end of sentence.
10252
10253 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10254
10255 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
10256 * grub-core/commands/videotest.c: Likewise.
10257 * grub-core/loader/i386/linux.c: Likewise.
10258
10259 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10260
10261 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
10262 sentence.
10263 Reported by: Milo Casagrande.
10264
10265 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10266
10267 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
10268 * grub-core/commands/gptsync.c: Likewise.
10269 * grub-core/commands/hashsum.c: Likewise.
10270 * grub-core/commands/i386/pc/sendkey.c: Likewise.
10271 * grub-core/commands/legacycfg.c: Likewise.
10272 * grub-core/io/gzio.c: Likewise.
10273 * grub-core/net/net.c: Likewise.
10274 * grub-core/term/gfxterm.c: Likewise.
10275 * grub-core/term/terminfo.c: Likewise.
10276 * grub-core/tests/test_blockarg.c: Likewise.
10277 * grub-core/video/video.c: Likewise.
10278 * util/grub-install.in: Likewise.
10279 * util/grub-mkfont.c: Likewise.
10280
10281 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10282
10283 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
10284
10285 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10286
10287 * grub-core/commands/search_wrap.c (options): Fix a typo.
10288 Reported by: David Prévot.
10289
10290 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10291
10292 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
10293 description.
10294
10295 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10296
10297 * util/grub-script-check.c (main): Fix a syntax error message which was
10298 unclear.
10299
10300 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10301
10302 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
10303
10304 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10305
10306 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
10307 messages.
10308
10309 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10310
10311 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
10312 without argument.
10313 * util/grub-mount.c (options): Likewise.
10314
10315 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
10316
10317 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
10318
10319 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
10320
10321 * grub-core/net/http.c: Add TRANSLATORS comments.
10322 * grub-core/normal/cmdline.c: Likewise.
10323 * grub-core/normal/misc.c: Likewise.
10324 * grub-core/partmap/msdos.c: Likewise.
10325 * grub-core/parttool/msdospart.c: Likewise.
10326 * grub-core/script/execute.c: Likewise.
10327 * grub-core/script/main.c: Likewise.
10328 * grub-core/term/terminfo.c: Likewise.
10329 * grub-core/video/bitmap.c: Likewise.
10330 * util/grub-install.in: Likewise.
10331 * util/grub-mkimage.c: Likewise.
10332 * util/grub-mklayout.c: Likewise.
10333 * util/grub-setup.c: Likewise.
10334
10335 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
10336
10337 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
10338 with similar messages in grub-fstest.
10339
10340 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
10341
10342 * util/grub-install.in: Unify "option requires an argument" message
10343 with similar messages in other files.
10344 * util/grub-mkconfig.in: Likewise.
10345
10346 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
10347
10348 * util/grub-set-default.in: Replace printf with gettext_printf (the
10349 string in in question is already translated from grub-reboot)
10350
10351 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
10352
10353 * configure.ac: Bump up the version to beta1.
10354
10355 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10356
10357 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
10358 case when min_align = 0.
10359
10360 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10361
10362 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
10363 and fix a case when line_start overflows.
10364
10365 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10366
10367 * util/grub-reboot.in (usage): Mention id posibility.
10368 * util/grub-set-default.in (usage): Likewise.
10369
10370 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10371
10372 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
10373 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
10374 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
10375 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
10376 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
10377 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
10378 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
10379
10380 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10381
10382 * grub-core/commands/menuentry.c (options): Remove
10383 GRUB_ARG_OPTION_REPEATABLE.
10384 Reported by: Andreas Vogel
10385
10386 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
10387
10388 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
10389
10390 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
10391
10392 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
10393 error.
10394
10395 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10396
10397 Use sort -V by the idea of Georgi Georgiev.
10398
10399 * util/grub-mkconfig_lib.in (version_sort): New function.
10400 (version_test_numeric): Use version_sort.
10401
10402 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10403
10404 Use submenus in grub-mkconfig.
10405
10406 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
10407 * util/grub-mkconfig_lib.in (grub_quote): New function.
10408 (gettext_printf): Use gettext and not gettext_quoted to fix several
10409 messages.
10410 * util/grub.d/10_hurd.in: Use submenus.
10411 * util/grub.d/10_kfreebsd.in: Likewise.
10412 * util/grub.d/10_linux.in: Likewise.
10413 * util/grub.d/10_netbsd.in: Likewise.
10414 * util/grub.d/20_linux_xen.in: Likewise.
10415 * util/grub.d/30_os-prober.in: Likewise.
10416 * util/grub.d/10_illumos.in: Add missing quoting.
10417 * util/grub.d/10_windows.in: Likewise.
10418
10419 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10420
10421 Fix menu title instability bug.
10422
10423 * grub-core/commands/menuentry.c (options): New option --id.
10424 (grub_normal_add_menu_entry): New argument id. All users updated.
10425 (grub_cmd_menuentry): Handle --id.
10426 (grub_menu_init): Accept unknown arguments.
10427 * grub-core/normal/main.c (features): Add feature_menuentry_id and
10428 feature_menuentry_options.
10429 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
10430 saved_entry.
10431 (get_entry_number): Match with id as well.
10432 * include/grub/menu.h (grub_menu_entry): New member id.
10433 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
10434 * util/grub.d/00_header.in: Define menuentry_id_option.
10435 * util/grub.d/10_hurd.in: Define id.
10436 * util/grub.d/10_illumos.in: Likewise.
10437 * util/grub.d/10_kfreebsd.in: Likewise.
10438 * util/grub.d/10_linux.in: Likewise.
10439 * util/grub.d/10_netbsd.in: Likewise.
10440 * util/grub.d/10_windows.in: Likewise.
10441 * util/grub.d/20_linux_xen.in: Likewise.
10442 * util/grub.d/30_os-prober.in: Likewise.
10443
10444 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10445
10446 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
10447 "scope" with "body".
10448
10449 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
10450
10451 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
10452 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
10453 prot_size and prot_file_size.
10454
10455 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
10456
10457 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
10458 All users updated. If easily=1 require raid-5/-6 to be full.
10459 (is_node_readable): Likewise.
10460 (scan_devices): Scan incomplete but readable LVs at the end.
10461 (grub_diskfilter_memberlist): Pull missing devices.
10462 (insert_array): Skip scanning until device is complete or scan is
10463 done otherwise.
10464 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
10465 check.
10466 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
10467 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
10468
10469 2012-03-03 Matthew Garrett <mjg@redhat.com>
10470 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
10471
10472 Avoid EFI boot services when loading Linux.
10473
10474 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
10475 avoid_efi_bootservices. All users updated.
10476 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
10477 argument avoid_efi_bootservices. All users updated.
10478 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
10479 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
10480 align, min_align, relocatable, prefered_address. All users updated.
10481 Allocate avoiding boot services if kernel is relocatable.
10482 (grub_cmd_linux): Check if kernel is relocatable.
10483 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
10484 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
10485 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
10486 avoid_efi_boot_services.
10487 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
10488 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
10489 (linux_kernel_params): Likewise.
10490
10491 2012-03-03 Matthew Garrett <mjg@redhat.com>
10492 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
10493
10494 Use EDID on EFI.
10495
10496 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
10497 datasize_out.
10498 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
10499 modes. Set gop_handle.
10500 (grub_video_gop_get_edid): New function.
10501 (grub_gop_get_preferred_mode): Likewise.
10502 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
10503 (grub_video_efi_gop_adapter): Set .get_edid.
10504 * include/grub/efi/edid.h: New file.
10505 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
10506
10507 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
10508
10509 * util/grub-install.in: Load efivars unconditionally.
10510
10511 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
10512
10513 * po/Rules-piglatin: Change suffix from .po-update-en to
10514 .po-update-en-piglatin.
10515
10516 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
10517
10518 Add a pig farm.
10519
10520 * po/piglatin.sed: New file.
10521 * po/en@piglatin.header: Likewise.
10522 * po/Rules-piglatin: Likewise.
10523 * po/README: Add en@piglatin to autogenerated languages.
10524
10525 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
10526
10527 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
10528 "Command for ...".
10529 * grub-core/commands/hdparm.c (options): Use "Display" rather than
10530 "Check" since we don't check anything.
10531 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
10532 is 64-bit one.
10533 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
10534 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
10535 (grub_md_sha512_real): Likewise.
10536
10537 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
10538
10539 * grub-core/commands/gptsync.c: Fix typographic quoting.
10540 * grub-core/commands/ieee1275/suspend.c: Likewise.
10541 * grub-core/commands/parttool.c: Likewise.
10542 * grub-core/commands/search_wrap.c: Likewise.
10543 * grub-core/commands/videoinfo.c: Likewise.
10544 * grub-core/gfxmenu/gui_label.c: Likewise.
10545 * grub-core/hello/hello.c: Likewise.
10546 * grub-core/kern/emu/main.c: Likewise.
10547 * grub-core/net/net.c: Likewise.
10548 * grub-core/normal/menu.c: Likewise.
10549 * grub-core/normal/menu_text.c: Likewise.
10550 * grub-core/normal/misc.c: Likewise.
10551 * util/grub-editenv.c: Likewise.
10552 * util/grub-install.in: Likewise.
10553 * util/grub-kbdcomp.in: Likewise.
10554 * util/grub-mkconfig.in: Likewise.
10555 * util/grub-mknetdir.in: Likewise.
10556 * util/grub-mkrescue.in: Likewise.
10557 * util/grub-mkstandalone.in: Likewise.
10558 * util/grub-reboot.in: Likewise.
10559 * util/grub-set-default.in: Likewise.
10560 * util/grub-setup.c: Likewise.
10561 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
10562
10563 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10564
10565 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
10566 * grub-core/commands/keystatus.c: Likewise.
10567 * grub-core/commands/loadenv.c: Likewise.
10568 * grub-core/commands/probe.c: Likewise.
10569 * grub-core/commands/regexp.c: Likewise.
10570 * grub-core/commands/true.c: Likewise.
10571 * grub-core/commands/videoinfo.c: Likewise.
10572 * grub-core/disk/cryptodisk.c: Likewise.
10573 * grub-core/disk/ldm.c: Likewise.
10574 * grub-core/disk/loopback.c: Likewise.
10575 * grub-core/disk/luks.c: Likewise.
10576 * grub-core/fs/zfs/zfsinfo.c: Likewise.
10577 * grub-core/kern/disk.c: Likewise.
10578 * grub-core/kern/emu/hostdisk.c: Likewise.
10579
10580 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10581
10582 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
10583 * util/grub-install.in: Add missing quote in the comment.
10584
10585 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10586
10587 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
10588 * grub-core/commands/lsmmap.c: Likewise.
10589 * grub-core/commands/minicmd.c: Likewise.
10590 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
10591 * grub-core/commands/regexp.c: Likewise.
10592 * grub-core/gdb/gdb.c: Likewise.
10593 * grub-core/term/gfxterm.c: Likewise.
10594 * util/grub-mkconfig.in: Likewise.
10595 * util/grub-mkfont.c: Likewise.
10596 * util/grub-mklayout.c: Likewise.
10597 * util/grub-mknetdir.in: Likewise.
10598 * util/grub-mkrescue.in: Likewise.
10599 * util/grub.d/30_os-prober.in: Likewise.
10600
10601 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10602
10603 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
10604 with "Direct color" and "Packed" with "Packed pixel".
10605 (grub_cmd_videoinfo): Simplify legend.
10606
10607 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10608
10609 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
10610 absolutely unclear error message.
10611
10612 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10613
10614 * util/grub-mkstandalone.in: Remove confusing leftover print.
10615
10616 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10617
10618 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
10619 comments.
10620 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
10621 (GRUB_MOD_INIT): Likewise.
10622 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
10623 VGA mode.
10624 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
10625 comments.
10626 * util/grub-install.in (usage): Likewise.
10627 Spell ID in whole letters.
10628 Add missing ending dot.
10629 Quote variables.
10630 * util/grub-reboot.in: Fix capitalisation.
10631 * util/grub-set-default.in: Likewise.
10632
10633 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10634
10635 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
10636 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
10637 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
10638 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
10639 Disable -Werror for -Wdeprecated-declarations.
10640 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
10641 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
10642 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
10643 (grub_util_get_grub_dev): Make luks handling dependent on
10644 HAVE_DEVICE_MAPPER and not __linux__.
10645 (get_win32_path): Fix format security.
10646 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
10647 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
10648 Don't try grub_find_zpool_from_dir.
10649 (grub_make_system_path_relative_to_its_root) [!__linux__]:
10650 #ifdef-out paresdir.
10651
10652 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10653
10654 * util/grub-pe2elf.c (usage): Add missing noreturn.
10655 (write_section_data): Rename name to shname to avoid shadowing.
10656 (write_symbol_table): Rename name to symname to avoid shadowing.
10657 Fix write_reloc_section call.
10658
10659 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10660
10661 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
10662 to ensure that it's after the last byte of .text.
10663
10664 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10665
10666 * util/ieee1275/ofpath.c (my_isdigit): New function.
10667 (trailing_digits): Use my_isdigit.
10668 (strip_trailing_digits): Likewise.
10669
10670 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10671
10672 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
10673 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
10674
10675 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10676
10677 * grub-core/kern/i386/pc/startup.S: Define __start.
10678
10679 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10680
10681 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
10682 strip already transforms he format.
10683
10684 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10685
10686 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
10687
10688 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10689
10690 * util/grub-install.in: Add missing gettext init.
10691 * util/grub-kbdcomp.in: Likewise.
10692 * util/grub-mkconfig.in: Likewise.
10693 * util/grub-mknetdir.in: Likewise.
10694 * util/grub-mkrescue.in: Likewise.
10695 * util/grub-mkstandalone.in: Likewise.
10696 * util/grub-reboot.in: Likewise.
10697 * util/grub-set-default.in: Likewise.
10698 * util/grub.d/00_header.in: Likewise.
10699 * util/grub.d/10_hurd.in: Likewise.
10700 * util/grub.d/10_windows.in: Likewise.
10701 * util/grub.d/30_os-prober.in: Likewise.
10702 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
10703
10704 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10705
10706 * po/Rules-swiss: Fix header comment.
10707
10708 2012-02-29 Andreas Vogel <anvoit>
10709
10710 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
10711 resulted in leak of arguments.
10712
10713 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10714
10715 * grub-core/boot/i386/pc/startup_raw.S: Use separate
10716 reed_solomon_size const definition instead of computing it since
10717 Apple assembler doesn't support the later.
10718
10719 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10720
10721 * gentpl.py (kernel): Rewrite Apple part.
10722
10723 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10724
10725 * include/grub/kernel.h (FOR_MODULES): Check module magic.
10726
10727 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10728
10729 * util/grub-mkimagexx.c (locate_sections): Support non-standard
10730 ELF section gap.
10731 (load_image): Likewise.
10732
10733 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10734
10735 * configure.ac: Fix a typo in previous commit.
10736
10737 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10738
10739 Don't add -Wl,-N on Apple platform.
10740
10741 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
10742 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
10743
10744 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10745
10746 * grub-core/Makefile.core.def (lzma_decompress): Use
10747 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
10748
10749 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10750
10751 * grub-core/genmod.sh.in: Rewrite the Apple part.
10752
10753 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10754
10755 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
10756 comparison.
10757
10758 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10759
10760 * acinclude.m4 (grub_CHECK_PIC): New test.
10761 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
10762
10763 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10764
10765 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
10766 to avoid the warning.
10767
10768 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10769
10770 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
10771 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
10772 after. All users updated.
10773
10774 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10775
10776 Use the common size routine in hostfs so we can read disks as well.
10777
10778 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
10779 (grub_util_get_fd_size): ... this. Return size in bytes.
10780 All users updated.
10781 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
10782 grub_util_get_fd_size.
10783
10784 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10785
10786 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
10787 Add blocksize retrieval.
10788
10789 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10790
10791 * configure.ac: Restore CFLAGS after efiemu check.
10792
10793 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10794
10795 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
10796 Apple bug.
10797
10798 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10799
10800 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
10801
10802 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10803
10804 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
10805 (grub_cmd_halt): Likewise.
10806
10807 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10808
10809 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
10810 for local arithmetics.
10811 Break %sp init into 2 instructions.
10812 Add 0 byte at the end.
10813
10814 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10815
10816 * grub-core/disk/diskfilter.c (read_segment): Initialise err
10817 before loops.
10818
10819 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10820
10821 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
10822 for context.
10823
10824 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10825
10826 * grub-core/disk/ldm.c (make_vg): Init part.name.
10827 (grub_ldm_detect): Silence spurious warning.
10828 (grub_util_is_ldm): Likewise.
10829
10830 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10831
10832 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
10833 sane value to avoid a spurious warning.
10834
10835 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10836
10837 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
10838 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
10839
10840 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10841
10842 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
10843 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
10844
10845 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10846
10847 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
10848 hardcoding the relevant info.
10849
10850 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10851
10852 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
10853 missing const qualifiers.
10854 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
10855
10856 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10857
10858 * util/getroot.c [__APPLE__]: Add missing includes.
10859 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
10860
10861 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10862
10863 * util/grub-mkimage.c (generate_image): Silence spurious warning.
10864
10865 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10866
10867 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
10868 avoid conflicts.
10869
10870 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10871
10872 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
10873
10874 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10875
10876 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
10877 and grub_file_close call.
10878
10879 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10880
10881 Add LZSS Mach-O support (needed for new xnu kernelcache).
10882
10883 * grub-core/Makefile.core.def (xnu): Add file lzss.c
10884 * grub-core/loader/lzss.c: New file.
10885 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
10886 on Mach-O open failure.
10887 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
10888 Don't free cmdsXX in uncompressedXX is set.
10889 (grub_macho_file): Init new fields.
10890 New argument is_64bit. All users updated.
10891 Handle compressed. Error out if no suitable architecture is found.
10892 Don't close file.
10893 (grub_macho_open): New argument is_64bit. All users updated.
10894 * grub-core/loader/macho32.c: Add defines for new fields.
10895 * grub-core/loader/macho64.c: Likewise.
10896 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
10897 (grub_macho_parse): Handle compressed.
10898 Defer actual processing if compressed.
10899 (grub_macho_cmds_iterate): Decompress if compressed. New argument
10900 "filename". All users updated.
10901 (grub_macho_size): New argument "filename". All users updated.
10902 (grub_macho_get_entry_point): Likewise.
10903 (grub_macho_load): Handle compressed.
10904 * include/grub/macho.h (grub_macho_lzss_header): New struct.
10905 (GRUB_MACHO_LZSS_OFFSET): New define.
10906 (grub_decompress_lzss): New proto.
10907 * include/grub/machoload.h (grub_macho_file): New fields to handle
10908 compressed.
10909 (grub_macho_contains_macho64): Remove proto.
10910 (grub_macho_contains_macho32): Likewise.
10911 * util/grub.d/30_os-prober.in: Use kernel cache if available.
10912
10913 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10914
10915 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
10916
10917 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
10918
10919 Fix make dist.
10920
10921 * Makefile.am (starfield_theme_files): New var.
10922 (starfield_DATA): Use starfield_theme_files.
10923 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
10924 Add bootcheck-related files.
10925 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
10926 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
10927 and font_char_metrics.txt.
10928 * grub-core/Makefile.core.def (kernel): Update extra_dist.
10929 (setjmp): Add lib/ia64/longjmp.S.
10930 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
10931 * po/POTFILES.in: Regenerate.
10932 * po/Rules-swiss: use DISTFILES.common.extra2 and not
10933 DISTFILES.common.extra1.
10934 * util/devicemap.c: Removed.
10935 * grub-core/lib/i386/relocator_backward.S: Likewise.
10936 * util/import_gcry.py: Remove unused files. Add extra_dist for
10937 ChangeLog.
10938
10939 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
10940
10941 * grub-core/gettext/gettext.c (grub_mofile_open): Call
10942 grub_gettext_delete_list before changing grub_gettext_max to avoid
10943 running out of array bounds.
10944
10945 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
10946
10947 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
10948 grub_vga_text_init/grub_vga_text_fini.
10949
10950 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
10951
10952 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
10953
10954 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10955
10956 * configure.ac: Bump to 2.00~beta0.
10957
10958 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10959
10960 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
10961 missing initialisation.
10962
10963 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10964
10965 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
10966
10967 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10968
10969 Support v2 xnu boot arguments.
10970
10971 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
10972 New argument fsbfreq_out.
10973 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
10974 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
10975 be used.
10976 * grub-core/loader/machoXX.c (grub_macho_load): New argument
10977 darwin_version.
10978 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
10979 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
10980 (grub_xnu_boot_params): Rename to ...
10981 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
10982 (grub_xnu_boot_params_v2): New struct.
10983
10984 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10985
10986 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
10987 zeroing of CRC field before computing CRC.
10988
10989 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10990
10991 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
10992 Change order of allocations to decrease fragmentation.
10993
10994 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10995
10996 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
10997
10998 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
10999
11000 Use write-combining MTRR to speed up video with buggy BIOSes.
11001
11002 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
11003 (cpuid): New define.
11004 (rdmsr): Likewise.
11005 (wrmsr): Likewise.
11006 (mtrr_base): Likewise.
11007 (mtrr_mask): Likewise.
11008 (grub_vbe_enable_mtrr_entry): New function.
11009 (grub_vbe_enable_mtrr): Likewise.
11010 (grub_vbe_disable_mtrr): Likewise.
11011 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
11012 control off to BIOS.
11013 (grub_video_vbe_init): Fill mtrr.
11014 (grub_video_vbe_fini): Disable mtrr.
11015 (grub_video_vbe_get_info_and_fini): Likewise.
11016 (grub_video_vbe_setup): Enable mtrr.
11017
11018 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
11019
11020 * include/grub/partition.h (grub_partition_map): Change prototype of
11021 embed to take a maximum value for nsectors.
11022 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
11023 * include/grub/fs.h (grub_fs): Likewise.
11024 * grub-core/partmap/msdos.c (embed_signatures): New array.
11025 (pc_partition_map_embed): Check for and avoid sectors matching any
11026 of the signatures in embed_signatures, up to max_nsectors.
11027 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
11028 returned sector map to max_nsectors.
11029 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
11030 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
11031 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
11032 * util/grub-setup.c (setup): Allow for the embedding area being
11033 split into multiple blocklists. Tell dest_partmap->embed the
11034 maximum number of sectors we care about.
11035
11036 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11037
11038 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
11039 Specify blocklist_install and reserver_first_sector for all fs.
11040 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
11041 blocklists.
11042
11043 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11044
11045 * util/grub-install.in: Clarify strings.
11046 Fix source dir check.
11047
11048 2012-02-27 Richard Laager <rlaager@wiktel.com>
11049
11050 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
11051 "zfs" and "fuse.zfs" as synonyms.
11052
11053 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11054
11055 * configure.ac: Put platform and target_cpu substitutions back since
11056 they are used for directories.
11057
11058 2012-02-27 Richard Laager <rlaager@wiktel.com>
11059 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11060
11061 * util/grub.d/10_linux.in: Add ZFS-related arguments.
11062 * util/grub.d/20_linux_xen.in: Likewise.
11063
11064 2012-02-27 Richard Laager <rlaager@wiktel.com>
11065
11066 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
11067 with full paths.
11068
11069 2012-02-27 Richard Laager <rlaager@wiktel.com>
11070
11071 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
11072 unescape.
11073
11074 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11075
11076 Don't use insecure popen in getroot.
11077
11078 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
11079 (exec_pipe): ... here.
11080 (find_root_devices_from_poolname): Use exec_pipe.
11081
11082 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11083
11084 Remove platform and target_cpu replacement.
11085
11086 * configure.ac: Remove platform and target_cpu substitutions.
11087 * tests/util/grub-shell.in: Use modinfo.
11088 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
11089 explicitly.
11090
11091 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11092
11093 Autodetect platform in grub-install but allow override.
11094
11095 * util/grub-install.in: Autodetect platform. Support --target and
11096 --directory. Read platform from modinfo.sh.
11097
11098 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11099
11100 Support btrfs multi-volume probe.
11101
11102 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
11103 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
11104 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
11105 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
11106 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
11107 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
11108 grub_find_root_devices_from_btrfs if on btrfs.
11109
11110 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11111
11112 Remove any awareness of *.c util files about target.
11113
11114 * Makefile.util.def (grub-setup): Split to ...
11115 (grub-bios-setup): ... and this.
11116 (grub-sparc64-setup): ... and this.
11117 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
11118 * docs/man/grub-setup.h2m: Split into ...
11119 * docs/man/grub-sparc64-setup.h2m: ... this.
11120 * docs/man/grub-bios-setup.h2m: ... and this.
11121 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
11122 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
11123 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
11124 (grub_target_addr_t): Remove.
11125 (grub_target_size_t): Remove.
11126 (grub_target_ssize_t): Remove.
11127 * util/grub-install.in: Use new grub-*-setup.
11128 * util/grub-mkimagexx.c (Elf_Word): New define.
11129 (Elf_Half): Likewise.
11130 (Elf_Section): Likewise.
11131 (ELF_ST_TYPE): Likewise.
11132 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
11133 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
11134
11135 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11136
11137 Replace grub_target_addr with more appropriate types.
11138
11139 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
11140 grub_target_addr with grub_addr.
11141 * grub-core/commands/iorw.c (grub_cmd_read): Replace
11142 grub_target_addr with grub_port.
11143 (grub_cmd_write): Likewise.
11144 * grub-core/commands/memrw.c (grub_cmd_read): Replace
11145 grub_target_addr with grub_addr.
11146 (grub_cmd_write): Likewise.
11147 * grub-core/video/efi_uga.c (find_line_len): Likewise.
11148
11149 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11150
11151 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
11152 const qualifier for vendor_guid.
11153
11154 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11155
11156 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
11157 const qualifier.
11158 (efiemu_memequal): Likewise.
11159 (find_variable): Likewise.
11160
11161 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11162
11163 Fix missing console prototype on qemu-mips.
11164
11165 * include/grub/mips/qemu_mips/console.h: New file.
11166
11167 2012-02-27 Matthew Garrett <mjg@redhat.com>
11168 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11169
11170 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
11171 * include/grub/efi/efi.h: Likewise.
11172 * include/grub/efi/api.h: Add guid for EFI-specified variables.
11173 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
11174 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
11175 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
11176 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
11177 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
11178
11179 2012-02-27 Matthew Garrett <mjg@redhat.com>
11180
11181 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
11182
11183 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11184
11185 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
11186 error.
11187
11188 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11189
11190 * configure.ac: Remove inappropriate use of program_transform_name
11191 on grubdir and bootdir but allow explicit specification of those
11192 variables.
11193
11194 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11195
11196 * util/grub-mknetdir.in (grub_prefix): Removed.
11197 (subdir): Use @bootdirname@ and @grubdirname@.
11198
11199 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11200
11201 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
11202
11203 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11204
11205 * po/POTFILES.in: Regenerated.
11206
11207 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11208
11209 Remove improper use of program_transform_name on pkglibrootdir.
11210
11211 * configure.ac (pkglibrootdir): Removed.
11212 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
11213 * util/grub-mkimage.c: Likewise.
11214
11215 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11216
11217 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
11218 warning.
11219
11220 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11221
11222 * util/grub-install.in: Use file identifier if no UUID is available
11223 or user explicitly prompted for it.
11224
11225 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
11226
11227 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
11228 (freebsd_get_zfs): New function.
11229 (grub_freebsd_boot): Pass zfs UUID.
11230 (grub_cmd_freebsd): Set zfs UUID.
11231
11232 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11233
11234 * conf/Makefile.common (platformdir): Base on pkglibdir and not
11235 pkglibrootdir.
11236
11237 2012-02-27 Mike Gilbert <floppym@gentoo.org>
11238
11239 Add configure flag to control libzfs integration.
11240
11241 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
11242
11243 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11244
11245 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
11246 device.
11247 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
11248 small devices.
11249
11250 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11251
11252 Remove grub_{modname}_init and grub_{modname}_fini. They should never
11253 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
11254 be used on non-modules.
11255
11256 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
11257 Rename to grub_boot_init.
11258 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
11259 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
11260 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
11261 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
11262 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
11263 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
11264 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
11265 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
11266 includes.
11267 (grub_machine_init): Remove empty inits.
11268 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
11269 includes.
11270 (grub_machine_init): Remove empty inits.
11271 * grub-core/term/arc/console.c: Remove explicit proto.
11272 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
11273 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
11274 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
11275 grub_at_keyboard_fini.
11276 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
11277 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
11278 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
11279 grub_gfxterm_fini.
11280 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
11281 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
11282 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
11283 grub_vgatext_fini.
11284 * grub-core/term/ieee1275/console.c: Remove explicit proto.
11285 * grub-core/term/serial.c (GRUB_MOD_INIT)
11286 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
11287 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
11288 grub_serial_fini.
11289 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
11290 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
11291 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
11292 grub_terminfo_fini.
11293 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
11294 (GRUB_MOD_FINI): Likewise.
11295 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
11296 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
11297 (GRUB_MOD_FINI) [LOONGSON]: Rename to
11298 grub_video_radeon_fuloong2e_fini.
11299 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
11300 [LOONGSON]: Rename to grub_video_sis315pro_init.
11301 (GRUB_MOD_FINI) [LOONGSON]: Rename to
11302 grub_video_sis315pro_fini.
11303 * grub-core/video/sm712.c (GRUB_MOD_INIT)
11304 [LOONGSON]: Rename to grub_video_sm712_init.
11305 (GRUB_MOD_FINI) [LOONGSON]: Rename to
11306 grub_video_sm712_fini.
11307 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
11308 (grub_at_keyboard_fini): Likewise.
11309 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
11310 Don't declare grub_{modname}_init.
11311 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
11312 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
11313 New proto.
11314 (grub_keylayouts_fini) [!EMU]: Likewise.
11315 * include/grub/serial.h (grub_serial_init) [!EMU]:
11316 New proto.
11317 (grub_serial_fini) [!EMU]: Likewise.
11318 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
11319 New proto.
11320 (grub_terminfo_fini) [!EMU]: Likewise.
11321 * include/grub/video.h (grub_font_init) [!EMU]:
11322 New proto.
11323 (grub_font_fini) [!EMU]: Likewise.
11324 (grub_gfxterm_init) [!EMU]: Likewise.
11325 (grub_gfxterm_fini) [!EMU]: Likewise.
11326 (grub_video_sm712_init) [!EMU]: Likewise.
11327 (grub_video_sm712_fini) [!EMU]: Likewise.
11328 (grub_video_sis315pro_init) [!EMU]: Likewise.
11329 (grub_video_sis315pro_fini) [!EMU]: Likewise.
11330 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
11331 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
11332
11333 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11334
11335 Make nand a prefix for nand devices.
11336
11337 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
11338
11339 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11340
11341 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
11342 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
11343
11344 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11345
11346 * include/grub/env.h (grub_env_find): Remove prototype.
11347 * grub-core/kern/env.c (grub_env_find): Make static.
11348 (grub_env_set): Remove useless set.
11349
11350 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11351
11352 * grub-core/kern/i386/realmode.S: Remove useless align.
11353
11354 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11355
11356 * include/grub/dl.h (grub_dl_load_file): Don't export.
11357
11358 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11359
11360 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
11361 grub_dprintf.
11362
11363 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11364
11365 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
11366 grub_errors.
11367 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
11368 not reloading whole superblock but only the part which is really needed.
11369 Remove useless grub_errors.
11370 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
11371 grub_errors.
11372
11373 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11374
11375 Don't export grub_get_rtc.
11376
11377 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
11378 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
11379
11380 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11381
11382 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
11383
11384 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11385
11386 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
11387 argument since it can be deduced from diskfilter. All users updated.
11388
11389 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11390
11391 Remove prio_list.
11392
11393 * include/grub/list.h (grub_prio_list): Removed.
11394 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
11395 GRUB_COMMAND_PRIO_MASK.
11396 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
11397 GRUB_COMMAND_FLAG_ACTIVE.
11398 (grub_prio_list_insert): Removed.
11399 (grub_prio_list_remove): Likewise.
11400 (GRUB_AS_PRIO_LIST): Likewise.
11401 (GRUB_AS_PRIO_LIST_P): Likewise.
11402 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
11403 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
11404 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
11405 * grub-core/kern/command.c (grub_register_command_prio): Inline
11406 the prio_list code.
11407 (grub_unregister_command): Likewise.
11408
11409 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11410
11411 Fix interrupt mixup from previous commit.
11412
11413 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
11414 (grub_realidt): New var.
11415 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
11416 Load idt.
11417 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
11418 New declaration.
11419 (grub_relocator16_boot): Set grub_relocator16_idt.
11420 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
11421 (LOCAL(realidt)): ... this.
11422 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
11423 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
11424 (grub_realidt): New variable.
11425
11426 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11427
11428 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
11429 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
11430 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
11431 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
11432 Gettextize.
11433 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
11434 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
11435 * po/POTFILES.in: Regenerate.
11436
11437 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11438
11439 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
11440 errors.
11441
11442 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11443
11444 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
11445 \0.
11446 (add_length): Likewise.
11447
11448 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11449 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
11450
11451 GDB serial and backtrace support.
11452
11453 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
11454 (prot_to_real): Likewise.
11455 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
11456 * grub-core/Makefile.core.def (backtrace): New module.
11457 (gdb): Likewise.
11458 * grub-core/gdb/cstub.c: New file.
11459 * grub-core/gdb/gdb.c: Likewise.
11460 * grub-core/gdb/i386/idt.c: Likewise.
11461 * grub-core/gdb/i386/machdep.S: Likewise.
11462 * grub-core/gdb/i386/signal.c: Likewise.
11463 * grub-core/lib/i386/backtrace.c: Likewise.
11464 * grub-core/lib/backtrace.c: Likewise.
11465 * include/grub/backtrace.h: Likewise.
11466 * include/grub/gdb.h: Likewise.
11467 * include/grub/i386/gdb.h: Likewise.
11468
11469 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11470
11471 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
11472 New function.
11473 (add_length): Likewise.
11474 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
11475 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
11476 proto.
11477 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
11478 __argp_get_display_len.
11479
11480 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11481
11482 $"..." support in scripts.
11483
11484 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
11485 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
11486 * grub-core/script/yylex.l: Likewise.
11487 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
11488 value.
11489
11490 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11491
11492 * gentpl.py: Remove obsolete pkglib_DATA handling.
11493
11494 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11495
11496 Don't transform PACKAGE_TARNAME following a discussion on autoconf
11497 mailing list.
11498
11499 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
11500 * util/grub-kbdcomp.in: Likewise.
11501 * util/grub-mkconfig.in: Likewise.
11502 * util/grub-mkconfig_lib.in: Likewise.
11503 * util/grub-mknetdir.in: Likewise.
11504 * util/grub-mkrescue.in: Likewise.
11505 * util/grub-mkstandalone.in: Likewise.
11506 * util/grub-reboot.in: Likewise.
11507 * util/grub-set-default.in: Likewise.
11508 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11509
11510 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11511
11512 Remove GRUB_PREFIX.
11513
11514 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
11515 * util/grub.d/00_header.in: Compute prefix in the only place it's still
11516 used for backward compatibility.
11517
11518 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11519
11520 Add new all_video module.
11521
11522 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
11523 * grub-core/Makefile.core.def (all_video): New module.
11524 * grub-core/genmoddep.awk: Generate dependency of all_video from
11525 video.lst.
11526 * grub-core/lib/fake_module.c: New file.
11527 * grub-core/normal/main.c (features): Add feature_all_video_module.
11528 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
11529 don't do explicit search again.
11530 insmod all_video in load_video if available.
11531
11532 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11533
11534 Another round of string clarification and adding TRANSLATORS comments.
11535
11536 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11537
11538 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
11539
11540 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11541
11542 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
11543 to grub_ssize_t.
11544 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
11545 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
11546
11547 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11548
11549 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
11550 trailing newline implicitly. All users updated.
11551
11552 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11553
11554 Implement serial on IEEE1275 and EFI.
11555
11556 * docs/grub.texi (Platform-specific limitations): Fix the columen video
11557 on emu. Mention arc and emu as the only platforms without serial
11558 support.
11559 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
11560 ieee1275 platforms.
11561 * grub-core/term/efi/serial.c: New file.
11562 * grub-core/term/ieee1275/serial.c: Likewise.
11563 * grub-core/term/serial.c (grub_serial_find): Disable direct port
11564 specification if no ns8250 driver is available.
11565 (grub_cmd_serial): Likewise.
11566 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
11567 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
11568 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
11569 (grub_efi_parity_type_t): New type.
11570 (grub_efi_stop_bits_t): Likewise.
11571 (grub_efi_serial_io_interface): New struct.
11572 * include/grub/serial.h (grub_serial_port): Make 'broken' field
11573 available for all interfaces.
11574 Add EFI and IEEE1275 fields.
11575 (grub_ofserial_init): New proto.
11576 (grub_efiserial_init): Likeiwse.
11577 * util/grub.d/00_header.in: Don't check for the presence of serial
11578 module.
11579
11580 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11581
11582 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
11583 name as if it was an alias.
11584
11585 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
11586
11587 * grub-core/commands/lsacpi.c (options): Fix typo.
11588
11589 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
11590
11591 Convert grub-emu to argp.
11592
11593 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
11594 emu.
11595 * util/argp_common.c: Rename to ...
11596 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
11597 Add missing includes.
11598 * grub-core/kern/emu/main.c: Convert to argp.
11599 * po/POTFILES.in: Regenerate.
11600 * util/grub-install.in (usage): Make first letter lowcase in messages
11601 for uniformity.
11602 * util/grub-setup.c (options): Likewise.
11603
11604 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
11605
11606 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
11607 Put back accidently commented-out code.
11608
11609 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
11610
11611 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
11612 loop check using Brent algorithm.
11613 (grub_hfsplus_btree_search): Likewise.
11614
11615 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
11616
11617 * util/grub-install.in: Fix usage of wrong device for PreP install.
11618
11619 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
11620
11621 * conf/Makefile.common (CFLAGS_GNULIB): Add
11622 -Wno-unsafe-loop-optimizations.
11623 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
11624 on tools.
11625 * grub-core/commands/legacycfg.c: Add pragma to skip
11626 -Wunsafe-loop-optimizations.
11627 (check_password_md5_real): Fix loop counter type.
11628 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
11629 reading.
11630 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
11631 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
11632 loop condition.
11633 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
11634 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
11635 * grub-core/net/net.c (grub_net_route_address): Add safety loop
11636 condition.
11637 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
11638 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
11639 avoid possible infinite loops.
11640 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
11641 and -Wunsafe-loop-optimizations.
11642 * grub-core/script/yylex.l: Likewise.
11643 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
11644 (print_glyphs): Avoid infinite loops.
11645 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
11646
11647 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
11648
11649 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
11650 to avoid infinite loop.
11651 (disp_acpi_rsdt_table): Likewise.
11652
11653 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
11654
11655 * grub-core/font/font.c (grub_font_load): Add support for default
11656 path for fonts ($prefix/fonts).
11657 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
11658 for checking if string is a path.
11659 * grub-core/normal/main.c (features): Add feature_default_font_path.
11660 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
11661 * util/grub.d/00_header.in: Use default directory if possible.
11662 * util/grub-install.in: Install unicode.pf2.
11663
11664 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
11665
11666 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
11667 * po/Rules-swiss: New file.
11668 * po/swiss.sed: Likewise.
11669
11670 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
11671
11672 * grub-core/fs/btrfs.c (find_device): Fix typos.
11673 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
11674 * util/grub-mkrelpath.c (argp_parser): Likewise.
11675 Reported by: Yuri Chornoivan.
11676
11677 2012-02-23 Dalet Omega <daletomega@gmail.com>
11678
11679 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
11680 for usual informative messages.
11681
11682 2012-02-23 Dalet Omega <daletomega@gmail.com>
11683
11684 Starfield theme.
11685
11686 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
11687 * conf/Makefile.common: Define starfielddir.
11688 * configure.ac: Configure starfield.
11689 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
11690 * themes/starfield/README: Likewise.
11691 * themes/starfield/blob_w.png: Likewise.
11692 * themes/starfield/boot_menu_c.png: Likewise.
11693 * themes/starfield/boot_menu_e.png: Likewise.
11694 * themes/starfield/boot_menu_n.png: Likewise.
11695 * themes/starfield/boot_menu_ne.png: Likewise.
11696 * themes/starfield/boot_menu_nw.png: Likewise.
11697 * themes/starfield/boot_menu_s.png: Likewise.
11698 * themes/starfield/boot_menu_se.png: Likewise.
11699 * themes/starfield/boot_menu_sw.png: Likewise.
11700 * themes/starfield/boot_menu_w.png: Likewise.
11701 * themes/starfield/slider_c.png: Likewise.
11702 * themes/starfield/slider_n.png: Likewise.
11703 * themes/starfield/slider_s.png: Likewise.
11704 * themes/starfield/src/blob_nw.xcf: Likewise.
11705 * themes/starfield/src/bootmenu/: Likewise.
11706 * themes/starfield/src/bootmenu/center.xcf: Likewise.
11707 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
11708 * themes/starfield/src/bootmenu/side.xcf: Likewise.
11709 * themes/starfield/src/slider_c.xcf: Likewise.
11710 * themes/starfield/src/slider_n.xcf: Likewise.
11711 * themes/starfield/src/slider_s.xcf: Likewise.
11712 * themes/starfield/src/terminalbox/: Likewise.
11713 * themes/starfield/src/terminalbox/center.xcf: Likewise.
11714 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
11715 * themes/starfield/src/terminalbox/side.xcf: Likewise.
11716 * themes/starfield/starfield.png: Likewise.
11717 * themes/starfield/terminal_box_c.png: Likewise.
11718 * themes/starfield/terminal_box_e.png: Likewise.
11719 * themes/starfield/terminal_box_n.png: Likewise.
11720 * themes/starfield/terminal_box_ne.png: Likewise.
11721 * themes/starfield/terminal_box_nw.png: Likewise.
11722 * themes/starfield/terminal_box_s.png: Likewise.
11723 * themes/starfield/terminal_box_se.png: Likewise.
11724 * themes/starfield/terminal_box_sw.png: Likewise.
11725 * themes/starfield/terminal_box_w.png: Likewise.
11726 * themes/starfield/theme.txt: Likewise.
11727
11728 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
11729
11730 * util/grub.d/00_header.in: Add missing export theme.
11731
11732 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11733
11734 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
11735 already included.
11736 Reported by: Eren D.
11737
11738 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11739
11740 * conf/Makefile.common (grubdatadir): Removed.
11741 (Makefile.am): Move eveything grubdata to pkgdata.
11742
11743 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11744
11745 * grub-core/commands/acpihalt.c (get_sleep_type):
11746 Remove unused variable.
11747
11748 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11749
11750 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
11751 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
11752 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
11753 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
11754 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
11755 i18n with gettext no-op.
11756 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
11757 GRUB_ACPI_OPCODE_STRING_CONST.
11758 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
11759 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
11760
11761 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11762
11763 * po/POTFILES.in: Regenerate.
11764
11765 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11766
11767 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
11768 -Wno-error=missing-noreturn.
11769
11770 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11771
11772 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
11773 condition to avoid possibly infinite loops.
11774 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
11775 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
11776
11777 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11778
11779 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
11780 condition to avoid possibly infinite loops.
11781
11782 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11783
11784 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
11785 on show_error.
11786
11787 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11788
11789 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
11790
11791 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11792
11793 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
11794
11795 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11796
11797 * util/bin2h.c (usage): Add missing attribute noreturn.
11798
11799 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11800
11801 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
11802 if the size isn't divisible by 512.
11803
11804 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11805
11806 Make list_push and list_remove functions rather than inline functions
11807 to decrease size and avoid aliasing violations.
11808
11809 * include/grub/list.h (grub_list_push): Move to ...
11810 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
11811 * include/grub/list.h (grub_list_remove): Move to ...
11812 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
11813
11814 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11815
11816 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
11817 and -Wunused-result.
11818
11819 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
11820
11821 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
11822 Reported by: Seth Goldberg
11823
11824 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
11825
11826 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
11827
11828 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
11829
11830 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
11831 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
11832 command line.
11833 * docs/grub.texi (Simple configuration): Document
11834 GRUB_CMDLINE_GNUMACH.
11835
11836 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
11837
11838 * conf/Makefile.common (platform_SCRIPTS): New variable.
11839 (platform_PROGRAMS): Likewise.
11840 * gentpl.py: Mark *,module and *.image for install.
11841 * grub-core/gdb_grub.in: Add a notice of expected environment.
11842 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
11843 (gmodule.pl): Likewise.
11844
11845 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
11846
11847 Replace grub_checkkey with grub_getkey_noblock.
11848
11849 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
11850 (grub_getkey_noblock): ... this. All users updated.
11851
11852 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
11853
11854 * grub-core/kern/emu/console.c: Move to ...
11855 * grub-core/term/emu/console.c: ...here.
11856 (grub_ncurses_getkey): Fix return value if no key is detected.
11857
11858 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11859
11860 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
11861 (grub_unit_test_fini): Likewise.
11862 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
11863
11864 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11865
11866 * include/grub/test.h (GRUB_UNIT_TEST)
11867
11868 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11869
11870 * grub-core/script/execute.c (grub_script_break): Clarify logic.
11871 Better error handling.
11872 (grub_script_return): Likewise.
11873 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
11874
11875 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11876
11877 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
11878 rimplicit redifinition.
11879
11880 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11881
11882 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
11883 GRUB.
11884
11885 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11886
11887 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
11888 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
11889 prompt here.
11890
11891 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11892
11893 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
11894 as GRUB_ERR_BUG. Don't malloc if no device is available.
11895
11896 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11897
11898 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
11899 Mark calling with invalid term as GRUB_ERR_BUG.
11900
11901 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11902
11903 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
11904 packets rather than raising an error.
11905
11906 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11907
11908 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
11909 in if.
11910
11911 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11912
11913 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
11914 diagnostic to dprintf.
11915 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
11916
11917 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11918
11919 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
11920 device name.
11921
11922 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11923
11924 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
11925 (grub_ntfs_iterate_dir): Likewise.
11926
11927 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11928
11929 Efiemu stylistic fixes and gettext.
11930
11931 * grub-core/efiemu/i386/loadcore32.c
11932 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
11933 * grub-core/efiemu/i386/loadcore64.c
11934 (grub_arch_efiemu_relocate_symbols64): Likewise.
11935 * grub-core/efiemu/i386/pc/cfgtables.c
11936 (grub_machine_efiemu_init_tables): Likewise.
11937 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
11938 (grub_efiemu_loadcore_initXX): Add a filename argument.
11939 All users updated.
11940 Improved error message.
11941 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
11942 Add a filename argument.
11943 All users updated.
11944 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
11945 Reclassify double relocation as GRUB_ERR_BUG.
11946
11947 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11948
11949 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
11950 handling.
11951
11952 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11953
11954 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
11955 on partition.
11956
11957 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11958
11959 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
11960
11961 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11962
11963 Improve string. Gettextize.
11964
11965 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
11966
11967 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
11968 utils.
11969 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
11970
11971 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
11972
11973 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
11974 [GRUB_UTIL]: New function.
11975 (insert_array) [GRUB_UTIL]: Store partmaps.
11976 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
11977 partmaps.
11978 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
11979 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
11980 (probe_abstraction): Print diskfilter and not raid.
11981 Reported by: Lennart Sorensen
11982
11983 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
11984
11985 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
11986 * util/grub-mkimagexx.c (MASK3): New define.
11987 (add_value_to_slot_20b): Use MASK3.
11988 (add_value_to_slot_21): Likewise.
11989 (relocate_addresses): Fix format specification.
11990 (load_image): Explicitly init symtab_section.
11991
11992 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
11993
11994 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
11995 (grub_util_biosdisk_get_grub_dev): Fix format specification.
11996
11997 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
11998
11999 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
12000 on powerpc.
12001 Reported by: Lennart Sorensen
12002
12003 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
12004
12005 * gentpl.py: Add missing license header.
12006 * docs/grub.texi: Update copyright year.
12007
12008 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
12009
12010 Source grub-mkconfig_lib from the build directory at build time.
12011 Suggested by: Vladimir Serbinenko.
12012
12013 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
12014 * util/grub-install.in: Define pkgdatadir if not already set, and source
12015 grub-mkconfig_lib from there.
12016 * util/grub-kbdcomp.in: Likewise.
12017 * util/grub-mkconfig.in: Likewise.
12018 * util/grub-mknetdir.in: Likewise.
12019 * util/grub-mkrescue.in: Likewise.
12020 * util/grub-mkstandalone.in: Likewise.
12021 * util/grub-reboot.in: Likewise.
12022 * util/grub-set-default.in: Likewise.
12023 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12024
12025 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12026
12027 Increase warning level.
12028
12029 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
12030 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
12031 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
12032 (TARGET_CFLAGS): Likewise.
12033 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
12034 * grub-core/Makefile.core.def (decompressor_xz): Add
12035 -Wno-unreachable-code.
12036 (normal): Add -Wno-redundant-decls.
12037 (xzio): Add -Wno-unreachable-code.
12038 (lzopio): Add -Wno-redundant-decls -Wno-error.
12039 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
12040 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
12041 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
12042 * grub-core/kern/dl.c: Add exception to -Wcast-align.
12043 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
12044 * grub-core/kern/i386/coreboot/init.c: Add exception to
12045 -Wsuggest-attribute=noreturn.
12046 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
12047 * grub-core/kern/ia64/dl_helper.c: Likewise.
12048 * grub-core/kern/mips/dl.c: Likewise.
12049 * grub-core/kern/sparc64/dl.c: Likewise.
12050 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
12051 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
12052 (memcmp): Likewise.
12053 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
12054 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
12055 * grub-core/loader/mips/linux.c: Likewise.
12056 * grub-core/loader/multiboot_elfxx.c: Likewise.
12057 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
12058 * grub-core/video/sm712.c: Add exception to -Wcast-align.
12059 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
12060 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
12061 fixme.
12062 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
12063 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
12064 Fix prototype.
12065
12066 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12067
12068 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
12069 address.
12070
12071 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12072
12073 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
12074 Avoid improper use of strings.
12075 (grub_cmd_legacy_initrdnounzip): Likewise.
12076
12077 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12078
12079 * include/grub/emu/misc.h (grub_util_warn): Add missing format
12080 attribute.
12081 (grub_util_info): Likewise.
12082 (grub_util_error): Likewise.
12083
12084 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12085
12086 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
12087 * util/grub-fstest.c (fstest): Likewise.
12088
12089 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12090
12091 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
12092 (grub_md_sha512_real): Likewise.
12093 (grub_util_get_geli_uuid): Likewise.
12094 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
12095 (grub_util_biosdisk_open): Fix format specification.
12096 Respect format security.
12097 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
12098 (xrealloc): Likewise.
12099 (xasprintf): Likewise.
12100
12101 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12102
12103 * util/import_gcry.py: Include grub/crypto.h in init.c.
12104
12105 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12106
12107 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
12108 (generate_image): Make prefix a const char *.
12109 Fix format specifications. Respect format security.
12110 Avoid void * arithmetics.
12111 Avoid shadowing.
12112 (argp_parser): Remove unused variable. Respect format security.
12113 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
12114 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
12115 (count_funcs): Remove unused variable.
12116 (relocate_addresses): Fix format specification.
12117 Disable x86-64 with elf32. Remove unused variables.
12118 (add_fixup_entry): Avoid shadowing.
12119 (make_reloc_section): Fix format specification.
12120 Use assert.
12121 (locate_sections): Fix format specifications.
12122 (load_image): Avoid shadowing.
12123
12124 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12125
12126 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
12127 Fix format specifications. Respect format security.
12128 Don't translate already translated grub_errmsg.
12129 (argp_parser): Remove unused variable
12130
12131 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12132
12133 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
12134
12135 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12136
12137 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
12138 (main): Likewise. Use xmalloc. Respect format security.
12139
12140 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12141
12142 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
12143 a const char *.
12144 (argp_parser): Remove unused variable.
12145
12146 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12147
12148 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
12149 (add_pixel): Make static.
12150 (add_font): Likewise.
12151 (write_string_section): Make name and str a const char *.
12152 (write_be16_section): Make name a const char *.
12153 (print_glyphs): Make static.
12154 (write_font_ascii_bitmap): Likewise.
12155 (write_font_width_spec): Likewise.
12156 (write_font_pf2): Likewise.
12157 (argp_parser): Remove unused variable.
12158 Respect format security.
12159 (main): Avoid shadowing. Respect format security.
12160
12161 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12162
12163 * util/grub-editenv.c (argp_parser): Make static.
12164 (create_envblk_file): Use xmalloc.
12165 (open_envblk_file): Likewise.
12166 Resepect format security.
12167 (set_variables): Respect format security.
12168
12169 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12170
12171 * util/getroot.c (grub_find_device): Respect format security.
12172 (get_mdadm_uuid): Remove unused variable.
12173 (grub_util_pull_device): Dont call gettext on already translated
12174 grub_errmsg.
12175 (find_system_device): Remove unused variable.
12176 (grub_util_get_grub_dev): Likewise.
12177 (grub_make_system_path_relative_to_its_root): Respect format security.
12178
12179 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12180
12181 * util/grub-fstest.c (execute_command): Make first argument
12182 a const char *.
12183 (read_file): Avoid shadowing.
12184 Reuse underlying error message if device open fails.
12185 (cmd_cmp): Respect format security.
12186 (root): Make const char *.
12187 (fstest): Remove args argument and use global copy.
12188 Respect format security.
12189 (argp_parser): Make static.
12190 (main): Make default_root const char *.
12191
12192 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12193
12194 * util/grub-mount.c (root): Make const char *.
12195 (execute_command): Make first argument a const char *.
12196 (fuse_init): Respect format security.
12197 (argp_parser): Make static. Remove unused variable.
12198 (main): Make default_root a const char *.
12199 Respect format security.
12200
12201 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12202
12203 * util/grub-probe.c (probe): Don't call gettext on already translated
12204 grub_errmsg.
12205 Remove unused variables.
12206 (argp_parser): Remove unused variable.
12207
12208 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12209
12210 * util/grub-script-check.c (argp_parser): Remove unused variable.
12211 (main): Rename read to curread to avoid shadowing.
12212
12213 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12214
12215 * util/misc.c (grub_util_write_image_at): Fix format specification.
12216 (grub_util_write_image): Likewise.
12217 (grub_script_execute_argument_to_string): Removed (unused).
12218 (grub_script_execute_menuentry): Likewise.
12219 (grub_putchar): Likewise.
12220
12221 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12222
12223 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
12224 (FUNCTION) [GRUB_UTIL]: Likewise.
12225 (VARIABLE) [GRUB_UTIL]: Likewise.
12226
12227 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12228
12229 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
12230 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
12231
12232 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12233
12234 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
12235 buffer.
12236
12237 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12238
12239 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
12240 (LzmaEnc_SaveState): Removed (unused).
12241 (LzmaEnc_RestoreState): Likewise.
12242 (LzmaEnc_InitPriceTables): Made static.
12243 (LzmaEnc_Construct): Likewise.
12244 (LzmaEnc_FreeLits): Likewise.
12245 (LzmaEnc_Destruct): Likewise.
12246 (LzmaEnc_Init): Likewise.
12247 (LzmaEnc_InitPrices): Likewise.
12248 (LzmaEnc_Finish): Likewise.
12249 (LzmaEnc_PrepareForLzma2): Removed (unused).
12250 (LzmaEnc_MemPrepare): Likewise.
12251 (LzmaEnc_GetNumAvailableBytes): Likewise.
12252 (LzmaEnc_GetCurBuf): Likewise.
12253 (LzmaEnc_CodeOneMemBlock): Likewise.
12254
12255 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12256
12257 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
12258 (grub_util_ldm_embed): Likewise.
12259
12260 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12261
12262 * util/grub-editenv.c (print_var): Rename name to varname to
12263 avoid shadowing.
12264 (main): Rename index to curindex to avoid shadowing.
12265 Make filename a const char *.
12266
12267 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12268
12269 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
12270 to arg_getline to avoid shadowing.
12271
12272 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12273
12274 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
12275 disk_ to avoid shadowing.
12276
12277 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12278
12279 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
12280 curindex to avoid shadowing.
12281 Make static.
12282 (MatchFinder_GetNumAvailableBytes): Make static.
12283
12284 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12285
12286 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
12287 avoid shadowing.
12288
12289 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12290
12291 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
12292 argument from encrypt to do_encrypt to avoid shadowing.
12293
12294 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12295
12296 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
12297 incorrect nesting of #if's.
12298
12299 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12300
12301 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
12302 checks which are always false on some platforms.
12303 (grub_cmd_lsacpi): Likewise.
12304 * grub-core/kern/misc.c (grub_strtoul): Likewise.
12305 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
12306 Likewise.
12307
12308 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12309
12310 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
12311 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
12312
12313 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12314
12315 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
12316 re_dfa_t to avoid breaking alignment invariants.
12317 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
12318 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
12319
12320 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12321
12322 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
12323 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
12324
12325 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12326
12327 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
12328 Fix declaration.
12329
12330 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12331
12332 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
12333 conserve alignment invariants.
12334 (grub_ehci_ehcc_read16): Likewise.
12335 (grub_ehci_oper_read32): Likewise.
12336 (grub_ehci_oper_write32): Likewise.
12337 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
12338 Conserve alignment invariants.
12339
12340 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12341
12342 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
12343 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
12344 declarations.
12345
12346 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12347
12348 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
12349 Remove unused variable.
12350
12351 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12352
12353 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
12354 Remove set in if.
12355
12356 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12357
12358 * include/grub/net.h: Remove double declarations.
12359
12360 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12361
12362 Remove "payload" command in ia64 Linux loader since I couldn't
12363 find any evidence of it being used for anything.
12364 Replace "relocate" command with an environment variable
12365
12366 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
12367 fields.
12368 (ia64_boot_payload): Removed.
12369 (last_payload): Likewise.
12370 (RELOCATE_OFF): Likewise.
12371 (RELOCATE_ON): Likewise.
12372 (RELOCATE_FORCE): Likewise.
12373 (relocate): Likewise.
12374 (free_pages): Don't free payloads.
12375 (grub_load_elf64): Use common error messages.
12376 Use "linux_relocate" variable.
12377 Increase the space after boot_params.
12378 (grub_cmd_payload): Removed.
12379 (grub_cmd_relocate): Likewise.
12380 (grub_cmd_fpswa): Improve messages.
12381 (cmd_payload): Removed.
12382 (cmd_relocate): Likewise.
12383 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
12384 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
12385
12386 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12387
12388 Convert UHCI to DMA framework.
12389
12390 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
12391 (grub_uhci_pci_iter): Fill new members
12392 (grub_alloc_td): Use P2V and V2P functions.
12393 (grub_free_queue): Likewise.
12394 (grub_alloc_qh): Likewise.
12395 (grub_uhci_setup_transfer): Likewise.
12396 (grub_uhci_check_transfer): Likewise.
12397
12398 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12399
12400 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
12401 Remove assignment in if while on it.
12402
12403 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12404
12405 * util/grub-mkstandalone.in: Fix modules directory.
12406
12407 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12408
12409 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
12410 on i386-pc target.
12411 (argp_parser): Accept "auto" as compression specification.
12412
12413 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12414
12415 Fix `help' with unloaded modules.
12416
12417 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
12418 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
12419 (grub_dyncmd_dispatcher): Small stylistic fix.
12420 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
12421 explicit help is requested.
12422
12423 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12424
12425 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
12426 Explicitly init restart while on it.
12427
12428 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12429
12430 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
12431 uninited variable.
12432
12433 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
12434
12435 * util/grub-mknetdir.in: Use . rather than source for POSIX
12436 compatibility.
12437
12438 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
12439
12440 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
12441
12442 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
12443
12444 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
12445 variable.
12446
12447 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
12448
12449 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
12450 without quotes.
12451
12452 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
12453
12454 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
12455
12456 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
12457
12458 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
12459 iteration of partitions.
12460
12461 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
12462
12463 Improve gettext support. Stylistic fixes and error handling fixes while
12464 on it.
12465
12466 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
12467
12468 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
12469 part. Instead setup the correct stack in RM.
12470 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
12471 for stack.
12472 * include/grub/i386/relocator_private.h: New file.
12473
12474 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
12475
12476 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
12477 argument.
12478 * util/grub-fstest.c (options): Add missing DEVICE part.
12479
12480 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
12481
12482 Clarify and unify messages.
12483
12484 * grub-core/commands/hashsum.c (options): Unify messages.
12485 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
12486 literal-only message as translatable.
12487 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
12488 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
12489 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
12490 commands.
12491 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
12492 key, not the key used to unlock. Clarify what it's used for.
12493 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
12494 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
12495 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
12496 * util/grub-editenv.c (options): Unify "verbose" message.
12497 * util/grub-fstest.c (read_file): Unify error message.
12498 (fstest): Add quotes around commands.
12499 (options): Unify "verbose" message.
12500 * util/grub-install.in: Add quotes around variable name.
12501 * util/grub-kbdcomp.in: Unify error message.
12502 * util/grub-mkfont.c (main): Likewise.
12503 * util/grub-mkrescue.in: Likewise.
12504 * util/grub-mklayout.c (options): Unify "verbose" message.
12505 * util/grub-mkstandalone.in: Unify help and verbose messages.
12506 * util/grub-mount.c (options): Unify "verbose" message.
12507 * util/grub-probe.c (options): Likewise.
12508 * util/grub-script-check.c (options): Likewise.
12509 * util/grub-setup.c (setup): Unify no-terminator message.
12510 (options): Use DEVICE and not DEV.
12511 Unify "verbose" message.
12512 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
12513
12514 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
12515
12516 Improve and unify messages.
12517
12518 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
12519 name. All users updated.
12520 Print filename in error.
12521 (read_device_map): Print filename in error.
12522 * util/getroot.c (grub_guess_root_devices): Print filename in error.
12523 (grub_util_get_os_disk): Likewise.
12524 (grub_util_biosdisk_get_grub_dev): Likewise.
12525 (grub_util_check_block_device): Likewise.
12526 (grub_util_check_char_device): Likewise.
12527 (grub_make_system_path_relative_to_its_root): Likewise.
12528 * util/grub-editenv.c (create_envblk_file): Likewise.
12529 (open_envblk_file): Likewise.
12530 (write_envblk): Likewise.
12531 * util/grub-fstest.c (cmd_cp): Likewise.
12532 (cmd_cat): Likewise.
12533 (cmd_cmp): Likewise.
12534 * util/grub-menulst2cfg.c (main): Likewise.
12535 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
12536 (write_font_width_spec): Likewise.
12537 (write_font_pf2): Likewise.
12538 * util/grub-mkimage.c (generate_image): New argument outname.
12539 All users updated.
12540 Remove unreacheable message.
12541 (options): Unify messages.
12542 (help_filter): Likewise.
12543 * util/grub-mklayout.c (usage): Removed (unused).
12544 (main): Print filename in error.
12545 * util/grub-mkrescue.in: Fix wrong quoting.
12546 * util/grub-setup.c (setup): Print filename in error.
12547 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
12548 (check_sas): Likewise.
12549 * util/misc.c (grub_util_get_fp_size): Removed.
12550 (grub_util_get_image_size): Print filename in error.
12551 (grub_util_read_at): Removed.
12552 (grub_util_read_image): Print filename in error.
12553 (grub_util_load_image): Likewise.
12554 (grub_util_write_image_at): New argument filename. All users updated.
12555 Print filename in error.
12556 (grub_util_write_image): New argument filename. All users updated.
12557 Print filename in error.
12558 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
12559 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
12560
12561 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
12562
12563 * grub-core/Makefile.core.def (pxechain): New module.
12564 * grub-core/loader/i386/pc/pxechainloader.c: New file.
12565 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
12566 function.
12567 (grub_pc_net_config_real): Use grub_pxe_get_cached.
12568 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
12569
12570 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
12571
12572 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
12573 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
12574 * include/grub/err.h (grub_error_saved): New struct.
12575 (grub_errmsg): Make array size explicit.
12576 * include/grub/misc.h (grub_error_save): New function.
12577 (grub_error_load): Likewise.
12578 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
12579 (grub_error_push): Update `errno' member name.
12580 (grub_error_pop): Likewise
12581 * grub-core/net/tftp.c (tftp_data): New member save_err.
12582 (tftp_receive): Save error.
12583 (tftp_open): Restore error.
12584
12585 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
12586
12587 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
12588 to real mode down to execute A20-related code in protected mode as
12589 intended.
12590
12591 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
12592
12593 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
12594 NULL when the argument `level' has an unexpected value.
12595
12596 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
12597
12598 Move platform-dependent files from $prefix to $prefix/$platform.
12599
12600 * config.h.in (GRUB_TARGET_CPU): New definition.
12601 (GRUB_PLATFORM): Likewise.
12602 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
12603 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
12604 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
12605 * grub-core/kern/dl.c (grub_dl_load): Likewise.
12606 * grub-core/normal/autofs.c (read_fs_list): Likewise.
12607 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
12608 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
12609 * grub-core/normal/term.c (read_terminal_list): Likewise.
12610 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
12611 $prefix/locale.
12612 (grub_gettext_init_ext): Likewise.
12613 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
12614 grub_platform.
12615 * util/grub-install.in: Update directories.
12616 * util/grub-mknetdir.in: Likewise.
12617 * util/grub-mkrescue.in: Likewise.
12618
12619 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
12620
12621 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
12622 grub_error framework. All users updated.
12623
12624 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
12625
12626 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
12627 lists (by always binsearching), improve caching (cache strings
12628 used for binsearch, not only results), improve
12629 maintainability (by using more structured binary search) and correct
12630 error handling.
12631
12632 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
12633
12634 * grub-core/script/execute.c (grub_script_return): Fix warning.
12635
12636 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
12637
12638 * grub-core/script/execute.c (grub_script_return): Fix potential
12639 NULL-dereference.
12640 Reported by: Jim Meyering.
12641
12642 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12643
12644 * po/POTFILES.in: Regenerate.
12645 * util/grub-install.in: Gettextize the strings missed in first pass.
12646
12647 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12648
12649 * Makefile.util.def (grub-mkdevicemap): Removed.
12650 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
12651 * include/grub/util/deviceiter.h: Removed.
12652 * util/deviceiter.c: Likewise.
12653 * util/getroot.c (grub_util_get_os_disk): New function.
12654 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
12655 replacement for EFI.
12656 * util/grub-mkdevicemap.c: Removed.
12657 * util/grub-probe.c (probe): Handle PRINT_DISK.
12658 (argp_parser): Handle -t disk.
12659
12660 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12661
12662 * util/grub-mkfont.c: Migrate to argp.
12663 * util/grub-mklayout.c: Likewise.
12664 * util/grub-mkpasswd-pbkdf2.c: Likewise.
12665 * util/grub-mkrelpath.c: Likewise.
12666 * util/grub-probe.c: Likewise.
12667 * util/grub-script-check.c: Likewise.
12668
12669 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12670
12671 * util/grub-reboot.in: Add missing datarootdir.
12672 Add missing newline.
12673 * util/grub-set-default.in: Add missing datarootdir.
12674 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
12675 * util/grub-mkrescue.in: Likewise.
12676
12677 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12678
12679 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
12680
12681 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12682
12683 * util/grub-kbdcomp.in: Add decent help and gettextize.
12684 * docs/man/grub-kbdcomp.h2m: New file.
12685
12686 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12687
12688 Migrate grub-mkimage.c to argp.
12689
12690 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
12691 (grub-setup): Likewise.
12692 * util/grub-setup.c (print_version): Move to ...
12693 * util/argp_common.c (print_version): ... here.
12694 * util/grub-setup.c (argp_program_version_hook): Move to ...
12695 * util/argp_common.c (argp_program_version_hook): ... here.
12696 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
12697 safety.
12698 * util/grub-mkimage.c (main): Migrate to argp.
12699
12700 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12701
12702 * util/grub-mkrescue.in: Use same message as
12703 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
12704 for better translations.
12705
12706 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12707
12708 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
12709 options with generic grub-mkrescue.in with the goal of future
12710 merge.
12711
12712 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12713
12714 * grub-core/kern/mm.c: Add missing include of i18n.h
12715 * grub-core/lib/relocator.c: Likewise.
12716
12717 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12718
12719 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
12720 error.
12721 (allocate_pages): Check return value.
12722 Replace fatal with error.
12723 (grub_linux_boot): Replace printf with dprintf.
12724 Check find_mmap_size return value.
12725 Replace fatal with error.
12726 Don't call grub_machine_fini.
12727 (grub_load_elf64): Replace printf with dprintf.
12728 (grub_cmd_linux): Likewise.
12729 (grub_cmd_initrd): Likewise.
12730 (grub_cmd_payload): Likewise.
12731
12732 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12733
12734 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
12735 message.
12736 * grub-core/video/radeon_fuloong2e.c
12737 (grub_video_radeon_fuloong2e_setup): Likewise.
12738 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
12739 * grub-core/video/video.c (grub_video_set_mode): Don't override
12740 standard out of memory message.
12741
12742 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
12743
12744 NetBSD disk wedge support.
12745
12746 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
12747 [__NetBSD__]: Handle NetBSD disk wedges.
12748 * util/getroot.c (convert_system_partition_to_system_disk)
12749 [__NetBSD__]: Likewise.
12750
12751 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
12752
12753 * util/grub-mkconfig.in: Use umask rather than chmod to create
12754 grub.cfg.new to avoid insecure grub.cfg.
12755
12756 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12757
12758 * grub-core/commands/ls.c: Gettextize.
12759 * grub-core/commands/setpci.c: Likewise.
12760 * grub-core/commands/videotest.c: Likewise.
12761 * grub-core/disk/geli.c: Likewise.
12762 * grub-core/kern/mm.c: Likewise.
12763 * grub-core/lib/relocator.c: Likewise.
12764 * grub-core/loader/efi/appleloader.c: Likewise.
12765 * grub-core/loader/i386/xnu.c: Likewise.
12766 * grub-core/loader/ia64/efi/linux.c: Likewise.
12767 * grub-core/loader/xnu.c: Likewise.
12768 * grub-core/net/dns.c: Likewise.
12769 * grub-core/net/net.c: Likewise.
12770 * grub-core/script/lexer.c: Likewise.
12771 * grub-core/script/parser.y: Likewise.
12772 * grub-core/script/yylex.l: Likewise.
12773 * util/getroot.c: Likewise.
12774 * util/grub-setup.c: Likewise.
12775
12776 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12777
12778 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
12779 number.
12780
12781 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12782
12783 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
12784
12785 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12786
12787 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
12788 macro.
12789 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
12790 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
12791
12792 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12793
12794 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
12795 * util/grub-install.in: Gettextize.
12796 * util/grub-mkconfig.in: Likewise.
12797 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
12798 if not available.
12799 (grub_warn): Gettextize.
12800 * util/grub-mknetdir.in: Gettextize.
12801 * util/grub-mkrescue.in: Likewise.
12802 * util/grub-mkstandalone.in: Likewise.
12803 * util/grub-reboot.in: Likewise.
12804 * util/grub-set-default.in: Likewise.
12805 * util/grub.d/00_header.in: Likewise.
12806 * util/grub.d/10_hurd.in: Likewise.
12807 * util/grub.d/10_kfreebsd.in: Likewise.
12808 * util/grub.d/10_linux.in: Likewise.
12809 * util/grub.d/10_netbsd.in: Likewise.
12810 * util/grub.d/10_windows.in: Likewise.
12811 * util/grub.d/20_linux_xen.in: Likewise.
12812 * util/grub.d/30_os-prober.in: Likewise.
12813 * po/POTFILES-shell.in: Regenerate.
12814
12815 2012-02-03 Richard Laager <rlaager@wiktel.com>
12816
12817 * util/grub-mkimage.c (main): Fix format-security warning.
12818 * util/grub-mkrelpath.c (main): Likewise.
12819 * util/grub-probe.c (main): Likewise.
12820
12821 2012-02-03 Richard Laager <rlaager@wiktel.com>
12822
12823 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
12824 failure.
12825 Put back lost PRINT_DRIVE.
12826
12827 2012-02-03 Richard Laager <rlaager@wiktel.com>
12828
12829 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
12830 (grub_guess_root_devices): Replace strlen with sizeof.
12831 Avoid crash.
12832 (find_root_devices_from_poolname): Remove unused variable.
12833 Handle raidzN.
12834
12835 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12836
12837 Support install on multi-device filesystems.
12838
12839 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
12840 (grub_guess_root_devices): ...this. Return char **. All users updated.
12841 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
12842 Removed.
12843 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
12844 (find_root_devices_from_poolname): ... here.
12845 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
12846 Support zfs-fuse.
12847 (grub_guess_root_device): Rename to ...
12848 (grub_guess_root_devices): ... this. Return char **. All users updated.
12849 * util/grub-install.in: Handle multi-device filesystems.
12850 * util/grub-probe.c (probe). Make device_names a char **. Add delim
12851 argument. All users updated.
12852 Handle multi-device filesystems.
12853 Use 'delim' as separator.
12854 Remove device check to allow filesystems on file.
12855 (main): Support -0 argument. Handle multi-device.
12856 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
12857 Fix a cross-device check while on it.
12858 (arguments): Remove root_dev.
12859 (argp_parser): Remove -r.
12860 (main): Remove root_dev.
12861
12862 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
12863
12864 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
12865
12866 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
12867
12868 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
12869 symbol.
12870 Reported by: NODA, Kai <nodakai>.
12871
12872 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
12873
12874 Fix ehci on amd64.
12875
12876 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
12877 pointers.
12878 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
12879 (grub_ehci_setup_qh): Likewise.
12880 (grub_ehci_find_qh): Likewise.
12881 (grub_ehci_transaction): Likewise.
12882 (grub_ehci_setup_transfer): Likewise.
12883 (grub_ehci_check_transfer): Likewise.
12884 (grub_ehci_portstatus): Likewise.
12885 (grub_ehci_detect_dev): Likewise.
12886 (grub_ehci_transfer_controller_data): New field td_last_phys.
12887 (grub_ehci_setup_transfer): Fill td_last_phys.
12888 (grub_ehci_check_transfer): Use td_last_phys.
12889
12890 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
12891
12892 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
12893 if no submenu is present.
12894
12895 2012-02-01 Aleš Nesrsta <starous@volny.cz>
12896
12897 CBI support.
12898
12899 * include/grub/usb.h (grub_usbms_protocol_t): New values
12900 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
12901 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
12902 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
12903 (grub_usbms_dev): Add subclass, protocol and intrpt.
12904 Remove in_maxsz and out_maxsz.
12905 (grub_usbms_reset): Rename to ...
12906 (grub_usbms_bo_reset): .. this.
12907 (grub_usbms_cbi_cmd): New function.
12908 (grub_usbms_cbi_reset): Likewise.
12909 (grub_usbms_reset): Likewise.
12910 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
12911 (grub_usbms_transfer): Rename to ...
12912 (grub_usbms_transfer_bo): ... this.
12913 (grub_usbms_transfer_cbi): Likewise.
12914 (grub_usbms_transfer): Likewise.
12915
12916 2012-02-01 Aleš Nesrsta <starous@volny.cz>
12917 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
12918
12919 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
12920 the support for the CS5536 modification thereos and few bugfixes.
12921
12922 * grub-core/Makefile.core.def (ehci): New module.
12923 * grub-core/bus/usb/ehci.c: New file.
12924 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
12925 port and hubaddr. All users updated.
12926 Save port and hubaddr into dev structure.
12927 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
12928 define.
12929 * include/grub/pci.h (grub_dma_phys2virt): New function.
12930 (grub_dma_virt2phys): Likewise.
12931 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
12932
12933 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
12934
12935 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
12936 check as some mkfs implementations omit it.
12937
12938 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
12939
12940 * docs/grub.texi (Unicode): Mention identifier and space limitations.
12941
12942 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
12943
12944 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
12945 Add new member volname2.
12946 (grub_jfs_label): Use volname2 if available.
12947
12948 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
12949
12950 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
12951 over last_mounted as seen in image generated by mkfs.nilfs2.
12952 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
12953
12954 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
12955
12956 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
12957 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
12958 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
12959
12960 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
12961
12962 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
12963 over the sector.
12964
12965 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
12966
12967 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
12968 subvolume name (by removing a bogus and useless check).
12969
12970 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
12971
12972 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
12973 sizeof while on it.
12974
12975 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
12976
12977 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
12978 (grub_scsi_read_capacity10): ... this.
12979 (grub_scsi_read_capacity16): New function.
12980 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
12981 0xffffffff.
12982 Fix off-by-one error.
12983 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
12984 64-bit unsigned.
12985 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
12986 (grub_scsi_read_capacity10): ... this.
12987 (grub_scsi_read_capacity_data): Rename to ...
12988 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
12989 (grub_scsi_read_capacity16): New struct.
12990 (grub_scsi_read_capacity16_data): Likewise.
12991 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
12992 grub_scsi_cmd_read_capacity10.
12993 New command grub_scsi_cmd_read_capacity16.
12994
12995 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
12996
12997 SCSI >2TiB support.
12998
12999 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
13000 (grub_scsi_write16): Likewise.
13001 (grub_scsi_read): Use read16 when necessary.
13002 (grub_scsi_write): Likewise.
13003 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
13004 (grub_scsi_write16): Likewise.
13005 (grub_scsi_cmd_t): Add READ16 and WRITE16.
13006
13007 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
13008
13009 SCSI write support (for usbms mainly).
13010
13011 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
13012 a const pointer.
13013 (grub_scsi_write): Implement.
13014 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
13015
13016 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
13017
13018 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
13019 variable.
13020
13021 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13022
13023 * grub-core/lib/posix_wrap/string.h (memchr): New function.
13024
13025 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13026
13027 * po/POTFILES.in: Regenerate.
13028
13029 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13030
13031 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
13032 with grub_printf to avoid unnecessary fatal failure.
13033
13034 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13035
13036 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
13037 (INT_MAX): Likewise.
13038 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
13039 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
13040 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
13041 (strcpy): Likewise.
13042 (strstr): Likewise.
13043 (strchr): Likewise.
13044 (strncpy): Likewise.
13045 (strcat): Likewise.
13046 (strncat): Likewise.
13047 (strcoll): Likewise.
13048 * include/grub/types.h (GRUB_SHRT_MAX): New define.
13049 (GRUB_INT_MAX): Likewise.
13050
13051 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13052
13053 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
13054 unexpected error.
13055 (optimize_utf8): Likewise.
13056 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
13057
13058 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13059
13060 * grub-core/boot/i386/pc/lnxboot.S: Use
13061 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
13062 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
13063 location.
13064 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
13065 definition.
13066 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
13067
13068 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13069
13070 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
13071 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
13072 now to avoid double free.
13073 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
13074 hostdisk.
13075 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
13076 * util/grub-probe.c (escape_of_path): Always return a new copy.
13077 (print_full_name): Escape path.
13078 (probe): Don't call grub_util_devname_to_ofpath on NULL.
13079 Fix hints on abstractions.
13080
13081 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13082
13083 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
13084 Don't add "root" line if no compatibility hont is available.
13085 Suggested by: Seth Goldberg.
13086
13087 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13088
13089 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
13090 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
13091 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
13092 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
13093
13094 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13095
13096 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
13097
13098 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13099
13100 * util/grub-pe2elf.c (ehdr): Make static.
13101 (shdr): Likewise.
13102 (num_sections): Likewise.
13103 (offset): Likewise.
13104
13105 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13106
13107 Eliminate ofpath limits and possible overflows.
13108
13109 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
13110 (OF_PATH_MAX): Removed.
13111 (MAX_DISK_CAT): New const.
13112 (find_obppath): Use allocated rather than preallocated buffer.
13113 Return result. Argument of_path removed. All users updated.
13114 Add missing fdstat.
13115 (xrealpath): New function.
13116 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
13117 Allocate rather than use preallocated buffer. All users updated.
13118 (__of_path_common): Use allocated rather than preallocatecd buffer.
13119 Return result. Argument of_path removed. All users updated.
13120 (vendor_is_ATA): Read only needed part form the file.
13121 (check_sas): Allocate depending on contents rather than fixed.
13122 (main) [STANDALONE]: Handle NULL result.
13123
13124 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13125
13126 * grub-core/normal/completion.c (iterate_dev): Close the disk.
13127
13128 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13129
13130 Cryptodisk write support.
13131
13132 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
13133 (grub_cryptodisk_decrypt): Moved logic to ...
13134 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
13135 (grub_cryptodisk_write): Implement.
13136 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
13137 (grub_util_fd_write): ... this. Make global.
13138 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
13139
13140 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13141
13142 * include/grub/list.h (grub_list_remove): Don't crash if element is
13143 removed twice.
13144
13145 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13146
13147 Rename ofconsole to console.
13148
13149 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
13150 as sysnonym to console.
13151 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
13152 * grub-core/term/ieee1275/console.c: ... this. All users updated.
13153 Rename grub_ofconsole_ to grub_console_. All users updated
13154 (grub_console_term_output): Rename "ofconsole" to "console".
13155 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
13156 as "console".
13157
13158 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13159
13160 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
13161 handling.
13162 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
13163 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
13164 GRUB_DISK_DEVICE_FILE_ID.
13165
13166 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13167
13168 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
13169 and improve performance.
13170
13171 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13172
13173 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
13174 missing ieee1275/ prefix on whole disk.
13175
13176 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13177
13178 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
13179 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
13180
13181 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13182
13183 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
13184
13185 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13186
13187 Merge common RAID and LVM logic to an abstract diskfilter.
13188 Add LDM support using the same framework.
13189
13190 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
13191 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
13192 (libgrubmods): Remove grub-core/disk/raid.c and
13193 grub-core/partmap/gpt.c.
13194 * grub-core/Makefile.core.def (ldm): New module.
13195 (raid): Renamed to diskfilter. All users updated.
13196 * grub-core/disk/raid.c: Moved to ...
13197 * grub-core/disk/diskfilter.c: ... here.
13198 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
13199 (lv_num): New var.
13200 (find_array): Renamed to ...
13201 (find_lv): ... this. Support multi-LV. Skip nameless LVs
13202 (grub_is_array_readable): Renamed to ...
13203 (grub_is_lv_readable): ... this. Support multinode hierarchy.
13204 (insert_array): New argument id.
13205 (is_node_readable): New function.
13206 (scan_device): Rename to ...
13207 (scan_disk): .. this. Restrict to one disk.
13208 (scan_devices): New function.
13209 (grub_diskfilter_iterate): Support multi-LV.
13210 Skip invisible and nameless LVs.
13211 (grub_diskfilter_memberlist): Support multi-LV.
13212 (grub_diskfilter_read_node): New function.
13213 (grub_raid_read): Most of logic moved to ...
13214 (read_segment): ... here
13215 (read_lv): New function.
13216 (grub_diskfilter_get_vg_by_uuid): New function.
13217 (grub_diskfilter_make_raid): Likewise.
13218 * grub-core/disk/ldm.c: New file.
13219 * grub-core/disk/lvm.c (vg_list): Removed.
13220 (lv_count): Likewise.
13221 (scan_depth): Likewise.
13222 (is_lv_readable): Likewise.
13223 (grub_lvm_getvalue): Advance pointer past the number.
13224 (find_lv): Removed.
13225 (do_lvm_scan): Refactored into ...
13226 (grub_lvm_detect): ... this. Support raid.
13227 (grub_lvm_iterate): Removed.
13228 (grub_lvm_memberlist): Likewise.
13229 (grub_lvm_open): Likewise.
13230 (grub_lvm_close): Likewise.
13231 (read_lv): Likewise.
13232 (read_node): Likewise.
13233 (is_node_readable): Likewise.
13234 (is_lv_readable): Likewise.
13235 (grub_lvm_read): Likewise.
13236 (grub_lvm_write): Likewise.
13237 (grub_lvm_dev): Use diskfilter
13238 (GRUB_MOD_INIT): Likewise.
13239 (GRUB_MOD_FINI): Likewise.
13240 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
13241 new interface.
13242 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
13243 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
13244 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
13245 grub_diskfilter_read_node.
13246 Fix a bug with xor.
13247 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
13248 grub_diskfilter_read_node.
13249 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
13250 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
13251 (grub_disk_dev_iterate): Move from here...
13252 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
13253 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
13254 Make global.
13255 (grub_hostdisk_find_partition_start): Likewise.
13256 (grub_hostdisk_os_dev_to_grub_drive): New function.
13257 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
13258 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
13259 * util/getroot.c (make_device_name): ... here.
13260 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
13261 Move to ...
13262 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
13263 * grub-core/kern/emu/hostdisk.c
13264 (convert_system_partition_to_system_disk): Move to ...
13265 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
13266 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
13267 * util/getroot.c (device_is_wholedisk): ... here.
13268 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
13269 * util/getroot.c (find_system_device): ... here.
13270 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
13271 Move to ...
13272 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
13273 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
13274 Move to ...
13275 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
13276 Handle LDM.
13277 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
13278 Move to ...
13279 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
13280 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
13281 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
13282 DISKFILTER.
13283 * include/grub/raid.h: Renamed to ...
13284 * include/grub/diskfilter.h: ... this.
13285 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
13286 (GRUB_RAID_LAYOUT_*): Make into array.
13287 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
13288 (grub_diskfilter_vg): New struct.
13289 (grub_diskfilter_pv_id): Likewise.
13290 (grub_raid_member): Removed.
13291 (grub_raid_array): Likewise.
13292 (grub_diskfilter_pv): New struct.
13293 (grub_diskfilter_lv): Likewise.
13294 (grub_diskfilter_segment): Likewise.
13295 (grub_diskfilter_node): Likewise.
13296 (grub_diskfilter_get_vg_by_uuid): New proto.
13297 (grub_raid_register): Inline.
13298 (grub_diskfilter_unregister): Likewise.
13299 (grub_diskfilter_make_raid): New proto.
13300 (grub_diskfilter_vg_register): Likewise.
13301 (grub_diskfilter_read_node): Likewise.
13302 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
13303 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
13304 (grub_util_is_ldm): Likewise.
13305 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
13306 (grub_hostdisk_find_partition_start): Likewise.
13307 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
13308 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
13309 New definition.
13310 (grub_gpt_partition_map_iterate): New proto.
13311 * include/grub/lvm.h (grub_lvm_vg): Removed.
13312 (grub_lvm_pv): Likewise.
13313 (grub_lvm_lv): Likewise.
13314 (grub_lvm_segment): Likewise.
13315 (grub_lvm_node): Likewise.
13316 * util/getroot.c [...]
13317 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
13318 (probe_abstraction): Likewise.
13319 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
13320 (main): Remove dead logic.
13321
13322 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
13323
13324 Simplify root device discover and don't fail when trying to open
13325 incorrect devices.
13326
13327 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
13328 function.
13329 (get_diskname_from_path): Likewise.
13330 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
13331 of iterating.
13332
13333 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
13334
13335 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
13336
13337 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
13338
13339 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
13340 pastthe end.
13341
13342 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
13343
13344 * util/grub-install.in: Add missing \.
13345 Reported by: gentoofan
13346
13347 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
13348
13349 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
13350 (direct_read): Use correct compressed size.
13351 (grub_squash_read_data): Likewise.
13352
13353 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
13354
13355 * docs/grub.texi (Platform limitations): New section.
13356 (Platform-specific operations): Likewise.
13357 * docs/grub-dev.texi (Porting): Likewise.
13358
13359 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
13360
13361 IEEE1275 disk write support.
13362
13363 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
13364 const void *.
13365 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
13366 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
13367 and seek loginc to ...
13368 (grub_ofdisk_prepare): ... here.
13369 (grub_ofdisk_write): Implement.
13370
13371 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
13372
13373 ARC disk write support.
13374
13375 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
13376 (reopen): New argument writable. All users updated.
13377 Handle required access mode.
13378 (grub_arcdisk_write): Implement.
13379 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
13380 (grub_arc_firmware_vector): Make buffer to write a const buffer.
13381
13382 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
13383
13384 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
13385 (read_sblock): Don't attempt to read superblocks outside the disk size.
13386
13387 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
13388
13389 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
13390 first superblock to find the second one when possible.
13391
13392 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
13393
13394 * util/grub-install.in: Fix an ARC bug.
13395 Print a warning if no platform-specific setup is available.
13396
13397 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
13398
13399 Use static allocation rather than scratch pointer in reed_solomon.
13400 It decreases its size significantly and avoids a variable in .text.
13401
13402 * grub-core/lib/reed_solomon.c (scratch): Removed.
13403 (chosenstat): New const or static array.
13404 (sigma): Likewise.
13405 (errpot): Likewise.
13406 (errpos): Likewise.
13407 (sy): Likewise.
13408 (mstat): Likewise.
13409 (errvals): Likewise.
13410 (eqstat): Likewise.
13411 (pol_evaluate): Replace x with log_x argument. All users updated.
13412 (syndroms): Removed.
13413 (gauss_solve): Use statically allocated arrays.
13414 (rs_recover): Likewise.
13415 Calculate syndroms directly.
13416 (decode_block): Use statically allocated arrays.
13417 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
13418 (main) [TEST]: Allow -DTEST -DSTANDALONE.
13419
13420 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
13421
13422 Eliminate fixed limit on reed solomon decoder length.
13423
13424 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
13425 rather than hardcoding the address.
13426 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
13427 no_reed_solomon_length.
13428 Move gate_a20 to no-reed-solomon part.
13429 Don't force a particular size of no reed-solomon part.
13430 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
13431 Removed.
13432 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
13433 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
13434
13435 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
13436
13437 * grub-core/commands/wildcard.c (match_files): Handle filenames
13438 without explicit device.
13439 (wildcard_expand): Don't add explicit device if not already present.
13440 * tests/grub_script_echo1.in: Add a new expansion test.
13441
13442 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
13443
13444 Replace single-linked with double-linked lists. It results in more
13445 compact and more efficient code.
13446
13447 * grub-core/kern/list.c (grub_list_push): Moved from here ...
13448 * include/grub/list.h (grub_list_push): ... to here. Set prev.
13449 (grub_list_remove): Moved from here ...
13450 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
13451 (grub_prio_list_insert): Set prev.
13452 * include/grub/list.h (grub_list): Add prev. All users updated.
13453
13454 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
13455
13456 Handle newer autotools. Add some missing quotes while on it.
13457
13458 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
13459 (pkglib_DATA): Move grub-mkconfig_lib from here ...
13460 (pkgdata_DATA): ... here.
13461 * Makefile.util.def (update-grub_lib): Removed.
13462 * conf/Makefile.common (pkglib_DATA): Removed.
13463 (pkglib_SCRIPTS): Likewise.
13464 (pkgdata_DATA): New variable.
13465 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
13466 needed.
13467 Add missing quotes.
13468 Remove unused variable while on it.
13469 * tests/util/grub-shell.in: Likewise.
13470 * util/grub-install.in: Likewise.
13471 * util/grub-mkconfig.in: Likewise.
13472 * util/grub-mknetdir.in: Likewise.
13473 * util/grub-mkrescue.in: Likewise.
13474 * util/grub-mkstandalone.in: Likewise.
13475 * util/grub.d/00_header.in: Likewise.
13476 * util/grub.d/10_hurd.in: Likewise.
13477 * util/grub.d/10_illumos.in: Likewise.
13478 * util/grub.d/10_kfreebsd.in: Likewise.
13479 * util/grub.d/10_linux.in: Likewise.
13480 * util/grub.d/10_netbsd.in: Likewise.
13481 * util/grub.d/10_windows.in: Likewise.
13482 * util/grub.d/20_linux_xen.in: Likewise.
13483 * util/grub.d/30_os-prober.in: Likewise.
13484 * util/update-grub_lib.in: Removed.
13485
13486 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
13487
13488 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
13489 a workaround for intel problem.
13490
13491 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
13492 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
13493 2012-01-23 pfsmorigo
13494
13495 * util/grub-install.in: Support dd'in into PreP partition.
13496 * util/grub-probe.c (probe): Support discovering partition type.
13497 (main): Support -t msdos_parttype.
13498
13499 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
13500
13501 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
13502 infinite recursion using counter.
13503 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
13504 init to skip it if the magic check fails.
13505 (dec_stream_header): Init s->crc32.
13506
13507 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13508 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
13509 2012-01-22 Richard Laager <rlaager@wiktel.com>
13510
13511 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
13512 All users updated.
13513 (find_bestub): Determine correct size.
13514 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
13515 (scan_disk): Align the size down.
13516 Call check pool before find_bestub to have ashift.
13517
13518 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13519
13520 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
13521 dprintf in no-malloc zone.
13522
13523 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
13524
13525 * configure.ac: Add back in test for limits.h.
13526
13527 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
13528
13529 Support 4K-sector NTFS.
13530
13531 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
13532 (grub_ntfs_data): Remove blocksize.
13533 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
13534 Remove data argument. All users updated.
13535
13536 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
13537
13538 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
13539 being in .text to avoid dprel references.
13540 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
13541 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
13542 (grub_arch_highmemsize): Likewise.
13543 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
13544 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
13545 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
13546
13547 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
13548
13549 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
13550
13551 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
13552 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
13553
13554 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
13555
13556 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
13557 GRUB_UTIL.
13558 (grub_set_datetime_cmos): Likewise.
13559
13560 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
13561
13562 Make XZ compression parameters dependent on target and not host CPU.
13563
13564 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
13565 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
13566
13567 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
13568
13569 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
13570 set but not used variable.
13571
13572 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13573
13574 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
13575 created when no uuid support is compiled into mkfs.reiser.
13576
13577 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13578
13579 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
13580 (utf8_to_macroman): Do the opposite.
13581 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
13582
13583 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13584
13585 * configure.ac: Refise build qemu_mips w/o unifont.
13586
13587 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13588
13589 Eliminate grub_min/grub_max prone to overflow usage.
13590
13591 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
13592 (poll_nonroot_hub): Likewise.
13593 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
13594 (grub_affs_label): Likewise.
13595 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
13596 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
13597 (grub_hfs_label): Likewise.
13598 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
13599 * grub-core/fs/zfs/zfs.c (MIN): Remove.
13600 (zap_leaf_array_equal): Use grub_size. Remove MIN.
13601 (zap_leaf_array_get): Likewise.
13602 (dnode_get_path): Likewise.
13603 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
13604 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
13605 * grub-core/script/execute.c (grub_script_break): Likewise.
13606 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
13607 grub_max.
13608 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
13609 * include/grub/misc.h (grub_min): Removed.
13610 (grub_max): Likewise.
13611
13612 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
13613
13614 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
13615 direct.inode = 0.
13616
13617 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13618
13619 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
13620
13621 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13622
13623 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
13624
13625 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13626
13627 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
13628 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
13629
13630 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13631
13632 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
13633 rather than a hack for grub_strncasemap.
13634
13635 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13636
13637 Support multiple initrds
13638 Note: part of this was accidently committed in r3739.
13639
13640 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
13641 initrd.
13642 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
13643 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
13644 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
13645 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
13646 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
13647
13648 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13649
13650 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
13651 disks with unknown size.
13652 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
13653
13654 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13655
13656 Remove defines pertaining to arbitrary limits not affecting GRUB
13657 anymore.
13658
13659 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
13660 (EXT2_MAX_SYMLINKCNT): Likewise.
13661 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
13662 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
13663 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
13664 (GRUB_PXE_MAX_BLKSIZE): Likewise.
13665 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
13666 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
13667 (DN_MAX_OBJECT_SHIFT): Likewise.
13668 (DN_MAX_OFFSET_SHIFT): Likewise.
13669 (DN_MAX_OBJECT): Likewise.
13670 (DNODES_PER_LEVEL_SHIFT): Likewise.
13671 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
13672 (SPA_MAXBLOCKSIZE): Likewise.
13673 (SPA_BLOCKSIZES): Likewise.
13674 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
13675 (MZAP_MAX_BLKSZ): Likewise.
13676
13677 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13678
13679 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
13680 handle NULL appropriately.
13681 Remove MIN.
13682
13683 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
13684
13685 Fix efiemu.
13686
13687 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
13688 cpu/types.h.
13689 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
13690 * configure.ac: Fix efiemu check.
13691
13692 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
13693
13694 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
13695 grub_probe.
13696 Reported by: adamwill
13697
13698 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
13699
13700 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
13701
13702 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13703
13704 Fix handling of wide characters in gfxterm.
13705
13706 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
13707 (clear_char): Likewise.
13708 (paint_char): Skip code == NULL chars.
13709 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
13710
13711 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13712
13713 * grub-core/normal/charset.c: Move comment to right place.
13714
13715 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
13716
13717 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
13718 (GRUB_AFFS_FLAG_FFS): Put back where it was.
13719 (grub_affs_mount): Revert the correct version checking.
13720
13721 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
13722
13723 * docs/grub.texi (Unicode): Mention several other unsupported features.
13724
13725 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
13726
13727 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
13728 case statements as compile-time one.
13729 (direct_read): Prevent spurious warnings.
13730 (grub_squash_read_data): Likewise.
13731
13732 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
13733
13734 Various squash4 fixes and LZO and XZ support.
13735
13736 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
13737 Add xzembed source files.
13738 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
13739 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
13740 (grub_squash_inode): New subtype long_dir.
13741 (SQUASH_TYPE_LONG_DIR): New inode type.
13742 (COMPRESSION): New enum.
13743 (XZBUFSIZ): New const.
13744 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
13745 (read_chunk): Use data->decompress.
13746 (zlib_decompress): New function.
13747 (lzo_decompress): Likewise.
13748 (xz_decompress): Likewise.
13749 (squash_mount): Set new data fields.
13750 (grub_squash_iterate_dir): Handle long dir.
13751 (squash_unmount): Free xzdec and xzbuf.
13752 (grub_squash_open): Check ino type.
13753 (direct_read): Stylistic fixes. Use data->decompress.
13754 (grub_squash_read_data): Likewise.
13755 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
13756 (get_byte): Likewise.
13757 (grub_zlib_disk_read): Removed.
13758 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
13759 (GRUB_POSIX_BOOL_DEFINED): New define.
13760 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
13761 * grub-core/lib/xzembed/xz.h: Addmissing includes.
13762 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
13763 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
13764
13765 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
13766
13767 Don't override more informative errors.
13768
13769 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
13770 * grub-core/font/font.c (open_section): Likewise.
13771 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
13772 filename. Don't override errors.
13773 (grub_cmd_openbsd_ramdisk): Don't override errors.
13774 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
13775 (grub_cmd_initrd): Likewise.
13776 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
13777 (grub_cmd_initrd): Likewise.
13778 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
13779 (grub_cmd_linux): Likewise.
13780 (grub_cmd_initrd): Likewise.
13781 (grub_cmd_payload): Likewise.
13782 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
13783 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
13784 (grub_cmd_module): Likewise.
13785 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
13786 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
13787 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
13788 (grub_cmd_xnu_mkext): Likewise.
13789 (grub_cmd_xnu_ramdisk): Likewise.
13790 (grub_xnu_check_os_bundle_required): Likewise.
13791 (grub_xnu_load_kext_from_dir): Likewise.
13792 (grub_cmd_xnu_kextdir): Likewise.
13793 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
13794
13795 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13796
13797 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
13798 as 1024 in block size field. Found on one of my test images.
13799 Small optimisation while on it.
13800
13801 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13802
13803 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
13804 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
13805 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
13806 performance fixes while on it.
13807 (grub_sfs_close): Fix memory leak while on it.
13808 (grub_sfs_label): Convert Latin1 to UTF-8.
13809
13810 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13811
13812 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
13813 space to avoid overflows.
13814 (grub_hfs_label): Convert from macroman to UTF-8.
13815
13816 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13817
13818 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
13819
13820 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13821
13822 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
13823
13824 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13825
13826 * unicode: Import Unicode 6.0 data.
13827
13828 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13829
13830 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
13831 outside of range.
13832
13833 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13834
13835 Avoid cutting in the middle of UTF-8 character.
13836
13837 * include/grub/charset.h (grub_getend): New function.
13838 * grub-core/script/function.c (grub_script_function_find): Use
13839 grub_getend.
13840 * grub-core/normal/completion.c (add_completion): Likewise.
13841
13842 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13843
13844 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
13845 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
13846 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
13847 (GRUB_UNICODE_TAG_END): Likewise.
13848 (GRUB_UNICODE_LAST_VALID): Likewise.
13849
13850 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13851
13852 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
13853 len and make it smaller. All users updated.
13854 * util/import_unicode.py: Put length and not end character.
13855 Check length.
13856
13857 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13858
13859 Make better Unicode-compliant and unify some UTF-8 code pathes.
13860
13861 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
13862 valid character.
13863 (grub_is_valid_utf8): Use grub_utf8_process.
13864 Check resulting code range.
13865 (grub_utf8_to_ucs4): Use grub_utf8_process.
13866 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
13867 valid character.
13868
13869 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13870
13871 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
13872
13873 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13874
13875 * docs/grub.texi (Filesystems): Mention AFS.
13876
13877 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13878
13879 * docs/grub.texi (Filesystems): Clarify restrictions.
13880 (Regexp): Mention non-Unicode regexp behaviour.
13881 (Other): Mention non-Unicode matching behaviour.
13882
13883 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
13884
13885 Make HFS implementation use MacRoman.
13886
13887 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
13888 (macroman): New const array.
13889 (macroman_to_utf8): New function.
13890 (utf8_to_macroman): Likewise.
13891 (grub_hfs_find_dir): Use utf8_to_macroman.
13892 (grub_hfs_dir): Use macroman_to_utf8.
13893 Set case_insensitive.
13894
13895 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
13896
13897 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
13898
13899 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
13900
13901 Integrate hints into autogeneration scripts.
13902
13903 * docs/grub.texi (Filesystems): Add a hostdisk example.
13904 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
13905 (grub-probe): Add ofpath.
13906 * gentpl.py: Remove group nosparc64.
13907 * grub-core/commands/search.c (cache_entry): New struct.
13908 (cache): New var.
13909 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
13910 * grub-core/commands/search_wrap.c (options): Add platform-specific
13911 hint options.
13912 (grub_cmd_search): Handle platform-specific hints.
13913 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
13914 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
13915 (grub_util_biosdisk_data): Likewise.
13916 (grub_util_biosdisk_open): Set device_map.
13917 (read_device_map): Handle "" as indication of no map.
13918 Set device_map.
13919 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
13920 (grub_util_biosdisk_get_compatibility_hint): New function.
13921 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
13922 * include/grub/emu/hostdisk.h
13923 (grub_util_biosdisk_get_compatibility_hint): New proto.
13924 * util/grub-install.in: Don't call grub-mkdevicemap.
13925 Add platform-specific hint to load.cfg.
13926 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
13927 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
13928 hints. Set root preliminary to compatibility hint, not to OS name.
13929 * util/grub-probe.c (PRINT_*): Add hints.
13930 (print): Make static.
13931 (escape_of_path): New function.
13932 (guess_bios_drive): Likewise.
13933 (guess_efi_drive): Likewise.
13934 (guess_baremetal_drive): Likewise.
13935 (print_full_name): Likewise.
13936 (probe): Handle hints.
13937 (main): Likewise.
13938 * util/ieee1275/devicemap.c: Removed.
13939 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
13940 updated.
13941 (grub_util_devname_to_ofpath): Return NULL on failure.
13942
13943 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
13944 resource leak.
13945 * util/getroot.c (grub_util_pull_device): Fix memory leak.
13946
13947 * po/POTFILES.in: Regenerated.
13948
13949 Allow purely long options
13950
13951 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
13952 (SHORT_ARG_USAGE): Likewise.
13953 (grub_arg_show_help): Compare opt with help_options.
13954 (parse_option): Receive opt as argument. If makes big simplificatons.
13955 All users updated
13956
13957 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
13958
13959 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
13960 Restructure to avoid warning.
13961
13962 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
13963
13964 * util/grub-install.in: Account for possible escaped comma in device
13965 name.
13966
13967 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
13968
13969 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
13970 channel.
13971
13972 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
13973
13974 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
13975 allocation and zero-setting.
13976 (grub_ieee1275_get_devname): Check that alias is complete.
13977
13978 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
13979
13980 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
13981 unaligned segments.
13982
13983 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
13984
13985 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
13986 prefix.
13987 (grub_ofdisk_open): Check and discard ieee1275 prefix.
13988 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
13989 Add ieee1275 prefix.
13990
13991 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
13992
13993 * docs/grub.texi (Filesystems): Update.
13994
13995 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
13996
13997 Support odc, newc and bigendian cpio formats.
13998
13999 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
14000 * grub-core/Makefile.core.def (newc): New module.
14001 (odc): Likewise.
14002 (cpio_be): Likewise.
14003 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
14004 (MAGIC): Likewise.
14005 (MAGIC2): Likewise.
14006 (head) [MODE_ODC]: Adapt for the format.
14007 (head) [MODE_NEWC]: Likewise.
14008 (head) [!MODE_*]: Write fields of interest as arrays.
14009 (MAGIC_USTAR): Removed.
14010 (read_number) [MODE_NEWC]: Change to hex.
14011 (read_number) [!MODE_*]: Parse binary arrays.
14012 (grub_cpio_find_file): Factor out the code for better structure and
14013 always use read_number.
14014 (grub_cpio_mount): Use MAGIC and MAGIC2.
14015 (grub_cpio_dir): Exit on first hook non-0 return.
14016 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
14017 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
14018 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
14019 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
14020 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
14021 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
14022 * grub-core/fs/newc.c: New file.
14023 * grub-core/fs/odc.c: Likewise.
14024 * grub-core/fs/cpio_be.c: Likewise.
14025
14026 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
14027
14028 Fix handling of tar numbers occupying the whole field.
14029
14030 * grub-core/fs/cpio.c (read_number): New function.
14031 (grub_cpio_find_file): Use read_number instead of strtoull.
14032
14033 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
14034
14035 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
14036 occupying the whole field size.
14037
14038 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
14039
14040 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
14041
14042 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
14043
14044 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
14045
14046 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
14047
14048 * grub-core/Makefile.core.def (lzma_decompress): Add missing
14049 TARGET_IMG_LDFLAGS.
14050
14051 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
14052
14053 * util/getroot.c (ESCAPED_PATH_MAX): New define.
14054 (mountinfo_entry): Increase the field size to take escaping into
14055 account.
14056 (find_root_device_from_libzfs): Add one byte to size of strings for
14057 security.
14058
14059 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
14060
14061 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
14062 an assert.
14063 * util/grub-setup.c (setup): Likewise.
14064
14065 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
14066
14067 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
14068 _LzmaDecodeA.
14069
14070 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
14071
14072 * docs/grub.texi (Internationalisation): New section.
14073
14074 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
14075
14076 * docs/grub.texi (Loopback booting): New section.
14077
14078 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
14079
14080 * util/grub-mkstandalone.in: Fix minor typo errors.
14081
14082 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
14083
14084 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
14085
14086 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
14087 net/icmp.c and net/icmp6.c.
14088 (http): New module.
14089 (priority_queue): Likewise.
14090 * grub-core/io/bufio.c: Rewritten.
14091 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
14092 TYPE_WITH_CONFIGFILE_OPTION.
14093 (legacy_commands): Add bootp and dhcp.
14094 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
14095 (grub_legacy_parse): Likewise.
14096 * grub-core/lib/priority_queue.c: New file.
14097 * grub-core/net/arp.c: Add missing license header.
14098 (arp_find_entry): Removed.
14099 (arp_find_entry): Likewise.
14100 (grub_net_arp_resolve): Rename to ...
14101 (grub_net_arp_send_request): ...this.
14102 (grub_net_arp_receive): New card argument.
14103 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
14104 Set router and DNS server.
14105 (grub_net_configure_by_dhcp_ack): Handle routing information.
14106 (grub_cmd_bootp): Set checksum.
14107 (grub_bootp_init): Remove net_dhcp.
14108 * grub-core/net/dns.c: New file.
14109 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
14110 completion.
14111 (get_card_packet): Handle allocation.
14112 (grub_efinet_findcards): Set mtu.
14113 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
14114 (get_card_packet): Handle allocation.
14115 (emucard): Set mtu.
14116 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
14117 (GRUB_MOD_INIT): Set mtu.
14118 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
14119 mtu.
14120 (get_card_packet): Handle allocation.
14121 (grub_ofnet_findcards): Set mtu.
14122 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
14123 assert.
14124 (grub_net_recv_ethernet_packet): Handle IPv6.
14125 * grub-core/net/http.c: New file.
14126 * grub-core/net/icmp.c: Likewise.
14127 * grub-core/net/icmp6.c: Likewise.
14128 * grub-core/net/ip.c (ip6addr): New type.
14129 (ip6hdr): Likewise.
14130 (reassemble): Likewise.
14131 (cmp): New function.
14132 (reassembles): New variable.
14133 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
14134 (id): New variable.
14135 (send_fragmented): New function.
14136 (grub_net_send_ip_packet): Rename to ...
14137 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
14138 Handle non-UDP.
14139 (grub_net_recv_ip_packets): Rename to ...
14140 (handle_dgram): ... this. Check checksum. Handle non-UDP.
14141 (free_rsm): New function.
14142 (free_old_fragments): Likewise.
14143 (grub_net_recv_ip4_packets): New function.
14144 (grub_net_send_ip6_packet): Likewise.
14145 (grub_net_send_ip_packet): Likewise.
14146 (grub_net_recv_ip6_packets): Likewise.
14147 (grub_net_recv_ip_packets): Likewise.
14148 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
14149 (LINK_LAYER_CACHE_SIZE): New const.
14150 (link_layer_find_entry): New function.
14151 (grub_net_link_layer_add_address): Likewise.
14152 (grub_net_link_layer_resolve_check): Likewise.
14153 (grub_net_link_layer_resolve): Likewise.
14154 (grub_net_ipv6_get_slaac): Likewise.
14155 (grub_net_ipv6_get_link_local): Likewise.
14156 (grub_cmd_ipv6_autoconf): Likewise.
14157 (parse_ip): Handle one number representation.
14158 (parse_ip6): New functoion.
14159 (match_net): Handle IPv6.
14160 (grub_net_resolve_address): Handle IPv6 and DNS.
14161 (grub_net_resolve_net_address): Handle IPv6.
14162 (route_cmp): New function.
14163 (grub_net_route_address): Find best route.
14164 (grub_net_addr_to_str): Handle IPv6.
14165 (grub_net_addr_cmp): New function.
14166 (grub_net_add_addr): Register local route.
14167 (print_net_address): Handle net address.
14168 (grub_net_poll_cards): Retransmit TCP.
14169 (grub_net_poll_cards_idle_real): Likewise.
14170 (have_ahead): New function.
14171 (grub_net_seek_real): Use underlying seek.
14172 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
14173 * grub-core/net/tcp.c: New file.
14174 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
14175 (cmp): New function.
14176 (ack): Likewise.
14177 (tftp_receive): Handle unordered input.
14178 (destroy_pq): New function.
14179 (tftp_close): Close pq.
14180 * grub-core/net/udp.c: Put missing license header.
14181 (grub_net_udp_socket): New function.
14182 (udp_socket_register): Likewise.
14183 (grub_net_udp_close): Likewise.
14184 (grub_net_recv_udp_packet): Check checksum.
14185 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
14186 * include/grub/misc.h (grub_memchr): New function.
14187 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
14188 (grub_net_card_driver): Return buf in recv.
14189 (grub_net_slaac_mac_list): New struct.
14190 (grub_network_level_protocol_id): Add ipv6.
14191 (grub_net_network_level_addr): Likewise.
14192 (grub_net_network_level_net_addr): Likewise.
14193 (grub_net_app_protocol): Add seek.
14194 (grub_net_socket): Removed.
14195 (grub_net_sockets): Likewise.
14196 (grub_net_socket_register): Likewise.
14197 (grub_net_socket_unregister): Likewise.
14198 (FOR_NET_SOCKETS): Likewise.
14199 (grub_net_add_addr): Add const.
14200 (GRUB_NET_BOOTP_*): New enum.
14201 (grub_net_addr_cmp): New proto.
14202 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
14203 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
14204 (grub_net_hwaddr_to_str): NEw proto.
14205 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
14206 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
14207 (grub_dns_init): New proto.
14208 (grub_dns_fini): Likewise.
14209 (grub_net_tcp_retransmit): Likewise.
14210 (grub_net_link_layer_add_address): Likewise.
14211 (grub_net_link_layer_resolve_check): Likewise.
14212 (grub_net_link_layer_resolve): Likewise.
14213 (grub_net_dns_lookup): Likewise.
14214 (grub_net_add_dns_server): Likewise.
14215 (grub_net_remove_dns_server): Likewise.
14216 (GRUB_NET_TRIES): New const.
14217 (GRUB_NET_INTERVAL): Likewise.
14218 * include/grub/net/arp.h: Mostly rewritten.
14219 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
14220 * include/grub/net/ip.h: Mostly rewritten.
14221 * include/grub/net/netbuff.h: Indent.
14222 * include/grub/net/tcp.h: New file.
14223 * include/grub/net/udp.h: Mostly rewritten.
14224 * include/grub/priority_queue.h: New file.
14225 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
14226 (grub_swap_bytes64_compile_time): Likewise.
14227 (grub_cpu_to_be16_compile_time): Likewise.
14228 (grub_cpu_to_be32_compile_time): Likewise.
14229 (grub_cpu_to_be64_compile_time): Likewise.
14230 (grub_be_to_cpu64_compile_time): Likewise.
14231
14232 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
14233
14234 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
14235 UINT_TO_PTR with cast.
14236
14237 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14238
14239 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
14240 don't use them.
14241
14242 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14243
14244 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
14245 already there.
14246
14247 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14248
14249 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
14250 confusing ipxe.
14251
14252 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14253
14254 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
14255 Add missing const attribute.
14256 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
14257 Likewise.
14258 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
14259 Likewise.
14260
14261 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14262
14263 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
14264 misaligned access.
14265 (serpent_setkey): Likewise.
14266 (serpent_encrypt_internal): Likewise.
14267 (serpent_decrypt_internal): Likewise.
14268 (serpent_encrypt): Don't put an alignment-increasing cast.
14269 (serpent_decrypt): Likewise.
14270 (serpent_test): Likewise.
14271
14272 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14273
14274 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
14275
14276 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14277
14278 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
14279
14280 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
14281 grub_addr_t casts.
14282 (PTR_TO_UINT64): Likewise.
14283 (PTR_TO_UINT32): Likewise.
14284
14285 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14286
14287 * util/grub-mkimage.c (generate_image): Decrease the higher limit
14288 because of stack.
14289 * util/grub-setup.c (setup): Don't add redundancy past the higher load
14290 limit.
14291
14292 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14293
14294 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
14295 text_width > available width a bit more gracefully.
14296
14297 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14298
14299 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
14300 current address calculation.
14301
14302 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14303
14304 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
14305 stack.
14306 (encode_block): Likewise.
14307
14308 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14309
14310 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
14311 certainety.
14312
14313 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14314
14315 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
14316 non-RS part to avoid RS messing with GDT.
14317 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
14318 Increase to suit in realmode routines.
14319
14320 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14321
14322 * grub-core/kern/i386/realmode.S: Increase alignment.
14323 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
14324
14325 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14326
14327 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
14328 be deterministic.
14329 (syndroms): Compute 0 syndrom.
14330 (rs_recover): Use 0 syndrom.
14331
14332 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14333
14334 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
14335
14336 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14337
14338 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
14339 brackets.
14340
14341 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14342
14343 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
14344 account.
14345 (get_top_pad): Likewise.
14346 (get_right_pad): Likewise.
14347 (get_bottom_pad): Likewise.
14348
14349 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14350
14351 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
14352
14353 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14354
14355 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
14356 attribute as the structure isn't guaranteed to be properly aligned.
14357 (grub_efi_pci_device_path): Likewise.
14358 (grub_efi_pccard_device_path): Likewise.
14359 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
14360 specify the size of `memory_type'.
14361 (grub_efi_vendor_device_path): Likewise.
14362 (grub_efi_controller_device_path): Likewise.
14363 (grub_efi_acpi_device_path): Likewise.
14364 (grub_efi_expanded_acpi_device_path): Likewise.
14365 (grub_efi_atapi_device_path): Likewise.
14366 (grub_efi_scsi_device_path): Likewise.
14367 (grub_efi_fibre_channel_device_path): Likewise.
14368 (grub_efi_1394_device_path): Likewise.
14369 (grub_efi_usb_device_path): Likewise.
14370 (grub_efi_usb_class_device_path): Likewise.
14371 (grub_efi_i2o_device_path): Likewise.
14372 (grub_efi_mac_address_device_path): Likewise.
14373 (grub_efi_ipv4_device_path): Likewise.
14374 (grub_efi_ipv6_device_path): Likewise.
14375 (grub_efi_infiniband_device_path): Likewise.
14376 (grub_efi_uart_device_path): Likewise.
14377 (grub_efi_vendor_messaging_device_path): Likewise.
14378 (grub_efi_hard_drive_device_path): Likewise.
14379 (grub_efi_cdrom_device_path): Likewise.
14380 (grub_efi_vendor_media_device_path): Likewise.
14381 (grub_efi_file_path_device_path): Likewise.
14382 (grub_efi_protocol_device_path): Likewise.
14383 (grub_efi_piwg_device_path): Likewise.
14384 (grub_efi_bios_device_path): Likewise.
14385
14386 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14387
14388 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
14389 (grub_ucs4_to_utf8_alloc): Likewise.
14390 (grub_ucs4_to_utf8): Likewise.
14391 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
14392 (grub_ucs4_to_utf8_alloc): Likewise.
14393
14394 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14395
14396 AFFS never uses unicode.
14397
14398 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
14399 (grub_latin1_to_utf8): New inline function.
14400 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
14401
14402 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14403
14404 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
14405 overflow.
14406
14407 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14408
14409 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
14410 (grub_squash_dirent_header): Likewise.
14411 (read_chunk): Don't double swap.
14412 (grub_squash_iterate_dir): Fix swap sizes.
14413
14414 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14415
14416 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
14417
14418 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14419
14420 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
14421 (grub_hfs_iterate_dir): Likewise.
14422
14423 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14424
14425 Fix video on platforms where unaligned access is forbidden.
14426 Make several optimisations while on it.
14427
14428 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
14429 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
14430 (grub_video_fbblit_replace_32bit_1bit): Likewise.
14431 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
14432 Disable.
14433 (grub_video_fbblit_replace_16bit_1bit):
14434 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
14435 (grub_video_fbblit_replace_8bit_1bit): Likewise.
14436 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
14437 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
14438 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
14439 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
14440 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
14441 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
14442 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
14443 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
14444 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
14445 (grub_video_fbblit_replace_index_RGB888): Likewise.
14446 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
14447 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
14448 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
14449 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
14450 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
14451 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
14452 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
14453 Disable.
14454 (grub_video_fbblit_blend_XXX565_1bit):
14455 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
14456 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
14457 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
14458 void *.
14459 * grub-core/video/fb/video_fb.c (common_blitter)
14460 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
14461 (grub_video_fb_create_render_target_from_pointer)
14462 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
14463 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
14464 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
14465 definition.
14466 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
14467
14468 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14469
14470 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
14471 HH22 and HM10 relocations.
14472
14473 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14474
14475 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
14476
14477 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14478
14479 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
14480 allocation succeeded.
14481
14482 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14483
14484 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
14485 argument a u8 pointer. All users updated.
14486 Handle unaligned buffers.
14487
14488 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14489
14490 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
14491 add_part to workaround compiler bug.
14492
14493 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14494
14495 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
14496
14497 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14498
14499 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
14500 Reserve alignment invariants.
14501 (grub_multiboot_load): Likewise.
14502 (retrieve_video_parameters): Likewise.
14503 (grub_multiboot_make_mbi): Likewise.
14504
14505 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14506
14507 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
14508 incorrect pointer.
14509
14510 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14511
14512 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
14513 (grub_pata_pio_write): Likewise.
14514
14515 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14516
14517 Add noreturn attributes and remove unreachable code.
14518
14519 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
14520 code.
14521 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
14522 code. Mark as noreturn.
14523 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
14524 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
14525 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
14526 unreachable code.
14527 * grub-core/kern/main.c (grub_main): Mark as noreturn.
14528 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
14529 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
14530 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
14531 * include/grub/kernel.h (grub_main): Mark as noreturn.
14532 * include/grub/reader.h (grub_rescue_run): Likewise.
14533
14534 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14535
14536 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
14537 redundant declaration.
14538
14539 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14540
14541 * include/grub/net.h (grub_net_network_level_interfaces): Remove
14542 redundant declaration.
14543 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
14544
14545 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14546
14547 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
14548 to ensure alignment.
14549 (grub_hdparm_print_identify): Make argument uint16 * to ensure
14550 alignment. Ensure tmp alignment.
14551 (grub_cmd_hdparm): Ensure buf alignment.
14552 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
14553 to ensure alignment.
14554 (grub_ata_dumpinfo): Ensure text alignment.
14555 (grub_atapi_identify): Preserve alignment invariant.
14556 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
14557
14558 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14559
14560 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
14561 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
14562 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
14563 * include/grub/misc.h (grub_reboot)
14564 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
14565 (grub_halt) [__mips__]: Likewise.
14566
14567 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14568
14569 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
14570 Remove redundant declaration.
14571 (grub_mmap_get_post64): Likewise.
14572 (grub_mmap_get_upper): Likewise.
14573 (grub_mmap_get_lower): Likewise.
14574
14575 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14576
14577 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
14578 uint32_t * to ensure alignment.
14579 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
14580
14581 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14582
14583 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
14584 uint16_t * to ensure alignment.
14585 (sun_pc_partition_map_iterate): Make `block' a union to ensure
14586 alignment.
14587
14588 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14589
14590 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
14591 to ensure alignment.
14592 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
14593
14594 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14595
14596 * grub-core/fs/ntfs.c (u16at): Make into inline function.
14597 Handle unaligned pointers.
14598 (u32at): Likewise.
14599 (u64at): Likewise.
14600 (fixup): Use byte access instead of v16at.
14601 (find_attr): Fix imporper usage of v32at.
14602 (read_data): Likewise.
14603 (list_file): Handle byte-swapping and unaligned strings.
14604 (grub_ntfs_label): Likewise.
14605
14606 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14607
14608 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
14609 as it's not necessarily aligned.
14610
14611 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14612
14613 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
14614 redundant declaration.
14615 (grub_serial_init): Likewise.
14616 (grub_terminfo_init): Likewise.
14617
14618 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14619
14620 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
14621 function.
14622 (ZAP_HASH_IDX): Likewise.
14623 (ZAP_LEAF_HASH_SHIFT): Likewise.
14624 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
14625 (LEAF_HASH): Likewise.
14626 (ZAP_LEAF_NUMCHUNKS): Likewise.
14627 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
14628 alignment invariants. Return pointer. All users updated.
14629 (ZAP_LEAF_ENTRY): Make into inline function.
14630 (NBBY): Removed.
14631 (xor): LIkewise.
14632 (xor_out): Use grub_crypto_xor.
14633 (dnode_get_path): Use grub_get_unaligned.
14634 (nvlist_find_value): Likewise.
14635 (grub_zfs_nvlist_lookup_uint64): Likewise.
14636 (grub_zfs_nvlist_lookup_string): Likewise.
14637 (get_nvlist_size): Likewise.
14638 (grub_zfs_open): Likewise.
14639 (fill_fs_info): Likewise.
14640 (grub_zfs_dir): Likewise.
14641 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
14642 alignment invariants.
14643 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
14644 necessarily aligned.
14645
14646 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14647
14648 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
14649
14650 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14651
14652 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
14653 arithmetic to conserve alignment invariants.
14654
14655 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14656
14657 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
14658 redundant declaration.
14659 (grub_efiemu_mm_obtain_request): Likewise.
14660 (grub_efiemu_prepare): Likewise.
14661
14662 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14663
14664 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
14665 to match types.
14666
14667 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14668
14669 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
14670 case of aunaligned recptr.
14671 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
14672 alignment.
14673 (grub_hfsplus_btree_search): Handle unaligned index.
14674
14675 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14676
14677 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
14678 to get freetag and skip.
14679
14680 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14681
14682 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
14683 array.
14684 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
14685 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
14686
14687 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14688
14689 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
14690 name for checksum and fix allocation algorithm.
14691
14692 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14693
14694 * include/grub/types.h (grub_properly_aligned_t): New type.
14695 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
14696 (grub_get_unaligned16): Add explicit casts.
14697 (grub_get_unaligned32): Likewise.
14698 (grub_get_unaligned64): Likewise.
14699 (grub_set_unaligned16): New function.
14700 (grub_set_unaligned32): Likewise.
14701
14702 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14703
14704 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
14705
14706 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14707
14708 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
14709 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
14710 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
14711
14712 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14713
14714 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
14715 conditionals.
14716
14717 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14718
14719 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
14720 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
14721
14722 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14723
14724 Unify and improve RAID and crypto xor.
14725
14726 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
14727 changed to grub_crypto_xor
14728 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
14729 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
14730 Use bigger types when possible.
14731
14732 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14733
14734 * grub-core/disk/raid.c (scan_devices): Fix condition.
14735
14736 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14737
14738 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
14739 Make name a const ptr.
14740
14741 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14742
14743 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
14744 first argument a const pointer.
14745 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
14746 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
14747 proto.
14748 (grub_children_iterate): Likewise.
14749 (grub_machine_mmap_iterate): Remove redundant declaration.
14750
14751 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14752
14753 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
14754 (grub_cmd_acpi) [!x86]: Disable EBDA.
14755
14756 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14757
14758 Enable UTF8 in gnulib regexp.
14759
14760 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
14761 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
14762 (isupper): Use grub_isupper.
14763 (isascii): New inline function.
14764 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
14765 * grub-core/lib/posix_wrap/wctype.h: Likewise.
14766 * grub-core/normal/charset.c (grub_utf8_process): New function.
14767 (grub_utf8_to_utf16): Use grub_utf8_process.
14768 (grub_encode_utf8_character): New function.
14769 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
14770 * include/grub/charset.h (grub_utf8_process): New declaration.
14771 (grub_encode_utf8_character): Likewise.
14772 * include/grub/misc.h (grub_islower): New inline function.
14773 (grub_isupper): Likewise.
14774 (grub_strchrsub): Moved down to fix the definitions.
14775
14776 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14777
14778 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
14779 specification.
14780
14781 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14782
14783 * include/grub/loader.h (grub_loader_register_preboot_hook):
14784 Use struct preboot * and not void * for handle. All users updated.
14785 (grub_loader_unregister_preboot_hook): Likewise.
14786
14787 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
14788
14789 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
14790 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
14791 UTF-16-BE. All users updated.
14792 (grub_hfsplus_cmp_catkey): Fix unicode handling.
14793 (grub_hfsplus_iterate_dir): Likewise.
14794 (grub_hfsplus_label): Likewise.
14795
14796 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
14797
14798 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
14799
14800 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
14801
14802 Add missing const qualifiers.
14803
14804 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
14805 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
14806 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
14807 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
14808 (grub_lvm_check_flag): Likewise.
14809 * grub-core/efiemu/i386/coredetect.c
14810 (grub_efiemu_get_default_core_name): Likewise
14811 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
14812 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
14813 * grub-core/fs/ntfs.c (fixup): Likewise.
14814 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
14815 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
14816 (fzap_lookup): Likewise.
14817 (zap_lookup): Likewise.
14818 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
14819 * grub-core/lib/legacy_parse.c (check_option): Likewise.
14820 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
14821 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
14822 (grub_freebsd_add_meta_module): Likewise.
14823 (grub_cmd_freebsd_module): Likewise.
14824 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
14825 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
14826 (grub_xnu_writetree_get_size): Likewise.
14827 (grub_xnu_writetree_toheap_real): Likewise.
14828 (grub_xnu_find_key): Likewise.
14829 (grub_xnu_create_key): Likewise.
14830 (grub_xnu_create_value): Likewise.
14831 (grub_xnu_register_memory): Likewise.
14832 (grub_xnu_check_os_bundle_required): Likewise.
14833 (grub_xnu_scan_dir_for_kexts): Likewise.
14834 (grub_xnu_load_kext_from_dir): Likewise.
14835 * grub-core/normal/color.c (color_list): Likewise.
14836 * grub-core/normal/completion.c (current_word): Likewise.
14837 * grub-core/normal/menu_entry.c (insert_string): Likewise.
14838 * grub-core/term/serial.c (grub_serial_find): Likewise.
14839 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
14840 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
14841 Likewise.
14842 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
14843 (grub_freebsd_add_meta_module): Likewise.
14844 * include/grub/lib/arg.h (grub_arg_option): Likewise.
14845 * include/grub/net.h (grub_net_card_driver): Likewise.
14846 (grub_net_card): Likewise.
14847 (grub_net_app_protocol): Likewise.
14848 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
14849 * include/grub/serial.h (grub_serial_find): Likewise.
14850 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
14851 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
14852 (grub_xnu_create_value): Likewise.
14853 (grub_xnu_find_key): Likewise.
14854 (grub_xnu_scan_dir_for_kexts): Likewise.
14855 (grub_xnu_load_kext_from_dir): Likewise.
14856
14857 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
14858 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
14859 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
14860 Moved from here ...
14861 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
14862
14863 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
14864
14865 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
14866
14867 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
14868
14869 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
14870 (read_device): Fix size calculation.
14871
14872 2011-11-25 Robert Millan <rmh@gnu.org>
14873
14874 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
14875 (find_root_device_from_libzfs): Add zpool output parser to be used
14876 as fallback when libzfs isn't available.
14877
14878 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
14879
14880 * po/Makefile.in.in: Add missing escape-continuation.
14881
14882 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
14883
14884 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
14885
14886 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
14887
14888 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
14889
14890 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
14891
14892 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
14893
14894 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
14895
14896 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
14897
14898 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14899
14900 * grub-core/lib/adler32.c: Add missing license specification.
14901 * grub-core/lib/crc64.c: Likewise.
14902 * grub-core/loader/i386/pc/plan9.c: Likewise.
14903 * grub-core/partmap/plan.c: Likewise.
14904
14905 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
14906
14907 Add facility to debug GRUB with gdb under qemu.
14908
14909 * grub-core/gdb_grub.in: New file.
14910 * grub-core/gmodule.pl.in: Likewise.
14911 * grub-core/Makefile.core.def (gmodule.pl): New script.
14912 (gdb_grub): Likewise.
14913
14914 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14915
14916 * util/grub-mount.c (argp_parser): Accept relative pathes.
14917 * util/grub-fstest.c (argp_parser): Likewise.
14918
14919 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14920
14921 Plan9 support.
14922
14923 * Makefile.util.def (libgrubmods): Add
14924 grub-core/partmap/plan.c.
14925 * docs/grub.texi: Notice Plan9 support.
14926 * grub-core/Makefile.core.def (plan9): New module.
14927 (part_plan): Likewise.
14928 * grub-core/loader/i386/pc/plan9.c: New file.
14929 * grub-core/partmap/plan.c: Likewise.
14930 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
14931 define.
14932 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
14933 * include/grub/mm.h (grub_extend_alloc): New inline function.
14934
14935 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14936
14937 Make Reed-Solomon faster by using power of generator representation of
14938 GF(256)*.
14939
14940 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
14941 (gf_double_t): Likewise.
14942 (gf_invert): Removed.
14943 (gf_powx): New array.
14944 (gf_powx_inv): Likewise.
14945 (scratch): Move higher.
14946 (gf_reduce): Removed.
14947 (gf_mul): Use powx.
14948 (gf_invert): Likewise.
14949 (init_inverts): Replaced with ...
14950 (init_powx): ...this. All users updated.
14951 (pol_evaluate): Replace multiplications with additions.
14952 (rs_encode): Likewise.
14953 (gauss_eliminate): Call gf_invert.
14954 (grub_reed_solomon_add_redundancy): Call init_powx.
14955 (grub_reed_solomon_recover): Call init_powx unconditionally.
14956
14957 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
14958
14959 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
14960
14961 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
14962
14963 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
14964 disk->partiton for safety.
14965
14966 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
14967
14968 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
14969 Fix a memory leak.
14970 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
14971
14972 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
14973
14974 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
14975
14976 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
14977
14978 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
14979
14980 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
14981
14982 Fix spaces handling in proc/self/mountinfo.
14983
14984 * util/getroot.c (unescape): New function.
14985 (grub_find_root_device_from_mountinfo): Use unescape.
14986
14987 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
14988
14989 Support ZFS embedding.
14990
14991 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
14992 (grub_zfs_fs): Register grub_zfs_embed.
14993
14994 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
14995
14996 Fix MIPS compilation.
14997
14998 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
14999 * include/grub/offsets.h: Rename decompressor fields from
15000 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
15001 * util/grub-mkimage.c (image_targets): Use new names.
15002
15003 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15004
15005 Defer multiboot device parsing until we're in compressed part.
15006
15007 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
15008 bsd_part. setdevice has fallen into disuse.
15009 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
15010 (bsd_part): Likewise.
15011 (boot_dev): New variable.
15012 (multiboot_trampoline): Don't parse multiboot device.
15013 Pass multiboot device in %edx.
15014 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
15015 grub_boot_device.
15016 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
15017 Likewise.
15018 * grub-core/kern/i386/pc/startup.S: Save edx.
15019 (grub_boot_drive): Removed.
15020 (grub_install_dos_part): Likewise.
15021 (grub_install_bsd_part): Likewise.
15022 (grub_boot_device): New variable.
15023 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
15024 (grub_install_bsd_part): Likewise.
15025 (grub_boot_drive): Likewise.
15026 (grub_boot_device): New variable.
15027 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
15028 Removed.
15029 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
15030 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
15031 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
15032 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
15033 * util/grub-install.in: Remove redundant condition.
15034
15035 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15036
15037 Fix bug introduced by previous commit.
15038
15039 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
15040
15041 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15042
15043 Use decompressors framework on i386-pc. It increases core size
15044 by 46 bytes but improves compatibility and maintainability.
15045
15046 * grub-core/Makefile.core.def (lzma_decompress): New image.
15047 (kernel): Add i386_pc_ldflags.
15048 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
15049 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
15050 to real_to_prot, prot_to_real and device info.
15051 * include/grub/offsets.h: Renamed decompressor offsets.
15052 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
15053 (image_target_desc): Remove raw_size and rename decompressor fields.
15054 (compress_kernel): Handle lzma.
15055 (generate_image): Handle decompressors on i386-pc.
15056
15057 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15058
15059 * configure.ac: Add -fno-asynchronous-unwind-tables.
15060
15061 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15062
15063 Move assembly code to C by using intwrap. It increases core size
15064 by 88 bytes but improves compatibility and maintainability.
15065
15066 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
15067 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
15068 ... here. Translated to C.
15069 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
15070 * grub-core/term/i386/pc/console.c (grub_console_getkey):
15071 ... here. Translated to C.
15072 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
15073 * grub-core/term/i386/pc/console.c (grub_console_getxy):
15074 ... here. Translated to C.
15075 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
15076 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
15077 ... here. Translated to C.
15078 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
15079 * grub-core/term/i386/pc/console.c (grub_console_cls):
15080 ... here. Translated to C.
15081 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
15082 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
15083 ... here. Translated to C.
15084 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
15085 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
15086 Translated to C.
15087 * grub-core/term/i386/pc/console.c (int10_9): New function.
15088 (grub_console_putchar): Likewise.
15089 * include/grub/i386/pc/console.h: Removed the not anymore shared
15090 functions.
15091
15092 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15093
15094 Move grub_chainloader_real_boot out of the kernel.
15095
15096 * grub-core/Makefile.am: Remove machine/loader.h.
15097 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
15098 Removed.
15099 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
15100 variable.
15101 (grub_relocator16_keep_a20_enabled): Likewise.
15102 (grub_relocator16_boot): Fill new variables.
15103 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
15104 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
15105 relocator.
15106 (grub_chainloader_unload): Likewise.
15107 (grub_chainloader_cmd): Likewise.
15108 * include/grub/i386/pc/loader.h: Removed.
15109 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
15110 and esi. All initialisers updated.
15111
15112 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15113 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
15114
15115 * Makefile.util.def (grub-mount): New util.
15116 * .bzrignore: Add grub-mount.
15117 * configure.ac: Check for fuse and enable grub-mount if available.
15118 * docs/man/grub-mount.h2m: New file.
15119 * util/grub-mount.c: Likewise.
15120
15121 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15122
15123 * grub-core/commands/efi/fixvideo.c: Gettextize.
15124 * grub-core/commands/hashsum.c: Likewise.
15125 * grub-core/commands/i386/cmostest.c: Likewise.
15126 * grub-core/commands/i386/pc/drivemap.c: Likewise.
15127 * grub-core/commands/i386/pc/lsapm.c: Likewise.
15128 * grub-core/commands/i386/pc/sendkey.c: Likewise.
15129 * grub-core/commands/lsmmap.c: Likewise.
15130 * grub-core/commands/menuentry.c: Likewise.
15131 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
15132 * grub-core/commands/setpci.c: Likewise.
15133 * grub-core/loader/i386/bsd.c: Likewise.
15134 * grub-core/loader/i386/linux.c: Likewise.
15135 * util/getroot.c: Likewise.
15136 * util/grub-editenv.c: Likewise.
15137 * util/grub-fstest.c: Likewise.
15138 * util/grub-mkfont.c: Likewise.
15139 * util/grub-mkimage.c: Likewise.
15140 * util/grub-mkpasswd-pbkdf2.c: Likewise.
15141 * util/grub-pe2elf.c: Likewise.
15142 * util/grub-probe.c: Likewise.
15143 * util/grub-setup.c: Likewise.
15144 * util/ieee1275/ofpath.c: Likewise.
15145 * util/misc.c: Likewise.
15146 * util/raid.c: Likewise.
15147
15148 2011-11-11 Robert Millan <rmh@gnu.org>
15149
15150 * util/getroot.c (grub_util_get_geom_abstraction): Remove
15151 __attribute__((unused)) from `os_dev', which *is* being used.
15152
15153 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15154
15155 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
15156 forgotten define.
15157 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
15158 GRUB_IA64_DL_GOT_ALIGN.
15159 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
15160 GRUB_IA64_DL_TRAMP_ALIGN.
15161
15162 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15163
15164 Replace grub_fatal with normal errors in i386 linux loader.
15165
15166 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
15167 (allocate_pages): Check find_efi_mmap_size return value.
15168 (grub_e820_add_region): Return error.
15169 (grub_linux_boot): Check mmap return value.
15170
15171 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15172
15173 * grub-core/commands/acpihalt.c: Gettextized.
15174 * grub-core/commands/cacheinfo.c: Likewise.
15175 * grub-core/commands/cmp.c: Likewise.
15176 * grub-core/commands/efi/loadbios.c: Likewise.
15177 * grub-core/commands/gptsync.c: Likewise.
15178 * grub-core/commands/ieee1275/suspend.c: Likewise.
15179 * grub-core/commands/legacycfg.c: Likewise.
15180 * grub-core/commands/memrw.c: Likewise.
15181 * grub-core/commands/minicmd.c: Likewise.
15182 * grub-core/commands/parttool.c: Likewise.
15183 * grub-core/commands/time.c: Likewise.
15184 * grub-core/commands/videoinfo.c: Likewise.
15185 * grub-core/disk/geli.c: Likewise.
15186 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
15187 * grub-core/disk/luks.c: Likewise.
15188 * grub-core/disk/lvm.c: Likewise.
15189 * grub-core/font/font_cmd.c: Likewise.
15190 * grub-core/fs/zfs/zfscrypt.c: Likewise.
15191 * grub-core/fs/zfs/zfsinfo.c: Likewise.
15192 * grub-core/gfxmenu/view.c: Likewise.
15193 * grub-core/kern/emu/hostdisk.c: Likewise.
15194 * grub-core/kern/emu/main.c: Likewise.
15195 * grub-core/kern/emu/misc.c: Likewise.
15196 * grub-core/kern/emu/mm.c: Likewise.
15197 * grub-core/kern/mips/arc/init.c: Likewise.
15198 * grub-core/kern/mips/loongson/init.c: Likewise.
15199 * grub-core/kern/partition.c: Likewise.
15200 * grub-core/lib/i386/halt.c: Likewise.
15201 * grub-core/lib/mips/arc/reboot.c: Likewise.
15202 * grub-core/lib/mips/loongson/reboot.c: Likewise.
15203 * grub-core/loader/i386/pc/chainloader.c: Likewise.
15204 * grub-core/loader/i386/xnu.c: Likewise.
15205 * grub-core/loader/multiboot.c: Likewise.
15206 * grub-core/net/bootp.c: Likewise.
15207 * grub-core/net/net.c: Likewise.
15208 * grub-core/normal/term.c: Likewise.
15209 * grub-core/partmap/bsdlabel.c: Likewise.
15210 * grub-core/parttool/msdospart.c: Likewise.
15211 * grub-core/term/gfxterm.c: Likewise.
15212 * grub-core/term/terminfo.c: Likewise.
15213 * grub-core/video/i386/pc/vbe.c: Likewise.
15214 * util/grub-menulst2cfg.c: Likewise.
15215 * util/grub-mkdevicemap.c: Likewise.
15216 * util/grub-mklayout.c: Likewise.
15217 * util/grub-mkrelpath.c: Likewise.
15218 * util/grub-script-check.c: Likewise.
15219 * util/ieee1275/grub-ofpathname.c: Likewise.
15220 * util/resolve.c: Likewise.
15221
15222 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15223
15224 Support %1$d syntax.
15225
15226 * tests/printf_unit_test.c: New file.
15227 * Makefile.util.def (printf_test): New test.
15228 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
15229
15230 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15231
15232 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
15233 fix.
15234
15235 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15236
15237 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
15238 dprintf.
15239 * grub-core/font/font.c (grub_font_load): Likewise.
15240
15241 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15242
15243 * util/grub-macho2img.c: Add comment concerning gettext.
15244 * grub-core/lib/legacy_parse.c: Likewise.
15245
15246 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15247
15248 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
15249 (grub_xvasprintf): Likewise.
15250
15251 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15252
15253 Add const keyword to grub_env_get and gettextize week days.
15254
15255 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
15256 (grub_read_hook_datetime): Return const char *.
15257 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
15258 updated.
15259 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
15260 Mark for gettext.
15261 (grub_get_weekday_name): Return const char *. Call gettext.
15262 * grub-core/script/argv.c (grub_script_argv_append): Receive const
15263 char * and len as the argument. All users updated.
15264 (grub_script_argv_split_append): Receive const char *.
15265 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
15266 * include/grub/env.h (grub_env_get): Likewise.
15267 (grub_env_read_hook_t): Return const char *.
15268 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
15269 (grub_script_argv_split_append): Likewise.
15270
15271 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15272
15273 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
15274
15275 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15276
15277 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
15278 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
15279
15280 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15281
15282 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
15283 Fix prototype.
15284
15285 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15286
15287 Fix mips compilation.
15288
15289 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
15290 normal decoder.
15291 (hashes): Use in embed decoder as well (for sizes).
15292 (dec_stream_header): Fix embed decompressor logic.
15293 (dec_stream_footer): Likewise.
15294
15295 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15296
15297 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
15298 an error and not a fatal on unrecognised relocation types.
15299
15300 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15301
15302 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
15303 Issue error rather than printf on unknown arguments.
15304
15305 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15306
15307 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
15308 Make buf a const.
15309
15310 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15311
15312 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
15313 Fix module name.
15314
15315 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15316
15317 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
15318 leftover debug printf.
15319
15320 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15321
15322 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
15323
15324 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15325
15326 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
15327 A stylistic fix.
15328
15329 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15330
15331 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
15332
15333 2011-11-10 Shea Levy <slevy@tieronedesign.com>
15334
15335 Allow all modules to perform serial IO
15336
15337 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
15338 * include/grub/serial.h (grub_serial_port_configure): New inline
15339 function.
15340 (grub_serial_port_fetch): Likewise.
15341 (grub_serial_port_put): Likewise.
15342 (grub_serial_port_fini): Likewise.
15343 (grub_serial_find): New proto.
15344
15345 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
15346
15347 Put symlink at the end of the node and fix a potential
15348 memory corruption.
15349
15350 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
15351 Make symlink into an array.
15352 (set_rockridge): Set have_symlink and alloc_dirents.
15353 (grub_iso9660_read_symlink): Use new layout.
15354 (grub_iso9660_iterate_dir): Fix memory corruption.
15355 Use new layout.
15356 (grub_iso9660_dir): Set have_symlink.
15357 (grub_iso9660_open): Likewise.
15358
15359 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
15360
15361 Remove local keyword.
15362
15363 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
15364 (version_test_gt): Likewise.
15365 (version_find_latest): Likewise.
15366 (gettext_printf): Likewise.
15367 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
15368
15369 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
15370
15371 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
15372
15373 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
15374
15375 Fix ZFS memory and resource leaks.
15376
15377 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
15378 All users updated.
15379 Free type on exit.
15380 (fill_vdev_info): New parameter inserted. All users updated.
15381 (check_pool_label): Likewise.
15382 (scan_disk): Likewise.
15383 (scan_devices): Close non-inserted disks.
15384 (fzap_iterate): Free l.
15385 (unmount_device): Free children descripto memory.
15386
15387 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
15388
15389 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
15390 argument (access out of bounds).
15391
15392 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
15393
15394 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
15395 >= 6 drives.
15396
15397 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
15398
15399 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
15400 Fix declaration.
15401
15402 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
15403
15404 Fix several memory leaks.
15405
15406 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
15407 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
15408 (grub_cpio_dir): Likewise.
15409 * grub-core/fs/fat.c (grub_fat_label): Likewise.
15410 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
15411 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
15412 (grub_romfs_label): Likewise.
15413 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
15414 (squash_unmount): New function.
15415 (grub_squash_dir): Fix memory leak.
15416 (grub_squash_open): Likewise.
15417 (grub_squash_read): Likewise.
15418 (grub_squash_mtime): Likewise.
15419 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
15420 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
15421 * util/grub-fstest.c (fstest): Likewise.
15422
15423 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
15424
15425 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
15426 avoid accessing beyond the array.
15427
15428 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
15429
15430 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
15431
15432 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
15433
15434 Several AFFS fixes.
15435
15436 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
15437 (GRUB_AFFS_FLAG_FFS): Removed.
15438 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
15439 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
15440 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
15441 (grub_fshelp_node): Make block 32-bit.
15442 Add block_cache and last_block_cache.
15443 (grub_affs_read_block): Fill and use block cache.
15444 (grub_affs_read_file): Removed.
15445 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
15446 boot block.
15447 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
15448 safety.
15449 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
15450 space.
15451 (grub_affs_close): Free block cache.
15452 (grub_affs_read): Use grub_fshelp_read_file directly.
15453
15454 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15455
15456 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
15457 with no error set.
15458
15459 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15460
15461 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
15462 used variable.
15463 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
15464 Likewise.
15465
15466 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15467
15468 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
15469
15470 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
15471 byteswap when needed.
15472
15473 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15474
15475 Fix FreeBSD compilation.
15476
15477 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
15478 to avoid circular dependency.
15479 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
15480 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
15481 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
15482
15483 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15484
15485 Fix ZFS crypto error types.
15486
15487 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
15488 (grub_gcm_decrypt): Likewise.
15489 (grub_zfs_load_key_real): Fix error code type. Handle possible error
15490 from PBKDF2.
15491
15492 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15493
15494 Illumos support.
15495
15496 * Makefile.util.def (10_illumos): New script.
15497 * configure.ac: Set COND_HOST_ILLUMOS.
15498 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
15499 Support Illumos calls.
15500 (find_partition_start) [__sun__]: Likewise.
15501 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
15502 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
15503 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
15504 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
15505 device.
15506 * util/grub-probe.c (probe) [__sun__]: Do character check.
15507 * util/grub.d/10_illumos.in: New file.
15508
15509 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15510
15511 Support escaped commas in hostdisk.
15512
15513 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
15514 (find_grub_drive): Use unescape_cmp.
15515 (make_device_name): Escape commas.
15516
15517 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15518
15519 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
15520
15521 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15522
15523 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
15524 variable.
15525
15526 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15527
15528 Support trampoline jumps on powerpc.
15529
15530 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
15531 __ia64__ path.
15532 (grub_dl_load_segments): Set mod->sz.
15533 (grub_dl_flush_cache): Flush whole space occupied by module, not just
15534 segments.
15535 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
15536 (jump): Likewise.
15537 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
15538 function.
15539 (trampoline): New struct.
15540 (trampoline_template): New const.
15541 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
15542 * include/grub/dl.h (grub_dl): Add sz element.
15543 [__powerpc__]: Follow __ia64__.
15544 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
15545 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
15546 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
15547 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
15548
15549 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15550
15551 ZFS crypto support.
15552
15553 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
15554 * grub-core/Makefile.core.def (zfscrypt): New module.
15555 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
15556 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
15557 it. All users updated.
15558 (grub_zfs_decrypt): New var.
15559 (grub_zfs_load_key): Likewise.
15560 (zio_checksum_functions): Add SHA256+MAC.
15561 (zio_checksum_verify): Handle incomplete comparison due to MAC.
15562 (zio_read): Handle encrypted blocks.
15563 (zap_verify): Remove incorrect check.
15564 (fzap_iterate): Handle non-standard fzap.
15565 (zap_iterate): Likewise.
15566 (zap_iterate_u64): New function.
15567 (dnode_get_fullpath): Load keys.
15568 * grub-core/fs/zfs/zfscrypt.c: New file.
15569 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
15570 (grub_crypto_ecb_encrypt): Make input const.
15571 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
15572 (grub_crypto_ecb_encrypt): Make input const.
15573 (GRUB_CIPHER_AES): New macro.
15574 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
15575 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
15576 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
15577 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
15578 prefix. All users updated.
15579 (grub_zfs_add_key): New proto.
15580 (grub_zfs_decrypt): Likewise.
15581 (grub_zfs_load_key): Likewise.
15582 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
15583 * util/grub-fstest.c (options): Add -K option.
15584 (argp_parser): Likewise.
15585
15586 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
15587
15588 Support zle compression on ZFS.
15589
15590 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
15591 (decomp_table): Add zle.
15592 * include/grub/zfs/zio.h (zio_compress): Add zle.
15593
15594 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
15595
15596 Support BtrFS embedding.
15597
15598 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
15599 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
15600 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
15601 * util/grub-setup.c (setup): Use fs embedding if available.
15602 Add additional sanity check.
15603
15604 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
15605
15606 * util/grub-install.in: Fix condition for config_opt.
15607
15608 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
15609
15610 Support third redundancy strip on raidz3.
15611
15612 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
15613 Return error on singularity. All users updated.
15614 (read_device): Don't stop on 3rd failure on raidz3.
15615
15616 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
15617
15618 Support case-insensitive ZFS subvolumes.
15619
15620 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
15621 All users updated.
15622 (zap_hash): Likewise.
15623 (name_cmp): New function.
15624 (zap_leaf_array_equal): New parameter case_insensitive.
15625 All users updated.
15626 (zap_leaf_lookup): Likewise.
15627 (fzap_lookup): Likewise.
15628 (zap_lookup): Likewise.
15629 (dnode_get_path): New parameter case_insensitive. Retrieve case
15630 sensitiviness of a volume. All users updated.
15631 (dnode_get_fullpath): New parameter case_insensitive.
15632 All users updated.
15633 (grub_zfs_dir): Set info.case_insensitiveness.
15634
15635 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
15636
15637 Support second redundancy strip on raidz(2,3).
15638
15639 * grub-core/fs/zfs/zfs.c (powx): New array.
15640 (powx_inv): Likewise.
15641 (poly): New const.
15642 (xor_out): New function.
15643 (gf_mul): Likewise.
15644 (recovery): Likewise.
15645 (read_device): Use second redundancy strip.
15646
15647 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
15648
15649 Use a power of generator representation of GF(256) multiplication group
15650 to save space time and complexity.
15651
15652 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
15653 (raid6_table2): Likewise.
15654 (powx): New array.
15655 (powx_inv): Likewise.
15656 (poly): New const.
15657 (grub_raid_block_mul): Replace with ...
15658 (grub_raid_block_mulx): ...this.
15659 (grub_raid6_init_table): Rewritten.
15660 (grub_raid6_recover): Use power of generator representation.
15661
15662 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
15663
15664 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
15665 for the right device.
15666
15667 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
15668
15669 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
15670 expected by grub-mkimage and it's more clear since there is no implicit
15671 padding.
15672
15673 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
15674
15675 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
15676 disk.
15677 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
15678
15679 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
15680
15681 * util/grub-mkrescue.in: Fix handling xorriso option.
15682
15683 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
15684
15685 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
15686 NULL.
15687
15688 2011-11-03 crocket <crockabiscuit@gmail.com>
15689
15690 * util/grub.d/10_linux.in: Add Slackware initrd naming.
15691
15692 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
15693
15694 XZ CRC64 and SHA256 support.
15695
15696 * Makefile.util.def (libgrubmods): Add crc64.c.
15697 * grub-core/Makefile.core.def (crc64): New module.
15698 * grub-core/lib/crc64.c: New file.
15699 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
15700 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
15701 Fix the type.
15702 (MAX_HASH_SIZE): New define.
15703 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
15704 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
15705 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
15706 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
15707 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
15708 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
15709 Handle non-crc32 hashes.
15710 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
15711 (dec_stream_header): Handle non-crc32 hashes.
15712 (dec_stream_footer): Likewise.
15713 (dec_block_header): Likewise.
15714 (dec_main): Likewise.
15715 (xz_dec_init): Likewise.
15716 (xz_dec_reset): Likewise.
15717 (xz_dec_end): Likewise.
15718 * util/import_gcry.py: Add CRC64 line.
15719
15720 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
15721
15722 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
15723 as well.
15724
15725 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
15726
15727 Make reiserfs label retrieval similar to other *_label functions.
15728
15729 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
15730 (REISERFS_MAX_LABEL_LENGTH): Removed.
15731 (REISERFS_LABEL_OFFSET): Likewise.
15732 (grub_reiserfs_label): Rewritten.
15733
15734 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
15735
15736 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
15737 field.
15738
15739 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
15740
15741 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
15742
15743 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
15744
15745 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
15746 drive failure on both raidz and raidz2.
15747
15748 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
15749
15750 Fix RAIDZ(2) for >= 5 devices.
15751
15752 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
15753 asize argument. All users updated.
15754
15755 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15756
15757 Fix RAIDZ(2).
15758
15759 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
15760 (fill_vdev_info_real): Set ashift.
15761 (read_device): Rewrite RAIDZ part based on reverse engineering.
15762
15763 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
15764
15765 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
15766 don't report potentially unavialiable fields in debug output.
15767 (find_path): Fix double-free and memory leak.
15768
15769 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
15770
15771 Read label on UFS1.
15772
15773 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
15774 (grub_ufs_fs): Always set .label.
15775
15776 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
15777
15778 Use shifts in UFS.
15779
15780 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
15781 (grub_ufs_data): New field log2_blksz.
15782 (grub_ufs_read_file): Use shifts.
15783 (grub_ufs_mount): Check block size and logarithm it.
15784
15785 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
15786
15787 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
15788 long symlinks.
15789
15790 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
15791
15792 Handle symlinks and long names on tar and cpio.
15793
15794 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
15795 (ATTR_FILE): Likewise.
15796 (ATTR_DIR): Likewise.
15797 (ATTR_LNK): Likewise.
15798 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
15799 (grub_cpio_find_file): Fill mode, handle linkname field as well as
15800 L and K entries.
15801 (grub_cpio_mount): Zero-fill data.
15802 (handle_symlink): New function.
15803 (grub_cpio_dir): Handle symlinks.
15804 (grub_cpio_open): Likewise.
15805 (grub_cpio_close) [MODE_USTAR]: Free linkname.
15806
15807 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
15808
15809 Fix iso9660 filename limitations and fix memory leaks.
15810
15811 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
15812 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
15813
15814 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
15815
15816 Fix JFS file name length limitations.
15817
15818 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
15819 (grub_jfs_diropen): Fix maximum filename length.
15820 (grub_jfs_getent): Fix filename length.
15821 (grub_jfs_lookup_symlink): Fix size checks.
15822
15823 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
15824
15825 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
15826 string.
15827
15828 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
15829
15830 Leverage BFS implementation to read AFS.
15831
15832 * Makefile.util.def (libgrubmods): Add afs.c.
15833 * grub-core/Makefile.core.def (afs): New module
15834 * grub-core/fs/afs.c: New file.
15835 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
15836
15837 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
15838
15839 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
15840
15841 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
15842
15843 * grub-core/fs/bfs.c: Run indent.
15844
15845 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
15846
15847 BFS implementation based on the specification.
15848
15849 * grub-core/fs/bfs.c: New file.
15850 * Makefile.util.def (libgrubmods): Add bfs.c.
15851 * grub-core/Makefile.core.def (bfs): New module.
15852
15853 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
15854
15855 * util/grub-fstest.c (cmd_cp): Clarify error message.
15856 (cmd_cmp): Likewise.
15857
15858 2011-10-30 Yves Blusseau <blusseau@zetam.org>
15859
15860 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
15861 and befs_be.
15862
15863 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
15864
15865 Remove afs and befs because of copyright problem.
15866
15867 * grub-core/fs/afs.c: Removed.
15868 * grub-core/fs/afs_be.c: Removed.
15869 * grub-core/fs/befs.c: Removed.
15870 * grub-core/fs/befs_be.c: Removed.
15871 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
15872 * grub-core/Makefile.core.def (afs): Removed.
15873 (afs_be): Likewise.
15874 (befs): Likewise.
15875 (befs_be): Likewise.
15876
15877 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
15878
15879 Prefer rockridge over Joliet.
15880
15881 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
15882 to ...
15883 (set_rockridge): ... here.
15884 (grub_iso9660_mount): Check rockridge on the primary label when
15885 discovering. Ignore Joliet if Rockridge is present.
15886
15887 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
15888
15889 Use shifts in nilfs2.
15890
15891 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
15892 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
15893 (grub_nilfs2_palloc_entries_per_group): Replace with ...
15894 (grub_nilfs2_log_palloc_entries_per_group): ... this.
15895 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
15896 (grub_nilfs2_entries_per_block): Replaced with ...
15897 (grub_nilfs2_log_entries_per_block_log): ... this.
15898 (grub_nilfs2_blocks_per_group): Replaced with ...
15899 (grub_nilfs2_blocks_per_group_log): ... this.
15900 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
15901 (grub_nilfs2_blocks_per_desc_block_log): ... this.
15902 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
15903 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
15904 (grub_nilfs2_palloc_entry_offset): Replaced ...
15905 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
15906 (grub_nilfs2_dat_translate): Use shifts.
15907 (grub_nilfs2_read_inode): Likewise.
15908 (GRUB_MOD_INIT): Ensure that logs are correct.
15909
15910 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
15911
15912 Use shifts in minix filesystem.
15913
15914 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
15915 (GRUB_MINIX_ZONE2SECT): Likewise.
15916 (grub_minix_data): Replace block_size with log_block_size.
15917 (grub_minix_read_file): Use shifts.
15918 (grub_minix_mount): Check block size and take a logarithm.
15919
15920 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
15921
15922 Use shifts in squash4.
15923
15924 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
15925 (squash_mount): Check block size and take logarithm.
15926 (direct_read): Use shifts.
15927
15928 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
15929
15930 Correct befs block counting logic.
15931
15932 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
15933 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
15934 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
15935 (grub_afs_read_inode): Use block_shift.
15936 (RANGE_SHIFT): New definition.
15937 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
15938 unexpected conditions, use shifts and appropriate types.
15939 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
15940
15941 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
15942
15943 * grub-core/disk/raid.c (scan_devices): Check partition.
15944 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
15945
15946 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
15947
15948 Support BFS (befs) UUID.
15949
15950 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
15951 (grub_afs_small_data_element_header): New struct.
15952 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
15953 (grub_afs_read_attribute) [MODE_BFS]: New function.
15954 (grub_afs_iterate_dir): Allocate for complete inode.
15955 (grub_afs_mount): Likewise.
15956 (grub_afs_uuid) [MODE_BFS]: New function.
15957 (grub_afs_fs) [MODE_BFS]: Add .uuid.
15958
15959 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
15960
15961 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
15962 (zfs_unmount): Fix memory leak.
15963
15964 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15965
15966 Support NTFS reparse points.
15967
15968 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
15969 (symlink_descriptor): New struct.
15970 (grub_ntfs_read_symlink): New function.
15971 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
15972 (grub_ntfs_open): Likewise.
15973
15974 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15975
15976 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
15977
15978 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15979
15980 fstest xnu_uuid subcommand.
15981
15982 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
15983 grub-core/commands/xnu_uuid.c.
15984 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
15985 (fstest): Handle xnu_uuid.
15986 (options): Document xnu_uuid.
15987 (argp_parser): Parse xnu_uuid.
15988
15989 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15990
15991 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
15992 -l argument. Add newline at the end if printing.
15993 (GRUB_MOD_INIT): Document -l.
15994
15995 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15996
15997 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
15998
15999 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16000
16001 ZFS multi-device and version 33 support.
16002
16003 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
16004 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
16005 (grub_zfs_data): Add multidev-ice-related fields.
16006 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
16007 (dva_get_offset): Make dva const.
16008 (zfs_fetch_nvlist): New function.
16009 (fill_vdev_info_real): Likewise.
16010 (fill_vdev_info): Likewise.
16011 (check_pool_label): Likewise.
16012 (scan_disk): Likewise.
16013 (scan_devices): Likewise.
16014 (read_device): Likewise.
16015 (read_dva): Likewise.
16016 (zio_read_gang): Use read_dva.
16017 (zio_read_data): Likewise.
16018 (zap_leaf_lookup): Add missing endian conversion.
16019 (zap_verify): Add missing endian conversion. All users updated.
16020 (fzap_lookup): Likewise.
16021 (fzap_iterate): Likewise.
16022 (dnode_get_path): Handle SA bonus.
16023 (nvlist_find_value): Make input const. All users updated.
16024 (unmount_device): New function.
16025 (zfs_unmount): Use unmount_device.
16026 (zfs_mount): Use scan_disk.
16027 (zfs_mtime): New function.
16028 (grub_zfs_open): Handle system attributes.
16029 (fill_fs_info): Likewise.
16030 (grub_zfs_dir): Likewise.
16031 (grub_zfs_fs): Add mtime.
16032 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
16033 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
16034 (SA_MTIME_OFFSET): Likewise.
16035 (SA_SYMLINK_OFFSET): Likewise.
16036 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
16037 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
16038 (fstest): Support zfsinfo.
16039 (argp_parser): Likewise.
16040
16041 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16042
16043 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
16044 error.
16045
16046 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16047
16048 ZFS fixes.
16049
16050 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
16051 sharing the same block. Iterate over correct number of indices.
16052 (dnode_get_path): Handle symlinks correctly.
16053
16054 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16055
16056 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
16057
16058 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16059
16060 Read label on HFS+.
16061
16062 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
16063 (grub_hfsplus_btree_search): Fix types.
16064 (grub_hfsplus_label): Implement.
16065
16066 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16067
16068 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
16069
16070 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16071
16072 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
16073
16074 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16075
16076 Fix symlink handling on iso9660.
16077
16078 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
16079 All users updated.
16080 (grub_iso9660_susp_iterate): Accept zero-size iterate.
16081 (grub_iso9660_read_symlink): Moved most of code ...
16082 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
16083
16084 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16085
16086 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
16087 Use union to avoid breaking strict-aliasing rules.
16088
16089 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16090
16091 Support multi-extent iso files.
16092
16093 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
16094 Add node.
16095 (grub_fshelp_node): Revamp. All users updated.
16096 (FLAG_*): New enum.
16097 (read_node): New function.
16098 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
16099 All users updated.
16100 (grub_iso9660_mount): Don't attempt to read sua when there is none.
16101 (get_node_size): New function.
16102 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
16103 entries.
16104 Fix memory leak on . and ..
16105 (grub_iso9660_read): Use read_node.
16106 (grub_iso9660_close): Free node.
16107
16108 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16109
16110 Fix tar 4G limit and handle paths containing dot.
16111
16112 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
16113 (canonicalize): New function.
16114 (grub_cpio_find_file): Use canonicalize. Store offs in
16115 grub_disk_addr_t.
16116 (grub_cpio_dir): Use grub_disk_addr_t.
16117 (grub_cpio_open): Likewise.
16118
16119 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16120
16121 Fix handling of uncompressed blocks on squashfs and break 4G limit.
16122
16123 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
16124 unused flags.
16125 (grub_squash_inode): Add long_file and block_size.
16126 (grub_squash_cache_inode): New struct.
16127 (grub_squash_dirent): Make types into enum.
16128 (SQUASH_TYPE_LONG_REGULAR): New type.
16129 (grub_squash_frag_desc): Add field size.
16130 (SQUASH_BLOCK_FLAGS): New enum.
16131 (grub_squash_data): Use grub_squash_cache_inode.
16132 (grub_fshelp_node): Make ino_chunk 64-bit.
16133 (read_chunk): Minor argument change. All users updated.
16134 (squash_mount): Use correct le_to_cpu.
16135 (grub_squash_open): Handle LONG_REGULAR.
16136 (direct_read): New function.
16137 (grub_squash_read_data): Handle blocks correctly.
16138
16139 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16140
16141 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
16142
16143 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16144
16145 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
16146
16147 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
16148
16149 Fix 2G limit on ZFS.
16150
16151 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
16152 types.
16153 (uberblock_verify): Likewise.
16154 (dmu_read): Likewise.
16155 (grub_zfs_read): Likewise. Remove invalid cast.
16156
16157 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
16158
16159 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
16160 (grub_jfs_blkno): Fix incorrect shift.
16161 (grub_jfs_read_file): Use more appropriate types.
16162
16163 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
16164
16165 Support triple indirect on minix2 and minix3.
16166
16167 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
16168 Declare triple_indir_zone.
16169 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
16170 indirect.
16171
16172 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
16173
16174 Minix FS fixes.
16175
16176 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
16177 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
16178 Rename ctime to mtime. All users updated.
16179 (grub_minix_get_file_block): Fix types and double indirect computations.
16180
16181 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16182
16183 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
16184 if no label is found.
16185 (grub_fat_iterate_dir): Fix file size type.
16186 (grub_fat_iterate_dir): Likewise.
16187
16188 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16189
16190 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
16191 save some space.
16192 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
16193 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
16194
16195 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16196
16197 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
16198
16199 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16200
16201 * util/import_gcry.py: Accept space between # and include.
16202
16203 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16204
16205 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
16206
16207 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16208
16209 Fine grainely disable warnings on lexer. Remove Wno-error on it.
16210
16211 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
16212 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
16213 yylex_strncpy.
16214 * grub-core/script/yylex.l: Add fine-grained #pragma.
16215
16216 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16217
16218 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
16219 New inline function.
16220 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
16221 Likewise.
16222 (memset) [GRUB_UTIL]: Likewise.
16223 (memcmp) [GRUB_UTIL]: Likewise.
16224
16225 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16226
16227 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
16228 inline function rather than a define.
16229
16230 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16231
16232 * util/grub-setup.c: Add missing include.
16233
16234 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16235
16236 * util/ieee1275/grub-ofpathname.c: Add missing include.
16237
16238 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16239
16240 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
16241 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
16242 Likewise.
16243
16244 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16245
16246 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
16247 grub_memcmp usage.
16248
16249 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16250
16251 * util/grub-install.in: Add datarootdir as per automake manual
16252 suggestion.
16253 * util/grub-mknetdir.in: Likewise.
16254
16255 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16256
16257 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
16258 suggestion.
16259 * util/grub.d/10_kfreebsd.in: Likewise.
16260 * util/grub.d/10_linux.in: Likewise.
16261 * util/grub.d/10_netbsd.in: Likewise.
16262 * util/grub.d/10_windows.in: Likewise.
16263 * util/grub.d/20_linux_xen.in: Likewise.
16264
16265 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
16266
16267 Remove redundant grub_kernel_image_size.
16268
16269 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
16270 _edata and _start.
16271 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
16272 the small code. It moves it only by few bytes but simplifies the code.
16273 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
16274 _start.
16275 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
16276 (grub_kernel_image_size): Removed.
16277 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
16278 (grub_kernel_image_size): Removed.
16279 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
16280 compiled with Apple toolchain.
16281 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
16282 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
16283 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
16284 (grub_total_module_size): Likewise.
16285 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
16286 Removed.
16287 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
16288 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
16289 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
16290 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
16291 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
16292 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
16293 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
16294 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
16295 Removed.
16296 (grub_total_module_size): Removed.
16297 * util/grub-mkimage.c (image_target_desc): Remove image_size.
16298 (image_targets): Likewise.
16299 Set .compressed_size to no field on sparc.
16300 (generate_image): Remove kernel_image_size handling.
16301
16302 2011-10-19 Szymon Janc <szymon@janc.net.pl>
16303
16304 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
16305 NULL pointer dereference.
16306
16307 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
16308
16309 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
16310 done with a dedicated section.
16311
16312 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
16313 Ensure the correct position of boot_path.
16314 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
16315 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
16316 other fields.
16317 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
16318 * include/grub/boot.h: Removed. All references removed.
16319 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
16320 Removed.
16321 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
16322
16323 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
16324
16325 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
16326 name.
16327
16328 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
16329
16330 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
16331
16332 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
16333
16334 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
16335 Don't add the bogus brackets.
16336
16337 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
16338
16339 ExFAT support.
16340
16341 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
16342 * grub-core/Makefile.core.def (exfat): New module.
16343 * grub-core/fs/exfat.c: New file.
16344 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
16345 (GRUB_FAT_ATTR_*): Make into an enum.
16346 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
16347 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
16348 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
16349 (GRUB_FAT_MAXFILE): Removed.
16350 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
16351 (grub_current_fat_bpb_t): New type.
16352 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
16353 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
16354 (grub_fat_dir_node_t): New type.
16355 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
16356 (fat_log2) [MODE_EXFAT]: Removed.
16357 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
16358 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
16359 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
16360 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
16361 (grub_fat_label) [MODE_EXFAT]: New function.
16362 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
16363 reserved_first_sector to 0.
16364
16365 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
16366
16367 Move grub_reboot out of the kernel.
16368
16369 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
16370 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
16371 * grub-core/lib/efi/reboot.c: ... here.
16372 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
16373 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
16374 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
16375 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
16376 * grub-core/lib/i386/reboot_trampoline.S: ... here.
16377 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
16378 * grub-core/lib/ieee1275/reboot.c: ... here.
16379 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
16380 * grub-core/lib/mips/arc/reboot.c: ... here.
16381 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
16382 * grub-core/lib/mips/loongson/reboot.c: ...here.
16383 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
16384 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
16385 * include/grub/emu/misc.h (grub_reboot): New function declaration.
16386 * include/grub/i386/reboot.h: New file.
16387 * include/grub/mips/loongson/ec.h: Fix includes.
16388 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
16389 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
16390 * grub-core/lib/i386/reboot.c: New file.
16391
16392 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
16393
16394 Make grub_prefix into module to fix the arbitrary limit and save
16395 some space.
16396
16397 * grub-core/kern/emu/main.c (grub_prefix): Removed.
16398 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
16399 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
16400 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
16401 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
16402 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
16403 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
16404 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
16405 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
16406 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
16407 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
16408 * include/grub/ia64/efi/kernel.h: Removed.
16409 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
16410 (grub_prefix): Removed.
16411 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
16412 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
16413 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
16414 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
16415 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
16416 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
16417 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
16418 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
16419 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
16420 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
16421 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
16422 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
16423 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
16424 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
16425 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
16426 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
16427 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
16428 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
16429 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
16430 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
16431 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
16432 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
16433 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
16434 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
16435 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
16436 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
16437 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
16438 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
16439 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
16440 from module.
16441 * util/grub-mkimage.c (image_target_desc): Removed prefix and
16442 prefix_end.
16443 (image_targets): Likewise.
16444 (generate_image): Put prefix as a module.
16445
16446 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16447
16448 Replace grub_module_iterate with FOR_MODULES.
16449
16450 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
16451 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
16452 (grub_efi_modules_addr): ...this.
16453 * grub-core/kern/efi/init.c (grub_modbase): New variable.
16454 (grub_efi_init): Set grub_modbase.
16455 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
16456 (grub_modbase): New variable.
16457 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
16458 (grub_modbase): New variable.
16459 (grub_machine_init): Set grub_modbase.
16460 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
16461 (grub_modbase): New variable.
16462 (grub_machine_init): Set grub_modbase.
16463 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
16464 (grub_modbase): New variable.
16465 (grub_machine_init): Set grub_modbase.
16466 * grub-core/kern/main.c (grub_module_iterate): Remove.
16467 (grub_modules_get_end): Use grub_modbase.
16468 (grub_load_modules): Use FOR_MODULES.
16469 (grub_load_config): Likewise.
16470 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
16471 (grub_modbase): New variable.
16472 (grub_machine_init): Set grub_modbase.
16473 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
16474 (grub_modbase): New variable.
16475 (grub_machine_init): Set grub_modbase.
16476 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
16477 Removed.
16478 (grub_modbase): New variable.
16479 (grub_machine_init): Set grub_modbase.
16480 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
16481 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
16482 (grub_module_iterate): Likewise.
16483 (grub_modbase): New variable declaration.
16484 (FOR_MODULES): New macro.
16485
16486 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16487
16488 * configure.ac: Check for __ctzdi2 and __ctzsi2.
16489 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
16490
16491 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16492
16493 Fix few obvious type discrepancies.
16494
16495 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
16496 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
16497 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
16498 variable.
16499 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
16500 and connected types.
16501 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
16502 offset.
16503 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
16504 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
16505 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
16506 and connected types.
16507
16508 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16509
16510 Fix python 3.x incompatibilities.
16511
16512 * gentpl.py: Put brackets around print strings.
16513 * util/import_gcry.py: Open explicitly as utf-8.
16514 Use in instead of has_key.
16515
16516 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16517
16518 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
16519 (GRUB_XFS_INO_AGBITS): Make into inline function.
16520 (GRUB_XFS_INO_INOINAG): Likewise.
16521 (GRUB_XFS_INO_AG): Likewise.
16522 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
16523 (GRUB_XFS_EXTENT_OFFSET): Likewise.
16524 (GRUB_XFS_EXTENT_BLOCK): Likewise.
16525 (GRUB_XFS_EXTENT_SIZE): Likewise.
16526 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
16527 (GRUB_XFS_NEXT_DIRENT): Likewise.
16528 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
16529 (grub_xfs_read_file): Fix offset type.
16530
16531 2011-10-15 Robert Millan <rmh@gnu.org>
16532
16533 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
16534
16535 2011-10-15 Robert Millan <rmh@gnu.org>
16536
16537 Fix build problem on FreeBSD and GNU/kFreeBSD.
16538
16539 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
16540
16541 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
16542
16543 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
16544
16545 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
16546 types.
16547 (grub_hfsplus_btree_recoffset): Likewise.
16548 (grub_hfsplus_btree_recptr): Likewise.
16549 (grub_hfsplus_find_block): Likewise.
16550 (grub_hfsplus_btree_search): Likewise.
16551 (grub_hfsplus_read_block): Likewise.
16552 (grub_hfsplus_read_file): Likewise.
16553 (grub_hfsplus_mount): Likewise.
16554 (grub_hfsplus_btree_iterate_node): Likewise.
16555 (grub_hfsplus_btree_search): Likewise.
16556 (grub_hfsplus_iterate_dir): Likewise.
16557 (grub_hfsplus_read): A small code simplification.
16558
16559 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
16560
16561 * grub-core/kern/emu/hostdisk.c
16562 (convert_system_partition_to_system_disk): Don't assume that children
16563 of mapper nodes are mapper nodes.
16564
16565 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
16566
16567 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
16568 * include/grub/misc.h (grub_isxdigit): New function.
16569 * grub-core/video/colors.c (my_isxdigit): Removed. All users
16570 switched to grub_isxdigit.
16571 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
16572 number starting with a letter.
16573
16574 2011-10-09 Robert Millan <rmh@gnu.org>
16575
16576 LVM support for FreeBSD and GNU/kFreeBSD.
16577
16578 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
16579 GNU/kFreeBSD.
16580 (LVM_DEV_MAPPER_STRING): Move from here ...
16581 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
16582 * util/getroot.c: Include `<grub/util/lvm.h>'.
16583 (grub_util_get_dev_abstraction): Enable
16584 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
16585 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
16586 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
16587 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
16588 support it.
16589 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
16590 GNU/kFreeBSD.
16591 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
16592 when LVM abstraction is required for ${GRUB_DEVICE}.
16593
16594 2011-10-06 Szymon Janc <szymon@janc.net.pl>
16595
16596 Add support for LZO compression in GRUB:
16597 - import of minilzo library,
16598 - LZO decompression for btrfs,
16599 - lzop files decompression.
16600
16601 * grub-core/io/lzopio.c: New file.
16602 * grub-core/lib/adler32.c: Likewise.
16603 * grub-core/lib/minilzo/lzoconf.h: Likewise.
16604 * grub-core/lib/minilzo/lzodefs.h: Likewise.
16605 * grub-core/lib/minilzo/minilzo.c: Likewise.
16606 * grub-core/lib/minilzo/minilzo.h: Likewise.
16607 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
16608 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
16609 grub-core/lib/minilzo/minilzo.c to common.
16610 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
16611 cflags in cppflags.
16612 * grub-core/Makefile.core.def (btrfs): Likewise.
16613 * grub-core/Makefile.core.def (lzopio): New module.
16614 (adler32): Likewise.
16615 * grub-core/fs/btrfs.c: Include minilzo.h.
16616 (GRUB_BTRFS_COMPRESSION_LZO): New define.
16617 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
16618 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
16619 (grub_btrfs_lzo_decompress): New function.
16620 (grub_btrfs_extent_read): Add support for LZO compression type.
16621 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
16622 (GRUB_USHRT_MAX): Likewise.
16623 (GRUB_UINT_MAX): Likewise.
16624 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
16625 (UINT_MAX): Likewise.
16626 (CHAR_BIT): Likewise.
16627 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
16628 grub-core/lib/posix_wrap/limits.h
16629 (UCHAR_MAX): Likewise.
16630 * include/grub/file.h (grub_file_filter_id): New compression filter
16631 GRUB_FILE_FILTER_LZOPIO.
16632 * include/grub/file.h (grub_file_filter_id): Set
16633 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
16634 * include/grub/types.h (grub_get_unaligned16): New function.
16635 (grub_get_unaligned32): Likewise.
16636 (grub_get_unaligned64): Likewise.
16637 * util/import_gcry.py (cryptolist): Add adler32.
16638
16639 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
16640
16641 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
16642 in perspective decreases the complexity of build system and fixes
16643 compilation right now.
16644
16645 2011-10-01 Ales Nesrsta <starous@volny.cz>
16646
16647 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
16648 (fixed problem related to using UHCI with coreboot).
16649
16650 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
16651
16652 * gentpl.py: Use Autogen macros so that the output template file
16653 (Makefile.tpl) size is reduced.
16654
16655 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
16656
16657 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
16658 extra_dist.
16659
16660 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
16661
16662 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
16663 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
16664
16665 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
16666
16667 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
16668 _fullpath.
16669
16670 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
16671
16672 Remove extra declaration of sleep for mingw32.
16673
16674 * util/misc.c (sleep) [__MINGW32__]: Removed.
16675 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
16676
16677 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
16678
16679 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
16680 type and packname.
16681 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
16682 Resurrected.
16683 (NETBSD_BTINFO_BOOTWEDGE): New definition.
16684 (grub_netbsd_btinfo_bootwedge): New struct.
16685 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
16686 New function.
16687 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
16688
16689 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
16690
16691 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
16692 loader.
16693
16694 2011-09-28 Andreas Born <futur.andy@googlemail.com>
16695
16696 Fix incorrect identifiers in bash-completion.
16697
16698 * util/bash-completion.d/grub-completion.bash.in
16699 (_grub_mkpasswd-pbkdf2): Rename to ...
16700 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
16701 (_grub_script-check): Rename to ...
16702 (_grub_script_check): ... this. All users updated.
16703
16704 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
16705
16706 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
16707 Return 0 if disk isn't biosdisk.
16708
16709 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
16710
16711 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
16712 on NetBSD.
16713 * Makefile.util.def (grub-fstest): Likewise.
16714
16715 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
16716
16717 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
16718 Get sector size from disk label.
16719
16720 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
16721
16722 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
16723 */README* as well as README*.
16724 Reported by: Axel Beckert.
16725
16726 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
16727
16728 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
16729 case of less than 256 MiB of RAM.
16730
16731 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
16732
16733 * grub-core/commands/wildcard.c (make_regex): Handle @.
16734
16735 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
16736
16737 * util/grub-install.in: Move cryptodisk logic to appropriate place.
16738
16739 2011-08-21 Szymon Janc <szymon@janc.net.pl>
16740
16741 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
16742 AC_LANG_CONFTEST macros.
16743
16744 2011-08-20 Szymon Janc <szymon@janc.net.pl>
16745
16746 Add grub-fstest option to uncompress data for commands.
16747
16748 * util/grub-fstest.c (uncompress): New var.
16749 (options): New option -u.
16750
16751 2011-08-20 Szymon Janc <szymon@janc.net.pl>
16752
16753 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
16754 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
16755
16756 2011-08-20 Szymon Janc <szymon@janc.net.pl>
16757
16758 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
16759 file type was not recognized correctly (not gzip or corrupted).
16760
16761 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
16762
16763 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
16764 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
16765
16766 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
16767
16768 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
16769 loongson.
16770 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
16771 video_radeon_fuloong2e.
16772 * grub-core/video/radeon_fuloong2e.c: New file.
16773 * include/grub/video.h (grub_video_id_t): Add new ID
16774 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
16775
16776 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
16777
16778 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
16779 define.
16780 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
16781 that PRID matches the detected subplatform and reset the subplatform
16782 if it doesn't.
16783
16784 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
16785
16786 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
16787
16788 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
16789
16790 Fix PCI iterating on functions >= 4.
16791
16792 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
16793 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
16794 Removed.
16795 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
16796 (grub_pci_read): Fix bitmask.
16797 (grub_pci_read_word): Likewise.
16798 (grub_pci_read_byte): Likewise.
16799 (grub_pci_write): Likewise.
16800 (grub_pci_write_word): Likewise.
16801 (grub_pci_write_byte): Likewise.
16802
16803 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
16804
16805 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
16806 can still be specified in TARGET_CFLAGS)
16807
16808 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
16809
16810 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
16811
16812 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
16813 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
16814 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
16815 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
16816 (FULOONG): Rename to ...
16817 (FULOONG2F): ... this. All users updated.
16818 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
16819 (machtype_fuloong2f_str): ... this.
16820 (machtype_fuloong2e_str): New string.
16821 Check for machtype_fuloong2e_str.
16822 * grub-core/loader/mips/linux.c (loongson_machtypes)
16823 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
16824 * grub-core/term/serial.c (loongson_defserial)
16825 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
16826 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
16827 loongson_defserial.
16828 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
16829 Rename to ...
16830 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
16831 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
16832 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
16833 to IMAGE_FULOONG2F_FLASH. All users updated.
16834 (image_targets): Rename images.
16835 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
16836
16837 2011-08-19 Szymon Janc <szymon@janc.net.pl>
16838
16839 Make enable of disk cache statistics code configurable.
16840
16841 * configure.ac: --enable-cache-stats added.
16842 * config.h.in (DISK_CACHE_STATS): New define.
16843 * grub-core/Makefile.core.def (cacheinfo): New command.
16844 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
16845 * grub-core/commands/cacheinfo.c: New file.
16846 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
16847 moved to cacheinfo.c.
16848 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
16849 debug code.
16850 * include/grub/disk.h: Likewise.
16851
16852 2011-08-19 Szymon Janc <szymon@janc.net.pl>
16853
16854 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
16855 * grub-core/Makefile.am: Likewise.
16856
16857 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
16858
16859 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
16860 non-zero pull.
16861
16862 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
16863
16864 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
16865 All users updated.
16866 (grub_jfs_lookup_symlink): Use correct starting inode.
16867
16868 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
16869
16870 * util/grub-setup.c (main): Add missing gcry initialisation.
16871
16872 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
16873
16874 Don't accept text modes on EFI when booting Linux.
16875
16876 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
16877 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
16878
16879 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
16880 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
16881
16882 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
16883 use of "/path/.." as in grub-install for EFI as well as handling
16884 symlinks correctly.
16885 Fixes Debian bug #637768.
16886
16887 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
16888
16889 * util/grub-probe.c: Remove duplicate #include.
16890
16891 2011-08-10 Robert Millan <rmh@gnu.org>
16892
16893 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
16894
16895 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
16896 function.
16897 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
16898 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
16899
16900 2011-08-03 Robert Millan <rmh@gnu.org>
16901
16902 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
16903 la_array as packed.
16904 Reported by: Zachary Bedell
16905
16906 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
16907
16908 * configure.ac: The Loongson port requires grub-mkfont due to its
16909 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
16910 be built.
16911
16912 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
16913
16914 * util/grub-install.in: Don't source grub-mkconfig_lib until after
16915 processing arguments (otherwise help2man fails when GRUB has not yet
16916 been installed).
16917
16918 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
16919
16920 New script grub-mkstandalone.
16921
16922 * Makefile.util.def (grub-mkstandalone): New script.
16923 * docs/man/grub-mkstandalone.h2m: New file.
16924 * util/grub-mkstandalone.in: Likewise.
16925
16926 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
16927
16928 Support ATA disks with 4K sectors.
16929
16930 * include/grub/ata.h (grub_ata): New member log_sector_size.
16931 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
16932 (grub_ata_identify): Read sector size.
16933 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
16934
16935 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
16936
16937 * util/grub-install.in: Don't use uhci outside of x86.
16938
16939 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
16940
16941 * util/grub-mkrescue.in: Add missing quotes.
16942
16943 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
16944
16945 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
16946 dereference.
16947
16948 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
16949
16950 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
16951
16952 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
16953
16954 * include/grub/video.h: add missing EXPORT_FUND on
16955 grub_video_edid_checksum and grub_video_edid_preferred_mode.
16956
16957 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
16958
16959 * include/grub/mips/kernel.h: Fix define conflict.
16960
16961 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
16962
16963 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
16964 all four ways.
16965
16966 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
16967
16968 Preferred resolution detection for VBE.
16969
16970 * grub-core/video/video.c (grub_video_edid_checksum): New function.
16971 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
16972 the Flat Panel extension, in line with the X.org VESA driver.
16973 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
16974 New function.
16975 (grub_vbe_bios_get_ddc_capabilities): Likewise.
16976 (grub_vbe_bios_read_edid): Likewise.
16977 (grub_vbe_get_preferred_mode): Likewise.
16978 (grub_video_vbe_setup): When the mode is "auto", try to get the
16979 preferred mode from VBE, and use the largest mode that is no larger
16980 than the preferred mode (some BIOSes expose a preferred mode that is
16981 not in their mode list!). If this fails, fall back to 640x480 as a
16982 safe conservative choice.
16983 (grub_video_vbe_get_edid): New function.
16984 (grub_video_vbe_adapter): Add get_edid.
16985 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
16986 (struct grub_video_adapter): Add get_edid.
16987 (grub_video_edid_checksum): Add prototype.
16988 (grub_video_edid_preferred_mode): Likewise.
16989 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
16990 structure.
16991
16992 * grub-core/commands/videoinfo.c (print_edid): New function.
16993 (grub_cmd_videoinfo): Print EDID if available.
16994
16995 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
16996 is more appropriate on a wider range of platforms than 640x480.
16997 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
16998 documentation.
16999
17000 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
17001
17002 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
17003
17004 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
17005
17006 * po/POTFILES.in: Regenerate.
17007
17008 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
17009
17010 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
17011 incorrect memory usage.
17012
17013 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
17014
17015 * util/grub-install.in: Source grub-mkconfig_lib.
17016
17017 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
17018
17019 Remove getroot.c from core on emu platform.
17020
17021 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
17022 kern/emu/raid.c.
17023 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
17024 useless.
17025 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
17026 * util/getroot.c (get_win32_path): ... here.
17027 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
17028 * util/getroot.c (fini_libzfs): ... here.
17029 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
17030 * util/getroot.c (grub_get_libzfs_handle): ... here.
17031 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
17032 Moved from here...
17033 * util/getroot.c (grub_find_zpool_from_dir): ... here.
17034 * grub-core/kern/emu/misc.c
17035 (grub_make_system_path_relative_to_its_root): Moved from here...
17036 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
17037 * grub-core/kern/emu/getroot.c: Moved from here ...
17038 * util/getroot.c: ... here. All users updated.
17039 * grub-core/kern/emu/raid.c: Moved from here ...
17040 * util/raid.c: ... here. All users updated.
17041
17042 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
17043
17044 * po/POTFILES.in: Regenerate.
17045
17046 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
17047
17048 Fix compilation on GNU/Linux.
17049
17050 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
17051 Disable geli.
17052 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
17053 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
17054 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
17055
17056 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
17057 2011-07-07 Michael Gorven <michael@gorven.za.net>
17058 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
17059
17060 LUKS and GELI support.
17061
17062 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
17063 grub-core/disk/luks.c, grub-core/disk/geli.c,
17064 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
17065 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
17066 grub-core/lib/arg.c.
17067 (libgrubmods.a): Remove gcrypts cflags and cppflags.
17068 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
17069 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
17070 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
17071 (grub-bin2h): Add libgcry.a.
17072 (grub-mkimage): Likewise.
17073 (grub-mkrelpath): Likewise.
17074 (grub-script-check): Likewise.
17075 (grub-editenv): Likewise.
17076 (grub-mkpasswd-pbkdf2): Likewise.
17077 (grub-pe2elf): Likewise.
17078 (grub-fstest): Likewise.
17079 (grub-mkfont): Likewise.
17080 (grub-mkdevicemap): Likewise.
17081 (grub-probe): Likewise.
17082 (grub-ofpath): Likewise.
17083 (grub-mklayout): Likewise.
17084 (example_unit_test): Likewise.
17085 (grub-menulst2cfg): Likewise.
17086 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
17087 * grub-core/Makefile.core.def (cryptodisk): New module.
17088 (luks): Likewise.
17089 (geli): Likewise.
17090 * grub-core/disk/AFSplitter.c: New file.
17091 * grub-core/disk/cryptodisk.c: Likewise.
17092 * grub-core/disk/geli.c: Likewise.
17093 * grub-core/disk/luks.c: Likewise.
17094 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
17095 grub_util_is_lvm.
17096 (grub_util_get_dm_abstraction): New function.
17097 (grub_util_follow_gpart_up): Likewise.
17098 (grub_util_get_geom_abstraction): Likewise.
17099 (grub_util_get_dev_abstraction): Use new functions.
17100 (grub_util_pull_device): Pull GELI and LUKS.
17101 (grub_util_get_grub_dev): Handle LUKS and GELI.
17102 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
17103 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
17104 (follow_geom_up): Removed.
17105 (grub_util_fd_seek): New function.
17106 (open_device): Use grub_util_fd_seek.
17107 (nread): Rename to ..
17108 (grub_util_fd_read): ... this. All users updated.
17109 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
17110 (grub_crypto_cbc_decrypt): Likewise.
17111 (grub_crypto_hmac_write): Likewise.
17112 (grub_crypto_hmac_buffer): Likewise.
17113 (grub_password_get): Extend to util.
17114 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
17115 New member modname.
17116 (gcry_md_spec) [GRUB_UTIL]: Likewise.
17117 * include/grub/cryptodisk.h: New file.
17118 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
17119 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
17120 LUKS and GELI.
17121 (grub_util_follow_gpart_up): New proto.
17122 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
17123 (grub_util_fd_read): Likewise.
17124 (grub_cryptodisk_cheat_mount): Likewise.
17125 (grub_util_cryptodisk_print_uuid): Likewise.
17126 (grub_util_get_fd_sectors): Likewise.
17127 * util/grub-fstest.c (mount_crypt): New var.
17128 (fstest): Mount crypto if requested.
17129 (options): New option -C.
17130 (argp_parser): Parse -C.
17131 (main): Init and fini gcry.
17132 * util/grub-install.in: Support cryptodisk install.
17133 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
17134 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
17135 cryptodisk.
17136 (prepare_grub_to_access_device): Likewise.
17137 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
17138 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
17139 (probe_cryptodisk_uuid): New function.
17140 (probe_abstraction): Likewise.
17141 (probe): Use new functions.
17142 * util/import_gcry.py: Create Makefile.utilgcry.def.
17143 Add modname member.
17144
17145 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
17146
17147 Lazy device scanning.
17148
17149 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
17150 (grub-setup): Remove util/raid.c.
17151 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
17152 * grub-core/disk/lvm.c (scan_depth): New variable.
17153 (grub_lvm_iterate): Rescan if necessary.
17154 (find_lv): New function based on grub_lvm_open.
17155 (grub_lvm_open): Use find_lv. Rescan on error.
17156 (is_node_readable): New function.
17157 (is_lv_readable): Likewise.
17158 (grub_lvm_scan_device): Skip already found disks.
17159 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
17160 Stop if searched device is found and readable.
17161 * grub-core/disk/raid.c (inscnt): New variable.
17162 (scan_depth): Likewise.
17163 (scan_devices): New function based on grub_raid_register. Abort if
17164 looked for device is found.
17165 (grub_raid_iterate): Rescan if needed.
17166 (find_array): NEw function based on -grub_raid_open.
17167 (grub_raid_open): Use find_array and rescan.
17168 (insert_array): Set became_readable_at.
17169 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
17170 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
17171 New function.
17172 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
17173 (grub_util_pull_device): New function.
17174 (grub_util_get_grub_dev): Call grub_util_pull_device.
17175 * util/raid.c: Moved to ..
17176 * grub-core/kern/emu/raid.c: ... here.
17177 (grub_util_raid_getmembers): New parameter "bootable".
17178 All users updated. Support 1.x.
17179 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
17180 All users updated.
17181 * include/grub/disk.h (grub_disk_pull_t): New enum.
17182 (grub_disk_dev): Change iterate prototype.
17183 All users updated.
17184 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
17185 New proto.
17186 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
17187 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
17188 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
17189 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
17190 All users updated.
17191 * include/grub/util/raid.h: Removed.
17192
17193 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
17194
17195 * po/POTFILES.in: Regenerate.
17196
17197 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
17198
17199 Unify sparc init with other ieee1275.
17200
17201 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
17202 instead of kern/sparc64/ieee1275/init.c.
17203 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
17204 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
17205 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
17206 grub/machine/kernel.h.
17207 (grub_ieee1275_original_stack) [__sparc__]: New variable.
17208 (grub_claim_heap) [__sparc__]: Use sparc version.
17209 (grub_machine_init): Moved args parsing to
17210 (grub_parse_cmdline): ...this.
17211 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
17212 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
17213 New definition.
17214 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
17215
17216 Move BOOTP to separate file.
17217
17218 * grub-core/Makefile.core.def (net): Add net/bootp.c.
17219 * grub-core/net/net.c: Move all BOOTP functions to
17220 * grub-core/net/bootp.c: ... here.
17221
17222 Use frame interface on PXE.
17223
17224 * grub-core/Makefile.core.def (pxecmd): Removed.
17225 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
17226 * grub-core/commands/i386/pc/pxecmd.c: Removed.
17227 * grub-core/i386/pc/pxe.c: Moved from here ...
17228 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
17229 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
17230 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
17231
17232 EFI network support.
17233
17234 * grub-core/Makefile.core.def (efinet): New module.
17235 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
17236 here...
17237 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
17238 All users updated.
17239 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
17240 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
17241 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
17242 * grub-core/net/drivers/efi/efinet.c: New file.
17243 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
17244 (grub_efi_net_config): New extern var.
17245
17246 Various cleanups and bugfixes.
17247
17248 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
17249 error.
17250 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
17251 disk declared as partition.
17252 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
17253 leak on failure.
17254 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
17255 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
17256 (grub_debug_zalloc): Likewise.
17257 (grub_debug_realloc): Likewise.
17258 (grub_debug_memalign): Likewise.
17259 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
17260 Check that target is IPv4.
17261 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
17262 local-mac-address as fallback.
17263 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
17264 memory leak.
17265 * grub-core/net/ip.c (ipchksum): Rename to ...
17266 (grub_net_ip_chksum): ... this. All users updated.
17267 (grub_net_recv_ip_packets): Special handling for DHCP.
17268 * util/grub-mkimage.c (generate_image): Zero-out aout header.
17269
17270 Unify prefix handling
17271
17272 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
17273 (grub_machine_get_bootlocation): ... this.
17274 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
17275 (grub_machine_get_bootlocation): ... this.
17276 (grub_prefix): New variable.
17277 (prefix): Removed.
17278 (root_dev): New variable.
17279 (dir): Likewise.
17280 (main): Use new variables.
17281 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
17282 Revamped into ...
17283 (grub_machine_get_bootlocation): ... this.
17284 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
17285 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
17286 (grub_machine_get_bootlocation): ... this.
17287 (grub_machine_set_prefix): Removed.
17288 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
17289 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
17290 Revamped into ...
17291 (grub_machine_get_bootlocation): ... this.
17292 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
17293 (grub_set_prefix_and_root): ... this. All users updated.
17294 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
17295 Revamped into ...
17296 (grub_machine_get_bootlocation): ... this.
17297 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
17298 (grub_machine_get_bootlocation): New proto.
17299 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
17300
17301 Less intrusive and more reliable seek on network implementation.
17302
17303 * grub-core/kern/file.c (grub_file_net_seek): Removed.
17304 (grub_file_seek): Don't call grub_file_net_seek.
17305 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
17306 (grub_net_fs_read_real): .. this.
17307 (grub_net_seek_real): Use net->offset.
17308 (grub_net_fs_read): Seek if necessary.
17309
17310 Unify IEEE1275 netwotk config with the other platforms.
17311
17312 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
17313 New variable.
17314 (grub_machine_get_bootlocation): Support network.
17315 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
17316 Support type and device parsing.
17317 (grub_ieee1275_get_device_type): New function.
17318 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
17319 into ...
17320 (grub_ieee1275_net_config_real): ... this.
17321 (grub_ofnet_probecards): Removed.
17322 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
17323 * include/grub/ieee1275/ofnet.h: Removed.
17324 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
17325 extern var.
17326 (grub_ieee1275_get_device_type): New function.
17327
17328 Unify network device closing across platforms and make more robust.
17329
17330 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
17331 grub_grubnet_fini.
17332 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
17333 already.
17334 * grub-core/net/net.c (grub_net_network_level_interface_register):
17335 Update num_ifaces.
17336 (grub_net_card_unregister): Close all interfaces.
17337 (receive_packets): Don't poll if no iterfaces are registered.
17338 Open if necessary.
17339 (grub_net_fini_hw): New function.
17340 (grub_net_restore_hw): Likewise.
17341 (fini_hnd): New variable.
17342 (GRUB_MOD_INIT): Register preboot hook.
17343 (GRUB_MOD_FINI): Run and unregister preboot hook.
17344
17345 Poll network cards when idle.
17346
17347 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
17348 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
17349 * grub-core/net/net.c (receive_packets): Save last poll time.
17350 (grub_net_poll_cards_idle_real): New function.
17351 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
17352 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
17353 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
17354
17355 Rename ofnet interfaces.
17356
17357 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
17358 (grub_ofnet_findcards): Use ofnet_%s names.
17359
17360 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
17361
17362 Cleanup socket opening.
17363
17364 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
17365 (grub_net_fs_close): Likewise.
17366 (grub_net_fs_read_real): Use eof member.
17367 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
17368 (+grub_net_udp_close): New inline function.
17369
17370 * include/grub/net/tftp.h: Moved to the top of ...
17371 * grub-core/net/tftp.c: ... here.
17372 * include/grub/net/ip.h: Moved mostly to the top of ...
17373 * grub-core/net/ip.c: ... here.
17374 * include/grub/net/ethernet.h: Moved mostly to the top of ...
17375 * grub-core/net/ethernet.c: ... here.
17376
17377 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
17378
17379 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
17380 FS name.
17381
17382 * include/grub/net/ip.h (ipv4_ini): Removed.
17383 (ipv4_fini): Likewise.
17384
17385 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
17386 (grub_net_send_ip_packets): Likewise.
17387
17388 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
17389
17390 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
17391 grub_read_cmos prototype.
17392
17393 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
17394
17395 VGA text support in qemu-mips
17396
17397 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
17398 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
17399 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
17400 text.
17401 * grub-core/kern/i386/qemu/init.c: Renamed to ...
17402 * grub-core/kern/vga_init.c: ... this.
17403 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
17404 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
17405 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
17406 Adjust.
17407 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
17408 GRUB_MACHINE_PCI_IO_BASE.
17409
17410 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
17411
17412 MIPS qemu flash support.
17413
17414 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
17415 magic.
17416 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
17417 (grub_machine_init): Probe memory if its size isn't known.
17418 * util/grub-mkimage.c (image_targets): Add flash targets.
17419 (generate_image): Handle flash targets.
17420
17421 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
17422
17423 MIPS qemu at_keyboard support.
17424
17425 * gentpl.py (videoinkernel): Add qemu-mips.
17426 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
17427 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
17428 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
17429 modules.
17430 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
17431 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
17432 * grub-core/term/serial.c (grub_serial_register)
17433 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
17434
17435 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
17436
17437 CMOS support on sparc.
17438
17439 * gentpl.py (cmos): Add powerpc and sparc.
17440 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
17441 powerpc and sparc.
17442 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
17443 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
17444 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
17445 grub_set_datetime_cmos.
17446 * grub-core/lib/ieee1275/cmos.c: New file.
17447 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
17448 (find_rtc): Set no_ieee1275_rtc on error.
17449 (grub_get_datetime): Call grub_get_datetime_cmos on error.
17450 (grub_set_datetime): Call grub_set_datetime_cmos on error.
17451 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
17452 fail. Move value to argument. All users updated
17453 (grub_cmos_write): Likewise.
17454 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
17455 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
17456 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
17457 grub_get_datetime_cmos and grub_set_datetime_cmos.
17458
17459 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
17460
17461 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
17462 sourcing grub-mkconfig_lib.
17463 * util/update-grub_lib.in: Likewise.
17464 * util/grub.d/00_header.in: Likewise.
17465 * util/grub.d/10_hurd.in: Likewise.
17466 * util/grub.d/10_kfreebsd.in: Likewise.
17467 * util/grub.d/10_linux.in: Likewise.
17468 * util/grub.d/10_netbsd.in: Likewise.
17469 * util/grub.d/10_windows.in: Likewise.
17470 * util/grub.d/20_linux_xen.in: Likewise.
17471 * util/grub.d/30_os-prober.in: Likewise.
17472
17473 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
17474
17475 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
17476 default_bg_color rather than black.
17477 (grub_gfxterm_fullscreen): Likewise.
17478 (grub_gfxterm_background_color_cmd): Save new background color in
17479 default_bg_color.
17480
17481 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17482
17483 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
17484
17485 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17486
17487 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
17488 mismerge.
17489
17490 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17491
17492 Chainloading on coreboot support.
17493
17494 * grub-core/Makefile.core.def (chain): Add coreboot.
17495 * grub-core/loader/i386/coreboot/chainloader.c: New file.
17496
17497 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17498
17499 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
17500 if it happens.
17501
17502 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17503
17504 Implement time command.
17505
17506 * grub-core/Makefile.core.def (time): New module.
17507 * grub-core/commands/time.c: New file.
17508 * grub-core/script/parser.y: Remove "time" keyword.
17509 * grub-core/script/yylex.l: Likewise.
17510
17511 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17512
17513 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
17514
17515 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17516
17517 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
17518 when handling leftovers.
17519
17520 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17521
17522 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
17523 so that help2man doesn't fail.
17524
17525 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17526
17527 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
17528 type in pointers on sparc64.
17529 (get_card_packet): Likewise.
17530
17531 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
17532
17533 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
17534 with `*'.
17535 (grub_cmd_videoinfo): Fetch current video mode.
17536
17537 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17538
17539 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
17540 because of underlying system restrictions.
17541
17542 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17543
17544 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
17545 necessary.
17546
17547 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17548
17549 Coreboot video support.
17550
17551 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
17552 (vbe): Likewise.
17553 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
17554 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
17555 here ...
17556 * grub-core/kern/i386/int.S: ... here.
17557 * grub-core/video/i386/pc/vbe.c: Updated includes.
17558 * grub-core/video/i386/pc/vga.c: Likewise.
17559 * include/grub/i386/coreboot/memory.h
17560 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
17561 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
17562 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
17563 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
17564 Disable interrupts.
17565 * include/grub/i386/pc/vga.h: Removed. All users updated.
17566
17567 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17568
17569 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
17570 definitions for dprintf.
17571 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
17572
17573 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17574
17575 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
17576 prototype.
17577 (get_card_packet): Likewise.
17578
17579 2011-06-26 Yves Blusseau <blusseau@zetam.org>
17580
17581 Display the path of the file when file is not found
17582
17583 * grub-core/fs/fat.c: Display the filename when file is not found.
17584 * grub-core/fs/fshelp.c: Likewise.
17585 * grub-core/fs/hfs.c: Likewise.
17586 * grub-core/fs/jfs.c: Likewise.
17587 * grub-core/fs/minix.c: Likewise.
17588 * grub-core/fs/ufs.c: Likewise.
17589 * grub-core/fs/btrfs.c: Likewise.
17590 * grub-core/commands/i386/pc/play.c: Likewise.
17591
17592 2011-06-26 Szymon Janc <szymon@janc.net.pl>
17593
17594 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
17595 pointer checks before calling grub_free().
17596 * grub-core/commands/wildcard.c (match_devices): Likewise.
17597 * grub-core/commands/wildcard.c (match_files): Likewise.
17598 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
17599 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
17600 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
17601 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
17602 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
17603 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
17604 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
17605 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
17606 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
17607
17608 2011-06-25 Patrick <p55@mailinator.com>
17609
17610 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
17611
17612 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
17613
17614 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
17615 (grub_pxe_send): Likewise.
17616 (GRUB_MOD_INIT): Fix types.
17617
17618 2011-06-24 Szymon Janc <szymon@janc.net.pl>
17619
17620 * grub-core/io/xzio.c: Fix code style issues
17621
17622 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
17623 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
17624
17625 Network infrastructure.
17626 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
17627
17628 * include/grub/net/arp.h: New file.
17629 * include/grub/net/device.h: Likewise.
17630 * include/grub/net/ethernet.h: Likewise.
17631 * include/grub/net/ip.h: Likewise.
17632 * include/grub/net/netbuff.h: Likewise.
17633 * include/grub/net/tftp.h: Likewise.
17634 * include/grub/net/udp.h: Likewise.
17635 * include/grub/ieee1275/ofnet.h: Likewise.
17636 * include/grub/emu/export.h: Likewise.
17637 * include/grub/net.h: Likewise.
17638 * grub-core/net/arp.c: Likewise.
17639 * grub-core/net/ethernet.c: Likewise.
17640 * grub-core/net/ip.c: Likewise.
17641 * grub-core/net/udp.c: Likewise.
17642 * grub-core/net/tftp.c: Likewise.
17643 * grub-core/net/netbuff.c: Likewise.
17644 * grub-core/net/net.c: Likewise.
17645 * grub-core/net/drivers/emu/emunet.c: Likewise.
17646 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
17647 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
17648 export.h.
17649 * grub-core/Makefile.core.def (net): New module.
17650 (tftp): Likewise.
17651 (ofnet): Likewise.
17652 (emunet): Likewise.
17653 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
17654 network protocols.
17655 * grub-core/kern/device.c (grub_net_open) : New variable.
17656 (grub_device_open): Handle network device.
17657 (grub_device_close): Likewise.
17658 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
17659 (grub_grubnet_fini): Likewise.
17660 (grub_file_seek): Seek in network device.
17661 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
17662 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
17663 network root.
17664 (grub_machine_fini): Call grub_grubnet_fini.
17665 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
17666 network.
17667 (grub_ieee1275_get_aliasdevname): New function.
17668 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
17669 Add unofficial Solaris network info.
17670 (grub_multiboot_make_mbi): Likewise.
17671 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
17672 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
17673 * include/grub/device.h (grub_fs): Removed.
17674 * include/grub/err.h (grub_err_t): Add network-related values.
17675 * include/grub/i386/pc/pxe.h: Removed bootp parts.
17676 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
17677 (grub_ieee1275_get_aliasdevname): New proto.
17678 * include/grub/net.h: Rewritten.
17679
17680 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
17681
17682 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
17683 names.
17684
17685 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
17686
17687 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
17688 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
17689 it truncates the output.
17690 Reported by: Ximin Luo.
17691
17692 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
17693
17694 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
17695
17696 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
17697
17698 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
17699 partmap before abstraction.
17700
17701 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
17702
17703 * util/grub-mkconfig_lib.in: Add missing quotes.
17704
17705 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
17706
17707 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
17708 old method if mountinfo would return /dev/root and /dev/root doesn't
17709 exist.
17710
17711 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
17712
17713 ZFS zlib support
17714
17715 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
17716 (decomp_table): Add zlib entries.
17717 (zio_read): USe 8 bits for compression function rather than 3.
17718 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
17719
17720 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
17721
17722 * grub-core/disk/ahci.c: Add missing license statements.
17723 * grub-core/fs/romfs.c: Likewise.
17724 * grub-core/lib/ia64/setjmp.S: Likewise.
17725 * grub-core/loader/i386/pc/freedos.c: Likewise.
17726 * grub-core/loader/ia64/efi/linux.c: Likewise.
17727 * grub-core/video/colors.c: Likewise.
17728 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
17729
17730 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
17731
17732 AHCI support.
17733
17734 * grub-core/Makefile.core.def (ata_pthru): Removed.
17735 (ahci): New module.
17736 (pata): Likewise.
17737 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
17738 on unload.
17739 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
17740 readwrite.
17741 (grub_hdparm_do_check_powermode_cmd): Likewise.
17742 (grub_hdparm_do_smart_cmd): Likewise.
17743 (grub_hdparm_set_val_cmd): Likewise.
17744 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
17745 * grub-core/disk/ahci.c: New file.
17746 * grub-core/disk/ata.c: Factor out the low-level part into ...
17747 * grub-core/disk/pata.c: ... here.
17748 * grub-core/disk/ata_pthru.c: Contents moved to ...
17749 * grub-core/disk/pata.c: ... here.
17750 * grub-core/disk/scsi.c (grub_scsi_names): New array.
17751 (grub_scsi_iterate): Use grub_scsi_names.
17752 (grub_scsi_open): Likewise.
17753 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
17754 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
17755 (grub_ata_regs_t): New struct.
17756 (grub_disk_ata_pass_through_parms): Likewise.
17757 (grub_ata_device): Renamed to ...
17758 (grub_ata): ... this.
17759 (grub_ata_dev): New struct.
17760 Removed all low-level inline functions.
17761 * include/grub/scsi.h: Add PATA and AHCI subsystems.
17762 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
17763 iterate hooks and open. All users updated.
17764 * util/grub-install.in: Handle AHCI disk module.
17765
17766 2011-06-23 Szymon Janc <szymon@janc.net.pl>
17767
17768 Add support for DRI and RSTn markers in JPEG files.
17769
17770 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
17771 (JPEG_MARKER_RST0): Likewise.
17772 (JPEG_MARKER_RST1): Likewise.
17773 (JPEG_MARKER_RST2): Likewise.
17774 (JPEG_MARKER_RST3): Likewise.
17775 (JPEG_MARKER_RST4): Likewise.
17776 (JPEG_MARKER_RST5): Likewise.
17777 (JPEG_MARKER_RST6): Likewise.
17778 (JPEG_MARKER_RST7): Likewise.
17779 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
17780 (grub_jpeg_decode_dri): New function.
17781 (grub_jpeg_decode_sos): Move image data related part into
17782 grub_jpeg_decode_data function.
17783 (grub_jpeg_decode_data): New function.
17784 (grub_jpeg_reset): New function.
17785 (grub_jpeg_decode_jpeg): Handle new markers.
17786
17787 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
17788
17789 * util/ieee1275/ofpath.c (check_sas): Close fd.
17790 (main): Free of_path.
17791 Reported by: David Volgyes <dvolgyes>.
17792
17793 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
17794
17795 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
17796 Reported by: David Volgyes <dvolgyes>.
17797
17798 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
17799
17800 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
17801 file after stat.
17802 Reported by: David Volgyes <dvolgyes>.
17803
17804 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
17805
17806 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
17807
17808 Reported by: David Volgyes <dvolgyes>.
17809
17810 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
17811
17812 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
17813 Prevent memory leak.
17814
17815 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
17816
17817 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
17818 (main): Close file.
17819 Reported by: David Volgyes <dvolgyes>.
17820
17821 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
17822
17823 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
17824 to continue if allocation is failed.
17825
17826 Reported by: David Volgyes <dvolgyes>.
17827
17828 2011-06-23 David Volgyes <dvolgyes>
17829
17830 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
17831 dereference.
17832
17833 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
17834
17835 Fix spurious warning.
17836
17837 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
17838 (acorn_partition_map_find): Use .bin member.
17839
17840 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
17841
17842 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
17843 /dev/root as a valid device.
17844
17845 2011-06-23 Jim Meyering <meyering@redhat.com>
17846
17847 Avoid NULL deref in grub_device_open.
17848
17849 * grub-core/kern/device.c (grub_device_open): Don't dereference
17850 a NULL pointer upon failed grub_env_get.
17851
17852 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
17853
17854 Support non-512B sectors and agglomerate reads.
17855
17856 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
17857 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
17858 (disk_io_guid): Removed.
17859 (make_devices): Locate solely by BlockIO.
17860 (grub_efidisk_open): Fill log_sector_size and total_sectors.
17861 (grub_efidisk_read): Use read_blocks.
17862 (grub_efidisk_write): Use write_blocks.
17863 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
17864 log_sector_size.
17865 (get_safe_sectors): Handle non-512B sectors.
17866 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
17867 sectors.
17868 (grub_biosdisk_write): Handle non-512B sectors.
17869 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
17870 (grub_scsi_read): Remove special non-512B block handling (now handled
17871 one level up).
17872 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
17873 and do sanity checks.
17874 (grub_disk_adjust_range): Handle non-512B sectors.
17875 (transform_sector): New function.
17876 (grub_disk_read_small): Likewise.
17877 (grub_disk_read): Rewritten.
17878 (grub_disk_write): Handle non-512B sectors.
17879 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
17880 log_sector_size.
17881 (open_device): Use log_sector_size.
17882 (grub_util_biosdisk_read): Likewise.
17883 (grub_util_biosdisk_write): Likewise.
17884 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
17885 non-512B sectors.
17886 (pc_partition_map_embed): Likewise.
17887 * include/grub/disk.h (grub_disk): New field log_sector_size.
17888 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
17889 (GRUB_DISK_CACHE_BITS): Increased to 6.
17890 * util/grub-fstest.c (fstest): New command testload.
17891 (argp_parser): Likewise.
17892
17893 2011-06-16 Robert Millan <rmh@gnu.org>
17894
17895 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
17896 `ata' driver on kernel of FreeBSD 9.
17897
17898 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
17899 (get_ataraid_disk_name): New functions.
17900 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
17901 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
17902 get_ataraid_disk_name() and get_ada_disk_name().
17903
17904 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
17905
17906 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
17907 input format.
17908
17909 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
17910
17911 * docs/grub.texi (Obtaining and Building GRUB): Substitute
17912 `ftp.gnu.org' for `alpha.gnu.org'.
17913
17914 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
17915
17916 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
17917 partitions under /dev/disk/by-id/.
17918
17919 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
17920
17921 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
17922 after ten consecutive open failures. Scanning all the way up to
17923 10000 is excessive and can cause serious performance problems in
17924 some configurations.
17925 Fixes Ubuntu bug #787461.
17926
17927 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
17928
17929 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
17930 opening new one.
17931
17932 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
17933 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
17934
17935 Don't stat devices unless we have to.
17936
17937 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
17938 dir == /dev/mapper.
17939 (grub_guess_root_device): Use already known os_dev if possible.
17940 * grub-core/kern/emu/hostdisk.c
17941 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
17942 if device is known to be a dm one.
17943
17944 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
17945
17946 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
17947 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
17948 Reported by: Pawel Tecza.
17949
17950 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
17951
17952 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
17953 (lsefisystab): Likewise.
17954 (lssal): Likewise.
17955 (lsefimmap): Likewise.
17956 (hdparm): Enable on qemu-mips.
17957 (setjmp): Add ia64 nodist.
17958 (serial): Simplify tags.
17959
17960 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
17961
17962 * Makefile.util.def (grub-ofpathname): Install manual page.
17963
17964 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
17965
17966 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
17967
17968 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
17969
17970 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
17971
17972 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
17973
17974 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
17975 into dprintf.
17976
17977 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
17978
17979 Use full 64-bit division.
17980
17981 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
17982 (grub_divmod64): ... this.
17983 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
17984 version.
17985
17986 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
17987
17988 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
17989 `source'.
17990
17991 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
17992
17993 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
17994 to avoid accidents when debugging with 'sh -x'.
17995 * grub-core/gensyminfo.sh.in: Likewise.
17996 * tests/example_scripted_test.in: Likewise.
17997 * tests/grub_cmd_regexp.in: Likewise.
17998 * tests/grub_script_blanklines.in: Likewise.
17999 * tests/grub_script_dollar.in: Likewise.
18000 * tests/grub_script_expansion.in: Likewise.
18001 * tests/grub_script_final_semicolon.in: Likewise.
18002 * tests/partmap_test.in: Likewise.
18003 * tests/util/grub-shell-tester.in: Likewise.
18004 * tests/util/grub-shell.in: Likewise.
18005
18006 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
18007
18008 Move gfxmenu color handling to video, so that gfxterm can use it
18009 too.
18010
18011 * grub-core/gfxmenu/named_colors.c: Move to ...
18012 * grub-core/video/colors.c: ... here. Rename
18013 grub_gui_get_named_color to grub_video_get_named_color.
18014 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
18015 * grub-core/video/colors.c (my_isxdigit): ... here.
18016 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
18017 Move to ...
18018 * grub-core/video/colors.c (parse_hex_color_component): ... here.
18019 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
18020 to ...
18021 * grub-core/video/colors.c (grub_video_parse_color): ... here.
18022
18023 * include/grub/gui.h (grub_gui_color_t): Move to ...
18024 * include/grub/video.h (grub_video_rgba_color_t): ... here.
18025 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
18026 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
18027 * include/grub/gui.h (grub_gui_map_color): Move to ...
18028 * include/grub/video.h (grub_video_map_rgba_color): ... here.
18029 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
18030 to ...
18031 * include/grub/video.h (grub_video_get_named_color): ... here.
18032 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
18033 * include/grub/video.h (grub_video_parse_color): ... here.
18034
18035 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
18036 video/colors.c.
18037 (gfxmenu): Remove gfxmenu/named_colors.c.
18038 (video) [videomodules]: Add video/colors.c.
18039
18040 Add a background_color command.
18041
18042 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
18043 function.
18044 (GRUB_MOD_INIT): Register background_color command.
18045 (GRUB_MOD_FINI): Unregister background_color command.
18046 (redraw_screen_rect): Allow blend/replace of text layer to be
18047 controlled independently from whether there is a background bitmap.
18048 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
18049 changing bitmap.
18050
18051 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
18052
18053 Patch BPB in ntldr and chainloader --bpb.
18054
18055 * grub-core/fs/fat.c: Include grub/fat.h.
18056 (grub_fat_bpb): Moved to ...
18057 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
18058 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
18059 grub/ntfs.h.
18060 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
18061 Moved from here...
18062 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
18063 here.
18064 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
18065 New function.
18066 (grub_chainloader_cmd): Patch BPB if --bpb is given.
18067 (GRUB_MOD_INIT): Show --bpb.
18068 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
18069 * grub-core/normal/main.c (features): New variable.
18070 (GRUB_MOD_INIT): Set feature_* variables.
18071 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
18072 proto.
18073 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
18074
18075 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
18076
18077 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
18078 for cleanness.
18079
18080 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
18081
18082 FreeDOS direct loading support.
18083
18084 * docs/grub.texi (Supported OS): Add FreeDOS.
18085 * grub-core/Makefile.core.def (freedos): New module.
18086 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
18087 variable.
18088 (grub_relocator16_boot): Handle %ebx.
18089 * grub-core/lib/i386/relocator16.S: Likewise.
18090 * grub-core/loader/i386/pc/freedos.c: New file.
18091
18092 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
18093
18094 Long Linux command line support.
18095
18096 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
18097 (maximal_cmdline_size): New variable.
18098 (allocate_pages): Use maximal_cmdline_size.
18099 (grub_cmd_linux): Set and use maximal_cmdline_size.
18100 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
18101 (allocate_pages): Use maximal_cmdline_size.
18102 (grub_cmd_linux): Set and use maximal_cmdline_size.
18103 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
18104 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
18105 and cmdline_size.
18106
18107 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
18108 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
18109
18110 Improve devmapper support
18111
18112 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
18113 (grub_util_is_lvm): New function.
18114 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
18115 than lvm if not dmraid.
18116 Handle mapped md nodes.
18117 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
18118 (grub_util_device_is_mapped): ... this. Make always available. All users
18119 updated.
18120 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
18121 (convert_system_partition_to_system_disk): Handle lvm, mpath and
18122 dmraid nodes.
18123 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
18124
18125 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
18126
18127 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
18128
18129 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
18130 * grub-core/modinfo.sh.in: New file.
18131 * grub-core/Makefile.core.def (modinfo.sh): New script.
18132 * util/grub-mknetdir.in: Use modinfo.sh.
18133 * util/grub-mkrescue.in: Likewise.
18134
18135 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
18136
18137 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
18138 Fix potential usage of Elf32 instead of Elf64 when compiling on
18139 32-bit architecture. Add endianness macros while on it.
18140
18141 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
18142
18143 Use mipsel- rather than mips- in directories involving mipsel ports to
18144 allow both endiannesses coexist.
18145
18146 * configure.ac: proparate target_cpu=mipsel rather than resetting to
18147 mips. All conditions adjusted.
18148 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
18149 variable.
18150 * util/grub-install.in: Adjust conditions to take renaming into account.
18151 * util/grub-mkimage.c (image_targets): Likewise. New target
18152 mips-qemu_mips-elf for bigendian mips.
18153
18154 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
18155
18156 Avoid unnecessary copying on MIPS.
18157
18158 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
18159 early if src == dest.
18160 * util/grub-mkimage.c (generate_image): Arange for src == dest if
18161 compression is none.
18162
18163 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
18164
18165 Reduce memory footprint on SGI by putting modules before the kernel
18166 as opposed to after.
18167
18168 * grub-core/Makefile.core.def (kernel): Increase linking address.
18169 (none_decompress): Likewise.
18170 (xz_decompress): Likewise.
18171 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
18172 address.
18173 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
18174 layout change.
18175 (grub_arch_modules_addr): New function.
18176 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
18177 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
18178 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
18179 here.
18180 * grub-core/kern/mips/startup.S (total_size): Rename to ...
18181 (grub_total_modules_size): ... this. Make global.
18182 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
18183 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
18184 New definition.
18185 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
18186 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
18187 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
18188 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
18189 * util/grub-mkimage.c (image_target_desc): New flag
18190 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
18191 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
18192 (generate_image): Handle images with modules before kernel.
18193
18194 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
18195
18196 Prevent potential loss of memory map by overwrite on qemu-mips.
18197
18198 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
18199 Save ram size in $s4.
18200 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
18201 All users changed to grub_arch_memsize.
18202 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
18203 Loongson.
18204 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
18205 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
18206 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
18207 external variable.
18208
18209 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
18210
18211 * .bzrignore: Remove grub-dumpbios.
18212
18213 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
18214
18215 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
18216 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
18217 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
18218 existing options which append).
18219 * docs/grub.texi (Simple configuration): Document new options.
18220 Reported by: Ian Jackson. Fixes Debian bug #617538.
18221
18222 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
18223
18224 * util/grub-fstest.c (cmd_cat): New function.
18225 (fstest): Handle CMD_CAT.
18226 (options): Add cat.
18227 (argp_parser): Handle cat.
18228
18229 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
18230
18231 * Makefile.util.def (grub-bin2h): Don't install.
18232 * docs/man/grub-bin2h.h2m: Remove.
18233
18234 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
18235
18236 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
18237 place.
18238
18239 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
18240
18241 Reenable qemu-mips port.
18242
18243 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
18244 Fix small arc bug while on it.
18245 * gentpl.py: Handle qemu_mips.
18246 * grub-core/Makefile.am: Likewise.
18247 * grub-core/Makefile.core.def: Likewise.
18248 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
18249 inappropriate includes.
18250 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
18251 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
18252 * grub-core/kern/main.c (grub_modules_get_end)
18253 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
18254 * grub-core/kern/mips/qemu-mips: Moved to ..
18255 * grub-core/kern/mips/qemu_mips: ... this.
18256 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
18257 (grub_machine_init): Call terminfo_init and serial_init.
18258 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
18259 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
18260 New variable.
18261 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
18262 parameter passing.
18263 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
18264 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
18265 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
18266 * include/grub/mips/qemu_mips/cmos.h: New file.
18267 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
18268 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
18269 Removed.
18270 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
18271 Use correct mips-style address.
18272 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
18273 (GRUB_TICKS_PER_SECOND): Removed.
18274 (grub_get_rtc): Likewise.
18275 (grub_cpu_idle): Likewise.
18276 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
18277 New definition.
18278 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
18279 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
18280 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
18281 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
18282 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
18283 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
18284 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
18285 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
18286
18287 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
18288
18289 SGI ARCS port.
18290
18291 * Makefile.util.def (libgrubmods.a): Add dvh.c.
18292 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
18293 platforms.
18294 * configure.ac: New target mips-arc.
18295 * gentpl.py: Likewise.
18296 * grub-core/Makefile.am: Likewise.
18297 * grub-core/Makefile.core.def: Likewise.
18298 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
18299 (none_decompress): Likewise.
18300 (lsdev): New module.
18301 (datetime): Use lib/arc/datetime.c on ARC.
18302 (part_dvh): New module.
18303 * grub-core/commands/arc/lsdev.c: New file.
18304 * grub-core/disk/arc/arcdisk.c: Likewise.
18305 * grub-core/kern/mips/arc/init.c: Likewise.
18306 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
18307 aligned addresses.
18308 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
18309 support.
18310 (grub_arch_dl_relocate_symbols): Likewise.
18311 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
18312 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
18313 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
18314 platforms.
18315 * grub-core/lib/arc/datetime.c: New file.
18316 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
18317 pci.h on non-loongson.
18318 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
18319 (grub_linux_boot): Set unused registers to 0.
18320 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
18321 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
18322 * grub-core/mmap/mips/uppermem.c: ...here.
18323 * grub-core/partmap/dvh.c: New file.
18324 * grub-core/term/arc/console.c: Likewise.
18325 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
18326 (grub_terminfo_set_current): Add terminal "arc".
18327 (grub_terminfo_readkey): Support ARC sequences.
18328 * include/grub/arc/arc.h: New file.
18329 * include/grub/arc/console.h: Likewise.
18330 * include/grub/disk.h (grub_disk_dev_id): Add
18331 GRUB_DISK_DEVICE_ARCDISK_ID.
18332 * include/grub/mips/arc/kernel.h: New file.
18333 * include/grub/mips/arc/memory.h: Likewise.
18334 * include/grub/mips/arc/time.h: Likewise.
18335 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
18336 * include/grub/mips/kernel.h (grub_halt): ... here.
18337 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
18338 here...
18339 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
18340 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
18341 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
18342 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
18343 proto.
18344 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
18345 from here ...
18346 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
18347 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
18348 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
18349 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
18350 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
18351 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
18352 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
18353 (grub_phys_addr_t): Moved from here ...
18354 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
18355 (grub_vtop): Moved from here ...
18356 * include/grub/mips/memory.h (grub_vtop): ... here.
18357 (grub_map_memory): Moved from here ...
18358 * include/grub/mips/memory.h (grub_map_memory): ... here.
18359 (grub_unmap_memory): Moved from here ...
18360 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
18361 (grub_machine_mmap_iterate): Moved from here ...
18362 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
18363 (grub_mmap_get_lower): Moved from here ...
18364 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
18365 (grub_mmap_get_upper): Moved from here ...
18366 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
18367 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
18368 here ...
18369 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
18370 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
18371 here ...
18372 * include/grub/mips/time.h (grub_get_rtc): ... here.
18373 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
18374 here ...
18375 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
18376 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
18377 here ...
18378 * include/grub/mips/time.h (grub_cpu_idle): ... here.
18379 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
18380 definition.
18381 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
18382 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
18383 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
18384 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
18385 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
18386 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
18387 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
18388 (GRUB_MACHINE_LINK_ADDR): Likewise.
18389 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
18390 to 6.
18391 * util/grub-install.in: Run dvhtool on ARC.
18392 * util/grub-mkimage.c (image_targets): Add mips-arc.
18393 (generate_image): Handle ECOFF output for mips-arc.
18394
18395 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
18396
18397 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
18398 blocks.
18399
18400 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
18401
18402 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
18403 after enabling port.
18404
18405 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
18406
18407 Skip incorrect USB devices.
18408
18409 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
18410 configcnt == 0.
18411 * include/grub/usb.h (grub_usb_err_t): New enum value
18412 GRUB_USB_ERR_BADDEVICE.
18413
18414 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
18415
18416 Fuloong video init support.
18417
18418 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
18419 well.
18420 (grub_vga_read_arx): New function.
18421 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
18422 definition.
18423 (framebuffer): New members io, mmioptr and mmiobase.
18424 (read_sis_cmd): New function.
18425 (write_sis_cmd): Likewise.
18426 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
18427 rather than 640x400.
18428 * grub-core/video/sis315_init.c: New file.
18429
18430 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
18431
18432 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
18433 non-loongson.
18434 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
18435 to grub_dl_register_symbol.
18436
18437 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
18438
18439 Fix compilation errors.
18440
18441 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
18442 potentially unused.
18443 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
18444 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
18445 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
18446 to loongson machines.
18447
18448 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
18449
18450 Several FS mtime support.
18451
18452 * grub-core/fs/affs.c (grub_affs_time): New struct.
18453 (grub_affs_file): New field mtime.
18454 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
18455 type. Removed 'size'. New field 'di'. All users updated.
18456 (grub_affs_mount): Simplify checsum checking.
18457 (grub_affs_iterate_dir): New helper grub_affs_create_node.
18458 (grub_affs_dir): Handle mtime.
18459 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
18460 (grub_cpio_dir): Likewise.
18461 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
18462 (grub_hfs_filerec): New field mtime.
18463 (grub_hfs_dir): Handle mtime.
18464 (grub_hfs_mtime): New function.
18465 (grub_hfs_fs): Register grub_hfs_mtime.
18466 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
18467 (grub_iso9660_dir): New field mtime.
18468 (grub_fshelp_node): New field dirent.
18469 (iso9660_to_unixtime): New function.
18470 (iso9660_to_unixtime2): Likewise.
18471 (grub_iso9660_read_symlink): Use node->dirent.
18472 (grub_iso9660_iterate_dir): Likewise.
18473 (grub_iso9660_dir): Set mtime.
18474 (grub_iso9660_mtime): New function.
18475 (grub_iso9660_fs): Register grub_iso9660_mtime.
18476 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
18477 (grub_jfs_inode): New fields atime, ctime and mtime.
18478 (grub_jfs_dir): Set mtime.
18479 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
18480 * grub-core/fs/ntfs.c (list_file): Set mtime.
18481 (grub_ntfs_dir): Likewise.
18482 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
18483 (grub_reiserfs_iterate_dir): Set mtime.
18484 (grub_reiserfs_dir): Likewise.
18485 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
18486 (grub_fshelp_node): Likewise.
18487 (grub_sfs_iterate_dir): Set mtime.
18488 (grub_sfs_dir): Likewise.
18489 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
18490 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
18491 (grub_xfs_inode): New fields atime, mtime, ctime.
18492 (grub_xfs_dir): Set mtime.
18493 * include/grub/datetime.h (grub_datetime2unixtime): New function.
18494 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
18495 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
18496
18497 Support UDF symlinks.
18498
18499 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
18500 (grub_ufs_read_symlink): New function. All users updated.
18501
18502 Check amiga partmap checksum.
18503
18504 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
18505 (grub_amiga_partition): Likewise.
18506 (amiga_partition_map_checksum): New function.
18507 (amiga_partition_map_iterate): Check checksum.
18508
18509 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
18510
18511 ROMFS support.
18512
18513 * Makefile.util.def (libgrubmods.a): Add romfs.
18514 * grub-core/Makefile.core.def (romfs): New module.
18515 * grub-core/fs/romfs.c: New file.
18516
18517 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
18518
18519 Squashfs v4 support.
18520
18521 * Makefile.util.def (libgrubmods.a): Add squash4.
18522 * grub-core/Makefile.core.def (squash4): New module.
18523 * grub-core/fs/squash4.c: New file.
18524 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
18525 disk_input_start, disk_input.
18526 (get_byte): Handle disk_input.
18527 (grub_zlib_disk_read): New function.
18528 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
18529
18530 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
18531 2011-05-15 Feiran Zheng <famcool@gmail.com>
18532
18533 * Makefile.util.def (libgrubmods.a): Add minix3.
18534 * grub-core/Makefile.core.def (minix3): New module.
18535 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
18536 (GRUB_MINIX_BSIZE): Removed.
18537 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
18538 (grub_minix_ino_t): New type.
18539 (grub_minix_le_to_cpu_ino): New macro.
18540 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
18541 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
18542 (grub_minix_data): New field block_size.
18543 (grub_minix_read_file): Handle 64-bit correctly.
18544 * grub-core/fs/minix3.c: New file.
18545
18546 2011-05-15 Tristan Gingold <gingold@free.fr>
18547 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
18548 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
18549
18550 IA64 support.
18551
18552 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
18553 * configure.ac: Add ia64-efi target.
18554 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
18555 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
18556 * gentpl.py: Add ia64_efi platform.
18557 Rename x86_efi to efi and Add ia64-efi. All users updated.
18558 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
18559 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
18560 Remove kern/generic/rtc_get_time_ms.c on EFI.
18561 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
18562 kern/ia64/dl_helper.c on ia64-efi.
18563 Add kern/emu/cache.c on emu.
18564 (linux): Use on loader/ia64/efi/linux.c on ia64.
18565 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
18566 whether symbol is a function.
18567 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
18568 (grub_symbol): New field 'isfunc'.
18569 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
18570 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
18571 (grub_dl_load_segments): Place all sections into the same region.
18572 [__ia64__]: Create trampolines and got.
18573 [GRUB_MACHINE_EMU]: Call mprotect.
18574 (grub_dl_resolve_symbols): Resolve symbol type as well.
18575 [__ia64__]: Create function descriptors.
18576 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
18577 (grub_rtc_get_time_ms): ... this. Expressions simplified.
18578 (grub_get_rtc): New function.
18579 * grub-core/kern/emu/cache.c [__ia64__]: New file.
18580 * grub-core/kern/emu/cache.S: Renamed to ...
18581 * grub-core/kern/emu/cache_s.S: ... this.
18582 [__ia64__]: Add a nop.
18583 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
18584 [__ia64__]: New function.
18585 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
18586 * grub-core/kern/ia64/dl.c: New file.
18587 * grub-core/kern/ia64/dl_helper.c: Likewise.
18588 * grub-core/kern/ia64/efi/init.c: New file.
18589 * grub-core/kern/ia64/efi/startup.S: Likewise.
18590 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
18591 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
18592 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
18593 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
18594 * grub-core/loader/ia64/efi/linux.c: New file.
18595 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
18596 (GRUB_MOD_DEP): Likewise.
18597 (grub_dl) [__ia64__]: New fields got and tramp.
18598 (grub_dl): New field 'base'.
18599 (grub_dl_register_symbol): New argument isfunc. All users updated.
18600 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
18601 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
18602 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
18603 (grub_ia64_dl_get_tramp_got_size): New proto.
18604 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
18605 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
18606 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
18607 * include/grub/efi/api.h: Skip call wrappers on ia64.
18608 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
18609 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
18610 * include/grub/elf.h (ELF_ST_INFO): New definition.
18611 * include/grub/ia64/efi/kernel.h: New file.
18612 * include/grub/ia64/efi/memory.h: Likewise.
18613 * include/grub/ia64/efi/time.h: Likewise.
18614 * include/grub/ia64/kernel.h: Likewise.
18615 * include/grub/ia64/setjmp.h: Likewise (from glibc).
18616 * include/grub/ia64/time.h: New file.
18617 * include/grub/ia64/types.h: Likewise.
18618 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
18619 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
18620 New protos.
18621 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
18622 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
18623 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
18624 * util/grub-mkimage.c (image_target_desc): New field pe_target.
18625 All users updated.
18626 (EFI64_HEADER_SIZE): New definition. All users updated.
18627 (image_targets): Add ia64-efi.
18628 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
18629 jumpers_addr. All users updated.
18630 Create function descriptors.
18631 (count_funcs): New function.
18632 (unaligned_uint32): New struct.
18633 (MASK20): New definition.
18634 (MASK19): Likewise.
18635 (MASKF21): Likewise.
18636 (add_value_to_slot_20b): New function.
18637 (add_value_to_slot_21_real): Likewise.
18638 (add_value_to_slot_21): Likewise.
18639 (ia64_kernel_trampoline): New struct.
18640 (nopm): New variable.
18641 (jump): Likewise.
18642 (make_trampoline): New function.
18643 (relocate_addresses): Handle ia64.
18644 (make_reloc_section): Likewise.
18645 (load_image): Likewise.
18646
18647 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
18648
18649 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
18650 warning. Move variables before code while on it.
18651
18652 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
18653
18654 Fuloong support.
18655
18656 * configure.ac: Rename yeeloong platform to loongson. All users updated.
18657 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
18658 * grub-core/boot/mips/loongson/fuloong.S: New file.
18659 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
18660 Explicitly init CS5536.
18661 [FULOONG]: Don't use serial until CS5536 is available.
18662 Set GPIO based on dumps.
18663 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
18664 [FULOONG]: Handle GPIO and memory controller differences.
18665 Parse machine type in $a2.
18666 * grub-core/boot/mips/startup_raw.S: Determine and save the
18667 architecture.
18668 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
18669 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
18670 init on architecture type.
18671 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
18672 SIS315E. Don't init at_keyboard on fuloong.
18673 (grub_halt): Support Fuloong.
18674 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
18675 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
18676 (loongson_machtypes): New array.
18677 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
18678 type.
18679 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
18680 config. All users updated. Handle CS5536 serial.
18681 * grub-core/term/serial.c (grub_serial_register): Conditionalise
18682 default port on machine type. Register serial as inactive.
18683 * grub-core/video/sis315pro.c: New file.
18684 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
18685 definition.
18686 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
18687 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
18688 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
18689 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
18690 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
18691 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
18692 to ...
18693 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
18694 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
18695 definition.
18696 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
18697 (grub_arch_machine): New extern var.
18698 * include/grub/mips/loongson/serial.h
18699 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
18700 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
18701 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
18702 (GRUB_MACHINE_SERIAL_PORT0): ... this.
18703 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
18704 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
18705 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
18706 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
18707 * include/grub/term.h (grub_term_register_input_inactive): New inline
18708 function.
18709 (grub_term_register_output_inactive): Likewise.
18710 * include/grub/video.h (grub_video_driver_id): New value
18711 GRUB_VIDEO_DRIVER_SIS315PRO.
18712 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
18713 New field "names". All users updated.
18714 New field value IMAGE_FULOONG_FLASH.
18715 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
18716
18717 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
18718
18719 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
18720 and add some clarification.
18721
18722 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
18723
18724 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
18725 platforms if kernel is compressed.
18726
18727 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
18728
18729 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
18730 unused modules since currently referrence counter isn't reliable and
18731 there isn't much memory to recover there anyway.
18732
18733 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
18734
18735 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
18736 rather than resetting it to allow modules to reference themselves
18737 in init.
18738
18739 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
18740
18741 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
18742 counter on dependencies since grub_dl_unref already handles this.
18743
18744 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
18745
18746 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
18747 on error if not already done.
18748
18749 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
18750
18751 Fix few potential memory misusage.
18752
18753 * grub-core/font/font.c (load_font_index): Don't free char_index to
18754 avoid double free.
18755 (grub_font_load): Zero-fill font at alloc for safety.
18756 Close file on error.
18757 (free_font): Free bmp_idx.
18758
18759 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
18760
18761 * docs/grub.texi (Installation): Fix several outdated claims.
18762
18763 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
18764
18765 Handle module_license on windows.
18766
18767 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
18768 sections shifted.
18769 (insert_string): Make argument const char * instead of char *.
18770 (write_section_data): Handle long section names.
18771 Handle module_license.
18772
18773 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
18774
18775 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
18776 handle class-free menuentries.
18777 (grub_normal_add_menu_entry): Add a check to be sure.
18778
18779 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
18780
18781 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
18782 PgUp and PgDown.
18783
18784 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
18785
18786 * configure.ac: Bump version to 1.99.
18787
18788 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
18789
18790 Give ATA device a bit more time on first try in order to allow disks
18791 to spin up.
18792
18793 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
18794 if dev->present is 1. Reset dev->present on failure.
18795 (grub_ata_device_initialize): Set dev->present to 1.
18796 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
18797 (grub_ata_device): New member 'present'.
18798
18799 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
18800
18801 * util/grub-mkimage.c (generate_image): Update hash.
18802
18803 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
18804
18805 Flush caches on DMA memory.
18806
18807 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
18808 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
18809 (grub_dma_free): Likewise.
18810 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
18811
18812 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
18813
18814 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
18815 to avoid asm treating ld and sd as macros.
18816
18817 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
18818
18819 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
18820 decompressor.
18821
18822 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
18823
18824 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
18825 grub_decompress_core since later would fail if grub_decompress_core
18826 is too far.
18827
18828 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
18829
18830 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
18831 R_MIPS_JALR since it's used by newer compiler.
18832
18833 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
18834
18835 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
18836
18837 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
18838
18839 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
18840 file_path to 0 for surety.
18841 (grub_chainloader_boot): Set exit_data to NULL.
18842 Unset the loader once done.
18843 (grub_cmd_chainloader): Fix confusing error message if file is empty.
18844
18845 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
18846
18847 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
18848 unknown key into a dprintf.
18849
18850 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
18851
18852 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
18853 on first non-existant partition.
18854
18855 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
18856
18857 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
18858 openning fails.
18859 Reported by: Mark Korenberg.
18860
18861 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
18862
18863 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
18864 overflow.
18865
18866 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
18867
18868 * util/grub-mkimage.c (main): Explicitely flush and sync the output
18869 before closing to ensure that it will be readable by grub-setup.
18870
18871 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
18872
18873 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
18874 (devpath_1): Use MAKE_PIWG_PATH.
18875 (devpath_2): Likewise.
18876 (devpath_3): Likewise.
18877 (devpath_4): Likewise.
18878 (devpath_5): Likewise.
18879 (devpath_6): Likewise.
18880
18881 The appleldr.mod was checked that to be binary identical to previous
18882 version.
18883
18884 2011-05-05 Zach <mikezackles>
18885
18886 Support 2010 Macbooks.
18887
18888 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
18889 (devs): Add devpath_6.
18890
18891 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
18892
18893 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
18894 /dev/random. /dev/urandom is good enough for our purposes (salting).
18895
18896 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
18897
18898 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
18899
18900 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
18901
18902 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
18903 hexadecimal.
18904
18905 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
18906
18907 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
18908 and not 0 on failure.
18909
18910 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
18911
18912 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
18913 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
18914 disk; otherwise grub_fs_probe will not fall back to the next
18915 filesystem.
18916 (grub_pxefs_open): Likewise, for consistency.
18917 Reported and tested by: Ezekiel Grave.
18918
18919 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
18920
18921 * tests/partmap_test.in: Don't hardcode path to parted.
18922 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
18923
18924 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
18925
18926 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
18927 of `ls' to find out which devices are available.
18928
18929 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
18930
18931 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
18932 than source address for efi mmap buffer.
18933
18934 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
18935
18936 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
18937 wrong action on non-detecting the magic.
18938
18939 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
18940
18941 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
18942 already supplied by another part of the module (fixes compilation on
18943 FreeBSD).
18944
18945 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
18946
18947 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
18948 match the one used by mdadm.
18949
18950 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
18951
18952 * po/README: Add instructions for creating po/LINGUAS.
18953
18954 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
18955
18956 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
18957 #551428.
18958
18959 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
18960 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
18961 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
18962 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
18963 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
18964 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
18965 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
18966 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
18967 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
18968 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
18969 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
18970 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
18971 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
18972 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
18973 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
18974 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
18975 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
18976 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
18977 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
18978 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
18979 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
18980 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
18981
18982 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
18983
18984 * grub-core/kern/emu/getroot.c
18985 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
18986 test that was incorrectly reintroduced in r3214.
18987 Reported by: Ian Dall. Fixes Savannah bug #33133.
18988
18989 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
18990
18991 Fix stack pointer handling in 16-bit relocator.
18992
18993 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
18994 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
18995 Fixes Ubuntu bug #683904.
18996
18997 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
18998
18999 * configure.ac: Bump version to 1.99~rc2.
19000
19001 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
19002
19003 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
19004 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
19005 * grub-core/lib/x86_64/setjmp.S: Likewise.
19006 * grub-core/lib/mips/setjmp.S: Likewise.
19007 * grub-core/lib/powerpc/setjmp.S: Likewise.
19008 * grub-core/lib/sparc64/setjmp.S: Likewise.
19009
19010 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
19011
19012 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
19013 * grub-core/lib/efi/datetime.c: Likewise.
19014
19015 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
19016
19017 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
19018 New function.
19019 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
19020 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
19021 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
19022
19023 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
19024
19025 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
19026 bitmap.
19027 (grub_gfxterm_term_init): Likewise.
19028
19029 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
19030
19031 Take into account the decorations the computing menu entry width.
19032
19033 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
19034 (grub_gfxmenu_create_box): Register get_border_width.
19035 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
19036 if available.
19037 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
19038 get_border_width.
19039
19040 2011-04-18 Endres Puschner <code@e7p.de>
19041
19042 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
19043 Don't skip first class.
19044
19045 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
19046
19047 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
19048 chunks.
19049 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
19050
19051 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
19052
19053 Complete 64-bit division support.
19054
19055 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
19056 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
19057 * include/grub/misc.h (grub_divmod64): Rename to ...
19058 (grub_divmod64_full): ... this.
19059 (grub_divmod64): New inline function.
19060
19061 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
19062
19063 * util/grub-mkimage.c (generate_image): Add forgotten comma.
19064
19065 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
19066
19067 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
19068 performing the necessary test.
19069
19070 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
19071
19072 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
19073 (kfreebsd.elf): Likewise.
19074 (pc-chainloader.elf): Likewise.
19075 (ntldr.elf): Likewise.
19076
19077 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
19078
19079 Identify RAID by its UUID rather than (guessed) name.
19080
19081 * grub-core/disk/raid.c (ascii2hex): New function.
19082 (grub_raid_open): Accept mduuid/%s specification.
19083 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
19084 (get_mdadm_uuid): ... this.
19085 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
19086
19087 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
19088
19089 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
19090 to negative size.
19091
19092 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
19093
19094 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
19095 btrfs subvolume.
19096 * util/grub.d/20_linux_xen.in: Likewise.
19097
19098 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
19099
19100 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
19101 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
19102
19103 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
19104 Build a list of relevant visible mounts using the mnt_id and
19105 parent_mnt_id fields, and then scan that list at the end.
19106
19107 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
19108
19109 * docs/grub.texi (normal): New section.
19110 (normal_exit): New section.
19111 (Embedded configuration): Add reference to normal.
19112 (GRUB only offers a rescue shell): Likewise.
19113 * docs/grub-dev.texi (Error Handling): Fix typo.
19114
19115 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
19116
19117 * NEWS: Drop obsolete entry about probe-only btrfs support.
19118
19119 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
19120
19121 * util/import_gcry.py: Fix typo.
19122
19123 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
19124
19125 * NEWS: Add btrfs support.
19126
19127 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
19128 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
19129
19130 BtrFS support. Written by me (Vladimir) with important bugfixes and
19131 even more important testing by Colin.
19132
19133 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
19134 * grub-core/Makefile.core.def (btrfs): Add crc.c.
19135 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
19136 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
19137 mem_input_off and mem_input. All users updated to accept in-RAM input.
19138 (gzio_seek): New function.
19139 (test_zlib_header): Likewise.
19140 (grub_gzio_read): Likewise.
19141 (grub_zlib_decompress): Likewise.
19142 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
19143 Accept partial and non-virtual mounts.
19144 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
19145 avoid receiving /dev/dm-X as device.
19146 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
19147 Handle bind and partial mounts.
19148 * grub-core/lib/crc.c: New file.
19149 * include/grub/deflate.h: Likewise.
19150 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
19151 proto.
19152 * include/grub/lib/crc.h: New file.
19153
19154 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
19155
19156 Implement automatic module license checking according to new GNU
19157 guidelines.
19158
19159 * grub-core/kern/dl.c (grub_dl_check_license): New function.
19160 (grub_dl_load_core): Use grub_dl_check_license.
19161 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
19162 (GRUB_MOD_LICENSE): Likewise.
19163 (GRUB_MOD_DUAL_LICENSE): Likewise.
19164 All modules updated.
19165
19166 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
19167
19168 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
19169 reserved_first_sector to 1. btrfs reserves plenty of space for boot
19170 loaders.
19171 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
19172
19173 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
19174
19175 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
19176
19177 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
19178
19179 * util/grub-fstest.c (read_file): Report GRUB error if file opening
19180 failed.
19181
19182 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
19183
19184 * grub-core/kern/file.c (grub_file_open): Don't take into account the
19185 parenthesis in the middle of the filename.
19186
19187 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
19188
19189 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
19190 rather than trying to put initrd way too high.
19191 Reported by: Ryan Lortie <desrt@desrt.ca>
19192
19193 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
19194
19195 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
19196 improperly removed string.
19197
19198 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
19199
19200 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
19201 is_disk.
19202 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
19203 (open_device) Likewise.
19204 (grub_util_biosdisk_close): Likewise.
19205 Reported by: Mark Korenberg.
19206
19207 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
19208
19209 * util/grub-mkconfig_lib.in: Add missing quotes.
19210
19211 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
19212
19213 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
19214 is NULL.
19215
19216 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
19217
19218 Dynamically count the number of lines for the lower banner.
19219
19220 * grub-core/normal/menu_entry.c (per_term_screen): New member
19221 num_entries.
19222 (print_down): Use num_entries.
19223 (update_screen): Likewise.
19224 (grub_menu_entry_run): Set num_entries.
19225 * grub-core/normal/menu_text.c (menu_viewer_data): New member
19226 num_entries.
19227 (grub_print_message_indented): Move real part to ...
19228 (grub_print_message_indented_real): ... here. Additional argument
19229 dry_run.
19230 (draw_border): Additional argument num_entries.
19231 (print_message): Additional argument dry_run.
19232 (print_entries): Receive menu viewer data.
19233 (grub_menu_init_page): New argment num_entries.
19234 (menu_text_set_chosen_entry): Use num_entries.
19235 (grub_menu_try_text): Likewise.
19236 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
19237 All users updated.
19238 (grub_ucs4_count_lines): New function.
19239 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
19240 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
19241 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
19242 (grub_term_border_height): Likewise.
19243 (grub_term_num_entries): Likewise.
19244
19245 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
19246
19247 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
19248 Remove now unused string.
19249
19250 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
19251
19252 * docs/grub-dev.texi (Finding your way around): Update for 1.99
19253 build system.
19254 (Getting started): GRUB is developed in Bazaar now, not Subversion.
19255
19256 (Comment): Fix typo.
19257 (Getting started): General copy-editing.
19258 (Typical Development Experience): Likewise.
19259 (Error Handling): Likewise.
19260 (Video API): Likewise.
19261
19262 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
19263
19264 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
19265 throughout.
19266
19267 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19268
19269 * util/grub-mkimage.c (main): Handle special naming of yeeloong
19270 directory.
19271
19272 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
19273
19274 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
19275 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
19276 "development".
19277
19278 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19279
19280 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
19281 grub_strcpy since the lines aren't necessarily 0-terminated.
19282
19283 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19284
19285 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
19286 root on legacy.
19287
19288 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19289
19290 * grub-core/commands/probe.c (options): Argument to set isn't optional.
19291 (GRUB_MOD_INIT): DEVICE isn't optional.
19292
19293 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19294
19295 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
19296 word on new line if it's too long anyway. Fixes a hang.
19297
19298 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19299
19300 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
19301 const.
19302 * util/grub-setup.c (main): Reuse md device name if available.
19303 * util/raid.c (grub_util_raid_getmembers): Receive device name and
19304 not GRUB name as argument.
19305 Based on patch by: Florian Wagner <fwagner>.
19306
19307 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19308
19309 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
19310 Place mbi on low memory for better compatibility.
19311
19312 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19313
19314 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
19315
19316 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19317 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
19318
19319 * autogen.sh: Ensure that collate and ctype locale is C.
19320 * conf/Makefile.common: Likewise.
19321
19322 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19323
19324 * grub-core/normal/menu.c: Add missing include.
19325
19326 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19327
19328 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
19329
19330 2011-04-08 Martin Zuther <mzuther@mzuther.de>
19331
19332 * util/grub-mkconfig.in: Ignore emacsen backup.
19333
19334 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19335
19336 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
19337 on open.
19338 (grub_util_biosdisk_close): Likewise.
19339
19340 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19341
19342 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
19343 const attribute and use grub_isdigit.
19344
19345 2011-04-06 Andrey <dev_null@ukr.net>
19346
19347 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
19348 gcc warning.
19349
19350 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
19351
19352 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
19353 useful grub_dprintf's.
19354
19355 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
19356
19357 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
19358
19359 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
19360
19361 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
19362
19363 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
19364
19365 Output errors if theme loading failed.
19366
19367 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
19368 grub_gfxterm_fullscreen on error paths to ...
19369 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
19370 theme loading error.
19371
19372 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
19373
19374 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
19375 space for older compilers.
19376 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
19377
19378 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
19379
19380 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
19381 and report them as not RAID members since they are useless for GRUB.
19382 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
19383
19384 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
19385
19386 Increase LVM implementation robustness in order not to crash on
19387 configurations like pvmove. Previously code assumed that in some places
19388 only lvs or only pvs are used whereas it seems that they are used
19389 interchangeably.
19390
19391 * grub-core/disk/lvm.c (read_node): New function.
19392 (read_lv): Use read_node.
19393 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
19394 Match volumes only at the end when all lvs are found. Take both
19395 pvs (first) and lvs (second) into account.
19396 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
19397 mirror_* into node_*. All users updated.
19398 (grub_lvm_stripe): Merge this ...
19399 (grub_lvm_mirror): ... and this ...
19400 (grub_lvm_node): ... into this. All users updated.
19401
19402 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
19403
19404 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
19405 of function to allow further scanning for LVMs.
19406
19407 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
19408
19409 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
19410 on failed seek as it breaks open fd reusage.
19411
19412 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
19413
19414 * util/grub-install.in: Add a recommendation to use --recheck before
19415 reporting bugs.
19416
19417 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
19418
19419 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
19420 are obtained.
19421
19422 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
19423
19424 GRUB developper manual based on existing Internals section and
19425 contributions by the various authors with active copyright assignment.
19426
19427 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
19428 * docs/font_char_metrics.png: New file.
19429 * docs/font_char_metrics.txt: Likewise.
19430 * docs/grub-dev.texi: Likewise.
19431 * docs/grub.texi (Internals): Move from here ...
19432 * docs/grub-dev.texi: ... here.
19433
19434 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
19435
19436 Store the loopback device as data on loopback grub_disk structures,
19437 rather than the file it points to. This fixes use of freed memory
19438 if an existing loopback device is replaced.
19439
19440 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
19441 disk->data, not dev->file.
19442 (grub_loopback_read): Adjust file assignment to match.
19443 Fixes Ubuntu bug #742967.
19444
19445 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
19446
19447 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
19448 when replacing an existing device.
19449
19450 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
19451
19452 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
19453 memory corruptions.
19454
19455 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
19456 unsigned.
19457 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
19458 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
19459 (grub_jfs_read_inode): Likewise.
19460 (grub_jfs_opendir): Likewise. Remove now useless casts.
19461 (grub_jfs_getent): Likewise.
19462 Make ino a grub_uint32_t rather than int.
19463 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
19464 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
19465 division and module with bit operations.
19466 (grub_jfs_find_file): Make ino a grub_uint32_t.
19467 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
19468
19469 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
19470
19471 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
19472 warning. (This was in fact always initialised before use, but GCC
19473 wasn't smart enough to prove that.)
19474 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
19475
19476 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
19477
19478 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
19479 stack alignment.
19480 (efi_wrap_1): Likewise.
19481 (efi_wrap_2): Likewise.
19482 (efi_wrap_3): Likewise.
19483 (efi_wrap_4): Likewise.
19484 (efi_wrap_5): Likewise.
19485 (efi_wrap_6): Likewise.
19486 (efi_wrap_10): Likewise.
19487 Based on information by: Red Hat/Peter Jones.
19488
19489 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
19490
19491 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
19492 set-but-not-used variable.
19493
19494 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
19495
19496 * docs/grub.texi (Simple configuration): Be more explicit about
19497 GRUB_DEFAULT, and add an example.
19498 Reported by: Leslie Rhorer.
19499
19500 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
19501
19502 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
19503 shell".
19504
19505 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
19506
19507 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
19508 * util/grub.d/20_linux_xen.in: Likewise.
19509
19510 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
19511
19512 * util/grub.d/10_linux.in: Try alternative config filenames where
19513 we parse config file.
19514 * util/grub.d/20_linux_xen.in: Likewise.
19515
19516 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
19517
19518 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
19519 * util/grub.d/20_linux_xen.in: Likewise.
19520
19521 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
19522
19523 * grub-core/disk/raid.c (insert_array): Add few potentially
19524 useful grub_util_info.
19525 (grub_raid_register): Likewise.
19526
19527 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
19528
19529 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
19530 Preserve partition number in mdadm code path.
19531
19532 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
19533
19534 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
19535 few potentially useful grub_util_info.
19536
19537 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
19538
19539 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
19540
19541 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
19542
19543 * docs/grub.texi (default): Use @example rather than nested
19544 itemized lists to avoid breaking gendocs.
19545
19546 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
19547
19548 * docs/grub.texi (Future): Update.
19549
19550 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
19551
19552 * docs/grub.texi (Environment): New chapter.
19553 (Changes from GRUB Legacy): Link to "Environment block" section for
19554 details of limitations.
19555 (Simple configuration): Likewise. Link to documentation of gfxmode
19556 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
19557 respectively.
19558 (Shell-like scripting): Note that normal variables are stored in the
19559 environment.
19560 (gettext): Link to documentation of lang and locale_dir.
19561 (list_env): New section.
19562 (load_env): New section.
19563 (save_env): New section.
19564
19565 (Reporting bugs): Fix typo.
19566
19567 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
19568
19569 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
19570 the example.
19571
19572 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
19573
19574 * grub-core/term/at_keyboard.c (set_scancodes)
19575 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
19576
19577 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
19578
19579 * docs/grub.texi (Menu-specific commands): Remove some semantics
19580 that were true in GRUB Legacy but not in GRUB 2.
19581 (submenu): New section.
19582 (false): New section.
19583 (read): New section.
19584 (true): New section.
19585
19586 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
19587
19588 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
19589
19590 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
19591
19592 * docs/grub.texi (Simple configuration): Explain some of the
19593 current limitations of grub-mkconfig.
19594 Reported by: Leslie Rhorer.
19595
19596 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
19597
19598 Old macs search for boot.efi rather than for bootia32.efi.
19599
19600 * util/grub-install.in: Copy bootia32.efi to boot.efi.
19601 * util/grub-mkrescue.in: Likewise.
19602 Suggested by: Peter Jones.
19603
19604 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
19605
19606 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
19607
19608 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
19609
19610 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
19611 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
19612 (grub_lvm_mirror): New struct.
19613 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
19614 (grub_lvm_iterate): Iterate only visible volumes.
19615 (grub_lvm_read): Factor out to ..
19616 (read_lv): ... this. Support mirrors.
19617 (grub_lvm_read): New wrapper function.
19618 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
19619 stripped or mirrored.
19620
19621 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
19622
19623 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
19624
19625 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
19626
19627 * docs/grub.texi (loopback): New section.
19628
19629 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
19630
19631 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
19632 removed -p option.
19633
19634 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
19635
19636 * docs/grub.texi (BIOS installation): New section, partly based on
19637 previous text in other sections.
19638 (Installing GRUB using grub-install): Replace BIOS discussion with a
19639 cross-reference.
19640 (Images): Likewise.
19641
19642 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
19643
19644 * grub-core/kern/emu/hostdisk.c (find_partition_start)
19645 [HAVE_DIOCGDINFO]: Add safety checks.
19646
19647 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
19648
19649 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
19650 per default compiled in kernel and prior to 8.0 isn't shipped at all.
19651
19652 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
19653
19654 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
19655 real_sb->size is zero (e.g. RAID-0), get the disk size from
19656 real_sb->data_size instead.
19657 Fixes Ubuntu bug #743136.
19658
19659 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
19660
19661 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
19662 printf clauses for printing size and start.
19663
19664 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
19665
19666 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
19667 Reported and tested by: Timothy Nikkel.
19668
19669 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
19670
19671 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
19672 (dirty_region_add_real): ... this.
19673 (dirty_region_add): Don't discard margin refresh when performing
19674 scheduled repaint.
19675
19676 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
19677
19678 * grub-core/lib/relocator.c (allocate_regstart)
19679 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
19680 terminals are capabple of malloc-free operation.
19681 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
19682 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
19683
19684 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
19685
19686 * util/grub-setup.c: Copy the partition table zone if floppy support
19687 is disabled, even if no partition table is found.
19688
19689 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
19690 during POST if an invalid partition table is contained in the PBR
19691 of the active partition when GRUB is installed to a partition.
19692
19693 2011-03-28 Colin Watson <cjwatson@debian.org>
19694
19695 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
19696 comment.
19697
19698 2011-03-28 Colin Watson <cjwatson@debian.org>
19699
19700 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
19701 to be specific about what kind of RAID device we're scanning for.
19702
19703 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
19704
19705 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
19706 return freed string.
19707
19708 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
19709
19710 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
19711
19712 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
19713
19714 Use libgeom on FreeBSD to detect partitions.
19715
19716 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
19717 (grub-mkrelpath): Likewise.
19718 (grub-script-check): Likewise.
19719 (grub-editenv): Likewise.
19720 (grub-mkpasswd-pbkdf2): Likewise.
19721 (grub-fstest): Likewise.
19722 (grub-mkfont): Likewise.
19723 (grub-mkdevicemap): Likewise.
19724 (grub-probe): Likewise.
19725 (grub-setup): Likewise.
19726 (grub-ofpathname): Likewise.
19727 (grub-mklayout): Likewise.
19728 (example_unit_test): Likewise.
19729 (grub-menulst2cfg): Likewise.
19730 * grub-core/Makefile.core.def (grub-emu): Likewise.
19731 (grub-emu-lite): Likewise.
19732 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
19733 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
19734 define HAVE_DIOCGDINFO.
19735 (follow_geom_up) [FreeBSD]: New function.
19736 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
19737 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
19738 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
19739 unconditionally of HAVE_DIOCGDINFO.
19740
19741 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
19742
19743 Fix FreeBSD compilation problem.
19744
19745 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
19746 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
19747
19748 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
19749
19750 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
19751 Switch back to page zero before loading a kernel, since some kernel
19752 drivers expect that.
19753 Thanks to: Felix Kuehling.
19754
19755 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
19756
19757 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
19758 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
19759 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
19760
19761 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
19762
19763 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
19764 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
19765
19766 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
19767
19768 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
19769 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
19770 malloc is disabled.
19771
19772 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
19773
19774 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
19775 for modules headers when counting the needed allocation size.
19776
19777 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
19778
19779 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
19780 if no ASCII character is found to prevent crash.
19781
19782 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
19783
19784 * grub-core/video/bitmap.c (match_extension): Ignore case.
19785
19786 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
19787
19788 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
19789
19790 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
19791
19792 * grub-core/script/parser.y: Declare "time" as valid argument.
19793
19794 2011-03-23 Peter Jones <pjones@redhat.com>
19795
19796 Fix incorrect assert failure reporting.
19797
19798 * grub-core/tests/example_functional_test.c (example_test): Add
19799 a failure comment.
19800 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
19801 (failure_start): ...this. Check that malloc succeeded.
19802 Don't call xvasprintf. Return failure struct.
19803 (failure_append_vtext): New function.
19804 (failure_append_text): Likewise.
19805 (add_failure): Likewise.
19806 (grub_test_assert_helper): Likewise.
19807 * include/grub/test.h (grub_test_assert_helper): New declaration.
19808 (grub_test_assert): Macro rewritten.
19809
19810 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
19811
19812 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
19813
19814 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
19815
19816 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
19817
19818 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
19819
19820 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
19821 into GRUB-style one.
19822
19823 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
19824
19825 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
19826 error and not grub_errno.
19827 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
19828
19829 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
19830
19831 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
19832 GRUB_USB_SPEED_NONE in case of failure and not the error code.
19833
19834 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
19835
19836 * grub-core/efiemu/i386/pc/cfgtables.c
19837 (grub_machine_efiemu_init_tables): Make declaration a prototype.
19838 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
19839 (grub_xnu_unlock): Likewise.
19840 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
19841
19842 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
19843
19844 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
19845 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
19846 * grub-core/commands/hashsum.c (aliases): Likewise.
19847 * grub-core/commands/setpci.c (pci_registers): Likewise.
19848 * grub-core/disk/usbms.c (attach_hook): Likewise.
19849 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
19850 (zio_checksum_table): Likewise.
19851 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
19852 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
19853 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
19854 * grub-core/lib/relocator.c (leftovers): Likewise.
19855 (extra_blocks): Likewise.
19856 * grub-core/loader/i386/bsd.c (relocator): Likewise.
19857 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
19858 (modules_last): Likewise.
19859 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
19860 (devices): Likewise.
19861 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
19862 (modules_last): Likewise.
19863 * grub-core/normal/auth.c (users): Likewise.
19864 * grub-core/normal/context.c (initial_menu): Likewise.
19865 (current_menu): Likewise.
19866 * grub-core/normal/crypto.c (crypto_specs): Likewise.
19867 * grub-core/term/serial.c (grub_serial_ports): Likewise.
19868 (grub_serial_terminfo_input_template): Likewise.
19869 (grub_serial_terminfo_output_template): Likewise.
19870 (grub_serial_terminfo_input): Likewise.
19871 (grub_serial_terminfo_output): Likewise.
19872 (registered): Likewise.
19873 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
19874
19875 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
19876
19877 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
19878 grub_video_mode_type_t.
19879 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
19880 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
19881 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
19882
19883 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
19884
19885 * util/grub-install.in: Correct the x86-64 name as x86_64.
19886
19887 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
19888
19889 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
19890 initial chunk read from the kernel always includes GRUB's multiboot
19891 header, which is now outside the first sector.
19892
19893 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
19894
19895 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
19896 cached mmap_size, so that this works correctly when called multiple
19897 times.
19898 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
19899
19900 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
19901
19902 * docs/grub.texi (Simple configuration): Tidy up formatting.
19903
19904 2011-03-07 Szymon Janc <szymon@janc.net.pl>
19905
19906 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
19907 Set-but-not-used variable removed.
19908
19909 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
19910
19911 Workaround yet another IEEE1275 bug.
19912
19913 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
19914 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
19915 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
19916 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
19917 is set.
19918 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
19919 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
19920
19921 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
19922
19923 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
19924 error.
19925
19926 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
19927
19928 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
19929 empty, since in that case we can only generate either nothing or a
19930 syntactically invalid configuration file.
19931 Reported by: Michal Suchanek. Fixes Debian bug #612898.
19932
19933 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
19934
19935 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
19936 (Making a GRUB bootable CD-ROM): Likewise.
19937 (Invoking grub-mkrescue): New section.
19938 Reported by: Yann Dirson. Fixes Debian bug #612585.
19939
19940 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
19941
19942 * util/grub-install.in: Remove unnecessary brackets from tr
19943 arguments.
19944 * util/grub.d/10_hurd.in: Likewise.
19945 * util/grub.d/10_kfreebsd.in: Likewise.
19946 * util/grub.d/10_linux.in: Likewise.
19947 * util/grub.d/20_linux_xen.in: Likewise.
19948 Reported by: Jamie Heilman. Fixes Debian bug #612564.
19949
19950 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
19951
19952 * include/grub/file.h (not_easly_seekable): Rename to ...
19953 (not_easily_seekable): ... this. Update all users.
19954
19955 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
19956
19957 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
19958 grub-mkrescue.
19959
19960 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
19961
19962 * util/grub-mkimage.c (generate_image): Refuse to create the images
19963 bigger than the actual flash (512K) in Loongson machines. 512K is also
19964 the biggest chip supported by them.
19965
19966 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
19967
19968 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
19969
19970 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
19971
19972 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
19973 super_offset field.
19974
19975 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
19976
19977 * util/grub-install.in: Ignore install device on platforms
19978 where it doesn't make sense. Always use UUIDs except on pc, efi and
19979 sparc64.
19980 Reported by: Daniel Kahn Gillmor.
19981
19982 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
19983
19984 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
19985
19986 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
19987
19988 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
19989 (iterate_real): Don't rely on partition being non-NULL.
19990
19991 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
19992
19993 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
19994 supported platforms. Put a compile time assert for this rather than
19995 generate a warning with 32-bit shift.
19996
19997 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
19998
19999 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
20000 logical expression more readable.
20001
20002 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
20003
20004 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
20005 even if some elements have a name.
20006 Reported by: Alexander GQ Gerasiov.
20007
20008 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
20009
20010 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
20011 path unreadable if `grub-probe -t abstraction' fails, for example if
20012 memberlist fails on an LVM volume group.
20013 Reported by: Darius Jahandarie.
20014
20015 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
20016
20017 * docs/grub.texi (Simple configuration): Document
20018 GRUB_PRELOAD_MODULES.
20019
20020 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
20021
20022 * .bzrignore: Remove nonexistent grub-pbkdf2.
20023
20024 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
20025
20026 * configure.ac: Bump version to 1.99~rc1.
20027
20028 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
20029
20030 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
20031 for safety.
20032
20033 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
20034
20035 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
20036 module.
20037
20038 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
20039
20040 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
20041
20042 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
20043
20044 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
20045 diskdevid.
20046
20047 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
20048
20049 Fix compilation on cygwin.
20050
20051 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
20052 -R .drectve on cygwin.
20053 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
20054 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
20055 (COND_CYGWIN): New condition.
20056 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
20057 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
20058 not @TARGET_OBJ2ELF@.
20059 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
20060 type to determine whether aux is to be used.
20061
20062 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
20063
20064 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
20065 realpath'ed device string.
20066 Handle floppy (somewhat).
20067 Issue error in unknown case rather than garbage.
20068 Reported by: Axel Beckert.
20069
20070 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
20071
20072 * util/grub.d/00_header.in (load_video): Handle the case when no video
20073 drivers available.
20074 Thanks to: Axel Beckert.
20075
20076 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
20077
20078 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
20079 variable. Fixes problem on big endian platforms.
20080
20081 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
20082
20083 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
20084 It doesn't work well there.
20085
20086 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
20087
20088 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
20089 warning.
20090 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
20091 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
20092 counter.
20093
20094 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
20095
20096 Use alias->path rather than buggy "canon".
20097
20098 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
20099 (ofdisk_hash_add): New argument curcan. All users updated.
20100
20101 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
20102
20103 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
20104
20105 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
20106
20107 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
20108 loadmask before doing any calculations. Use correct type for offset.
20109 (grub_linux_load64): Likewise.
20110
20111 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
20112
20113 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
20114 with NULL.
20115 (console_grub_equivalences_unshift): Likewise.
20116 Reported by: Daniel Dehennin.
20117
20118 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
20119
20120 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
20121 (set_env_limn_ro): Likewise.
20122 (GRUB_MOD_INIT): Likewise.
20123 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
20124 ARRAY_SIZE while on it.
20125 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
20126 * grub-core/normal/context.c (grub_env_export): Move from here ...
20127 * grub-core/kern/env.c (grub_env_export): ... here.
20128 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
20129 prefix.
20130 * grub-core/kern/main.c (grub_main): Export root and prefix.
20131 * include/grub/env.h (grub_env_export): Export.
20132 Reported by: Seth Goldberg.
20133
20134 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
20135
20136 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
20137 Take into account space used by ELF sections and multiboot palette.
20138 Reported by: Grégoire Sutre.
20139
20140 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
20141
20142 * BUGS: New file.
20143
20144 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20145
20146 Pass more appropriate video id to Linux.
20147
20148 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
20149 grub_video_get_driver_id and variable gfxpayloadforcelfb to
20150 fill have_vga.
20151 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
20152 shift params->lfb_size.
20153 * include/grub/i386/linux.h: Make an enume out of have_vga values.
20154
20155 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20156
20157 * util/grub-menulst2cfg.c: Add missing include of misc.h.
20158
20159 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20160
20161 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
20162 separator and pass bootpath/devid even if only one of them is available.
20163 Reported by: Seth Goldberg.
20164
20165 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20166
20167 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
20168 implementations bug on them.
20169
20170 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
20171 memory.
20172 (filter_memory_map): Likewise.
20173
20174 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20175
20176 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
20177 Reported by: nebuchadnezzar.
20178
20179 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20180
20181 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
20182 Reported by: nebuchadnezzar.
20183
20184 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20185
20186 Submenu default support.
20187
20188 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
20189 auto_boot. All users updated.
20190 Declared static.
20191 Handle chosen and default with submenus.
20192 (grub_menu_execute_with_fallback): Declared static.
20193 Don't notify failure if autobooted. Upper level does it.
20194 (menuentry_eq): New function.
20195 (get_entry_number): Use menuentry_eq.
20196 (show_menu): New parameter "autobooted". All users updated.
20197 (grub_show_menu): Likewise.
20198 * include/grub/normal.h (grub_show_menu): Likewise.
20199 * include/grub/menu.h (grub_menu_execute_entry): Removed.
20200 (grub_menu_execute_with_fallback): Likewise.
20201
20202 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20203
20204 * util/grub-mklayout.c (usage): Update help text.
20205
20206 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20207
20208 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
20209
20210 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20211
20212 * util/grub-menulst2cfg.c (main): Trim the line.
20213
20214 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20215
20216 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
20217 (grub_machine_init): Don't check amount of low memory as reportedly
20218 INT 12h can be broken and if low memory is too low we wouldn't have
20219 gotten into grub_machine_init anyway.
20220
20221 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20222
20223 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
20224 (grub_machine_mmap_iterate): Take low memory into account
20225
20226 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20227
20228 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
20229 badfs.
20230 Reported by: TiCPU.
20231
20232 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20233
20234 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
20235 members errors.
20236
20237 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
20238
20239 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
20240 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
20241
20242 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
20243
20244 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
20245 openbsd and netbsd types being in part_bsd module.
20246
20247 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
20248
20249 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
20250 (_FILE_OFFSET_BITS): Likewise.
20251 Reported by: Seth Goldberg.
20252
20253 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20254
20255 * configure.ac: Check for libdevmapper header.
20256
20257 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
20258
20259 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
20260 avoid aliasing.
20261 (fzap_lookup): Likewise.
20262 (dnode_get): Likewise.
20263 (make_mdn): Likewise.
20264 (zfs_mount): Likewise.
20265 (fzap_iterate): Use temporary pointer to avoid aliasing.
20266 (grub_zfs_read): Likewise.
20267 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
20268 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
20269 pointers to avoid aliasing.
20270 (grub_cmd_xnu_kernel64): Likewise.
20271 (grub_xnu_load_driver): Likewise.
20272
20273 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
20274
20275 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
20276 aliasing warning.
20277 (grub_cmd_terminal_output): Likewise.
20278 Reported and tested by: Grégoire Sutre.
20279
20280 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
20281
20282 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
20283 warning.
20284 Reported and tested by: Grégoire Sutre.
20285
20286 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
20287
20288 * configure.ac: Do CPU substitution even if it's specified explicitly.
20289 Reported and tested by: Alain Greppin.
20290
20291 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
20292
20293 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
20294 Reported and tested by: Alain Greppin.
20295
20296 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
20297
20298 Satisfy some bison versions need for inttypes.h.
20299
20300 * grub-core/lib/posix_wrap/inttypes.h: New file.
20301 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
20302 (int16_t): Likewise.
20303 (int32_t): Likewise.
20304 (int64_t): Likewise.
20305 Reported and tested by: Alain Greppin.
20306
20307 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
20308
20309 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
20310 Silence spurious warning.
20311 Reported and tested by: Alain Greppin.
20312
20313 2011-01-07 Szymon Janc <szymon@janc.net.pl>
20314
20315 * docs/grub.texi (Support automatic decompression): Update with xz
20316 decompression support.
20317
20318 2011-01-07 Szymon Janc <szymon@janc.net.pl>
20319
20320 Improve loaders' kernel command line handling.
20321
20322 * grub-core/lib/cmdline.c: New file.
20323 * include/grub/lib/cmdline.h: Likewise.
20324 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
20325 grub_create_loader_cmdline to create kernel command line.
20326 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
20327 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
20328 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
20329 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
20330 (linux): Add lib/cmdline.c on common.
20331
20332 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
20333
20334 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
20335 inopos might be unaligned.
20336
20337 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
20338
20339 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
20340 endian transformations.
20341 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20342 Based on report by: Doug Nazar.
20343
20344 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
20345
20346 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
20347 array->members[i].start_sector.
20348 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
20349
20350 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
20351
20352 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
20353 Reported and tested by: Grégoire Sutre.
20354
20355 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
20356
20357 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
20358 avoid causing test failures by clearing the screen.
20359
20360 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
20361
20362 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
20363 Fix prefix check to handle the case where dir ends with a slash
20364 (most significantly, "/" itself).
20365 Reported by: Michael Vogt.
20366
20367 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
20368
20369 Run terminfo_cls on initing terminfo output to clear the screen and
20370 move the cursor to (0,0).
20371
20372 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
20373 Call grub_terminfo_output_init.
20374 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
20375 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
20376 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
20377
20378 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
20379
20380 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
20381 only when needed.
20382
20383 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
20384
20385 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
20386 CTRL.
20387
20388 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
20389
20390 The E820 type 5 is BADRAM, not EXEC_CODE.
20391
20392 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
20393 (GRUB_E820_BADRAM): New define.
20394 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
20395 into reserved. Propagate BADRAM.
20396 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
20397 (GRUB_E820_BADRAM): New define.
20398
20399 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
20400
20401 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
20402 Ignore the memory post-4G.
20403 (grub_relocator_firmware_alloc_region): Additional debug statement.
20404
20405 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
20406
20407 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
20408 names.
20409 Reported by: David Pravec.
20410
20411 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
20412
20413 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
20414 BIOSes.
20415
20416 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
20417
20418 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
20419 Prevent overflow.
20420 (grub_reed_solomon_recover): Likewise.
20421
20422 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
20423
20424 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
20425
20426 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
20427
20428 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
20429 variable.
20430
20431 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
20432
20433 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
20434 descriptions of extract_legacy_entries_source and
20435 extract_legacy_entries_configfile.
20436 Reported by: Seung Soo, Ha.
20437
20438 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
20439
20440 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
20441 on devices that do not implement function 0.
20442
20443 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
20444
20445 * grub-core/fs/hfsplus.c: Make parent unsigned.
20446 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
20447 overflows.
20448 (grub_hfsplus_cmp_extkey): Likewise
20449
20450 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
20451
20452 * util/grub-install.in: Correctly use bootloader_id and not
20453 GRUB_DISTRIBUTOR on efibootmgr line.
20454
20455 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
20456
20457 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
20458
20459 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
20460
20461 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
20462 Xen and reorder menu item wording to make it clearer that this entry
20463 will launch Xen. Print separate messages when loading Xen and
20464 Linux.
20465
20466 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
20467
20468 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
20469 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
20470 loop in case of incorrect amiga partmap.
20471
20472 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
20473
20474 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
20475 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
20476 Reported by:EHeM.
20477
20478 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
20479
20480 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
20481 spurious warning.
20482 Reported by: crocket
20483
20484 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
20485
20486 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
20487 Preload EFIemu.
20488 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
20489
20490 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
20491
20492 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
20493 is loaded
20494 (grub_cmd_xnu_kextdir): Likewise.
20495 (grub_cmd_xnu_splash): Likewise.
20496
20497 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
20498
20499 Avoid using Reed-Solomon with 0 redundancy.
20500
20501 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
20502 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
20503 or 0 redundancy.
20504 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
20505 (grub_reed_solomon_recover): Likewise.
20506
20507 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
20508
20509 Don't use disk subsystem in freebsd_boot.
20510
20511 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
20512 (freebsd_biosdev): Likewise.
20513 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
20514 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
20515
20516 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
20517
20518 Handling of files of unknown size is currently limited. They can't be
20519 used e.g. for initrd or modules. Moreover gzip handling of not
20520 easily seekable files is buggy. Disable unknown file size for now. May
20521 be inefficient but works.
20522
20523 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
20524 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
20525
20526 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
20527
20528 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
20529 floppy probe.
20530
20531 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
20532
20533 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
20534
20535 2010-12-25 Shea Levy <shlevy>
20536
20537 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
20538
20539 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
20540
20541 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
20542 Windows Server 2008.
20543 Reported by: Devin Giddings.
20544
20545 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
20546
20547 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
20548 writing an error message because of async power management.
20549 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
20550 (grub_reboot): Likewise.
20551
20552 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
20553
20554 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
20555 keep unit tests from failing when they shouldn't.
20556
20557 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
20558
20559 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
20560 previous patch increased the size of the RS code by 20 bytes (at
20561 least with gcc-4.4), so increase this by 20 bytes to match.
20562 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
20563
20564 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
20565
20566 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
20567 scratch area. Make sure to initialise chosen in standalone mode as
20568 well as non-standalone.
20569 Reported by: Robert Hooker and Andy Whitcroft.
20570 Tested by: Andy Whitcroft.
20571
20572 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
20573
20574 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
20575 constructing a new unescaped string and passing it to grub_xputs in
20576 one go, rather than passing characters to grub_printf one at a time.
20577
20578 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
20579
20580 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
20581 initialising utf16.
20582
20583 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
20584
20585 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
20586 comment. Add an extra layer of quotation, requiring the output of
20587 this function to be used in a printf format string.
20588 (gettext_printf): New function.
20589 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
20590 Extract translatable strings from here-documents and use a temporary
20591 variable instead, so that xgettext can find them.
20592 * util/grub.d/10_kfreebsd.in: Likewise.
20593 * util/grub.d/10_linux.in: Likewise.
20594 * util/grub.d/20_linux_xen.in: Likewise.
20595
20596 * po/grub.d.sed: New file.
20597 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
20598 arguments. Set c-format flags on all strings extracted from
20599 util/grub.d/ (xgettext refuses to include these itself for strings
20600 it extracted from a shell file, but these really are c-format).
20601
20602 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
20603
20604 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
20605 Avoid next pointing to nowhere.
20606
20607 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
20608
20609 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
20610 rather than assuming than rootblock is exactly in the middle.
20611 (grub_affs_label): Likewise.
20612
20613 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
20614
20615 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
20616 reserved_first_sector to 0.
20617 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
20618 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
20619 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
20620
20621 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
20622
20623 Fix handling of UTF-16 UDF labels.
20624
20625 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
20626 (read_string): .. here.
20627 (grub_udf_label): Use read_string.
20628
20629 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
20630
20631 * grub-core/normal/menu_entry.c (run): Execute commands from menu
20632 editor under argument scope.
20633 Reported by: Jordan Uggla
20634
20635 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
20636
20637 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
20638
20639 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
20640
20641 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
20642 line, and other keys scroll an entire page (previous handling was
20643 for \r and \n to scroll a page and other keys to scroll two lines).
20644
20645 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
20646
20647 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
20648 Set ptrdest to correct get_physical_target_address rather than
20649 incorrect get_virtual_current_address.
20650
20651 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
20652
20653 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
20654 correct cat to grub_uint8_t * rather than grub_uint32_t *.
20655
20656 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
20657
20658 * .bzrignore: Ignore grub-core/rs_decoder.S.
20659
20660 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
20661
20662 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
20663 .mo/.mo.gz opening sequence to ...
20664 (grub_mofile_open_lang): ... here.
20665 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
20666 * util/grub.d/00_header.in (grub_lang): Include country part of
20667 locale.
20668 Reported by: Mario Limonciello.
20669
20670 2010-12-09 Robert Millan <rmh@gnu.org>
20671
20672 * NEWS: Document addition of ZFS support.
20673
20674 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
20675
20676 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
20677 rather than `/ 2', as the latter requires -Wa,--divide which would
20678 require bumping our minimum binutils version.
20679
20680 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
20681
20682 * util/grub-script-check.c (main): Print script line number on
20683 error.
20684
20685 2010-12-01 Robert Millan <rmh@gnu.org>
20686
20687 * grub-core/fs/zfs/zfs.c: New file.
20688 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
20689 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
20690 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
20691 * grub-core/fs/zfs/zfsinfo.c: Likewise.
20692
20693 * include/grub/zfs/dmu.h: Likewise.
20694 * include/grub/zfs/dmu_objset.h: Likewise.
20695 * include/grub/zfs/dnode.h: Likewise.
20696 * include/grub/zfs/dsl_dataset.h: Likewise.
20697 * include/grub/zfs/dsl_dir.h: Likewise.
20698 * include/grub/zfs/sa_impl.h: Likewise.
20699 * include/grub/zfs/spa.h: Likewise.
20700 * include/grub/zfs/uberblock_impl.h: Likewise.
20701 * include/grub/zfs/vdev_impl.h: Likewise.
20702 * include/grub/zfs/zap_impl.h: Likewise.
20703 * include/grub/zfs/zap_leaf.h: Likewise.
20704 * include/grub/zfs/zfs.h: Likewise.
20705 * include/grub/zfs/zfs_acl.h: Likewise.
20706 * include/grub/zfs/zfs_znode.h: Likewise.
20707 * include/grub/zfs/zil.h: Likewise.
20708 * include/grub/zfs/zio.h: Likewise.
20709 * include/grub/zfs/zio_checksum.h: Likewise.
20710
20711 * Makefile.util.def: Build ZFS into libgrubmods.
20712 * grub-core/Makefile.core.def: Build zfs.mod.
20713
20714 2010-11-30 Szymon Janc <szymon@janc.net.pl>
20715
20716 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
20717 variable.
20718 * grub-core/commands/wildcard.c (match_files): Likewise.
20719
20720 2010-11-30 Robert Millan <rmh@gnu.org>
20721
20722 * grub-core/loader/i386/bsd.c
20723 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
20724 whether kernel is loaded using grub_loader_is_loaded(), rather
20725 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
20726 certain error conditions.
20727
20728 2010-11-30 Robert Millan <rmh@gnu.org>
20729
20730 * grub-core/commands/echo.c: Include `<grub/term.h>'.
20731 (grub_cmd_echo): Call grub_refresh() after printing a message.
20732
20733 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
20734
20735 Avoid using tricks for initialising endian variables.
20736
20737 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
20738 Make const.
20739 (GRUB_MOD_INIT): Don't byte-swap.
20740 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
20741 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
20742 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
20743 (grub_swap_bytes32_compile_time): Likewise.
20744 (grub_cpu_to_le32_compile_time): Likewise.
20745 (grub_cpu_to_le16_compile_time): Likewise.
20746
20747 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
20748
20749 * util/grub-setup.c (setup): Stop recommending --force. People who
20750 understand the dangers of blocklists are able to find this option
20751 anyway and the ones who don't shouldn't use it anyway.
20752
20753 2010-11-26 Robert Millan <rmh@gnu.org>
20754
20755 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
20756 Update all users.
20757
20758 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
20759
20760 Fix LVM-on-RAID probing.
20761
20762 * util/grub-probe.c (probe): Remember which disk was detected as
20763 RAID (perhaps an LVM physical volume). Use that disk's raidname
20764 rather than that of the top-level disk.
20765
20766 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
20767
20768 Fix cmdline argument quotes for setparams command of menuentry
20769 definitions.
20770
20771 * grub-core/commands/menuentry.c (setparams_prefix): Use single
20772 quotes for arguments.
20773 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
20774 grub_strchrsub function instead.
20775
20776 * include/grub/misc.h (grub_strchrsub): New function.
20777
20778 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
20779
20780 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
20781 effort by skipping "." and ".." entries up-front.
20782 Suggested by: Michael Lazarev.
20783
20784 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
20785
20786 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
20787 ldflags to ldadd, to fix link line ordering.
20788 (none_decompress): Likewise.
20789
20790 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
20791
20792 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
20793 platforms.
20794 (grub-emu-lite): Remove kern/emu/cache.S.
20795
20796 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
20797
20798 * util/deviceiter.c (compare_devices): If the by-id link for a
20799 device couldn't be resolved, fall back to sorting by the by-id link
20800 rather than segfaulting.
20801 Reported and tested by: Daniel Mierswa.
20802
20803 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
20804
20805 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
20806 ldflags, to fix link line ordering.
20807
20808 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
20809
20810 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
20811 linkers are picky about this.
20812
20813 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
20814
20815 * grub-core/Makefile.am (command.lst): Adjust sed expression
20816 ordering so that extended and priority commands aren't treated as
20817 ordinary commands.
20818
20819 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
20820
20821 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
20822 Remove byte-swapping function calls, which are not valid in
20823 structure initialisers.
20824 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
20825 non-const.
20826 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
20827 grub_gpt_partition_type_bios_boot.
20828
20829 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
20830
20831 Fix test program build on GNU/kFreeBSD.
20832
20833 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
20834 $(LIBNVPAIR)' library dependencies.
20835
20836 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
20837
20838 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
20839
20840 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
20841
20842 * util/grub-install.in: Remove excessive quoting that broke
20843 installations to RAID devices.
20844
20845 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
20846
20847 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
20848 bootloader version instead of 0.
20849
20850 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
20851
20852 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
20853 warning.
20854
20855 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
20856
20857 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
20858 retrieve the metadat sector if size isn't known.
20859 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20860
20861 2010-11-18 Robert Millan <rmh@gnu.org>
20862
20863 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
20864 with grub_memcmp().
20865
20866 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
20867
20868 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
20869 arrow.
20870 Reported by: Jordan Uggla.
20871
20872 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
20873
20874 Make better UTF compliant.
20875
20876 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
20877 sequences as incorrect.
20878 (grub_is_valid_utf8): Likewise.
20879 (grub_utf8_to_ucs4): Likewise.
20880 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
20881 (grub_ucs4_to_utf8_alloc): Likewise.
20882 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
20883
20884 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
20885
20886 Make legacy_source behave like source.
20887
20888 * grub-core/commands/legacycfg.c (legacy_file): Don't call
20889 grub_show_menu.
20890 (grub_cmd_legacy_source): Call grub_show_menu if needed.
20891
20892 2010-11-16 Colin Watson <cjwatson@debian.org>
20893
20894 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
20895 (-Wunused implies -Wunused-parameter, but not vice versa).
20896
20897 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
20898
20899 * configure.ac: Make error messages less confusing by testing for
20900 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
20901 accepted, but produces a diagnostic if something else is wrong).
20902
20903 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
20904
20905 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
20906 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
20907 (now unused).
20908 (grub_keyboard_controller_init)
20909 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
20910 read the initial state since controller isn't inited yet.
20911
20912 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
20913
20914 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
20915 allocate_regbeg may need to create new chunk header.
20916
20917 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
20918
20919 Fix quoting in legacy parser.
20920
20921 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
20922 single quotes.
20923 (grub_legacy_parse): Likewise.
20924 Reported by: Jordan Uggla.
20925 Tested by: Jordan Uggla.
20926
20927 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
20928
20929 Don't add -lgcc on i386 and x86_64.
20930
20931 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
20932 * conf/Makefile.common (LDADD_KERNEL): Likewise.
20933 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
20934
20935 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
20936
20937 * configure.ac: Add -Wno-trampolines when supported.
20938
20939 2010-11-14 Modestas Vainius <modax@debian.org>
20940
20941 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
20942 fakeraid.
20943
20944 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
20945
20946 Add generic logical block size support for UDF.
20947
20948 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
20949 (GRUB_UDF_BLKSZ): Removed.
20950 (struct grub_udf_data): New field "lbshift" to hold the logical block
20951 size of the file system in log2 format. All users updated.
20952 (sblocklist): Change type to unsigned.
20953 (grub_udf_mount): Change type of "sblklist" to unsigned.
20954 Move AVDP search before VRS recognition, because the latter requires
20955 knowledge of the logical block size, which is detected during the
20956 former.
20957 Detect and validate logical block size during AVDP search, adding
20958 support for block sizes 512, 1024 and 4096.
20959 Make VRS recognition independent of block size.
20960
20961 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
20962
20963 Properly handle deleted files on UDF.
20964
20965 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
20966 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
20967 set.
20968
20969 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
20970
20971 Support reading files larger than 2 GiB.
20972
20973 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
20974 "offset" to grub_off_t.
20975 (grub_udf_read_file): Likewise for parameter "pos".
20976
20977 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
20978
20979 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
20980 unavailable.
20981 (Simple configuration): Refer to Changes from GRUB Legacy about
20982 save_env availability.
20983
20984 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
20985
20986 * util/grub-install.in: Ignore empty partition table detection
20987 instead of trying to include part_ module.
20988
20989 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
20990
20991 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
20992 LVM on RAID support.
20993
20994 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
20995
20996 Properly define WORDS_BIGENDIAN in wrapped environments.
20997
20998 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
20999 definition.
21000 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
21001
21002 Reported by: Manoel Rebelo Abranches.
21003 Tested by: Manoel Rebelo Abranches.
21004
21005 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
21006
21007 * util/grub-mkconfig.in: Fix quoting.
21008
21009 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
21010
21011 Support big ext2 files.
21012
21013 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
21014 (grub_ext2_read_block): Support triple indirect blocks.
21015 (grub_ext2_read_file): Use 64-bit types and read size_high.
21016 (grub_ext2_open): Read size_high.
21017 Reported by: Ximin Luo.
21018 Tested by: Manoel Rebelo Abranches.
21019
21020 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
21021
21022 * util/grub-install.in: Handle filenames containing spaces.
21023 Reported by: Jordan Uggla.
21024 Tested by: Jordan Uggla.
21025
21026 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
21027
21028 * util/grub-mkconfig.in (grub_script_check): New variable.
21029 Use grub_script_check instead of grub-script-check.
21030 Reported by: Barry Jackson.
21031
21032 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
21033
21034 * docs/grub.texi (menu): Correct the order.
21035 Reported by: D. Hugh Redelmeier.
21036
21037 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
21038
21039 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
21040 jump.
21041
21042 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
21043
21044 * include/grub/elfload.h (grub_elf32_size): New parameter.
21045 All users updated.
21046 Return maximum segments alignment.
21047 (grub_elf64_size): Likewise.
21048 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
21049 Return maximum segments alignment.
21050 (grub_elf64_size): Likewise.
21051 * grub-core/loader/powerpc/ieee1275/linux.c:
21052 (grub_linux_claimmap_iterate): New function. Uses the
21053 "available" property in the "memory" node for memory allocation
21054 for kernel in the PowerPC loader.
21055 (grub_linux_load32): Correctly find linux entry point offset.
21056 (grub_linux_load64): Likewise.
21057
21058 2010-11-07 Robert Millan <rmh@gnu.org>
21059
21060 On mips-yeeloong, build with -march=loongson2f when this flag is
21061 available (GCC >= 4.4).
21062 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
21063 `-march=mips3'.
21064 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
21065 or otherwise add -march=mips3.
21066
21067 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
21068
21069 Suppress shell expansion on echo '*' and echo "*" like cases.
21070 Reported by: Jordan Uggla.
21071
21072 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
21073 string arguments before shell expansion.
21074 * tests/grub_cmd_echo.in: New testcases.
21075
21076 2010-11-07 Robert Millan <rmh@gnu.org>
21077
21078 * conf/mips-qemu-mips.rmk: Remove stale file from previous
21079 transition.
21080
21081 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
21082
21083 * grub-core/kern/emu/hostdisk.c
21084 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
21085
21086 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
21087
21088 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
21089 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
21090 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
21091
21092 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
21093
21094 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
21095
21096 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
21097
21098 * util/grub-install.in: Replace useless recomendation to pass
21099 --modules with a recomendation to report a bug.
21100
21101 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
21102
21103 Properly register serial terminfo.
21104 Reported by: Jordan Uggla
21105
21106 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
21107 const.
21108 (grub_serial_terminfo_output_template): Likewise.
21109 (grub_cmd_serial): Register "serial" with terminfo.
21110 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
21111 grub_serial_terminfo_output.
21112
21113 2010-11-05 Robert Millan <rmh@gnu.org>
21114
21115 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
21116 needed).
21117
21118 2010-11-05 Robert Millan <rmh@gnu.org>
21119
21120 On Yeeloong, pass machine type information to Linux.
21121
21122 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
21123 (LOONGSON_MACHTYPE): New macro, set to
21124 "machtype=lemote-yeeloong-2f-8.9inches".
21125 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
21126 additional argument to Linux.
21127
21128 2010-11-04 Robert Millan <rmh@gnu.org>
21129
21130 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
21131 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
21132 (its SATA disks are detected as slaveless IDE master drives on
21133 kFreeBSD).
21134 Reported by Carsten Aulbert.
21135
21136 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
21137
21138 * util/bin2h.c (main): Fix spelling error in generated output.
21139
21140 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
21141
21142 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
21143
21144 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
21145
21146 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
21147 vga= option is supplied.
21148
21149 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
21150
21151 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
21152 * util/grub.d/10_kfreebsd.in: Likewise.
21153 * util/grub.d/10_linux.in: Likewise.
21154 * util/grub.d/20_linux_xen.in: Likewise.
21155
21156 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
21157
21158 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
21159 argument as an argument to no-argument option.
21160
21161 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
21162
21163 * util/grub.d/10_linux.in: Add missing load_video with explicit
21164 GRUB_GFXPAYLOAD_LINUX.
21165
21166 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
21167
21168 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
21169
21170 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
21171
21172 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
21173 elements with invlid index.
21174 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21175 * grub-core/disk/raid.c (insert_array): Automatically reallocate
21176 members.
21177 * include/grub/raid.h (grub_raid_member): New struct.
21178 (grub_raid_array): Transform devices and start_sector into usage of
21179 grub_raid_member. All users updated
21180 (allocated_devs): New member.
21181
21182 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
21183
21184 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
21185 is modified
21186
21187 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
21188
21189 NetBSD build fix for getline function conflict from gnulib.
21190
21191 * Makefile.util.def (libgrubkern.a): New library for grub kernel
21192 components that depend on gnulib headers.
21193 (libgrubmods.a): Renamed from earlier libgrub.a.
21194 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
21195
21196 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
21197
21198 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
21199 install rather than creating a broken install.
21200
21201 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
21202
21203 * util/grub-setup.c (argp): Remove misleading example of installing to
21204 a partition.
21205
21206 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
21207
21208 * util/grub-setup.c (setup): Clarify the error message.
21209
21210 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
21211
21212 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
21213
21214 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
21215
21216 * grub-core/kern/emu/misc.c
21217 (grub_make_system_path_relative_to_its_root)
21218 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
21219
21220 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
21221
21222 * grub-core/kern/emu/misc.c
21223 (grub_make_system_path_relative_to_its_root): Revert r2882.
21224
21225 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
21226
21227 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
21228 useless field head. All users updated.
21229 (free_subchunk): Correct handling of IN_REGION subchunk.
21230
21231 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
21232
21233 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
21234 (Supported kernels): Likewise.
21235
21236 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
21237
21238 Make mktemp invocations portable.
21239
21240 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
21241 exit if mktemp fails.
21242 * tests/grub_script_blockarg.in: Likewise.
21243 * tests/partmap_test.in: Likewise.
21244 * tests/util/grub-shell-tester.in: Likewise.
21245 * tests/util/grub-shell.in: Likewise.
21246 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
21247 * Makefile.am: Likewise, and chain shell commands with `&&'
21248 instead of ';'.
21249 * util/grub-mkrescue.in: Use the same explicit template as above, and
21250 exit if mktemp fails.
21251
21252 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
21253
21254 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
21255 Linux kernel, reported by Dennis Schridde.
21256
21257 2010-10-17 Szymon Janc <szymon@janc.net.pl>
21258
21259 * grub-core/normal/auth.c (grub_auth_check_authentication):
21260 Set-but-not-used variable removed.
21261
21262 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
21263
21264 * docs/grub.texi (GNU/Linux): Document APM unavailability with
21265 32-bit linux protocol.
21266
21267 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
21268
21269 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
21270 cursor shape for sanity.
21271
21272 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
21273
21274 * docs/grub.texi (Installation): Document buggy BIOS install.
21275
21276 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
21277
21278 * docs/grub.texi (Installation): Indent.
21279
21280 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
21281
21282 * util/grub-setup.c (setup): New parameter allow_floppy.
21283 (arguments): New member allow_floppy.
21284 (argp_parser): Handle --allow-floppy.
21285 (main): Pass allow_floppy.
21286 * util/grub-install.in: New option --allow-floppy passed though to
21287 grub-setup.
21288
21289 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
21290
21291 * util/grub-install.in: Handle partitionless disks.
21292
21293 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
21294
21295 * util/grub-setup.c (setup): Don't clean blocklists before readability
21296 verfification.
21297
21298 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
21299
21300 * docs/grub.texi (Installation): Document embedding zone. Remove
21301 obsolete grub-install example.
21302
21303 2010-10-16 Szymon Janc <szymon@janc.net.pl>
21304
21305 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
21306 Set-but-not-used variable ifdef'ed.
21307 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
21308 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
21309 variable removed.
21310 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
21311 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
21312 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
21313 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
21314 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
21315 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
21316 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
21317 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
21318 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
21319 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
21320 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
21321 Likewise.
21322
21323 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
21324
21325 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
21326 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
21327 enum value.
21328
21329 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
21330
21331 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
21332 synonym to _S5_. Needed for some DSDTs.
21333
21334 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
21335
21336 Userspace ACPI parser debugging.
21337
21338 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
21339 headers and add relevant defines. Don't include standard headers.
21340 (main) [GRUB_DSDT_TEST]: New function.
21341 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
21342 Don't declare functions.
21343
21344 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
21345
21346 Remove dead grub_efi_mm_fini.
21347
21348 * grub-core/kern/efi/mm.c (allocated_page): Removed.
21349 (ALLOCATED_PAGES_SIZE): Likewise.
21350 (MAX_ALLOCATED_PAGES): Likewise.
21351 (allocated_pages): Likewise.
21352 (grub_efi_allocate_pages): Don't record allocated pages.
21353 (grub_efi_free_pages): Likewise.
21354 (grub_efi_mm_init): Likewise.
21355 (grub_efi_mm_fini): Removed.
21356
21357 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
21358
21359 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
21360 (grub_efi_mm_init): Take into account the memory map size increase.
21361
21362 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
21363
21364 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
21365 (serial_hw_put): Wait based on real time rather than port reads. Don't
21366 roken ports.
21367 * include/grub/serial.h (grub_serial_port): New field broken.
21368
21369 2010-10-16 Robert Millan <rmh@gnu.org>
21370
21371 * grub-core/kern/emu/misc.c
21372 (grub_make_system_path_relative_to_its_root): Fix premature return
21373 when processing non-root ZFS filesystems.
21374 Reported by Sergio Talens-Oliag.
21375
21376 2010-10-15 Robert Millan <rmh@gnu.org>
21377
21378 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
21379 guarantee compressed ones are processed first.
21380
21381 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
21382
21383 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
21384 grub_efiemu_autocore.
21385
21386 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
21387
21388 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
21389 rather than 0x1b.
21390 (grub_console_getkey): Use correct jae opcode rather than ja.
21391
21392 2010-10-12 Robert Millan <rmh@gnu.org>
21393
21394 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
21395 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
21396 variable. All references updated.
21397
21398 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
21399
21400 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
21401
21402 Correctly distinguish mdraid flavours.
21403
21404 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
21405 (insert_array): New argument raid.
21406 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
21407 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
21408 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
21409
21410 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
21411
21412 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
21413 handling of special keys.
21414
21415 2010-10-02 Aleš Nesrsta <starous@volny.cz>
21416
21417 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
21418 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
21419
21420 2010-10-02 Aleš Nesrsta <starous@volny.cz>
21421
21422 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
21423 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
21424 users updated.
21425 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
21426 Use right endpoint when querying descriptor.
21427
21428 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
21429
21430 Clear out 0x80 color bit on EFI.
21431 Tested by: decoder
21432 Reported by: decoder and meta tech.
21433
21434 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
21435 (grub_console_setcolorstate): Clear out 0x80 bit.
21436 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
21437 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
21438 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
21439
21440 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
21441
21442 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
21443 Set to "auto".
21444
21445 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
21446
21447 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
21448 mo_file after freeing.
21449
21450 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
21451
21452 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
21453
21454 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
21455
21456 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
21457 flags.
21458
21459 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
21460
21461 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
21462 usage.
21463
21464 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
21465
21466 Put terminfo into core on ieee1275 and yeeloong (needed for console).
21467
21468 * gentpl.py: New groups terminfoinkernel and terminfomodule.
21469 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
21470 and terminfo.h when needed.
21471 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
21472 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
21473 (terminfo): Enable only on terminfokernel.
21474 (extcmd): Likewise.
21475 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
21476 * include/grub/lib/arg.h: Likewise.
21477 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
21478 incorrect usage of ->.
21479
21480 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
21481
21482 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
21483 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
21484
21485 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
21486
21487 Fix coreboot compilation.
21488
21489 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
21490 Take VBE info into account even if only text is supported.
21491 (fill_vbe_info): Take into account the case when only VGA text
21492 is supported.
21493 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
21494 on coreboot, multiboot and qemu.
21495
21496 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
21497
21498 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
21499 debug messages.
21500 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
21501
21502 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
21503
21504 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
21505 parameters.
21506
21507 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
21508
21509 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
21510 if they were BSD-style.
21511
21512 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
21513
21514 * grub-core/boot/i386/pc/lnxboot.S: Replace
21515 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
21516 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
21517
21518 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
21519
21520 Write embedding zone using Reed-Solomon.
21521
21522 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
21523 * grub-core/Makefile.am (rs_decoder.S): New target.
21524 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
21525 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
21526 (multiboot): Move to RS part.
21527 (post_reed_solomon): New label.
21528 (grub_boot_drive): Move to non-RS part since it's modified in memory
21529 on boot.
21530 Include rs_decoder.S.
21531 * grub-core/lib/reed_solomon.c: New file.
21532 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
21533 New definition.
21534 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
21535 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
21536 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
21537 * include/grub/partition.h (grub_partition_map): Change prototype of
21538 embed to allow returning additional sectors.
21539 * include/grub/reed_solomon.h: New file.
21540 * util/grub-setup.c (setup): Handle Reed-Solomon.
21541
21542 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
21543
21544 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
21545 i386 and x86-64 definedness tests.
21546
21547 2010-09-27 Yves Blusseau <blusseau@zetam.org>
21548
21549 Fix generation of kernel_syms.lst
21550
21551 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
21552 ASM_PREFIX
21553
21554 2010-09-26 Robert Millan <rmh@gnu.org>
21555
21556 Support degraded ZFS arrays in "grub-probe -t device" resolution.
21557
21558 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
21559 the pool is an array of devices, iterate through it and return the
21560 first device that passes a stat() test (instead of blindly returning
21561 the first one).
21562
21563 2010-09-26 Robert Millan <rmh@gnu.org>
21564
21565 Build fixes for GNU/kFreeBSD.
21566
21567 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
21568 to programs that require ZFS conversion.
21569 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
21570 kernels that don't have FLOPPY_MAJOR.
21571
21572 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
21573
21574 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
21575
21576 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
21577
21578 Fix grub-emu build.
21579
21580 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
21581 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
21582 mdraid09 and mdraid1x.
21583
21584 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
21585
21586 Re-enable grub-extras.
21587
21588 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
21589 avoid confusing Automake. Run autogen only twice, once for the top
21590 level and once for grub-core. Add Makefile.util.def and
21591 Makefile.core.def from extra modules to the appropriate autogen
21592 invocations. If Makefile.common exists in an extra module, include
21593 it in both Makefile.util.am and grub-core/Makefile.core.am;
21594 similarly, include any Makefile.util.common file in Makefile.util.am
21595 and any Makefile.core.common file in grub-core/Makefile.core.am.
21596 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
21597 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
21598 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
21599 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
21600
21601 * gentpl.py (gvar_add): Turn GVARS into a set.
21602 (global_variable_initializers): Sort global variables on output.
21603 (vars_init): New function.
21604 (first_time): Likewise.
21605 (library): Ensure that non-global variable initialisations are
21606 emitted before the first time we emit code for a library block.
21607 Append to variables rather than setting them. Only emit
21608 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
21609 each conditional path.
21610 (program): installdir() emits an Autogen macro, so must be passed to
21611 var_add rather than gvar_add.
21612 (data): Likewise.
21613 (script): Likewise.
21614 (rules): New function, centralising handling for different target
21615 types. Set up Guile association lists for first_time and vars_init,
21616 and send most output to a diversion so that variable initialisations
21617 can be emitted first.
21618 (module_rules): Use new rules function.
21619 (kernel_rules): Likewise.
21620 (image_rules): Likewise.
21621 (library_rules): Likewise.
21622 (program_rules): Likewise.
21623 (script_rules): Likewise.
21624 (data_rules): Likewise.
21625
21626 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
21627
21628 * .bzrignore: Add contrib and grub-core/contrib. Remove
21629 grub-core/Makefile.gcry.am.
21630
21631 2010-09-24 Yves Blusseau <blusseau@zetam.org>
21632
21633 * grub-core/lib/LzFind.c: Add missing include.
21634 * grub-core/lib/LzmaEnc.c: Likewise.
21635 * grub-core/script/lexer.c: Likewise.
21636 * grub-core/script/yylex.l: Likewise.
21637 * util/grub-macho2img.c: Likewise.
21638 * util/grub-menulst2cfg.c: Likewise.
21639 * util/grub-mklayout.c: Likewise.
21640 * util/grub-mkpasswd-pbkdf2.c
21641 * util/grub-mkrelpath.c: Likewise.
21642 * util/resolve.c: Likewise.
21643
21644 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
21645
21646 * Makefile.util.def (example_unit_test): Add
21647 grub-core/gnulib/libgnu.a.
21648
21649 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
21650
21651 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
21652
21653 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
21654
21655 Support xz compression on yeeloong.
21656
21657 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
21658 * configure.ac: Check for LZMA.
21659 * grub-core/Makefile.core.def (xz_decompress): New target.
21660 (none_decompress): Likewise.
21661 * grub-core/boot/decompressor/minilib.c: New file.
21662 * grub-core/boot/decompressor/none.c: Likewise.
21663 * grub-core/boot/decompressor/xz.c: Likewise.
21664 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
21665 * grub-core/kern/mips/cache_flush.S: Likewise.
21666 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
21667 * grub-core/kern/mips/startup.S: Move first stage to ...
21668 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
21669 nomacro.
21670 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
21671 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
21672 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
21673 Allocate statically.
21674 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
21675 Allocate statically or use scratch. Don't check CRC32.
21676 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
21677 Allocate statically. Don't check CRC32.
21678 * include/grub/decompressor.h: New file.
21679 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
21680 Removed.
21681 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
21682 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
21683 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
21684 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
21685 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
21686 * util/grub-mkimage.c (grub_compression_t): New type.
21687 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
21688 (image_target_desc): New field default_compression.
21689 (image_targets): Adjust yeeloong targets.
21690 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
21691 (compress_kernel): New parameter comp.
21692 (generate_image): Likewise. Handle new compression case.
21693 (options): New option --compression
21694 (help): Likewise.
21695 (main): Handle new option.
21696
21697 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
21698
21699 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
21700
21701 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
21702
21703 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
21704 typo in __i386__ conditional.
21705
21706 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
21707
21708 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
21709 include.
21710
21711 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
21712
21713 Implement EFI and ACPI multiboot2 extensions.
21714
21715 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
21716 new tags as supported.
21717 (acpiv2_size): New function.
21718 (grub_multiboot_get_mbi_size): Take new tags into account.
21719 (grub_multiboot_make_mbi): Add new tags.
21720 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
21721
21722 2010-09-21 Aleš Nesrsta <starous@volny.cz>
21723
21724 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
21725 Added missing configuration of USB device.
21726
21727 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
21728
21729 * grub-core/normal/menu_entry.c (run): Make sure we always return
21730 a value.
21731
21732 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
21733
21734 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
21735 NumberOfPages is UINT64 according to the UEFI specification, not
21736 UINTN. Fix printf format.
21737
21738 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
21739
21740 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
21741 `err' to grub_usb_err_t.
21742 Reported and tested by: KESHAV P.R.
21743
21744 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
21745
21746 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
21747 tpart non-const, so that we can assign to it. (Since this is a
21748 typedef, the constness refers to the pointer rather than what it
21749 points to.)
21750
21751 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
21752
21753 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
21754 $(top_srcdir)/grub-core/gnulib as well as
21755 $(top_builddir)/grub-core/gnulib.
21756 Reported by: KESHAV P.R.
21757
21758 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
21759
21760 * util/grub-install.in: Fix the bootloader ID option to be
21761 consistently --bootloader-id, not --bootloader_id.
21762 Reported by: KESHAV P.R.
21763
21764 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
21765
21766 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
21767 check hash checksum." consistently translatable.
21768
21769 2010-09-21 Yves Blusseau <blusseau@zetam.org>
21770
21771 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
21772 $(top_builddir).
21773
21774 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
21775
21776 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
21777 (GRUB_MOD_INIT): Register sha1sum command.
21778 (GRUB_MOD_FINI): Unregister sha1sum command.
21779
21780 2010-09-21 Yves Blusseau <blusseau@zetam.org>
21781
21782 Keep boot and grub directory names in sync with utils scripts
21783
21784 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
21785 * config.h.in: Add previous macros.
21786 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
21787 * util/grub-install.in: Use $bootdir and $grubdir variables.
21788
21789 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
21790
21791 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
21792 convert partition names to disk names if the new `convert' parameter
21793 is set.
21794 (grub_util_biosdisk_get_grub_dev): If opening the disk device
21795 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
21796 disk in its own right. This can happen with Xen disk images.
21797
21798 2010-09-21 Yves Blusseau <blusseau@zetam.org>
21799
21800 * util/grub-editenv.c: Update strings to avoid warnings when generating
21801 grub.pot file.
21802 * util/grub-setup.c: Likewise.
21803
21804 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
21805
21806 * configure.ac: Change version to 1.99~beta0.
21807
21808 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
21809
21810 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
21811 Add BADRAM.
21812 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
21813 Likewise.
21814 * include/multiboot.h: Resynced with specification.
21815 * include/multiboot2.h: Likewise.
21816
21817 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
21818
21819 Fix po directory handling.
21820
21821 * configure.ac: Create po/Makefile.in rather than po/Makefile.
21822 * grub-core/gnulib/Makefile.am: Import gettext module.
21823 * m4/gnulib-cache.m4: Likewise.
21824 * m4/gnulib-comp.m4: Likewise.
21825 * m4/gettext.m4: New file, from gnulib.
21826 * m4/glibc2.m4: Likewise.
21827 * m4/iconv.m4: Likewise.
21828 * m4/intdiv0.m4: Likewise.
21829 * m4/intl.m4: Likewise.
21830 * m4/intldir.m4: Likewise.
21831 * m4/intlmacosx.m4: Likewise.
21832 * m4/intmax.m4: Likewise.
21833 * m4/inttypes-pri.m4: Likewise.
21834 * m4/lcmessage.m4: Likewise.
21835 * m4/lib-ld.m4: Likewise.
21836 * m4/lib-link.m4: Likewise.
21837 * m4/lib-prefix.m4: Likewise.
21838 * m4/lock.m4: Likewise.
21839 * m4/nls.m4: Likewise.
21840 * m4/po.m4: Likewise.
21841 * m4/printf-posix.m4: Likewise.
21842 * m4/progtest.m4: Likewise.
21843 * m4/threadlib.m4: Likewise.
21844 * m4/uintmax_t.m4: Likewise.
21845 * m4/visibility.m4: Likewise.
21846 * po/Makefile.am: Remove.
21847 * po/Makefile.in.in: New file, from gettext.
21848 ($(DOMAIN).pot-update): Support POTFILES-shell.
21849 * po/Makevars: New file.
21850 * po/POTFILES-shell: Rename to ...
21851 * po/POTFILES-shell.in: ... this. Update.
21852 * po/POTFILES: Rename to ...
21853 * po/POTFILES.in: ... this. Update.
21854 * po/Rules-quot: New file, from gettext.
21855 * po/boldquot.sed: Likewise.
21856 * po/en@boldquot.header: Likewise.
21857 * po/en@quot.header: Likewise.
21858 * po/insert-header.sin: Likewise.
21859 * po/quot.sed: Likewise.
21860 * po/remove-potcdate.sin: Likewise.
21861
21862 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
21863
21864 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
21865
21866 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
21867
21868 * util/grub.d/20_linux_xen.in: Use submenus.
21869
21870 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
21871
21872 Support submenus.
21873
21874 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
21875 parameter submenu. All users updated.
21876 * grub-core/normal/main.c (free_menu): Rename to ...
21877 (grub_normal_free_menu): ... this. Made global.
21878 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
21879 if requested.
21880 * grub-core/normal/menu_entry.c (screen): New field submenu.
21881 (make_screen): Set submenu.
21882 (run): Open new context if requested.
21883 * include/grub/menu.h (grub_menu_entry): New field submenu.
21884 * include/grub/normal.h (grub_normal_free_menu): New proto.
21885
21886 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
21887
21888 Menu entries extractor.
21889
21890 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
21891 variants.
21892 (GRUB_MOD_INIT): Register new variants.
21893 (GRUB_MOD_FINI): Unregister new variants.
21894 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
21895 into grub_cmd_legacy_source.
21896 (grub_cmd_legacy_source): Implement extractor variants.
21897 (GRUB_MOD_INIT): Register new variants.
21898 (GRUB_MOD_FINI): Unregister new variants.
21899 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
21900 as an extractor.
21901 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
21902 search as an extractor.
21903 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
21904 test as an extractor.
21905 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
21906 as an extractor.
21907 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
21908 (grub_env_new_context): New function.
21909 (grub_env_context_open): Likewise.
21910 (grub_env_extractor_open): Likewise.
21911 (grub_env_extractor_close): Likewise.
21912 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
21913 grub_extractor_level.
21914 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
21915 * include/grub/env.h (grub_env_extractor_open): New proto.
21916 (grub_env_extractor_close): Likewise.
21917 * include/grub/normal.h (grub_extractor_level): New external variable.
21918
21919 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
21920
21921 Make cutmem accept a region specification.
21922 Suggested by: Samuel Thibault
21923
21924 * grub-core/mmap/mmap.c (parsemem): New function.
21925 (grub_cmd_cutmem): Handle new arguments.
21926
21927 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
21928
21929 New command cutmem.
21930
21931 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
21932 (GRUB_MOD_INIT): Register new command.
21933 (GRUB_MOD_FINI): Unregister new command.
21934
21935 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
21936
21937 Support some annoying BSD and Minix subpartitions.
21938
21939 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
21940 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
21941 Properly handle concatenation.
21942 * grub-core/kern/device.c (grub_device_iterate): Likewise.
21943 * grub-core/normal/completion.c (iterate_partition): Likewise.
21944 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
21945 contain partition. All users updated.
21946 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
21947 struct.
21948 (grub_openbsdlabel_partition_map): Likewise.
21949 (bsdlabel_partition_map_iterate): Rename to ..
21950 (iterate_real): ... this. New arguments sector, freebsd and pmap.
21951 (bsdlabel_partition_map_iterate): New function.
21952 (netopenbsdlabel_partition_map_iterate): Likewise.
21953 (netbsdlabel_partition_map_iterate): Likewise.
21954 (openbsdlabel_partition_map_iterate): Likewise.
21955 (GRUB_MOD_INIT): Register new partmaps.
21956 (GRUB_MOD_FINI): Unregister new partmaps.
21957 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
21958 (grub_partition_msdos_iterate): ... this. All users updated.
21959 Don't support embedding other than in a minix partition.
21960 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
21961 proto.
21962 * include/grub/partition.h (grub_partition): New field msdostype.
21963 * util/grub-install.in: Handle openbsd and netbsd types being in
21964 part_bsd module.
21965
21966 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
21967
21968 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
21969
21970 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
21971 * grub-core/Makefile.core.def (mdraid): Renamed to ...
21972 (mdraid09): ... this.
21973 (mdraid1x): New module.
21974 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
21975 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
21976
21977 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
21978
21979 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
21980 vsprintf.
21981
21982 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
21983
21984 * grub-core/commands/efi/lsefimmap.c: Correct header.
21985 * NEWS: Update.
21986
21987 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
21988
21989 * util/grub-editenv.c (argp_parser): Don't pass translated strings
21990 as printf format strings; the translations might contain '%' which
21991 could cause a crash.
21992 (main): Likewise.
21993 * util/grub-fstest.c (argp_parser): Likewise.
21994 * util/grub-setup.c (argp_parser): Likewise.
21995 (main): Likewise.
21996
21997 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
21998
21999 Use argp in grub-fstest.
22000
22001 * util/grub-fstest.c: Don't include getopt.h.
22002 Include argp.h.
22003 (root): New variable.
22004 (args_count): Likewise.
22005 (nparm): Likewise.
22006 (num_disks): Likewise.
22007 (images): Likewise.
22008 (cmd): Likewise.
22009 (debug_str): Likewise.
22010 (args): Likewise.
22011 (options): Transformed to argp.
22012 (usage): Removed.
22013 (main): Split argument parsing into ...
22014 (argp_parser): ... this. Changed to argp format.
22015 (argp): New variable.
22016 (main): Use argp_parse.
22017
22018 2010-09-20 Tristan Gingold <gingold@free.fr>
22019 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
22020 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22021
22022 * grub-core/commands/efi/lsefimmap.c: New file.
22023 * grub-core/Makefile.core.def (lsefimmap): New module.
22024 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
22025
22026 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22027
22028 Pause the execution (10s max) if any errors are displayed so the user
22029 has a chance to see them.
22030
22031 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
22032 (grub_print_error): Increment grub_err_printed_errors.
22033 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
22034 execution if any errors were displayed.
22035 (show_menu): Remove old code for pause.
22036 * grub-core/normal/menu_entry.c (run): Likewise.
22037 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
22038 users updated.
22039 (grub_normal_get_char_counter): Likewise.
22040 * include/grub/err.h (grub_err_printed_errors): New external variable.
22041 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
22042
22043 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22044
22045 Support multiboot VBE info.
22046
22047 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
22048 Take VBE info into account.
22049 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
22050 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
22051 Call fill_vbe_info when appropriate.
22052 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
22053 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
22054 as supported.
22055 (grub_multiboot_get_mbi_size): Take new tags into account.
22056 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
22057 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
22058 Call fill_vbe_tag when appropriate.
22059 (grub_multiboot_make_mbi): Properly align tags.
22060 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
22061 function.
22062 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
22063 proto.
22064 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
22065
22066 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22067
22068 Suport manual terminal geometry specification.
22069
22070 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
22071 Save state in grub_ofconsole_terminfo_output.
22072 (grub_ofconsole_term): Use grub_terminfo_getwh.
22073 (grub_ofconsole_getwh): Removed.
22074 * grub-core/term/serial.c (grub_serial_getwh): Removed.
22075 (grub_serial_term): Use grub_terminfo_getwh.
22076 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
22077 (options): New struct.
22078 (OPTION_*): New enum.
22079 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
22080 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
22081 width and height.
22082 (grub_terminfo_getwh): New proto.
22083 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
22084
22085 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22086
22087 Handle legacy "terminal" command.
22088
22089 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
22090 and FLAG_TERMINAL.
22091 (legacy_commands): Add terminal and title.
22092 (grub_legacy_parse): Handle terminal. Simplify title handling.
22093
22094 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22095
22096 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
22097 parameters overflow.
22098
22099 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
22100
22101 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
22102 widthspec.h.
22103
22104 * docs/grub.texi (Shell-like scripting): Document `!'.
22105 (Network): Simplify using new i386-pc-pxe format. Mention
22106 grub-mknetdir.
22107
22108 * NEWS: Update.
22109
22110 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
22111
22112 * Makefile.am (SUBDIRS): Restore "."; it's important to force
22113 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
22114 when needed.
22115
22116 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
22117
22118 * grub-core/commands/efi/lsefisystab.c: Correct header.
22119 * grub-core/commands/efi/lssal.c: Likewise.
22120 * grub-core/commands/testload.c: Likewise.
22121
22122 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
22123
22124 * util/grub-mkrescue.in: Add explicit root argument to --set to
22125 prevent the UUID being interpreted as an argument to --set (matches
22126 previous change to prepare_grub_to_access_device).
22127
22128 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
22129
22130 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
22131 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
22132 the verbosity of later #ifs.
22133 (find_partition_start): Define this function on FreeBSD too.
22134 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
22135 function.
22136 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
22137 on FreeBSD.
22138
22139 2010-09-20 Yves Blusseau <blusseau@zetam.org>
22140
22141 * util/grub-editenv.c: Use argp instead of getopt.
22142
22143 2010-09-20 Yves Blusseau <blusseau@zetam.org>
22144
22145 * util/grub-setup.c: Use argp instead of getopt.
22146
22147 2010-09-20 Yves Blusseau <blusseau@zetam.org>
22148
22149 Use gnulib-tool to create gnulib source files.
22150
22151 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
22152 grub-core/gnulib directories
22153 * .bzignore: Add **/.deps and autogenerated gnulib files
22154 * configure.ac: Assign auxiliary directory to build-aux, add invocation
22155 of gnulib macros, add grub-core/gnulib/Makefile
22156 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
22157 include m4 directory to aclocal.
22158 * Makefile.util.def: Remove direct compilation of gnulib source files
22159 and use the new grub-core/gnulib/libgnu.a.
22160 * build-aux/config.rpath: move config.rpath from top directory to
22161 build-aux
22162 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
22163 in gnulib headers
22164 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
22165 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
22166 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
22167 header.
22168 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
22169 string.
22170
22171 2010-09-20 Yves Blusseau <blusseau@zetam.org>
22172
22173 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
22174 grub-core/genmod.sh and grub-core/gensyminfo.sh
22175
22176 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
22177
22178 Add a test for echo command options.
22179
22180 * tests/grub_cmd_echo.in: New test.
22181 * Makefile.util.def: Rules for new test.
22182
22183 2010-09-20 Szymon Janc <szymon@janc.net.pl>
22184
22185 Remove crc.mod and move crc command to hashsum.mod.
22186 Remove lib/crc.c - users updated to use gcrypt implementation.
22187
22188 * grub-core/commands/crc.c: Removed.
22189 * grub-core/Makefile.core.def (crc): Module removed.
22190 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
22191 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
22192 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
22193 * grub-core/lib/crc.c: Removed.
22194 * include/grub/lib/crc.h: Removed.
22195 * Makefile.util.def (crc): Remove lib/crc.c
22196 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
22197 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
22198 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
22199 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
22200 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
22201 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
22202
22203 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22204
22205 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
22206
22207 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
22208
22209 Split config.h for util and core.
22210
22211 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
22212 (ADDR32): Likewise.
22213 (DATA32): Likewise.
22214 (BSS_START_SYMBOL): Likewise.
22215 (END_SYMBOL): Likewise.
22216 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
22217 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
22218 * config.h.in: New file.
22219 * configure.ac: Use config-util.h as config define file.
22220 Rename MACHINE into GRUB_MACHINE. All users updated.
22221 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
22222 updated.
22223 (NESTED_FUNC_ATTR): Likewise.
22224 Substitue new variables.
22225 (COND_HAVE_ASM_USCORE): New conditional.
22226 * grub-core/Makefile.am (ASM_PREFIX): New variable.
22227 (kernel_syms.lst): Use ASM_PREFIX.
22228 * grub-core/kern/emu/console.c: Include config-util.h.
22229 * grub-core/kern/emu/misc.c: Likewise.
22230 * grub-core/kern/emu/mm.c: Likewise.
22231 * include/grub/emu/misc.h: Likewise.
22232 * include/grub/libgcc.h: Likewise.
22233
22234 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
22235
22236 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
22237 constants usage.
22238 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
22239 Fix GRUB_TERM_KEY_* constants usage.
22240 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
22241
22242 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
22243
22244 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
22245 print pointer.
22246 * grub-core/bus/usb/uhci.c: Remove empty define.
22247 (grub_uhci_check_transfer): Add missing cast.
22248 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
22249 print pointer.
22250 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
22251 PRIuGRUB_SIZE.
22252 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
22253
22254 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
22255
22256 * grub-core/Makefile.core.def (legacycfg): Add
22257 lib/i386/pc/vesa_modes_table.c on emu.
22258
22259 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
22260
22261 Reduce number of temporary files generated by build system.
22262
22263 * grub-core/gencmdlist.sh: Removed.
22264 * grub-core/genfslist.sh: Removed.
22265 * grub-core/genhandlerlist.sh: Removed.
22266 * grub-core/genmodsrc.sh: Removed.
22267 * grub-core/genpartmaplist.sh: Removed.
22268 * grub-core/genparttoollist.sh: Removed.
22269 * grub-core/gentermiinallist.sh: Removed.
22270 * grub-core/genvideolist.sh: Removed.
22271
22272 * grub-core/genmod.sh.in: New file.
22273 * grub-core/gensyminfo.sh.in: New file.
22274
22275 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
22276 * conf/Makefile.extra-dist: Update with new files.
22277 * gentpl.py: Remove rules related to unnecessary temporary files.
22278 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
22279 and und-* files.
22280 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
22281 genmod.sh scripts.
22282 * grub-core/bus/usb/uhci.c: Remove empty #define.
22283 * grub-core/genmoddep.awk: Updated with new syminfo format.
22284 * util/bash-completion.d/Makefile.am: Add config.log to
22285 CLEANFILES.
22286
22287 2010-09-19 Yves Blusseau <blusseau@zetam.org>
22288
22289 * Makefile.util.def: Add forgotten $(LIBINTL) library.
22290
22291 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
22292
22293 * util/grub-mkconfig.in: Check the config script for syntax errors
22294 before saving.
22295
22296 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
22297 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
22298
22299 * Makefile.util.def (grub-install): Use util/grub-install.in on all
22300 platforms.
22301 * util/grub-install.in: Add EFI and IEEE1275 support.
22302 * util/i386/efi/grub-install.in: Removed.
22303 * util/ieee1275/grub-install.in: Likewise.
22304
22305 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
22306
22307 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
22308 (grub_cmd_cmosclean): Likewise.
22309 (GRUB_MOD_INIT): Register command cmosclean.
22310 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
22311 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
22312
22313 2010-09-18 Carles Pina i Estany <carles@pina.cat>
22314 2010-09-18 Aleš Nesrsta <starous@volny.cz>
22315 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
22316
22317 Add keyboard layouts support.
22318
22319 * Makefile.util.def (grub-mklayout): New file.
22320 (grub-kbdcomp): New script.
22321 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
22322 Add keyboard_layouts.h.
22323 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
22324 commands/boot.c on yeeloong.
22325 (keylayouts): New module.
22326 * grub-core/bus/usb/ohci.c
22327 * grub-core/bus/usb/uhci.c
22328 * grub-core/bus/usb/usbhub.c (rescan): New variable.
22329 (grub_usb_add_hub): Poll interrupt pipe for device handling.
22330 (attach_root_port): Likewise.
22331 (poll_nonroot_hub): Likewise.
22332 (grub_usb_poll_devices): Likewise.
22333 (detach_device): Close transfer.
22334 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
22335 function.
22336 (grub_usb_bulk_setup_readwrite): Likewise.
22337 (grub_usb_bulk_finish_readwrite): Likewise.
22338 * grub-core/commands/keylayouts.c: New file.
22339 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
22340 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
22341 aliases.
22342 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
22343 support scancode 2.
22344 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
22345 * include/grub/keyboard_layouts.h: New file.
22346 * util/grub-mklayout.c: New file.
22347 * util/grub-kbdcomp.in: Likewise.
22348
22349 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
22350
22351 Unify memory types.
22352
22353 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
22354 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
22355 types.
22356 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
22357 (grub_upper_mem): Likewise.
22358 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
22359 * include/grub/memory.h (grub_memory_type_t): New enum.
22360 All users updated.
22361
22362 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
22363
22364 * grub-core/Makefile.core.def (lsapm): New module.
22365 * grub-core/commands/i386/pc/lsapm.c: New file.
22366 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
22367 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
22368 Likewise.
22369 * include/grub/i386/pc/apm.h: New file.
22370 * include/multiboot.h (multiboot_apm_info): New struct.
22371
22372 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
22373
22374 GRUB-legacy configuration file support.
22375
22376 * Makefile.util.def (grub-menulst2cfg): New util.
22377 * docs/man/grub-menulst2cfg.h2m: New file.
22378 * grub-core/Makefile.core.def (legacycfg): New module.
22379 * grub-core/commands/legacycfg.c: New file.
22380 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
22381 (grub_normal_add_menu_entry): ... this.
22382 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
22383 (grub_normal_set_password): ...this.
22384 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
22385 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
22386 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
22387 * grub-core/lib/legacy_parse.c: New file.
22388 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
22389 * include/grub/i386/pc/vesa_modes_table.h: New file.
22390 * include/grub/legacy_parse.h: Likewise.
22391 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
22392 * util/grub-menulst2cfg.c: New file.
22393
22394 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
22395
22396 * grub-core/kern/emu/hostdisk.c
22397 (convert_system_partition_to_system_disk): Initialise node.
22398
22399 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
22400
22401 * grub-core/kern/emu/hostdisk.c
22402 (convert_system_partition_to_system_disk): Fix devmapper memory pool
22403 leak.
22404 Reported and based on patch by: Modestas Vainius.
22405
22406 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
22407
22408 Fix DM-RAID probing with recent versions of device-mapper udev
22409 rules.
22410
22411 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
22412 canonicalise device paths under /dev/mapper/.
22413 (convert_system_partition_to_system_disk): Compare the
22414 uncanonicalised path to /dev/mapper/ rather than the canonicalised
22415 path, since device nodes under /dev/mapper/ are often symlinks.
22416
22417 2010-09-17 Yves Blusseau <blusseau@zetam.org>
22418
22419 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
22420
22421 2010-09-16 Yves Blusseau <blusseau@zetam.org>
22422
22423 * configure.ac: Avoid some annoying error messages if freetype-config
22424 program is not found.
22425
22426 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
22427
22428 Support RAID on virtio devices, and others.
22429
22430 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
22431 Rename to ...
22432 [__MINGW32__] (grub_find_device): ... this.
22433 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
22434 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
22435 reasonable default if dir is NULL.
22436 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
22437 ...
22438 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
22439 (grub_guess_root_device): Update callers.
22440 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
22441
22442 * util/raid.c (grub_util_getdiskname): Remove.
22443 (grub_util_raid_getmembers): Use grub_find_device rather than
22444 grub_util_getdiskname.
22445
22446 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
22447
22448 * docs/grub.texi (serial): Remove obsolete comment about GRUB
22449 needing to be compiled with serial support.
22450 (ls): Indicate that multiple files are accepted.
22451 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
22452 indicate that multiple files are accepted.
22453
22454 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
22455
22456 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
22457 libgrub_a_init.c, and util/bash-completion.d/grub.
22458
22459 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
22460
22461 * util/grub-setup.c (setup): Fix incorrect container semantics.
22462
22463 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
22464
22465 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
22466 misusage.
22467 Reported by: J. Nick Terry
22468
22469 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
22470
22471 Move embedding routines to partmap sources files.
22472
22473 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
22474 [GRUB_UTIL]: New variable.
22475 (gpt_partition_map_iterate): Set part.parent.
22476 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
22477 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
22478 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
22479 New function.
22480 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
22481 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
22482 (grub_partition_map) [GRUB_UTIL]: New field embed.
22483 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
22484 (setup): Use ->embed.
22485
22486 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
22487
22488 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
22489 function.
22490 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
22491 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
22492
22493 2010-09-15 Yves Blusseau <blusseau@zetam.org>
22494
22495 Add function to get completions from usage.
22496
22497 * util/bash-completion.d/grub-completion.bash.in: Add function to get
22498 completions from usage. Use LC_ALL=C to get options properly.
22499
22500 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
22501
22502 * grub-core/gnulib/basename-lgpl.c: Imported.
22503 * grub-core/gnulib/basename.c: Likewise.
22504 * grub-core/gnulib/dirname-lgpl.c: Likewise.
22505 * grub-core/gnulib/dirname.c: Likewise.
22506 * grub-core/gnulib/dirname.h: Likewise.
22507 * grub-core/gnulib/stripslash.c: Likewise.
22508
22509 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
22510
22511 * grub-core/gnulib/error.c: Resynced.
22512 * grub-core/gnulib/getopt.c: Likewise.
22513 * grub-core/gnulib/getopt_int.h: Likewise.
22514 * grub-core/gnulib/regex.h: Likewise.
22515 * grub-core/gnulib/regex_internal.c: Likewise.
22516 * grub-core/gnulib/regex_internal.h: Likewise.
22517
22518 2010-09-15 Szymon Janc <szymon@janc.net.pl>
22519
22520 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
22521 CRC calculations and validity checks.
22522 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
22523 calculations.
22524
22525 2010-09-15 Szymon Janc <szymon@janc.net.pl>
22526
22527 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
22528
22529 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
22530
22531 Fix incorrect echo options handling.
22532 Reported by: Yves Blusseau.
22533
22534 * include/grub/command.h (grub_command_flags_t): New flags
22535 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
22536 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
22537 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
22538
22539 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
22540
22541 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
22542 users updated.
22543 (GRUB_COMMAND_FLAG_MENU): Likewise.
22544 (GRUB_COMMAND_FLAG_BOTH): Likewise.
22545 (GRUB_COMMAND_FLAG_TITLE): Removed.
22546 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
22547 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
22548 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
22549 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
22550 (grub_command_flags_t): New enum. All users updated.
22551
22552 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
22553
22554 Fix solaris compilation.
22555
22556 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
22557 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
22558 (grub-emu-list): Likewise.
22559
22560 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
22561
22562 Remove deprecated root command.
22563
22564 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
22565 updated.
22566
22567 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
22568
22569 * util/i386/pc/grub-setup.c: Merge this ...
22570 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
22571 * util/grub-setup.c: ... into this.
22572 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
22573 New struct.
22574
22575 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
22576
22577 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
22578 possible.
22579
22580 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
22581
22582 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
22583 allocate p.
22584
22585 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
22586
22587 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
22588 explicit root argument to set to prevent UUID to be interpreted as
22589 argument to set.
22590
22591 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
22592
22593 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
22594
22595 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
22596
22597 Don't export grub_gate_a20.
22598
22599 * grub-core/kern/i386/pc/init.c: Remove leftovers.
22600 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
22601 to ...
22602 (grub_gate_a20): ... this. All users updated.
22603 * include/grub/i386/pc/init.h: Removed. All users updated.
22604
22605 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
22606
22607 Create euro.pf2 which supports most European languages.
22608
22609 * Makefile.am (grubdata_DATA): Add euro.pf2.
22610 (euro.pf2): New target.
22611 (CLEANFILES): Add euro.pf2.
22612
22613 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
22614
22615 * configure.ac: Disable emu-usb by default to prevent inadvertent
22616 device takeover.
22617
22618 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22619
22620 Disable usbserial on grub-emu since our libusb code isn't good enough
22621 yet.
22622
22623 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
22624 (usbserial_pl2303): Likewise.
22625 (usbserial_ftdi): Likewise.
22626
22627 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22628
22629 * include/grub/disk.h (grub_disk): Remove has_partitions.
22630 All users updated.
22631 * disk/loopback.c (grub_loopback): Remove has_partitions.
22632 All users updated.
22633 (options): Remove partitions. All users updated.
22634 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
22635 * util/i386/pc/grub-setup.c (setup): copy partition table only when
22636 actual partition table is found.
22637
22638 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22639
22640 Remove readability checks (too many false negatives).
22641
22642 * util/grub-install.in: Remove readability checks.
22643 * util/grub-mkconfig.in: Likewise.
22644 * util/grub.d/10_hurd.in: Likewise.
22645 * util/grub.d/10_kfreebsd.in: Likewise.
22646 * util/grub.d/10_linux.in: Likewise.
22647 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
22648 way.
22649
22650 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22651
22652 Enable acpi shutdown on all ACPI platforms.
22653
22654 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
22655 on coreboo, multiboot and EFI.
22656 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
22657 (grub_acpi_halt): Likewise.
22658 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
22659 (grub_cmd_halt): Don't call grub_acpi_halt directly.
22660 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
22661 * grub-core/lib/i386/halt.c (grub_halt)
22662 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
22663
22664 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22665
22666 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
22667 context.
22668
22669 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22670
22671 * grub-core/video/efi_gop.c: Fix over-80-chars line.
22672 * grub-core/video/efi_uga.c: Likewise.
22673
22674 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22675
22676 Filter devaliases and never open same device twice.
22677
22678 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
22679 (last_ihandle): Likewise.
22680 (ofdisk_hash_ent): New member shortest.
22681 (ofdisk_hash_add): Add canonical path too.
22682 (scan): New function.
22683 (grub_ofdisk_iterate): Iterate over hashed entries.
22684 (compute_dev_path): Don't add :0.
22685 (grub_ofdisk_open): Don't really open the disk.
22686 (grub_ofdisk_close): Avoid closing unrelated disk.
22687 (grub_ofdisk_read): Implement reopen logic.
22688 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
22689 New function.
22690 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
22691 New proto.
22692
22693 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22694
22695 Fix sparc64.
22696
22697 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
22698 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
22699 right address. Add sparc64_ieee1275_ldflags.
22700 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
22701 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
22702 to grub_host_to_target_addr
22703 (load_image): Likewise.
22704
22705 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22706
22707 * grub-core/normal/completion.c (complete_file): Handle device
22708 containing slash.
22709 Fix based on patch by Doug Nazar.
22710
22711 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22712
22713 grub-mknetdir script.
22714
22715 * Makefile.util.def (grub-mknetdir): New module.
22716 * tests/util/grub-shell.in: Support boot=net
22717 * util/grub-mknetdir.in: New file.
22718
22719 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22720
22721 videoinfo on non-vbe.
22722
22723 * grub-core/Makefile.core.def (vbeinfo): Removed.
22724 (vbetest): Removed.
22725 (videoinfo): New module.
22726 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
22727 * grub-core/commands/i386/pc/vbetest.c: Removed.
22728 * grub-core/commands/videoinfo.c: New file.
22729 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
22730 specification.
22731 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
22732 as vbetest.
22733 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
22734 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
22735 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
22736 mode_number. New parameter mode. All users updated.
22737 (grub_video_gop_iterate): New function.
22738 (grub_video_efi_gop): New member iterate.
22739 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
22740 (grub_vbe_set_video_mode): Remove setting useless fields.
22741 (vbe2videoinfo): New function.
22742 (grub_video_vbe_iterate): Likewise.
22743 (grub_video_vbe_setup): Use vbe2videoinfo.
22744 (grub_video_vbe_print_adapter_specific_info): New function.
22745 (grub_video_vbe_adapter): New fields iterate and
22746 print_adapter_specific_info.
22747 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
22748 All users updated.
22749 (grub_video_mode_info): New field mode_number.
22750 (grub_video_adapter): New fields iterate and
22751 print_adapter_specific_info.
22752
22753 2010-09-13 Tristan Gingold <gingold@free.fr>
22754 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
22755 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22756
22757 * grub-core/commands/efi/lsefisystab.c: New file.
22758 * grub-core/commands/efi/lssal.c: Likewise.
22759 * grub-core/Makefile.core.def (lsacpi): New module.
22760 (lsefisystab): Likewise.
22761 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
22762 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
22763 (grub_efi_sal_system_table): New struct.
22764 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
22765 (grub_efi_sal_system_table_memory_descriptor): Likewise.
22766 (grub_efi_sal_system_table_platform_features): Likewise.
22767 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
22768 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
22769 (grub_efi_sal_system_table_ap_wakeup): Likewise.
22770 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
22771
22772 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22773
22774 Support explicit user claim that a device is BIOS-visible.
22775
22776 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
22777 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
22778 * grub-core/kern/emu/hostdisk.c
22779 (convert_system_partition_to_system_disk): Support mdX.
22780 (find_system_device): New parameter add. All users updated.
22781 (grub_util_biosdisk_is_present): New function.
22782 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
22783 proto.
22784
22785 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22786
22787 Search hints support.
22788
22789 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
22790 All users updated.
22791
22792 2010-09-13 Yves Blusseau <blusseau@zetam.org>
22793
22794 Bash completion script for util commands
22795
22796 * Makefile.am: Add util/bash-completion.d directory
22797 * configure.ac: Likewise.
22798 * util/bash-completion.d/Makefile.am: New file.
22799 * util/bash-completion.d/grub-completion.bash.in: Likewise.
22800
22801 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
22802
22803 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
22804 (print_backlog): set backlog_ucs4 and backlog_glyphs.
22805 Reported by: Yves Blusseau.
22806
22807 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
22808
22809 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
22810 partition size and offset.
22811
22812 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
22813
22814 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
22815
22816 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
22817
22818 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
22819
22820 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
22821
22822 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
22823 (grub_xvasprintf): Likewise.
22824
22825 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
22826
22827 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
22828
22829 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
22830
22831 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
22832 args ending with NULL.
22833
22834 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
22835
22836 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
22837 pointer.
22838
22839 2010-09-11 Szymon Janc <szymon@janc.net.pl>
22840
22841 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
22842
22843 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
22844
22845 Shutdown using ACPI.
22846
22847 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
22848 * grub-core/commands/acpihalt.c: New file.
22849 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
22850 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
22851 (grub_acpi_halt): New proto.
22852 (GRUB_ACPI_SLP_EN): New const.
22853 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
22854 (GRUB_ACPI_OPCODE_*): New enum.
22855 (GRUB_ACPI_EXTOPCODE_*): Likewise.
22856
22857 2010-09-11 Tristan Gingold <gingold@free.fr>
22858 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
22859 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
22860
22861 * commands/lsacpi.c: New file.
22862 * grub-core/Makefile.core.def (lsacpi): New module.
22863 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
22864 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
22865 (grub_acpi_madt_entry_header): New struct.
22866 (grub_acpi_madt): Likewise.
22867 (grub_acpi_madt_entry_interrupt_override): Likewise.
22868 (grub_acpi_madt_entry_sapic): Likewise.
22869 (grub_acpi_madt_entry_lsapic): Likewise.
22870 (grub_acpi_madt_entry_platform_int_source): Likewise.
22871 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
22872 (PRIuGRUB_UINT32_T): Likewise.
22873 (PRIxGRUB_UINT64_T): Likewise.
22874
22875 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
22876
22877 Implement loading palette on ieee1275_fb.
22878
22879 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
22880 (have_setcolors): Likewise.
22881 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
22882 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
22883 (grub_video_ieee1275_set_palette): Implement.
22884
22885 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
22886 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
22887
22888 * util/grub-install.in (grub_partition): New variable.
22889 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
22890 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
22891 Fixes a bug reported by Yves Blusseau.
22892
22893 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
22894
22895 Fix emu on mipsel.
22896
22897 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
22898 =grub_cpu_flush_cache on all mips and not only yeeloong.
22899 * configure.ac (COND_mips): New conditional.
22900 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
22901 platforms.
22902 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
22903 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
22904 [GRUB_LINKER_HAVE_INIT]: New function.
22905 (grub_emu_post_init): Likewise.
22906 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
22907 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
22908 * include/grub/cache.h (_mips): Include mips/cache.h.
22909 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
22910 LVM and RAID prototypes.
22911 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
22912 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
22913 function.
22914
22915 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
22916
22917 * util/grub-install.in: Don't try to verify core.img until after
22918 running grub-mkimage to create it.
22919
22920 2010-09-10 Robert Millan <rmh@gnu.org>
22921
22922 * util/grub.d/10_hurd.in: Add misc readability checks.
22923 * util/grub.d/10_kfreebsd.in: Likewise.
22924 * util/grub.d/10_linux.in: Likewise.
22925
22926 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
22927
22928 * util/grub-install.in: ${imgext} won't be defined here until the
22929 install branch is merged. For the meantime, only verify core.img on
22930 i386-pc and sparc64-ieee1275 platforms.
22931
22932 2010-09-10 Robert Millan <rmh@gnu.org>
22933
22934 Solaris support in grub_find_zpool_from_dir(). Thanks
22935 Seth Goldberg for referring to getextmntent() facility.
22936
22937 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
22938 `sys/mkdev.h'.
22939 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
22940 `<sys/mnttab.h>'.
22941 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
22942 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
22943 method for finding zpool name.
22944
22945 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
22946
22947 grub-fstest needs the host and hostfs modules while other utilities
22948 actively require those modules to be absent, so grub-fstest needs
22949 its own initialisation and finalisation code.
22950
22951 * Makefile.am (grub_fstest.pp): New target.
22952 (grub_fstest_init.lst): Likewise.
22953 (grub_fstest_init.c): Likewise.
22954 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
22955
22956 2010-09-10 Robert Millan <rmh@gnu.org>
22957
22958 * configure.ac: Check for `struct statfs.f_fstypename' and
22959 `struct statfs.f_mntfromname'.
22960
22961 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
22962 kFreeBSD-specific code.
22963
22964 2010-09-10 Robert Millan <rmh@gnu.org>
22965
22966 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
22967 on ZFS. Now non-main filesystems are supported as / too.
22968
22969 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
22970
22971 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
22972 and grub-core/disk/host.c to ...
22973 (grub-fstest): ... here. Having the host disk implementation
22974 present confuses grub-probe and other utility programs.
22975
22976 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
22977 when writing to a file, not when writing to stdout.
22978
22979 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
22980
22981 * tests/partmap_test.in: New test for partitions.
22982 * Makefile.util.def: Rules for new test.
22983
22984 2010-09-09 Robert Millan <rmh@gnu.org>
22985
22986 * util/grub-probe.c (probe): Fix a pair of unhandled error
22987 conditions.
22988
22989 2010-09-09 Robert Millan <rmh@gnu.org>
22990
22991 Basic Btrfs support (detection and UUID).
22992
22993 * grub-core/fs/btrfs.c: New file.
22994 * Makefile.util.def (library): Register btrfs.c.
22995 * grub-core/Makefile.core.def: Likewise.
22996
22997 2010-09-08 Robert Millan <rmh@gnu.org>
22998
22999 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
23000 with (optional) parameters to specify device and relative path.
23001 * util/grub-install.in: Use is_path_readable_by_grub() to
23002 verify readability of a few critical files.
23003 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
23004 verify readability of grub.cfg.new.
23005
23006 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
23007
23008 Split minix.mod into minix.mod and minix2.mod.
23009
23010 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
23011 * grub-core/Makefile.core.def (minix2): New module.
23012 * grub-core/fs/minix.c: Use definitions instead of runtime version
23013 checking.
23014 * grub-core/fs/minix2.c: New file.
23015
23016 2010-09-08 Yves Blusseau <blusseau@zetam.org>
23017
23018 Add new --boot-directory option to replace --root-directory
23019
23020 * util/grub-install.in: Add new --boot-directory option
23021 * util/grub-reboot.in: Likewise.
23022 * util/grub-set-default.in: Likewise.
23023
23024 2010-09-08 Yves Blusseau <blusseau@zetam.org>
23025
23026 * util/grub-mkconfig.in: Use new variable.
23027
23028 2010-09-08 Yves Blusseau <blusseau@zetam.org>
23029
23030 * configure.ac: Define some useful variables.
23031
23032 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
23033
23034 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
23035 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
23036 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
23037 Use terminfo and don't use cursor-on/cursor-off unless it's known
23038 to work.
23039 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
23040 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
23041
23042 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
23043
23044 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
23045 starts with "(,", fill the drive containing the loaded image in
23046 between those two characters, but expect that a full partition
23047 specification including partition map names will follow.
23048
23049 2010-09-08 Robert Millan <rmh@gnu.org>
23050
23051 * configure.ac: Remove `--enable-grub-fstest' option.
23052 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
23053
23054 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
23055 `grub-fstest' instead of `grub-probe' for readability verification.
23056 * util/grub-probe.c (probe): Remove readability verification kludge.
23057
23058 2010-09-08 Robert Millan <rmh@gnu.org>
23059
23060 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
23061 initializing `GRUB_FS'.
23062
23063 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
23064
23065 Not command (!) support to GRUB script.
23066
23067 * tests/grub_script_not.in: New test.
23068 * Makefile.util.def: Rules for new test.
23069
23070 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
23071 ! command as a special case.
23072 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
23073
23074 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
23075
23076 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
23077 grub_free.
23078
23079 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
23080
23081 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
23082
23083 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
23084
23085 * docs/grub.texi (Shell-like scripting): Documentation for break,
23086 continue, shift and return commands.
23087
23088 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
23089
23090 Rename CD-ROM to cd on BIOS.
23091
23092 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
23093 "cd".
23094 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
23095
23096 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23097
23098 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
23099 * util/grub-probe.c (main): Likewise.
23100 * util/i386/pc/grub-setup.c (main): Likewise.
23101 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
23102 Reported and debugged by: alexxy
23103
23104 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23105
23106 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
23107 diagnostic info.
23108
23109 2010-09-05 Jo Shields <directhex@apebox.org>
23110
23111 * util/grub.d/30_os-prober.in: Add missing classes.
23112
23113 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23114
23115 * docs/grub.texi (Theme file format): Document new position format.
23116
23117 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23118
23119 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
23120 a table. Use @code instead of @verbatim.
23121
23122 2010-09-05 Colin D Bennett <colin@gibibit.com>
23123
23124 Gfxmenu documentation.
23125
23126 * docs/grub.texi (Theme file format): New chapter.
23127
23128 2010-09-05 Szymon Janc <szymon@janc.net.pl>
23129
23130 * grub-core/Makefile.core.def (xzio): New module.
23131 * grub-core/io/xzio.c: New file.
23132 * grub-core/lib/xzembed/xz.h: New file (from xembed).
23133 * grub-core/lib/xzembed/xz_config.h: Likewise.
23134 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
23135 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
23136 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
23137 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
23138 * grub-core/lib/xzembed/xz_private.h: Likewise.
23139 * grub-core/lib/xzembed/xz_stream.h: Likewise.
23140 * include/grub/file.h (grub_file_filter_id): New compression filter
23141 GRUB_FILE_FILTER_XZIO.
23142
23143 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23144
23145 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
23146 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
23147 size.
23148
23149 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23150
23151 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
23152 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
23153
23154 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23155
23156 Uncompressed checksum support.
23157
23158 * grub-core/commands/hashsum.c (options): Add option --uncompress.
23159 (check_list): New parameter uncompress.
23160 (grub_cmd_hashsum): Handle --uncompress.
23161
23162 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23163
23164 Reintroduce testload.
23165
23166 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
23167 from here ...
23168 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
23169 (GRUB_MOD_INIT): New function.
23170 (GRUB_MOD_FINI): Likewise.
23171 * grub-core/Makefile.core.def (testload): New module.
23172
23173 2010-09-05 Szymon Janc <szymon@janc.net.pl>
23174
23175 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
23176 (uint8_t): New type.
23177 (uint16_t): Likewise.
23178 (uint32_t): Likewise.
23179 (uint64_t): Likewise.
23180
23181 2010-09-05 Szymon Janc <szymon@janc.net.pl>
23182
23183 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
23184
23185 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23186
23187 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
23188 Made static.
23189 (grub_gzfile_open): Removed. All users updated.
23190 (GRUB_MOD_INIT): New function.
23191 (GRUB_MOD_FINI): Likewise.
23192 * grub-core/kern/file.c (grub_file_filters_all): New variable.
23193 (grub_file_filters_enabled): Likewise.
23194 (grub_file_open): Handle filters.
23195 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
23196 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
23197 * include/grub/file.h (grub_file_filter_id_t): New type.
23198 (grub_file_filter_t): Likewise.
23199 (grub_file_filters_all): New extern variable.
23200 (grub_file_filters_enabled): Likewise.
23201 (grub_file_filter_register): New inline function.
23202 (grub_file_filter_unregister): Likewise.
23203 (grub_file_filter_disable): Likewise.
23204 (grub_file_filter_disable_compression): Likewise.
23205 * include/grub/gzio.h: Removed.
23206
23207 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
23208
23209 Filename expansion support for wildcards in GRUB script.
23210
23211 * tests/grub_script_expansion.in: New test.
23212 * Makefile.util.def: Rule for new test.
23213
23214 * grub-core/commands/wildcard.c: New file, implements filename
23215 expansion support for GRUB script.
23216 * grub-core/Makefile.core.def: Rule update for regexp.mod.
23217 * grub-core/script/argv.c: Cosmetic changes.
23218 * grub-core/script/execute.c (grub_script_arglist_to_argv):
23219 Refactored to perform wildcard expansion on arguments.
23220 * include/grub/script_sh.h (grub_script_wildcard_translator): New
23221 struct.
23222
23223 * tests/util/grub-shell.in: Fix quoting for read input.
23224
23225 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
23226
23227 Support for updating environment variables with matched substrings
23228 of regexp.
23229
23230 * tests/grub_cmd_regexp.in: New test.
23231 * Makefile.util.def: Rule for new test.
23232
23233 * grub-core/commands/regexp.c: New option -s to update environment
23234 variables with regexp matches.
23235
23236 2010-09-04 Szymon Janc <szymon@janc.net.pl>
23237
23238 * include/grub/file.h (grub_file): New member not_easly_seekable.
23239 (grub_file_seekable): New inline function.
23240 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
23241 easily seekable.
23242 (grub_gzio_open): Set not_easly_seekable.
23243 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
23244 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
23245
23246 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
23247
23248 Support for options to appear multiple times on cmdline.
23249
23250 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
23251 * grub-core/commands/extcmd.c: Support for repeatable option.
23252 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
23253 repeatable option support.
23254
23255 Refactor menuentry into a regular command.
23256
23257 * grub-core/commands/menuentry.c: New file, menuentry command
23258 implementation.
23259 * grub-core/Makefile.core.def: Rule update for normal.mod.
23260 * grub-core/normal/main.c: Moved menuentry creation to
23261 grub-core/commands/menuentry.c.
23262 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
23263 (grub_menu_execute_entry_real): Removed.
23264 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
23265 function.
23266 (grub_script_execute_menuentry): Removed.
23267 * grub-core/script/parser.y (menuentry): Removed.
23268 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
23269 * grub-core/script/yylex.l (menuentry): Removed.
23270 * include/grub/menu.h (grub_menu_init): New prototype.
23271 (grub_menu_fini): New prototype.
23272 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
23273 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
23274 (grub_script_execute_sourcecode): New prototype.
23275
23276 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
23277
23278 "return" command for GRUB script functions.
23279
23280 * tests/grub_script_return.in: New test.
23281 * Makefile.util.def: Rules for new test.
23282
23283 * grub-core/script/execute.c (grub_script_return): New function.
23284 * grub-core/script/main.c: Register/unregister return commaond.
23285 * include/grub/script_sh.h (grub_script_return): New prototype.
23286
23287 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
23288
23289 "setparams" command to update positional parameters.
23290
23291 * tests/grub_script_setparams.in: New test.
23292 * Makefile.util.def: Rules for new test.
23293
23294 * grub-core/script/argv.c (grub_script_argv_make): New function.
23295 * grub-core/script/execute.c (replace_scope): New function.
23296 (grub_script_setparams): New function.
23297 * grub-core/script/lexer.c: Remove unused variables.
23298 * grub-core/script/main.c: Register/unregister setparams command.
23299 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
23300 (grub_script_setparams): New prototype.
23301
23302 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
23303
23304 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
23305 grub_free order.
23306
23307 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
23308
23309 Support for passing block of commands as an argument to extcmds.
23310
23311 * Makefile.util.def: Rules for new test.
23312 * tests/grub_script_blockarg.in: New test.
23313 * grub-core/tests/test_blockarg.c: New file, block argument
23314 command used in the test.
23315
23316 * include/grub/extcmd.h (grub_extcmd_context): New struct.
23317 (grub_register_extcmd_prio): New function prototype.
23318 (grub_extcmd_dispatcher): New function prototype.
23319 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
23320 type.
23321 * include/grub/script_sh.h (struct grub_script): New members
23322 `children', `next_siblings' and `refcnt' for block arguments and
23323 reference counting.
23324 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
23325 (grub_script_arg): New member `script' for block argument.
23326 (grub_script_argv): New member `script' for block argument.
23327 (grub_parser_param): New member `scripts' for block argument.
23328 (grub_script_mem_free): New extern function prototype.
23329 (grub_script_ref): New function prototype.
23330 (grub_script_unref): New function prototype.
23331
23332 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
23333 extcmd form to support block arguments.
23334 * grub-core/script/argv.c: Block arguments support.
23335 * grub-core/script/execute.c: Likewise.
23336 * grub-core/script/lexer.c: Likewise.
23337 * grub-core/script/main.c: Likewise.
23338 * grub-core/script/script.c: Likewise.
23339 * grub-core/script/parser.y: Likewise. New `block' and `block0'
23340 non-terminals.
23341
23342 * grub-core/commands/acpi.c: Update extcmd implementations with
23343 grub_extcmd_context_t.
23344 * grub-core/commands/cat.c: Likewise.
23345 * grub-core/commands/echo.c: Likewise.
23346 * grub-core/commands/extcmd.c: Likewise.
23347 * grub-core/commands/hashsum.c: Likewise.
23348 * grub-core/commands/hdparm.c: Likewise.
23349 * grub-core/commands/help.c: Likewise.
23350 * grub-core/commands/hexdump.c: Likewise.
23351 * grub-core/commands/i386/cpuid.c: Likewise.
23352 * grub-core/commands/i386/pc/drivemap.c: Likewise.
23353 * grub-core/commands/i386/pc/halt.c: Likewise.
23354 * grub-core/commands/i386/pc/sendkey.c: Likewise.
23355 * grub-core/commands/iorw.c: Likewise.
23356 * grub-core/commands/keystatus.c: Likewise.
23357 * grub-core/commands/loadenv.c: Likewise.
23358 * grub-core/commands/ls.c: Likewise.
23359 * grub-core/commands/lspci.c: Likewise.
23360 * grub-core/commands/memrw.c: Likewise.
23361 * grub-core/commands/probe.c: Likewise.
23362 * grub-core/commands/search_wrap.c: Likewise.
23363 * grub-core/commands/setpci.c: Likewise.
23364 * grub-core/commands/sleep.c: Likewise.
23365 * grub-core/disk/loopback.c: Likewise.
23366 * grub-core/hello/hello.c: Likewise.
23367 * grub-core/loader/i386/bsd.c: Likewise.
23368 * grub-core/loader/xnu.c: Likewise.
23369 * grub-core/term/gfxterm.c: Likewise.
23370 * grub-core/term/serial.c: Likewise.
23371 * grub-core/tests/lib/functional_test.c: Likewise.
23372
23373 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
23374
23375 Multi-line quoted strings support.
23376
23377 * grub-core/script/lexer.c (append_newline): Removed.
23378 (grub_script_lexer_yywrap): Refactored.
23379 (grub_script_lexer_init): Refactored.
23380 * grub-core/script/yylex.l (yywrap): New function.
23381 (grub_lexer_resplit): New function.
23382 (grub_lexer_unput): New function.
23383 * include/grub/script_sh.h (grub_lexer_param): New members, unput
23384 and resplit.
23385 * tests/grub_script_echo1.in: Added few more testcases.
23386
23387 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
23388
23389 * grub-core/kern/misc.c: Don't add abort alias in utils.
23390 Reported by: echoline.
23391
23392 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
23393
23394 Add missing files into "make dist" tarball for other platforms.
23395
23396 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
23397 * conf/Makefile.common (dist_noinst_DATA): New variable.
23398 * conf/Makefile.extra-dist: Added missing make dist files.
23399 * grub-core/Makefile.core.def: Likewise.
23400
23401 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
23402
23403 Compress grub_prefix.
23404
23405 * grub-core/boot/i386/pc/lnxboot.S: Use
23406 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
23407 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
23408 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
23409 GRUB_MACHINE_PREFIX_END. All users updated.
23410 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
23411 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
23412 + 0x40.
23413 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
23414 * util/grub-mkimage.c (image_target_desc): Change data_end to
23415 prefix_end. All users updated.
23416
23417 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
23418
23419 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
23420 value.
23421 (grub_openbsd_boot): Likewise.
23422 (grub_netbsd_boot): Likewise.
23423 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
23424 (grub_xnu_boot): Likewise.
23425
23426 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
23427
23428 * configure.ac: Clean LIBS variable after tests.
23429
23430 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
23431
23432 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
23433
23434 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
23435
23436 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
23437 echo if libdevmapper will be used.
23438
23439 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
23440
23441 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
23442 constant for the same file.
23443
23444 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
23445
23446 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
23447
23448 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
23449
23450 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
23451 grub-core/*.pp.
23452
23453 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
23454
23455 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
23456 required by the boot protocol.
23457
23458 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
23459 ebp and edi members.
23460 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
23461 state.ebp and state.edi.
23462 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
23463 %ebp and %edi according to grub_relocator32_ebp and
23464 grub_relocator32_edi respectively.
23465 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
23466 and state.edi.
23467
23468 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
23469
23470 Add i386-pc-pxe image target.
23471
23472 * util/grub-mkimage.c (image_target_desc): New enum value
23473 IMAGE_I386_PC_PXE.
23474 (image_targets): New target i386-pc-pxe.
23475 (generate_image): Handle i386-pc-pxe image.
23476
23477 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
23478
23479 Fix grub_pxe_scan.
23480
23481 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
23482 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
23483 All users updated.
23484 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
23485 (grub_pxe_pxenv): Correct type.
23486
23487 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
23488
23489 * NEWS: Document most of the important changes since 1.98.
23490
23491 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
23492
23493 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
23494 generated manual page) a little.
23495
23496 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
23497
23498 * docs/grub.texi: Add myself as an author.
23499
23500 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
23501
23502 * Makefile.util.def (libgrub.a): Add missing sunpc.
23503 Reported by: Seth Goldberg.
23504
23505 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
23506
23507 Interrupt wrapping and code simplifications.
23508
23509 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
23510 x86_noieee1275 which are functionaly equivalent in this case.
23511 (grub-install): Make source on each platform explicit. Enable on
23512 all noemu.
23513 * gentpl.py (x86_efi_pc): Removed group.
23514 (x86_noefi): Likewise.
23515 (i386_noefi): Likewise.
23516 (x86_noieee1275): Likewise.
23517 (i386_noieee1275): Likewise.
23518 (i386_noefi_noieee1275): Likewise.
23519 (i386_pc_qemu_coreboot): Likewise.
23520 (i386_coreboot_multiboot): Likewise.
23521 (i386_pc_coreboot_multiboot_qemu): Likewise.
23522 (x86_noefi_mips): Likewise.
23523 (noieee1275): Likewise.
23524 (ieee1275_mips): Likewise.
23525 (noemu_noieee1275): Likewise.
23526 (cmos): New group.
23527 (usb): Likewise.
23528 (videoinkernel): Likewise.
23529 (videomodules): Likewise.
23530 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
23531 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
23532 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
23533 include/grub/loader.h, include/grub/msdos_partition.h,
23534 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
23535 include/grub/machine/console.h, include/grub/machine/vga.h,
23536 include/grub/machine/vbe.h, include/grub/machine/init.h,
23537 include/grub/machine/kernel.h, include/grub/cpu/time.h,
23538 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
23539 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
23540 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
23541 * grub-core/Makefile.core.def (kernel): Explicit the source for
23542 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
23543 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
23544 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
23545 Use videoinkernel tag.
23546 (usb): Enable on all usb.
23547 (usbserial_common): Likewise.
23548 (usbserial_pl2303): Likewise.
23549 (usbserial_ftdi): Likewise.
23550 (uhci): Enable on all x86.
23551 (ohci): Enable on all pci.
23552 (cmostest): Enable on all CMOS.
23553 (acpi): Include commands/acpi.c on all platforms.
23554 (halt): Add relevant lib/*/halt.c.
23555 (hdparm): Enable on all pci.
23556 (lspci): Likewise.
23557 (usbtest): Enable on all usb.
23558 (ata): Enable on all pci.
23559 (ata_pthru): Likewise.
23560 (usbms): Enable on all usb.
23561 (usb_keyboard): Likewise.
23562 (font): Use tag videomodules.
23563 (bufio): Likewise.
23564 (datetime): Use tag cmos. Enable on all noemu.
23565 (mmap): Use tags common and x86.
23566 (gfxterm): Use tag videomodules.
23567 (bitmap): Likewise.
23568 (bitmap_scale): Likewise.
23569 (video_fb): Likewise.
23570 (video): Likewise.
23571 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
23572 adjust padding accordingly. All users updated.
23573 (grub_ohci_transaction): Fix bad format specification.
23574 (GRUB_MOD_INIT): Add asserts for struct size.
23575 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
23576 (grub_alloc_td): Likewise.
23577 (grub_free_queue): Likewise.
23578 (grub_uhci_transfer): Likewise.
23579 (grub_uhci_transaction): Fix bad format specification.
23580 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
23581 (grub_usb_bulk_readwrite): Likewise.
23582 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
23583 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
23584 Made static.
23585 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
23586 Made static.
23587 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
23588 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
23589 Transformed into C.
23590 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
23591 Moved from here ...
23592 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
23593 ... here. Transformed into C. Made static.
23594 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
23595 Moved from here ...
23596 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
23597 ... here. Transformed into C. Made static.
23598 * grub-core/kern/i386/pc/startup.S
23599 (grub_biosdisk_check_int13_extensions): Moved from here ...
23600 * grub-core/disk/i386/pc/biosdisk.c
23601 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
23602 Made static.
23603 * grub-core/kern/i386/pc/startup.S
23604 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
23605 * grub-core/disk/i386/pc/biosdisk.c
23606 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
23607 Transformed into C. Made static.
23608 * grub-core/kern/i386/pc/startup.S
23609 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
23610 * grub-core/disk/i386/pc/biosdisk.c
23611 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
23612 Transformed into C. Made static.
23613 * grub-core/kern/i386/pc/startup.S
23614 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
23615 * grub-core/disk/i386/pc/biosdisk.c
23616 (grub_biosdisk_get_diskinfo_standard): ... here.
23617 Transformed into C. Made static.
23618 * grub-core/kern/i386/pc/startup.S
23619 (grub_biosdisk_get_num_floppies): Moved from here ...
23620 * grub-core/disk/i386/pc/biosdisk.c
23621 (grub_biosdisk_get_num_floppies): ... here.
23622 Transformed into C. Made static.
23623 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
23624 New function.
23625 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
23626 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
23627 Transformed into C. Made static.
23628 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
23629 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
23630 Transformed into C. Made static.
23631 * grub-core/kern/i386/ieee1275/init.c: Removed.
23632 * grub-core/kern/i386/misc.S: Likewise.
23633 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
23634 Splitted from here ...
23635 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
23636 Transformed into C. Made static. All users updated.
23637 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
23638 Transformed into C. Made static. All users updated.
23639 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
23640 Moved from here...
23641 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
23642 Transformed into C. Made static. All users updated.
23643 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
23644 Moved from here...
23645 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
23646 Transformed into C. Made static. All users updated.
23647 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
23648 Removed (replaced by C version).
23649 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
23650 Moved from here...
23651 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
23652 Transformed into C. Made static.
23653 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
23654 Moved from here...
23655 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
23656 ... here. Transformed into C.
23657 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
23658 Moved from here...
23659 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
23660 ... here. Transformed into C.
23661 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
23662 Moved from here...
23663 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
23664 ... here. Transformed into C. Made static.
23665 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
23666 Moved from here...
23667 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
23668 ... here. Transformed into C.
23669 * grub-core/kern/i386/pc/startup.S
23670 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
23671 * grub-core/video/i386/pc/vbe.c
23672 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
23673 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
23674 Moved from here...
23675 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
23676 ... here. Transformed into C.
23677 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
23678 Moved from here...
23679 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
23680 ... here. Transformed into C.
23681 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
23682 Moved from here...
23683 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
23684 ... here. Transformed into C.
23685 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
23686 Moved from here...
23687 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
23688 ... here. Transformed into C.
23689 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
23690 Moved from here...
23691 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
23692 ... here. Transformed into C. Made static.
23693 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
23694 Moved from here...
23695 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
23696 ... here. Transformed into C. Made static.
23697 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
23698 Moved from here...
23699 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
23700 ... here. Transformed into C. Made static.
23701 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
23702 pxe_rm_entry as third argument.
23703 (grub_bios_interrupt): New function.
23704 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
23705 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
23706 of calling grub_stop.
23707 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
23708 * grub-core/lib/efi/halt.c (grub_halt): ...here.
23709 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
23710 * grub-core/lib/emu/halt.c (grub_halt): ... here.
23711 * grub-core/lib/i386/halt.c: Moved from here ...
23712 * grub-core/lib/i386/halt.c: ... here.
23713 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
23714 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
23715 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
23716 grub_stop_floppy.
23717 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
23718 * include/grub/i386/coreboot/init.h: Removed.
23719 * include/grub/i386/multiboot/init.h: Likewise.
23720 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
23721 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
23722 * include/grub/i386/pc/int.h: New file.
23723 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
23724 (grub_pxe_scan): Removed.
23725 (grub_pxe_call): Update prototype.
23726 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
23727 prototypes.
23728 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
23729 * include/grub/i386/qemu/init.h: Removed.
23730 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
23731 noreturn.
23732 (grub_halt): Likewise.
23733 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
23734 (grub_reboot): Likewise.
23735 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
23736 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
23737 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
23738
23739 2010-08-30 Robert Millan <rmh@gnu.org>
23740
23741 * NEWS: Document addition of ZFS support in `grub-install' and
23742 `grub-mkconfig'.
23743
23744 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
23745
23746 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
23747 dprintf output.
23748
23749 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
23750
23751 Remove leftover embedding of font objects.
23752
23753 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
23754 * util/grub-install.in (font): Removed.
23755 * util/grub-mkimage.c (generate_image): Remove font support. All users
23756 updated.
23757
23758 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
23759
23760 Remove leftover embedding of font objects.
23761
23762 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
23763 * util/grub-install.in (font): Removed.
23764 * util/grub-mkimage.c (generate_image): Remove font support. All users
23765 updated.
23766
23767 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
23768
23769 * docs/grub.texi (Network): Fix reference to pxe_blksize.
23770 Reported by: Ian Turner
23771
23772 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
23773
23774 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
23775 timeout to avoid indefinite boot stalling.
23776
23777 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
23778
23779 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
23780 (grub_env_write_color_highlight): Likewise.
23781
23782 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
23783
23784 * grub-core/normal/term.c (print_more): Return to normal and not
23785 to standard state after printing "---MORE---".
23786
23787 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
23788
23789 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
23790 Mask out the bit 0x80 since it has other meaning that specifiing color.
23791
23792 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
23793
23794 New relocator. Allows for more kernel support and more straightforward
23795 loader writing.
23796
23797 * Makefile.am (BOOTTARGET): New variable.
23798 (QEMU32): Likewise.
23799 (linux.init.x86_64): New target.
23800 (linux.init.i386): Likewise.
23801 (multiboot.elf): Likewise.
23802 (kfreebsd.elf): Likewise.
23803 (kfreebsd.aout): Likewise.
23804 (pc-chainloader.elf): Likewise.
23805 (pc-chainloader.bin): Likewise.
23806 (ntldr.elf): Likewise.
23807 (ntldr.bin): Likewise.
23808 (multiboot2.elf): Likewise.
23809 (kfreebsd.init.x86_64): Likewise.
23810 (kfreebsd.init.i386): Likewise.
23811 (knetbsd.init.i386): Likewise.
23812 (kopenbsd.init.i386): Likewise.
23813 (knetbsd.init.x86_64): Likewise.
23814 (kopenbsd.init.x86_64): Likewise.
23815 (linux-initramfs.i386): Likewise.
23816 (linux-initramfs.x86_64): Likewise.
23817 (kfreebsd-mfsroot.i386.img): Likewise.
23818 (knetbsd.image.i386): Likewise.
23819 (kopenbsd.image.i386): Likewise.
23820 (kopenbsd.image.x86_64): Likewise.
23821 (knetbsd.miniroot-image.i386.img): Likewise.
23822 (kfreebsd-mfsroot.x86_64.img): Likewise.
23823 (knetbsd.image.x86_64): Likewise.
23824 (knetbsd.miniroot-image.x86_64.img): Likewise.
23825 (kfreebsd-mfsroot.i386.gz): Likewise.
23826 (bootcheck-kfreebsd-i386): Likewise.
23827 (kfreebsd-mfsroot.x86_64.gz): Likewise.
23828 (bootcheck-kfreebsd-x86_64): Likewise.
23829 (knetbsd.miniroot-image.i386.gz): Likewise.
23830 (bootcheck-knetbsd-i386): Likewise.
23831 (bootcheck-kopenbsd-i386): Likewise.
23832 (bootcheck-kopenbsd-x86_64): Likewise.
23833 (knetbsd.miniroot-image.x86_64.gz): Likewise.
23834 (bootcheck-knetbsd-x86_64): Likewise.
23835 (bootcheck-linux-i386): Likewise.
23836 (bootcheck-linux-x86_64): Likewise.
23837 (bootcheck-linux16-i386): Likewise.
23838 (bootcheck-linux16-x86_64): Likewise.
23839 (bootcheck-multiboot): Likewise.
23840 (bootcheck-multiboot2): Likewise.
23841 (bootcheck-kfreebsd-aout): Likewise.
23842 (bootcheck-pc-chainloader): Likewise.
23843 (bootcheck-ntldr): Likewise.
23844 (CLEANFILES): Add new targets.
23845 (BOOTCHECKS): New variable.
23846 (.PHONY): Add bootchecks.
23847 (SUCCESSFUL_BOOT_STRING): New variable.
23848 (BOOTCHECK_TIMEOUT): Likewise.
23849 (bootcheck): New target
23850 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
23851 * configure.ac: Correct efiemu excuse.
23852 * docs/grub.texi (Supported kernels): New chapter.
23853 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
23854 include/grub/mm_private.h. Simplify inclusion of
23855 include/grub/boot.h, include/grub/loader.h
23856 and include/grub/msdos_partition.h
23857 (KERNEL_HEADER_FILES) [i386_coreboot]:
23858 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
23859 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
23860 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
23861 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
23862 include/grub/machine/loader.h.
23863 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
23864 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
23865 extra_dist.
23866 (pci.mod): Enable on i386-multiboot.
23867 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
23868 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
23869 i386-qemu.
23870 (relocator.mod): Rewritten.
23871 (aout.mod): Enable on all x86.
23872 (bsd.mod): Likewise.
23873 (ntldr.mod): New module.
23874 (linux.mod): Use loader/i386/linux.c on all x86.
23875 (xnu.mod): Enable on all x86.
23876 (vga_text.mod): disable on EFI and QEMU.
23877 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
23878 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
23879 * grub-core/efiemu/loadcore.c: Likewise.
23880 * grub-core/efiemu/main.c: Likewise.
23881 (grub_efiemu_exit_boot_services): Removed.
23882 (grub_efiemu_finish_boot_services): Likewise.
23883 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
23884 function.
23885 * grub-core/efiemu/i386/nocfgtables.c: New file.
23886 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
23887 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
23888 (grub_efi_finish_boot_services): Moved from here ...
23889 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
23890 Fille finish memory map and related data.
23891 (finish_mmap_buf): New variable.
23892 (grub_efi_uintn_t finish_mmap_size): Likewise.
23893 (grub_efi_uintn_t finish_key): Likewise.
23894 (grub_efi_uintn_t finish_desc_size): Likewise.
23895 (grub_efi_uint32_t finish_desc_version): Likewise.
23896 (grub_efi_is_finished): Likewise.
23897 (grub_efi_get_memory_map): Use saved memory map if EFI is already
23898 finished.
23899 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
23900 (grub_elf64_phdr_iterate): Likewise.
23901 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
23902 (grub_os_area_size): Likewise.
23903 (grub_machine_init): Don't reserve os area.
23904 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
23905 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
23906 * grub-core/kern/i386/loader.S: Removed.
23907 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
23908 (grub_os_area_size): Likewise.
23909 (grub_machine_init): Don't reserve os area.
23910 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
23911 Don't call grub_dl_unload_all.
23912 Don't include loader.S.
23913 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
23914 Declare the memory after _end as available.
23915 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
23916 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
23917 (GRUB_MM_ALLOC_MAGIC): Moved from here...
23918 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
23919 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
23920 * include/grub/mm_private.h (grub_mm_header): ... here.
23921 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
23922 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
23923 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
23924 (grub_mm_region): ..here. Removed addr. Added pre_size.
23925 All users updated.
23926 * grub-core/kern/mm.c (base): Renamed to ...
23927 (grub_mm_base): ... this. Made global.
23928 (grub_real_malloc): Alloc from end of region.
23929 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
23930 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
23931 * grub-core/kern/powerpc/cache_flush.S: ... here.
23932 * grub-core/lib/efi/relocator.c: New file.
23933 * grub-core/lib/i386/relocator.c: Rewritten.
23934 * grub-core/lib/i386/relocator16.S: New file.
23935 * grub-core/lib/i386/relocator32.S: Likewise.
23936 * grub-core/lib/i386/relocator64.S: Likewise.
23937 * grub-core/lib/i386/relocator_asm.S: Rewritten.
23938 * grub-core/lib/i386/relocator_common.S: New file.
23939 * grub-core/lib/ieee1275/relocator.c: Likewise.
23940 * grub-core/lib/mips/relocator.c: Rewritten.
23941 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
23942 stylistic adjustments.
23943 * grub-core/lib/powerpc/relocator.c: New file.
23944 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
23945 * grub-core/lib/relocator.c: Rewritten.
23946 * grub-core/lib/x86_64/relocator_asm.S: New file.
23947 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
23948 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
23949 (bsd_tag): New struct.
23950 (tags): New variable.
23951 (tags_last): Likewise.
23952 (netbsd_module): New struct.
23953 (netbsd_mods): New variable.
23954 (netbsd_mods_last): Likewise.
23955 (openbsd_opts): New parameter "serial".
23956 (OPENBSD_SERIAL_ARG): New definition.
23957 (netbsd_opts): New parameter "serial".
23958 (NETBSD_SERIAL_ARG): New definition.
23959 (grub_freebsd_add_meta): Reorganised into ...
23960 (grub_bsd_add_meta): ...this. All users updated.
23961 (grub_freebsd_add_mmap): Reorganised into ...
23962 (generate_e820_mmap): ...this...
23963 (grub_bsd_add_mmap): ...and this. All users updated.
23964 (grub_freebsd_list_modules): Use tags.
23965 (grub_netbsd_add_meta_module): New function.
23966 (grub_netbsd_list_modules): Likewise.
23967 (grub_freebsd_boot): Use relocator and finish EFI.
23968 (grub_openbsd_boot): Likewise.
23969 (grub_netbsd_setup_video): New function.
23970 (grub_netbsd_add_modules): Likewise.
23971 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
23972 and finish EFI.
23973 (grub_bsd_unload): Unload tags.
23974 (grub_bsd_load_aout): Use relocator.
23975 (grub_bsd_elf32_size_hook): New function.
23976 (grub_bsd_elf32_hook): Use relocator.
23977 (grub_bsd_elf64_size_hook): New function.
23978 (grub_bsd_elf64_hook): Use relocator.
23979 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
23980 (grub_bsd_load): Zero-out openbsd_ramdisk.
23981 (grub_bsd_load): Use relocator.
23982 (grub_cmd_openbsd): Support serial.
23983 (grub_cmd_netbsd): Support modules.
23984 (grub_cmd_freebsd_module): Use relocator.
23985 (grub_netbsd_module_load): New function.
23986 (grub_cmd_netbsd_module): Likewise.
23987 (grub_cmd_openbsd_ramdisk): Likewise.
23988 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
23989 kopenbsd_ramdisk.
23990 (GRUB_MOD_FINI): Unregister new commands.
23991 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
23992 (grub_freebsd_load_elfmodule_obj): Use relocator.
23993 (grub_freebsd_load_elfmodule): Likewise.
23994 (grub_freebsd_load_elf_meta): Likewise.
23995 (grub_netbsd_load_elf_meta): New function.
23996 (grub_openbsd_find_ramdisk): Likewise.
23997 * grub-core/loader/i386/bsd_helper.S: Removed.
23998 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
23999 * grub-core/loader/i386/bsd_trampoline.S: Removed.
24000 * grub-core/loader/i386/efi/linux.c: Likewise.
24001 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
24002 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
24003 (DEFAULT_VIDEO_MODE): Likewise.
24004 (real_mode_target): New variable.
24005 (prot_mode_target): Likewise.
24006 (initrd_mem_target): Likewise.
24007 (relocator): Likewise.
24008 (efi_mmap_buf): Likewise.
24009 (efi_mmap_size): Likewise.
24010 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
24011 (free_pages): Use relocator.
24012 (allocate_pages): Account for efi_mmap and use relocator. Return error.
24013 (grub_linux_setup_video): Return error.
24014 (grub_linux_trampoline_start): Removed.
24015 (grub_linux_trampoline_end): Likewise.
24016 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
24017 andd video parameters depending on firmware.
24018 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
24019 [GRUB_MACHINE_EFI]: Pass EFI parameters.
24020 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
24021 (grub_cmd_initrd): Use relocator.
24022 * grub-core/loader/i386/linux_trampoline.S: Removed.
24023 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
24024 (elf_sec_entsize): Likewise.
24025 (elf_sec_shstrndx): Likewise.
24026 (elf_sections): Likewise.
24027 (grub_multiboot_load): Use relocator.
24028 (grub_multiboot_get_mbi_size): Account for sections.
24029 (grub_multiboot_make_mbi): Use relocator and support sections.
24030 (grub_multiboot_add_elfsyms): New function.
24031 (grub_multiboot_free_mbi): Free sections.
24032 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
24033 (grub_linux_real_target): Likewise.
24034 (grub_linux_real_chunk): Likewise.
24035 (grub_linux16_prot_size): Likewise.
24036 (grub_linux16_boot): Use relocator.
24037 (grub_linux_unload): Unload relocator.
24038 (grub_cmd_linux): Use relocator.
24039 (grub_cmd_initrd): Likewise.
24040 * grub-core/loader/i386/pc/ntldr.c: New file.
24041 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
24042 Don't try to guess CPU frequency.
24043 (grub_xnu_set_video): Stretch bitmap.
24044 (grub_xnu_boot): Use relocator.
24045 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
24046 (grub_linux_unload): Free relocator.
24047 (grub_linux_load32): Use relocator.
24048 (grub_linux_load64): Likewise.
24049 (grub_cmd_initrd): Likewise.
24050 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
24051 (grub_multiboot_unload): Unload relocator.
24052 (grub_cmd_multiboot): Use relocator.
24053 (grub_cmd_module): Likewise.
24054 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
24055 Use relocator and support sections.
24056 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
24057 (elf_sec_entsize): Likewise.
24058 (elf_sec_shstrndx): Likewise.
24059 (elf_sections): Likewise.
24060 (grub_multiboot_load): Use relocator.
24061 (grub_multiboot_get_mbi_size): Account for sections.
24062 (grub_multiboot_make_mbi): Use relocator and support sections.
24063 (grub_multiboot_add_elfsyms): New function.
24064 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
24065 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
24066 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
24067 Prototype changed. All users updated.
24068 (grub_xnu_align_heap): Simplified.
24069 (grub_xnu_writetree_toheap): Likewise.
24070 (grub_xnu_unload): Unload relocator.
24071 (grub_cmd_xnu_kernel): Use relocator.
24072 (grub_cmd_xnu_kernel64): Likewise.
24073 (grub_xnu_register_memory): Simplified.
24074 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
24075 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
24076 EFI is finished.
24077 (grub_console_checkkey): Likewise.
24078 (grub_console_getkey): Likewise.
24079 (grub_console_getwh): Likewise.
24080 (grub_console_getxy): Likewise.
24081 (grub_console_gotoxy): Likewise.
24082 (grub_console_cls): Likewise.
24083 (grub_console_setcolorstate): Likewise.
24084 (grub_console_setcursor): Likewise.
24085 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
24086 * grub-core/tests/boot/kbsd.init-i386.S: New file.
24087 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
24088 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
24089 * grub-core/tests/boot/kernel-8086.S: Likewise.
24090 * grub-core/tests/boot/kernel-i386.S: Likewise.
24091 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
24092 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
24093 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
24094 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
24095 * grub-core/tests/boot/knetbsd.cfg: Likewise.
24096 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
24097 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
24098 * grub-core/tests/boot/linux.cfg: Likewise.
24099 * grub-core/tests/boot/linux.init-i386.S: Likewise.
24100 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
24101 * grub-core/tests/boot/linux16.cfg: Likewise.
24102 * grub-core/tests/boot/multiboot.cfg: Likewise.
24103 * grub-core/tests/boot/multiboot2.cfg: Likewise.
24104 * grub-core/tests/boot/ntldr.cfg: Likewise.
24105 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
24106 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
24107 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
24108 New definition.
24109 * include/grub/dl.h (grub_dl_unload_all): Removed.
24110 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
24111 (grub_efi_finish_boot_services): Change prototype.
24112 (grub_efi_is_finished): New variable.
24113 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
24114 Changed prototype.
24115 (grub_efiemu_finish_boot_services): Removed.
24116 (grub_machine_efiemu_init_tables): New prototype.
24117 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
24118 (grub_elf64_phdr_iterate): Likewise.
24119 * include/grub/i386/bsd.h: Include relocator.h.
24120 (freebsd_tag_header): New struct.
24121 (grub_openbsd_bios_mmap): Removed.
24122 (grub_unix_real_boot): Removed.
24123 (grub_freebsd_load_elfmodule32): Changed prototype.
24124 (grub_freebsd_load_elfmodule_obj64): Likewise.
24125 (grub_freebsd_load_elf_meta32): Likewise.
24126 (grub_freebsd_load_elf_meta64): Likewise.
24127 (grub_freebsd_add_meta): Removed.
24128 (grub_netbsd_load_elf_meta32): New prototype.
24129 (grub_netbsd_load_elf_meta64): Likewise.
24130 (grub_bsd_add_meta): Likewise.
24131 (grub_openbsd_ramdisk_descriptor): New struct.
24132 (grub_openbsd_find_ramdisk32): New prototype.
24133 (grub_openbsd_find_ramdisk64): Likewise.
24134 * include/grub/i386/coreboot/loader.h: Removed.
24135 * include/grub/i386/efi/loader.h: Likewise.
24136 * include/grub/i386/ieee1275/loader.h: Likewise.
24137 * include/grub/i386/linux.h (linux_kernel_header): Change void *
24138 to grub_uint32_t.
24139 * include/grub/i386/loader.h: Removed.
24140 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
24141 value.
24142 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
24143 (grub_phys_addr_t): New type.
24144 (grub_vtop): New inline function.
24145 (grub_map_memory): Likewise.
24146 (grub_unmap_memory): Likewise.
24147 * include/grub/i386/multiboot/loader.h: Removed.
24148 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
24149 (NETBSD_BTINFO_CONSOLE): New definition.
24150 (NETBSD_BTINFO_SYMTAB): Likewise.
24151 (NETBSD_BTINFO_MODULES): Likewise.
24152 (NETBSD_BTINFO_FRAMEBUF): Likewise.
24153 (grub_netbsd_bootinfo): New struct.
24154 (grub_netbsd_btinfo_common): Use explicit bitsize.
24155 (grub_netbsd_btinfo_mmap_entry): Removed.
24156 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
24157 (grub_netbsd_btinfo_bootdisk): New struct.
24158 (grub_netbsd_btinfo_symtab): Likewise.
24159 (grub_netbsd_btinfo_serial): Likewise.
24160 (grub_netbsd_btinfo_modules): Likewise.
24161 (grub_netbsd_btinfo_framebuf): Likewise.
24162 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
24163 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
24164 Likewise.
24165 (grub_openbsd_bootargs): Use explicit bitsize.
24166 (grub_openbsd_bootarg_console): New struct.
24167 (GRUB_OPENBSD_COM_MAJOR): New definition.
24168 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
24169 * include/grub/i386/pc/efiemu.h: Removed.
24170 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
24171 * include/grub/i386/qemu/loader.h: Removed.
24172 * include/grub/i386/relocator.h: Rewritten.
24173 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
24174 * include/grub/mips/memory.h: New file.
24175 * include/grub/mips/multiboot.h: Rewritten.
24176 * include/grub/mips/relocator.h: Rewritten.
24177 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
24178 (grub_vtop): New function.
24179 (grub_map_memory): Likewise.
24180 (grub_unmap_memory): Likewise.
24181 * include/grub/misc.h (ALIGN_DOWN): New definition.
24182 * include/grub/mm.h (grub_mm_check_real): New proto.
24183 (GRUB_MM_CHECK): New definition.
24184 * include/grub/mm_private.h: New file.
24185 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
24186 (grub_multiboot_get_mbi_size): Removed.
24187 (grub_multiboot_make_mbi): Change prottype.
24188 (grub_multiboot_set_accepts_video): New proto.
24189 (grub_multiboot_add_elfsyms): Likewise.
24190 (grub_multiboot_payload_eip): New variable.
24191 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
24192 New prototype.
24193 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
24194 New definition.
24195 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
24196 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
24197 * include/grub/powerpc/ieee1275/loader.h: Removed.
24198 * include/grub/powerpc/memory.h: New file.
24199 * include/grub/powerpc/relocator.h: Likewise.
24200 * include/grub/relocator.h: Likewise.
24201 * include/grub/relocator_private.h: Likewise.
24202 * include/grub/sparc64/ieee1275/loader.h: Removed.
24203 * include/grub/x86_64/memory.h: New file.
24204 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
24205 (grub_xnu_heap_malloc): Likewise.
24206 (grub_xnu_heap_real_start): Removed.
24207 (grub_xnu_heap_start): Likewise.
24208 (grub_xnu_relocator): New variable.
24209 (grub_xnu_heap_target_start): Likewise.
24210 * tests/util/grub-shell.in: Support non-pc.
24211 * util/grub-mkimage.c (image_targets): Fix multiboot target.
24212
24213 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24214
24215 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
24216 on malloc error.
24217 (grub_bidi_logical_to_visual): Check that malloc succeded.
24218 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
24219 puts.
24220 (grub_xputs_normal): Likewise.
24221
24222 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24223
24224 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
24225 extra_dist.
24226
24227 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24228
24229 * grub-core/efiemu/runtime/efiemu.sh: Removed.
24230
24231 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24232
24233 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
24234
24235 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24236
24237 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
24238 dprintf.
24239
24240 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
24241
24242 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
24243
24244 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
24245
24246 * grub-core/normal/term.c (print_more): Fix a memory leak.
24247 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
24248 (grub_xputs_normal): Likewise.
24249
24250 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
24251
24252 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
24253 the begining of the string
24254
24255 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
24256
24257 * grub-core/script/script.c (grub_script_parse): Free parsed on
24258 failure.
24259
24260 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
24261
24262 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
24263 on failure.
24264
24265 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
24266
24267 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
24268 return.
24269
24270 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
24271
24272 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
24273 (scroll_up): Fix a memory leak.
24274
24275 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
24276
24277 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
24278 errors.
24279
24280 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
24281
24282 Handle USB pendrives exposed as floppies.
24283
24284 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
24285 floppy.
24286 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
24287 Check for partitions on all devices.
24288
24289 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
24290
24291 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
24292 (readkey): Likewise.
24293
24294 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
24295
24296 Multiple variable names support to "export" command.
24297
24298 * normal/context.c (grub_cmd_export): "export" command supports
24299 multiple variable names.
24300
24301 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
24302
24303 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
24304 --target=drive output to Mach device name.
24305
24306 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
24307
24308 New Automake based build system for GRUB.
24309
24310 * ABOUT-NLS: New file.
24311 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
24312 in Makefile.util.def file.
24313 * Makefile.util.def: New file. Autogen build definitions file for
24314 GRUB host utils.
24315 * conf/Makefile.common: New file. Common variables for GRUB host
24316 utils and target modules.
24317 * conf/Makefile.extra-dist: New file. Extra files for make dist.
24318 * docs/Makefile.am: New file. Automake file for docs.
24319 * gentpl.py: New file. Python script to generate Autogen
24320 template.
24321 * grub-core/Makefile.am: New file. GRUB target modules' rules
24322 that doesn't fit in Makefile.core.def file.
24323 * grub-core/Makefile.core.def: New file. Autogen build
24324 definitions file for GRUB target modules.
24325 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
24326 specific setjmp.S file.
24327 * po/Makefile.am: New file.
24328
24329 * .bzrignore: New ignores.
24330 * INSTALL: New requirements, without Ruby.
24331 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
24332 * autogen.sh: Updated to invoke autogen as necessary.
24333 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
24334 and defines for Automake conditionals.
24335 * geninit.sh: Refactoring.
24336
24337 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
24338 necessary.
24339 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
24340 New prototype.
24341
24342 * include/grub/test.h: Fix functional test modules' naming.
24343 * grub-core/tests/example_functional_test.c: Fix test module name.
24344
24345 * util/misc.c: Hosted versions' of grub functions for libgrub.a
24346 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
24347 * util/grub-editenv.c: Likewise.
24348 * util/grub-fstest.c: Likewise.
24349 * util/grub-mkdevicemap.c: Likewise.
24350 * util/grub-mkfont.c: Likewise.
24351 * util/grub-mkimage.c: Likewise.
24352 * util/grub-mkpasswd-pbkdf2.c: Likewise.
24353 * util/grub-probe.c: Likewise.
24354 * util/grub-script-check.c: Likewise.
24355 * util/i386/pc/grub-setup.c: Likewise.
24356 * util/sparc64/ieee1275/grub-setup.c: Likewise.
24357
24358 * tests/util/grub-shell.in: Fix override directory path.
24359 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
24360 * util/import_gcry.py: Create Makefile.gcry.def file instead.
24361
24362 * util/lvm.c: Update #includes.
24363 * util/raid.c: Likewise.
24364 * util/resolve.c: Likewise.
24365 * grub-core/bus/emu/pci.c: Likewise.
24366 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
24367 * grub-core/lib/posix_wrap/string.h: Likewise.
24368 * grub-core/kern/emu/main.c: Likewise.
24369
24370 * grub-core/gensymlist.sh: New file. Script for generating kernel
24371 symbols file.
24372 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
24373
24374 * grub-core/gentrigtables.c: Fix unused variable warnings.
24375
24376 * Makefile.in: Removed.
24377 * conf/any-emu.rmk: Removed.
24378 * conf/common.rmk: Removed.
24379 * conf/i386-coreboot.rmk: Removed.
24380 * conf/i386-efi.rmk: Removed.
24381 * conf/i386-ieee1275.rmk: Removed.
24382 * conf/i386-multiboot.rmk: Removed.
24383 * conf/i386-pc.rmk: Removed.
24384 * conf/i386-qemu.rmk: Removed.
24385 * conf/i386.rmk: Removed.
24386 * conf/mips-yeeloong.rmk: Removed.
24387 * conf/mips.rmk: Removed.
24388 * conf/powerpc-ieee1275.rmk: Removed.
24389 * conf/sparc64-ieee1275.rmk: Removed.
24390 * conf/tests.rmk: Removed.
24391 * conf/x86-efi.rmk: Removed.
24392 * conf/x86_64-efi.rmk: Removed.
24393 * gendistlist.sh: Removed.
24394 * geninitheader.sh: Removed.
24395 * genkernsyms.sh.in: Removed.
24396 * genmk.rb: Removed.
24397 * gensymlist.sh.in: Removed.
24398 * mkinstalldirs: Removed.
24399 * boot: Moved ...
24400 * grub-core/boot: ... to here.
24401 * bus: Moved ...
24402 * grub-core/bus: ... to here.
24403 * commands: Moved ...
24404 * grub-core/commands: ... to here.
24405 * disk: Moved ...
24406 * grub-core/disk: ... to here.
24407 * efiemu: Moved ...
24408 * grub-core/efiemu: ... to here.
24409 * font: Moved ...
24410 * grub-core/font: ... to here.
24411 * fs: Moved ...
24412 * grub-core/fs: ... to here.
24413 * gencmdlist.sh: Moved ...
24414 * grub-core/gencmdlist.sh: ... to here.
24415 * genemuinit.sh: Moved ...
24416 * grub-core/genemuinit.sh: ... to here.
24417 * genemuinitheader.sh: Moved ...
24418 * grub-core/genemuinitheader.sh: ... to here.
24419 * genfslist.sh: Moved ...
24420 * grub-core/genfslist.sh: ... to here.
24421 * genhandlerlist.sh: Moved ...
24422 * grub-core/genhandlerlist.sh: ... to here.
24423 * genmoddep.awk: Moved ...
24424 * grub-core/genmoddep.awk: ... to here.
24425 * genmodsrc.sh: Moved ...
24426 * grub-core/genmodsrc.sh: ... to here.
24427 * genpartmaplist.sh: Moved ...
24428 * grub-core/genpartmaplist.sh: ... to here.
24429 * genparttoollist.sh: Moved ...
24430 * grub-core/genparttoollist.sh: ... to here.
24431 * genterminallist.sh: Moved ...
24432 * grub-core/genterminallist.sh: ... to here.
24433 * gentrigtables.c: Moved ...
24434 * grub-core/gentrigtables.c: ... to here.
24435 * genvideolist.sh: Moved ...
24436 * grub-core/genvideolist.sh: ... to here.
24437 * gettext: Moved ...
24438 * grub-core/gettext: ... to here.
24439 * gfxmenu: Moved ...
24440 * grub-core/gfxmenu: ... to here.
24441 * gnulib: Moved ...
24442 * grub-core/gnulib: ... to here.
24443 * hello: Moved ...
24444 * grub-core/hello: ... to here.
24445 * hook: Moved ...
24446 * grub-core/hook: ... to here.
24447 * io: Moved ...
24448 * grub-core/io: ... to here.
24449 * kern: Moved ...
24450 * grub-core/kern: ... to here.
24451 * lib: Moved ...
24452 * grub-core/lib: ... to here.
24453 * loader: Moved ...
24454 * grub-core/loader: ... to here.
24455 * mmap: Moved ...
24456 * grub-core/mmap: ... to here.
24457 * normal: Moved ...
24458 * grub-core/normal: ... to here.
24459 * partmap: Moved ...
24460 * grub-core/partmap: ... to here.
24461 * parttool: Moved ...
24462 * grub-core/parttool: ... to here.
24463 * script: Moved ...
24464 * grub-core/script: ... to here.
24465 * term: Moved ...
24466 * grub-core/term: ... to here
24467 * tests/example_functional_test.c: Moved ...
24468 * grub-core/tests/example_functional_test.c: ... to here.
24469 * tests/lib/functional_test.c: Moved ...
24470 * grub-core/tests/lib/functional_test.c: ... to here.
24471 * tests/lib/test.c: Moved ...
24472 * grub-core/tests/lib/test.c: ... to here.
24473 * video: Moved ...
24474 * grub-core/video: ... to here.
24475
24476 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
24477
24478 Replace --enable-grub-emu-modules with grub-emu-lite.
24479
24480 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
24481 cache.S.
24482
24483 * include/grub/emu/misc.h (grub_emu_init): New prototype.
24484 * kern/emu/full.c: New file. For grub-emu specific initialization.
24485 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
24486 * kern/emu/main.c: Call initialization function grub_emu_init.
24487
24488 * Makefile.in: Include grub-emu-lite in install.
24489 * commands/parttool.c: Use grub_no_autoload to differentiate
24490 between grub-emu and grub-emu-lite.
24491 * include/grub/misc.h: New variable grub_no_autoload.
24492
24493 * conf/any-emu.rmk: New rules for grub-emu-lite.
24494 * configure.ac: Remove --enable-grub-emu-modules.
24495 * genmk.rb: Cleanup unnecessary rules.
24496 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
24497
24498 * normal/main.c: Don't load list files on grub-emu-lite.
24499 * util/misc.c (grub_arch_sync_caches): Removed.
24500
24501 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
24502
24503 * kern/mips/startup.S (grub_prefix): Update comment to refer to
24504 grub-mkimage rather than grub-mkelfimage.
24505 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
24506
24507 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
24508
24509 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
24510 a key after CapsLock or NumLock. It's just a qemu bug.
24511
24512 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
24513
24514 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
24515 needed by libusb wrapper.
24516
24517 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
24518
24519 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
24520
24521 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
24522
24523 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
24524 --nounzip is passed.
24525
24526 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
24527
24528 USB hotunplugging and USB serial support.
24529
24530 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
24531 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
24532 (grub_uhci_transfer): Respect timeout and set *actual.
24533 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
24534 non-standard length.
24535 (grub_usb_device_attach): Autoload modules.
24536 (GRUB_MOD_INIT): Set grub_term_poll_usb.
24537 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
24538 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
24539 users updated.
24540 (grub_usb_add_hub): Fill nports and children.
24541 (attach_root_port): Receive hub instead of controller.
24542 All users updated. Fill hub->devices.
24543 (grub_usb_root_hub): Allocate hub->devices.
24544 (detach_device): New function.
24545 (poll_nonroot_hub): Fill children and detach devices.
24546 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
24547 actual arguments. All users updated.
24548 (grub_usb_bulk_read_extended): New function.
24549 * bus/usb/serial/common.c: New file.
24550 * bus/usb/serial/ftdi.c: Likewise.
24551 * bus/usb/serial/pl2303.c: Likewise.
24552 * commands/terminal.c (handle_command): Support wildcard.
24553 * commands/usbtest.c: Output "Unknown" instead of empty string.
24554 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
24555 (usbserial_common_mod_SOURCES): New variable.
24556 (usbserial_common_mod_CFLAGS): Likewise.
24557 (usbserial_common_mod_LDFLAGS): Likewise.
24558 (pkglib_MODULES): Add usbserial_pl2303.mod.
24559 (usbserial_pl2303_mod_SOURCES): New variable.
24560 (usbserial_pl2303_mod_CFLAGS): Likewise.
24561 (usbserial_pl2303_mod_LDFLAGS): Likewise.
24562 (pkglib_MODULES): Add usbserial_ftdi.mod.
24563 (usbserial_ftdi_mod_SOURCES): New variable.
24564 (usbserial_ftdi_mod_CFLAGS): Likewise.
24565 (usbserial_ftdi_mod_LDFLAGS): Likewise.
24566 (pkglib_MODULES): Add serial.mod.
24567 (serial_mod_SOURCES): New variable.
24568 (serial_mod_CFLAGS): Likewise.
24569 (serial_mod_LDFLAGS): Likewise.
24570 * conf/i386-pc.rmk: Likewise.
24571 * conf/mips-yeeloong.rmk: Likewise.
24572 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
24573 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
24574 * disk/usbms.c (first_available_slot): New variable.
24575 (grub_usbms_attach): Don't reuse free slots due to potential cache
24576 problems.
24577 * include/grub/serial.h: Moved to ..
24578 * include/grub/ns8250.h: ...this.
24579 * include/grub/serial.h: New file.
24580 * include/grub/term.h (grub_term_poll_usb): New variable.
24581 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
24582 readkey. All users updated.
24583 (grub_terminfo_output_state): Pass term to put.
24584 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
24585 (grub_usb_controller_dev): Add timeout and actual arguments to
24586 transfer. All users updated.
24587 (grub_usb_interface): New field detach_data.
24588 (grub_usb_device): New fields children and nports.
24589 (grub_usb_ep_type_t): New type.
24590 (grub_usb_get_ep_type): New function.
24591 (grub_usb_bulk_read_extended): Likewise.
24592 * include/grub/usbdesc.h (grub_usb_desc): New type.
24593 * include/grub/usbserial.h: New file.
24594 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
24595 * kern/term.c (grub_term_poll_usb): New variable.
24596 (grub_getkey): Call grub_term_poll_usb if set.
24597 (grub_checkkey): Likewise.
24598 (grub_getkeystatus): Likewise.
24599 * term/serial.c: Moved controller-specific parts to ...
24600 * term/ns8250.c: ... here.
24601 * term/serial.c: Mostly rewritten.
24602 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
24603 according to spec.
24604
24605 2010-08-20 Robert Millan <rmh@gnu.org>
24606
24607 Make kFreeBSD code more generic to support ext2fs as root, ufs as
24608 a separate module and maybe other interesting combinations.
24609
24610 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
24611 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
24612 (kfreebsd_entry): Add generic filesystem module load routine.
24613 Map GRUB `ext2' to kFreeBSD `ext2fs'.
24614
24615 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
24616
24617 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
24618 "numcenter" (I misunderstood the purpose of this entry).
24619 * docs/grub.texi (sendkey): Likewise.
24620
24621 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
24622
24623 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
24624 status flag options; simply omitting the option is equivalent and
24625 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
24626 (keysym_table): Rename "num5numlock" to "numlock".
24627 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
24628 can uniformly say that only the last of multiple `sendkey'
24629 invocations has any effect.
24630 * docs/grub.texi (sendkey): New section.
24631
24632 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
24633
24634 * commands/i386/pc/sendkey.c (options): Fix three typos.
24635
24636 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
24637
24638 Implement sendkey support.
24639
24640 * commands/i386/pc/sendkey.c: New file.
24641 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
24642 (sendkey_mod_SOURCES): New variable.
24643 (sendkey_mod_CFLAGS): Likewise.
24644 (sendkey_mod_LDFLAGS): Likewise.
24645
24646 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
24647
24648 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
24649 fix warnings from Autoconf.
24650
24651 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
24652
24653 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
24654 to avoid false positives with some assemblers that output things
24655 like "someprefix_func" as part of their output.
24656
24657 2010-08-15 Robert Millan <rmh@gnu.org>
24658
24659 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
24660 errors.
24661 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
24662 grub_get_libzfs_handle() errors.
24663
24664 2010-08-14 Robert Millan <rmh@gnu.org>
24665
24666 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
24667 filesystem is not ZFS.
24668
24669 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
24670
24671 Fix for misspelled color names defaulting to black/black (bug
24672 reported by Doug Nazar)
24673
24674 * include/grub/normal.h (grub_parse_color_name_pair): Add return
24675 status to prototype.
24676 * normal/color.c (grub_parse_color_name_pair): Return failure
24677 status.
24678 (grub_env_write_color_normal): Ignore bad color names.
24679 (grub_env_write_color_highlight): Likewise.
24680 * normal/main.c (GRUB_MOD_INIT): Set default color names.
24681
24682 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
24683
24684 "shift" command support to GRUB script.
24685
24686 * include/grub/script_sh.h (grub_script_shift): New prototype.
24687 * script/execute.c (grub_script_shift): New function.
24688 * script/main.c (grub_script_init): Register shift command.
24689 (grub_script_fini): Unregister shift command.
24690 * util/grub-script-check.c (grub_script_cmd_shift): New function.
24691
24692 * tests/grub_script_shift.in: New testcase.
24693 * conf/tests.rmk: Rules for new testcase.
24694
24695 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
24696
24697 "continue" command support to GRUB script.
24698
24699 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
24700 (grub_script_break): Continue support.
24701 * script/main.c (grub_script_init): Register continue command.
24702 (grub_script_fini): Unregister continue command.
24703
24704 * tests/grub_script_continue.in: New testcase.
24705 * conf/tests.rmk: Rules for new testcase.
24706
24707 2010-08-12 BVK Chaitanya <bvk@dbook>
24708
24709 "break" command support to GRUB script.
24710
24711 * conf/common.rmk: Rule updates to grub-script-check.
24712 * include/grub/misc.h (grub_min): New function.
24713 * include/grub/script_sh.h (grub_script_init): New prototype.
24714 (grub_script_fini): New prototype.
24715 (grub_script_break): New prototype.
24716 * script/main.c (grub_script_init): New function.
24717 (grub_script_fini): New function.
24718 * script/execute.c (grub_script_break): New function.
24719 * normal/main.c: Calls to grub_script_{init,fini}.
24720 * util/grub-script-check.c (grub_script_break): New function.
24721
24722 * tests/grub_script_break.in: New testcase.
24723 * conf/tests.rmk: Rules for new test case.
24724
24725 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
24726
24727 Function parameters support to GRUB script.
24728
24729 * script/yylex.l (VARIABLE): Regular expression update.
24730 * script/function.c (grub_script_function_call): Moved ...
24731 * script/execute.c (grub_script_function_call): ... to here.
24732 (grub_script_execute_arglist_to_argv): Removed.
24733 (grub_script_arglist_to_argv): New function.
24734 * script/argv.c: New file.
24735 (grub_script_argv_free): New function.
24736 (grub_script_argv_next): Likewise.
24737 (grub_script_argv_append): Likewise.
24738 (grub_script_argv_split_append): Likewise.
24739 * include/grub/script_sh.h (grub_script_argv): New struct.
24740 (grub_script_argv_free): New function.
24741 (grub_script_argv_next): Likewise.
24742 (grub_script_argv_append): Likewise.
24743 (grub_script_argv_split_append): Likewise.
24744
24745 * conf/common.rmk (normal.mod): New source script/argv.c.
24746
24747 * tests/grub_script_echo1.in: More tests.
24748 * tests/grub_script_vars1.in: Likewise.
24749 * tests/grub_script_functions.in: New test case.
24750 * conf/tests.rmk: Rules for new testcase.
24751
24752 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
24753
24754 Remove grub_script_cmdblock struct.
24755
24756 * include/grub/script_sh.h: Remove grub_script_cmdblock.
24757 * script/parser.y: Likewise.
24758 * script/execute.c: Rename cmdblock suffix to cmdlist.
24759 * script/script.c: Likewise.
24760 * util/grub-script-check.c: Likewise.
24761
24762 2010-08-11 Yves Blusseau <blusseau@zetam.org>
24763
24764 * .bzrignore: add grub-macho2img
24765
24766 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
24767
24768 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
24769
24770 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
24771
24772 Remove the dump of sm712 initialisation sequence.
24773
24774 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
24775 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
24776 (GRUB_VGA_IO_MISC_WRITE): Likewise.
24777 (GRUB_VGA_CR_*): Added many registers.
24778 (GRUB_VGA_SR_*): Likewise.
24779 (GRUB_VGA_GR_*): Likewise.
24780 (grub_vga_write_arx): New function.
24781 (grub_video_hw_config): New struct.
24782 (grub_vga_set_geometry): New function.
24783 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
24784 GRUB_PCI_CLASS_SUBCLASS_VGA.
24785 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
24786 * video/sm712.c (grub_sm712_write_reg): New function
24787 (grub_sm712_read_reg): Likewise.
24788 (grub_sm712_sr_write): Likewise.
24789 (grub_sm712_gr_write): Likewise.
24790 (grub_sm712_cr_write): Likewise.
24791 (grub_sm712_write_arx): Likewise.
24792 (grub_sm712_cr_shadow_write): Likewise.
24793 (grub_sm712_write_dda_lookup): Likewise.
24794 (grub_video_sm712_setup): Initialise the video rather then
24795 blindly replay the dump.
24796 (main) [TEST]: Add a routine to be able to compile as standalone for
24797 tests.
24798 * video/sm712_init.c (sm712_init): Removed.
24799 (sm712_sr_seq1): New array.
24800 (sm712_sr_seq2): Likewise.
24801
24802 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
24803
24804 * include/grub/vga.h: Add missing grub/pci.h include.
24805
24806 2010-08-10 Yves Blusseau <blusseau@zetam.org>
24807
24808 * util/grub-macho2img.c (main): fix typo
24809
24810 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
24811
24812 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
24813 (grub_vga_gr_read): Likewise.
24814 (grub_vga_cr_write): Likewise.
24815 (grub_vga_cr_read): Likewise.
24816 (grub_vga_sr_write): Likewise.
24817 (grub_vga_sr_read): Likewise.
24818 (grub_vga_palette_read): Likewise.
24819 (grub_vga_palette_write): Likewise.
24820 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
24821 (grub_sm712_sr_read): New function.
24822 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
24823 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
24824
24825 2010-08-09 Robert Millan <rmh@gnu.org>
24826
24827 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
24828 out unused variables on non-ZFS build.
24829
24830 2010-08-08 Robert Millan <rmh@gnu.org>
24831
24832 Fix path generation for sub-filesystems in ZFS.
24833
24834 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
24835 missing slash.
24836
24837 2010-08-08 Robert Millan <rmh@gnu.org>
24838
24839 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
24840
24841 2010-08-08 Robert Millan <rmh@gnu.org>
24842
24843 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
24844 exist, issue a proper error message (rely on `ls' for translated
24845 strings).
24846
24847 2010-08-08 Robert Millan <rmh@gnu.org>
24848
24849 Fix grub-probe invocation.
24850
24851 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
24852
24853 2010-08-04 Robert Millan <rmh@gnu.org>
24854
24855 * configure.ac: Remove checks for getfsstat() and getmntany().
24856 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
24857 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
24858 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
24859 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
24860 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
24861 function.
24862 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
24863 via find_mount_point_from_dir() and getfsstat() / getmntany().
24864
24865 2010-08-04 Robert Millan <rmh@gnu.org>
24866
24867 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
24868 (grub_find_zpool_from_mount_point): Merge into ...
24869 (grub_find_zpool_from_dir): ... this.
24870 * kern/emu/misc.c: Likewise.
24871
24872 * kern/emu/misc.c
24873 (grub_make_system_path_relative_to_its_root): Replace
24874 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
24875 with grub_find_zpool_from_dir().
24876 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
24877
24878 2010-08-04 Robert Millan <rmh@gnu.org>
24879
24880 Support OpenSolaris in ZFS device resolution.
24881
24882 * configure.ac: Check for getmntany().
24883 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
24884 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
24885 support.
24886
24887 2010-08-03 Robert Millan <rmh@gnu.org>
24888
24889 Fix grub-emu build.
24890
24891 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
24892 * include/grub/emu/misc.h: ... here.
24893
24894 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
24895 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
24896
24897 * util/misc.c: Remove `<grub/util/libzfs.h>'.
24898 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
24899 (grub_get_libzfs_handle): Move to ...
24900 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
24901 (grub_get_libzfs_handle): ... here.
24902
24903 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
24904
24905 * script/execute.c (grub_script_execute_cmdline): Check for NULL
24906 as command name case.
24907
24908 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
24909
24910 * disk/raid.c (insert_array): Select unique numbers for named arrays
24911 as well, for use as keys in the disk cache.
24912
24913 2010-08-01 Robert Millan <rmh@gnu.org>
24914
24915 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
24916 kFreeBSD device name, except on ZFS where the filesystem label is
24917 used.
24918 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
24919 `/boot/zfs/zpool.cache'.
24920 Set mountfrom kernel variable using ${kfreebsd_device}.
24921
24922 2010-08-01 Robert Millan <rmh@gnu.org>
24923
24924 Make it even harder to use uninitialized `libzfs_handle' (and
24925 make the interface a bit simpler).
24926
24927 * include/grub/util/misc.h (grub_util_init_libzfs)
24928 (libzfs_handle): Remove.
24929 (grub_get_libzfs_handle): New prototype.
24930
24931 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
24932 attribute.
24933 (grub_util_init_libzfs): Remove.
24934 (grub_get_libzfs_handle): New function.
24935
24936 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
24937 grub_get_libzfs_handle() to obtain a libzfs handle instead of
24938 accessing `libzfs_handle' directly.
24939
24940 2010-08-01 Robert Millan <rmh@gnu.org>
24941
24942 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
24943 (grub_find_zpool_from_mount_point): New function prototypes.
24944
24945 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
24946 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
24947
24948 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
24949 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
24950 `static' attribute.
24951
24952 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
24953 finding zpool from mount point into ...
24954 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
24955
24956 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
24957 requested path is part of a ZFS pool, use
24958 grub_find_zpool_from_mount_point() to detect its filesystem name,
24959 and generate a path with `/fsname@path' syntax.
24960
24961 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
24962
24963 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
24964 (void) rather than () so that this is a proper prototype.
24965
24966 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
24967
24968 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
24969
24970 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
24971
24972 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
24973 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
24974
24975 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
24976
24977 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
24978
24979 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
24980
24981 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
24982
24983 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
24984
24985 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
24986 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
24987 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
24988 disable gfxpayload.
24989 (Shell-like scripting): Add real content.
24990 (Serial terminal): Suggest `terminal_input serial; terminal_output
24991 serial' rather than putting the two commands on separate lines,
24992 since console input will be inoperative after the first command.
24993 (menuentry): Document --class, --users, and --hotkey options.
24994 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
24995 Vladimir Serbinenko).
24996
24997 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
24998 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
24999
25000 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
25001
25002 2010-08-01 Robert Millan <rmh@gnu.org>
25003
25004 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
25005 (grub_find_zpool_from_mount_point): New function prototypes.
25006
25007 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
25008 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
25009
25010 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
25011 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
25012 `static' attribute.
25013
25014 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
25015 finding zpool from mount point into ...
25016 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
25017
25018 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
25019 requested path is part of a ZFS pool, use
25020 grub_find_zpool_from_mount_point() to detect its filesystem name,
25021 and generate a path with `/fsname@path' syntax.
25022
25023 2010-08-01 Robert Millan <rmh@gnu.org>
25024
25025 Prevent accidental use of uninitialized libzfs_handle.
25026
25027 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
25028 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
25029 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
25030
25031 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
25032
25033 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
25034 util/grub.d/10_linux.in). Fixes Debian bug #591093.
25035
25036 2010-08-01 Robert Millan <rmh@gnu.org>
25037
25038 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
25039
25040 2010-07-31 Robert Millan <rmh@gnu.org>
25041
25042 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
25043
25044 2010-07-31 Robert Millan <rmh@gnu.org>
25045
25046 * kern/emu/misc.c: Add missing license header.
25047
25048 2010-07-31 Robert Millan <rmh@gnu.org>
25049
25050 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
25051
25052 * include/grub/util/libnvpair.h: Include `<config.h>'.
25053 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
25054 declaring libnvpair prototypes ourselves.
25055 * include/grub/util/libzfs.h: Include `<config.h>'.
25056 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
25057 declaring libzfs prototypes ourselves.
25058
25059 (libzfs_handle): Moved to ...
25060 * include/grub/util/misc.h (libzfs_handle): ... here.
25061 Include `<grub/util/libzfs.h>'.
25062
25063 2010-07-30 Robert Millan <rmh@gnu.org>
25064
25065 * include/grub/emu/misc.h: Add missing license header.
25066
25067 2010-07-30 Robert Millan <rmh@gnu.org>
25068
25069 Enable `grub-probe -t device' resolution on ZFS.
25070
25071 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
25072 * include/grub/util/libnvpair.h: New file.
25073 * include/grub/util/libzfs.h: New file.
25074
25075 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
25076 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
25077 `<grub/util/libnvpair.h>'.
25078 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
25079
25080 (find_mount_point_from_dir): New static function.
25081 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
25082 function.
25083 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
25084 find_root_device_from_libzfs() before ressorting to find_root_device().
25085
25086 * include/grub/util/misc.h (grub_util_init_libzfs): New function
25087 prototype.
25088 * util/misc.c: Include `<grub/util/libzfs.h>'.
25089 (grub_util_init_libzfs): New function.
25090 [HAVE_LIBZFS] (libzfs_handle): New global variable.
25091 [HAVE_LIBZFS] (fini_libzfs): New static function.
25092 (grub_util_init_libzfs): New function.
25093 * util/grub-probe.c (main): Call grub_util_init_libzfs().
25094
25095 2010-07-30 Robert Millan <rmh@gnu.org>
25096
25097 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
25098 (xmalloc, xrealloc, xstrdup, xasprintf): Add
25099 `warn_unused_result' attribute.
25100 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
25101 (grub_xasprintf, grub_xvasprintf): Likewise.
25102 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
25103
25104 2010-07-29 Robert Millan <rmh@gnu.org>
25105
25106 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
25107 (probe): Handle `PRINT_FS_LABEL'.
25108 (main): Handle `-t fs_label'.
25109
25110 2010-07-29 Robert Millan <rmh@gnu.org>
25111
25112 * configure.ac: Remove grub-mkisofs checks.
25113
25114 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
25115
25116 * util/ieee1275/grub-install.in: Don't use empty grub_device.
25117 Reported by: Lennart Sorensen.
25118
25119 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
25120
25121 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
25122 prior to terminal_input/terminal_output separation. It's been over 1.5
25123 years and those versions weren't widely deployed.
25124
25125 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
25126
25127 * disk/raid.c (insert_array): Don't count named arrays when looking
25128 for unused array numbers.
25129 Reported and tested by: Michael Guntsche.
25130
25131 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
25132
25133 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
25134 implementation of this so that grub-emu links again, with a note
25135 that this should support hotplugging in the future.
25136
25137 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
25138
25139 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
25140
25141 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
25142
25143 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
25144 handle on failure.
25145 (grub_loopback_close): Remove empty function.
25146 (grub_loopback_dev): Remove close method.
25147
25148 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
25149
25150 Disable EFI cursor when the EFI console becomes inactive.
25151
25152 * term/efi/console.c (grub_efi_console_init): New function.
25153 (grub_efi_console_fini): New function.
25154 (grub_console_term_output): Register init and fini methods.
25155
25156 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
25157
25158 * tests/util/grub-shell-tester.in: Remove bashism and declare as
25159 sh script.
25160
25161 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
25162
25163 * disk/loopback.c (grub_loopback): Replace filename with file.
25164 (delete_loopback): Handle new semantics.
25165 (grub_cmd_loopback): Likewise.
25166 (grub_loopback_iterate): Likewise.
25167 (grub_loopback_close): Likewise.
25168
25169 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
25170
25171 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
25172 with -p "".
25173 Reported by: Tito Keitel.
25174
25175 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
25176
25177 * docs/grub.texi (Naming convention): Document new naming convention.
25178
25179 2010-07-20 Vadim Solomin <vadic052@gmail.com>
25180 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
25181
25182 Generate device.map in something closer to the old ordering.
25183
25184 * util/deviceiter.c (struct device): New declaration.
25185 (compare_file_names): Rename to ...
25186 (compare_devices): ... this. Sort by kernel name in preference to
25187 the stable by-id name, but keep the latter as a fallback comparison.
25188 Update header comment.
25189 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
25190 of `struct device' rather than of plain file names.
25191
25192 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
25193
25194 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
25195 on i386.
25196
25197 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
25198
25199 * commands/acpi.c (setup_common_tables): Use sizeof instead of
25200 hardcoding size.
25201 (setv1table): Likewise.
25202
25203 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
25204
25205 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
25206 removing the homehost if present.
25207 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
25208 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
25209 removing the homehost if present.
25210 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
25211 if possible.
25212 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
25213
25214 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
25215 parameter. Set its pointer target to 0.
25216 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
25217 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
25218 `data_offset' value from the superblock for 1.x metadata.
25219 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
25220 data on the device.
25221 (insert_array): Record the start sector of data on the device.
25222 (grub_raid_register): Pass start_sector parameters to
25223 grub_raid_list->detect and insert_array.
25224 * include/grub/raid.h (struct grub_raid_array): Add start_sector
25225 member.
25226 (struct grub_raid): Add start_sector parameter to `detect'.
25227
25228 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
25229 __attribute__ ((packed)), leaving a comment.
25230 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
25231 (grub_mdraid_detect_09): ... here and ...
25232 (grub_mdraid_detect_1x): ... here.
25233
25234 2010-07-20 Peter Henn <peter.henn@web.de>
25235
25236 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
25237 chunk size and disk size, which are already given as sector counts
25238 as distinct from the 0.90 units. Fetch the correct device number
25239 from the role table instead of using the table index.
25240
25241 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
25242
25243 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
25244 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
25245 (WriteMostly1): New macro.
25246 Set array->name to NULL for metadata format 0.90. Add support for
25247 metadata 1.x. Fix some comments.
25248 * disk/raid.c (): Add support for name based RAID arrays. Fix a
25249 few comments.
25250 * util/getroot.c (grub_util_get_grub_dev): Add support for
25251 /dev/md/name style devices.
25252
25253 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
25254
25255 * .bzrignore: Ignore 20_linux_xen.
25256
25257 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
25258
25259 * util/import_unicode.py: Remove unnecessary imports.
25260
25261 2010-07-17 Aleš Nesrsta <starous@volny.cz>
25262
25263 Hotplugging and USB hub support.
25264
25265 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
25266 (grub_ohci): Likewise.
25267 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
25268 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
25269 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
25270 (GRUB_OHCI_CTRL_EDS): Likewise.
25271 (GRUB_OHCI_BULK_EDS): Likewise.
25272 (GRUB_OHCI_TDS): Likewise.
25273 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
25274 (grub_ohci_ed_phys2virt): New function.
25275 (grub_ohci_virt_to_phys): Likewise.
25276 (grub_ohci_td_phys2virt): Likewise.
25277 (grub_ohci_td_virt2phys): Likewise.
25278 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
25279 attachment.
25280 (grub_ohci_find_ed): New function.
25281 (grub_ohci_alloc_td): Likewise.
25282 (grub_ohci_free_td): Likewise.
25283 (grub_ohci_free_tds): Likewise.
25284 (grub_ohci_transfer): Use previously allocated memory.
25285 (grub_ohci_portstatus): Reset status changed bit.
25286 (grub_ohci_detect_dev): Supply status changed.
25287 (grub_ohci_fini_hw): Free memory.
25288 (grub_ohci_restore_hw): Reallocate memory.
25289 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
25290 Reset status change.
25291 (grub_uhci_detect_dev): Supply status_change.
25292 * bus/usb/usb.c (attach_hooks): New var.
25293 (grub_usb_device_attach): New function.
25294 (grub_usb_register_attach_hook_class): Likewise.
25295 (grub_usb_unregister_attach_hook_class): Likewise.
25296 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
25297 (grub_usb_add_hub): Reset connection changed bit.
25298 (attach_root_port): New function.
25299 (grub_usb_root_hub): Likewise.
25300 (poll_nonroot_hub): Likewise.
25301 (grub_usb_poll_devices): Likewise.
25302 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
25303 * disk/usbms.c (grub_usbms_open): Use device hooks.
25304 (grub_usbms_iterate) :Poll devices.
25305 (grub_usbms_finddevs): Split into ...
25306 (grub_usbms_attach): ... this ...
25307 (grub_usbms_attach): ... and this.
25308 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
25309 in detect_dev.
25310 (grub_usb_interface): New fields attached and detach_hook.
25311 (grub_usb_attach_hook_class): New type.
25312 (grub_usb_attach_desc): New struct.
25313 (grub_usb_register_attach_hook_class): New function.
25314 (grub_usb_unregister_attach_hook_class): Likewise.
25315 (grub_usb_poll_devices): Likewise.
25316 (grub_usb_device_attach): Likewise.
25317 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
25318 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
25319
25320 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
25321
25322 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
25323 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
25324 delta determination style. Works with most NetBSD partitions too.
25325
25326 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
25327
25328 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
25329 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
25330
25331 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
25332
25333 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
25334
25335 2010-07-14 Anton Blanchard <anton@samba.org>
25336
25337 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
25338 ET_DYN files.
25339
25340 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
25341
25342 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
25343
25344 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
25345
25346 * kern/partition.c (grub_partition_check_containment): New function to
25347 check that a partition is physically contained in a parent. Since
25348 offsets are relative (and non-negative), this reduces to checking that
25349 the partition ends before its parent.
25350 (grub_partition_map_probe): Discard out-of-range sub-partitions.
25351 (grub_partition_iterate): Likewise.
25352 * include/grub/partition.h (grub_partition_map): Slightly more detailed
25353 comments.
25354 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
25355 partitions that start before their parent, and add debug printfs.
25356
25357 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
25358
25359 * Makefile.in (.SUFFIX): Spell correctly, as ...
25360 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
25361 bare module name without `.mod', e.g. `test') tried to invoke a
25362 Modula-2 compiler.
25363
25364 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
25365
25366 * README: Point to the Info manual.
25367
25368 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
25369
25370 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
25371 2nd superblock position from partition size.
25372
25373 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
25374
25375 * Makefile.in (MAINTAINER_CLEANFILES): Remove
25376 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
25377 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
25378 outputs.
25379
25380 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
25381
25382 Restructure SCSI .id handling.
25383 Reported and tested by: Aleš Nesrsta.
25384
25385 * disk/ata.c (grub_atapi_close): Removed. All users updated.
25386 (grub_atapi_dev): Changed .name to "ata". New field .id.
25387 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
25388 (grub_usbms_dev): New field .id.
25389 * disk/scsi.c (grub_scsi_iterate): Generate name.
25390 (grub_scsi_open): Parse name.
25391 * include/grub/scsi.h (grub_make_scsi_id): New function.
25392 (grub_scsi_dev): Change iterate and open to number instead of naming
25393 busses. All users updated.
25394 (grub_scsi): Remove name. Add .bus.
25395
25396 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
25397
25398 * commands/help.c (grub_cmd_help): Fix a typo.
25399
25400 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
25401
25402 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
25403 Reported and tested by: Colin Watson.
25404
25405 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
25406
25407 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
25408 in this context.
25409
25410 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
25411
25412 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
25413
25414 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
25415
25416 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
25417 indentation.
25418
25419 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
25420
25421 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
25422 and disk/raid6_recover.c.
25423 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
25424 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
25425
25426 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
25427
25428 * term/gfxterm.c (repaint_schedulded): Rename to ...
25429 (repaint_scheduled): ... this. Update all callers.
25430 (repaint_was_schedulded): Rename to ...
25431 (repaint_was_scheduled): ... this. Update all callers.
25432
25433 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
25434
25435 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
25436 which we expect to be handled by upper layers.
25437
25438 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
25439
25440 * bus/usb/usbhub.c: #include time.h header.
25441
25442 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
25443
25444 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
25445 entry_name also for entries without stat blocks (e.g. ".."); fixes
25446 corruption of the first entry in a directory.
25447
25448 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
25449
25450 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
25451 after setting gfxterm as the active terminal. GRUB_BACKGROUND
25452 doesn't work otherwise.
25453
25454 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
25455
25456 * docs/grub.texi (Features): Update list of supported file systems.
25457 (GNU/Linux): Update for GRUB 2.
25458 (Serial terminal): Remove mention of --disable-serial, which was a
25459 GRUB Legacy configure option. Update instructions to use
25460 `terminal_input' and `terminal_output' rather than `terminal'.
25461 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
25462 configuration' and `Installing GRUB using grub-install'.
25463 (Menu entry editor): Update for GRUB 2.
25464 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
25465 Document new -a, -u, and -v options.
25466 (initrd): New section.
25467 (initrd16): New section.
25468 (linux): New section.
25469 (linux16): New section.
25470 (search): The `var' argument to `--set' is optional.
25471 (GRUB only offers a rescue shell): Go into a little more detail on
25472 drive ordering.
25473
25474 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
25475
25476 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
25477
25478 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
25479
25480 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
25481 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
25482
25483 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
25484
25485 * util/i386/pc/grub-setup.c (setup): Rename prefix to
25486 install_prefix, in line with install_dos_part and install_bsd_part.
25487 Add new prefix variable, which is copied to install_prefix after
25488 comparing core.img in memory with the one read from disk in the
25489 no-embedding case, and use that rather than overwriting
25490 install_prefix immediately when installing to a partition.
25491 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
25492 Bicakci.
25493
25494 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
25495
25496 * configure.ac: Avoid == in test command, it's not portable.
25497 * util/grub.d/30_os-prober.in: Likewise.
25498
25499 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
25500
25501 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
25502
25503 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
25504
25505 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
25506 multiple (top-level) partmaps.
25507
25508 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
25509
25510 * util/i386/efi/grub-install.in: Don't use empty grub_device.
25511 Reported by: Tino Keitel.
25512
25513 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
25514
25515 Bidi and diacritics support.
25516
25517 * Makefile.in (widthspec.bin): New target.
25518 (widthspec.h): Likewise.
25519 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
25520 * autogen.sh: Generate unidata.c.
25521 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
25522 * commands/ls.c (grub_ls_list_devices): Likewise.
25523 (grub_ls_list_files): Likewise.
25524 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
25525 (grub_mini_cmd_lsmod): Likewise.
25526 * commands/read.c: Likewise.
25527 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
25528 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
25529 * lib/arg.c (grub_arg_show_help): Likewise.
25530 * lib/crypto.c (grub_password_get): Likewise.
25531 * normal/auth.c (grub_username_get): Likewise.
25532 * normal/misc.c (grub_normal_print_device_info): Likewise.
25533 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
25534 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
25535 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
25536 (normal/charset.c_DEPENDENCIES): New variable.
25537 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
25538 (pkglib_MODULES): Remove charset.mod.
25539 (charset_mod_SOURCES): Removed.
25540 (charset_mod_CFLAGS): Likewise.
25541 (charset_mod_LDFLAGS): Likewise.
25542 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
25543 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
25544 and term/tparm.c.
25545 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
25546 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
25547 (kernel_img_HEADERS): Add terminfo.h.
25548 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
25549 Fill ->font. Reverse ascii bitmaps.
25550 (grub_font_get_xheight): New function.
25551 * font/font.c (grub_font_get_string_width): Moved from here ...
25552 * gfxmenu/font.c (grub_font_get_string_width): ... here.
25553 * font/font.c (grub_font_draw_string): Moved from here ...
25554 * gfxmenu/font.c (grub_font_draw_string): ... here.
25555 * font/font.c (grub_font_dup_glyph): New function.
25556 (grub_font_blit_glyph): Likewise.
25557 (grub_font_blit_glyph_mirror): Likewise.
25558 (blit_comb): Likewise.
25559 (grub_font_construct_dry_run): Likewise.
25560 (grub_font_get_constructed_device_width): Likewise.
25561 (grub_font_construct_glyph): Likewise.
25562 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
25563 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
25564 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
25565 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
25566 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
25567 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
25568 (grub_font_get_xheight): New proto.
25569 (grub_font_get_constructed_device_width): Likewise.
25570 (grub_font_construct_glyph): Likewise.
25571 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
25572 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
25573 * include/grub/font.h (grub_font_draw_string): Moved from here ...
25574 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
25575 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
25576 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
25577 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
25578 (grub_console_getcharwidth): Likewise.
25579 * include/grub/misc.h (grub_xputs): New proto.
25580 (grub_puts): Inlined.
25581 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
25582 (grub_normal_get_line_counter): Removed.
25583 (grub_install_newline_hook): Likewise.
25584 (grub_normal_get_char_counter): New proto.
25585 (grub_normal_reset_more): Likewise.
25586 (grub_xputs_normal): Likewise.
25587 * include/grub/powerpc/ieee1275/console.h: Removed.
25588 * include/grub/sparc64/ieee1275/console.h: Likewise.
25589 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
25590 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
25591 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
25592 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
25593 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
25594 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
25595 (grub_term_input): Pass reference to self. All users updated.
25596 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
25597 Pass reference to self. New fields normal_color, highlight_color and
25598 data. All users updated.
25599 (grub_putchar): Removed.
25600 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
25601 (grub_unicode_estimate_width): New function.
25602 (grub_term_getcharwidth): Add defaults.
25603 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
25604 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
25605 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
25606 (grub_cls): Remove EXPORT_FUNC.
25607 (grub_setcolorstate): Inline.
25608 (grub_newline_hook): Removed.
25609 * include/grub/terminfo.h: Rewritten. All users updated.
25610 * include/grub/unicode.h: New file.
25611 * include/grub/video.h (grub_video_signed_rect): New type.
25612 * kern/emu/console.c (grub_console_highlight_color): Removed.
25613 (grub_console_normal_color): Likewise.
25614 (grub_console_standard_color): Made static.
25615 (grub_ncurses_putchar): Remove mapping.
25616 (grub_ncurses_getcharwidth): Removed.
25617 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
25618 (grub_ncurses_setcolor): Removed.
25619 (grub_ncurses_getcolor): Likewise.
25620 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
25621 (grub_console_putchar): ... this.
25622 (grub_console_putchar): Handle argument difference.
25623 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
25624 console_init_early and console_init_lately.
25625 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
25626 * kern/misc.c (grub_puts): Removed.
25627 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
25628 (grub_vsnprintf_real): Remove str = NULL support.
25629 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
25630 * normal/charset.c (grub_utf8_to_ucs4): ... here.
25631 * kern/term.c (grub_putcode): Renamed to ...
25632 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
25633 (grub_putchar): Removed.
25634 (grub_xputs_dumb): New function.
25635 (grub_xputs): New variable.
25636 * lib/charset.c: Move from here ...
25637 * normal/charset.c: ... to here.
25638 (grub_ucs4_to_utf8): New function.
25639 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
25640 (join_types): New variable.
25641 (unpack_join): New function.
25642 (bidi_types): New variable.
25643 (unpack_bidi): New function.
25644 (get_bidi_type): Likewise.
25645 (get_join_type): Likewise.
25646 (is_mirrored): Likewise.
25647 (grub_unicode_get_comb_type): Likewise.
25648 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
25649 (is_type_after): Likewise.
25650 (grub_unicode_aglomerate_comb): Likewise.
25651 (bidi_line_wrap): Likewise.
25652 (grub_bidi_line_logical_to_visual): Likewise.
25653 (grub_bidi_logical_to_visual): Likewise.
25654 (grub_unicode_mirror_code): Likewise.
25655 (grub_unicode_shape_code): Likewise.
25656 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
25657 Don't use grub_putchar.
25658 * normal/main.c (grub_normal_init_page): Use grub_putcode.
25659 (grub_normal_reader_init): Likewise.
25660 (grub_xputs_saved): New variable.
25661 (GRUB_MOD_INIT): Set grub_xputs.
25662 (GRUB_MOD_FINI): Restore grub_xputs.
25663 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
25664 (menu_init): Avoid printing gfxmenu error.
25665 (show_menu): Use grub_normal_get_char_counter.
25666 * normal/menu_entry.c (update_screen): Fix out-of-array.
25667 (complete): Avoid NULL dereferencing.
25668 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
25669 * normal/menu_text.c (print_spaces): Removed.
25670 (grub_print_ucs4): Likewise.
25671 (grub_print_message_indented): Use grub_print_ucs4.
25672 (print_message): Use grub_putcode.
25673 (print_entry): Hanlde diacritics.
25674 * normal/term.c (term_state): New type.
25675 (grub_more_lines): Removed.
25676 (term_states): New variable.
25677 (grub_normal_line_counter): Renamed to ..
25678 (grub_normal_char_counter): ...this. All users updated.
25679 (grub_normal_get_line_counter): Renamed to ...
25680 (grub_normal_get_char_counter): ... this.
25681 (grub_normal_reset_more): New function.
25682 (process_newline): Removed.
25683 (print_more): New function.
25684 (grub_install_newline_hook): Removed.
25685 (map_code): New function.
25686 (grub_puts_terminal): Use grub_print_ucs4.
25687 (putglyph): New function.
25688 (putcode_real): Likewise.
25689 (grub_putcode): Use putcode_real.
25690 (get_maxwidth): New function.
25691 (get_startwidth): Likewise.
25692 (print_ucs4_terminal): Likewise.
25693 (find_term_state): Likewise.
25694 (put_glyphs_terminal): Likewise.
25695 (print_backlog): Likewise.
25696 (print_ucs4_real): Likewise.
25697 (grub_print_ucs4): Likewise.
25698 (grub_xputs_normal): Likewise.
25699 * term/efi/console.c (grub_console_putchar): Output diacritics.
25700 (grub_console_getcharwidth): Removed.
25701 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
25702 * term/gfxterm.c (clear_char): Free chars.
25703 (scroll_up): Avoid leaking memory.
25704 (grub_gfxterm_putchar): Support diacritics.
25705 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
25706 * term/i386/pc/console.c (grub_console_term_output): Declare as
25707 GRUB_TERM_CODE_TYPE_VGA.
25708 * term/i386/pc/vga.c (grub_vga_term): Declare as
25709 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
25710 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
25711 GRUB_TERM_CODE_TYPE_VGA.
25712 * term/i386/vga_common.c (map_char): Removed.
25713 (grub_console_putchar): Likewise.
25714 (grub_console_getcharwidth): Likewise.
25715 * term/ieee1275/ofconsole.c: Simplify using terminfo.
25716 (colors): Reordered to match terminfo.
25717 (grub_ofconsole_normal_color): Removed.
25718 (grub_ofconsole_writeesc): Likewise.
25719 (grub_ofconsole_highlight_color): Likewise.
25720 (grub_ofconsole_getcharwidth): Likewise.
25721 (grub_ofconsole_setcolorstate): Likewise.
25722 (grub_ofconsole_setcolor): Likewise.
25723 (grub_ofconsole_getcolor): Likewise.
25724 (grub_ofconsole_readkey): Renamed to ...
25725 (readkey): ... this. Remove escape sequence handling. Return -1 on no
25726 key.
25727 (grub_ofconsole_checkkey): Removed.
25728 (grub_ofconsole_getkey): Likewise.
25729 (grub_ofconsole_getxy): Likewise.
25730 (grub_ofconsole_gotoxy): Likewise.
25731 (grub_ofconsole_cls): Likewise.
25732 (grub_ofconsole_refresh): Likewise.
25733 (grub_ofconsole_terminfo_input): New struct.
25734 (grub_ofconsole_terminfo_output): Likewise.
25735 (grub_ofconsole_term_input): Use terminfo.
25736 (grub_ofconsole_term_output): Likewise.
25737 (grub_console_init): Split into ...
25738 (grub_console_init_early): ...this and ...
25739 (grub_console_init_lately): ...this. Use terminfo.
25740 (grub_ofconsole_putchar): Renamed to ...
25741 (put): ... this. Remove mapping.
25742 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
25743 * term/serial.c: Simplify using terminfo.
25744 (xpos): Removed.
25745 (ypos): Likewise.
25746 (keep_track): Likewise.
25747 (registered): Likewise.
25748 (input_buf): Likewise.
25749 (npending): Likewise.
25750 (serial_translate_key_sequence): Likewise.
25751 (fill_input_buf): Likewise.
25752 (grub_serial_checkkey): Likewise.
25753 (grub_serial_getkey): Likewise.
25754 (grub_serial_getxy): Likewise.
25755 (grub_serial_gotoxy): Likewise.
25756 (grub_serial_putchar): Likewise.
25757 (grub_serial_cls): Likewise.
25758 (grub_serial_setcolorstate): Likewise.
25759 (grub_serial_setcursor): Likewise.
25760 (serial_hw_init): Use serial_hw_fetch.
25761 (grub_serial_terminfo_input): New variable.
25762 (grub_serial_terminfo_output): Likewise.
25763 (grub_serial_term_input): Use terminfo.
25764 (grub_serial_term_output): Likewise.
25765 * term/terminfo.c (putstr): Use put.
25766 (grub_terminfo_all_free): New function
25767 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
25768 (grub_terminfo_output_register): New function.
25769 (grub_terminfo_output_unregister): Likewise.
25770 (grub_terminfo_getxy): Likewise.
25771 (grub_terminfo_readkey): Likewise.
25772 (grub_terminfo_checkkey): Likewise.
25773 (grub_terminfo_getkey): Likewise.
25774 (grub_terminfo_input_init): Likewise.
25775 (print_terminfo): Likewise.
25776 (grub_cmd_terminfo): Handle encoding.
25777 (grub_terminfo_gotoxy): Track position.
25778 (grub_terminfo_cls): Likewise.
25779 (grub_terminfo_putchar): Likewise.
25780 (grub_terminfo_setcolorstate): Handle colors
25781 (grub_terminfo_cursor_on): This ...
25782 (grub_terminfo_cursor_off): ... and this merged into ...
25783 (grub_terminfo_setcursor): ... this.
25784 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
25785 * unicode/ArabicShaping.txt: New file (imported from Unicode).
25786 * unicode/BidiMirroring.txt: Likewise.
25787 * unicode/UnicodeData.txt: Likewise.
25788 * unicode/COPYING: Likewise.
25789 * util/grub-editenv.c (grub_putchar): Removed.
25790 (grub_xputs_real): New function.
25791 (grub_xputs): New variable.
25792 * util/grub-fstest.c (grub_putchar): Removed.
25793 (grub_xputs_real): New function.
25794 (grub_xputs): New variable.
25795 * util/grub-mkdevicemap.c (grub_putchar): Removed.
25796 (grub_xputs_real): New function.
25797 (grub_xputs): New variable.
25798 * util/grub-probe.c (grub_putchar): Removed.
25799 (grub_xputs_real): New function.
25800 (grub_xputs): New variable.
25801 * util/grub-script-check.c (grub_putchar): Removed.
25802 (grub_xputs_real): New function.
25803 (grub_xputs): New variable.
25804 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
25805 (grub_xputs_real): New function.
25806 (grub_xputs): New variable.
25807 * util/import_unicode.py: New file.
25808 * util/grub-mkfont.c (ft_errmsgs): New array.
25809 (grub_glyph_info): Make bitmap a pointer.
25810 (file_formats): New type WIDTH_SPEC.
25811 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
25812 (options): Add width-spec.
25813 (help): Likewise.
25814 (add_char): Renamed to ...
25815 (add_glyph): ... this.
25816 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
25817 (glyph_replace): New type.
25818 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
25819 (add_char): New function.
25820 (add_subst): Likewise.
25821 (process_cursive): Likewise.
25822 (add_font): Handle GSUB.
25823 (write_font_width_spec): New function.
25824 (main): Sort glyphs.
25825 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
25826 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
25827 * kern/term.c (grub_cls): Moved from here...
25828 * normal/term.c (grub_cls): ... here.
25829
25830 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
25831
25832 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
25833 suitable for using within the format argument of printf when
25834 converting grub_size_t.
25835 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
25836 "x" to convert grub_size_t arguments.
25837
25838 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
25839
25840 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
25841 too long captions.
25842 (list_get_minimal_size): Take selection box into account.
25843
25844 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
25845
25846 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
25847 NULL font.
25848
25849 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
25850
25851 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
25852 devices when iterating over /dev/disk/by-id; they will be handled
25853 later if appropriate, which they aren't always (e.g. LVM).
25854
25855 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
25856
25857 * include/grub/misc.h (grub_reboot): Declare as noreturn.
25858 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
25859 fails.
25860 (grub_halt): Likewise.
25861 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
25862 reset-all fails.
25863 (grub_halt): Don't return, even if all of shut-down, power-off, and
25864 poweroff fail.
25865
25866 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
25867
25868 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
25869 arguments, not three.
25870
25871 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
25872
25873 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
25874 * util/grub.d/10_linux.in: Use it to check for LVM, so that
25875 LVM-on-RAID is handled correctly.
25876
25877 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
25878
25879 * docs/grub.texi (Changes from GRUB Legacy): New section.
25880 (Future): Fix typo.
25881
25882 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
25883
25884 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
25885 grub.d/README accidentally ends up executable for one reason or
25886 another. Ignore it.
25887
25888 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
25889
25890 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
25891 (gpt_partition_map_iterate): Support non-512B sectors.
25892
25893 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
25894
25895 * kern/efi/init.c (grub_efi_init): Disable watchdog.
25896 Tested by: Seth Goldberg.
25897
25898 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
25899
25900 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
25901 Properly align mbi.
25902 Reported by: Seth Goldberg.
25903
25904 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
25905
25906 * util/grub-mkrescue.in: Avoid module duplication.
25907
25908 2010-07-01 Sean Finney <seanius@seanius.net>
25909
25910 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
25911
25912 2010-07-01 Sean Finney <seanius@seanius.net>
25913
25914 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
25915
25916 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
25917
25918 * disk/lvm.c (grub_lvm_checkvalue): New function.
25919 (grub_lvm_check_flag): Likewise.
25920
25921 2010-07-01 Robert Millan <rmh@gnu.org>
25922
25923 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
25924 Support 'p' as partition separator on kernel of FreeBSD (used
25925 with GPT labels).
25926 (grub_util_biosdisk_get_grub_dev): Likewise.
25927
25928 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
25929
25930 Yeeloong firmware port.
25931
25932 * boot/mips/yeeloong/fwstart.S: New file.
25933 * bus/cs5536.c (gpiodump): New const.
25934 (set_io_space): New function.
25935 (set_iod): Likewise.
25936 (set_p2d): Likewise.
25937 (grub_cs5536_init_geode): Likewise.
25938 * commands/mips/yeeloong/lsspd.c: New file.
25939 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
25940 (serial_mod_SOURCES): New variable.
25941 (serial_mod_CFLAGS): Likewise.
25942 (serial_mod_LDFLAGS): Likewise.
25943 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
25944 term/terminfo.c and term/tparm.c.
25945 (pkglib_IMAGES): Add fwstart.img.
25946 (fwstart_img_SOURCES): New variable.
25947 (fwstart_img_CFLAGS): Likewise.
25948 (fwstart_img_ASFLAGS): Likewise.
25949 (fwstart_img_LDFLAGS): Likewise.
25950 (fwstart_img_FORMAT): Likewise.
25951 (pkglib_MODULES): Add lsspd.mod.
25952 (lsspd_mod_SOURCES): New variable.
25953 (lsspd_mod_CFLAGS): Likewise.
25954 (lsspd_mod_LDFLAGS): Likewise.
25955 (pkglib_MODULES): Add halt.mod.
25956 (halt_mod_SOURCES): New variable.
25957 (halt_mod_CFLAGS): Likewise.
25958 (halt_mod_LDFLAGS): Likewise.
25959 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
25960 (serial_mod_SOURCES): Removed.
25961 (serial_mod_CFLAGS): Likewise.
25962 (serial_mod_LDFLAGS): Likewise.
25963 * disk/ata.c (check_device): New function.
25964 (grub_ata_device_initialize): Use check_device.
25965 (grub_ata_iterate): Recheck devices.
25966 (grub_ata_open): Likewise.
25967 (grub_atapi_iterate): Likewise.
25968 (grub_atapi_open): Likewise.
25969 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
25970 (GRUB_ATA_CH1_PORT1): Likewise.
25971 (GRUB_ATA_CH0_PORT2): Likewise.
25972 (GRUB_ATA_CH1_PORT2): Likewise.
25973 * include/grub/mips/loongson.h: New file.
25974 * include/grub/mips/yeeloong/ec.h: Likewise.
25975 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
25976 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
25977 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
25978 * include/grub/misc.h (grub_halt): Declare as noreturn.
25979 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
25980 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
25981 (UART_ENABLE_FIFO_TRIGGER1): New definition.
25982 (UART_ENABLE_DTRRTS): Likewise.
25983 (UART_ENABLE_MODEM): Removed.
25984 (UART_ENABLE_OUT2): New const.
25985 * include/grub/term.h (grub_term_register_input_active): New function.
25986 (grub_term_register_output_active): Likewise.
25987 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
25988 argument.
25989 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
25990 (init_pci): New function.
25991 (grub_machine_init): Execute platform init when firmware. Init serial.
25992 (grub_halt): Implement.
25993 (grub_exit): Likewise.
25994 (grub_reboot): Likewise.
25995 * term/serial.c (serial_hw_init): Update macros.
25996 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
25997 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
25998 (image_targets): New target mipsel-yeeloong-flash.
25999 (generate_image): Support IMAGE_YEELOONG_FLASH.
26000 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
26001 (grub_video_sm712_setup): Init card.
26002 (grub_video_sm712_set_palette): Removed.
26003 * video/sm712_init.c: New file.
26004
26005 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
26006
26007 * Makefile.in (install-local): Temporarily prepend $(builddir) to
26008 PATH when running help2man and then run it on the unadorned
26009 executable names, rather than passing $(builddir)/* paths to
26010 help2man. This avoids the build directory ending up in generated
26011 manual pages.
26012
26013 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
26014
26015 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
26016 to avoid accidents when debugging with 'sh -x'.
26017 * util/grub-mkrescue.in: Likewise.
26018 * util/grub.d/00_header.in: Likewise.
26019 * util/grub.d/10_hurd.in: Likewise.
26020 * util/grub.d/10_kfreebsd.in: Likewise.
26021 * util/grub.d/10_linux.in: Likewise.
26022 * util/grub.d/10_netbsd.in: Likewise.
26023 * util/grub.d/10_windows.in: Likewise.
26024 * util/grub.d/20_linux_xen.in: Likewise.
26025 * util/grub.d/30_os-prober.in: Likewise.
26026 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
26027
26028 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
26029
26030 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
26031 last character in the buffer.
26032 Reported by: Vladimir Serbinenko.
26033
26034 2010-06-29 Robert Millan <rmh@gnu.org>
26035
26036 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
26037 (Command-line and menu entry commands): Document `badram' command.
26038
26039 2010-06-28 Robert Millan <rmh@gnu.org>
26040
26041 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
26042 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
26043 command using ${GRUB_BADRAM} as parameter.
26044
26045 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
26046
26047 * docs/grub.texi (Device map): New section.
26048 (Themes): New section (stub).
26049 * Makefile.in (docs/grub.info): The info documentation now builds
26050 without errors. Make sure it stays that way.
26051
26052 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
26053
26054 Use normal parser for menu entries.
26055 Reported by: Thomas Frauendorfer
26056
26057 * include/grub/parser.h (grub_parser_execute): Don't export.
26058 * normal/menu.c (grub_menu_execute_entry_real): New function.
26059 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
26060
26061 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
26062
26063 * docs/grub.texi (Embedded configuration): New section (replacing
26064 old "Preset Menu" stub).
26065 (Images): New section.
26066 (configfile): Note that any menu entries defined in `file' are shown
26067 immediately.
26068
26069 2010-06-28 Josh Triplett <josh@joshtriplett.org>
26070
26071 * mmap/i386/pc/mmap_helper.S: Set CF on return.
26072
26073 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
26074
26075 * util/grub-install.in: Add --debug-image= option.
26076
26077 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
26078
26079 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
26080 possible on Linux.
26081
26082 * util/deviceiter.c (check_device): Rename to ...
26083 (check_device_readable_unique): ... this. Update all callers.
26084 Maintain and check a list of which devices (by canonicalized name)
26085 have already been seen.
26086 (clear_seen_devices): New function.
26087 (compare_file_names) [__linux__]: New function.
26088 (grub_util_iterate_devices): Clear the list of seen devices on exit
26089 and (just in case) on entry.
26090 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
26091 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
26092 seen-devices list, superseded by general code in check_device.
26093
26094 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
26095
26096 * commands/cat.c (options): New variable.
26097 (grub_cmd_cat): Parse options. If the --dos option is given, print
26098 DOS-style "\r\n" line endings as simple newlines (Debian bug
26099 #586358).
26100 (GRUB_MOD_INIT): Use extcmd.
26101 (GRUB_MOD_FINI): Likewise.
26102 * docs/grub.texi (cat): Document --dos.
26103
26104 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
26105
26106 XEN with Linux grub-mkconfig support.
26107
26108 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
26109 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
26110 GRUB_CMDLINE_XEN_DEFAULT.
26111 * util/grub.d/20_linux_xen.in: New file.
26112
26113 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
26114
26115 Initialise VGA video on qemu ourselves.
26116
26117 * boot/i386/qemu/boot.S: Don't call 0xc000.
26118 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
26119 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
26120 (kernel_img_HEADERS): Add pci.h.
26121 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
26122 * configure.ac: Force unifont on qemu and yeeloong.
26123 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
26124 (grub_vga_palette_write): Use correct register.
26125 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
26126 Call grub_qemu_init_cirrus.
26127 * kern/i386/qemu/init.c: New file.
26128 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
26129
26130 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
26131
26132 2010-06-26 Pavel Roskin <proski@gnu.org>
26133
26134 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
26135 13.
26136
26137 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
26138
26139 * docs/grub.texi (Simple configuration): Explain that
26140 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
26141 set to `true' to disable their respective recovery entries, not
26142 merely set.
26143
26144 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
26145
26146 Make the `source' command slightly faster.
26147
26148 * normal/main.c (grub_normal_execute): Don't re-read list files when
26149 nested.
26150
26151 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
26152
26153 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
26154 field position and mask size to red fields from mode_info, not
26155 green.
26156 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
26157 Remove redundant tag->common.framebuffer_type assignment.
26158 Reported by: Seth Goldberg.
26159
26160 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
26161
26162 Sync up other versions of the Linux loader with Robert Millan's
26163 change of 2010-01-09, "Make loader output a bit more user-friendly".
26164
26165 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
26166 grub_dprintf().
26167 (grub_cmd_linux): Likewise.
26168 (grub_cmd_initrd): Likewise.
26169 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
26170 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
26171
26172 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
26173
26174 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
26175 larger than MEMORY_MAP_SIZE.
26176
26177 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
26178
26179 Fix parallel build.
26180
26181 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
26182 dependency.
26183 * script/parser.y: #include grub_script.tab.h header.
26184
26185 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
26186
26187 Support >3GiB and <16MiB RAM in i386-qemu.
26188
26189 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
26190 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
26191 (grub_lower_mem): Removed.
26192 (grub_upper_mem): Likewise.
26193 (mem_size): Made static.
26194 (above_4g): New variable.
26195 (grub_machine_mmap_init): Detect small mem_size and above_4g.
26196 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
26197 support.
26198
26199 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
26200
26201 Cirrus 5446 and Bochs video cards support.
26202
26203 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
26204 video_bochs.mod
26205 (video_cirrus_mod_SOURCES): New variable.
26206 (video_cirrus_mod_CFLAGS): Likewise.
26207 (video_cirrus_mod_LDFLAGS): Likewise.
26208 (video_bochs_mod_SOURCES): Likewise.
26209 (video_bochs_mod_CFLAGS): Likewise.
26210 (video_bochs_mod_LDFLAGS): Likewise.
26211 * include/grub/vga.h: New file.
26212 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
26213 (grub_video_fb_set_page_t): New type.
26214 (grub_video_fb_setup): New prototype.
26215 (grub_video_fb_swap_buffers): Likewise.
26216 (grub_video_fb_get_info_and_fini): Likewise.
26217 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
26218 (CRTC_DATA_PORT): Likewise.
26219 (CRTC_CURSOR): Likewise.
26220 (CRTC_CURSOR_ADDR_HIGH): Likewise.
26221 (CRTC_CURSOR_ADDR_LOW): Likewise.
26222 (CRTC_CURSOR_DISABLE): Likewise.
26223 (update_cursor): Use grub_vga_cr_write.
26224 (grub_vga_text_setcursor): Likewise.
26225 * video/bochs.c: New file.
26226 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
26227 (palette): Likewise.
26228 (palette_size): Likewise.
26229 (framebuffer): New variable.
26230 (grub_video_fb_init): Use 'framebuffer'.
26231 (grub_video_fb_fini): Likewise.
26232 (grub_video_fb_get_info): Likewise.
26233 (grub_video_fb_get_palette): Likewise.
26234 (grub_video_fb_set_palette): Likewise.
26235 (grub_video_fb_set_viewport): Likewise.
26236 (grub_video_fb_get_viewport): Likewise.
26237 (grub_video_fb_map_color): Likewise.
26238 (grub_video_fb_map_rgb): Likewise.
26239 (grub_video_fb_map_rgba): Likewise.
26240 (grub_video_fb_unmap_color): Likewise.
26241 (grub_video_fb_unmap_color_int): Likewise.
26242 (grub_video_fb_fill_rect): Likewise.
26243 (grub_video_fb_blit_bitmap): Likewise.
26244 (grub_video_fb_blit_render_target): Likewise.
26245 (grub_video_fb_scroll): Likewise.
26246 (grub_video_fb_create_render_target): Likewise.
26247 (grub_video_fb_doublebuf_blit_init): Likewise.
26248 (grub_video_fb_set_active_render_target): Handle doublebuffering.
26249 (doublebuf_pageflipping_update_screen): New function.
26250 (doublebuf_pageflipping_init): Likewise.
26251 (grub_video_fb_setup): Likewise.
26252 (grub_video_fb_swap_buffers): Likewise.
26253 (grub_video_fb_get_info_and_fini): Likewise.
26254 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
26255 All users updated.
26256 (doublebuf_pageflipping_commit): Restructured into ...
26257 (doublebuf_pageflipping_set_page): ... this.
26258 (doublebuf_pageflipping_update_screen): Removed.
26259 (doublebuf_pageflipping_init): Likewise.
26260 (double_buffering_init): Likewise.
26261 (grub_video_vbe_setup): Use grub_video_fb_setup.
26262 (grub_video_vbe_swap_buffers): Removed.
26263 (grub_video_vbe_set_active_render_target): Likewise.
26264 (grub_video_vbe_get_active_render_target): Likewise.
26265 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
26266 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
26267 grub_video_fb_set_active_render_target and
26268 grub_video_fb_get_active_render_target.
26269 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
26270 (SEQUENCER_DATA_PORT): Likewise.
26271 (MAP_MASK_REGISTER): Likewise.
26272 (CRTC_ADDR_PORT): Likewise.
26273 (CRTC_DATA_PORT): Likewise.
26274 (START_ADDR_HIGH_REGISTER): Likewise.
26275 (START_ADDR_LOW_REGISTER): Likewise.
26276 (GRAPHICS_ADDR_PORT): Likewise.
26277 (GRAPHICS_DATA_PORT): Likewise.
26278 (READ_MAP_REGISTER): Likewise.
26279 (INPUT_STATUS1_REGISTER): Likewise.
26280 (INPUT_STATUS1_VERTR_BIT): Likewise.
26281 (get_map_mask): Use grub_vga_sr_read.
26282 (set_map_mask): Use grub_vga_sr_write.
26283 (set_read_map): Use grub_vga_gr_write.
26284 (set_start_address): Use grub_vga_cr_write.
26285 * video/sm712.c (framebuffer): Remove leftover fields.
26286
26287 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
26288
26289 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
26290 setting GRUB_VIDEO_BACKEND. Make it available as a user override
26291 instead. Replace the gfxterm backend check with a check that
26292 ${GRUB_PREFIX}/video.lst is non-empty.
26293 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
26294 again.
26295 (load_video): New generated function. Call it before loading
26296 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
26297 * util/grub.d/10_linux.in (linux_entry): Call load_video.
26298 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
26299 * docs/grub.texi (Simple configuration): Document
26300 GRUB_VIDEO_BACKEND.
26301
26302 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
26303
26304 Use video functions in linux and xnu loaders.
26305
26306 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
26307 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
26308 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
26309 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
26310 loader/i386/pc/linux.c.
26311 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
26312 (find_line_len): Removed.
26313 (find_framebuf): Likewise.
26314 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
26315 * loader/i386/efi/xnu.c: Removed.
26316 * loader/i386/pc/xnu.c: Moved from here...
26317 * loader/i386/xnu.c: ...here.
26318
26319 Enable priorities in video drivers.
26320
26321 * include/grub/video.h (grub_video_adapter_prio_t): New type.
26322 (grub_video_adapter): New field prio.
26323 (grub_video_register): Respect prio when inserting.
26324 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
26325 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
26326 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
26327 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
26328 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
26329 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
26330 * video/sm712.c (grub_video_sm712_adapter): Likewise.
26331
26332 Fix SDL driver ID.
26333
26334 * include/grub/video.h (grub_video_driver_id_t): New value
26335 GRUB_VIDEO_DRIVER_SDL.
26336 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
26337
26338 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
26339
26340 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
26341 argument to printf.
26342 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
26343
26344 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
26345
26346 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
26347 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
26348
26349 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
26350
26351 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
26352 directly, and recommend grub-install instead.
26353 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
26354
26355 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
26356
26357 Fix i386-pc prefix handling with nested partitions (Debian bug
26358 #585068). Note that the case where the core image is booted using
26359 multiboot and relocated from its original location still requires
26360 more work.
26361
26362 * kern/i386/pc/init.c (make_install_device): If the prefix starts
26363 with "(,", fill the boot drive in between those two characters, but
26364 expect that a full partition specification including partition map
26365 names will follow.
26366 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
26367 specified, write a prefix without the drive name but including a
26368 full partition specification.
26369
26370 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
26371
26372 * util/grub-mkconfig.in: Ignore non-option arguments, for
26373 compatibility with older versions (before 2010-06-12) which did the
26374 same. In particular, this makes it easier to ship an update-grub
26375 wrapper which is compatible with that used with GRUB Legacy (Debian
26376 bug #586056).
26377
26378 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26379
26380 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
26381 for manual page generation.
26382
26383 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26384
26385 * po/POTFILES: Remove leftover commands/handler.c.
26386
26387 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
26388
26389 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
26390 left this script non-functional.
26391
26392 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
26393
26394 * docs/man/grub-emu.h2m: New file.
26395
26396 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
26397
26398 * docs/grub.texi (Commands): Document reduced command set in rescue
26399 mode.
26400 (cpuid): New section.
26401
26402 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
26403
26404 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
26405 new partition naming style.
26406 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
26407
26408 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
26409
26410 Add "-o grub.iso" like cmdline options support.
26411
26412 * util/grub-install.in: Improve cmdline option parsing.
26413 * util/grub-mkconfig.in: Likewise.
26414 * util/grub-mkrescue.in: Likewise.
26415 * util/grub-reboot.in: Likewise.
26416 * util/grub-set-default.in: Likewise.
26417 * util/i386/efi/grub-install.in: Likewise.
26418 * util/ieee1275/grub-install.in: Likewise.
26419 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
26420
26421 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
26422
26423 * .bzrignore: Ignore 41_custom.
26424
26425 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
26426
26427 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
26428
26429 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
26430
26431 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
26432 prototype declarations.
26433
26434 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
26435 generating fs, partmap, and video lists.
26436 * include/grub/fs.h (grub_fs_register): Omit prototype if
26437 GRUB_LST_GENERATOR is defined.
26438 * include/grub/partition.h (grub_partition_map_register): Likewise.
26439 * include/grub/video.h (grub_video_register): Likewise.
26440
26441 2010-06-12 Javier Martín <lordhabbit@gmail.com>
26442
26443 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
26444
26445 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
26446
26447 * util/grub-mkrescue.in: Support --xorriso argument.
26448
26449 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
26450
26451 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
26452 Suggested by: Thomas Schmitt.
26453
26454 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
26455
26456 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
26457 Suggested by: Thomas Schmitt.
26458
26459 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
26460
26461 custom.cfg support.
26462
26463 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
26464 * util/grub.d/41_custom.in: New file.
26465
26466 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
26467
26468 * util/grub-mkrescue.in (make_image): Remove sh module, which has
26469 been merged back into normal.
26470
26471 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
26472
26473 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
26474 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
26475
26476 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
26477
26478 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
26479 when generating manual pages.
26480 * docs/man/grub-bin2h.h2m: New file.
26481 * docs/man/grub-editenv.h2m: New file.
26482 * docs/man/grub-fstest.h2m: New file.
26483 * docs/man/grub-install.h2m: New file.
26484 * docs/man/grub-macho2img.h2m: New file.
26485 * docs/man/grub-mkconfig.h2m: New file.
26486 * docs/man/grub-mkdevicemap.h2m: New file.
26487 * docs/man/grub-mkfont.h2m: New file.
26488 * docs/man/grub-mkimage.h2m: New file.
26489 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
26490 * docs/man/grub-mkrelpath.h2m: New file.
26491 * docs/man/grub-mkrescue.h2m: New file.
26492 * docs/man/grub-ofpathname.h2m: New file.
26493 * docs/man/grub-pe2elf.h2m: New file.
26494 * docs/man/grub-probe.h2m: New file.
26495 * docs/man/grub-reboot.h2m: New file.
26496 * docs/man/grub-script-check.h2m: New file.
26497 * docs/man/grub-set-default.h2m: New file.
26498 * docs/man/grub-setup.h2m: New file.
26499
26500 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
26501
26502 Use FOR_* macros instead of *_iterate whenever possible.
26503
26504 * commands/handler.c: Removed.
26505 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
26506 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
26507 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
26508 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
26509 (grub_probe_SOURCES): Remove kern/parser.c.
26510 (util/grub-script-check.c_DEPENDENCIES): Removed.
26511 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
26512 and grub_script_check_init.c.
26513 (grub_script_check_init.lst): Removed.
26514 (grub_script_check_init.h): Likewise.
26515 (grub_script_check_init.c): Likewise.
26516 (pkglib_MODULES): Remove handler.mod and sh.mod.
26517 (handler_mod_SOURCES): Removed.
26518 (handler_mod_CFLAGS): Likewise.
26519 (handler_mod_LDFLAGS): Likewise.
26520 (normal_mod_SOURCES): Remove normal/handler.c.
26521 Add script/main.c, script/script.c, script/execute.c,
26522 script/function.c, script/lexer.c, grub_script.tab.c
26523 and grub_script.yy.c.
26524 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
26525 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26526 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
26527 (grub_setup_SOURCES): Remove kern/parser.c.
26528 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
26529 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
26530 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
26531 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26532 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26533 (grub_setup_SOURCES): Remove kern/parser.c.
26534 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
26535 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
26536 * include/grub/command.h (grub_command_iterate): Removed.
26537 (FOR_COMMANDS): New macro.
26538 * include/grub/dl.h (grub_dl): New member next.
26539 (grub_dl_iterate): Removed.
26540 (grub_dl_head): New variable declaration.
26541 (FOR_DL_MODULES): New macro.
26542 * include/grub/fs.h: Include list.h.
26543 (grub_fs): Make next first element.
26544 (grub_fs_list): New variable declaration.
26545 (grub_fs_register): Make inline.
26546 (grub_fs_unregister): Likewise.
26547 (grub_fs_iterate): Removed.
26548 (FOR_FILESYSTEMS): New macro.
26549 * include/grub/handler.h: Removed.
26550 * include/grub/list.h (grub_list_hook_t): Removed.
26551 (grub_list_test_t): Likewise.
26552 (grub_list_pop): Likewise.
26553 (grub_list_iterate): Likewise.
26554 (grub_list_insert): Likewise.
26555 (FOR_LIST_ELEMENTS): New macro.
26556 * include/grub/parser.h (grub_parser_class): Removed.
26557 (grub_parser_register): Likewise.
26558 (grub_parser_unregister): Likewise.
26559 (grub_parser_get_current): Likewise.
26560 (grub_parser_set_current): Likewise.
26561 (grub_register_rescue_parser): Likewise.
26562 (grub_rescue_parse_line): New function.
26563 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
26564 * include/grub/script_sh.h (grub_script_function_list): New variable
26565 declaration.
26566 (FOR_SCRIPT_FUNCTIONS): New macro.
26567 (grub_script_function_iterate): Removed.
26568 (grub_normal_parse_line): New prototype.
26569 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
26570 (FOR_DISABLED_TERM_INPUTS): Likewise.
26571 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
26572 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
26573 * include/grub/video.h (grub_video_adapter): Move 'next' to first
26574 element.
26575 (grub_video_register): Inline.
26576 (grub_video_unregister): Likewise.
26577 (grub_video_adapter_list): New variable declaration.
26578 (grub_video_iterate): Removed.
26579 (FOR_VIDEO_ADAPTERS): New macro.
26580 * kern/dl.c (grub_dl_list): Removed. All users updated.
26581 (grub_dl_iterate): Removed.
26582 * kern/fs.c (grub_fs_list): Make global.
26583 (grub_fs_register): Removed.
26584 (grub_fs_unregister): Likewise.
26585 (grub_fs_iterate): Likewise.
26586 * kern/handler.c: Removed.
26587 * kern/list.c (grub_list_pop): Removed.
26588 (grub_list_iterate): Likewise.
26589 (grub_list_insert): Likewise.
26590 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
26591 (grub_prio_list_insert): Don't use grub_list_insert.
26592 * kern/main.c (grub_register_rescue_parser): Don't call
26593 grub_register_rescue_parser.
26594 * kern/parser.c (grub_parser_class): Removed.
26595 (grub_parser_execute): Use grub_rescue_parse_line.
26596 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
26597 (grub_rescue_parser): Removed.
26598 (grub_register_rescue_parser): Likewise.
26599 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
26600 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
26601 (grub_auth_check_authentication): Likewise.
26602 * normal/completion.c (iterate_command): Removed.
26603 (grub_normal_do_completion): Use FOR_COMMANDS.
26604 * normal/handler.c: Removed.
26605 * normal/main.c (read_config_file): Remove parser changing.
26606 (grub_normal_execute): Don't call read_handler_list.
26607 (grub_normal_read_line_real): Statically allocate prompt.
26608 (grub_cmdline_run): Use grub_normal_parse_line.
26609 (GRUB_MOD_FINI): Don't call free_handler_list.
26610 * normal/menu_entry.c (run): Likewise.
26611 * script/function.c (grub_script_function_list): Make global.
26612 (grub_script_function_iterate): Removed.
26613 * script/main.c (grub_normal_parse_line): Make global.
26614 (grub_sh_parser): Removed.
26615 (GRUB_MOD_INIT): Likewise.
26616 (GRUB_MOD_FINI): Likewise.
26617 * tests/lib/functional_test.c (grub_functional_test): Use
26618 FOR_LIST_ELEMENTS.
26619 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
26620 (grub_test_run): Use FOR_LIST_ELEMENTS.
26621 * tests/lib/unit_test.c (main): Likewise.
26622 * util/deviceiter.c (grub_util_iterate_devices): Don't use
26623 grub_list_pop.
26624 * util/grub-fstest.c (grub_term_input_class): Removed.
26625 (grub_term_output_class): Likewise.
26626 * util/grub-probe.c: Likewise.
26627 * util/i386/pc/grub-setup.c: Likewise.
26628 * util/sparc64/ieee1275/grub-setup.c: Likewise.
26629 * util/grub-script-check.c (main): Don't call grub_init_all and
26630 grub_fini_all.
26631 * video/video.c (grub_video_adapter_list): Make global.
26632 (grub_video_register): Removed.
26633 (grub_video_unregister): Likewise.
26634 (grub_video_iterate): Likewise.
26635
26636 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
26637
26638 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
26639 reported by Henrique Ferreiro.
26640
26641 2010-06-09 Robert Millan <rmh@gnu.org>
26642
26643 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
26644 ones, when both are available.
26645
26646 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
26647
26648 Make --version uniform and avoid hard-coded program name.
26649
26650 * util/grub-mkimage.c (main): Use `program_name' instead of
26651 hard-coded string.
26652 * util/i386/pc/grub-setup.c (main): Likewise.
26653 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
26654 * util/grub-install.in: Save the basename of $0 in $self, and use the
26655 latter in informational messages. Use the same format for --version
26656 as the binary programs.
26657 * util/grub-mkconfig.in: Likewise.
26658 * util/grub-mkrescue.in: Likewise.
26659 * util/grub-reboot.in: Likewise.
26660 * util/grub-set-default.in: Likewise.
26661 * util/i386/efi/grub-install.in: Likewise.
26662 * util/ieee1275/grub-install.in: Likewise.
26663 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
26664
26665 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
26666
26667 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
26668 embedding area. Use <= instead of == when checking for non-emptiness.
26669
26670 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
26671
26672 * configure.ac: Add `.' to the directories searched for unifont.
26673
26674 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
26675
26676 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
26677 grub_script.yy.h.
26678
26679 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
26680
26681 * docs/grub.texi (History): Expand to cover GRUB 2.
26682 (Serial terminal): Refer to `terminal_input' and `terminal_output'
26683 commands, not `terminal'.
26684 (serial): Likewise.
26685 (terminal_input): New section.
26686 (terminal_output): New section.
26687 (uppermem): New section (stub).
26688 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
26689
26690 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
26691
26692 * docs/grub.texi (Security): Menu entries are unrestricted by
26693 default, not restricted to superusers as I had previously thought.
26694 Reword to account for this.
26695
26696 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
26697
26698 * kern/emu/misc.c (device_mapper_null_log): New function.
26699 (grub_device_mapper_supported): New function.
26700 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
26701 prototype.
26702 * kern/emu/hostdisk.c (find_partition_start): Check whether
26703 device-mapper is supported before trying to use it.
26704 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
26705
26706 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
26707
26708 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
26709 (File name syntax): Likewise.
26710 (help): --all is no longer supported in GRUB 2. Be more precise
26711 about pattern matching.
26712
26713 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
26714
26715 * normal/completion.c (grub_normal_do_completion): When completing
26716 arguments to "set" and the current word contains an equals sign,
26717 skip to after the equals sign before starting completion.
26718
26719 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
26720
26721 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
26722
26723 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
26724
26725 * docs/grub.texi (Network): New section.
26726 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
26727 `(nd)' as in GRUB Legacy.
26728 (pxe_unload): New section.
26729
26730 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
26731
26732 * docs/grub.texi (Troubleshooting): `echo' is not usually available
26733 in the rescue shell, so recommend using `set' instead. Thanks,
26734 Jordan Uggla.
26735
26736 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
26737
26738 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
26739 (password): New section.
26740 (password_pbkdf2): New section.
26741 (search): New section.
26742 (Security): New section.
26743 (Troubleshooting): New section, currently very incomplete.
26744 (Invoking grub-mkpasswd-pbkdf2): New section.
26745 (Internals): New section, currently very incomplete.
26746
26747 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
26748
26749 * util/grub.d/00_header.in: Add some more quoting (of
26750 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
26751 work again.
26752 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
26753
26754 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
26755
26756 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
26757 to `count', fixing variable shadowing that broke the -c option.
26758
26759 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
26760
26761 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
26762 in case they contain spaces.
26763
26764 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
26765
26766 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
26767 "part_" to partmap module names, in line with grub-install.
26768 Reported by: Jindřich Makovička (Debian bug #584426).
26769
26770 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
26771
26772 * util/grub-mkimage.c: Make target-related error messages slightly
26773 more helpful; -O talks about "format". Explicitly point to the use
26774 of -O if no target is specified.
26775 Reported by: Didier Raboud (Debian bug #584415).
26776
26777 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
26778
26779 * INSTALL: Document several build requirements for optional features
26780 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
26781
26782 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
26783
26784 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
26785 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
26786 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
26787
26788 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
26789
26790 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
26791 Thanks to Jordan Uggla for spotting this.
26792
26793 2010-06-02 Aleš Nesrsta <starous@volny.cz>
26794
26795 Finally make USB usable.
26796
26797 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
26798 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
26799 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
26800 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
26801 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
26802 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
26803 (GRUB_OHCI_FSMPS): Likewise.
26804 (GRUB_OHCI_PERIODIC_START): Likewise.
26805 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
26806 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
26807 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
26808 (GRUB_OHCI_SET_PORT_RESET): Likewise.
26809 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
26810 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
26811 (grub_ohci_transaction): Likewise.
26812 (grub_ohci_transfer): Improve condition detection algorithms.
26813 Handle toggle property. Program the transactions correctly.
26814 Improve error handling. Various important fixups.
26815 (grub_ohci_portstatus): Put register writes in right order.
26816 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
26817 (grub_uhci_transfer): Don't show "failed" message on success.
26818 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
26819 array.
26820 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
26821 determine its size.
26822 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
26823 before initialization is completed. Use IN direction for empty
26824 transfers. Use last_trans and compute toggle.
26825 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
26826 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
26827 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
26828 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
26829 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
26830 (grub_usb_device): Increase toggle to 256.
26831 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
26832 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
26833 GRUB_USBMS_SUBCLASS_SFF8070.
26834 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
26835 (grub_scsi_inquiry): New member page and alloc_length.
26836 (grub_scsi_request_sense): New structure.
26837 (grub_scsi_request_sense_data): Likewise.
26838 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
26839 control.
26840 * disk/scsi.c (grub_scsi_request_sense): New function.
26841 (grub_scsi_test_unit_ready): Likewise.
26842 (grub_scsi_inquiry): Fill new fields.
26843 (grub_scsi_read_capacity): Likewise.
26844 (grub_scsi_read10): Add request sense at the end.
26845 (grub_scsi_read12): Likewise.
26846 (grub_scsi_write10): Likewise.
26847 (grub_scsi_write12): Likewise.
26848 (grub_scsi_open): Add Test Unit Ready.
26849 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
26850 Support additional subclasses. Con't clear halt yet. Activate the
26851 proper config. Calculate LUNs correctly.
26852 (grub_usbms_transfer): Various important fixups.
26853
26854 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
26855
26856 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
26857 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
26858 (grub_ohci_fini_hw): New function.
26859 (grub_ohci_restore_hw): Likewise.
26860 (GRUB_MOD_INIT(ohci)): Register preboot hook.
26861 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
26862 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
26863
26864 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
26865
26866 Dedicated DMA allocations.
26867
26868 * bus/pci.c (grub_memalign_dma32): New function
26869 (grub_dma_free): Likewise.
26870 (grub_dma_get_virt): Likewise.
26871 (grub_dma_get_phys): Likewise.
26872 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
26873 (grub_ohci_pci_iter): Use dma32_alloc.
26874 (grub_ohci_transfer): Likewise.
26875 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
26876 (grub_usb_bulk_readwrite): Likewise.
26877 * include/grub/pci.h: Add declarations.
26878
26879 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
26880
26881 CS5536 support.
26882
26883 * bus/cs5536.c: New file.
26884 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
26885 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
26886 (cs5536_mod_SOURCES): New variable.
26887 (cs5536_mod_CFLAGS): Likewise.
26888 (cs5536_mod_LDFLAGS): Likewise.
26889 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
26890 machine/pci.h.
26891 (kernel_img_SOURCES): Add bus/cs5536.c.
26892 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
26893 usb_keyboard.mod.
26894 (usb_mod_SOURCES): New variable.
26895 (usb_mod_CFLAGS): New variable.
26896 (usb_mod_LDFLAGS): New variable.
26897 (usbtest_mod_SOURCES): New variable.
26898 (usbtest_mod_CFLAGS): New variable.
26899 (usbtest_mod_LDFLAGS): New variable.
26900 (ohci_mod_SOURCES): New variable.
26901 (ohci_mod_CFLAGS): New variable.
26902 (ohci_mod_LDFLAGS): New variable.
26903 (usbms_mod_SOURCES): New variable.
26904 (usbms_mod_CFLAGS): New variable.
26905 (usbms_mod_LDFLAGS): New variable.
26906 (usb_keyboard_mod_SOURCES): New variable.
26907 (usb_keyboard_mod_CFLAGS): New variable.
26908 (usb_keyboard_mod_LDFLAGS): New variable.
26909 * include/grub/smbus.h: New file.
26910 * include/grub/cs5536.h: New file.
26911
26912 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
26913
26914 * util/grub.d/00_header.in: Add safety check to make sure that
26915 ${locale_dir} exists before trying to probe it.
26916
26917 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
26918
26919 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
26920 per the GNU Coding Standards; this is now too obscure to be worth
26921 documenting.
26922 (QNX): Likewise.
26923 (chainloader): Remove cross-reference to `SCO UnixWare'.
26924
26925 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
26926
26927 * docs/grub.texi (Chain-loading): New section.
26928 (DOS/Windows): New section, borrowed from GRUB Legacy with details
26929 adjusted for GRUB 2.
26930 (SCO UnixWare): Likewise.
26931 (QNX): Likewise.
26932 (chainloader): Add reference to `Block list syntax'.
26933 (drivemap): New section.
26934 (parttool): New section.
26935
26936 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
26937
26938 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
26939 the grub shell'.
26940 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
26941 (Installing GRUB using grub-install): Remove reference to the grub
26942 shell; mention `grub-mkimage' and `grub-setup' instead.
26943 (Invoking grub-install): Likewise.
26944 (Interface): Add reference to `Menu entry editor'.
26945 (serial): Remove `--device' option.
26946
26947 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
26948
26949 * docs/grub.texi (Configuration): New section, documenting
26950 configuration file generation using grub-mkconfig. I've left a slot
26951 for documenting the full shell scripting format but have not yet
26952 started on writing that up.
26953 (Invoking grub-mkconfig): New section.
26954
26955 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
26956
26957 * docs/grub.texi (direntry): Remove grub-terminfo reference.
26958 (GNU GRUB manual): Likewise.
26959 (General commands): Update description of `terminfo' for GRUB 2.
26960
26961 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
26962
26963 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
26964 (GRUB_MOD_INIT): Fix capitalisation.
26965 * docs/grub.texi (Command-line and menu entry commands): Document
26966 gettext and gptsync commands.
26967
26968 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
26969
26970 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
26971 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
26972
26973 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
26974
26975 Add btrfs probing support, currently only in the single-device case.
26976
26977 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
26978 function.
26979 (grub_guess_root_device): Call find_root_device_from_mountinfo
26980 before looking in /dev.
26981
26982 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
26983
26984 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
26985 GRUB_DISK_SIZE_UNKNOWN.
26986 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
26987
26988 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
26989
26990 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
26991 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
26992 corrupted or not synced properly.
26993
26994 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
26995
26996 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
26997 Reported by: Seth Goldberg.
26998
26999 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
27000
27001 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
27002 addition of dest.
27003 Reported by: Seth Goldberg.
27004
27005 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
27006
27007 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
27008 Reported by: Seth Goldberg.
27009
27010 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
27011
27012 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
27013 64-bit address as signed on MIPS.
27014
27015 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
27016
27017 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
27018 to the empty string.
27019
27020 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
27021
27022 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
27023
27024 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
27025 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
27026 * kern/misc.c (__enable_execute_stack): Disable on
27027 GRUB_MACHINE_EMU.
27028
27029 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
27030
27031 Make grub-probe work with symbolic links under /dev/mapper as well
27032 as with real block devices. The Linux world seems to be (at best)
27033 in transition here, and GRUB shouldn't get caught in the middle.
27034
27035 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
27036 /dev/mapper.
27037
27038 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
27039
27040 * util/grub-script-check.c (main): Ensure defined behaviour on empty
27041 input files (in which case exit zero).
27042
27043 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
27044
27045 * kern/emu/misc.c (canonicalize_file_name): realpath can still
27046 return NULL for various reasons even if it has a maximum-length
27047 buffer: for example, there might be a symlink loop, or the path
27048 might exceed PATH_MAX. If this happens, return NULL.
27049
27050 2010-05-27 Robert Millan <rmh@gnu.org>
27051
27052 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
27053 partmap module to handle cross-partmap setups.
27054 Reported by Orestes Mas. Gràcies!
27055
27056 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
27057
27058 * util/grub-mkrescue.in: Initialise override_dir rather than
27059 assuming that it's unset or empty in the environment.
27060
27061 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
27062
27063 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
27064 variable index into p_index to suppress a warning with -Wshadow.
27065
27066 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
27067
27068 * INSTALL: Added flex >= 2.5.35 requirement.
27069
27070 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
27071
27072 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
27073
27074 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
27075
27076 cmostest support.
27077
27078 * commands/i386/cmostest.c: New file.
27079 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
27080 (cmostest_mod_SOURCES): New variable.
27081 (cmostest_mod_CFLAGS): Likewise.
27082 (cmostest_mod_LDFLAGS): Likewise.
27083 * conf/i386-pc.rmk: Likewise.
27084 * docs/grub.texi (Vendor power-on keys): New section.
27085 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
27086 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
27087 and GRUB_BUTTON_CMOS_ADDRESS.
27088 * util/grub.d/00_header.in: Handle powering-on by separate button.
27089
27090 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
27091
27092 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
27093 Removed drawing_scrollbar argument. All users updated
27094 Fixes #29792.
27095 Reported by Jo Shields
27096
27097 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
27098
27099 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
27100 buffer since gfxterm handles double repaint.
27101
27102 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
27103
27104 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
27105 * term/gfxterm.c (real_scroll): Likewise.
27106
27107 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
27108
27109 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
27110 before calling BIOS.
27111
27112 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
27113
27114 * include/grub/i18n.h: Always enable grub_gettext.
27115
27116 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
27117
27118 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
27119 partition naming style.
27120
27121 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
27122
27123 * util/grub-mkconfig.in: Fix handling of -o so that it works when
27124 not the first option.
27125
27126 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
27127
27128 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
27129
27130 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
27131
27132 * util/misc.c: Move inclusion of <limits.h> to ...
27133 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
27134
27135 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
27136
27137 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
27138 Fix merge error in NetBSD code.
27139 (find_partition_start) [__NetBSD__]: Likewise.
27140
27141 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
27142
27143 Fix grub-mkrescue usage unit testing.
27144
27145 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
27146
27147 2010-05-18 Christian Franke <franke@computer.org>
27148
27149 * util/grub.d/10_windows.in: Use path names instead of
27150 drive letters to prevent warning from Cygwin 1.7.
27151 Add drivemap command to menuentry if needed.
27152
27153 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
27154
27155 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
27156 gnumach and gnumach.gz.
27157
27158 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
27159
27160 * include/grub/i18n.h (gettext): Inline instead of using #define.
27161 (grub_gettext): Likewise.
27162 (_): Likewise.
27163
27164 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
27165
27166 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
27167 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
27168 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
27169 (main): Add a slash after pkglibdirroot.
27170
27171 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
27172
27173 * util/grub-install.in: Add missing "in" keyword.
27174
27175 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
27176
27177 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
27178 Reported by: Seth Goldberg.
27179
27180 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
27181
27182 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
27183
27184 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
27185
27186 * configure.ac: Check for Linux device-mapper support.
27187
27188 * util/hostdisk.c (device_is_mapped): New function.
27189 (find_partition_start): New function, partly broken out from
27190 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
27191 device-mapper support added.
27192 (linux_find_partition): Use find_partition_start.
27193 (convert_system_partition_to_system_disk): Add `st' argument.
27194 Support Linux /dev/mapper/* devices if device-mapper support is
27195 available; only DM-RAID devices are understood at present.
27196 (find_system_device): Add `st' argument. Pass it to
27197 convert_system_partition_to_system_disk.
27198 (grub_util_biosdisk_get_grub_dev): Pass stat result to
27199 find_system_device and convert_system_partition_to_system_disk. Use
27200 find_partition_start.
27201
27202 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
27203 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
27204 * util/deviceiter.c [__linux__]: Define MINOR.
27205 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
27206 * util/mkdevicemap.c (grub_putchar): New function.
27207 (grub_getkey): New function.
27208 (grub_refresh): New function.
27209 (main): Set debug=all if -v -v is used.
27210
27211 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
27212
27213 Fix build with non-GNU libcs.
27214
27215 * util/misc.c (canonicalize_file_name): Move to ...
27216 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
27217 grub_make_system_path_relative_to_its_root.
27218
27219 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
27220
27221 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
27222 we handle finding grub-mkimage. Default to finding grub-mkimage in
27223 ${bindir} with program_transform_name applied, and provide a
27224 --grub-mkimage option to override this.
27225
27226 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
27227
27228 Remove grub-mkisofs.
27229
27230 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
27231 (grub_mkisofs_SOURCES): Removed.
27232 (grub_mkisofs_CFLAGS): Removed.
27233 * util/mkisofs/defaults.h: Removed.
27234 * util/mkisofs/eltorito.c: Likewise.
27235 * util/mkisofs/exclude.h: Likewise.
27236 * util/mkisofs/hash.c: Likewise.
27237 * util/mkisofs/include/: Likewise.
27238 * util/mkisofs/include/fctldefs.h: Likewise.
27239 * util/mkisofs/include/mconfig.h: Likewise.
27240 * util/mkisofs/include/prototyp.h: Likewise.
27241 * util/mkisofs/include/statdefs.h: Likewise.
27242 * util/mkisofs/iso9660.h: Likewise.
27243 * util/mkisofs/joliet.c: Likewise.
27244 * util/mkisofs/match.c: Likewise.
27245 * util/mkisofs/match.h: Likewise.
27246 * util/mkisofs/mkisofs.c: Likewise.
27247 * util/mkisofs/mkisofs.h: Likewise.
27248 * util/mkisofs/msdos_partition.h: Likewise.
27249 * util/mkisofs/multi.c: Likewise.
27250 * util/mkisofs/name.c: Likewise.
27251 * util/mkisofs/rock.c: Likewise.
27252 * util/mkisofs/tree.c: Likewise.
27253 * util/mkisofs/write.c: Likewise.
27254
27255 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
27256
27257 Unify grub-mkimage accross platforms.
27258
27259 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
27260 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
27261 (grub_mkelfimage_SOURCES): Removed.
27262 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
27263 (util/grub-mkimage.c_DEPENDENCIES): .. this.
27264 (bin_UTILITIES): Add grub-mkimage.
27265 (grub_mkimage_SOURCES): New variable.
27266 (kernel_img_HEADERS): Remove machine/kernel.h.
27267 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
27268 (pkglib_PROGRAMS): Add kernel.img.
27269 (kernel_img_HEADERS): Add machine/kernel.h.
27270 (kernel_img_FORMAT): Removed.
27271 (bin_UTILITIES): Remove grub-mkimage.
27272 (grub_mkimage_SOURCES): Removed.
27273 (grub_mkimage_CFLAGS): Likewise.
27274 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
27275 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
27276 (pkglib_PROGRAMS): Add kernel.img.
27277 (bin_UTILITIES): Remove grub-mkimage.
27278 (grub_mkimage_SOURCES): Removed.
27279 (grub_mkimage_CFLAGS): Likewise.
27280 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
27281 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
27282 (pkglib_PROGRAMS): Add kernel.img.
27283 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
27284 (pkglib_PROGRAMS): Add kernel.img.
27285 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
27286 (grub_mkimage_SOURCES): Removed.
27287 (grub_mkimage_CFLAGS): Likewise.
27288 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
27289 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
27290 (pkglib_PROGRAMS): Add kernel.img.
27291 (bin_UTILITIES): Remove grub-mkimage.
27292 (grub_mkimage_SOURCES): Removed.
27293 (grub_mkimage_CFLAGS): Likewise.
27294 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
27295 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
27296 (grub_mkimage_SOURCES): Removed.
27297 (grub_mkimage_CFLAGS): Likewise.
27298 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
27299 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
27300 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
27301 (grub_pe32_optional_header): ... this.
27302 (grub_pe64_optional_header): ... and this. All users updated.
27303 (GRUB_PE32_PE32_MAGIC): Split into ..
27304 (GRUB_PE32_PE32_MAGIC): .. this.
27305 (GRUB_PE32_PE64_MAGIC): .. and this.
27306 (GRUB_PE32_SIGNATURE_SIZE): New definition.
27307 * include/grub/elf.h (PT_GNU_STACK): New definition.
27308 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
27309 * include/grub/i386/efi/kernel.h: Likewise.
27310 * include/grub/i386/kernel.h: Likewise.
27311 * include/grub/i386/pc/kernel.h: Likewise.
27312 * include/grub/i386/qemu/boot.h: Likewise.
27313 * include/grub/mips/kernel.h: Likewise.
27314 * include/grub/mips/qemu-mips/kernel.h: Likewise.
27315 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
27316 * include/grub/powerpc/kernel.h: Likewise.
27317 * include/grub/sparc64/ieee1275/boot.h: Likewise.
27318 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
27319 * include/grub/sparc64/kernel.h: Likewise.
27320 * include/grub/x86_64/efi/kernel.h: Likewise.
27321 * include/grub/x86_64/kernel.h: Likewise.
27322 * include/grub/offsets.h: New file.
27323 * include/grub/kernel.h (grub_module_info): Split into ...
27324 (grub_module_info32): ... this.
27325 (grub_module_info64): ... and this.
27326 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
27327 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
27328 (grub_boot_blocklist): Moved from here ...
27329 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
27330 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
27331 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
27332 * include/grub/types.h (grub_target_to_host16): Removed.
27333 (grub_target_to_host32): Likewise.
27334 (grub_target_to_host64): Likewise.
27335 (grub_host_to_target16): Likewise.
27336 (grub_host_to_target32): Likewise.
27337 (grub_host_to_target64): Likewise.
27338 (grub_host_to_target_addr): Likewise.
27339
27340 Support grub-mkrescue for efi, coreboot and qemu.
27341
27342 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
27343 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
27344 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
27345 * util/grub-mkrawimage.c: Moved from here ...
27346 * util/grub-mkimage.c: ... here. All users updated.
27347 (ALIGN_ADDR): Use image_target.
27348 (TARGET_NO_FIELD): New const.
27349 (image_target_desc): New type.
27350 (image_targets): New array.
27351 (grub_target_to_host64): Use image_target.
27352 (grub_target_to_host32): Likewise.
27353 (grub_target_to_host16): Likewise.
27354 (grub_host_to_target64): Likewise.
27355 (grub_host_to_target32): Likewise.
27356 (grub_host_to_target16): Likewise.
27357 (grub_host_to_target_addr): Likewise.
27358 (generate_image): Handle multiimage.
27359 (main): Require -O parameter. All users updated.
27360 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
27361 util/efi/grub-mkimage.c
27362 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
27363 New option --rom-directory.
27364 Use xorriso.
27365 * util/i386/efi/grub-mkimage.c: Removed.
27366 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
27367 (grub_target_to_host32): Likewise.
27368 (grub_target_to_host64): Likewise.
27369 (grub_host_to_target16): Likewise.
27370 (grub_host_to_target32): Likewise.
27371 (grub_host_to_target64): Likewise.
27372 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
27373 (grub_target_to_host32): Likewise.
27374 (grub_target_to_host64): Likewise.
27375 (grub_host_to_target16): Likewise.
27376 (grub_host_to_target32): Likewise.
27377 (grub_host_to_target64): Likewise.
27378
27379 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
27380
27381 Source tree is reorganized for emu build.
27382
27383 * include/grub/util/console.h: Move from here...
27384 * include/grub/emu/console.h: ...to here.
27385 * include/grub/util/getroot.h: Move from here...
27386 * include/grub/emu/getroot.h: ...to here.
27387 * include/grub/util/hostdisk.h: Move from here...
27388 * include/grub/emu/hostdisk.h: ...to here.
27389 * util/console.c: Move from here...
27390 * kern/emu/console.c: ...to here.
27391 * util/getroot.c: Move from here...
27392 * kern/emu/getroot.c: ...to here.
27393 * util/grub-emu.c: Move from here...
27394 * kern/emu/main.c: ...to here.
27395 * util/hostdisk.c: Move from here...
27396 * kern/emu/hostdisk.c: ...to here.
27397 * util/hostfs.c: Move from here...
27398 * kern/emu/hostfs.c: ...to here.
27399 * util/mm.c: Move from here...
27400 * kern/emu/mm.c: ...to here.
27401 * util/pci.c: Move from here...
27402 * bus/emu/pci.c: ...to here.
27403 * util/sdl.c: Move from here...
27404 * video/emu/sdl.c: ...to here.
27405 * util/time.c: Move from here...
27406 * kern/emu/time.c: ...to here.
27407 * util/usb.c: Move from here...
27408 * bus/usb/emu/usb.c: ...to here.
27409
27410 * include/grub/emu/misc.h: New header for grub-emu functions.
27411 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
27412
27413 * conf/any-emu.rmk: Rule updates for above renames.
27414 * conf/common.rmk: Likewise.
27415 * conf/i386-pc.rmk: Likewise.
27416 * conf/i386-qemu.rmk: Likewise.
27417 * conf/mips.rmk: Likewise.
27418 * conf/sparc64-ieee1275.rmk: Likewise.
27419 * conf/x86-efi.rmk: Likewise.
27420
27421 * disk/lvm.h: #include updates for above renames.
27422 * util/grub-mkrelpath.c: Likewise.
27423 * util/grub-probe.c: Likewise.
27424 * util/i386/pc/grub-setup.c: Likewise.
27425 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27426 * kern/emu/console.c: Likewise.
27427 * kern/emu/getroot.c: Likewise.
27428 * kern/emu/hostdisk.c: Likewise.
27429 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
27430
27431 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
27432 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
27433 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
27434 * util/misc.c: Remove grub-emu functions.
27435
27436 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
27437
27438 Fix gfxmenu crash.
27439 Reported by: Thorsten Grützmacher.
27440
27441 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
27442 timeout hook.
27443 (circprog_set_property): Register and unregister timeout hook.
27444 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
27445 (label_destroy): Free template. and unregister hook.
27446 (label_set_state): New function.
27447 (label_set_property): Handle templates and hooks.
27448 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
27449 timeout hook.
27450 (progress_bar_set_property): Register and unregister timeout hook.
27451 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
27452 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
27453 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
27454 (update_timeout_visit): Removed.
27455 (update_timeouts): New function.
27456 (redraw_timeouts): Likewise.
27457 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
27458 (grub_gfxmenu_clear_timeout): Likewise.
27459 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
27460 (grub_gfxmenu_timeout_notify): Likewise.
27461 (grub_gfxmenu_timeout_notifications): New external variable.
27462 (grub_gfxmenu_timeout_register): New function.
27463 (grub_gfxmenu_timeout_unregister): Likewise.
27464
27465 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
27466
27467 Transform (broken) vga terminal into (working) vga video driver.
27468
27469 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
27470 video/i386/pc/vga.c.
27471 * include/grub/video.h (grub_video_driver_id):
27472 Add GRUB_VIDEO_DRIVER_VGA.
27473 * term/i386/pc/vga.c: Renamed to ...
27474 * video/i386/pc/vga.c: ...this
27475 (DEBUG_VGA): Removed.
27476 (CHAR_WIDTH): Likewise.
27477 (CHAR_HEIGHT): Likewise.
27478 (TEXT_WIDTH): Likewise.
27479 (TEXT_HEIGHT): Likewise.
27480 (DEFAULT_FG_COLOR): Likewise.
27481 (DEFAULT_BG_COLOR): Likewise.
27482 (colored_char): Likewise.
27483 (xpos): Likewise.
27484 (ypos): Likewise.
27485 (cursor_state): Likewise.
27486 (fg_color): Likewise.
27487 (bg_color): Likewise.
27488 (text_buf): Likewise.
27489 (page): Likewise.
27490 (font): Likewise.
27491 (framebuffer): New variable.
27492 (set_read_map): Disabled.
27493 (setup): New variable.
27494 (is_target): Likewise.
27495 (grub_vga_mod_init): Likewise.
27496 (grub_vga_mod_fini): Likewise.
27497 (check_vga_mem): Likewise.
27498 (write_char): Likewise.
27499 (write_cursor): Likewise.
27500 (scroll_up): Likewise.
27501 (grub_vga_putchar): Likewise.
27502 (grub_vga_getcharwidth): Likewise.
27503 (grub_vga_getwh): Likewise.
27504 (grub_vga_getxy): Likewise.
27505 (grub_vga_gotoxy): Likewise.
27506 (grub_vga_cls): Likewise.
27507 (grub_vga_setcolorstate): Likewise.
27508 (grub_vga_setcursor): Likewise.
27509 (grub_video_vga_init): New function.
27510 (grub_video_vga_setup): Likewise.
27511 (grub_video_vga_fini): Likewise.
27512 (update_target): Likewise.
27513 (grub_video_vga_blit_bitmap): Likewise.
27514 (grub_video_vga_blit_render_target): Likewise.
27515 (grub_video_vga_set_active_render_target): Likewise.
27516 (grub_video_vga_get_active_render_target): Likewise.
27517 (grub_video_vga_swap_buffers): Likewise.
27518 (grub_video_vga_set_palette): Likewise.
27519 (grub_video_vga_get_info_and_fini): Likewise.
27520 (grub_vga_term): Removed.
27521 (grub_video_vga_adapter): New variable.
27522 (GRUB_MOD_INIT): Register a video driver instead of terminal.
27523 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
27524
27525 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
27526
27527 * video/readers/jpeg.c: Indented.
27528
27529 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
27530
27531 Various jpeg cleanups.
27532
27533 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
27534 (grub_jpeg_decode_quan_table): Use sizeof.
27535 (grub_jpeg_decode_du): Use ARRAY_SIZE.
27536
27537 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
27538
27539 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
27540 tables. Ignore non-last ac bit.
27541 (grub_jpeg_decode_quan_table): Likewise.
27542
27543 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
27544
27545 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
27546 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
27547 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
27548 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
27549 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
27550 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
27551
27552 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
27553
27554 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
27555 error.
27556
27557 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
27558
27559 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
27560
27561 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
27562
27563 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
27564 condition.
27565
27566 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
27567
27568 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
27569 part.
27570
27571 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
27572
27573 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
27574 pointers.
27575
27576 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
27577
27578 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
27579
27580 2010-05-01 Christian Franke <franke@computer.org>
27581
27582 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
27583 Remove broken Cygwin path conversion.
27584 * util/misc.c: [__CYGWIN__] Add include and define.
27585 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
27586 for Cygwin 1.7.
27587 (make_system_path_relative_to_its_root): Simplify loop, replace early
27588 return by break.
27589 [__CYGWIN__] Add conversion to win32 path.
27590 Include "/" case in trailing slash removal.
27591
27592 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
27593
27594 * kern/main.c (grub_load_config): Fix copy-pasted comment.
27595 Reported by: Seth Goldberg
27596
27597 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
27598
27599 * commands/help.c (grub_cmd_help): Fix a typo.
27600 Reported by: Seth Goldberg
27601
27602 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
27603
27604 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
27605 name and add N_.
27606 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
27607 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
27608 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
27609 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
27610 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
27611 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
27612 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
27613 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
27614 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
27615 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
27616 * normal/context.c (GRUB_MOD_INIT): Likewise.
27617 * normal/main.c (GRUB_MOD_INIT): Likewise.
27618 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
27619 * term/serial.c (GRUB_MOD_INIT): Likewise.
27620 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
27621
27622 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
27623
27624 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
27625 extra == 0.
27626
27627 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
27628
27629 * commands/iorw.c: New file.
27630 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
27631 (iorw_mod_SOURCES): New variable.
27632 (iorw_mod_CFLAGS): Likewise.
27633 (iorw_mod_LDFLAGS): Likewise.
27634
27635 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
27636
27637 Hotkey support
27638
27639 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
27640 * normal/main.c (hotkey_aliases): New variable.
27641 (grub_normal_add_menu_entry): Parse "--hotkey".
27642 * normal/menu_text.c (run_menu): Handle hotkeys.
27643
27644 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
27645
27646 * kern/i386/coreboot/init.c (grub_machine_init): Call
27647 grub_machine_mmap_init on qemu.
27648
27649 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
27650
27651 * boot/i386/qemu/boot.S: Add a missing .code16.
27652
27653 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
27654
27655 Use LBIO on coreboot.
27656
27657 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
27658 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
27659 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
27660 New declaration.
27661 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
27662 grub_machine_mmap_init on coreboot.
27663 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
27664 GRUB_LINUXBIOS_MEMBER_LINK.
27665 (grub_machine_mmap_iterate): Fix declaration.
27666 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
27667
27668 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
27669
27670 Split coreboot and multiboot ports.
27671
27672 * conf/i386-multiboot.rmk: New file.
27673 * configure.ac: Add multiboot port.
27674 * include/grub/i386/multiboot/boot.h: New file.
27675 * include/grub/i386/multiboot/console.h: Likewise.
27676 * include/grub/i386/multiboot/init.h: Likewise.
27677 * include/grub/i386/multiboot/kernel.h: Likewise.
27678 * include/grub/i386/multiboot/loader.h: Likewise.
27679 * include/grub/i386/multiboot/memory.h: Likewise.
27680 * include/grub/i386/multiboot/serial.h: Likewise.
27681 * include/grub/i386/multiboot/time.h: Likewise.
27682 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
27683 * loader/multiboot.c: Likewise.
27684 * loader/multiboot_mbi2.c: Likewise.
27685 * util/grub-mkrescue.in: Generate multiboot rescue.
27686
27687 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
27688
27689 * kern/parser.c (grub_parser_execute): Cope with read-only config.
27690
27691 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
27692
27693 Merge handling of input and output terminals. Fix a hang.
27694
27695 * commands/terminal.c (abstract_terminal): New struct.
27696 (handle_command): New function. Based on grub_cmd_terminal_input.
27697 (grub_cmd_terminal_input): Use handle_command.
27698 (grub_cmd_terminal_output): Use handle_command.
27699
27700 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
27701
27702 Fix comment handling.
27703
27704 * tests/grub_script_comments.in: New testcase.
27705 * conf/tests.rmk: Rules for new testcase.
27706 * script/yylex.l: Updated flex rules.
27707
27708 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
27709
27710 * docs/grub.texi (play): Document that zero pitches produce rests.
27711 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
27712 if argc is 1.
27713
27714 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
27715
27716 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
27717 autogen issues.
27718
27719 2010-04-26 Christian Franke <franke@computer.org>
27720
27721 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
27722 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
27723 (grub_get_prefix): Remove function.
27724 * util/grub-emu.c (main): Replace grub_get_prefix () call by
27725 make_system_path_relative_to_its_root ().
27726 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
27727
27728 2010-04-24 Christian Franke <franke@computer.org>
27729
27730 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
27731 (kernel_img_LDFLAGS): Remove -static-libgcc.
27732
27733 2010-04-24 Christian Franke <franke@computer.org>
27734
27735 * configure.ac: Do not CHECK_BSS_START_SYMBOL
27736 and CHECK_END_SYMBOL if grub-emu is built.
27737 Unset TARGET_OBJ2ELF if grub-emu is built
27738 without module support.
27739
27740 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
27741
27742 Nilfs2 support.
27743
27744 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
27745 (grub_fstest_SOURCES): Likewise.
27746 (pkglib_MODULES): Add nilfs2.mod.
27747 (nilfs2_mod_SOURCES): New variable.
27748 (nilfs2_mod_CFLAGS): Likewise.
27749 (nilfs2_mod_LDFLAGS): Likewise.
27750 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
27751 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
27752 * fs/nilfs2.c: New file.
27753
27754 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
27755
27756 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
27757 is not supported.
27758
27759 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
27760
27761 Add grub-mkconfig support for NetBSD.
27762
27763 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
27764 * util/grub-mkconfig.in: export new NetBSD specific variables.
27765 * po/POTFILES-shell: added 10_netbsd.in.
27766 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
27767
27768 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
27769
27770 Fix emu build with grub-emu-pci and grub-emu-modules.
27771
27772 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
27773 functions.
27774 * include/grub/libpciaccess.h: New file.
27775 * conf/any-emu.rmk: Update kernel headers for emu build.
27776
27777 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
27778
27779 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
27780
27781 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
27782
27783 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
27784
27785 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
27786
27787 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
27788 Retrieve chosen/bootpath if bootpath isn't hardcoded.
27789 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
27790 util/ieee1275/ofpath.c.
27791 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
27792 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
27793 * include/grub/sparc64/ieee1275/boot.h
27794 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
27795 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
27796 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
27797 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
27798 const char *.
27799 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
27800 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
27801 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
27802 install.
27803
27804 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
27805
27806 * util/grub-mkconfig.in: Corrected two == equality tests.
27807 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
27808 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
27809 expect a number appended to it.
27810 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
27811 expects a number appended to it.
27812
27813 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
27814
27815 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
27816
27817 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
27818
27819 * util/hostdisk.c (make_device_name): Change to new partition naming.
27820
27821 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
27822
27823 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
27824
27825 2010-04-17 Christian Franke <franke@computer.org>
27826
27827 * Makefile.in: Add missing localedir setting.
27828
27829 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
27830
27831 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
27832 mistake in r2156. Noticed by Anthony Fok.
27833
27834 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
27835 @localedir@.
27836 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
27837
27838 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
27839
27840 Fix a spurious, uninitialized variable warning.
27841
27842 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
27843 Initialize variable, shdr.
27844 (grub_freebsd_load_elfmodule): Likewise.
27845 (grub_freebsd_load_elf_meta): Likewise.
27846
27847 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
27848
27849 Fix for escaped dollar in double quoted strings.
27850
27851 * script/yylex.l: Updated flex rules.
27852 * conf/tests.rmk: Rule for new testcase.
27853 * tests/grub_script_dollar.in: New testcase.
27854
27855 2010-04-13 Carles Pina i Estany <carles@pina.cat>
27856 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
27857
27858 Enclose all translated strings in grub.cfg in single quotes, and
27859 escape them appropriately (Ubuntu bug #552921).
27860
27861 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
27862 * util/grub.d/10_hurd.in: Use it.
27863 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
27864 * util/grub.d/10_linux.in (linux_entry): Likewise.
27865
27866 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
27867
27868 Fix cygwin compilation.
27869
27870 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
27871 * include/grub/misc.h (__register_frame_info)
27872 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
27873 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
27874 * kern/misc.c (__register_frame_info)
27875 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
27876 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
27877
27878 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
27879
27880 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
27881
27882 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
27883
27884 Unify libgcc processing.
27885
27886 * Makefile.in (kernel_img_LDFLAGS): New variable.
27887 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
27888 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
27889 overwriting.
27890 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
27891 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
27892 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
27893 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
27894 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
27895 overwriting. Remove -lgcc and -static-libgcc
27896 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
27897 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
27898 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
27899 (kernel_img_LDFLAGS): Append instead of overwriting.
27900 Remove -lgcc and -static-libgcc
27901 * conf/sparc64-ieee1275.rmk: Likewise.
27902 * include/grub/powerpc/libgcc.h: Move to ...
27903 * include/grub/libgcc.h: .. this.
27904 * include/grub/libgcc.h: Don't export most of the function on x86.
27905 (__bswapsi2): New export.
27906 (__bswapdi2): Likewise.
27907 * include/grub/mips/libgcc.h: Removed.
27908 * include/grub/sparc64/libgcc.h: Likewise.
27909
27910 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
27911
27912 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
27913 disk_info_msg (conflicts with gettexting into languages with cases).
27914
27915 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
27916
27917 Add grub-probe support for NetBSD.
27918
27919 * util/getroot.c (find_root_device): Convert block device to
27920 character device on NetBSD.
27921 * util/probe.c (probe): Require character device on NetBSD.
27922 * util/hostdisk.c: NetBSD specific headers.
27923 (configure_device_driver): new function to tune device driver
27924 parameters (currently only for NetBSD floppy driver).
27925 (grub_util_biosdisk_open): NetBSD specific code (get disk size
27926 via disklabel ioctl).
27927 (open_device): call configure_device_driver on NetBSD.
27928 (convert_system_partition_to_system_disk): NetBSD specific code.
27929 (device_is_wholedisk): Likewise.
27930 (grub_util_biosdisk_get_grub_dev): Likewise.
27931 (make_device_name): Fixed a typo in bsd_part_str.
27932 * configure.ac: check for opendisk() and getrawpartition() on
27933 NetBSD and set LIBUTIL.
27934 * Makefile.in: add LIBUTIL to LIBS.
27935
27936 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
27937
27938 Documentation fix.
27939
27940 * util/grub-script-check.c: Better help message.
27941
27942 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
27943
27944 Fix FreeBSD build.
27945
27946 * configure.ac: Flex version check.
27947 * conf/common.rmk: Add -Wno-error to sh.mod.
27948 * script/yylex.l: Remove all #pragma.
27949
27950 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
27951
27952 * include/grub/util/misc.h (canonicalise_file_name): Add missing
27953 prototype.
27954 Reported by: Seth Goldberg.
27955
27956 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
27957
27958 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
27959 Rename "module" to "module2".
27960 Reported by: Seth Goldberg.
27961
27962 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
27963
27964 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
27965 EXPORT_FUNC.
27966 Reported by: Seth Goldberg.
27967
27968 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
27969
27970 * lib/posix_wrap/locale.h: Add missing file.
27971 Reported by: Seth Goldberg.
27972
27973 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
27974
27975 grub-emu module load support.
27976
27977 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
27978 NO_DYNAMIC_MODULES switched to this.
27979 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
27980 (CFLAGS): Likewise.
27981 * conf/any-emu.rmk: Generate symlist.
27982 (kernel_img_HEADERS): Add util/datetime.h.
27983 (kernel_img_HEADERS) [sdl]: Add sdl.h.
27984 (kernel_img_HEADERS) [libusb]: Add libusb.h.
27985 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
27986 kern/$(target_cpu)/cache.S.
27987 * configure.ac (grub-emu-modules): New option.
27988 * genmk.rb: Handle multiple source lists.
27989 * include/grub/sdl.h: New file.
27990 * include/grub/libusb.h: Likewise.
27991 * util/grub-emu.c (main): Hanle (host) root.
27992 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
27993 GRUB_ERR_UNKNOWN_DEVICE.
27994 * util/misc.c: Move mm functions to ...
27995 * util/mm.c: ... here. All users updated.
27996
27997 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
27998
27999 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
28000 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
28001 missing files.
28002 (maintainer-clean): Remove libgcrypt-grub.
28003
28004 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28005
28006 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
28007
28008 2010-04-09 EFI Coder <eficoder@hotmail.com>
28009
28010 * normal/menu_text.c (print_message): Clean up the message and show
28011 the Fn information when on EFI
28012 * term/efi/console.c (grub_console_checkkey): Add F4 support.
28013
28014 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28015
28016 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
28017 All users updated.
28018 * normal/crypto.c (read_crypto_list): Likewise.
28019 * normal/dyncmd.c (read_command_list): Likewise.
28020 * normal/term.c (read_terminal_list): Likewise.
28021 * normal/main.c (read_lists): Use explicit prefix.
28022 (read_lists_hook): Use read_lists.
28023 (grub_normal_execute): Likewise.
28024
28025 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28026
28027 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
28028 Reported by: Thomas Schmitt.
28029 Add -no-emul-boot to grub-mkisofs parameters.
28030
28031 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28032
28033 * font/font.c: Indented.
28034
28035 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
28036
28037 Elif support to GRUB script (by Deepak Vankadaru).
28038
28039 * tests/grub_script_if.in: New testcase.
28040 * conf/tests.rmk: Rule for new testcase.
28041 * script/parser.y: Grammar rules for elif.
28042
28043 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
28044
28045 While and until loops support to GRUB script.
28046
28047 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
28048 (grub_script_create_cmdwhile): New function prototype.
28049 (grub_script_execute_cmdwhile): New function prototype.
28050 * script/execute.c (grub_script_execute_cmdwhile): New function.
28051 * script/parser.y (command): New commands.
28052 (whilecmd): New grammar rule.
28053 (untilcmd): New grammar rule.
28054 * script/script.c (grub_script_create_cmdwhile): New function.
28055 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
28056 function.
28057
28058 * tests/grub_script_while1.in: New testcase.
28059 * conf/tests.rmk: Rule for new testcase.
28060
28061 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28062
28063 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
28064 as *.jpg.
28065
28066 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
28067
28068 GRUB_BACKGROUND support.
28069
28070 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
28071 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
28072
28073 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28074
28075 Load fonts and modules for gfxmenu in grub-mkconfig.
28076 Idea by: Mario Vazquez
28077
28078 * util/grub.d/00_header.in: Load pf2 and image modules.
28079
28080 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28081
28082 grub-mkconfig multiple terminal support.
28083
28084 * util/grub-mkconfig.in: Handle multiple terminals correctly.
28085 * util/grub.d/00_header.in: Likewise.
28086
28087 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28088
28089 * Makefile.in: Specify files explicitly instead of using $< and $@ since
28090 we use cd $(srcdir).
28091
28092 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
28093
28094 * util/grub.d/10_linux.in: Only use the first word of
28095 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
28096 spaces in GRUB_DISTRIBUTOR.
28097 * util/grub.d/10_kfreebsd.in: Likewise.
28098 * util/grub.d/10_hurd.in: Likewise.
28099
28100 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
28101
28102 Fix unit testing framework for Qemu 0.12.
28103
28104 * tests/util/grub-shell.in: Remove -serial stdio option.
28105
28106 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
28107
28108 POSIX header file wrappers.
28109
28110 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
28111 equivalents.
28112 * lib/posix_wrap/ctype.h: Likewise.
28113 * lib/posix_wrap/errno.h: Likewise.
28114 * lib/posix_wrap/langinfo.h: Likewise.
28115 * lib/posix_wrap/limits.h: Likewise.
28116 * lib/posix_wrap/localcharset.h: Likewise.
28117 * lib/posix_wrap/stdint.h: Likewise.
28118 * lib/posix_wrap/stdio.h: Likewise.
28119 * lib/posix_wrap/stdlib.h: Likewise.
28120 * lib/posix_wrap/string.h: Likewise.
28121 * lib/posix_wrap/sys/types.h: Likewise.
28122 * lib/posix_wrap/unistd.h: Likewise.
28123 * lib/posix_wrap/wchar.h: Likewise.
28124 * lib/posix_wrap/wctype.h: Likewise.
28125 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
28126 (grub_script.yy.h): Likewise.
28127 * script/yylex.l: Remove POSIX emulation #defines.
28128 * Makefile.in (POSIX_CFLAGS): New variable.
28129 (GNULIB_UTIL_CFLAGS): Likewise.
28130
28131 Regexp support.
28132
28133 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
28134 (regexp_mod_SOURCES): New variable.
28135 (regexp_mod_CFLAGS): Likewise.
28136 (regexp_mod_LDFLAGS): Likewise.
28137 * commands/regexp.c: New file.
28138 * gnulib/regcomp.c: New file. Imported from gnulib.
28139 * gnulib/regex.c: Likewise.
28140 * gnulib/regex_internal.c: Likewise.
28141 * gnulib/regex_internal.h: Likewise.
28142 * gnulib/regexec.c: Likewise.
28143 * gnulib/regex.h: Likewise.
28144
28145 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
28146
28147 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
28148 unsupported video mode types.
28149
28150 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
28151
28152 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
28153
28154 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
28155
28156 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
28157 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
28158
28159 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
28160
28161 Remove unused grub_vga_get_font.
28162
28163 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
28164 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
28165
28166 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
28167
28168 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
28169 * include/grub/misc.h: Likewise.
28170
28171 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
28172
28173 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
28174 for which failure is fatal.
28175
28176 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
28177
28178 * util/grub-install.in: Use mkdir -p to create grub directory.
28179 * util/i386/efi/grub-install.in: Likewise.
28180 * util/ieee1275/grub-install.in: Likewise.
28181
28182 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
28183
28184 * Makefile.in (LEX): new variable.
28185
28186 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
28187
28188 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
28189 `=' and added double quotes on operands of this equality test.
28190
28191 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
28192
28193 * Makefile.in (uninstall): Remove a leftover debug echo.
28194 Reported by: Grégoire Sutre
28195
28196 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
28197
28198 MIPS multiboot2 support.
28199
28200 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
28201 (multiboot2_mod_SOURCES): New variable.
28202 (multiboot2_mod_CFLAGS): Likewise.
28203 (multiboot2_mod_LDFLAGS): Likewise.
28204 (multiboot2_mod_ASFLAGS): Likewise.
28205 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
28206 definition.
28207 (MULTIBOOT_ENTRY_REGISTER): Likewise.
28208 (MULTIBOOT_MBI_REGISTER): Likewise.
28209 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
28210 (MULTIBOOT_ELF32_MACHINE): Likewise.
28211 (MULTIBOOT_ELF64_MACHINE): Likewise.
28212 * include/grub/mips/multiboot.h: New file.
28213 * include/grub/video.h (grub_video_driver_id): New type
28214 GRUB_VIDEO_DRIVER_SM712.
28215 (grub_video_get_info_and_fini): Export.
28216 (grub_video_get_palette): Likewise.
28217 (grub_video_get_driver_id): Likewise.
28218 * include/multiboot2.h: Resynced with spec.
28219 * loader/i386/multiboot.c: Moved from here ...
28220 * loader/multiboot.c: ... here. All users updated.
28221 (grub_multiboot_boot): Use platform-specific macros.
28222 * loader/i386/multiboot_elfxx.c: Moved from here ...
28223 * loader/multiboot_elfxx.c: ... here. All users updated.
28224 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
28225 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
28226 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
28227
28228 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
28229
28230 Import gnulib argp module.
28231
28232 * gnulib/argp-ba.c: New file.
28233 * gnulib/argp-eexst.c: Likewise.
28234 * gnulib/argp-fmtstream.c: Likewise.
28235 * gnulib/argp-fmtstream.h: Likewise.
28236 * gnulib/argp-fs-xinl.c: Likewise.
28237 * gnulib/argp-help.c: Likewise.
28238 * gnulib/argp-namefrob.h: Likewise.
28239 * gnulib/argp-parse.c: Likewise.
28240 * gnulib/argp-pin.c: Likewise.
28241 * gnulib/argp-pv.c: Likewise.
28242 * gnulib/argp-pvh.c: Likewise.
28243 * gnulib/argp-version-etc.c: Likewise.
28244 * gnulib/argp-version-etc.h: Likewise.
28245 * gnulib/argp-xinl.c: Likewise.
28246 * gnulib/argp.h: Likewise.
28247
28248 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
28249
28250 * kern/device.c (grub_device_iterate): Clear errors after failed
28251 opening device.
28252
28253 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
28254
28255 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
28256 returned by firmware.
28257
28258 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
28259
28260 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
28261 compilation on coreboot and qemu
28262
28263 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
28264
28265 * include/multiboot2.h: Resync with spec.
28266
28267 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
28268
28269 Multiboot2 tag support
28270
28271 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
28272 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
28273 Remove loader/multiboot_loader.c.
28274 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
28275 (grub_multiboot2_real_boot): Likewise.
28276 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
28277 (grub_get_multiboot_mmap_count): New proto.
28278 (grub_fill_multiboot_mmap): Likewise.
28279 (grub_multiboot_set_video_mode): Likewise.
28280 (grub_multiboot_set_console): Likewise.
28281 (grub_multiboot_load): Likewise.
28282 (grub_multiboot_load_elf): Likewise.
28283 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
28284 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
28285 * include/multiboot.h: Resynced with specification.
28286 * include/multiboot2.h: Resynced with specification.
28287 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
28288 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
28289 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
28290 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
28291 users updated.
28292 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
28293 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
28294 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
28295 Removed.
28296 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
28297 Moved from here...
28298 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
28299 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
28300 Moved from here...
28301 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
28302 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
28303 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
28304 All users updated.
28305 * loader/i386/multiboot_mbi2.c: New file.
28306
28307 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
28308
28309 Resync with gnulib.
28310
28311 * Makefile.in (GNULIB_CFLAGS): New variable.
28312 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
28313 (grub_script_check_CFLAGS): New variable.
28314 * gnulib/alloca.h: Resync with gnulib.
28315 * gnulib/error.c: Likewise.
28316 * gnulib/error.h: Likewise.
28317 * gnulib/fnmatch.c: Likewise.
28318 * gnulib/fnmatch_loop.c: Likewise.
28319 * gnulib/getdelim.c: Likewise.
28320 * gnulib/getline.c: Likewise.
28321 * gnulib/getopt.c: Likewise.
28322 * gnulib/getopt1.c: Likewise.
28323 * gnulib/getopt_int.h: Likewise.
28324 * gnulib/gettext.h: Likewise.
28325 * gnulib/progname.c: Likewise.
28326 * gnulib/progname.h: Likewise.
28327
28328 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
28329
28330 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
28331 which is the case with --disabled-nls.
28332
28333 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
28334 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
28335 * util/misc.c: Likewise.
28336 * util/mkisofs/mkisofs.c: Likewise.
28337 * util/mkisofs/mkisofs.h: Likewise.
28338
28339 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
28340
28341 Simplify Apple CC support.
28342
28343 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
28344 Add 0 byte at the end not to have a symbol with empty target.
28345 * mmap/i386/pc/mmap_helper.S: Likewise.
28346 * genmk.rb: Ignore errors 2030 and 2050.
28347 * kern/i386/pc/startup.S: Use LOCAL when possible.
28348
28349 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
28350
28351 Testcase and the fix for final semicolon on cmdline.
28352
28353 * tests/grub_script_final_semicolon.in: New testcase.
28354 * conf/tests.rmk: Rules for the new testcase.
28355 * script/parser.y: Grammar fix.
28356
28357 2010-03-26 BVK Chaitanya <bvk@localhost>
28358
28359 Blank lines testcase for GRUB script.
28360
28361 * tests/grub_script_blanklines.in: New testcase.
28362 * conf/tests.rmk: Rules for the new testcase.
28363
28364 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
28365
28366 Don't use __FILE__.
28367
28368 * genmk.rb: Add -DGRUB_FILE to all C targets.
28369 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
28370 * include/grub/list.h: Likewise.
28371 * include/grub/misc.h: Likewise.
28372 * include/grub/mm.h: Likewise.
28373 * include/grub/test.h: Likewise.
28374 * kern/mm.c: Likewise.
28375 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
28376
28377 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
28378
28379 Sunpc partitions support.
28380
28381 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
28382 (grub_fstest_SOURCES): Likewise.
28383 (pkglib_MODULES): Add part_sunpc.mod.
28384 (part_sunpc_mod_SOURCES): New variable.
28385 (part_sunpc_mod_CFLAGS): Likewise.
28386 (part_sunpc_mod_LDFLAGS): Likewise.
28387 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
28388 * partmap/sunpc.c: New file.
28389
28390 2010-03-26 BVK Chaitanya <bvk@localhost>
28391
28392 For loop support to GRUB script.
28393
28394 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
28395 (grub_script_create_cmdfor): New function prototype.
28396 (grub_script_execute_cmdfor): New function prototype.
28397 * script/execute.c (grub_script_execute_cmdfor): New function.
28398 * script/parser.y (command): New for command.
28399 (forcmd): New grammar rule.
28400 * script/script.c (grub_script_create_cmdfor): New function.
28401 * util/grub-script-check.c (grub_script_execute_cmdfor): New
28402 function.
28403 * tests/grub_script_for1.in: New testcase.
28404 * conf/tests.rmk: Rules for new testcase.
28405
28406 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
28407
28408 Nested partitions
28409
28410 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
28411 'partition' is NULL, grub_partition_get_start already does that.
28412 * commands/loadenv.c (check_blocklists): Likewise.
28413 (write_blocklists): Likewise.
28414 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
28415 (grub_fstest_SOURCES): Likewise.
28416 (pkglib_MODULES): Add part_bsd.mod.
28417 (part_bsd_mod_SOURCES): New variable.
28418 (part_bsd_mod_CFLAGS): Likewise.
28419 (part_bsd_mod_LDFLAGS): Likewise.
28420 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
28421 (grub_emu_SOURCES): Likewise.
28422 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28423 * include/grub/bsdlabel.h: New file.
28424 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
28425 'get_name'.
28426 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
28427 (grub_partition_map_list): New variable.
28428 (grub_partition_map_register): Inline.
28429 (grub_partition_map_unregister): Likewise.
28430 (FOR_PARTITION_MAPS): New macro.
28431 (grub_partition_map_iterate): Removed.
28432 (grub_partition_get_start): Handle nested partitions.
28433 * include/grub/msdos_partition.h: Remove bsd-related entries.
28434 (grub_pc_partition): Remove.
28435 * kern/disk.c (grub_disk_close): Free partition data.
28436 (grub_disk_adjust_range): Handle nested partitions.
28437 * kern/partition.c (grub_partition_map_probe): New function.
28438 (grub_partition_probe): Parse name to number, handle subpartitions.
28439 (get_partmap): New function.
28440 (grub_partition_iterate): Handle subpartitions.
28441 (grub_partition_get_name): Likewise.
28442 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
28443 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
28444 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
28445 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
28446 Set 'number'.
28447 (acorn_partition_map_probe): Remove.
28448 (acorn_partition_map_get_name): Likewise.
28449 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
28450 Set 'number'.
28451 Set 'index' to 0 since there can be only one partition entry per sector.
28452 (amiga_partition_map_probe): Remove.
28453 (amiga_partition_map_get_name): Likewise.
28454 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
28455 Set 'number'.
28456 Set 'offset' and 'index' to real positions of partitions.
28457 (apple_partition_map_probe): Remove.
28458 (apple_partition_map_get_name): Likewise.
28459 * partmap/bsdlabel.c: New file.
28460 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
28461 Set 'number'.
28462 Allocate 'data' so it can be correctly freed.
28463 Set 'index' to offset inside sector.
28464 (gpt_partition_map_probe): Remove.
28465 (gpt_partition_map_get_name): Likewise.
28466 * partmap/msdos.c (grub_partition_parse): Remove.
28467 (pc_partition_map_iterate): Don't force raw access.
28468 Set 'number'.
28469 Make 'ext_offset' a local variable.
28470 (pc_partition_map_probe): Remove.
28471 (pc_partition_map_get_name): Remove.
28472 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
28473 Set 'number'.
28474 (sun_partition_map_probe): Remove.
28475 (sun_partition_map_get_name): Likewise.
28476 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
28477 (grub_pcpart_type): Likewise.
28478 * util/hostdisk.c (open_device): Handle new numbering scheme.
28479 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
28480 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
28481 * util/grub-probe.c (probe_partmap): Handle nested paritions.
28482 * util/grub-install.in: Insert all subpartition modules.
28483 * util/ieee1275/grub-install.in: Likewise.
28484
28485 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
28486
28487 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
28488 grammar.
28489
28490 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
28491
28492 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
28493
28494 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
28495
28496 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
28497 match where 'make install' puts them.
28498 * util/i386/efi/grub-install.in: Likewise.
28499
28500 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
28501
28502 * .bzrignore: Add gentrigtables, grub-script-check,
28503 grub_script_check_init.c, grub_script_check_init.h, and
28504 trigtables.c.
28505
28506 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
28507
28508 * kern/parser.c: Indented.
28509
28510 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
28511
28512 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
28513
28514 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
28515
28516 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
28517 alpha_mask_size == 0 case.
28518
28519 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
28520
28521 GRUB shell lexer and parser improvements.
28522
28523 * conf/any-emu.rmk: Build rule updates.
28524 * conf/common.rmk: Likewise.
28525 * conf/i386-coreboot.rmk: Likewise.
28526 * conf/i386-efi.rmk: Likewise.
28527 * conf/i386-ieee1275.rmk: Likewise.
28528 * conf/i386-pc.rmk: Likewise.
28529 * conf/powerpc-ieee1275.rmk: Likewise.
28530 * conf/x86_64-efi.rmk: Likewise.
28531
28532 * configure.ac: Configure check for flex.
28533
28534 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
28535 types.
28536 (grub_lexer_param): Struct member updates.
28537 (grub_parser_param): Likewise.
28538 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
28539 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
28540 (grub_script_lexer_init): Prototype update.
28541 (grub_script_lexer_record_start): Likewise.
28542 (grub_script_lexer_record_stop): Likewise.
28543 (grub_script_lexer_yywrap): New function prototype.
28544 (grub_script_lexer_fini): Likewise.
28545 (grub_script_execute_argument_to_string): Removed by...
28546 (grub_script_execute_argument_to_argv): ...better version.
28547
28548 * script/execute.c (ROUND_UPTO): New macro.
28549 (grub_script_execute_cmdline): Out of memory fixes.
28550 (grub_script_execute_menuentry): Likewise.
28551 (grub_script_execute_argument_to_string): Removed. Update all
28552 users by...
28553 (grub_script_execute_argument_to_argv): ...better version.
28554 * script/function.c (grub_script_function_create): Use
28555 grub_script_execute_argument_to_argv instead of
28556 grub_script_execute_argument_to_string.
28557
28558 * script/lexer.c (check_varstate): Removed.
28559 (check_textstate): Removed.
28560 (grub_script_lexer_record_start): Likewise.
28561 (grub_script_lexer_record_stop): Likewise.
28562 (recordchar): Replaced with...
28563 (grub_script_lexer_record): ...new function.
28564 (nextchar): Removed.
28565 (grub_script_lexer_init): Rewritten.
28566 (grub_script_yylex): Rewritten.
28567 (append_newline): New function.
28568 (grub_script_lexer_yywrap): New function.
28569 (grub_script_lexer_fini): New function.
28570 (grub_script_yyerror): Sets error flag.
28571
28572 * script/yylex.l: New file.
28573 (grub_lexer_yyfree): Wrapper for flex yyffre.
28574 (grub_lexer_yyalloc): Likewise.
28575 (grub_lexer_yyrealloc): Likewise.
28576 * script/parser.y: Refactored.
28577
28578 * script/script.c (grub_script_arg_add): Out of memory fixes.
28579 (grub_script_add_arglist): Likewise.
28580 (grub_script_create_cmdline): Likewise.
28581 (grub_script_create_cmdmenu): Likewise.
28582 (grub_script_add_cmd): Likewise.
28583 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
28584 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
28585 unnecessary code.
28586
28587 * tests/grub_script_echo1.in: New testcase.
28588 * tests/grub_script_vars1.in: New testcase.
28589 * tests/grub_script_echo_keywords.in: New testcase.
28590
28591 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
28592
28593 Remove some redundancy in build system.
28594
28595 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
28596 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
28597 (TARGET_LDFLAGS): Add -nostdlib.
28598 (TARGET_IMG_LDFLAGS): Likewise.
28599 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
28600 anything since mmap isn't available.
28601 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
28602 Add util/time.c.
28603 (pkglib_MODULES): Remove reboot.mod.
28604 (reboot_mod_SOURCES): Removed.
28605 (reboot_mod_CFLAGS): Likewise.
28606 (reboot_mod_LDFLAGS): Likewise.
28607 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
28608 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
28609 (DEFSYMFILES): Add kernel_syms.lst.
28610 (kernel_img_HEADERS): Add common headers.
28611 (symlist.c): New target.
28612 (kernel_syms.lst): Likewise.
28613 (pkglib_MODULES): Add memdisk.mod.
28614 (memdisk_mod_SOURCES): New variable.
28615 (memdisk_mod_CFLAGS): Likewise.
28616 (memdisk_mod_LDFLAGS): Likewise.
28617 (pkglib_MODULES): Add reboot.mod.
28618 (reboot_mod_SOURCES): New variable.
28619 (reboot_mod_CFLAGS): Likewise.
28620 (reboot_mod_LDFLAGS): Likewise.
28621 (pkglib_MODULES): Add date.mod.
28622 (date_mod_SOURCES): New variable.
28623 (date_mod_CFLAGS): Likewise.
28624 (date_mod_LDFLAGS): Likewise.
28625 (pkglib_MODULES): Add datehook.mod.
28626 (datehook_mod_SOURCES): New variable.
28627 (datehook_mod_CFLAGS): Likewise.
28628 (datehook_mod_LDFLAGS): Likewise.
28629 (pkglib_MODULES): Add lsmmap.mod.
28630 (lsmmap_mod_SOURCES): New variable.
28631 (lsmmap_mod_CFLAGS): Likewise.
28632 (lsmmap_mod_LDFLAGS): Likewise.
28633 (pkglib_MODULES): Add boot.mod.
28634 (boot_mod_SOURCES): New variable.
28635 (boot_mod_CFLAGS): Likewise.
28636 (boot_mod_LDFLAGS): Likewise.
28637 * conf/i386-coreboot.rmk: Removed redundant parts.
28638 * conf/i386-ieee1275.rmk: Likewise.
28639 * conf/i386-pc.rmk: Likewise.
28640 * conf/mips-yeeloong.rmk: Likewise.
28641 * conf/mips.rmk: Likewise.
28642 * conf/powerpc-ieee1275.rmk: Likewise.
28643 * conf/sparc64-ieee1275.rmk: Likewise.
28644 * conf/x86_64-efi.rmk: Likewise.
28645 * conf/i386-coreboot.rmk: Moved qemu parts ..
28646 * conf/i386-qemu.rmk: ... here
28647 * conf/i386-efi.rmk: Moved common parts to...
28648 * conf/x86-efi.rmk: ... here.
28649 * conf/i386.rmk: Added modules common to all x86 variants.
28650 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
28651 * disk/memdisk.c: Remove grub/machine/kernel.h.
28652 * gensymlist.sh.in: Include symbol.h.
28653 * hook/datehook.c: Correct module name.
28654 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
28655 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
28656 * include/grub/i386/efi/serial.h: New file.
28657 * include/grub/x86_64/efi/serial.h: Likewise.
28658 * util/time.c: Likewise.
28659 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
28660
28661 2010-03-14 Colin King <colin.king@ubuntu.com>
28662 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
28663
28664 Shrink the pre-partition-table part of boot.img by eight bytes.
28665
28666 * boot/i386/pc/boot.S (ERR): New macro.
28667 (chs_mode): Use ERR.
28668 (geometry_error): Likewise.
28669 (hd_probe_error): Remove. This is only used once, so we wrwite
28670 it inline instead.
28671 (read_error): Instead of printing read_error_string, just set up
28672 %si and fall through to ...
28673 (error_message): ... this new function, also used by ERR.
28674
28675 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
28676
28677 Speed up consecutive hostdisk operations on the same device.
28678
28679 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
28680 (grub_util_biosdisk_open): Initialise disk->data.
28681 (struct linux_partition_cache): New structure.
28682 (linux_find_partition): Cache partition start positions; these are
28683 expensive to compute on every read and write.
28684 (open_device): Cache open file descriptor in disk->data, so that we
28685 don't have to reopen it and flush the buffer cache for consecutive
28686 operations on the same device.
28687 (grub_util_biosdisk_close): New function.
28688 (grub_util_biosdisk_dev): Set `close' member.
28689
28690 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
28691 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
28692 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
28693 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
28694 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
28695
28696 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
28697
28698 Compile parts of grub-emu as modules.
28699
28700 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
28701 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
28702 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
28703 (all-local): Add $(GRUB_EMU).
28704 (install-local): Install $(GRUB_EMU).
28705 (uninstall): Uninstall $(GRUB_EMU).
28706 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
28707 * kern/dl.c: Likewise.
28708 * commands/sleep.c: Not include machine/time.h.
28709 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
28710 (COMMON_CFLAGS): Likewise.
28711 (sbin_UTILITIES): Remove grub-emu.
28712 (grub_emu_SOURCES): Removed.
28713 (kernel_img_RELOCATABLE): New variable.
28714 (pkglib_PROGRAMS): Add kernel.img.
28715 (kernel_img_SOURCES): New variable
28716 (kernel_img_CFLAGS): Likewise.
28717 (kernel_img_LDFLAGS): Likewise.
28718 (TARGET_NO_STRIP): Likewise.
28719 (TARGET_NO_DYNAMIC_MODULES): Likewise.
28720 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
28721 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
28722 (grub-emu): New target.
28723 (GRUB_EMU): New variable.
28724 * configure.ac: Whitelist -emu as possible x86_64 architecture.
28725 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
28726 * loader/xnu.c: Likewise.
28727 * include/grub/pci.h: Likewise.
28728 * genemuinit.sh: New file.
28729 * genemuinitheader.sh: Likewise.
28730 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
28731 Support TARGET_NO_DYNAMIC_MODULES.
28732 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
28733 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
28734 * disk/loopback.c: Likewise.
28735 * font/font_cmd.c: Likewise.
28736 * partmap/acorn.c: Likewise.
28737 * partmap/amiga.c: Likewise.
28738 * partmap/apple.c: Likewise.
28739 * partmap/gpt.c: Likewise.
28740 * partmap/msdos.c: Likewise.
28741 * partmap/sun.c: Likewise.
28742 * parttool/msdospart.c: Likewise.
28743 * term/gfxterm.c: Likewise.
28744 * video/bitmap.c: Likewise.
28745 * video/readers/jpeg.c: Likewise.
28746 * video/readers/png.c: Likewise.
28747 * video/readers/tga.c: Likewise.
28748 * video/video.c: Likewise.
28749 * util/grub-emu.c (read_command_list): Removed.
28750 (main): Don't call util_init_nls.
28751 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
28752 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
28753
28754 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
28755
28756 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
28757 date.mod, datehook.mod.
28758 (datetime_mod_SOURCES): New variable.
28759 (datetime_mod_CFLAGS): Likewise.
28760 (datetime_mod_LDFLAGS): Likewise.
28761 (date_mod_SOURCES): Likewise.
28762 (date_mod_CFLAGS): Likewise.
28763 (date_mod_LDFLAGS): Likewise.
28764 (datehook_mod_SOURCES): Likewise.
28765 (datehook_mod_CFLAGS): Likewise.
28766 (datehook_mod_LDFLAGS): Likewise.
28767 * conf/sparc64-ieee1275.rmk: Likewise.
28768 * lib/ieee1275/datetime.c: New file.
28769
28770 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
28771
28772 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
28773 (ieee1275_fb_mod_SOURCES): New variable.
28774 (ieee1275_fb_mod_CFLAGS): Likewise.
28775 (ieee1275_fb_mod_LDFLAGS): Likewise.
28776 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
28777 New proto.
28778 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
28779 (HEAP_MAX_ADDR): Likewise.
28780 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
28781 type.
28782 Correct stop condition.
28783 (grub_ieee1275_devices_iterate): New function.
28784 * video/ieee1275.c: New file.
28785
28786 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
28787
28788 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
28789
28790 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
28791 as scratch.
28792 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
28793 SCRATCH_PAD_DISKBOOT as scratch.
28794 (bootit): Pass Openfirmware pointer in %o4.
28795 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
28796 of 0x200000.
28797 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
28798 with util/grub-mkrawimage.c.
28799 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
28800 * include/grub/aout.h (AOUT_MID_SUN): New definition.
28801 (grub_aout_get_type) [GRUB_UTIL]: Removed.
28802 (grub_aout_load) [GRUB_UTIL]: Likewise.
28803 * include/grub/kernel.h (grub_modules_get_end): New proto.
28804 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
28805 (SCRATCH_PAD_BOOT): New definition.
28806 (SCRATCH_PAD_DISKBOOT): Likewise.
28807 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
28808 * include/grub/sparc64/ieee1275/ieee1275.h
28809 (grub_ieee1275_original_stack): New variable
28810 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
28811 New definition
28812 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
28813 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
28814 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
28815 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
28816 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
28817 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
28818 (grub_platform_image_format_t): New type.
28819 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
28820 * kern/main.c (grub_modules_get_end)
28821 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
28822 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
28823 (codestart): Switch stacks.
28824 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
28825 variable.
28826 (grub_heap_init): Use grub_modules_get_end.
28827 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
28828 stack.
28829 * util/grub-mkrawimage.c (generate_image): Support sparc64.
28830 (main): Likewise.
28831 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
28832
28833 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
28834
28835 * util/grub-mkrescue.in: Base ISO UUID on UTC.
28836
28837 2010-03-08 Matt Kraai <kraai@ftbfs.org>
28838
28839 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
28840 bug #559005).
28841
28842 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
28843
28844 * genmoddep.awk: Output all missing symbols and not only first.
28845
28846 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
28847
28848 * NEWS: Put the date of 1.98 release.
28849
28850 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
28851
28852 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
28853 ft2build.h.
28854
28855 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
28856
28857 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
28858 completition in the middle of string.
28859
28860 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
28861
28862 * util/grub-mkrescue.in: Use mktemp with explicit template.
28863
28864 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
28865
28866 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
28867
28868 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
28869
28870 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
28871 right pointer.
28872
28873 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
28874
28875 Fix FreeBSD compilation.
28876
28877 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
28878 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
28879
28880 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
28881
28882 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
28883
28884 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
28885
28886 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
28887
28888 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
28889
28890 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
28891
28892 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
28893
28894 Support relative image path in theme file.
28895
28896 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
28897 (image_set_property): Handle theme_dir and relative path.
28898
28899 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
28900
28901 * configure.ac: Alias amd64 to x86_64.
28902
28903 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
28904
28905 * NEWS: mention multiboot on EFI.
28906
28907 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
28908
28909 * kern/main.c (grub_load_modules): Handle errors from init functions of
28910 embeded modules.
28911
28912 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
28913
28914 * normal/autofs.c (autoload_fs_module): Handle errors.
28915
28916 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
28917
28918 Disable linux.mod on qemu-mips since it's not functional and leads
28919 to compilation failure.
28920
28921 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
28922 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
28923 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
28924 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
28925 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
28926 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
28927 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
28928 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
28929 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
28930 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
28931 Reported by: BVK Chaitanya
28932
28933 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
28934
28935 * INSTALL: Add gettext as a dependency and add qemu to a new section
28936 "Prerequisites for make-check".
28937
28938 2010-03-04 Christian Franke <franke@computer.org>
28939
28940 * util/grub-pe2elf.c: Add missing include "progname.h".
28941
28942 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
28943
28944 * normal/crypto.c (read_crypto_list): Fix a typo.
28945 Reported by: Seth Goldberg.
28946
28947 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
28948
28949 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
28950 Reported by: Seth Goldberg.
28951
28952 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
28953
28954 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
28955 ascii.bitmaps.
28956
28957 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
28958
28959 * genmk.rb: Remove terminal*.lst in make clean.
28960 Reported by: Seth Goldberg.
28961
28962 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
28963
28964 * util/i386/efi/grub-install.in: Copy gettext files.
28965
28966 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
28967
28968 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
28969
28970 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
28971
28972 Wait for user entry basing on presence of output rather than on errors.
28973
28974 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
28975 (grub_install_newline_hook): Likewise.
28976 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
28977 * normal/menu.c (show_menu): Check line_counter to determine presence
28978 of output.
28979 * normal/term.c (grub_normal_line_counter): New variable.
28980 (grub_normal_get_line_counter): New function.
28981 (grub_install_newline_hook): Likewise.
28982
28983 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
28984
28985 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
28986
28987 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
28988
28989 * configure.ac: Update version to 1.98.
28990
28991 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
28992
28993 * util/grub.d/10_linux.in (linux_entry): Don't default to
28994 gfxpayload=keep if Linux doesn't support video handover.
28995
28996 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
28997
28998 Don't compile video modules on yeeloong since video subsystem is part
28999 of kernel.
29000
29001 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
29002 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
29003 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
29004 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
29005 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
29006 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
29007 * include/grub/bitmap_scale.h: Likewise.
29008 * include/grub/bufio.h: Likewise.
29009 * include/grub/font.h: Likewise.
29010 * include/grub/gfxterm.h: Likewise.
29011 * include/grub/video.h: Likewise.
29012 * include/grub/vbe.h: Don't include video_fb.h.
29013 * video/i386/pc/vbe.c: Include video_fb.h.
29014 * commands/i386/pc/vbetest.c: Include video.h.
29015
29016 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
29017
29018 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
29019 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
29020 default entry if GRUB_SAVEDEFAULT=true. This allows using
29021 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
29022 saving a new default on every boot.
29023
29024 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
29025
29026 * normal/crypto.c (read_crypto_list): Fix a memory leak.
29027 * normal/term.c (read_terminal_list): Likewise.
29028 * normal/main.c (grub_normal_init_page): Likewise.
29029 (grub_normal_read_line_real): Likewise.
29030
29031 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
29032
29033 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
29034 memory leak.
29035 Reported by: Seth Goldberg.
29036
29037 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
29038
29039 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
29040 duplicate declaration of `start'.
29041
29042 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
29043
29044 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
29045 filename.
29046 Reported by: Georgy Buranov
29047
29048 2010-02-20 Carles Pina i Estany <carles@pina.cat>
29049
29050 * util/grub-mkrawimage.c (usage): Change string formatting to
29051 improve gettext.
29052
29053 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
29054
29055 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
29056 backspace keys.
29057
29058 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
29059
29060 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
29061 Reported by: Michael Suchanek.
29062
29063 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
29064
29065 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
29066 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
29067
29068 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
29069
29070 Remove any reference to non-free fonts.
29071
29072 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
29073 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
29074 uses non-free components.
29075 * font/font.c (grub_font_get_name): Remove example name.
29076 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
29077 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
29078 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
29079 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
29080
29081 2010-02-16 Georgy Buranov <gburanov@gmail.com>
29082
29083 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
29084
29085 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
29086
29087 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
29088 Double divisor.
29089 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
29090 features.
29091 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
29092
29093 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
29094
29095 * gensymlist.sh.in: Use TARGET_CC instead of CC.
29096
29097 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
29098
29099 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
29100 * docs/grub.texi (Command-line and menu entry commands): Document play
29101 command.
29102
29103 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
29104
29105 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
29106 parse arguments as inline tempo and notes. Move code for playing notes
29107 to...
29108 (play): ... new function.
29109
29110 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
29111
29112 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
29113 grub_uint16_t instead of short.
29114 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
29115 disk from little endian to cpu endianness.
29116
29117 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
29118
29119 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
29120 GRUB_TICKS_PER_SECOND instead of 120.
29121
29122 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
29123
29124 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
29125 escape sequence after \e.
29126
29127 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
29128
29129 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
29130 non-ASCII characters.
29131
29132 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
29133
29134 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
29135 set root in single quotes to prevent \, from being unescaped.
29136
29137 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
29138
29139 Prevent unknown commands from stopping menuentry execution.
29140
29141 * script/execute.c (grub_script_execute_cmdline): Print error after
29142 unknown command.
29143
29144 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
29145
29146 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
29147 Reported by: Pavel Pisa.
29148
29149 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29150
29151 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
29152
29153 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29154
29155 Merge grub_ieee1275_map_physical into grub_map and rename to
29156 grub_ieee1275_map
29157
29158 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
29159 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
29160 Remove.
29161 * kern/ieee1275/openfw.c (grub_map): Rename to ...
29162 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
29163 necessary.
29164 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
29165
29166 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29167
29168 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
29169 opening and not after.
29170
29171 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29172
29173 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
29174 constants.
29175
29176 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29177
29178 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
29179 (alloc_phys): Use ALIGN_UP instead of align_addr.
29180
29181 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29182
29183 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
29184
29185 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29186
29187 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
29188
29189 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29190
29191 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
29192 verbose dprintf.
29193
29194 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29195
29196 Fix over-4GiB seek on sparc64.
29197
29198 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
29199 Replace pos_i and pos_lo with pos. All users updated.
29200 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
29201 New constant.
29202 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
29203 Likewise.
29204 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
29205 and pos_lo.
29206
29207 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29208
29209 * util/grub-mkrawimage.c (main): Call set_program_name.
29210
29211 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29212
29213 Properly align 64-bit targets.
29214
29215 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
29216 (generate_image): Use ALIGN_ADDR.
29217
29218 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29219
29220 Properly create cross-endian images.
29221
29222 * include/grub/types.h (grub_host_to_target_addr): New macro
29223 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
29224
29225 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29226
29227 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
29228
29229 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
29230
29231 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
29232
29233 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
29234 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
29235 (grub_linux_boot): Divide by 64K when on VESA.
29236
29237 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
29238
29239 Support GRUB_GFXPAYLOAD_LINUX.
29240
29241 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
29242 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
29243
29244 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
29245
29246 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
29247 to show messages instead of discarding them.
29248 Process errors after executing command and not before. Keep old method
29249 too as precaution.
29250
29251 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
29252
29253 * configure.ac: Check for ft2build.h.
29254
29255 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29256
29257 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
29258
29259 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29260
29261 * genkernsyms.sh.in: Use TARGET_CC.
29262
29263 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
29264
29265 * NEWS: Update.
29266
29267 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29268
29269 * include/grub/multiboot2.h: Remove leftover file.
29270 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
29271 * include/grub/partition.h [GRUB_UTIL]: Likewise.
29272
29273 2010-02-07 Yves Blusseau <blusseau@zetam.org>
29274
29275 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
29276
29277 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29278
29279 Fix warnings in grub-emu when compiling with maximum warning options.
29280
29281 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
29282 (grub_arch_modules_addr): Return 0 and not NULL.
29283 * util/misc.c (ENABLE_RELOCATABLE): New definition.
29284 (xstrdup): Use newstr instead of dup.
29285 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
29286 of disk to dsk to avoid shadowing.
29287 (find_free_slot): Fix prototype.
29288 * util/getroot.c (grub_util_is_dmraid): Make static.
29289 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
29290 Add missing prototype.
29291 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
29292
29293 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29294
29295 * loader/i386/linux.c (grub_linux_setup_video): Handle error
29296 appropriately.
29297
29298 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29299
29300 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
29301 code out.
29302
29303 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29304
29305 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
29306 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
29307 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
29308 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
29309 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
29310 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
29311
29312 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29313
29314 * include/grub/err.h (grub_err_printf): Don't export.
29315
29316 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29317
29318 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
29319
29320 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29321
29322 * include/grub/i18n.h (grub_gettext_dummy): Removed.
29323 * kern/misc.c (grub_gettext_dummy): Make static.
29324
29325 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29326
29327 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
29328 by non-valid ones.
29329 * kern/term.c (grub_putchar): Likewise.
29330
29331 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29332
29333 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
29334 buggy hook call and memory leak.
29335
29336 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29337
29338 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
29339
29340 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29341
29342 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
29343
29344 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29345
29346 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
29347 modevar.
29348 Return grub_errno on allocation error.
29349
29350 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29351
29352 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
29353
29354 2010-02-06 Yves Blusseau <blusseau@zetam.org>
29355
29356 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
29357 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
29358
29359 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29360
29361 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
29362 non-pxe disk.
29363 (grub_pxefs_open): Likewise.
29364
29365 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
29366
29367 * util/grub.d/10_hurd.in: Add --class information to menuentries.
29368 * util/grub.d/10_kfreebsd.in: Likewise.
29369 * util/grub.d/10_linux.in: Likewise.
29370
29371 2010-02-06 Colin D Bennett <colin@gibibit.com>
29372
29373 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
29374 (gfxmenu_mod_SOURCES): New variable.
29375 (gfxmenu_mod_CFLAGS): Likewise.
29376 (gfxmenu_mod_LDFLAGS): Likewise.
29377 * include/grub/term.h (grub_term_set_current_output): Declare
29378 argument as const.
29379 * docs/gfxmenu-theme-example.txt: New file.
29380 * gfxmenu/gfxmenu.c: Likewise.
29381 * gfxmenu/gui_box.c: Likewise.
29382 * gfxmenu/gui_canvas.c: Likewise.
29383 * gfxmenu/gui_circular_progress.c: Likewise.
29384 * gfxmenu/gui_image.c: Likewise.
29385 * gfxmenu/gui_label.c: Likewise.
29386 * gfxmenu/gui_list.c: Likewise.
29387 * gfxmenu/gui_progress_bar.c: Likewise.
29388 * gfxmenu/gui_string_util.c: Likewise.
29389 * gfxmenu/gui_util.c: Likewise.
29390 * gfxmenu/icon_manager.c: Likewise.
29391 * gfxmenu/model.c: Likewise.
29392 * gfxmenu/named_colors.c: Likewise.
29393 * gfxmenu/theme_loader.c: Likewise.
29394 * gfxmenu/view.c: Likewise.
29395 * gfxmenu/widget-box.c: Likewise.
29396 * include/grub/gfxmenu_model.h: Likewise.
29397 * include/grub/gfxmenu_view.h: Likewise.
29398 * include/grub/gfxwidgets.h: Likewise.
29399 * include/grub/gui.h: Likewise.
29400 * include/grub/gui_string_util.h: Likewise.
29401 * include/grub/icon_manager.h: Likewise.
29402
29403 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29404
29405 Agglomerate scrolling in gfxterm.
29406
29407 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
29408 (grub_virtual_screen_setup): Initialise 'total_screen'.
29409 (write_char): Split to ...
29410 (paint_char): ... this ...
29411 (write_char): ... and this.
29412 (paint_char): Handle delayed scrolling.
29413 (draw_cursor): Likewise.
29414 (scroll_up): Split to ...
29415 (real_scroll): ... this ...
29416 (scroll_up): ... and this.
29417 (real_scroll): Handle multi-line scroll and draw below-the-bottom
29418 characters.
29419 (grub_gfxterm_refresh): Call real_scroll.
29420
29421 2010-02-06 Colin D Bennett <colin@gibibit.com>
29422
29423 * include/grub/misc.h (grub_iscntrl): New inline function.
29424 (grub_isalnum): Likewise.
29425 (grub_strtol): Likewise.
29426
29427 2010-02-06 Colin D Bennett <colin@gibibit.com>
29428
29429 * normal/menu_text.c (get_entry_number): Move from here ...
29430 * normal/menu.c (get_entry_number): ... moved here.
29431 * include/grub/menu.h (grub_menu_get_default_entry_index):
29432 New prototype.
29433 * normal/menu.c (grub_menu_get_default_entry_index): New function.
29434 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
29435 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
29436 (grub_menu_viewer_should_return): Likewise.
29437 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
29438 * normal/menu_text.c (run_menu): Enable menu switching.
29439 * normal/menu_viewer.c (should_return): New variable.
29440 (menu_viewer_changed): Likewise.
29441 (grub_menu_viewer_show_menu): Handle menu viewer changes.
29442 (grub_menu_viewer_should_return): New function.
29443 (menuviewer_write_hook): Likewise.
29444 (grub_menu_viewer_init): Likewise.
29445
29446 2010-02-06 Colin D Bennet <colin@gibibit.com>
29447 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29448
29449 Support for gfxterm in a window.
29450
29451 * include/grub/gfxterm.h: New file.
29452 * include/grub/video.h (struct grub_video_rect): New declaration.
29453 (grub_video_rect_t): Likewise.
29454 * term/gfxterm.c (struct grub_gfxterm_window): New type.
29455 (refcount): New variable.
29456 (render_target): Likewise.
29457 (window): Likewise.
29458 (repaint_callback): Likewise.
29459 (grub_virtual_screen_setup): Use 'render_target'.
29460 (init_window): New function.
29461 (grub_gfxterm_init_window): Likewise.
29462 (grub_gfxterm_init): Check reference counter.
29463 Use init_window.
29464 (destroy_window): New function.
29465 (grub_gfxterm_destroy_window): Likewise.
29466 (grub_gfxterm_fini): Check reference counter.
29467 Use destroy_window.
29468 (redraw_screen_rect): Restore viewport.
29469 Use 'render_target' and 'window'.
29470 Call 'repaint_callback'.
29471 (write_char): Use 'render_target'.
29472 (draw_cursor): Likewise.
29473 (scroll_up): Restore viewport.
29474 Use 'render_target' and 'window'.
29475 Call 'repaint_callback'.
29476 (grub_gfxterm_cls): Likewise.
29477 (grub_gfxterm_refresh): Use 'window'.
29478 (grub_gfxterm_set_repaint_callback): New function.
29479 (grub_gfxterm_background_image_cmd): Use 'window'.
29480 (grub_gfxterm_get_term): New function.
29481 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
29482
29483 2010-02-06 Colin D Bennett <colin@gibibit.com>
29484
29485 Bitmap scaling support.
29486
29487 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
29488 (bitmap_scale_mod_SOURCES): New variable.
29489 (bitmap_scale_mod_CFLAGS): Likewise.
29490 (bitmap_scale_mod_LDFLAGS): Likewise.
29491 * include/grub/bitmap_scale.h: New file.
29492 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
29493 (background_image_cmd_options): New variable.
29494 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
29495 (cmd): Rename and change type to ...
29496 (background_image_cmd_handle): ... this. All users updated.
29497 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
29498 * video/bitmap_scale.c: New file.
29499
29500 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29501
29502 SDL support.
29503
29504 * Makefile.in (LIBSDL): New variable.
29505 (enable_grub_emu_sdl): Likewise.
29506 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
29507 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
29508 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
29509 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
29510 * util/sdl.c: New file.
29511
29512 2010-02-06 Colin D Bennett <colin@gibibit.com>
29513 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29514
29515 Double buffering support.
29516
29517 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
29518 * include/grub/video.h: Update comment.
29519 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
29520 New type.
29521 (grub_video_fb_doublebuf_blit_init): New prototype.
29522 * term/gfxterm.c (scroll_up): Support double buffering.
29523 (grub_gfxterm_refresh): Likewise.
29524 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
29525 (grub_video_fb_doublebuf_blit_init): Likewise.
29526 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
29527 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
29528 'displayed_page', 'render_page' and 'update_screen'.
29529 (grub_video_vbe_fini): Free offscreen buffer.
29530 (doublebuf_pageflipping_commit): New function.
29531 (doublebuf_pageflipping_update_screen): Likewise.
29532 (doublebuf_pageflipping_init): Likewise.
29533 (double_buffering_init): Likewise.
29534 (grub_video_vbe_setup): Enable doublebuffering.
29535 (grub_video_vbe_swap_buffers): Implement.
29536 (grub_video_vbe_set_active_render_target): Handle double buffering.
29537 (grub_video_vbe_get_active_render_target): Likewise.
29538 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
29539 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
29540 (grub_video_vbe_enable_double_buffering): Likewise.
29541 (grub_video_vbe_swap_buffers): Use update_screen.
29542 (grub_video_set_mode): Use double buffering.
29543
29544 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
29545
29546 * maintainance/gentrigtables.py: Remove.
29547 * lib/trig.c: Likewise.
29548
29549 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
29550
29551 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
29552 `trigtables.c'.
29553 (trigtables.c): New rule.
29554 (gentrigtables): Likewise.
29555 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
29556
29557 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
29558
29559 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
29560 integer constants.
29561
29562 2010-02-06 Colin D Bennet <colin@gibibit.com>
29563
29564 Trigonometry support.
29565
29566 * include/grub/trig.h: New file.
29567 * lib/trig.c: Likewise.
29568 * maintainance/gentrigtables.py: Likewise.
29569 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
29570 (trig_mod_SOURCES): New variable.
29571 (trig_mod_CFLAGS): Likewise.
29572 (trig_mod_LDFLAGS): Likewise.
29573
29574 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29575
29576 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
29577 disk devices.
29578
29579 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29580
29581 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
29582 error.
29583
29584 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
29585
29586 * util/hostdisk.c (open_device): Don't use partition device when reading
29587 before the partition.
29588 (grub_util_biosdisk_read): Don't read from partition and before the
29589 partition in single operation.
29590 (grub_util_biosdisk_write): Don't write to partition and before the
29591 partition in single operation.
29592
29593 2010-02-03 Torsten Landschoff <torsten@debian.org>
29594
29595 * kern/disk.c (grub_disk_read): Fix offset computation when reading
29596 last sectors.
29597
29598 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
29599
29600 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
29601 CDROM reads.
29602 (grub_biosdisk_write): Refuse to write to CDROM.
29603
29604 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
29605
29606 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
29607
29608 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
29609
29610 * font/font.c (find_glyph): Check that bmp_idx is available before
29611 using it.
29612 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
29613 with (font == NULL).
29614
29615 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
29616
29617 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
29618
29619 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
29620
29621 * include/grub/script_sh.h (sourcecode): Add const qualifier.
29622 * util/grub-script-check.c (getline): Fix empty lines case.
29623
29624 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
29625
29626 * Makefile.in (check): Exit with fail status when one of the tests
29627 fails.
29628 * tests/example_functional_test.c (example_test): Fix reversed assert.
29629 * tests/example_unit_test.c (example_test): Likewise.
29630
29631 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
29632
29633 * util/grub.d/10_linux.in: This script does not use any of the
29634 contents of gettext.sh, only the external command `gettext', so stop
29635 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
29636 the same prefix as GRUB.)
29637 * util/grub.d/10_kfreebsd.in: Likewise.
29638
29639 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
29640
29641 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
29642 of the line.
29643
29644 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
29645
29646 * kern/disk.c (grub_disk_read): Fix offset computation when reading
29647 last sectors.
29648
29649 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
29650
29651 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
29652 having a 4KiB and not 32KiB buffer size.
29653
29654 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
29655
29656 * util/hostfs.c: Include `<errno.h>'.
29657 (grub_hostfs_read): Handle errors from fseeko() and fread().
29658
29659 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
29660
29661 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
29662 loop when using read hooks on files whose size isn't sector-aligned.
29663
29664 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
29665
29666 Remove unused parameter.
29667
29668 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
29669 (grub_iso9660_open): Remove initialization of `data->length'.
29670
29671 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
29672
29673 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
29674 memleak conditions.
29675
29676 2010-01-27 Carles Pina i Estany <carles@pina.cat>
29677
29678 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
29679 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
29680
29681 2010-01-26 Carles Pina i Estany <carles@pina.cat>
29682
29683 * util/bin2h.c (usage): Fix warning (space after backslash).
29684
29685 2010-01-26 Carles Pina i Estany <carles@pina.cat>
29686
29687 * font/font.c: Include `grub/fontformat.h.
29688 Remove font file format constants.
29689 (grub_font_load): Use the new macros.
29690 * include/grub/fontformat.h: New file.
29691 * util/grub-mkfont.c: Include `grub/fontformat.c'.
29692 (write_font_pf2): Use the new macros.
29693
29694 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
29695
29696 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
29697 does.
29698
29699 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
29700
29701 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
29702
29703 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
29704 (_start): Macroify `0x7F'.
29705
29706 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
29707 (make_install_device): Use "(pxe)" as fallback prefix when booting
29708 via PXE.
29709
29710 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
29711
29712 * configure.ac: Reset LIBS after check for libgcc symbols.
29713
29714 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
29715
29716 * util/hostdisk.c (open_device): Add trailing newline to debug
29717 message.
29718
29719 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
29720
29721 * configure.ac: Check for `limits.h'.
29722 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
29723
29724 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
29725
29726 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
29727 capitalize error strings.
29728
29729 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
29730
29731 * util/grub.d/10_hurd.in: Add a recovery mode.
29732
29733 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
29734
29735 * configure.ac: Check for libgcc symbols with -nostdlib.
29736
29737 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
29738
29739 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
29740
29741 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
29742
29743 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
29744 stack since heap may be unavailable at that point.
29745 (grub_ofconsole_gotoxy): Likewise.
29746
29747 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
29748
29749 * configure.ac: Check for _restgpr_14_x.
29750 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
29751 and _savegpr_* prototypes.
29752
29753 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
29754
29755 Use generic grub_reboot() for i386-efi.
29756
29757 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
29758 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
29759 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
29760
29761 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
29762
29763 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
29764 presence of "prefix" variable as it breaks when normal.mod is
29765 embedded.
29766
29767 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
29768
29769 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
29770 stack since heap is unavailable at that point.
29771
29772 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
29773
29774 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
29775 (grub_freebsd_bootinfo): Rewritten.
29776 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
29777
29778 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
29779
29780 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
29781
29782 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
29783
29784 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
29785 domain now.
29786
29787 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
29788
29789 * util/misc.c (make_system_path_relative_to_its_root): Change the work
29790 around for handling "/" to the correct fix. Fix a memory leak. Use
29791 xstrdup instead of strdup.
29792
29793 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
29794
29795 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
29796
29797 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
29798
29799 Optimise glyph lookup by Basic Multilingual Plane lookup array.
29800
29801 * font/font.c (struct grub_font): New member 'bmp_idx'.
29802 (font_init): Initialise 'bmp_idx'.
29803 (load_font_index): Fill 'bmp_idx'.
29804 (find_glyph): Make inline. Use bmp_idx for BMP characters.
29805
29806 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
29807
29808 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
29809 unnecessary calls.
29810
29811 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
29812
29813 Move context handling out of the kernel.
29814
29815 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
29816 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
29817 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
29818 * conf/i386-efi.rmk: Likewise.
29819 * conf/i386-ieee1275.rmk: Likewise.
29820 * conf/i386-pc.rmk: Likewise.
29821 * conf/powerpc-ieee1275.rmk: Likewise.
29822 * conf/sparc64-ieee1275.rmk: Likewise.
29823 * conf/x86_64-efi.rmk: Likewise.
29824 * include/grub/env.h: Include grub/menu.h.
29825 (grub_env_var_type): Removed.
29826 (grub_env_var): Replaced field 'type' with 'global'.
29827 (grub_env_find): New prototype.
29828 (grub_env_context_open): Remove EXPORT_FUNC.
29829 (grub_env_context_close): Likewise.
29830 (grub_env_export): Likewise.
29831 (grub_env_set_data_slot): Removed.
29832 (grub_env_get_data_slot): Likewise.
29833 (grub_env_unset_data_slot): Likewise.
29834 (grub_env_unset_menu): New prototype.
29835 (grub_env_set_menu): Likewise.
29836 (grub_env_get_menu): Likewise.
29837 * include/grub/env_private.h: New file.
29838 * include/grub/normal.h (grub_context_init): New prototype.
29839 (grub_context_fini): Likewise.
29840 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
29841 * normal/context.c (grub_cmd_export): ... to here.
29842 * kern/env.c: Include env_private.h.
29843 (HASHSZ): Moved to include/grub/env_private.h.
29844 (grub_env_context): Likewise.
29845 (grub_env_sorted_var): Likewise.
29846 (current_context): Renamed from this ...
29847 (grub_current_context): ...to this. 'static' removed. All users updated.
29848 (grub_env_find): Removed 'static'.
29849 (grub_env_context_open): Moved to normal/context.c.
29850 (grub_env_context_close): Likewise.
29851 (grub_env_export): Likewise.
29852 (mangle_data_slot_name): Removed.
29853 (grub_env_set_data_slot): Likewise.
29854 (grub_env_get_data_slot): Likewise.
29855 (grub_env_unset_data_slot): Likewise.
29856 * kern/main.c (grub_set_root_dev): Don't export root.
29857 It will be done later.
29858 (grub_main): Don't export prefix.
29859 It will be done later.
29860 * normal/context.c: New file.
29861 * normal/main.c (free_menu): Use grub_env_unset_menu.
29862 (grub_normal_add_menu_entry): Use grub_env_get_menu.
29863 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
29864 (GRUB_MOD_INIT(normal)): Call grub_context_init.
29865 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
29866
29867 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
29868
29869 setpci support.
29870
29871 * commands/setpci.c: New file.
29872 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
29873 (setpci_mod_SOURCES): New variable.
29874 (setpci_mod_CFLAGS): Likewise.
29875 (setpci_mod_LDFLAGS): Likewise.
29876
29877 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
29878
29879 Byte-addressable PCI configuration space.
29880
29881 * bus/pci.c (grub_pci_make_address): Use byte address instead of
29882 dword address.
29883 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
29884 GRUB_PCI_REG_CACHELINE.
29885 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
29886 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
29887 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
29888 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
29889 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
29890 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
29891 grub_pci_make_address.
29892 (lock_rom_area): Likewise.
29893 * commands/lspci.c (grub_lspci_iter): Use macroses
29894 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
29895 of grub_pci_make_address.
29896 * disk/ata.c (grub_ata_pciinit): Likewise.
29897 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
29898 (GRUB_PCI_REG_VENDOR): Likewise.
29899 (GRUB_PCI_REG_DEVICE): Likewise.
29900 (GRUB_PCI_REG_COMMAND): Likewise.
29901 (GRUB_PCI_REG_STATUS): Likewise.
29902 (GRUB_PCI_REG_REVISION): Likewise.
29903 (GRUB_PCI_REG_CLASS): Likewise.
29904 (GRUB_PCI_REG_CACHELINE): Likewise.
29905 (GRUB_PCI_REG_LAT_TIMER): Likewise.
29906 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
29907 (GRUB_PCI_REG_BIST): Likewise.
29908 (GRUB_PCI_REG_ADDRESSES): Likewise.
29909 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
29910 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
29911 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
29912 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
29913 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
29914 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
29915 (GRUB_PCI_REG_CIS_POINTER): Likewise.
29916 (GRUB_PCI_REG_SUBVENDOR): Likewise.
29917 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
29918 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
29919 (GRUB_PCI_REG_CAP_POINTER): Likewise.
29920 (GRUB_PCI_REG_IRQ_LINE): Likewise.
29921 (GRUB_PCI_REG_IRQ_PIN): Likewise.
29922 (GRUB_PCI_REG_MIN_GNT): Likewise.
29923 (GRUB_PCI_REG_MAX_LAT): Likewise.
29924 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
29925 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
29926 * video/efi_uga.c (find_framebuf): Likewise.
29927 * video/sm712.c (grub_video_sm712_setup): Likewise.
29928 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
29929 space.
29930
29931 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
29932
29933 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
29934 can be reliably determined to be supported.
29935
29936 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
29937
29938 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
29939 that VESA is supported.
29940 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
29941 supported.
29942
29943 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
29944
29945 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
29946
29947 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
29948
29949 * util/misc.c (make_system_path_relative_to_its_root): Work around
29950 special-casing of "/", as previous incarnation of this routine did.
29951
29952 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
29953
29954 Fix any-emu compilation.
29955
29956 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
29957 * grub_bin2h_SOURCES: New variable.
29958
29959 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
29960
29961 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
29962
29963 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
29964
29965 * util/grub.d/00_header.in: Fix handling of locale_dir.
29966
29967 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
29968
29969 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
29970 as possible unifont location (Gentoo).
29971 Reported by: Alexander Brüning
29972
29973 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
29974
29975 Don't try to generate lists for kernel.img.
29976
29977 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
29978 (pkglib_MODULES): Remove kernel.img.
29979 (kernel_img_EXPORTS): Removed.
29980 (kernel_img_RELOCATABLE): New variable.
29981 * conf/x86_64-efi.rmk: Likewise.
29982 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
29983
29984 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
29985
29986 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
29987 grub_xasprintf or grub_snprintf.
29988 (grub_vsprintf): Likewise.
29989 (grub_snprintf): New proto.
29990 (grub_vsnprintf): Likewise.
29991 (grub_xasprintf): Likewise.
29992 (grub_xvasprintf): Likewise.
29993 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
29994 (grub_sprintf): Removed.
29995 (grub_vsnprintf): New function.
29996 (grub_snprintf): Likewise.
29997 (grub_xvasprintf): Likewise.
29998 (grub_xasprintf): Likewise.
29999 (grub_vsprintf): Renamed to ...
30000 (grub_vsnprintf_real): ...this. New argument max_len.
30001
30002 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
30003
30004 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
30005 fix grub-script-check warning.
30006
30007 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30008
30009 * include/grub/font.h (grub_font_load): Fix prototype.
30010
30011 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30012
30013 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
30014
30015 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30016
30017 * include/grub/x86_64/at_keyboard.h: New file.
30018
30019 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30020
30021 * loader/mips/linux.c: Include missing grub/i18n.h.
30022
30023 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
30024
30025 * normal/menu.c (notify_execution_failure): Clarify error message.
30026
30027 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
30028
30029 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
30030 return value (and revert all return statements). Update users.
30031
30032 2010-01-20 Dan Merillat <debian@dan.merillat.org>
30033
30034 * kern/device.c (grub_device_iterate): Allocate new part_ent
30035 structure based on sizeof (*p) rather than sizeof (p->next), to
30036 account for structure padding.
30037
30038 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
30039 disk is NULL, which might happen for LVM physical volumes with no
30040 LVM signature.
30041
30042 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
30043
30044 * loader/mips/linux.c (grub_cmd_initrd)
30045 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
30046
30047 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
30048
30049 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
30050 (grub_video_video_init, grub_video_bitmap_init)
30051 (grub_font_manager_init, grub_term_gfxterm_init)
30052 (grub_at_keyboard_init): New extern declarations.
30053 (grub_machine_init): Initialize gfxterm and at_keyboard.
30054
30055 * kern/main.c (grub_main): Revert grub_printf delay kludge.
30056
30057 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
30058 `gfxterm.mod' into core image.
30059
30060 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
30061 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
30062 (kernel_img_FORMAT): Copy to ...
30063
30064 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
30065 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
30066 (kernel_img_FORMAT): ... here, and ...
30067
30068 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
30069 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
30070 (kernel_img_FORMAT): ... here.
30071
30072 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
30073 and input (at_keyboard) terminals in kernel.
30074 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
30075
30076 (pkglib_MODULES): Remove `pci.mod'.
30077 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
30078 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
30079 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
30080 (at_keyboard_mod_LDFLAGS): Remove variables.
30081
30082 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
30083
30084 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
30085
30086 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
30087
30088 * include/grub/mips/libgcc.h: Only export symbols for functions
30089 that libgcc provides.
30090
30091 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
30092
30093 MIPS support.
30094
30095 * bus/bonito.c: New file.
30096 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
30097 GRUB_PCI_NUM_DEVICES.
30098 * term/i386/pc/serial.c: Move to ...
30099 * term/serial.c: ... here. All users updated.
30100 * util/i386/pc/grub-mkimage.c: Move to ...
30101 * util/grub-mkrawimage.c: ... here. All users updated.
30102 * term/i386/pc/at_keyboard.c: Move to ...
30103 * term/at_keyboard.c: ... here. All users updated.
30104 * conf/mips-qemu-mips.rmk: New file.
30105 * conf/mips-yeeloong.rmk: Likewise.
30106 * conf/mips.rmk: Likewise.
30107 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
30108 mipsel-qemu-mips.
30109 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
30110 to port addresses.
30111 (grub_ata_pciinit): Support CS5536.
30112 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
30113 * font/font_cmd.c (loadfont_command): Open file before passing it to
30114 grub_font_load.
30115 (pseudo_file_read): New function.
30116 (pseudo_file_close): Likewise.
30117 (pseudo_fs): New structure.
30118 (load_font_module): New function.
30119 (GRUB_MOD_INIT(font_manager)): Load embedded font.
30120 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
30121 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
30122 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
30123 * include/grub/i386/at_keyboard.h: Split into ...
30124 * include/grub/at_keyboard.h: ... this ...
30125 * include/grub/i386/at_keyboard.h: ... and this.
30126 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
30127 New prototype.
30128 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
30129 updated.
30130 (grub_elf64_size): Likewise.
30131 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
30132 filename.
30133 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
30134 * include/grub/i386/coreboot/serial.h: Rewritten.
30135 * include/grub/i386/ieee1275/serial.h: Include
30136 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
30137 * include/grub/i386/pc/serial.h: Moved from here ...
30138 * include/grub/serial.h: ... to here. All users updated.
30139 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
30140 (GRUB_PCI_NUM_BUS): Likewise.
30141 (GRUB_PCI_NUM_DEVICES): Likewise.
30142 (grub_pci_device_map_range): Add missing volatile keyword.
30143 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
30144 * include/grub/mips/at_keyboard.h: New file.
30145 * include/grub/mips/cache.h: Likewise.
30146 * include/grub/mips/io.h: Likewise.
30147 * include/grub/mips/kernel.h: Likewise.
30148 * include/grub/mips/libgcc.h: Likewise.
30149 * include/grub/mips/pci.h: Likewise.
30150 * include/grub/mips/qemu-mips/boot.h: Likewise.
30151 * include/grub/mips/qemu-mips/kernel.h: Likewise.
30152 * include/grub/mips/qemu-mips/loader.h: Likewise.
30153 * include/grub/mips/qemu-mips/memory.h: Likewise.
30154 * include/grub/mips/qemu-mips/serial.h: Likewise.
30155 * include/grub/mips/qemu-mips/time.h: Likewise.
30156 * include/grub/mips/relocator.h: Likewise.
30157 * include/grub/mips/time.h: Likewise.
30158 * include/grub/mips/types.h: Likewise.
30159 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
30160 * include/grub/mips/yeeloong/boot.h: Likewise.
30161 * include/grub/mips/yeeloong/kernel.h: Likewise.
30162 * include/grub/mips/yeeloong/loader.h: Likewise.
30163 * include/grub/mips/yeeloong/memory.h: Likewise.
30164 * include/grub/mips/yeeloong/pci.h: Likewise.
30165 * include/grub/mips/yeeloong/serial.h: Likewise.
30166 * include/grub/mips/yeeloong/time.h: Likewise.
30167 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
30168 * kern/elf.c (grub_elf32_size): New parameter. All users
30169 updated.
30170 (grub_elf64_size): Likewise.
30171 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
30172 Load modules before saying "Welcome to GRUB!".
30173 Call grub_refresh after saying "Welcome to GRUB!".
30174 * kern/mips/cache.S: New file.
30175 * kern/mips/cache_flush.S: Likewise.
30176 * kern/mips/dl.c: Likewise.
30177 * kern/mips/init.c: Likewise.
30178 * kern/mips/qemu-mips/init.c: Likewise.
30179 * kern/mips/startup.S: Likewise.
30180 * kern/mips/yeeloong/init.c: Likewise.
30181 * kern/term.c (grub_putcode): Handle NULL terminal.
30182 (grub_getcharwidth): Likewise.
30183 (grub_getkey): Likewise.
30184 (grub_checkkey): Likewise.
30185 (grub_getkeystatus): Likewise.
30186 (grub_getxy): Likewise.
30187 (grub_getwh): Likewise.
30188 (grub_gotoxy): Likewise.
30189 (grub_cls): Likewise.
30190 (grub_setcolorstate): Likewise.
30191 (grub_setcolor): Likewise.
30192 (grub_getcolor): Likewise.
30193 (grub_refresh): Likewise.
30194 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
30195 (write_jump): Add hatch nop.
30196 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
30197 * lib/mips/setjmp.S: New file.
30198 * loader/mips/linux.c: Likewise.
30199 * term/i386/pc/at_keyboard.c: Move from here ...
30200 * term/at_keyboard.c: ... to here.
30201 * term/i386/pc/serial.c: Moved from here ...
30202 * term/serial.c: ... to here. All users updated.
30203 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
30204 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
30205 (serial_translate_key_sequence): Avoid deadlock.
30206 (grub_serial_getkey): Handle backspace.
30207 (grub_serial_putchar): Fix newline handling.
30208 * util/i386/pc/grub-mkimage.c: Move from here ...
30209 * util/grub-mkrawimage.c: ... to here. All users updated.
30210 (generate_image): New parameters 'font_path' and 'format'.
30211 Support embedding font.
30212 Use grub_host_to_target* instead of grub_cpu_to_le*.
30213 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
30214 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
30215 (options): New option "--font".
30216 (usage): Likewise.
30217 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
30218 (main): Handle "--font".
30219 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
30220 (grub_virtual_screen_setup): Set bg_color_display.
30221 (redraw_screen_rect): Use bg_color_display instead of incorrect
30222 bg_color.
30223 (grub_gfxterm_cls): Likewise.
30224 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
30225 Support embedding config file.
30226 (add_segments): Likewise.
30227 (options): New option "--config".
30228 (main): Handle "--config".
30229 * video/sm712.c: New file.
30230
30231 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
30232
30233 Fix parallel builds.
30234
30235 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
30236 font.c depend on ascii.h).
30237
30238 2010-01-12 Carles Pina i Estany <carles@pina.cat>
30239
30240 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
30241
30242 2010-01-11 Carles Pina i Estany <carles@pina.cat>
30243
30244 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
30245 By default: disabled.
30246 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
30247 parameter.
30248
30249 2010-01-10 Carles Pina i Estany <carles@pina.cat>
30250
30251 * font/font.c: Update copyright years.
30252 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
30253
30254 2010-01-10 Carles Pina i Estany <carles@pina.cat>
30255
30256 * font/font.c: Include `ascii.h'.
30257 (ASCII_BITMAP_SIZE): New macro.
30258 (ascii_font_glyph): Define.
30259 (ascii_glyph_lookup): New function.
30260 (grub_font_get_string_width): Change comment. If glyph not found, use
30261 ascii_glyph_lookup.
30262 (grub_font_get_glyph_with_fallback): If glyph not available returns
30263 ascii_glyph_lookup.
30264 * util/grub-mkfont.c (file_formats): New enum.
30265 (options): Add `ascii-bitmaps' new option.
30266 (usage): Add `asii-bitmaps' new option.
30267 (write_font_ascii_bitmap): New function.
30268 (write_font): Rename to ...
30269 (write_font_p2): ... this. Remove print_glyphs call.
30270 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
30271 used. Call print_glyphs.
30272 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
30273
30274 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
30275
30276 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
30277 (grub_bin2h_SOURCES): New variable.
30278 * util/bin2h.c: New file.
30279
30280 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30281
30282 * include/multiboot.h: Resynced with spec.
30283 * include/multiboot2.h: Likewise.
30284 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
30285 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
30286
30287 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
30288
30289 * include/grub/term.h (grub_term_register_input,
30290 grub_term_register_output): Check return of terminal init()
30291 routines, and abort if errors are raised.
30292
30293 * commands/terminal.c: Update copyright year.
30294
30295 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
30296
30297 * commands/terminal.c (grub_cmd_terminal_input)
30298 (grub_cmd_terminal_output): Check return of terminal init()
30299 routines, and abort if errors are raised.
30300
30301 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
30302
30303 * include/grub/i386/bsd.h: Fix include pathes.
30304
30305 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
30306
30307 Add missing *BSD copyright headers.
30308
30309 * include/grub/aout.h: Add BSD licence.
30310 * include/grub/i386/bsd.h: Parts under different licences moved to ...
30311 * include/grub/i386/freebsd_linker.h: ... here,
30312 * include/grub/i386/freebsd_reboot.h: ... here,
30313 * include/grub/i386/netbsd_bootinfo.h: ... here,
30314 * include/grub/i386/netbsd_reboot.h: ... here,
30315 * include/grub/i386/openbsd_bootarg.h: ... here,
30316 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
30317 licence to each file.
30318
30319 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
30320
30321 * acinclude.m4: Remove `nop' assembly instruction; it's not
30322 implemented by all architectures.
30323
30324 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
30325
30326 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
30327 ELILO. This is no longer necessary.
30328
30329 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
30330
30331 Added new tool, grub-scrit-check to verify grub.cfg syntax.
30332
30333 * util/grub-script-check.c: grub-script-check tool.
30334 * conf/common.rmk: Make rules for grub-script-check.
30335
30336 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
30337
30338 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
30339 spotting it back in 2008. Shame on me for forgetting he did.
30340
30341 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
30342
30343 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
30344
30345 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
30346 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
30347 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
30348 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
30349 (GRUB_VIDEO_TYPE_EFI): Rename to ...
30350 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
30351
30352 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
30353
30354 * include/grub/test.h: Add license header.
30355 * tests/example_functional_test.c: Likewise.
30356 * tests/example_unit_test.c: Likewise.
30357 * tests/lib/functional_test.c: Likewise.
30358 * tests/lib/test.c: Likewise.
30359 * tests/lib/unit_test.c: Likewise.
30360
30361 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
30362
30363 Use flag-based instead of hook-based video mode selection and "auto"
30364 keyword.
30365
30366 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
30367 (grub_video_set_mode): Changed prototype. All users updated.
30368 (grub_video_check_mode_flag): New inline function.
30369 * video/video.c (parse_modespec): New function.
30370 (grub_video_set_mode): Parse flags and keywords.
30371
30372 2010-01-17 Carles Pina i Estany <carles@pina.cat>
30373
30374 * util/misc.c (grub_util_info): Fix the order of the parameters in a
30375 fprintf call.
30376
30377 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
30378
30379 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
30380
30381 2010-01-16 Carles Pina i Estany <carles@pina.cat>
30382
30383 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
30384 string.
30385 * util/grub-emu.c (usage): Likewise.
30386 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
30387 * util/i386/efi/grub-mkimage.c (usage): Likewise.
30388 * util/i386/pc/grub-mkimage.c (usage): Likewise.
30389 * util/i386/pc/grub-setup.c (usage): Likewise.
30390
30391 2010-01-16 Carles Pina i Estany <carles@pina.cat>
30392
30393 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
30394 the message.
30395 (grub_util_info): Likewise.
30396 (grub_util_error): Likewise.
30397 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
30398 and/or new lines in `grub_util_warna', `grub_util_info',
30399 `grub_util_error' calls.
30400 * util/getroot.c: Likewise.
30401 * util/grub-editenv.c: Likewise.
30402 * util/grub-emu.c: Likewise.
30403 * util/grub-fstest.c: Likewise.
30404 * util/grub-mkdevicemap.c: Likewise.
30405 * util/grub-mkfont.c: Likewise.
30406 * util/grub-mkpasswd-pbkdf2.c: Likewise.
30407 * util/grub-mkrelpath.c: Likewise.
30408 * util/grub-pe2elf.c: Likewise.
30409 * util/grub-probe.c: Likewise.
30410 * util/hostdisk.c: Likewise.
30411 * util/i386/efi/grub-mkimage.c: Likewise.
30412 * util/i386/pc/grub-mkimage.c: Likewise.
30413 * util/i386/pc/grub-setup.c: Likewise.
30414 * util/ieee1275/ofpath.c: Likewise.
30415 * util/mkisofs/eltorito.c: Likewise.
30416 * util/mkisofs/rock.c: Likewise.
30417 * util/mkisofs/write.c: Likewise.
30418 * util/raid.c: Likewise.
30419 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
30420 * util/sparc64/ieee1275/grub-setup.c: Likewise.
30421
30422 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
30423
30424 Enable multiboot on non-pc.
30425
30426 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
30427 multiboot.mod and multiboot2.mod to ...
30428 * conf/i386.rmk (pkglib_MODULES): ... here.
30429 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
30430 Moved to ...
30431 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
30432 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
30433 Moved to ...
30434 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
30435 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
30436 Moved to ...
30437 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
30438 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
30439 Moved to ...
30440 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
30441 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
30442 relocator.mod.
30443 (ata_mod_SOURCES): Removed.
30444 (ata_mod_CFLAGS): Likewise.
30445 (ata_mod_LDFLAGS): Likewise.
30446 (relocator_mod_SOURCES): Removed.
30447 (relocator_mod_CFLAGS): Likewise.
30448 (relocator_mod_ASFLAGS): Likewise.
30449 (relocator_mod_LDFLAGS): Likewise.
30450 Include i386.mk.
30451 * include/grub/x86_64/multiboot.h: New file.
30452 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
30453 Terminate EFI.
30454
30455 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
30456
30457 Video multiboot support.
30458
30459 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
30460 New prototype.
30461 * include/multiboot.h: Resynced with multiboot specification.
30462 * include/multiboot2.h: Likewise.
30463 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
30464 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
30465 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
30466 (HAS_VGA_TEXT): Likewise.
30467 (accepts_video): New variable.
30468 (grub_multiboot_set_accepts_video): New function.
30469 (grub_multiboot_get_mbi_size): Account for video structures.
30470 (set_video_mode): New function.
30471 (retrieve_video_parameters): Likewise.
30472 (grub_multiboot_make_mbi): Fill video fields.
30473
30474 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
30475
30476 Video driver ids.
30477
30478 * include/grub/video.h (grub_video_driver_id): New type.
30479 (grub_video_adapter): New member 'id'. All users updated.
30480 (grub_video_get_driver_id): New proto.
30481 * video/video.c (grub_video_get_driver_id): New function.
30482
30483 2010-01-14 Carles Pina i Estany <carles@pina.cat>
30484
30485 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
30486 `var=val'.
30487
30488 2010-01-14 Carles Pina i Estany <carles@pina.cat>
30489
30490 * normal/cmdline.c (print_completion): Gettextizze.
30491
30492 2001-01-14 Carles Pina i Estany <carles@pina.cat>
30493
30494 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
30495
30496 2010-01-14 Carles Pina i Estany <carles@pina.cat>
30497
30498 * gettext/gettext.c (grub_gettext_translate): Push and pop
30499 grub_errno.
30500 (grub_gettext_delete_list): Change comment style.
30501 * kern/err.c (grub_error): Gettextizze.
30502 (grub_fatal): Gettextizze.
30503
30504 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
30505
30506 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
30507 (grub_linux16_real_boot): ... this.
30508 * kern/i386/loader.S: Likewise.
30509 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
30510 (grub_linux16_boot): New function. Switches to text mode and calls
30511 grub_linux16_real_boot().
30512
30513 * loader/i386/bsd.c: Include `<grub/video.h>'.
30514 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
30515 text mode before calling grub_unix_real_boot().
30516
30517 * loader/i386/multiboot.c: Include `<grub/video.h>'.
30518 (grub_multiboot_boot): Switch to text mode before calling
30519 grub_relocator32_boot().
30520
30521 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
30522 (grub_chainloader_boot): Switch to text mode before calling
30523 grub_chainloader_real_boot().
30524
30525 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
30526 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
30527
30528 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
30529 non-empty value.
30530
30531 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
30532 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
30533
30534 * util/grub.d/00_header.in: Define a "savedefault" function for use
30535 in menu entries.
30536 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
30537
30538 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
30539 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
30540
30541 * util/grub-mkconfig_lib.in (save_default_entry): Only set
30542 saved_entry if boot_once is unset.
30543 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
30544 previous saved entry (i.e. grub-reboot).
30545
30546 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
30547
30548 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
30549
30550 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
30551
30552 * util/grub.d/00_header.in: Use `set var=val' rather than plain
30553 `var=val'.
30554 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
30555
30556 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
30557
30558 * util/grub-reboot.in: Fix --version output.
30559 * util/grub-set-default.in: Likewise.
30560
30561 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
30562
30563 * util/grub.d/00_header.in: Silently ignore zero-sized environment
30564 blocks.
30565
30566 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
30567
30568 * util/grub.d/00_header.in: Quote the value assigned to `default',
30569 in case it contains spaces.
30570
30571 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
30572
30573 * util/grub.d/30_os-prober.in: Fix merge error that moved a
30574 `save_default_entry' call from the macosx case to the linux case.
30575
30576 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
30577 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
30578
30579 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
30580 in `chosen' environment variable.
30581 * normal/menu_text.c (get_entry_number): Check if the variable
30582 matches the title of a menu entry.
30583 (run_menu): Pass menu to get_entry_number.
30584
30585 * util/grub-reboot.in: New file.
30586 * util/grub-set-default.in: New file.
30587 * conf/common.rmk (grub-reboot): New utility.
30588 (grub-set-default): New utility.
30589
30590 * util/grub-mkconfig_lib.in (save_default_entry): New function.
30591 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
30592 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
30593 move it to `saved_entry' for the next boot. Load environment on
30594 initialisation.
30595 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
30596 * util/grub.d/10_hurd.in: Likewise.
30597 * util/grub.d/10_linux.in (linux_entry): Likewise.
30598 * util/grub.d/10_windows.in: Likewise.
30599 * util/grub.d/30_os-prober.in: Likewise.
30600
30601 * util/grub-install.in: Create environment block.
30602 * util/i386/efi/grub-install.in: Likewise.
30603 * util/ieee1275/grub-install.in: Likewise.
30604 * util/sparc64/ieee1275/grub-install.in: Likewise.
30605
30606 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
30607
30608 Unit testing framework for GRUB.
30609
30610 * Makefile.in: Test framework build rules for 'make check'.
30611 * conf/tests.rmk: Build rules for individual tests and framework.
30612
30613 * include/grub/test.h: Header file for whitebox tests.
30614 * tests/lib/functional_test.c: Framework support for whitebox
30615 functional tests.
30616 * tests/lib/test.c: Common whitebox testing code for unit and
30617 functional tests.
30618 * tests/lib/unit_test.c: Framework support for whitebox unit
30619 tests.
30620
30621 * tests/util/grub-shell-tester.in: Support utility for grub-script
30622 tests.
30623 * tests/util/grub-shell.in: Utility to execute grub-script
30624 commands in a Qemu instance.
30625
30626 * tests/example_functional_test.c: Example whitebox functional
30627 test.
30628 * tests/example_grub_script_test.in: Example grub-script test.
30629 * tests/example_scripted_test.in: Example scripted test.
30630 * tests/example_unit_test.c: Example whitebox unit test.
30631
30632 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
30633
30634 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
30635 Add loader/i386/multiboot_mbi.c.
30636 (multiboot2_mod_SOURCES): Likewise.
30637 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
30638 (multiboot2_mod_SOURCES): Likewise.
30639 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
30640 (grub_multiboot_make_mbi): Likewise.
30641 (grub_multiboot_free_mbi): Likewise.
30642 (grub_multiboot_init_mbi): Likewise.
30643 (grub_multiboot_add_module): Likewise.
30644 (grub_multiboot_set_bootdev): Likewise.
30645 * loader/i386/multiboot.c (mbi): Removed.
30646 (mbi_dest): Likewise.
30647 (alloc_mbi): New variable.
30648 (grub_multiboot_payload_size): Removed. All users updated.
30649 (grub_multiboot_pure_size): New variable.
30650 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
30651 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
30652 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
30653 (grub_fill_multiboot_mmap): Likewise.
30654 (grub_multiboot_get_bootdev): Likewise.
30655 (grub_multiboot): Use multiboot_mbi functions.
30656 * loader/i386/multiboot_mbi.c: New file.
30657
30658 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
30659
30660 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
30661 it would result in module crash.
30662
30663 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
30664
30665 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
30666 (grub_ofconsole_getwh): Split to ...
30667 (grub_ofconsole_getwh): ... this.
30668 (grub_ofconsole_dimensions): ...and this.
30669 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
30670
30671 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
30672
30673 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
30674
30675 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
30676
30677 * loader/i386/pc/multiboot2.c: Removed stalled file.
30678
30679 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
30680
30681 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
30682 Reported by: Grégoire Sutre
30683
30684 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
30685
30686 * util/misc.c (canonicalize_file_name): New function.
30687 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
30688 instead of realpath().
30689
30690 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
30691
30692 * util/grub-install.in (usage): Clarify meaning of --root-directory,
30693 and make it clearer that it's optional. Based on confusion
30694 witnessed on IRC.
30695
30696 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
30697
30698 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
30699 in premature implicit newline.
30700
30701 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
30702
30703 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
30704 which resulted in garbled command line at the end of screen.
30705
30706 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
30707
30708 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
30709 initialization with similar approach as with other Linux loaders.
30710
30711 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
30712
30713 Fix i386-ieee1275 build.
30714
30715 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
30716 and grub_term_height() for video_{width,height} initialization.
30717
30718 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
30719
30720 Fix grub-emu build.
30721
30722 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
30723
30724 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
30725 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
30726
30727 Support for multiple terminals.
30728
30729 * Makefile.in (pkglib_DATA): terminal.lst.
30730 (terminal.lst): New target.
30731 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
30732 (GRUB_MOD_INIT(handler)): Likewise.
30733 (GRUB_MOD_FINI(handler)): Likewise.
30734 * commands/help.c (grub_cmd_help): Handle multiple terminals.
30735 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
30736 * commands/sleep.c (do_print): Use grub_term_restore_pos.
30737 (grub_cmd_sleep): Use grub_term_save_pos.
30738 * commands/terminal.c: New file.
30739 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
30740 commands/terminal.c and lib/charset.c.
30741 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
30742 (pkglib_MODULES): Add terminal.mod.
30743 (terminal_mod_SOURCES): New variable.
30744 (terminal_mod_CFLAGS): Likewise.
30745 (terminal_mod_LDFLAGS): Likewise.
30746 * genhandlerlist.sh: Don't handle terminals.
30747 * genmk.rb: Generate terminal-*.lst.
30748 * genterminallist.sh: New file.
30749 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
30750 (grub_is_valid_utf8): Likewise.
30751 (grub_utf8_to_ucs4_alloc): Likewise.
30752 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
30753 (grub_menu_register_viewer): Changed argument.
30754 (grub_menu_try_text): New proto.
30755 (grub_gfxmenu_try_hook): New declaration.
30756 * include/grub/normal.h (grub_normal_exit_level): New declaration.
30757 (grub_menu_init_page): Additional argument term.
30758 (grub_normal_init_page): Likewise.
30759 (grub_cmdline_get): Arguments simplified.
30760 (grub_utf8_to_ucs4_alloc): Removed.
30761 (grub_print_ucs4): Additional argument term.
30762 (grub_getstringwidth): Likewise.
30763 (grub_print_message_indented): Likewise.
30764 (grub_menu_text_register_instances): New proto.
30765 (grub_show_menu): Likewise.
30766 (read_terminal_list): Likewise.
30767 (grub_set_more): Likewise.
30768 * include/grub/parser.h: Include handler.h.
30769 * include/grub/reader.h: Rewritten.
30770 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
30771 (GRUB_TERM_WIDTH): Changed to function.
30772 (GRUB_TERM_HEIGHT): Likewise.
30773 (GRUB_TERM_BORDER_WIDTH): Likewise.
30774 (GRUB_TERM_BORDER_HEIGHT): Likewise.
30775 (GRUB_TERM_NUM_ENTRIES): Likewise.
30776 (GRUB_TERM_ENTRY_WIDTH): Likewise.
30777 (GRUB_TERM_CURSOR_X): Likewise.
30778 (grub_term_input_class): Likewise.
30779 (grub_term_output_class): Likewise.
30780 (grub_term_outputs_disabled): New declaration.
30781 (grub_term_inputs_disabled): Likewise.
30782 (grub_term_outputs): Likewise.
30783 (grub_term_inputs): Likewise.
30784 (grub_term_register_input): Rewritten.
30785 (grub_term_register_output): Likewise.
30786 (grub_term_unregister_input): Likewise.
30787 (grub_term_unregister_output): Likewise.
30788 (FOR_ACTIVE_TERM_INPUTS): New macro.
30789 (FOR_DISABLED_TERM_INPUTS): Likewise.
30790 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
30791 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
30792 * include/grub/terminfo.h: Add oterm argument to all protypes.
30793 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
30794 Use grub_rescue_run.
30795 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
30796 All users updated.
30797 * kern/reader.c: Removed. All users updated.
30798 * kern/rescue_reader.c (grub_rescue_init): Removed.
30799 (grub_rescue_reader): Likewise.
30800 (grub_register_rescue_reader): Likewise.
30801 (grub_rescue_run): New function based on kern/reader.c.
30802 * kern/term.c: Adapted for multiterm.
30803 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
30804 (grub_is_valid_utf8): Likewise.
30805 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
30806 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
30807 right terminal.
30808 * loader/i386/linux.c (grub_linux_boot): Likewise.
30809 * normal/auth.c (grub_username_get): New function.
30810 (grub_auth_check_authentication): Use grub_username_get.
30811 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
30812 * normal/color.c: Adapt for multiterm.
30813 * normal/main.c (read_config_file): Don't use grub_reader_loop.
30814 (grub_normal_init_page): Additional argument term.
30815 (read_lists): Call read_terminal_lists.
30816 (grub_enter_normal_mode): Call grub_cmdline_run.
30817 Handle grub_normal_exit_level.
30818 (grub_cmd_normal): Make reentrant.
30819 (grub_cmd_normal_exit): New function.
30820 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
30821 * normal/menu.c: Adapt for multiterm.
30822 * normal/menu_entry.c: Likewise.
30823 * normal/menu_text.c: Likewise.
30824 * normal/menu_viewer.c: Removed. All users updated.
30825 * normal/term.c: New file.
30826 * util/console.c: Change order of includes to workaround a bug in
30827 ncurses headers.
30828 * term/terminfo.c: New argument oterm on all exported functions.
30829 All users updated.
30830 * util/grub-editenv.c (grub_term_input_class): Removed.
30831 (grub_term_output_class): Likewise.
30832
30833 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
30834
30835 Make loader output a bit more user-friendly.
30836
30837 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
30838 is being loaded. Likewise for the Hurd.
30839
30840 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
30841 that kernel of FreeBSD ${version} is being loaded.
30842
30843 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
30844 grub_dprintf().
30845 (grub_cmd_initrd): Likewise.
30846 * util/grub.d/10_linux.in (linux_entry): Print message indicating
30847 that Linux ${version} is being loaded. Likewise for initrd.
30848
30849 2010-01-09 Carles Pina i Estany <carles@pina.cat>
30850
30851 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
30852
30853 2010-01-08 Carles Pina i Estany <carles@pina.cat>
30854
30855 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
30856 (GRUB_MOD_INIT): Gettextizze.
30857 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
30858 (GRUB_MOD_INIT): Gettextizze.
30859 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
30860 (grub_cmd_linux): Capitalise Linux.
30861 (GRUB_MOD_INIT): Gettextizze.
30862 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
30863 (grub_cmd_linux): Capitalise Linux.
30864 (GRUB_MOD_INIT): Gettextizze.
30865 * loader/i386/linux.c: Include `<grub/i18n.h>'.
30866 (grub_cmd_linux): Capitalise Linux.
30867 (GRUB_MOD_INIT): Gettextizze.
30868 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
30869 (GRUB_MOD_INIT): Gettextizze.
30870 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
30871 (grub_cmd_linux): Capitalise Linux.
30872 (GRUB_MOD_INIT): Gettextizze.
30873 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
30874 (grub_cpu_xnu_init): Gettextizze.
30875 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
30876 (GRUB_MOD_INIT): Gettextizze.
30877 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
30878 (GRUB_MOD_INIT): Gettextizze.
30879 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
30880 (grub_linux_load64): Capitalise Linux.
30881 (GRUB_MOD_INIT): Gettextizze.
30882 * loader/xnu.c: Include `<grub/i18n.h>'.
30883 (GRUB_MOD_INIT): Gettextizze.
30884 * po/POTFILES: Add `loader/efi/appleloader.c',
30885 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
30886 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
30887 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
30888 `loader/i386/xnu.c', `loader/multiboot_loader.c',
30889 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
30890 and `loader/xnu.c'.
30891
30892 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
30893
30894 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
30895
30896 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
30897
30898 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
30899 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
30900 * util/mkisofs/mkisofs.c (main): Readjust --version output.
30901
30902 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
30903
30904 Reset Multiboot 2 support. New loader implements the draft in
30905 /branches/multiboot2 and shares as much code as possible with the
30906 production Multiboot 1 implementation.
30907
30908 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
30909 * loader/multiboot2.c: Likewise.
30910 * loader/i386/multiboot_helper.S: Likewise.
30911 * include/multiboot2.h: Replace with latest version from the draft
30912 in /branches/multiboot2.
30913
30914 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
30915 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
30916 and `loader/multiboot2.c'.
30917 (pkglib_MODULES): Add `multiboot2.mod'.
30918 (multiboot2_mod_SOURCES): New variable.
30919 (multiboot2_mod_LDFLAGS): Likewise.
30920 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
30921
30922 * conf/i386-pc.rmk: Likewise.
30923
30924 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
30925 (multiboot_mod_SOURCES): Remove variable.
30926 (multiboot_mod_LDFLAGS): Likewise.
30927 (multiboot_mod_CFLAGS): Likewise.
30928
30929 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
30930 `<multiboot2.h>' instead of `<multiboot.h>'.
30931 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
30932 (MULTIBOOT_HEADER_MAGIC): New macros.
30933
30934 * loader/multiboot_loader.c (module_version_status): Remove variable.
30935 (find_multi_boot2_header): Remove function.
30936 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
30937 logic. Always check for the Multiboot version we're compiling for.
30938 (grub_cmd_module_loader): Likewise.
30939 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
30940 command instead of `multiboot'.
30941
30942 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
30943
30944 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
30945 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
30946 all users.
30947
30948 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
30949 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
30950
30951 Fix breakage introduced with previous commit.
30952
30953 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
30954 commands.
30955 * normal/handler.c (read_handler_list): Revert part of previous commit
30956 affecting this file.
30957 * normal/main.c (read_lists): Move read_handler_list() call back to ...
30958 (grub_normal_execute): ... here.
30959
30960 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
30961
30962 Merge prefix-redefinition-fix branch.
30963
30964 * normal/autofs.c (read_fs_list): Make function capable of being
30965 run multiple times, gracefuly replacing the previous data
30966 structures.
30967 * normal/dyncmd.c (read_command_list): Likewise.
30968 * normal/handler.c (read_handler_list): Likewise.
30969 * normal/main.c (read_lists): New function. Calls all the
30970 list reading functions.
30971 (grub_normal_execute): Use read_lists() instead of calling all
30972 list reading functions explicitly. Register read_lists() as a
30973 variable hook attached to ${prefix}.
30974
30975 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
30976
30977 Merge crypto branch.
30978
30979 * Makefile.in (pkglib_DATA): Add crypto.lst.
30980 (crypto.lst): New target.
30981 * commands/hashsum.c: New file.
30982 * commands/password.c (check_password): Use grub_crypto_memcmp.
30983 * commands/password_pbkdf2.c: New file.
30984 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
30985 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
30986 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
30987 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
30988 -I$(srcdir)/lib/libgcrypt_wrap.
30989 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
30990 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
30991 password_pbkdf2.mod.
30992 (crypto_mod_SOURCES): New variable.
30993 (crypto_mod_CFLAGS): Likewise.
30994 (crypto_mod_LDFLAGS): Likewise.
30995 (hashsum_mod_SOURCES): New variable.
30996 (hashsum_mod_CFLAGS): Likewise.
30997 (hashsum_mod_LDFLAGS): Likewise.
30998 (pbkdf2_mod_SOURCES): New variable.
30999 (pbkdf2_mod_CFLAGS): Likewise.
31000 (pbkdf2_mod_LDFLAGS): Likewise.
31001 (password_pbkdf2_mod_SOURCES): New variable.
31002 (password_pbkdf2_mod_CFLAGS): Likewise.
31003 (password_pbkdf2_mod_LDFLAGS): Likewise.
31004 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
31005 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
31006 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
31007 Include conf/gcry.rmk.
31008 * include/grub/auth.h: Rewritten.
31009 * include/grub/crypto.h: New file.
31010 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
31011 * include/grub/normal.h (read_crypto_list): New prototype.
31012 * lib/crypto.c: New file.
31013 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
31014 * lib/pbkdf2.c: Likewise.
31015 * normal/auth.c (grub_auth_strcmp): Removed.
31016 (grub_iswordseparator): Likewise.
31017 (grub_auth_strword): Likewise.
31018 (is_authenticated): Use grub_strword.
31019 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
31020 and grub_strword. Pass entered password to authentication callback.
31021 * normal/crypto.c: New file.
31022 * normal/main.c: Call read_crypto_list.
31023 * util/grub-mkpasswd-pbkdf2.c: New file.
31024 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
31025
31026 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
31027
31028 Fix descent and ascent calculation.
31029
31030 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
31031 (options): New option "asce".
31032 (usage): Likewise.
31033 (add_char): Ignore invalid glyphs for descent calculation.
31034 Calculate ascent from actual content.
31035 (print_glyphs): Use 'asce'.
31036 (write_font): Likewise. Allow ascent override.
31037 (main): Handle "asce" option.
31038
31039 2010-01-06 Carles Pina i Estany <carles@pina.cat>
31040
31041 * kern/err.c: Include `<grub/i18n.h>'.
31042 (grub_print_error): Add full stop. Gettextizze.
31043 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
31044 (grub_bsd_load_elf): Capitalise ELF.
31045 (grub_cmd_freebsd_loadenv): Add `s' in error string.
31046 (grub_cmd_freebsd_module): Likewise.
31047 (grub_cmd_freebsd_module_elf): Likewise.
31048 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
31049
31050 2010-01-06 Carles Pina i Estany <carles@pina.cat>
31051
31052 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
31053 * commands/search_file.c (HELP_MESSAGE): New macro.
31054 * commands/search_label.c (HELP_MESSAGE): Likewise.
31055 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
31056 * po/POTFILES: Add `commands/search_file.c',
31057 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
31058 `commands/search.c'.
31059
31060 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
31061
31062 * config.rpath: Update from Gnulib.
31063
31064 2010-01-05 Yves Blusseau <blusseau@zetam.org>
31065
31066 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
31067
31068 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
31069
31070 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
31071
31072 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31073
31074 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
31075 arguments to fread so that we get a return value in bytes, rather
31076 than something that will normally be rounded down to 0.
31077 Adjust error handling to avoid producing garbage when size_t is not
31078 the same size as long long.
31079
31080 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31081
31082 * util/mkisofs/write.c (padblock_write): Check return value of
31083 fread.
31084
31085 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
31086
31087 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
31088 floppy images now.
31089
31090 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
31091
31092 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
31093
31094 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
31095 instead of manual alignment.
31096 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
31097 verbose). Avoid attempts to read past end of the device
31098 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
31099 but GRUB_DISK_CACHE_SIZE may exceed that).
31100
31101 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
31102
31103 * commands/crc.c (grub_cmd_crc): Abort on read errors.
31104 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
31105 it to upper layer.
31106
31107 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
31108
31109 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
31110 New constant.
31111 (grub_efi_piwg_device_path): New structure
31112 (grub_efi_piwg_device_path_t): New type.
31113 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
31114 (devpath_1): Transform to a structure. All users updated.
31115 (devpath_2): Likewise.
31116 (devpath_3): Likewise.
31117 (devpath_4): Likewise.
31118 (devpath_5): Likewise.
31119
31120 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
31121
31122 * loader/efi/appleloader.c: Restored. Update all users.
31123
31124 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
31125
31126 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
31127
31128 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
31129 (struct boot_blocklist): Move from here ...
31130 * include/grub/i386/pc/boot.h [ASM_FILE]
31131 (struct grub_boot_blocklist): ... to here. Update all users.
31132 (setup): Only initialize `start' member of `first_block'
31133 structure. Add assert() calls to verify the other members.
31134
31135 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
31136 (generate_image): Fix broken blocklist length initialization.
31137 Add assert() call to verify blocklist `segment' field.
31138
31139 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
31140
31141 * loader/efi/appleloader.c: Remove. Update all users.
31142
31143 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
31144
31145 * boot/i386/pc/boot.S: Update copyright year.
31146 * boot/i386/pc/cdboot.S: Likewise.
31147 * boot/i386/pc/diskboot.S: Likewise.
31148 * boot/i386/pc/lnxboot.S: Likewise.
31149 * boot/i386/pc/pxeboot.S: Likewise.
31150 * bus/pci.c: Likewise.
31151 * commands/cmp.c: Likewise.
31152 * commands/help.c: Likewise.
31153 * commands/hexdump.c: Likewise.
31154 * commands/i386/pc/halt.c: Likewise.
31155 * commands/i386/pc/play.c: Likewise.
31156 * commands/i386/pc/vbeinfo.c: Likewise.
31157 * commands/ls.c: Likewise.
31158 * commands/test.c: Likewise.
31159 * disk/dmraid_nvidia.c: Likewise.
31160 * disk/i386/pc/biosdisk.c: Likewise.
31161 * disk/ieee1275/nand.c: Likewise.
31162 * disk/ieee1275/ofdisk.c: Likewise.
31163 * disk/lvm.c: Likewise.
31164 * disk/raid.c: Likewise.
31165 * disk/raid6_recover.c: Likewise.
31166 * disk/scsi.c: Likewise.
31167 * fs/affs.c: Likewise.
31168 * fs/cpio.c: Likewise.
31169 * fs/ext2.c: Likewise.
31170 * fs/hfs.c: Likewise.
31171 * fs/iso9660.c: Likewise.
31172 * fs/ntfs.c: Likewise.
31173 * fs/sfs.c: Likewise.
31174 * fs/udf.c: Likewise.
31175 * fs/ufs.c: Likewise.
31176 * fs/xfs.c: Likewise.
31177 * gencmdlist.sh: Likewise.
31178 * genmk.rb: Likewise.
31179 * include/grub/disk.h: Likewise.
31180 * include/grub/efi/api.h: Likewise.
31181 * include/grub/efi/efi.h: Likewise.
31182 * include/grub/efi/pe32.h: Likewise.
31183 * include/grub/elf.h: Likewise.
31184 * include/grub/fs.h: Likewise.
31185 * include/grub/i386/at_keyboard.h: Likewise.
31186 * include/grub/i386/pc/memory.h: Likewise.
31187 * include/grub/i386/pc/vbe.h: Likewise.
31188 * include/grub/i386/pci.h: Likewise.
31189 * include/grub/i386/tsc.h: Likewise.
31190 * include/grub/ieee1275/ieee1275.h: Likewise.
31191 * include/grub/ntfs.h: Likewise.
31192 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
31193 * include/grub/sparc64/libgcc.h: Likewise.
31194 * include/grub/symbol.h: Likewise.
31195 * include/grub/types.h: Likewise.
31196 * include/multiboot2.h: Likewise.
31197 * io/gzio.c: Likewise.
31198 * kern/device.c: Likewise.
31199 * kern/disk.c: Likewise.
31200 * kern/efi/efi.c: Likewise.
31201 * kern/efi/mm.c: Likewise.
31202 * kern/elf.c: Likewise.
31203 * kern/file.c: Likewise.
31204 * kern/i386/dl.c: Likewise.
31205 * kern/i386/pc/init.c: Likewise.
31206 * kern/i386/pc/startup.S: Likewise.
31207 * kern/ieee1275/ieee1275.c: Likewise.
31208 * kern/ieee1275/init.c: Likewise.
31209 * kern/main.c: Likewise.
31210 * kern/mm.c: Likewise.
31211 * kern/powerpc/dl.c: Likewise.
31212 * kern/sparc64/dl.c: Likewise.
31213 * kern/x86_64/dl.c: Likewise.
31214 * lib/hexdump.c: Likewise.
31215 * loader/efi/appleloader.c: Likewise.
31216 * loader/i386/ieee1275/linux.c: Likewise.
31217 * loader/i386/pc/chainloader.c: Likewise.
31218 * loader/i386/pc/linux.c: Likewise.
31219 * loader/i386/pc/multiboot2.c: Likewise.
31220 * loader/ieee1275/multiboot2.c: Likewise.
31221 * loader/multiboot2.c: Likewise.
31222 * loader/multiboot_loader.c: Likewise.
31223 * loader/powerpc/ieee1275/linux.c: Likewise.
31224 * normal/completion.c: Likewise.
31225 * normal/menu_entry.c: Likewise.
31226 * partmap/apple.c: Likewise.
31227 * util/grub.d/10_hurd.in: Likewise.
31228 * util/hostfs.c: Likewise.
31229 * video/readers/png.c: Likewise.
31230
31231 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
31232
31233 * include/grub/misc.h (GNUC_PREREQ): New macro.
31234 (ATTRIBUTE_ERROR): New macro.
31235 * include/grub/list.h (grub_bad_type_cast_real): Use
31236 ATTRIBUTE_ERROR.
31237
31238 2010-01-03 Carles Pina i Estany <carles@pina.cat>
31239
31240 * normal/menu_text.c (print_message): Change messages.
31241
31242 2010-01-03 Carles Pina i Estany <carles@pina.cat>
31243
31244 * normal/menu_entry.c (store_completion): Gettextizze.
31245
31246 2010-01-03 Carles Pina i Estany <carles@pina.cat>
31247
31248 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
31249
31250 2010-01-03 Carles Pina i Estany <carles@pina.cat>
31251
31252 * po/POTFILES: Sort correctly.
31253
31254 2010-01-03 Carles Pina i Estany <carles@pina.cat>
31255
31256 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
31257 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
31258 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
31259 full stop.
31260 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
31261 summary. Gettextizze the strings.
31262 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
31263 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
31264 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
31265 full stop.
31266 (GRUB_MOD_INIT): Remove command name from summary.
31267 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
31268 summary.
31269 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
31270 * term/i386/pc/serial.c (options): Add full stops.
31271 (GRUB_MOD_INIT): Remove command name from the summary.
31272
31273 2010-01-03 Carles Pina i Estany <carles@pina.cat>
31274
31275 * commands/acpi.c: Gettextizze help strings and/or options. Include
31276 `grub/i18n.h' if needed.
31277 * commands/blocklist.c: Likewise.
31278 * commands/boot.c: Likewise.
31279 * commands/cat.c: Likewise.
31280 * commands/cmp.c: Likewise.
31281 * commands/configfile.c: Likewise.
31282 * commands/crc.c: Likewise.
31283 * commands/date.c: Likewise.
31284 * commands/echo.c: Likewise.
31285 * commands/efi/fixvideo.c: Likewise.
31286 * commands/efi/loadbios.c: Likewise.
31287 * commands/gptsync.c: Likewise.
31288 * commands/halt.c: Likewise.
31289 * commands/handler.c: Likewise.
31290 * commands/hdparm.c: Likewise.
31291 * commands/hexdump.c: Likewise.
31292 * commands/i386/cpuid.c: Likewise.
31293 * commands/i386/pc/drivemap.c: Likewise.
31294 * commands/i386/pc/halt.c: Likewise.
31295 * commands/i386/pc/pxecmd.c: Likewise.
31296 * commands/i386/pc/vbeinfo.c: Likewise.
31297 * commands/i386/pc/vbetest.c: Likewise.
31298 * commands/ieee1275/suspend.c: Likewise.
31299 * commands/keystatus.c: Likewise.
31300 * commands/loadenv.c: Likewise.
31301 * commands/ls.c: Likewise.
31302 * commands/lsmmap.c: Likewise.
31303 * commands/lspci.c: Likewise.
31304 * commands/memrw.c: Likewise.
31305 * commands/minicmd.c: Likewise.
31306 * commands/parttool.c: Likewise.
31307 * commands/password.c: Likewise.
31308 * commands/probe.c: Likewise.
31309 * commands/read.c: Likewise.
31310 * commands/reboot.c: Likewise.
31311 * commands/search.c: Likewise.
31312 * commands/sleep.c: Likewise.
31313 * commands/test.c: Likewise.
31314 * commands/true.c: Likewise.
31315 * commands/usbtest.c: Likewise.
31316 * commands/videotest.c: Likewise.
31317 * commands/xnu_uuid.c: Likewise.
31318 * disk/loopback.c: Likewise.
31319 * hello/hello.c: Likewise.
31320 * loader/i386/bsd.c: Likewise.
31321 * term/i386/pc/serial.c: Likewise.
31322 * po/POTFILES: Add new files.
31323
31324 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
31325
31326 * term/i386/pc/at_keyboard.c
31327 (keyboard_controller_wait_untill_ready): Rename to ...
31328 (keyboard_controller_wait_until_ready): ... this. Update all users.
31329
31330 2010-01-01 Carles Pina i Estany <carles@pina.cat>
31331
31332 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
31333 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
31334 string using string width.
31335 * normal/menu_text.c (grub_print_message_indented): Use
31336 grub_print_spaces and not print_spaces.
31337 (print_timeout): Likewise.
31338 (print_spaces): Move to...
31339 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
31340
31341 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
31342
31343 Import from Gnulib.
31344
31345 * gnulib/getdelim.c: New file.
31346 * gnulib/getline.c: Likewise.
31347
31348 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
31349
31350 * include/grub/list.h (grub_assert_fail): Removed.
31351 (grub_bad_type_cast_real): New function.
31352 (grub_bad_type_cast): New macro.
31353 (GRUB_AS_LIST): Use grub_bad_type_cast.
31354 (GRUB_AS_LIST_P): Likewise.
31355 (GRUB_AS_NAMED_LIST): Likewise.
31356 (GRUB_AS_NAMED_LIST_P): Likewise.
31357 (GRUB_AS_PRIO_LIST): Likewise.
31358 (GRUB_AS_PRIO_LIST_P): Likewise.
31359 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
31360
31361 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
31362
31363 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
31364 Fix syntax error.
31365
31366 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
31367
31368 * configure.ac: Check for TARGET_CFLAGS initialization before we
31369 initialize it ourselves (sigh).
31370 Move a few modifications to TARGET_CFLAGS to be unconditional
31371 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
31372 eh_frame)
31373
31374 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
31375 * term/i386/pc/at_keyboard.c
31376 (keyboard_controller_wait_untill_ready): Likewise.
31377 (keyboard_controller_led): Rename `led_status' paramter to avoid
31378 name conflict.
31379
31380 2009-12-28 Carles Pina i Estany <carles@pina.cat>
31381
31382 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
31383 quotes.
31384
31385 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
31386
31387 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
31388
31389 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
31390
31391 * normal/menu_text.c (grub_print_message_indented): Prevent
31392 past-the-end-of-array dereference.
31393
31394 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
31395
31396 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
31397 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
31398
31399 2009-12-27 Carles Pina i Estany <carles@pina.cat>
31400
31401 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
31402 * normal/main.c (grub_normal_read_line): Remove a space from the
31403 default prompt.
31404
31405 2009-12-27 Carles Pina i Estany <carles@pina.cat>
31406
31407 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
31408 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
31409 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
31410 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
31411 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
31412 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
31413 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
31414
31415 2009-12-26 Carles Pina i Estany <carles@pina.cat>
31416
31417 * video/readers/jpeg.c (cmd): Declare.
31418 (grub_cmd_jpegtest): Use `grub_command_t' type.
31419 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
31420 Assign to `cmd'.
31421 (GRUB_MOD_FINI): Use `cmd' to unregister.
31422 * video/readers/png.c (cmd): Declare.
31423 (grub_cmd_pngtest): Use `grub_command_t' type.
31424 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
31425 Assign to `cmd'.
31426 (GRUB_MOD_FINI): Use `cmd' to unregister.
31427 * video/readers/tga.c (cmd): Declare.
31428 (grub_cmd_tgatest): Use `grub_command_t' type.
31429 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
31430 Assign to `cmd'.
31431 (GRUB_MOD_FINI): Use `cmd' to unregister.
31432
31433 2009-12-26 Carles Pina i Estany <carles@pina.cat>
31434
31435 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
31436 stops.
31437 * kern/corecmd.c (grub_register_core_commands): Likewise.
31438 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
31439 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
31440 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
31441 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
31442 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
31443 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
31444 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
31445 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
31446 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
31447 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
31448 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
31449 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
31450 * normal/handler.c (insert_handler): Likewise.
31451 * normal/main.c (GRUB_MOD_INIT): Likewise.
31452 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
31453
31454 2009-12-26 Carles Pina i Estany <carles@pina.cat>
31455
31456 * commands/help.c (grub_cmd_help): Print the command name before the
31457 summary.
31458 (GRUB_MOD_INIT): Remove command name from the summary.
31459 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
31460 string as summary.
31461 * lib/arg.c (find_long): Print the command name before the summary.
31462 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
31463 summary.
31464 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
31465 * commands/cat.c (GRUB_MOD_INIT): Likewise.
31466 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
31467 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
31468 * commands/crc.c (GRUB_MOD_INIT): Likewise.
31469 * commands/date.c (GRUB_MOD_INIT): Likewise.
31470 * commands/echo.c (GRUB_MOD_INIT): Likewise.
31471 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
31472 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
31473 * commands/handler.c (GRUB_MOD_INIT): Likewise.
31474 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
31475 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
31476 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
31477 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
31478 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
31479 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
31480 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
31481 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
31482 * commands/ls.c (GRUB_MOD_INIT): Likewise.
31483 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
31484 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
31485 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
31486 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
31487 * commands/password.c (GRUB_MOD_INIT): Likewise.
31488 * commands/probe.c (GRUB_MOD_INIT): Likewise.
31489 * commands/read.c (GRUB_MOD_INIT): Likewise.
31490 * commands/search.c (GRUB_MOD_INIT): Likewise.
31491 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
31492 * commands/test.c (GRUB_MOD_INIT): Likewise.
31493 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
31494 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
31495 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
31496 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
31497 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
31498 * lib/arg.c (GRUB_MOD_INIT): Likewise.
31499 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
31500 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
31501 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
31502 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
31503 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
31504 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
31505 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
31506 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
31507
31508 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
31509
31510 Use search command for preliminar UUID search.
31511
31512 * commands/search.c: Split into ...
31513 * commands/search_wrap.c: ...this
31514 * commands/search.c: ...and this.
31515 * commands/search_file.c: New file.
31516 * commands/search_label.c: New file.
31517 * commands/search_uuid.c: New file.
31518 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
31519 Add commands/search_wrap.c, commands/search_file.c,
31520 commands/search_label.c and commands/search_uuid.c.
31521 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
31522 (search_mod_SOURCES): Set to commands/search_wrap.c.
31523 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
31524 search_label.mod.
31525 (search_fs_file_mod_SOURCES): New variable.
31526 (search_fs_file_mod_CFLAGS): Likewise.
31527 (search_fs_file_mod_LDFLAGS): Likewise.
31528 (search_label_mod_SOURCES): Likewise.
31529 (search_label_mod_CFLAGS): Likewise.
31530 (search_label_mod_LDFLAGS): Likewise.
31531 (search_fs_uuid_mod_SOURCES): New variable.
31532 (search_fs_uuid_mod_CFLAGS): Likewise.
31533 (search_fs_uuid_mod_LDFLAGS): Likewise.
31534 (fs_file_mod_SOURCES): Removed.
31535 (fs_file_mod_CFLAGS): Likewise.
31536 (fs_file_mod_LDFLAGS): Likewise.
31537 (fs_uuid_mod_SOURCES): Removed.
31538 (fs_uuid_mod_CFLAGS): Likewise.
31539 (fs_uuid_mod_LDFLAGS): Likewise.
31540 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
31541 Set to util/grub-install.in.
31542 * disk/fs_file.c: Removed.
31543 * disk/fs_uuid.c: Likewise.
31544 * include/grub/search.h: New file.
31545 * util/grub-install.in: Handle sparc64.
31546 Create and use load.cfg.
31547 * util/sparc64/ieee1275/grub-install.in: Removed.
31548
31549 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
31550
31551 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
31552 Ignore return status if CF is cleared.
31553 (grub_biosdisk_get_diskinfo_standard): Likewise.
31554
31555 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
31556
31557 * term/i386/pc/at_keyboard.c
31558 (keyboard_controller_wait_untill_ready): New function.
31559 (grub_keyboard_controller_write, grub_keyboard_controller_read)
31560 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
31561 for keyboard polling, rather than duplicate the same loop. This
31562 saves a few bytes in code size.
31563
31564 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
31565
31566 Support for (pxe[:server[:gateway]]) syntax and
31567 use environment variable for PXE.
31568
31569 * commands/i386/pc/pxecmd.c (options): Removed.
31570 (print_ip): Removed.
31571 (grub_cmd_pxe): Removed
31572 (grub_cmd_pxe_unload): New function.
31573 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
31574 (grub_pxe_your_ip): Made static.
31575 (grub_pxe_default_server_ip): Likewise.
31576 (grub_pxe_default_gateway_ip): Likewise.
31577 (grub_pxe_blksize): Likewise.
31578 (parse_ip): New function.
31579 (grub_pxe_open): Support server and gateway specification.
31580 (grub_pxe_close): Free disk->data.
31581 (grub_pxefs_open): Use disk->data.
31582 (grub_pxefs_read): Likewise.
31583 (grub_env_write_readonly): New function.
31584 (set_mac_env): Likewise.
31585 (set_env_limn_ro): Likewise.
31586 (parse_dhcp_vendor): Likewise.
31587 (grub_pxe_detect): Set the environment variables.
31588 (set_ip_env): New function.
31589 (write_ip_env): Likewise.
31590 (grub_env_write_pxe_default_server): Likewise.
31591 (grub_env_write_pxe_default_gateway): Likewise.
31592 (grub_env_write_pxe_blocksize): Likewise.
31593 (GRUB_MOD_INIT(pxe)): Set environment variables.
31594 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
31595 (grub_pxe_mac_addr_t): ... this. All users updated.
31596 (grub_pxe_your_ip): Removed.
31597 (grub_pxe_server_ip): Likewise.
31598 (grub_pxe_gateway_ip): Likewise.
31599 (grub_pxe_blksize): Likewise.
31600
31601 2009-12-25 Carles Pina i Estany <carles@pina.cat>
31602
31603 * commands/help.c: Include `<grub/i18n.h>'.
31604 (grub_cmd_help): Gettextizze.
31605 (GRUB_MOD_INIT): Likewise.
31606 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
31607 (GRUB_MOD_INIT): Gettextizze.
31608 * commands/search.c: Include `<grub/i18n.h>'.
31609 (options): Gettextizze.
31610 (GRUB_MOD_INIT): Gettextizze.
31611 * lib/arg.c: Include `<grub/i18n.h>'.
31612 (help_options): Gettextizze.
31613 (find_long): Likewise.
31614 (grub_arg_show_help): Likewise.
31615 * normal/dyncmd.c: Include `<grub/i18n.h>'.
31616 (read_command_list): Gettextizze.
31617 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
31618 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
31619
31620 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
31621
31622 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
31623 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
31624 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
31625 (led_status): New variable.
31626 (keyboard_controller_led): New function.
31627 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
31628 update led status for caps lock, num lock and scroll lock.
31629
31630 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
31631
31632 * util/hostdisk.c (open_device): Fix a comment.
31633
31634 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
31635
31636 * util/grub-install.in (host_os): New variable.
31637 * util/i386/efi/grub-install.in (host_os): Likewise.
31638
31639 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
31640
31641 * util/mkisofs/write.c (padblock_write): Abort when given an
31642 excedingly large embed image, instead of silently truncating it.
31643
31644 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
31645
31646 * include/multiboot.h: Indentation fixes.
31647
31648 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
31649
31650 * include/multiboot.h (struct multiboot_aout_symbol_table)
31651 (struct multiboot_elf_section_header_table): New structure
31652 declarations (stolen from GRUB Legacy).
31653 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
31654 table information.
31655
31656 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
31657 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
31658 type aliases.
31659
31660 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
31661
31662 * include/multiboot.h: Make comments src2texi-friendly.
31663
31664 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
31665
31666 For consistency with [multiboot]/docs/boot.S.
31667
31668 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
31669 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
31670 (MULTIBOOT_MAGIC2): Rename from this ...
31671 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
31672
31673 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
31674
31675 * include/multiboot.h: Remove `<grub/types.h>'.
31676 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
31677 types. Update all users.
31678
31679 2009-12-25 Carles Pina i Estany <carles@pina.cat>
31680
31681 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
31682 `couldn't' and `can not' by `cannot'.
31683 * commands/i386/pc/drivemap.c: Likewise.
31684 * disk/ata.c: Likewise.
31685 * disk/ieee1275/nand.c: Likewise.
31686 * fs/affs.c: Likewise.
31687 * fs/fat.c: Likewise.
31688 * fs/hfs.c: Likewise.
31689 * fs/hfsplus.c: Likewise.
31690 * fs/iso9660.c: Likewise.
31691 * fs/jfs.c: Likewise.
31692 * fs/minix.c: Likewise.
31693 * fs/reiserfs.c: Likewise.
31694 * fs/sfs.c: Likewise.
31695 * fs/udf.c: Likewise.
31696 * fs/ufs.c: Likewise.
31697 * fs/xfs.c: Likewise.
31698 * loader/powerpc/ieee1275/linux.c: Likewise.
31699 * loader/sparc64/ieee1275/linux.c: Likewise.
31700 * util/grub-probe.c: Likewise.
31701 * util/misc.c: Likewise.
31702
31703 2009-12-24 Carles Pina i Estany <carles@pina.cat>
31704
31705 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
31706 grub_errno calls.
31707 * commands/acpi.c: Likewise.
31708 * commands/blocklist.c: Likewise.
31709 * commands/efi/loadbios.c: Likewise.
31710 * commands/i386/pc/drivemap.c: Likewise.
31711 * commands/loadenv.c: Likewise.
31712 * commands/memrw.c: Likewise.
31713 * commands/password.c: Likewise.
31714 * commands/videotest.c: Likewise.
31715 * disk/ata.c: Likewise.
31716 * disk/ata_pthru.c: Likewise.
31717 * disk/dmraid_nvidia.c: Likewise.
31718 * disk/ieee1275/nand.c: Likewise.
31719 * disk/ieee1275/ofdisk.c: Likewise.
31720 * disk/loopback.c: Likewise.
31721 * disk/lvm.c: Likewise.
31722 * disk/mdraid_linux.c: Likewise.
31723 * disk/raid.c: Likewise.
31724 * disk/raid6_recover.c: Likewise.
31725 * disk/scsi.c: Likewise.
31726 * efiemu/main.c: Likewise.
31727 * efiemu/mm.c: Likewise.
31728 * efiemu/pnvram.c: Likewise.
31729 * efiemu/symbols.c: Likewise.
31730 * font/font.c: Likewise.
31731 * fs/cpio.c: Likewise.
31732 * fs/hfsplus.c: Likewise.
31733 * fs/iso9660.c: Likewise.
31734 * fs/jfs.c: Likewise.
31735 * fs/minix.c: Likewise.
31736 * fs/ntfs.c: Likewise.
31737 * fs/ntfscomp.c: Likewise.
31738 * fs/reiserfs.c: Likewise.
31739 * fs/ufs.c: Likewise.
31740 * fs/xfs.c: Likewise.
31741 * gettext/gettext.c: Likewise.
31742 * include/grub/auth.h: Likewise.
31743 * kern/elf.c: Likewise.
31744 * kern/file.c: Likewise.
31745 * kern/ieee1275/init.c: Likewise.
31746 * kern/ieee1275/mmap.c: Likewise.
31747 * kern/ieee1275/openfw.c: Likewise.
31748 * kern/powerpc/dl.c: Likewise.
31749 * kern/sparc64/dl.c: Likewise.
31750 * lib/arg.c: Likewise.
31751 * loader/i386/bsd.c: Likewise.
31752 * loader/i386/bsdXX.c: Likewise.
31753 * loader/i386/efi/linux.c: Likewise.
31754 * loader/i386/efi/xnu.c: Likewise.
31755 * loader/i386/ieee1275/linux.c: Likewise.
31756 * loader/i386/linux.c: Likewise.
31757 * loader/i386/multiboot.c: Likewise.
31758 * loader/i386/pc/linux.c: Likewise.
31759 * loader/i386/pc/multiboot2.c: Likewise.
31760 * loader/i386/xnu.c: Likewise.
31761 * loader/ieee1275/multiboot2.c: Likewise.
31762 * loader/macho.c: Likewise.
31763 * loader/machoXX.c: Likewise.
31764 * loader/multiboot2.c: Likewise.
31765 * loader/multiboot_loader.c: Likewise.
31766 * loader/powerpc/ieee1275/linux.c: Likewise.
31767 * loader/sparc64/ieee1275/linux.c: Likewise.
31768 * loader/xnu.c: Likewise.
31769 * loader/xnu_resume.c: Likewise.
31770 * mmap/i386/pc/mmap.c: Likewise.
31771 * normal/menu_viewer.c: Likewise.
31772 * partmap/acorn.c: Likewise.
31773 * partmap/amiga.c: Likewise.
31774 * partmap/apple.c: Likewise.
31775 * script/lexer.c: Likewise.
31776 * term/gfxterm.c: Likewise.
31777 * term/i386/pc/serial.c: Likewise.
31778 * term/i386/pc/vga.c: Likewise.
31779 * term/ieee1275/ofconsole.c: Likewise.
31780 * term/terminfo.c: Likewise.
31781 * video/bitmap.c: Likewise.
31782 * video/efi_gop.c: Likewise.
31783 * video/efi_uga.c: Likewise.
31784 * video/fb/video_fb.c: Likewise.
31785 * video/i386/pc/vbe.c: Likewise.
31786 * video/readers/tga.c: Likewise.
31787 * video/video.c: Likewise.
31788
31789 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
31790
31791 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
31792 * commands/lspci.c: Likewise.
31793 * commands/probe.c: Likewise.
31794 * commands/xnu_uuid.c: Likewise.
31795 * conf/i386-coreboot.rmk: Likewise.
31796 * conf/i386-efi.rmk: Likewise.
31797 * conf/i386-ieee1275.rmk: Likewise.
31798 * conf/i386-pc.rmk: Likewise.
31799 * conf/powerpc-ieee1275.rmk: Likewise.
31800 * conf/sparc64-ieee1275.rmk: Likewise.
31801 * conf/x86_64-efi.rmk: Likewise.
31802 * fs/i386/pc/pxe.c: Likewise.
31803 * gettext/gettext.c: Likewise.
31804 * include/grub/efi/graphics_output.h: Likewise.
31805 * include/grub/i386/pc/memory.h: Likewise.
31806 * kern/env.c: Likewise.
31807 * kern/i386/qemu/startup.S: Likewise.
31808 * lib/i386/pc/biosnum.c: Likewise.
31809 * lib/i386/relocator.c: Likewise.
31810 * lib/i386/relocator_asm.S: Likewise.
31811 * lib/relocator.c: Likewise.
31812 * loader/i386/bsd.c: Likewise.
31813 * loader/i386/multiboot.c: Likewise.
31814 * loader/i386/pc/chainloader.c: Likewise.
31815 * loader/i386/xnu.c: Likewise.
31816 * loader/xnu.c: Likewise.
31817 * normal/main.c: Likewise.
31818 * normal/menu_text.c: Likewise.
31819 * util/getroot.c: Likewise.
31820 * util/grub-mkconfig_lib.in: Likewise.
31821 * util/grub.d/00_header.in: Likewise.
31822 * util/i386/pc/grub-mkimage.c: Likewise.
31823 * util/mkisofs/eltorito.c: Likewise.
31824 * util/mkisofs/exclude.h: Likewise.
31825 * util/mkisofs/hash.c: Likewise.
31826 * util/mkisofs/iso9660.h: Likewise.
31827 * util/mkisofs/joliet.c: Likewise.
31828 * util/mkisofs/mkisofs.c: Likewise.
31829 * util/mkisofs/mkisofs.h: Likewise.
31830 * util/mkisofs/multi.c: Likewise.
31831 * util/mkisofs/name.c: Likewise.
31832 * util/mkisofs/rock.c: Likewise.
31833 * util/mkisofs/tree.c: Likewise.
31834 * util/mkisofs/write.c: Likewise.
31835 * video/efi_gop.c: Likewise.
31836
31837 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
31838
31839 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
31840 size counting.
31841
31842 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
31843
31844 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
31845 * genmk.rb (class SCRIPT): Modify the target file instead of source.
31846
31847 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
31848
31849 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
31850 (GRUB_MOD_INIT(memrw)): Update help line.
31851
31852 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
31853
31854 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
31855 Use grub_extcmd_t. All users updated.
31856 (options): New variable.
31857 (grub_cmd_read): Restructure for readability. Support "-v" option.
31858 (grub_cmd_write): Restructure for readability.
31859
31860 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
31861
31862 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
31863
31864 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
31865
31866 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
31867 with the actual contents of the correspondending make variable.
31868 * util/grub-mkrescue.in (pkglib_DATA): New variable.
31869 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
31870 specifying `*.lst' and `efiemu??.o'
31871
31872 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
31873
31874 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
31875 after function name.
31876 Noticed by Rene Engelhard <rene@debian.org>.
31877
31878 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
31879
31880 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
31881 (options): New variable.
31882 (iospace): Likewise.
31883 (grub_lspci_iter): List IO spaces if "-i" was given.
31884 (grub_cmd_lspci): Parse options.
31885 (GRUB_MOD_INIT(lspci)): Use extcmd.
31886 (GRUB_MOD_FINI(lspci)): Likewise.
31887
31888 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
31889
31890 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
31891 `function' keyword.
31892 Patch by Tony Mancill <tmancill@debian.org>.
31893
31894 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
31895
31896 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
31897 (grub_uhci_portstatus): Likewise.
31898 (grub_uhci_portstatus): Add necessary delay.
31899 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
31900
31901 2009-12-21 Carles Pina i Estany <carles@pina.cat>
31902
31903 * commands/acpi.c (options): Fix capitalizations and/or full stops.
31904 (GRUB_MOD_INIT): Likewise.
31905 * commands/boot.c (GRUB_MOD_INIT): Likewise.
31906 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
31907 * commands/echo.c (options): Fix capitalizations and/or full stops.
31908 * commands/efi/loadbios.c (enable_rom_area): Likewise.
31909 (enable_rom_area): Likewise.
31910 (GRUB_MOD_INIT): Likewise.
31911 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
31912 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
31913 * commands/handler.c (GRUB_MOD_INIT): Likewise.
31914 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
31915 * commands/hexdump.c (options): Likewise.
31916 * commands/i386/cpuid.c (options): Likewise.
31917 (GRUB_MOD_INIT): Likewise.
31918 * commands/i386/pc/drivemap.c (options): Likewise.
31919 (GRUB_MOD_INIT): Likewise.
31920 * commands/i386/pc/halt (options): Likewise.
31921 (GRUB_MOD_INIT): Likewise.
31922 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
31923 * commands/i386/pc/pxecmd.c (options): Likewise.
31924 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
31925 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
31926 * commands/keystatus.c (options): Likewise.
31927 (GRUB_MOD_INIT): Likewise.
31928 * commands/loadenv.c (options): Likewise.
31929 * commands/ls.c (options): Likewise.
31930 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
31931 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
31932 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
31933 * commands/parttool.c (helpmsg): Likewise.
31934 * commands/probe.c (options): Likewise.
31935 * commands/read.c (GRUB_MOD_INIT): Likewise.
31936 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
31937 * commands/search.c (options): Likewise.
31938 * commands/sleep.c (options): Likewise.
31939 * commands/test.c (GRUB_MOD_INIT): Likewise.
31940 * commands/true.c (GRUB_MOD_INIT): Likewise.
31941 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
31942 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
31943 * lib/arg.c (help_options): Likewise.
31944 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
31945 `$(XGETTEXT)'.
31946 * po/POTFILES: Add `commands/loadenv.c'.
31947
31948 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
31949
31950 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
31951 instead of specifying them explicit.
31952
31953 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
31954
31955 * NEWS: Add grub-probe support for GNU/Hurd.
31956
31957 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
31958
31959 * NEWS: gettext was added after 1.97.
31960
31961 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
31962
31963 * util/mkisofs/msdos_partition.h: New file (based on
31964 include/grub/msdos_partition.h).
31965 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
31966 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
31967 (ld_options, main): Recognize --protective-msdos-label.
31968 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
31969 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
31970 (padblock_write): If `use_protective_msdos_label' is set, patch a
31971 protective DOS-style label in the output image.
31972
31973 * util/grub-mkrescue.in: Use --protective-msdos-label.
31974
31975 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
31976
31977 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
31978 boot.
31979
31980 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
31981
31982 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
31983 variables.
31984 (ld_options, main): Recognize `--embedded-boot'.
31985 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
31986 declarations.
31987 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
31988 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
31989 (padblock_write): Likewise. Rewrite to support embedded boot image.
31990
31991 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
31992 for BIOS-based disk boot instead of only ElTorito.
31993
31994 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
31995
31996 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
31997 build (not needed for bootstrap).
31998
31999 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
32000
32001 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
32002 from i386-pc build (not needed for bootstrap).
32003 Rewrite a pair of strings.
32004
32005 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
32006
32007 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
32008
32009 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
32010
32011 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
32012
32013 2009-12-21 Andreas Born <futur.andy@googlemail.com>
32014
32015 * kern/env.c (grub_env_context_open): Mark exported variable for
32016 reexport.
32017
32018 2009-12-21 Andreas Born <futur.andy@googlemail.com>
32019
32020 * kern/env.c (grub_env_export): Create nonexistent variables before
32021 exporting.
32022
32023 2009-12-20 Carles Pina i Estany <carles@pina.cat>
32024
32025 * include/grub/auth.h: Include `<grub/i18n.h>'.
32026 (GRUB_GET_PASSWORD): Gettextizze string.
32027 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
32028 menu_text.c.
32029 (grub_utf8_to_ucs4_alloc): Fix indentation.
32030 (grub_print_ucs4): Likewise.
32031 (grub_getstringwidth): Likewise.
32032 (print_message_indented): New declaration.
32033 * normal/auth.c: Include `<grub/i18n.h>'.
32034 (grub_auth_check_authentication): Gettexttize string.
32035 * normal/cmdline.c: Include `<grub/i18n.h>'.
32036 (grub_cmdline_get): Gettextizze.
32037 * normal/color.c: Include `<grub/i18n.h>'.
32038 (grub_parse_color_name_pair): Gettexttize strings.
32039 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
32040 string (use `print_message_indented').
32041 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
32042 `include/grub/normal.h'.
32043 (print_message_indented): Renamed to ...
32044 (grub_print_message_indented): ... this. Remove `static' qualifer (now
32045 used in normal/main.c).
32046 (print_message): Use `grub_print_message_indented' instead of
32047 `print_message_indented'.
32048 (print_timeout): Likewise.
32049 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
32050 (grub_normal_print_device_info): Gettexttize strings.
32051 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
32052
32053 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
32054
32055 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
32056 of arguments. Return number of tokens and not arguments. All users
32057 updated.
32058
32059 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
32060
32061 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
32062 non-MSDOS paritions.
32063
32064 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
32065
32066 * include/grub/types.h (UNUSED): Removed since it conflicts with
32067 NetBSD headers. All users changed to direct __attribute__ ((unused)).
32068 Reported by Grégoire Sutre.
32069
32070 2009-12-19 Carles Pina i Estany <carles@pina.cat>
32071
32072 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
32073 (grub_print_ucs4_alloc): Likewise.
32074 (grub_getstringwidth): Likewise.
32075 * normal/main.c (grub_normal_init_page): Gettextize version string.
32076 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
32077 (getstringwidth): Renamed to ...
32078 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
32079 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
32080 (grub_print_ucs4): Remove `static' qualifer (now used in
32081 normal/main.c).
32082 * po/POTFILES: Add normal/main.c.
32083
32084 2009-12-19 Carles Pina i Estany <carles@pina.cat>
32085
32086 * normal/menu_text.c (STANDARD_MARGIN): New macro.
32087 (print_message_indented): Add `margin_left' and `margin_right'
32088 parameters.
32089 (print_message): Update `print_message_indented' calls. Adds '\n' to the
32090 strings.
32091 (print_timeout): Use `print_message_indented' to print the message.
32092 Deletes `second_stage' parameter.
32093 (run_menu): Update `print_timeout' calls.
32094
32095 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
32096
32097 Fix console palette on OpenFirmware.
32098
32099 * term/ieee1275/ofconsole.c (MAX): Removed.
32100 (colors): Redone based on VGA palette.
32101 (grub_ofconsole_setcolor): Discard brightness bit since only 8
32102 colors are supported.
32103 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
32104
32105 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
32106
32107 Fix potential EfiEmu double prepare.
32108
32109 * efiemu/main.c (prepared): New variable
32110 (grub_efiemu_unload): Set prepare to '0'.
32111 (grub_efiemu_prepare): Return if already prepared. Set prepared.
32112
32113 set_virtual_address_map support.
32114
32115 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
32116 prototype.
32117 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
32118 prototype.
32119 (grub_efiemu_crc32): Likewise.
32120 (grub_efiemu_crc64): Likewise.
32121 (grub_efiemu_set_virtual_address_map): Likewise.
32122 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
32123 New definition.
32124 (grub_autoefi_set_virtual_address_map): Likewise.
32125 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
32126 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
32127 Restructure flow to accomodate it.
32128 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
32129 (grub_efiemu_crc): Recompute CRC32.
32130 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
32131 (efiemu_ptv_relocated): ... this. Made global. All users updated.
32132 * efiemu/symbols.c (relocated_handle): New variable.
32133 (grub_efiemu_free_syms): Free relocated_handle.
32134 (grub_efiemu_alloc_syms): Allocate relocated_handle.
32135 (grub_efiemu_write_sym_markers): New function.
32136 (grub_efiemu_set_virtual_address_map): Likewise.
32137
32138 Newer XNU parameters.
32139
32140 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
32141 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
32142 (grub_xnu_fill_devicetree): New prototype.
32143 (grub_xnu_heap_real_start): New variable.
32144 * loader/xnu.c (get_name_ptr): New function.
32145 (grub_xnu_load_driver): Fill namelen and name.
32146
32147 64-bit xnu support.
32148
32149 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
32150 and 'loader/macho64.c'.
32151 * conf/i386-pc.rmk: Likewise.
32152 * conf/x86_64-efi.rmk: Likewise.
32153 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
32154 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
32155 * include/grub/macho.h (grub_macho_segment64): New structure.
32156 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
32157 (grub_macho_size32): ... to this.
32158 (grub_macho32_get_entry_point): Renamed from ...
32159 (grub_macho_get_entry_point32): ... to this.
32160 (grub_macho_contains_macho64): New prototype.
32161 (grub_macho_size64): Likewise.
32162 (grub_macho_get_entry_point64): Likewise.
32163 (grub_macho32_load): Renamed from ...
32164 (grub_macho_load32): ... to this.
32165 (grub_macho32_filesize): Renamed from ...
32166 (grub_macho_filesize32): ... to this.
32167 (grub_macho32_readfile): Renamed from ...
32168 (grub_macho_readfile32): ... to this.
32169 (grub_macho_filesize64): New prototype.
32170 (grub_macho_readfile64): Likewise.
32171 (grub_macho_parse32): Likewise.
32172 (grub_macho_parse64): Likewise.
32173 * loader/macho.c: Split into ...
32174 * loader/machoXX.c: ... and this. Replace 32 with XX.
32175 * loader/macho32.c: New file.
32176 * loader/macho64.c: Likewise.
32177 * loader/xnu.c (grub_xnu_is_64bit): New variable.
32178 (grub_cmd_xnu_kernel): Make 32-bit only.
32179 (grub_cmd_xnu_kernel64): New function.
32180 (grub_xnu_load_driver): Support Mach-O 64.
32181 (grub_cmd_xnu_mkext): Likewise.
32182 * util/grub.d/30_os-prober.in (osx_entry): New function.
32183 Generate entries for 64-bit boot too.
32184
32185 Eliminate ad-hoc tree format in XNU and EfiEmu.
32186
32187 * efiemu/main.c (grub_efiemu_prepare): Update comment.
32188 * efiemu/pnvram.c: Rewritten to use environment variables.
32189 All users updated.
32190
32191 Inline utf16_to_utf8.
32192
32193 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
32194 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
32195 All users updated.
32196 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
32197
32198 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
32199 * commands/usbtest.c (grub_usb_get_string): ... move here.
32200 (usb_print_str): Fix error handling.
32201 * include/grub/usb.h (grub_usb_get_string): Remove.
32202
32203 UTF-8 to UTF-16 transformation.
32204
32205 * conf/common.rmk (pkglib_MODULES): Add charset.mod
32206 (charset_mod_SOURCES): New variable.
32207 (charset_mod_CFLAGS): Likewise.
32208 (charset_mod_LDFLAGS): Likewise.
32209 * include/grub/utf.h: New file.
32210 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
32211
32212 Support for device properties.
32213
32214 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
32215 (grub_xnu_devprop_device_header): Likewise.
32216 (grub_xnu_devprop_device_descriptor): Likewise.
32217 (grub_xnu_devprop_add_device): New prototype.
32218 (grub_xnu_devprop_remove_device): Likewise.
32219 (grub_xnu_devprop_remove_property): Likewise.
32220 (grub_xnu_devprop_add_property_utf8): Likewise.
32221 (grub_xnu_devprop_add_property_utf16): Likewise.
32222 (grub_cpu_xnu_init): Likewise.
32223 (grub_cpu_xnu_fini): Likewise.
32224 (grub_cpu_xnu_unload): Likewise.
32225 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
32226 (property_descriptor): Likewise.
32227 (devices): New variable.
32228 (grub_xnu_devprop_remove_property): New function.
32229 (grub_xnu_devprop_add_device): Likewise.
32230 (grub_xnu_devprop_remove_device): Likewise.
32231 (grub_xnu_devprop_add_property): Likewise.
32232 (grub_xnu_devprop_add_property_utf8): Likewise.
32233 (grub_xnu_devprop_add_property_utf16): Likewise.
32234 (hextoval): Likewise.
32235 (grub_cpu_xnu_fill_devprop): Likewise.
32236 (grub_cmd_devprop_load): Likewise.
32237 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
32238 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
32239 (cmd_devprop_load): New variable.
32240 (grub_cpu_xnu_init): New function.
32241 (grub_cpu_xnu_fini): Likewise.
32242 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
32243 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
32244 (grub_cmd_xnu_devtree): Likewise.
32245 (hextoval): New function.
32246 (unescape): Likewise.
32247 (grub_xnu_fill_devicetree): Likewise.
32248
32249 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
32250 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
32251
32252 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
32253
32254 Workaround for broken ATI VBE.
32255
32256 * video/i386/pc/vbe.c (last_set_mode): New variable.
32257 (grub_vbe_set_video_mode): Set 'last_set_mode'.
32258 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
32259 (grub_video_vbe_setup): Don't check for reserved flag.
32260
32261 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
32262
32263 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
32264 the `find' command.
32265
32266 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
32267
32268 UUID support for HFS.
32269
32270 * fs/hfs.c (grub_hfs_uuid): New function.
32271 (grub_hfs_fs): New value .uuid.
32272 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
32273
32274 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
32275
32276 Fix a segfault with parsing unknown long options.
32277
32278 * util/grub-mkrelpath.c (options): Zero terminate it.
32279
32280 2009-12-13 Carles Pina i Estany <carles@pina.cat>
32281
32282 * include/grub/misc.h (grub_puts): New declaration.
32283 (grub_puts_): Likewise.
32284 * kern/misc.c (grub_puts): New definition.
32285 (grub_puts_): Likewise.
32286
32287 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
32288
32289 * util/grub-probe.c (probe): Improve error message.
32290
32291 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
32292
32293 * loader/i386/multiboot_elfxx.c
32294 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
32295 initialization.
32296
32297 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
32298
32299 Relocator framework
32300
32301 * loader/i386/xnu_helper.S: Removed. All users updated.
32302 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
32303 (relocator_mod_SOURCES): New variable.
32304 (relocator_mod_CFLAGS): Likewise.
32305 (relocator_mod_LDFLAGS): Likewise.
32306 (relocator_mod_ASFLAGS): Likewise.
32307 * conf/x86_64.rmk: Likewise.
32308 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
32309 (grub_multiboot_payload_entry_offset): Likewise.
32310 (grub_multiboot_forward_relocator): Likewise.
32311 (grub_multiboot_forward_relocator_end): Likewise.
32312 (grub_multiboot_backward_relocator): Likewise.
32313 (grub_multiboot_backward_relocator_end): Likewise.
32314 (grub_multiboot_payload_eip): New variable.
32315 (grub_multiboot_payload_orig): Likewise.
32316 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
32317 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
32318 * include/grub/i386/memory.h
32319 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
32320 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
32321 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
32322 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
32323 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
32324 * include/grub/i386/relocator.h: New file.
32325 * include/grub/x86_64/relocator.h: Likewise.
32326 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
32327 (XNU_RELOCATOR): New macro.
32328 (grub_xnu_launcher_start): Remove.
32329 (grub_xnu_launcher_end): Likewise.
32330 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
32331 (grub_xnu_heap_real_start): Remove.
32332 (grub_xnu_heap_start): Change to void *. All users updated.
32333 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
32334 * lib/i386/relocator.c: New file.
32335 * lib/i386/relocator_asm.S: Likewise.
32336 * lib/i386/relocator_backward.S: Likewise.
32337 * lib/mips/relocator.c: Likewise.
32338 * lib/mips/relocator_asm.S: Likewise.
32339 * lib/relocator.c: Likewise.
32340 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
32341 (entry): Removed.
32342 (playground): Likewise.
32343 (grub_multiboot_payload_orig): New variable.
32344 (grub_multiboot_payload_dest): Likewise.
32345 (grub_multiboot_payload_size): Likewise.
32346 (grub_multiboot_payload_eip): Likewise.
32347 (grub_multiboot_payload_esp): Likewise.
32348 (grub_multiboot_boot): Use grub_relocator32_boot.
32349 (grub_multiboot_unload): Free relocators.
32350 (grub_multiboot): Setup stack. Use relocators.
32351 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
32352 (grub_multiboot_load_elfXX): Use relocators.
32353 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
32354 (grub_multiboot_payload_size): Likewise.
32355 (grub_multiboot_payload_dest): Likewise.
32356 (grub_multiboot_payload_entry_offset): Likewise.
32357 (grub_multiboot_forward_relocator): Likewise.
32358 (grub_multiboot_backward_relocator): Likewise.
32359 (grub_multiboot_real_boot): Likewise.
32360 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
32361 (grub_xnu_entry_point): Likewise.
32362 (grub_xnu_arg1): Likewise.
32363 (grub_xnu_stack): Likewise.
32364 (grub_xnu_launch): Removed.
32365 (grub_xnu_boot_resume): New function.
32366 (grub_xnu_boot): Use relocators.
32367 * loader/i386/xnu_helper.S: Removed.
32368 * loader/xnu.c (grub_xnu_heap_start): New variable.
32369 (grub_xnu_heap_size): Likewise.
32370 (grub_xnu_heap_malloc): Use relocators.
32371 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
32372
32373 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
32374
32375 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
32376 anything.
32377
32378 2009-12-13 Carles Pina i Estany <carles@pina.cat>
32379
32380 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
32381 GRUB_ERR_NONE before calling grub_env_set.
32382
32383 2009-12-12 Robert Millan <rmh@aybabtu.com>
32384
32385 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
32386 * genmk.rb (video): New variable.
32387 (CLEANFILES, VIDEOFILES): Add #{video}.
32388 (#{video}): New target rule.
32389 * genvideolist.sh: New file.
32390 * Makefile.in (pkglib_DATA): Add video.lst.
32391 (video.lst): New target rule.
32392 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
32393 `video.lst'.
32394 * util/grub.d/30_os-prober.in: Replace `vbe' with
32395 ${GRUB_VIDEO_BACKEND}.
32396
32397 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
32398
32399 * THANKS: Add David Miller.
32400
32401 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
32402
32403 libpciaccess support.
32404
32405 * Makefile.in (LIBPCIACCESS): New variable.
32406 (enable_grub_emu_pci): Likewise.
32407 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
32408 util/pci.c and commands/lspci.c.
32409 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
32410 * configure.ac (grub-emu-pci): New option.
32411 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
32412 (grub_pci_device_unmap_range): Likewise.
32413 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
32414 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
32415 (grub_pci_address_t) [!GRUB_UTIL]: New type.
32416 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
32417 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
32418 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
32419 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
32420 * include/grub/pciutils.h: New file.
32421 * util/pci.c: Likewise.
32422
32423 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
32424
32425 * util/misc.c: Don't include <errno.h> twice.
32426
32427 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
32428
32429 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
32430 name in an error message.
32431 (grub_biosdisk_rw): Likewise.
32432
32433 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
32434
32435 Eliminate NTFS 4Gib barrier.
32436
32437 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
32438 (read_run_data): Likewise.
32439 (grub_ntfs_read_run_list): Likewise.
32440 (grub_ntfs_read_block): Likewise.
32441 (grub_ntfs_iterate_dir): Likewise.
32442 (read_mft): Likewise.
32443 (read_data): Likewise.
32444 Use COM_LOG_LEN.
32445 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
32446 to avoid 64-bit division
32447 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
32448 (grub_ntfs_rlst): Use grub_disk_addr_t.
32449
32450 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
32451
32452 Eliminate grub-fstest 4Gib barrier.
32453
32454 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
32455 (read_file): Fix error reporting.
32456
32457 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
32458
32459 Eliminate hexdump 4Gib barrier.
32460
32461 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
32462 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
32463
32464 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
32465
32466 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
32467 Fixes amarsh bug.
32468
32469 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
32470
32471 Remove miscellaneous files in distclean target.
32472
32473 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
32474
32475 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
32476
32477 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
32478 if they're already set. This resolves the conflict between my
32479 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
32480 fixing the --grub-probe option again.
32481 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
32482 change on 2009-10-06, so that we now once again source
32483 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
32484
32485 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
32486
32487 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
32488 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
32489 `util/devicemap.c'.
32490
32491 2009-12-08 Carles Pina i Estany <carles@pina.cat>
32492
32493 * include/grub/misc.h (grub_printf_): New declaration.
32494 * kern/misc.c (grub_printf_): New definition.
32495 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
32496 instead of `grub_printf' and `_'.
32497 * normal/menu_entry.c (store_completion): Likewise.
32498 (run): Likewise.
32499 (grub_menu_entry_run): Likewise.
32500 * normal/menu_text.c (grub_wait_after_message): Likewise.
32501 (notify_booting): Likewise.
32502 (notify_fallback): Likewise.
32503 (notify_execution_failure): Likewise.
32504
32505 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
32506
32507 * configure.ac: Check for vasprintf.
32508 * util/misc.c (asprintf): Move allocation from here ...
32509 (vasprintf): ... to here. New function.
32510 (xasprintf): New function.
32511 * include/grub/util/misc.h (vasprintf, xasprintf): Add
32512 prototypes.
32513 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
32514 * util/grub-mkfont.c (write_font): Likewise.
32515 * util/grub-probe.c (probe): Likewise.
32516 * util/hostdisk.c (make_device_name): Likewise.
32517
32518 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
32519
32520 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
32521 anything even prefixed with 'cdrom' as a cdrom.
32522
32523 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
32524
32525 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
32526 mount points.
32527
32528 2009-12-05 Carles Pina i Estany <carles@pina.cat>
32529
32530 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
32531 grub_gettext_msg_list.
32532 (grub_gettext_gettranslation_from_position): Return const char *
32533 and not char *.
32534 (grub_gettext_translate): Add the translated strings into a list,
32535 returns from the list if existing there.
32536 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
32537 (grub_gettext_delete_list): Delete the list.
32538 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
32539 lang environment variable is changed.
32540 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
32541
32542 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
32543
32544 Rename kernel.mod to kernel.img.
32545
32546 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
32547 (kernel_mod_EXPORTS): Rename to ...
32548 (kernel_img_EXPORTS): ... this.
32549 (kernel_mod_SOURCES): Rename to ...
32550 (kernel_img_SOURCES): ... this.
32551 (kernel_mod_HEADERS): Rename to ...
32552 (kernel_img_HEADERS): ... this. All users updated.
32553 (kernel_mod_CFLAGS): Rename to ...
32554 (kernel_img_CFLAGS): ... this.
32555 (kernel_mod_ASFLAGS): Rename to ...
32556 (kernel_img_ASFLAGS): ... this.
32557 (kernel_mod_LDFLAGS): Rename to ...
32558 (kernel_img_LDFLAGS): ... this.
32559 * conf/x86_64-efi.rmk: Likewise.
32560 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
32561 (read_kernel_image): ... this. All users updated.
32562 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
32563
32564 2009-12-05 Carles Pina i Estany <carles@pina.cat>
32565
32566 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
32567 (print_spaces): New function.
32568 (grub_print_ucs4): New function.
32569 (getstringwidth): New function.
32570 (print_message_indented): New function.
32571 (print_message): Gettexttize strings using print_message_indented.
32572 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
32573 width.
32574 (get_entry_number): Gettextize and uses dynamic terminal width.
32575 (notify_booting, notify_fallback, notify_execution_failure):
32576 Gettextize.
32577 * normal/menu_entry.c (store_completion): Cleanup the gettextized
32578 string.
32579 (run): Likewise.
32580 (grub_menu_entry_run): Likewise.
32581 * PO/POTFILES: Add normal/menu_entry.c.
32582
32583 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
32584
32585 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
32586
32587 2009-12-05 Carles Pina i Estany <carles@pina.cat>
32588
32589 * util/grub-install.in: Install gettext .mo files.
32590 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
32591
32592 2009-12-05 Carles Pina i Estany <carles@pina.cat>
32593
32594 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
32595 grub_dprintf.
32596
32597 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
32598
32599 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
32600 non-firmware-dependant one in realmode.S takes precedence.
32601
32602 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
32603
32604 * commands/halt.c: Replace misc arch-specific headers with
32605 `<grub/misc.h>'.
32606 * commands/reboot.c: Likewise.
32607 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
32608 `<grub/misc.h>'.
32609 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
32610 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
32611 (kernel_img_SOURCES): ... to here.
32612
32613 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
32614 * include/grub/i386/pc/init.h: Likewise.
32615 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
32616 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
32617
32618 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
32619
32620 * include/grub/i386/halt.h: Remove.
32621 * include/grub/i386/reboot.h: Likewise.
32622
32623 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
32624
32625 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
32626
32627 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
32628 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
32629 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
32630 "progname.h"
32631 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
32632 * util/sparc64/ieee1275/grub-setup.c: Likewise.
32633 (usage): Add missing comma in printf.
32634
32635 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
32636
32637 Use the same reboot approach on i386 coreboot and qemu as we do on
32638 BIOS.
32639
32640 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
32641 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
32642 * kern/i386/reboot.c: Remove.
32643 * include/grub/i386/reboot.h (grub_reboot): Export function.
32644 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
32645 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
32646 0xf000:0xfff0 instead of 0xffff:0x0000.
32647 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
32648 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
32649
32650 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
32651
32652 Fix $srcdir != $objdir build.
32653
32654 * Makefile.in (po/%.po): Rewrite as ...
32655 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
32656
32657 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
32658
32659 Fix GNU/Hurd grub-install crash.
32660 * util/grub-probe.c (probe): Try to access `path' only when it is not
32661 NULL.
32662
32663 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
32664
32665 Correct module naming.
32666
32667 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
32668 (GRUB_MOD_INIT(efi_uga)): ... to this
32669 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
32670 (GRUB_MOD_FINI(efi_uga)): ... to this
32671 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
32672 (GRUB_MOD_INIT(efi_gop)): ... to this
32673 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
32674 (GRUB_MOD_FINI(efi_gop)): ... to this
32675
32676 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
32677
32678 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
32679 translatable.
32680 (usage): Translate `arg' strings using gettext().
32681 Thanks to Jordi Mallach for the suggestion.
32682
32683 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
32684
32685 GOP support. Based on patch from Bean
32686 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
32687
32688 * video/efi_gop.c: New file.
32689 * include/grub/efi/graphics_output.h: Likewise.
32690 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
32691 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
32692 variables.
32693 * conf/x86_64-efi.rmk: Likewise.
32694
32695 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
32696
32697 Rename efi_fb to efi_uga.
32698
32699 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
32700 'efi_uga.mod'.
32701 (efi_fb_mod_SOURCES): Rename this ...
32702 (efi_uga_mod_SOURCES): ... to this.
32703 (efi_fb_mod_CFLAGS): Rename this ...
32704 (efi_uga_mod_CFLAGS): ... to this.
32705 (efi_fb_mod_LDFLAGS): Rename this ...
32706 (efi_uga_mod_LDFLAGS): ... to this.
32707 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
32708 'efi_uga.mod'.
32709 (efi_fb_mod_SOURCES): Rename this ...
32710 (efi_uga_mod_SOURCES): ... to this.
32711 (efi_fb_mod_CFLAGS): Rename this ...
32712 (efi_uga_mod_CFLAGS): ... to this.
32713 (efi_fb_mod_LDFLAGS): Rename this ...
32714 (efi_uga_mod_LDFLAGS): ... to this.
32715 * video/efi_fb.c: Move this ...
32716 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
32717
32718 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
32719
32720 * po/README: New file. Explain our PO file workflow.
32721
32722 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
32723
32724 * po/ChangeLog: Remove. Move relevant entries back to ...
32725 * ChangeLog: ... here.
32726 * po/ca.po: Remove (now handled by TLP).
32727 * po/id.po: Likewise.
32728 * po/zh_CN.po: Likewise.
32729 * Makefile.in (LINGUAS): Initialize in a way that supports
32730 empty set.
32731
32732 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
32733
32734 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
32735 reliing on po/LINGUAS.
32736 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
32737 (po/%.po): ... this.
32738
32739 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
32740
32741 * util/i386/efi/grub-mkimage.c: Include "progname.h".
32742 (main): Use `program_name' instead of nonexistent `progname'.
32743
32744 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
32745
32746 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
32747 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
32748
32749 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
32750
32751 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
32752 commit.
32753 * conf/i386-efi.rmk: Likewise.
32754 * conf/i386-ieee1275.rmk: Likewise.
32755 * conf/powerpc-ieee1275.rmk: Likewise.
32756 * conf/sparc64-ieee1275.rmk: Likewise.
32757 * conf/x86_64-efi.rmk: Likewise.
32758
32759 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
32760
32761 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
32762
32763 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
32764
32765 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
32766
32767 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
32768
32769 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
32770 (grub_mkdevicemap_SOURCES): New variable.
32771 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
32772 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
32773 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
32774 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
32775 (grub_mkdevicemap_SOURCES): Remove.
32776 * conf/i386-efi.rmk: Likewise.
32777 * conf/i386-ieee1275.rmk: Likewise.
32778 * conf/i386-pc.rmk: Likewise.
32779 * conf/powerpc-ieee1275.rmk: Likewise.
32780 * conf/sparc64-ieee1275.rmk: Likewise.
32781 * conf/x86_64-efi.rmk: Likewise.
32782 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
32783 (usage): Fix strings to use `program_name'.
32784 (main): Initialize gettext.
32785 * util/grub-editenv.c: Likewise.
32786 * util/grub-emu.c: Likewise.
32787 * util/grub-fstest.c: Likewise.
32788 * util/grub-mkdevicemap.c: Likewise.
32789 * util/grub-mkfont.c: Likewise.
32790 * util/grub-mkrelpath.c: Likewise.
32791 * util/grub-pe2elf.c: Likewise.
32792 * util/grub-probe.c: Likewise.
32793 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
32794 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
32795 * util/sparc64/ieee1275/grub-setup.c: Likewise.
32796
32797 * util/misc.c: Include `"progname.h"'.
32798 (progname): Remove variable.
32799 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
32800
32801 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
32802
32803 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
32804 printf and print a newline after the menuentry header line.
32805 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
32806
32807 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
32808
32809 autoconf >= 2.60 support $(localedir).
32810
32811 * INSTALL: Note that autoconf 2.60 is required.
32812 * configure.ac (AC_PREREQ): Bump to 2.60.
32813 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
32814 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
32815
32816 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
32817
32818 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
32819 aclocal is run.
32820
32821 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
32822
32823 * normal/main.c (grub_normal_read_line): Fix off-by-one
32824 buffer overflow.
32825
32826 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
32827
32828 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
32829 "parser.grub" in grub_command_execute() call.
32830
32831 2009-11-24 Carles Pina i Estany <carles@pina.cat>
32832
32833 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
32834 * conf/i386-efi.rmk: Likewise.
32835 * conf/i386-ieee1275.rmk: Likewise.
32836 * conf/i386-pc.rmk: Likewise.
32837 * conf/powerpc-ieee1275.rmk: Likewise.
32838 * conf/sparc64-ieee1275.rmk: Likewise.
32839 * conf/x86_64-efi.rmk: Likewise.
32840 * gettext/gettex.c: Include <grub/i18n.h>.
32841 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
32842 here ...
32843 * include/grub/i18n.h: ... to here
32844 * include/grub/i18n.h: ... to here.
32845 * kern/misc.c: Include <grub/i18n.h>
32846 (grub_gettext_dummy): Move above user.
32847
32848 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
32849
32850 * util/Makefile.in (install-local): Convert a `for' into a normal
32851 shell expansion.
32852
32853 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
32854
32855 * autogen.sh: Add automake call.
32856 * config.guess: Remove.
32857 * config.sub: Likewise.
32858 * install-sh: Likewise.
32859
32860 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
32861
32862 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
32863
32864 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
32865
32866 * util/Makefile.in (install-local): Convert a make `$(foreach)'
32867 function to a normal shell `for'.
32868
32869 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
32870
32871 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
32872
32873 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
32874
32875 * util/grub-mkrelpath.c: New file.
32876 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
32877 (grub_mkrelpath_SOURCES): New variable.
32878 * include/grub/util/misc.h: New function prototype.
32879 * util/misc.c (make_system_path_relative_to_its_root): New function.
32880
32881 * util/grub-mkconfig_lib.in (bindir): New variable.
32882 (grub_mkrelpath): Likewise.
32883 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
32884
32885 * util/probe.c (probe): Make the file path relative to its root.
32886 Change a info message to use the GRUB path. Enable again the
32887 check if we can read the file with GRUB facilities.
32888
32889 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
32890 to its root.
32891
32892 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
32893
32894 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
32895 platform.
32896
32897 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
32898
32899 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
32900 strncmp().
32901
32902 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
32903
32904 * util/getroot.c (grub_util_is_dmraid): New function.
32905 (grub_util_get_dev_abstraction): Treat dmraid and multipath
32906 devices as normal ones, not as LVM.
32907
32908 2009-11-23 Carles Pina i Estany <carles@pina.cat>
32909
32910 * conf/common.rmk: Add grub-gettext_lib target and updates
32911 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
32912 LDFLAGS.
32913 * gettext/gettext.c: New file. (Reads mo files).
32914 * include/grub/file.h (grub_file_pread): New prototype.
32915 * include/grub/i18n.h (_): New prototype.
32916 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
32917 prototypes.
32918 * kern/misc.c (grub_gettext_dummy): New function.
32919 * normal/menu_text.c: Include <grub/i18n.h>.
32920 * normal/menu_text.c (print_timeout): Gettexttize string.
32921 * normal/menu_text.c (print_message): Gettexttize string.
32922 * po/POTFILES: Add `normal/menu_text.c'.
32923 * po/ca.po: Add new translations.
32924 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
32925 gettext module and defines locale_dir and lang in grub.cfg.
32926 * NEWS: Add gettext support.
32927
32928 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
32929
32930 * util/hostdisk.c: Include `<grub/i18n.h>'.
32931 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
32932 (make_device_name): Rewrite using asprintf.
32933 (convert_system_partition_to_system_disk): Replace 0 with NULL.
32934 (find_system_device): If a device is not found, generate one just
32935 by reusing the OS path name.
32936 (read_device_map): Make it permissible for device.map not to exist.
32937
32938 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
32939
32940 * script/sh/execute.c: Move from here ...
32941 * script/execute.c: ... to here. Update all users.
32942 * script/sh/function.c: Move from here ...
32943 * script/function.c: ... to here. Update all users.
32944 * script/sh/lexer.c: Move from here ...
32945 * script/lexer.c: ... to here. Update all users.
32946 * script/sh/main.c: Move from here ...
32947 * script/main.c: ... to here. Update all users.
32948 * script/sh/parser.y: Move from here ...
32949 * script/parser.y: ... to here. Update all users.
32950 * script/sh/script.c: Move from here ...
32951 * script/script.c: ... to here. Update all users.
32952
32953 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
32954
32955 * configure.ac: Detect all `emu' platforms. Define
32956 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
32957 --enable-grub-emu logic. Disable include/grub/machine
32958 symlink on `emu' platforms.
32959
32960 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
32961 * gensymlist.sh.in: Likewise.
32962
32963 * include/grub/i386/coreboot/machine.h: Remove file.
32964 * include/grub/i386/efi/machine.h: Likewise.
32965 * include/grub/i386/ieee1275/machine.h: Likewise.
32966 * include/grub/i386/pc/machine.h: Likewise.
32967 * include/grub/i386/qemu/machine.h: Likewise.
32968 * include/grub/powerpc/ieee1275/machine.h: Likewise.
32969 * include/grub/sparc64/ieee1275/machine.h: Likewise.
32970 * include/grub/x86_64/efi/machine.h: Likewise.
32971
32972 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
32973 * commands/halt.c: Likewise.
32974 * commands/reboot.c: Likewise.
32975 * include/grub/autoefi.h: Likewise.
32976 * include/grub/i386/at_keyboard.h: Likewise.
32977 * include/grub/i386/kernel.h: Likewise.
32978 * include/grub/i386/loader.h: Likewise.
32979 * include/grub/i386/pc/memory.h: Likewise.
32980 * kern/dl.c: Likewise.
32981 * kern/i386/coreboot/init.c: Likewise.
32982 * loader/i386/bsd.c: Likewise.
32983 * loader/i386/linux.c: Likewise.
32984 * loader/multiboot_loader.c: Likewise.
32985 * term/i386/pc/serial.c: Likewise.
32986 * term/usb_keyboard.c: Likewise.
32987
32988 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
32989 `<grub/machine/machine.h>'
32990 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
32991 * util/misc.c: Remove `<grub/machine/machine.h>' and
32992 `<grub/machine/time.h>'.
32993
32994 * Makefile.in (enable_grub_emu): Remove variable.
32995 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
32996
32997 * conf/any-emu.rmk: New file.
32998 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
32999 (grub_emu_init.c): Move from here ...
33000 * conf/any-emu.rmk: ... to here.
33001
33002 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
33003 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
33004 * conf/any-emu.rmk: ... to here.
33005
33006 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
33007
33008 * include/grub/parser.h (grub_parser_register): Document need
33009 of `name' parameter.
33010 * normal/main.c (grub_normal_read_line): Simplify prompt string.
33011 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
33012 "sh" to "grub".
33013
33014 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
33015
33016 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
33017 `$(XGETTEXT)'.
33018 * include/grub/i18n.h (N_): New macro.
33019 * util/mkisofs/mkisofs.h: Likewise.
33020 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
33021 around N_().
33022 (usage): Use gettext() to translate help strings when printing them.
33023
33024 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
33025
33026 Based on patch from Bean
33027 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
33028
33029 * video/efi_fb.c: New file.
33030 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
33031 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
33032 variables.
33033 * conf/x86_64-efi.rmk: Likewise.
33034
33035 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
33036
33037 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
33038 * util/i386/pc/grub-setup.c: Likewise.
33039
33040 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
33041
33042 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
33043 <hurd/fs.h>
33044 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
33045 file_get_storage_info to implement grub_guess_root_device.
33046
33047 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
33048
33049 * Makefile.in (target): Use make's builtin $(shell) function
33050 instead of calling directly $(SHELL) to create the locale directories,
33051 inside the $(foreach) function.
33052
33053 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
33054
33055 * util/grub-mkrescue.in: Print an error and usage if output option
33056 has not been given.
33057
33058 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
33059
33060 Patch from Loïc Minier <loic.minier@ubuntu.com>.
33061 * util/grub.d/30_os-prober.in: Cope with Linux entries where
33062 root and /boot are on different devices.
33063
33064 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
33065
33066 Fix build for srcdir != objdir.
33067
33068 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
33069 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
33070 $(srcdir).
33071 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
33072 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
33073 reference for input.
33074
33075 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
33076
33077 * util/grub-mkrescue.in: Use source directory direcly (without copiing
33078 or hardlinking it). Remove -J option, Joliet is not compatible with
33079 multiple source directories.
33080
33081 2009-11-21 Carles Pina i Estany <carles@pina.cat>
33082 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
33083
33084 * util/grub-mkrescue.in: Recognize `--override-directory' option.
33085 (process_input_dir): New function. Process an arbitrary input
33086 directory.
33087 Misc adjustments to support both "override mode" and system-wide mode.
33088
33089 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
33090
33091 * configure.ac (UNIFONT_BDF): Rename to ...
33092 (FONT_SOURCE): ... this. Update all users.
33093
33094 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
33095
33096 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
33097 to the list of unifont files to look for.
33098
33099 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
33100
33101 Patch from Joe Auricchio <jauricchio@gmail.com>
33102 * commands/minicmd.c (grub_mini_cmd_clear): New function.
33103 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
33104 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
33105
33106 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
33107
33108 * Makefile.in (install-local): Add a missing backslash.
33109
33110 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
33111
33112 * include/grub/x86_64/io.h: New file.
33113
33114 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
33115
33116 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
33117 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
33118 Include `"progname.h"'.
33119 (main): Initialize gettext.
33120 * util/i386/pc/grub-setup.c: Gettexttize.
33121 * util/i386/pc/grub-mkimage.c: Likewise.
33122
33123 * Makefile.in (po/*.po): Redefine as ...
33124 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
33125
33126 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
33127
33128 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
33129
33130 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
33131 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
33132 (program_name): Remove.
33133 (main): Initialize gettext support.
33134 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
33135 Include `<libintl.h>'.
33136 (_): New macro.
33137
33138 * util/mkisofs/eltorito.c: Gettexttize.
33139 * util/mkisofs/joliet.c: Likewise.
33140 * util/mkisofs/mkisofs.c: Likewise.
33141 * util/mkisofs/multi.c: Likewise.
33142 * util/mkisofs/rock.c: Likewise.
33143 * util/mkisofs/tree.c: Likewise.
33144 * util/mkisofs/write.c: Likewise.
33145
33146 * po/POTFILES: Update with new files.
33147
33148 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
33149
33150 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
33151 * util/mkisofs/iso9660.h: Likewise.
33152 * util/mkisofs/joliet.c: Likewise.
33153 * util/mkisofs/mkisofs.c: Likewise.
33154 * util/mkisofs/mkisofs.h: Likewise.
33155 * util/mkisofs/rock.c: Likewise.
33156 * util/mkisofs/tree.c: Likewise.
33157 * util/mkisofs/write.c: Likewise.
33158
33159 * util/mkisofs/eltorito.c (rcsid): Remove.
33160 * util/mkisofs/hash.c: Likewise.
33161 * util/mkisofs/joliet.c: Likewise.
33162 * util/mkisofs/name.c: Likewise.
33163 * util/mkisofs/rock.c: Likewise.
33164 * util/mkisofs/tree.c: Likewise.
33165 * util/mkisofs/write.c: Likewise.
33166
33167 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
33168
33169 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
33170 instead of static allocation.
33171 * util/mkisofs/match.h: Likewise.
33172
33173 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
33174
33175 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
33176 and `util/grub.d/10_linux.in'.
33177 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
33178 translatable Shell files.
33179
33180 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
33181
33182 * Makefile.in ($(srcdir)/aclocal.m4): New target.
33183
33184 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
33185
33186 * INSTALL: Document Automake is needed for bootstrap.
33187 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
33188 * util/grub.d/10_kfreebsd.in (bindir): New variable.
33189 Add gettext initialization.
33190 (kfreebsd_entry): Make menuentry output translatable.
33191
33192 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
33193
33194 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
33195 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
33196 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
33197 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
33198 (LINGUAS): Auto-generate using `po/LINGUAS'.
33199 * po/LINGUAS: New file.
33200
33201 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
33202
33203 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
33204 other things).
33205 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
33206 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
33207 bindtextdomain() calls for gettext initialization.
33208
33209 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
33210
33211 * gnulib/progname.c: New file (imported from Gnulib).
33212 * gnulib/progname.h: Likewise.
33213 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
33214 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
33215 (usage): Replace `progname' with `program_name'.
33216 (main): Use set_program_name() for program name initialization.
33217
33218 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
33219
33220 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
33221 from here ...
33222 * Makefile.in (CPPFLAGS): ... to here.
33223
33224 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
33225
33226 * aclocal.m4: Move from here ...
33227 * acinclude.m4: ... to here.
33228 * autogen.sh: Add call to `aclocal'.
33229 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
33230
33231 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
33232
33233 * Makefile.in (CLEANFILES): Add `po/*.mo'.
33234 (LINGUAS): New variable.
33235 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
33236 (install-local): Install MO files.
33237 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
33238 * include/grub/i18n.h: New file.
33239 * po/POTFILES: New file.
33240 * po/ca.po: New file.
33241 * util/grub.d/10_linux.in (bindir): New variable.
33242 Add gettext initialization.
33243 (linux_entry): Make menuentry output translatable.
33244 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
33245 (usage): Make --help output translatable.
33246 (main): Initialize gettext.
33247
33248 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
33249
33250 * import_gcry.py: New file (written by Vladimir with minor
33251 adjustments).
33252 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
33253 ciphers.
33254 * INSTALL: Document that Python is required for bootstrap.
33255
33256 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
33257
33258 Import ciphers from libgcrypt 1.4.4.
33259
33260 * lib/libgcrypt/cipher/ChangeLog
33261 * lib/libgcrypt/cipher/ac.c
33262 * lib/libgcrypt/cipher/arcfour.c
33263 * lib/libgcrypt/cipher/bithelp.h
33264 * lib/libgcrypt/cipher/blowfish.c
33265 * lib/libgcrypt/cipher/camellia-glue.c
33266 * lib/libgcrypt/cipher/camellia.c
33267 * lib/libgcrypt/cipher/camellia.h
33268 * lib/libgcrypt/cipher/cast5.c
33269 * lib/libgcrypt/cipher/cipher.c
33270 * lib/libgcrypt/cipher/crc.c
33271 * lib/libgcrypt/cipher/des.c
33272 * lib/libgcrypt/cipher/dsa.c
33273 * lib/libgcrypt/cipher/ecc.c
33274 * lib/libgcrypt/cipher/elgamal.c
33275 * lib/libgcrypt/cipher/hash-common.c
33276 * lib/libgcrypt/cipher/hash-common.h
33277 * lib/libgcrypt/cipher/hmac-tests.c
33278 * lib/libgcrypt/cipher/md.c
33279 * lib/libgcrypt/cipher/md4.c
33280 * lib/libgcrypt/cipher/md5.c
33281 * lib/libgcrypt/cipher/primegen.c
33282 * lib/libgcrypt/cipher/pubkey.c
33283 * lib/libgcrypt/cipher/rfc2268.c
33284 * lib/libgcrypt/cipher/rijndael-tables.h
33285 * lib/libgcrypt/cipher/rijndael.c
33286 * lib/libgcrypt/cipher/rmd.h
33287 * lib/libgcrypt/cipher/rmd160.c
33288 * lib/libgcrypt/cipher/rsa.c
33289 * lib/libgcrypt/cipher/seed.c
33290 * lib/libgcrypt/cipher/serpent.c
33291 * lib/libgcrypt/cipher/sha1.c
33292 * lib/libgcrypt/cipher/sha256.c
33293 * lib/libgcrypt/cipher/sha512.c
33294 * lib/libgcrypt/cipher/tiger.c
33295 * lib/libgcrypt/cipher/twofish.c
33296 * lib/libgcrypt/cipher/whirlpool.c
33297
33298 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
33299
33300 Fix build for systems without error().
33301
33302 * gnulib/error.c: New file (imported from Gnulib).
33303 * gnulib/error.h: Likewise.
33304 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
33305 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
33306 (this variable is now used by error()).
33307
33308 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
33309
33310 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
33311 instead of relying that char is signed.
33312
33313 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
33314
33315 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
33316 blocksize different from specified.
33317 (grub_pxefs_read): Likewise.
33318
33319 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
33320
33321 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
33322
33323 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
33324 (grub_ata_readwrite): Likewise. Update 2 format strings.
33325 (grub_atapi_read): Likewise.
33326
33327 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
33328 * conf/i386.rmk (pkglib_MODULES): ... to here ...
33329 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
33330 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
33331 (ata_mod_LDFLAGS): Move from here ...
33332 * conf/i386.rmk: ... to here ...
33333 * conf/x86_64-efi.rmk: ... and here.
33334 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
33335 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
33336
33337 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
33338
33339 Relicense multiboot.h, with RMS' blessing.
33340
33341 * include/multiboot.h: Change to X11 license.
33342
33343 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
33344
33345 Support --version in grub-mkisofs.
33346
33347 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
33348 (OPTION_VERSION): New macro.
33349 (ld_options): Recognize --version.
33350 (usage): Move `program_name' from here ...
33351 (program_name): ... to here. Add `static' qualifier.
33352 (main): Recognize `OPTION_VERSION'.
33353
33354 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
33355
33356 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
33357 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
33358
33359 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
33360
33361 Fix help2man generation for mkisofs.
33362
33363 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
33364 (usage): Send output to stdout (rather than stderr).
33365
33366 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
33367
33368 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
33369 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
33370 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
33371 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
33372 (bin_SCRIPTS): Add `grub-mkfloppy'.
33373 (grub_mkfloppy_SOURCES): New variable.
33374
33375 * util/grub-mkrescue.in: New file.
33376 * util/i386/pc/grub-mkfloppy.in: New file.
33377
33378 * util/i386/coreboot/grub-mkrescue.in: Remove.
33379 * util/i386/pc/grub-mkrescue.in: Remove.
33380
33381 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
33382
33383 * include/grub/multiboot.h (struct grub_multiboot_header): Move
33384 from here ...
33385 * include/multiboot.h (struct multiboot_header): ... to here. Update
33386 all users.
33387 * include/grub/multiboot.h (struct grub_multiboot_info): Move
33388 from here ...
33389 * include/multiboot.h (struct multiboot_info): ... to here. Update
33390 all users.
33391 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
33392 from here ...
33393 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
33394 Update all users.
33395 * include/grub/multiboot.h (struct grub_mod_list): Move
33396 from here ...
33397 * include/multiboot.h (struct multiboot_mod_list): ... to here.
33398 Update all users.
33399
33400 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
33401
33402 * include/multiboot2.h (multiboot_word): Rename from this ...
33403 (multiboot2_word): ... to this. Update all users.
33404 (multiboot_header): Rename from this ...
33405 (multiboot2_header): ... to this. Update all users.
33406 (multiboot_tag_header): Rename from this ...
33407 (multiboot2_tag_header): ... to this. Update all users.
33408 (multiboot_tag_start): Rename from this ...
33409 (multiboot2_tag_start): ... to this. Update all users.
33410 (multiboot_tag_name): Rename from this ...
33411 (multiboot2_tag_name): ... to this. Update all users.
33412 (multiboot_tag_module): Rename from this ...
33413 (multiboot2_tag_module): ... to this. Update all users.
33414 (multiboot_tag_memory): Rename from this ...
33415 (multiboot2_tag_memory): ... to this. Update all users.
33416 (multiboot_tag_unused): Rename from this ...
33417 (multiboot2_tag_unused): ... to this. Update all users.
33418 (multiboot_tag_end): Rename from this ...
33419 (multiboot2_tag_end): ... to this. Update all users.
33420
33421 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
33422
33423 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
33424 this platform we should support Multiboot1 first.
33425
33426 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
33427 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
33428 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
33429
33430 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
33431
33432 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
33433 of write calls (converting them to fwrite() if they aren't already).
33434 (get_torito_desc): Likewise.
33435 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
33436
33437 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
33438
33439 * util/i386/pc/grub-install.in: Move from here ...
33440 * util/grub-install.in: ... to here. Update all users.
33441
33442 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
33443
33444 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
33445
33446 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
33447
33448 Support for El Torito without floppy emulation.
33449
33450 * util/mkisofs/eltorito.c: Include `<errno.h>'.
33451 (init_boot_catalog): Improve error handling.
33452 (get_torito_desc): Don't use floppy emulation unless requested by
33453 user. Patch boot information table when requested via
33454 `-boot-info-table'.
33455 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
33456 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
33457 (use_boot_info_table): New variables.
33458 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
33459 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
33460 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
33461 `--eltorito-emul-floppy'.
33462 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
33463 and `OPTION_ELTORITO_EMUL_FLOPPY'.
33464 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
33465 (use_boot_info_table, get_731): New prototypes.
33466 * util/mkisofs/write.c (get_731): New function.
33467
33468 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
33469
33470 Fix the generation of the man page.
33471
33472 * util/pc/i386/grub-install.in: Source
33473 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
33474
33475 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
33476
33477 Large file support for grub-mkisofs.
33478
33479 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
33480 * util/mkisofs/mkisofs.c (next_extent, last_extent)
33481 (session_start): Upgrade type to `uint64_t'. Update all users.
33482 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
33483 (struct directory_entry): Upgrade type of `starting_block' and
33484 `size' to `uint64_t'. Update all users.
33485 (struct deferred): Remove unused structure.
33486 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
33487 Update all users.
33488 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
33489 file is larger than `UINT32_MAX'.
33490 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
33491 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
33492 return value.
33493 (struct deferred_write): Upgrade type of `extent' and `size' to
33494 `uint64_t'. Update all users.
33495 (last_extent_written): Upgrade type to `uint64_t'. Update all
33496 users.
33497 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
33498 Update all users. Upgrade type of `remain' to `int64_t' and
33499 `use' to `size_t'. Use error() to handle fread() errors.
33500 (write_files): Rely on write_one_file() rather than calling
33501 xfwrite() directly.
33502
33503 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
33504
33505 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
33506
33507 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
33508
33509 * util/mkisofs/fnmatch.c: Remove.
33510 * util/mkisofs/getopt1.c: Likewise.
33511 * util/mkisofs/getopt.c: Likewise.
33512 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
33513 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
33514 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
33515 `gnulib/getopt1.c' and `gnulib/getopt.c'.
33516 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
33517
33518 * configure.ac: Detect `mingw32msvc' host_os.
33519 Check for lstat(), getuid() and getgid().
33520
33521 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
33522 instances of `u_char' with `uint8_t'.
33523
33524 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
33525 [!HAVE_GETUID] (getuid): New function (stub).
33526 [!HAVE_GETGID] (getgid): Likewise.
33527 [!HAVE_LSTAT] (lstat): Likewise.
33528 [!S_IROTH] (S_IROTH): New macro (dummy).
33529 [!S_IRGRP] (S_IRGRP): Likewise.
33530
33531 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
33532
33533 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
33534 conditional expression).
33535
33536 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
33537
33538 Import from Gnulib.
33539
33540 * gnulib/fnmatch.c: New file.
33541 * gnulib/fnmatch.h: Likewise.
33542 * gnulib/fnmatch_loop.c: Likewise.
33543 * gnulib/getopt.c: Likewise.
33544 * gnulib/getopt.h: Likewise.
33545 * gnulib/getopt1.c: Likewise.
33546 * gnulib/getopt_int.h: Likewise.
33547 * gnulib/gettext.h: Likewise.
33548
33549 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
33550
33551 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
33552 * normal/handler.c (read_handler_list): Likewise.
33553
33554 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
33555
33556 Misc cleanup.
33557
33558 * kern/command.c (grub_register_command_prio): Use
33559 grub_zalloc() instead of explicitly zeroing data.
33560 * kern/list.c: Include `<grub/mm.h>'.
33561 (grub_named_list_find): Replace `0' with `NULL'.
33562 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
33563 (fs_module_list): Change type to `grub_named_list_t'. Update all
33564 users.
33565 * normal/dyncmd.c (read_command_list): Add space between function
33566 call and parenthesis.
33567 * normal/handler.c (read_handler_list): Likewise.
33568
33569 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
33570
33571 * normal/auth.c (punishment_delay): Moved from here ...
33572 (grub_auth_strcmp): ... to here (inside function).
33573
33574 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
33575
33576 * include/grub/list.h (struct grub_named_list): Remove `const'
33577 qualifier from `name'.
33578 (struct grub_prio_list): Likewise.
33579
33580 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
33581
33582 * normal/auth.c: Include `<grub/time.h>'.
33583 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
33584
33585 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
33586
33587 * normal/auth.c (punishment_delay): New variable.
33588 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
33589 (grub_auth_check_authentication): Punish failed login attempts with
33590 an incremental (2^N) delay.
33591
33592 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
33593
33594 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
33595 path with $(srcdir).
33596
33597 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
33598
33599 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
33600
33601 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
33602
33603 * util/i386/coreboot/grub-mkrescue.in: New file.
33604 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
33605 variables.
33606
33607 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
33608 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
33609 * configure.ac: Add header and function checks to satisfy grub-mkisofs
33610 requirements.
33611 * util/mkisofs/defaults.h: New file.
33612 * util/mkisofs/eltorito.c: Likewise.
33613 * util/mkisofs/exclude.h: Likewise.
33614 * util/mkisofs/fnmatch.c: Likewise.
33615 * util/mkisofs/getopt.c: Likewise.
33616 * util/mkisofs/getopt1.c: Likewise.
33617 * util/mkisofs/hash.c: Likewise.
33618 * util/mkisofs/include/fctldefs.h: Likewise.
33619 * util/mkisofs/include/mconfig.h: Likewise.
33620 * util/mkisofs/include/prototyp.h: Likewise.
33621 * util/mkisofs/include/statdefs.h: Likewise.
33622 * util/mkisofs/iso9660.h: Likewise.
33623 * util/mkisofs/joliet.c: Likewise.
33624 * util/mkisofs/match.c: Likewise.
33625 * util/mkisofs/match.h: Likewise.
33626 * util/mkisofs/mkisofs.c: Likewise.
33627 * util/mkisofs/mkisofs.h: Likewise.
33628 * util/mkisofs/multi.c: Likewise.
33629 * util/mkisofs/name.c: Likewise.
33630 * util/mkisofs/rock.c: Likewise.
33631 * util/mkisofs/tree.c: Likewise.
33632 * util/mkisofs/write.c: Likewise.
33633
33634 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
33635
33636 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
33637 being insecure.
33638
33639 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
33640
33641 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
33642 `grub-mkimage' (and use $0 when possible).
33643
33644 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
33645
33646 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
33647 error message for excessively large memory map.
33648
33649 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
33650
33651 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
33652 executable bit.
33653
33654 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
33655
33656 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
33657 message for coreboot users.
33658
33659 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
33660
33661 Fix build with GNU gold.
33662
33663 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
33664 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
33665 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
33666 link addresses.
33667 * aclocal.m4: Likewise.
33668
33669 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
33670
33671 * configure.ac (AC_PREREQ): Bump to 2.59d.
33672 * INSTALL: Make it more clear when Autoconf and Ruby are
33673 needed and when to run `./autogen.sh'.
33674
33675 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
33676
33677 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
33678 OSes.
33679
33680 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
33681
33682 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
33683
33684 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
33685
33686 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
33687 giving it to GNU Mach.
33688
33689 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
33690
33691 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
33692 GNU partition number to get internal GRUB partition number.
33693
33694 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
33695
33696 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
33697 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
33698
33699 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
33700
33701 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
33702 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
33703 case.
33704
33705 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
33706
33707 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
33708
33709 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
33710
33711 Fix build problem.
33712
33713 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
33714 `-isystem=$(srcdir)/include'.
33715
33716 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
33717
33718 * util/i386/pc/grub-install.in: Remove hint that device.map should be
33719 checked (grub-install doesn't currently rely on it).
33720
33721 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
33722
33723 Revert SVN r2660.
33724
33725 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
33726 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
33727 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
33728 * conf/i386-ieee1275.rmk: Likewise.
33729 * conf/i386-pc.rmk: Likewise.
33730 * conf/powerpc-ieee1275.rmk: Likewise.
33731 * conf/sparc64-ieee1275.rmk: Likewise.
33732 * conf/x86_64-efi.rmk: Likewise.
33733
33734 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
33735
33736 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
33737
33738 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
33739
33740 * include/grub/misc.h: Stop checking for APPLE_CC.
33741
33742 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
33743
33744 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
33745 doesn't cause an infinite call loop.
33746
33747 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
33748
33749 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
33750 strings.
33751
33752 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
33753
33754 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
33755 variable.
33756 * Makefile.in: Likewise.
33757
33758 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
33759
33760 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
33761
33762 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
33763
33764 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
33765
33766 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
33767
33768 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
33769
33770 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
33771
33772 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
33773 from here ...
33774 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
33775
33776 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
33777
33778 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
33779 in $(MAKEINFO) invocation. This makes it clear in output that
33780 errors are being ignored.
33781
33782 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
33783
33784 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
33785 from here ...
33786 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
33787 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
33788 * conf/i386-ieee1275.rmk: Likewise.
33789 * conf/i386-pc.rmk: Likewise.
33790 * conf/powerpc-ieee1275.rmk: Likewise.
33791 * conf/sparc64-ieee1275.rmk: Likewise.
33792 * conf/x86_64-efi.rmk: Likewise.
33793
33794 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
33795
33796 * util/grub-editenv.c (main): If only a command is given, use
33797 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
33798 (usage): FILENAME is now optional and has a default.
33799
33800 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
33801
33802 Improve grub-mkconfig performance when there are several menu
33803 entries on a single filesystem.
33804
33805 * util/grub.d/10_linux.in (linux_entry): Cache the output of
33806 prepare_grub_to_access_device.
33807 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
33808 * util/grub.d/30_os-prober.in: Likewise.
33809
33810 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
33811
33812 * util/grub.d/10_freebsd.in: Remove.
33813 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
33814 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
33815
33816 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
33817
33818 * docs/grub.cfg: Fix example usage of *BSD loaders.
33819
33820 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
33821
33822 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
33823 grub_util_error() call.
33824
33825 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
33826
33827 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
33828 `reserved_first_sector' member.
33829 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
33830 `reserved_first_sector' to 1.
33831 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
33832 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
33833 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
33834 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
33835 filesystems which begin at first sector.
33836 (options): New option --skip-fs-probe.
33837 (main): Handle --skip-fs-probe and pass it to setup().
33838
33839 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
33840
33841 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
33842 (memset): Fix function prototype.
33843
33844 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
33845 2009-10-25 Vasily Averin <vvs@parallels.com>
33846
33847 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
33848 `dirent.direntlen == 0'.
33849
33850 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
33851
33852 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
33853 `cpio'.
33854 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
33855
33856 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
33857
33858 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
33859 `__trampoline_setup' and `__ucmpdi2'.
33860 * include/grub/powerpc/libgcc.h: Only export symbols for functions
33861 that libgcc provides.
33862
33863 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
33864
33865 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
33866 * include/grub/sparc64/libgcc.h (memset): Likewise.
33867 * include/grub/misc.h (memset, memcmp): New function prototypes.
33868
33869 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
33870
33871 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
33872 `cpio'.
33873 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
33874
33875 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
33876
33877 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
33878 * docs/grub.cfg: Compensate for recent change in multiboot
33879 loader (since 2009-08-14 it won't pass filename to payload).
33880 * util/grub.d/10_hurd.in: Likewise.
33881
33882 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
33883
33884 * config.guess: Update to latest version from config git
33885 repository.
33886 * config.sub: Likewise.
33887
33888 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
33889
33890 Fix build on sparc64.
33891
33892 * configure.ac: Perform checks for libgcc symbols before
33893 adding `-nostdlib' to LDFLAGS.
33894
33895 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
33896
33897 Let user specify OpenBSD root device.
33898
33899 * loader/i386/bsd.c (openbsd_root): New variable.
33900 (openbsd_opts): New option 'root'.
33901 (OPENBSD_ROOT_ARG): New macro.
33902 (grub_openbsd_boot): Use 'openbsd_root'.
33903 (grub_cmd_openbsd): Fill 'openbsd_root'.
33904
33905 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
33906
33907 * NEWS: Misc adjustments.
33908
33909 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
33910
33911 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
33912
33913 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
33914
33915 * configure.ac: Bump version to 1.97.
33916
33917 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
33918
33919 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
33920 -mno-3dnow on x86 architectures. Some toolchains enable these
33921 features by default, but they rely on registers that aren't enabled
33922 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
33923
33924 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
33925
33926 Make entry text a bit more readable.
33927
33928 * util/grub.d/10_linux.in: Add `with' before `Linux'.
33929
33930 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
33931
33932 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
33933
33934 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
33935
33936 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
33937 operations.
33938
33939 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
33940
33941 * configure.ac: Add missing dollar.
33942
33943 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
33944
33945 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
33946
33947 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
33948 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
33949 exports.
33950 * include/grub/sparc64/libgcc.h: Likewise. Use
33951 preprocessor conditionals.
33952
33953 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
33954
33955 * conf/common.rmk (grub-dumpbios): Remove rule.
33956 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
33957 * util/grub-dumpbios.in: Remove file.
33958
33959 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
33960
33961 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
33962 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
33963
33964 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
33965 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
33966 users.
33967
33968 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
33969 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
33970 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
33971 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
33972 users.
33973
33974 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
33975
33976 * term/tparm.c: Switch to GPLv3.
33977
33978 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
33979
33980 * include/grub/i386/cpuid.h: Add header protection.
33981
33982 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
33983
33984 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
33985
33986 * include/grub/i386/cpuid.h: New file.
33987 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
33988 (has_longmode): Rename to ...
33989 (grub_cpuid_has_longmode): ... this. Update all users. Remove
33990 `static' attribute.
33991 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
33992 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
33993 on a CPU that doesn't implement AMD64 instruction set.
33994
33995 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
33996
33997 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
33998 that version.texi is rebuilt on version number changes.
33999
34000 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
34001
34002 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
34003 Fixes bug #27602.
34004
34005 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
34006
34007 * util/i386/pc/grub-install.in: Source
34008 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
34009 that the --grub-probe option will work.
34010 * util/sparc64/ieee1275/grub-install.in: Likewise.
34011
34012 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
34013
34014 * configure.ac: Bump version to 1.97~beta4.
34015
34016 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
34017
34018 Resync grub-mkdevicemap in x86_64-efi.
34019
34020 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
34021 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
34022 `util/devicemap.c'.
34023
34024 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
34025
34026 * util/grub-editenv.c (create_envblk_file): Write new block with a
34027 .new suffix and then rename it into place, to ensure atomic
34028 creation.
34029
34030 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
34031
34032 Do not automatically install headers.
34033
34034 * Makefile.in (include_DATA): Remove. Update all users.
34035
34036 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
34037
34038 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
34039 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
34040
34041 * util/osdetect.lua: Remove.
34042 * script/lua/lauxlib.c: Likewise.
34043 * script/lua/ldebug.c: Likewise.
34044 * script/lua/grub_main.c: Likewise.
34045 * script/lua/lauxlib.h: Likewise.
34046 * script/lua/ldebug.h: Likewise.
34047 * script/lua/ltablib.c: Likewise.
34048 * script/lua/liolib.c: Likewise.
34049 * script/lua/lstrlib.c: Likewise.
34050 * script/lua/lualib.h: Likewise.
34051 * script/lua/ldo.c: Likewise.
34052 * script/lua/ldump.c: Likewise.
34053 * script/lua/ldo.h: Likewise.
34054 * script/lua/loslib.c: Likewise.
34055 * script/lua/lundump.c: Likewise.
34056 * script/lua/grub_lib.c: Likewise.
34057 * script/lua/ldblib.c: Likewise.
34058 * script/lua/lundump.h: Likewise.
34059 * script/lua/lmem.c: Likewise.
34060 * script/lua/grub_lib.h: Likewise.
34061 * script/lua/lmathlib.c: Likewise.
34062 * script/lua/lstate.c: Likewise.
34063 * script/lua/ltm.c: Likewise.
34064 * script/lua/lvm.c: Likewise.
34065 * script/lua/lmem.h: Likewise.
34066 * script/lua/lstate.h: Likewise.
34067 * script/lua/ltm.h: Likewise.
34068 * script/lua/ltable.c: Likewise.
34069 * script/lua/lvm.h: Likewise.
34070 * script/lua/llex.c: Likewise.
34071 * script/lua/lgc.c: Likewise.
34072 * script/lua/grub_lua.h: Likewise.
34073 * script/lua/loadlib.c: Likewise.
34074 * script/lua/lfunc.c: Likewise.
34075 * script/lua/lopcodes.c: Likewise.
34076 * script/lua/lparser.c: Likewise.
34077 * script/lua/ltable.h: Likewise.
34078 * script/lua/llex.h: Likewise.
34079 * script/lua/lgc.h: Likewise.
34080 * script/lua/lfunc.h: Likewise.
34081 * script/lua/lbaselib.c: Likewise.
34082 * script/lua/lopcodes.h: Likewise.
34083 * script/lua/lparser.h: Likewise.
34084 * script/lua/lzio.c: Likewise.
34085 * script/lua/linit.c: Likewise.
34086 * script/lua/lobject.c: Likewise.
34087 * script/lua/llimits.h: Likewise.
34088 * script/lua/lstring.c: Likewise.
34089 * script/lua/lzio.h: Likewise.
34090 * script/lua/lapi.c: Likewise.
34091 * script/lua/lcode.c: Likewise.
34092 * script/lua/lua.h: Likewise.
34093 * script/lua/lobject.h: Likewise.
34094 * script/lua/lstring.h: Likewise.
34095 * script/lua/lapi.h: Likewise.
34096 * script/lua/lcode.h: Likewise.
34097 * script/lua/luaconf.h: Likewise.
34098
34099 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
34100
34101 * docs/grub.texi (Command-line and menu entry commands): Document
34102 date and echo commands.
34103
34104 2009-09-24 Pavel Roskin <proski@gnu.org>
34105
34106 * include/grub/kernel.h (struct grub_module_header): Remove
34107 `grub_module_header_types'. Make `type' unsigned. Make `size'
34108 32-bit on all platforms.
34109 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
34110 8-bit field. Use grub_host_to_target32() for `size'.
34111 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
34112 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
34113 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
34114
34115 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
34116
34117 Fix "lost keypress" bug in at_keyboard.
34118
34119 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
34120 Checks for readyness of input buffer (without flushing it).
34121 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
34122 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
34123
34124 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
34125
34126 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
34127 size check within GRUB_MACHINE_PCBIOS section.
34128
34129 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
34130
34131 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
34132 return value.
34133 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
34134 KEYBOARD_ISREADY check.
34135 (grub_at_keyboard_checkkey): Rename to ...
34136 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
34137 Remove gratuitous cast.
34138
34139 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
34140
34141 * configure.ac: Call AC_PROG_MKDIR_P.
34142 * Makefile.in (docs/stamp-vti): Create docs directory. Create
34143 version.texi in $(builddir) rather than $(srcdir).
34144 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
34145 to makeinfo's @include search path.
34146
34147 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
34148
34149 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
34150
34151 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
34152
34153 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
34154 for `*.dpkg-new'.
34155
34156 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
34157
34158 Build info documentation. Some code borrowed from Automake.
34159
34160 * configure.ac: Check for makeinfo.
34161 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
34162 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
34163 docs/version.texi.
34164 (MOSTLYCLEANFILES): Add vti.tmp.
34165 (docs/version.texi, docs/stamp-vti): Update automatically.
34166 (docs/grub.info): Build info documentation. Use --force and ignore
34167 errors for now.
34168 (all-local): Add $(INFOS).
34169 (install-local): Install info files.
34170 (uninstall): Uninstall info files.
34171 * docs/version.texi: Remove from revision control. This file is
34172 automatically generated on build now.
34173 * gendistlist.sh: Add `*.info'.
34174
34175 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
34176
34177 * kern/term.c: Fix indentation.
34178
34179 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
34180
34181 * util/hostdisk.c: Fix a comment.
34182
34183 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
34184
34185 Fix regression introduced in r2539.
34186
34187 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
34188 to 0xA1.
34189
34190 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
34191
34192 * util/grub.d/30_os-prober.in: Don't throw away stderr from
34193 os-prober. Under normal operation, it does not print anything to
34194 stderr; if it does, we need to debug it, and throwing away stderr
34195 makes that excessively difficult.
34196
34197 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
34198
34199 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
34200
34201 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
34202
34203 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
34204 AC_LANG_PROGRAM from autoconf.
34205 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
34206 prototypes (fixes warning).
34207
34208 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
34209 `--disable-werror' was used.
34210
34211 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
34212
34213 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
34214 uninitialized `lastaddr'.
34215
34216 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
34217
34218 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
34219
34220 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
34221
34222 * commands/test.c (get_fileinfo): Return immediately if
34223 grub_fs_probe fails.
34224
34225 2009-09-14 José Martínez <xosemp@gmail.com>
34226
34227 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
34228
34229 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
34230
34231 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
34232 output.
34233
34234 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
34235
34236 * configure.ac: Remove --enable-grub-pe2elf. Only build
34237 grub-pe2elf when needed by the build system itself.
34238 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
34239
34240 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
34241
34242 * configure.ac: Bump version to 1.97~beta3.
34243 * docs/version.texi: Likewise.
34244
34245 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
34246
34247 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
34248 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
34249 from here ...
34250 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
34251 (grub_linux_setup_video): ... to here (with some adjustments).
34252
34253 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
34254
34255 Fix memory corruption issue (spotted by Colin Watson).
34256
34257 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
34258 causing returned size to be stored in an incorrect memory location.
34259 Fix use of uninitialized value when storing the returned size.
34260
34261 2009-09-12 Yves Blusseau <blusseau@zetam.org>
34262
34263 Change clean rules to properly remove files
34264
34265 * genmk.rb: add new clean rules
34266 * Makefile.in (clean): add the new targets
34267 (mostlyclean): likewise
34268
34269 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
34270
34271 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
34272 to grub_uint64_t.
34273 * fs/ntfs.c (init_file): Understand 64-bit sizes for
34274 non-resident files.
34275
34276 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
34277
34278 * configure.ac: Don't look for help2man when cross-compiling. Fixes
34279 part of bug #27349.
34280
34281 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
34282
34283 * util/grub-mkconfig.in: Make the created config mode 400 and
34284 print a warning if it fails.
34285
34286 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
34287
34288 * util/grub.d/40_custom.in: Ask user to type custom entries below
34289 comment, rather than below 'exec tail' line.
34290
34291 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
34292
34293 * util/grub.d/40_custom.in: Make sure that the explanatory text is
34294 visible in grub.cfg.
34295
34296 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
34297
34298 * util/grub.d/40_custom.in: Make it a little clearer how to use this
34299 file.
34300
34301 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
34302
34303 * docs/grub.cfg: Add an example menu entry for memtest86+.
34304
34305 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
34306
34307 * config.guess: Update to latest version from config git.
34308 * config.sub: Likewise.
34309
34310 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
34311
34312 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
34313 unknown-command case. Fixes bug #27320.
34314
34315 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
34316
34317 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
34318 `help' if the command exists.
34319
34320 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
34321
34322 * INSTALL: Require GCC 4.1.3 or later.
34323
34324 2009-09-06 Yves Blusseau <blusseau@zetam.org>
34325
34326 * Makefile.in (RMKFILES): add i386-qemu.rmk
34327 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
34328 $(srcdir)/stamp-h.in
34329
34330 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
34331
34332 * util/grub-probe.c (probe): Comment out buggy codepath, which
34333 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
34334 should be re-enabled after 1.97.
34335
34336 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
34337
34338 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
34339 find searches for.
34340
34341 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
34342
34343 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
34344 unnecessary calls to grub_error.
34345
34346 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
34347
34348 * NEWS: Mention `keystatus' and Unicode fonts.
34349
34350 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
34351
34352 * configure.ac: Bump version to 1.97~beta2.
34353 * docs/version.texi: Likewise.
34354
34355 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
34356
34357 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
34358 containing unwind information in some cases where it previously did
34359 not. Use -fno-dwarf2-cfi-asm if available to restore the old
34360 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
34361 discussion.
34362
34363 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
34364
34365 Embedding loadenv module into grub-emu
34366
34367 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
34368 commands/loadenv.c
34369 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
34370 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
34371 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
34372 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
34373 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
34374 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
34375
34376 2009-09-03 Magnus Granberg <zorry@ume.nu>
34377
34378 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
34379 include -fPIE in the default specs.
34380 * configure.ac: Check if pie_possible is yes and add -fno-PIE
34381 to TARGET_CFLAGS.
34382
34383 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
34384
34385 * INSTALL: Note that GNU Bison 2.3 or later is required.
34386
34387 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
34388
34389 * kern/i386/pc/startup.S: Fix typo.
34390
34391 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
34392
34393 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
34394 according to GCS.
34395
34396 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
34397
34398 * docs/grub.texi (Naming convention): Describe one-based partition
34399 numbering.
34400 (Device syntax): Likewise.
34401 (File name syntax): Likewise.
34402 (Block list syntax): Likewise.
34403 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
34404 menu.lst.
34405 (File name syntax): Likewise.
34406 (Command-line and menu entry commands): Document acpi, blocklist,
34407 crc, export, insmod, keystatus, ls, set, and unset commands.
34408
34409 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
34410
34411 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
34412 to avoid implying that only one of --shift, --ctrl, or --alt may be
34413 used.
34414
34415 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
34416
34417 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
34418 rather than comparing against S_IFREG, which will almost never work.
34419
34420 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
34421
34422 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
34423 (write_blocklists): Likewise.
34424
34425 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
34426
34427 * script/lua/grub_lua.h (fputs): Supply a format string as the first
34428 argument to grub_printf.
34429
34430 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
34431
34432 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
34433 non GNU test.
34434
34435 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
34436
34437 * kern/file.c (grub_file_read): Spelling fix
34438
34439 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
34440
34441 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
34442 loading of headers in some cases.
34443
34444 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
34445
34446 * configure.ac: Bump version to 1.97~beta1.
34447 * docs/version.texi: Likewise.
34448
34449 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
34450
34451 * include/grub/i386/xnu.h: Add license header.
34452 include grub/err.h explicitly.
34453
34454 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
34455
34456 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
34457 to `ufs' in the vfs.root.mountfrom kernel parameter.
34458
34459 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
34460
34461 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
34462
34463 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
34464 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
34465
34466 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
34467 `ARRAY_SIZE' macro.
34468
34469 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
34470
34471 * kern/file.c (grub_file_read): Check offset.
34472 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
34473 * fs/jfs.c (grub_jfs_read_file): Likewise.
34474 * fs/ntfs.c (grub_ntfs_read): Likewise.
34475 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
34476 * fs/minix.c (grub_minix_read_file): Correct offset check.
34477 * fs/ufs.c (grub_ufs_read_file): Likewise.
34478
34479 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
34480
34481 * term/i386/pc/console.c (bios_data_area): Cast
34482 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
34483
34484 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
34485
34486 1-bit optimised blitters.
34487
34488 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
34489 prototype.
34490 (grub_video_fbblit_replace_24bit_1bit): Likewise.
34491 (grub_video_fbblit_replace_16bit_1bit): Likewise.
34492 (grub_video_fbblit_replace_8bit_1bit): Likewise.
34493 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
34494 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
34495 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
34496 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
34497 function.
34498 (grub_video_fbblit_replace_24bit_1bit): Likewise.
34499 (grub_video_fbblit_replace_16bit_1bit): Likewise.
34500 (grub_video_fbblit_replace_8bit_1bit): Likewise.
34501 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
34502 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
34503 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
34504 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
34505 when possible.
34506 * video/video.c (grub_video_get_blit_format): Return
34507 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
34508
34509 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
34510
34511 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
34512 the first argument to grub_printf.
34513
34514 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
34515 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
34516
34517 Add `getkeystatus' terminal method. Add a new `keystatus' command
34518 to query it.
34519
34520 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
34521 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
34522 modifier key bitmasks.
34523 (struct grub_term_input): Add `getkeystatus' member.
34524 (grub_getkeystatus): Add prototype.
34525 * kern/term.c (grub_getkeystatus): New function.
34526
34527 * include/grub/i386/pc/memory.h
34528 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
34529 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
34530 Data Area layout.
34531 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
34532 (grub_console_term_input): Set `getkeystatus' member.
34533 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
34534 constants.
34535 (grub_usb_keyboard_getreport): Likewise.
34536 (grub_usb_keyboard_checkkey): Likewise.
34537 (grub_usb_keyboard_getkeystatus): New function.
34538 (grub_usb_keyboard_term): Set `getkeystatus' member.
34539
34540 * commands/keystatus.c: New file.
34541 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
34542 (keystatus_mod_SOURCES): New variable.
34543 (keystatus_mod_CFLAGS): Likewise.
34544 (keystatus_mod_LDFLAGS): Likewise.
34545 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
34546 commands/keystatus.c.
34547 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
34548 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34549 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
34550 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34551 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34552 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
34553
34554 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
34555
34556 Split befs.mod and afs.mod into *_be.mod and *.mod
34557
34558 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
34559 (grub_fstest_SOURCES): Likewise.
34560 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
34561 (afs_be_mod_SOURCES): New variable.
34562 (afs_be_mod_CFLAGS): Likewise.
34563 (afs_be_mod_LDFLAGS): Likewise.
34564 (befs_be_mod_SOURCES): Likewise.
34565 (befs_be_mod_CFLAGS): Likewise.
34566 (befs_be_mod_LDFLAGS): Likewise.
34567 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
34568 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
34569 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34570 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
34571 (grub_emu_SOURCES): Likewise.
34572 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34573 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34574 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
34575 * fs/afs_be.c: New file.
34576 * fs/befs_be.c: New file.
34577 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
34578 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
34579 (U16): Replaced with ...
34580 (grub_afs_to_cpu16): ...this. All users updated.
34581 (U32): Replaced with ...
34582 (grub_afs_to_cpu32): ...this. All users updated.
34583 (U64): Replaced with ...
34584 (grub_afs_to_cpu64): ...this. All users updated.
34585 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
34586 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
34587 (grub_afs_validate_sblock): Check only one endianness.
34588 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
34589 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
34590 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
34591 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
34592 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
34593 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
34594 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
34595 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
34596
34597 2009-08-26 Bean <bean123ch@gmail.com>
34598
34599 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
34600 64-bit number.
34601 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
34602 (grub_xfs_inode_block): Change return type to grub_uint64_t.
34603 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
34604
34605 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
34606
34607 NetBSD memory map support.
34608
34609 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
34610 (grub_netbsd_btinfo_mmap_header): New structure.
34611 (grub_netbsd_btinfo_mmap_entry): Likewise.
34612 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
34613
34614 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
34615
34616 Enable bsd.mod on coreboot.
34617
34618 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
34619 (bsd_mod_SOURCES): New variable.
34620 (bsd_mod_CFLAGS): Likewise.
34621 (bsd_mod_LDFLAGS): Likewise.
34622 (bsd_mod_ASFLAGS): Likewise.
34623 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
34624 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
34625
34626 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
34627
34628 Cleanup NetBSD root support.
34629
34630 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
34631 grub_bsd_get_device.
34632 Fix typo.
34633
34634 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
34635
34636 * util/grub.d/00_header.in: Move check for the video backend of
34637 gfxterm from here ...
34638 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
34639 a suitable video backend.
34640
34641 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
34642
34643 Fix breakage in grub-setup.
34644
34645 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
34646 "msdos_partition_map".
34647
34648 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
34649
34650 Fix breakage in normal/auth.c.
34651
34652 * normal/auth.c (grub_iswordseparator): New function.
34653
34654 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
34655
34656 Authentication support.
34657
34658 * commands/password.c: New file.
34659 * conf/common.rmk (pkglib_MODULES): Add password.mod.
34660 (password_mod_SOURCES): New variable.
34661 (password_mod_CFLAGS): Likewise.
34662 (password_mod_LDFLAGS): Likewise.
34663 (normal_mod_SOURCES): Add normal/auth.c.
34664 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
34665 normal/auth.c.
34666 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
34667 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34668 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
34669 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34670 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34671 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
34672 * include/grub/auth.h: New file.
34673 * include/grub/err.h (grub_err_t): New enum value
34674 GRUB_ERR_ACCESS_DENIED.
34675 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
34676 'users'.
34677 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
34678 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
34679 users updated.
34680 * normal/auth.c: New file.
34681 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
34682 (grub_cmdline_run): Don't allow to go to command line without
34683 authentication.
34684 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
34685 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
34686 menuentry without superuser rights.
34687 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
34688 user isn't a superuser.
34689
34690 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
34691
34692 Save space by inlining misc.c functions.
34693
34694 * kern/misc.c (grub_iswordseparator): Made static.
34695 * kern/misc.c (grub_strcat): Moved from here ...
34696 * include/grub/misc.h (grub_strcat): ... here. Inlined.
34697 * kern/misc.c (grub_strncat): Moved from here ...
34698 * include/grub/misc.h (grub_strncat): ... here. Inlined.
34699 * kern/misc.c (grub_strcasecmp): Moved from here ...
34700 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
34701 * kern/misc.c (grub_strncasecmp): Moved from here ...
34702 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
34703 * kern/misc.c (grub_isalpha): Moved from here ...
34704 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
34705 * kern/misc.c (grub_isdigit): Moved from here ...
34706 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
34707 * kern/misc.c (grub_isgraph): Moved from here ...
34708 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
34709 * kern/misc.c (grub_tolower): Moved from here ...
34710 * include/grub/misc.h (grub_tolower): ... here. Inlined.
34711
34712 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
34713
34714 * script/sh/function.c (grub_script_function_find): Cut error message
34715 not to flood terminal.
34716 * script/sh/lexer.c (grub_script_yylex): Remove command line length
34717 limit.
34718 * script/sh/script.c (grub_script_arg_add): Duplicate string.
34719
34720 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
34721
34722 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
34723 `report' grub_uint8_t *.
34724 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
34725 Use a 50-millisecond timeout rather than just repeating
34726 grub_usb_keyboard_getreport 50 times.
34727 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
34728
34729 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
34730
34731 Rename *_partition_map to part_*
34732
34733 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
34734 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
34735 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
34736 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
34737 All users updated.
34738 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
34739 All users updated.
34740 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
34741 * util/grub-probe.c (probe_partmap): Don't transform partition name
34742 to get module name.
34743
34744 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
34745
34746 Fix OpenBSD and NetBSD support.
34747
34748 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
34749 memory address conflict.
34750 (OPENBSD_MMAP_ACPI): New definition.
34751 (OPENBSD_MMAP_NVS): Likewise.
34752 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
34753 and OPENBSD_MMAP_NVS.
34754 Add memory map terminator
34755 Explicit cast when calling grub_unix_real_boot.
34756 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
34757
34758 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
34759
34760 Let user specify NetBSD root device.
34761
34762 * loader/i386/bsd.c (netbsd_root): New variable.
34763 (netbsd_opts): New option 'root'.
34764 (NETBSD_ROOT_ARG): New macro.
34765 (grub_netbsd_boot): Use 'netbsd_root'.
34766 (grub_bsd_unload): Free 'netbsd_root'.
34767 (grub_cmd_netbsd): Fill 'netbsd_root'.
34768
34769 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
34770
34771 Support for 64-bit NetBSD.
34772
34773 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
34774 point when booting non-FreeBSD.
34775
34776 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
34777
34778 Support --no-smp and --no-acpi for NetBSD.
34779
34780 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
34781 (NETBSD_AB_NOACPI): Likewise.
34782 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
34783 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
34784
34785 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
34786
34787 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
34788 errors.
34789 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
34790 errors. Call grub_error when needed.
34791
34792 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
34793
34794 * commands/search.c (search_fs): Try searching without autoload first.
34795 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
34796 filesystem module explicitly for faster booting.
34797
34798 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
34799
34800 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
34801
34802 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
34803
34804 * util/grub.d/30_os-prober.in: Disable os-prober if
34805 `GRUB_DISABLE_OS_PROBER' was set to true.
34806
34807 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
34808
34809 * partmap/pc.c: Rename to ...
34810 * partmap/msdos.c: ... this. Update all users.
34811 (grub_pc_partition_map): Rename to ...
34812 (grub_msdos_partition_map): ... this. Update all users.
34813
34814 * parttool/pcpart.c: Rename to ...
34815 * parttool/msdospart.c: ... this. Update all users.
34816
34817 * include/grub/pc_partition.h: Rename to ...
34818 * include/grub/msdos_partition.h: ... this. Update all users.
34819 (grub_pc_partition_bsd_entry): Rename to ...
34820 (grub_msdos_partition_bsd_entry): ... this. Update all users.
34821 (grub_pc_partition_disk_label): Rename to ...
34822 (grub_msdos_partition_disk_label): ... this. Update all users.
34823 (grub_pc_partition_entry): Rename to ...
34824 (grub_msdos_partition_entry): ... this. Update all users.
34825 (grub_pc_partition_mbr): Rename to ...
34826 (grub_msdos_partition_mbr): ... this. Update all users.
34827 (grub_pc_partition): Rename to ...
34828 (grub_msdos_partition): ... this. Update all users.
34829 (grub_pc_partition_is_empty): Rename to ...
34830 (grub_msdos_partition_is_empty): ... this. Update all users.
34831 (grub_pc_partition_is_extended): Rename to ...
34832 (grub_msdos_partition_is_extended): ... this. Update all users.
34833 (grub_pc_partition_is_bsd): Rename to ...
34834 (grub_msdos_partition_is_bsd): ... this. Update all users.
34835
34836 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
34837 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
34838 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
34839 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
34840 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
34841 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
34842 (gpt_mod_LDFLAGS): Rename to ...
34843 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
34844 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
34845 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
34846 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
34847 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
34848 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
34849 (part_gpt_mod_LDFLAGS): ... this.
34850 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
34851 `pcpart.mod' to `msdospart.mod'.
34852 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
34853 to ...
34854 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
34855 (msdospart_mod_LDFLAGS): ... this.
34856
34857 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
34858
34859 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
34860 (openbsd_opts): Likewise.
34861 (netbsd_opts): Likewise.
34862 (freebsd_flags): Added 0 terminator.
34863 (openbsd_flags): Likewise.
34864 (netbsd_flags): Likewise.
34865 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
34866 (grub_cmd_freebsd): Transformed into extended command.
34867 (grub_cmd_openbsd): Likewise.
34868 (grub_cmd_netbsd): Likewise.
34869 (cmd_freebsd): Changed type to grub_extcmd_t.
34870 (cmd_openbsd): Likewise.
34871 (cmd_netbsd): Likewise.
34872 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
34873 grub_cmd_openbsd as extended commands.
34874 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
34875 cmd_netbsd and cmd_openbsd
34876
34877 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
34878
34879 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
34880
34881 2009-08-21 Pavel Roskin <proski@gnu.org>
34882
34883 * Makefile.in (install-local): When checking if a file is in the
34884 build directory, use "test -e" to detect symlinks.
34885
34886 * Makefile.in (install-local): Remove all files in
34887 $(DESTDIR)$(pkglibdir) before installing new files there.
34888
34889 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
34890
34891 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
34892 grub-mkelfimage.
34893
34894 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
34895
34896 * util/grub-mkconfig.in: Don't use gfxterm by default if not
34897 explicitly specified by the user.
34898
34899 2009-08-18 Pavel Roskin <proski@gnu.org>
34900
34901 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
34902 grub_uint8_t pointer for data.
34903 * include/grub/fbutil.h (struct grub_video_fbblit_info):
34904 Likewise.
34905 * video/fb/fbutil.c: Remove unnecessary casts.
34906
34907 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
34908
34909 VBE cleanup.
34910
34911 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
34912 (grub_vbe_set_video_mode): Save active mode info
34913 only after setting the mode.
34914 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
34915 second argument.
34916
34917 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
34918
34919 Rename variables for clarity.
34920
34921 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
34922 (active_vbe_mode_info): ... this. All users updated.
34923 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
34924 All users updated.
34925 (initial_mode): Rename to ...
34926 (initial_vbe_mode): ... this. All users updated.
34927 (mode_in_use): Rename to ..
34928 (vbe_mode_in_use): ... this. All users updated.
34929 (mode_list): Rename to ..
34930 (vbe_mode_list): ... this. All users updated.
34931 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
34932 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
34933 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
34934 'mode_list_size' to 'vbe_mode_list_size'.
34935 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
34936 'best_mode_info' to 'best_vbe_mode_info' and
34937 'best_mode' to 'best_vbe_mode'
34938
34939 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
34940
34941 Remove duplicate grub_video_fb_get_video_ptr.
34942
34943 * include/grub/fbutil.h (get_data_ptr): Rename to ...
34944 (grub_video_fb_get_video_ptr): ... this.
34945 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
34946 * video/fb/fbutil.c: Add comment about addressing.
34947 (get_data_ptr): Rename to ...
34948 (grub_video_fb_get_video_ptr): ... this. All users updated.
34949 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
34950
34951 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
34952
34953 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
34954 grub_dprintf() that was just added.
34955
34956 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
34957
34958 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
34959 (DEFAULT_VIDEO_MODE): Remove macros.
34960 (grub_linux_boot): Remove assumption that Linux has FB support,
34961 and use "text" as default video mode.
34962
34963 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
34964
34965 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
34966 grub_dprintf.
34967 * fs/fat.c (grub_fat_read_data): Likewise.
34968
34969 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
34970
34971 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
34972 payload.
34973 (grub_module): Likewise.
34974
34975 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
34976
34977 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
34978 mbi->cmdline but free playground.
34979
34980 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
34981
34982 Handle group offset on UFS1.
34983
34984 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
34985 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
34986
34987 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
34988
34989 Split ufs.mod into ufs1.mod and ufs2.mod.
34990
34991 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
34992 (grub_fstest_SOURCES): Likewise.
34993 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
34994 (ufs_mod_SOURCES): Remove.
34995 (ufs_mod_CFLAGS): Likewise.
34996 (ufs_mod_LDFLAGS): Likewise.
34997 (ufs1_mod_SOURCES): New variable.
34998 (ufs1_mod_CFLAGS): Likewise.
34999 (ufs1_mod_LDFLAGS): Likewise.
35000 (ufs2_mod_SOURCES): New variable.
35001 (ufs2_mod_CFLAGS): Likewise.
35002 (ufs2_mod_LDFLAGS): Likewise.
35003 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
35004 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
35005 Likewise.
35006 (grub_emu_SOURCES): Likewise.
35007 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35008 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35009 (grub_setup_SOURCES): Likewise.
35010 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35011 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
35012 (grub_setup_SOURCES): Likewise.
35013 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
35014 Likewise.
35015 * fs/ufs2.c: New file.
35016 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
35017
35018 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
35019
35020 Framebuffer split.
35021
35022 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
35023 subsystem at the end.
35024 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
35025 (video_fb_mod_SOURCES): New variable.
35026 (video_fb_mod_CFLAGS): Likewise.
35027 (video_fb_mod_LDFLAGS): Likewise.
35028 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
35029 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
35030 * video/i386/pc/vbeblit.c: Moved from here ...
35031 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
35032 * video/i386/pc/vbefill.c: Moved from here ...
35033 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
35034 * video/i386/pc/vbeutil.c: Moved from here ...
35035 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
35036 * include/grub/i386/pc/vbeblit.h: Moved from here ...
35037 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
35038 * include/grub/i386/pc/vbefill.h: Moved from here ...
35039 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
35040 * include/grub/i386/pc/vbeutil.h: Moved from here ...
35041 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
35042 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
35043 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
35044 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
35045 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
35046 (grub_video_adapter): Added 'get_info_and_fini'.
35047 (grub_video_get_info_and_fini): New prototype.
35048 (grub_video_set_mode): make modestring const char *.
35049 * loader/i386/linux.c (grub_linux_setup_video): Use
35050 grub_video_get_info_and_fini.
35051 (grub_linux_boot): Move modesetting just before booting.
35052 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
35053 grub_video_get_info_and_fini.
35054 * video/i386/pc/vbe.c: Moved framebuffer part ...
35055 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
35056 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
35057 grub_video_fbstd_colors and grub_video_fb_set_palette.
35058 (grub_video_vbe_init): Clear 'framebuffer' variable and use
35059 grub_video_fb_init.
35060 (grub_video_vbe_fini): Use grub_video_fb_fini.
35061 (grub_video_vbe_setup): Use framebuffer.render_target instead of
35062 render_target and use grub_video_fb_set_active_render_target and
35063 grub_video_fb_set_palette.
35064 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
35065 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
35066 (grub_video_vbe_adapter): Use framebuffer.
35067 * video/video.c (grub_video_get_info_and_fini): New function.
35068 (grub_video_set_mode): Make modestring const char *.
35069 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
35070 values are already initialised.
35071
35072 2009-08-14 Pavel Roskin <proski@gnu.org>
35073
35074 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
35075 ABS and APPLE_CC.
35076 * boot/i386/pc/diskboot.S: Likewise.
35077 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
35078 sectors allow compilation on MacOSX.
35079 * conf/i386-pc.rmk: Enable unconditional compilation of
35080 lnxboot.img.
35081
35082 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
35083
35084 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
35085 * util/grub.d/00_header.in: Enter interruptible sleep if
35086 GRUB_HIDDEN_TIMEOUT is set.
35087
35088 2009-08-13 Yves Blusseau <blusseau@zetam.org>
35089
35090 * include/grub/symbol.h: Add the LOCAL macro.
35091 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
35092 starting with "L_".
35093
35094 2009-08-13 Pavel Roskin <proski@gnu.org>
35095
35096 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
35097 any modern compilers we support.
35098
35099 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
35100 Use local labels starting with "L_" so that Apple assembler
35101 knows they are local.
35102
35103 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
35104
35105 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
35106 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
35107 (bsd_kernel_types): ... this enum.
35108
35109 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
35110 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
35111 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
35112
35113 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
35114 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
35115 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
35116 messages.
35117
35118 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
35119
35120 * util/grub-dumpdevtree: Moved from here ...
35121 * util/i386/efi/grub-dumpdevtree: ... to here.
35122 (hexify): New function. Converts a string to its hex version.
35123 Generate hex versions of "efi" and "device-properties" by calling
35124 hexify() on the ASCII strings rather than by hardcoding numbers.
35125
35126 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
35127
35128 * fs/jfs.c: Update copyright year.
35129
35130 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
35131
35132 * util/grub.d/00_header.in: Fix a comment.
35133 * util/grub.d/10_linux.in: Likewise.
35134 * util/grub.d/10_windows.in: Likewise.
35135 * util/grub.d/10_hurd.in: Likewise.
35136
35137 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
35138
35139 * util/grub-mkconfig.in: Allow the user to specify the used font
35140 with GRUB_FONT.
35141
35142 2009-08-08 Pavel Roskin <proski@gnu.org>
35143
35144 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
35145 available, xfs.mod needs it now.
35146
35147 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
35148 the "g" modifier in sed when the intention is to strip something
35149 once. This fixes comparison of kernels with multiple dashes.
35150
35151 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
35152 on it. Add missing space before closing bracket. Fix
35153 misleading formatting.
35154
35155 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
35156
35157 * docs/grub.texi: Major overhaul. Remove all sections that are
35158 specific to GRUB Legacy, or mostly composed of Legacy-specific
35159 information.
35160
35161 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
35162
35163 * docs/version.texi: New file. Provides version information for
35164 grub.texi.
35165
35166 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
35167
35168 * docs/grub.texi: Update CVS information to SVN.
35169 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
35170
35171 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
35172
35173 * util/grub-mkconfig.in: Remove a wrong `fi'.
35174
35175 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
35176
35177 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
35178 (grub_jfs_uuid): New function.
35179 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
35180
35181 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
35182
35183 * util/grub-mkconfig_lib.in (font_path): Move the functionality
35184 of it to ...
35185 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
35186 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
35187
35188 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
35189
35190 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
35191 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
35192 Update all users.
35193
35194 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
35195 not just "vmlinu[zx]".
35196 Moved from here ...
35197 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
35198 all users.
35199
35200 * util/grub.d/10_linux.in (find_latest): Moved from here ...
35201 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
35202 all users.
35203
35204 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
35205
35206 * util/grub.d/10_freebsd.in: Use an absolute device path for
35207 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
35208
35209 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
35210
35211 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
35212 handling of multiple abstraction modules.
35213
35214 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
35215
35216 Fix a bug resulting in black screen when loading Linux using a
35217 packed video mode.
35218
35219 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
35220 function.
35221
35222 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
35223 (grub_vbe_bios_getset_dac_palette_width): New function.
35224 (grub_vbe_bios_get_dac_palette_width)
35225 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
35226 grub_vbe_bios_getset_dac_palette_width()).
35227
35228 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
35229 check for return status.
35230 (grub_vbe_get_video_mode_info): When getting information for a packed
35231 mode (<= 8 bpp), obtain DAC palette width using
35232 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
35233 {red,green,blue}_mark_size.
35234
35235 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
35236
35237 * commands/search.c (options): Fix help output to match actual code.
35238
35239 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
35240
35241 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
35242 of homegrown code.
35243
35244 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
35245
35246 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
35247 on XFS or ReiserFS.
35248
35249 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
35250
35251 Support Apple partition map with sector size different from 512 bytes.
35252
35253 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
35254 (apple_partition_map_iterate): Respect 'aheader.blocksize'
35255 and 'apart.partmap_size'.
35256
35257 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
35258 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
35259
35260 Fix cpuid command.
35261
35262 * commands/i386/cpuid.c (options): New variable.
35263 (grub_cmd_cpuid): Return real error.
35264 (GRUB_MOD_INIT(cpuid)): Declare options.
35265
35266 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
35267
35268 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
35269 valid.
35270
35271 2009-07-31 Bean <bean123ch@gmail.com>
35272
35273 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
35274 log2_inode.
35275 (grub_fshelp_node): Move inode field to the end.
35276 (grub_xfs_data): Remove inode field.
35277 (grub_xfs_inode_block): Calculate inode size using sblock.
35278 (grub_xfs_inode_offset): Likewise.
35279 (grub_xfs_read_inode): Calculate inode size using sblock.
35280 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
35281 (grub_xfs_iterate_dir): Calculate inode size using sblock.
35282 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
35283 to match inode size.
35284 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
35285 not accessible when data is null.
35286 (grub_xfs_open): Likewise.
35287
35288 2009-07-31 Bean <bean123ch@gmail.com>
35289
35290 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
35291 Don't change pv->disk if it's already set.
35292
35293 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
35294 (grub_raid_register): ... here.
35295 (grub_raid_rescan): Removed.
35296
35297 * include/grub/raid.h (grub_raid_rescan): Removed.
35298
35299 * util/grub-fstest.c: Remove include file <grub/raid.h>.
35300 (fstest): Replace grub_raid_rescan with module fini function followed
35301 by init function.
35302
35303 * util/grub-probe.c: Add include file <grub/raid.h>.
35304 (probe_raid_level): New function.
35305 (probe): Detect abstraction by walking the disk device, support two
35306 level of abstraction (LVM on RAID) when detecting partition map.
35307
35308 2009-07-31 Pavel Roskin <proski@gnu.org>
35309
35310 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
35311 to grub_zalloc(), it was erroneous.
35312 Reported by Bean <bean123ch@gmail.com>
35313
35314 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
35315
35316 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
35317 embedding zone, not only the first one.
35318
35319 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
35320
35321 * term/gfxterm.c (clear_char): New function.
35322 (grub_virtual_screen_setup): Use clear_char.
35323 (scroll_up): Likewise.
35324 (grub_virtual_screen_cls): Likewise.
35325
35326 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
35327
35328 * util/deviceiter.c (get_acceleraid_disk_name): New static
35329 function.
35330 (grub_util_iterate_devices): Handle Accelraid devices.
35331 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
35332
35333 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
35334
35335 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
35336 separator for the suggested gfxpayload string (';' collides with the
35337 parser and needs escaping).
35338
35339 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
35340
35341 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
35342 Clear direction flag before jumping to OS.
35343 (grub_multiboot2_real_boot): Likewise.
35344
35345 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
35346
35347 * util/i386/pc/grub-install: Fix parsing of --disk-module
35348 option.
35349
35350 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
35351
35352 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
35353 when embedding.
35354
35355 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
35356
35357 * util/grub-mkconfig.in (package_version): New variable.
35358 Use it do display the version.
35359
35360 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
35361
35362 * kern/file.c (grub_file_open): Revert to previous check with
35363 grub_errno.
35364
35365 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
35366
35367 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
35368 from help line. It's out of sync with code.
35369
35370 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
35371
35372 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
35373 entries on failed boot.
35374
35375 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
35376
35377 * kern/file.c (grub_file_open): Fix an error check.
35378
35379 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
35380
35381 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
35382 partition map couldn't be identified.
35383
35384 2009-07-23 Pavel Roskin <proski@gnu.org>
35385
35386 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
35387 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
35388 case of little endian words becomes just an optimization.
35389 Respect const modifier.
35390 (md5_final): Use code that doesn't depend on endianness.
35391
35392 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
35393 to avoid loss of upper bits if align is unsigned and shorter
35394 than addr.
35395
35396 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
35397
35398 UUID support for UFS
35399
35400 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
35401 (grub_ufs_uuid): New function.
35402 (grub_ufs_fs): add .uuid
35403
35404 2009-07-21 Pavel Roskin <proski@gnu.org>
35405
35406 * kern/dl.c (grub_dl_check_header): Make static.
35407
35408 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
35409
35410 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
35411 add drivemap for Vista. It breaks Windows 7.
35412
35413 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
35414
35415 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
35416 128 bytes
35417
35418 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
35419
35420 Add BFS support
35421
35422 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
35423 (grub_fstest_SOURCES): Likewise.
35424 (pkglib_MODULES): Add befs.mod.
35425 (befs_mod_SOURCES): New variable.
35426 (befs_mod_CFLAGS): Likewise.
35427 (befs_mod_LDFLAGS): Likewise.
35428 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
35429 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35430 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35431 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35432 (grub_setup_SOURCES): Likewise.
35433 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35434 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35435 (grub_setup_SOURCES): Likewise.
35436 * fs/befs.c: New file.
35437 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
35438 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
35439 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
35440 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
35441 (B_KEY_INDEX_ALIGN): New declaration.
35442 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
35443 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
35444 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
35445 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
35446 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
35447 (grub_afs_mount) [MODE_BFS]: Likewise.
35448 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
35449 (grub_afs_fs): Use GRUB_AFS_FSNAME
35450 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
35451 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
35452 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
35453 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
35454
35455 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
35456
35457 * util/getroot.c (find_root_device): Add support for MacOSX.
35458 * util/hostdisk.c: Likewise.
35459
35460 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
35461
35462 * font/font.c (find_glyph): Check whether a font is present to avoid
35463 segmentation fault.
35464
35465 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
35466
35467 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
35468
35469 2009-07-20 Pavel Roskin <proski@gnu.org>
35470
35471 * configure.ac: Trim excessively wordy excuses.
35472
35473 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
35474
35475 Add symlink, mtime and label support to AtheFS.
35476
35477 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
35478 (grub_afs_iterate_dir): Handle symlinks.
35479 (grub_afs_open): Use grub_afs_read_symlink.
35480 (grub_afs_dir): Likewise.
35481 Pass mtime.
35482 (grub_afs_label): New function.
35483 (grub_afs_fs): Add grub_afs_label.
35484 (grub_afs_read_symlink): New function.
35485
35486 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
35487
35488 Fix AtheFS support.
35489
35490 * fs/afs.c: Fix comments style.
35491 (grub_afs_blockrun): Declare as packed.
35492 (grub_afs_datastream): Likewise.
35493 (grub_afs_bnode): Likewise.
35494 (grub_afs_btree): Likewise.
35495 (grub_afs_sblock): Likewise.
35496 Declare `name' as char.
35497 (grub_afs_inode): Declare as packed.
35498 Change void *vnode to grub_uint32_t unused.
35499 (grub_afs_iterate_dir): Check that key_size is positive.
35500 (grub_afs_mount): Don't read superblock twice.
35501 (grub_afs_dir): Don't free node in case of error,
35502 grub_fshelp_find_file already handles this.
35503 (grub_afs_open): Likewise.
35504
35505 2009-07-19 Pavel Roskin <proski@gnu.org>
35506
35507 * Makefile.in: Remove LIBLZO and enable_lzo.
35508 * conf/i386-pc.rmk: Remove lzo support.
35509 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
35510 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
35511 support.
35512 * kern/i386/pc/lzo1x.S: Remove.
35513 * kern/i386/pc/startup.S: Remove lzo support.
35514 * util/i386/pc/grub-mkimage.c: Likewise.
35515
35516 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
35517
35518 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
35519 * fs/xfs.c (grub_xfs_dir): Likewise.
35520 * fs/afs.c (grub_afs_dir): Likewise.
35521 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
35522 (grub_iso9660_open): Likewise.
35523 * fs/jfs.c (grub_jfs_open): Likewise.
35524 * fs/ext2.c (grub_ext2_dir): Likewise.
35525 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
35526 * script/sh/lexer.c (grub_script_yylex): Likewise.
35527
35528 2009-07-16 Pavel Roskin <proski@gnu.org>
35529
35530 * configure.ac: Never add "-c" to CFLAGS.
35531
35532 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
35533
35534 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
35535 grub_cv_cc_efiemu should be used.
35536
35537 * configure.ac: Typo fixes.
35538
35539 * kern/mm.c (grub_zalloc): New function.
35540 (grub_debug_zalloc): Likewise.
35541 * include/grub/mm.h: Declare grub_zalloc() and
35542 grub_debug_zalloc().
35543 * util/misc.c (grub_zalloc): New function.
35544 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
35545 instead of grub_malloc(), remove unneeded initializations.
35546 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
35547 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
35548 * commands/parttool.c (grub_cmd_parttool): Likewise.
35549 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
35550 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
35551 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
35552 * disk/usbms.c (grub_usbms_finddevs): Likewise.
35553 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
35554 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
35555 (grub_cmd_efiemu_pnvram): Likewise.
35556 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
35557 * fs/iso9660.c (grub_iso9660_mount): Likewise.
35558 (grub_iso9660_iterate_dir): Likewise.
35559 * fs/jfs.c (grub_jfs_opendir): Likewise.
35560 * fs/ntfs.c (list_file): Likewise.
35561 (grub_ntfs_mount): Likewise.
35562 * kern/disk.c (grub_disk_open): Likewise.
35563 * kern/dl.c (grub_dl_load_core): Likewise.
35564 * kern/elf.c (grub_elf_file): Likewise.
35565 * kern/env.c (grub_env_context_open): Likewise.
35566 (grub_env_set): Likewise.
35567 (grub_env_set_data_slot): Likewise.
35568 * kern/file.c (grub_file_open): Likewise.
35569 * kern/fs.c (grub_fs_blocklist_open): Likewise.
35570 * loader/i386/multiboot.c (grub_module): Likewise.
35571 * loader/xnu.c (grub_xnu_create_key): Likewise.
35572 (grub_xnu_create_value): Likewise.
35573 * normal/main.c (grub_normal_add_menu_entry): Likewise.
35574 (read_config_file): Likewise.
35575 * normal/menu_entry.c (make_screen): Likewise.
35576 * partmap/sun.c (sun_partition_map_iterate): Likewise.
35577 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
35578 * script/sh/script.c (grub_script_parse): Likewise.
35579 * video/bitmap.c (grub_video_bitmap_create): Likewise.
35580 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
35581 * video/readers/png.c (grub_png_output_byte): Likewise.
35582 (grub_video_reader_png): Likewise.
35583
35584 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
35585
35586 Enable all targets that can be built by default
35587
35588 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
35589 grub-mkfont and grub-fstest if they can be built
35590
35591 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
35592
35593 Fix hang and segmentation fault in grub-emu-usb
35594
35595 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
35596 * util/usb.c (grub_libusb_devices): likewise
35597 (grub_libusb_init): rename to ...
35598 (GRUB_MOD_INIT (libusb)):...this
35599 (grub_libusb_fini): rename to ..
35600 (GRUB_MOD_FINI (libusb)):...this
35601 * disk/usbms.c (grub_usbms_transfer): fix retry logic
35602 * include/grub/disk.h (grub_raid_init): removed, it's useless
35603 (grub_raid_fini): likewise
35604 (grub_lvm_init): likewise
35605 (grub_lvm_fini): likewise
35606 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
35607 by grub_init_all
35608
35609 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
35610
35611 Fix libusb
35612
35613 * Makefile.in (LIBUSB): new macro
35614 * genmk.rb (Utility/print_tail): new method
35615 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
35616 (top level): call util.print_tail at the end.
35617
35618 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
35619
35620 Make FreeBSD accept zpool.cache
35621
35622 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
35623 type is /boot/zfs/zpool.cache
35624
35625 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
35626
35627 Fix 64-bit efiemu
35628
35629 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
35630 correct wrong typedef
35631 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
35632
35633 2009-07-15 Pavel Roskin <proski@gnu.org>
35634
35635 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
35636 * kern/disk.c (struct grub_disk_cache): Likewise.
35637
35638 * commands/probe.c (options): Typo fix.
35639
35640 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
35641 Increase to 0x5a to accommodate FAT32. Adjust other offsets
35642 accordingly.
35643 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
35644
35645 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
35646 the end of "Error" to make the message more readable.
35647
35648 * boot/i386/pc/boot.S (kernel_segment): Remove.
35649 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
35650 for destination.
35651
35652 * boot/i386/pc/boot.S (boot_version): Remove.
35653 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
35654 Remove.
35655
35656 * include/grub/i386/pc/boot.h: Sort all offsets.
35657 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
35658 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
35659 * boot/i386/pc/boot.S: Assert location of every offset listed in
35660 include/grub/i386/pc/boot.h.
35661
35662 2009-07-13 Pavel Roskin <proski@gnu.org>
35663
35664 * include/grub/i386/coreboot/machine.h: Rename
35665 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
35666 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
35667 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
35668
35669 * kern/dl.c: Force native word size to suppress warnings when
35670 compiling grub-emu.
35671
35672 * kern/device.c (grub_device_iterate): Change struct part_ent to
35673 hold the name, not a pointer to it. Use one grub_malloc() per
35674 partition, not two. Free partition_name if grub_malloc() fails.
35675 Set ents to NULL only before grub_partition_iterate() is called.
35676
35677 2009-07-11 Bean <bean123ch@gmail.com>
35678
35679 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
35680 childname.
35681
35682 2009-07-10 Bean <bean123ch@gmail.com>
35683 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
35684
35685 * kern/ieee1275/openfw.c (grub_children_iterate)
35686 (grub_devalias_iterate): Fix size evaluation for property or path
35687 strings, which was broken since r2132.
35688
35689 2009-07-07 Pavel Roskin <proski@gnu.org>
35690
35691 * commands/search.c (search_file): Merge into ...
35692 (search_fs): ... this. Accept search type as argument.
35693 (grub_cmd_search): Pass search type to search_fs().
35694
35695 * include/grub/util/console.h: New file.
35696 * util/console.c: Use it instead of grub/machine/console.h.
35697 * util/grub-emu.c: Likewise.
35698
35699 * lib/arg.c (find_long_option): Remove.
35700 (find_long): Add `len' argument, make `s' const char *.
35701 (grub_arg_parse): Parse long options in place, not in a
35702 temporary buffer.
35703
35704 2009-07-06 Pavel Roskin <proski@gnu.org>
35705
35706 * commands/search.c (search_fs): Fix potential NULL pointer
35707 dereference.
35708
35709 * commands/search.c (search_fs): Replace QUID macro with quid_fn
35710 function pointer.
35711
35712 2009-07-06 Daniel Mierswa <impulze@impulze.org>
35713
35714 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
35715 comparison.
35716
35717 2009-07-05 Pavel Roskin <proski@gnu.org>
35718
35719 * include/grub/i386/linux.h (struct linux_kernel_params):
35720 Restore padding3, it's still needed.
35721
35722 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
35723 FreeBSD.
35724 * util/osdetect.lua: Likewise.
35725
35726 2009-07-05 Bean <bean123ch@gmail.com>
35727
35728 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
35729
35730 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
35731 (grub_lua_getenv): Likewise.
35732 (grub_lua_setenv): Likewise.
35733 (save_errno): New function.
35734 (push_result): Likewise.
35735 (grub_lua_enum_device): Likewise.
35736 (grub_lua_enum_file): Likewise.
35737 (grub_lua_file_open): Likewise.
35738 (grub_lua_file_close): Likewise.
35739 (grub_lua_file_seek): Likewise.
35740 (grub_lua_file_read): Likewise.
35741 (grub_lua_file_getline): Likewise.
35742 (grub_lua_file_getsize): Likewise.
35743 (grub_lua_file_getpos): Likewise.
35744 (grub_lua_file_eof): Likewise.
35745 (grub_lua_file_exist): Likewise.
35746 (grub_lua_add_menu): Likewise.
35747
35748 * script/lua/grub_lua.h (isupper): New inline function.
35749 (islower): Likewise.
35750 (ispunct): Likewise.
35751 (isxdigit): Likewise.
35752 (strcspn): Change to normal function.
35753 (strpbkr): New function declaration.
35754 (memchr): Likewise.
35755
35756 * script/lua/grub_main.c (scan_str): New function.
35757 (strcspn): Likewise.
35758 (strpbrk): Likewise.
35759 (memchr): Likewise.
35760
35761 * script/lua/linit.c (lualibs): Enable the string library.
35762
35763 * util/osdetect.lua: New file.
35764
35765 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
35766
35767 * include/grub/i386/linux.h (struct linux_kernel_params): Add
35768 `capabilities' member.
35769
35770 2009-07-02 Pavel Roskin <proski@gnu.org>
35771
35772 * genparttoollist.sh: Add missing newline at the end.
35773
35774 2009-07-01 Pavel Roskin <proski@gnu.org>
35775
35776 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
35777
35778 * util/hostdisk.c (open_device): Remove `const' from
35779 `sysctl_size', as sysctlbyname() can change it (in this case it
35780 doesn't actually happen).
35781
35782 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
35783 using signed long int constants.
35784
35785 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
35786 constant to avoid a warning on FreeBSD.
35787
35788 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
35789 where it's needed.
35790
35791 * Makefile.in: Install include/grub/machine symlink.
35792
35793 * Makefile.in: When installing symlinks, use "cp -fR", which
35794 works on FreeBSD and MacOSX.
35795 From Yves Blusseau <cl7m42e02@sneakemail.com>
35796
35797 * kern/dl.c (grub_dl_resolve_symbol): Make static.
35798 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
35799
35800 * util/misc.c: Move grub_reboot() and grub_halt() ...
35801 * util/grub-emu.c: ... here. Make main_env static.
35802 * include/grub/util/misc.h: Remove main_env.
35803
35804 * kern/mm.c: Use correct format to print size_t.
35805
35806 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
35807 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
35808 * kern/powerpc/dl.c: Likewise.
35809 * kern/sparc64/dl.c: Likewise.
35810 * kern/x86_64/dl.c: Likewise.
35811
35812 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
35813
35814 Fix grub-emu build on sparc64-ieee1275.
35815
35816 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
35817 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
35818
35819 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
35820
35821 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
35822 (grub_reboot, grub_halt): New functions.
35823
35824 * util/i386/pc/misc.c: Delete. Update all users.
35825 * util/sparc64/ieee1275/misc.c: Likewise.
35826 * util/powerpc/ieee1275/misc.c: Likewise.
35827
35828 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
35829
35830 * conf/i386.rmk (setjmp_mod_SOURCES)
35831 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
35832 * conf/common.rmk (setjmp_mod_SOURCES)
35833 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
35834 to use $(target_cpu).
35835 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
35836 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
35837 * conf/powerpc-ieee1275.rmk: Likewise.
35838 * conf/sparc64-ieee1275.rmk: Likewise.
35839
35840 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
35841 $(target_cpu) for kern/$(target_cpu)/dl.c.
35842 * conf/i386-efi.rmk: Likewise.
35843 * conf/i386-ieee1275.rmk: Likewise.
35844 * conf/x86_64-efi.rmk: Likewise.
35845 * conf/i386-coreboot.rmk: Likewise.
35846 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
35847 $(target_cpu) for kern/$(target_cpu)/dl.c and for
35848 kern/$(target_cpu)/cache.S.
35849 * conf/sparc64-ieee1275.rmk: Likewise.
35850
35851 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
35852
35853 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
35854 type to `grub_uint8_t', and adjust `padding9' accordingly.
35855
35856 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
35857
35858 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
35859
35860 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
35861 assembly in final jump, using register constraints.
35862
35863 (grub_linux_boot): For text mode, initialize `have_vga' using
35864 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
35865
35866 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
35867 right before the final jump.
35868
35869 Set `video_mode' to 0x3.
35870
35871 Document initialization of `video_page', `video_mode' and
35872 `video_ega_bx'.
35873
35874 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
35875
35876 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
35877 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
35878 and set GRUB_LINUX_FLAG_QUIET appropriately.
35879
35880 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
35881
35882 Fix build on Debian / sparc.
35883
35884 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
35885
35886 2009-06-28 Pavel Roskin <proski@gnu.org>
35887
35888 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
35889 fix a warning.
35890
35891 * util/grub.d/10_linux.in: Match SUSE style initrd names.
35892
35893 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
35894
35895 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
35896 `err'.
35897
35898 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
35899
35900 Revert r2338.
35901
35902 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
35903 file can't be opened. grub_file_open() is already supposed to set
35904 grub_errno / grub_errmsg appropriately.
35905 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
35906
35907 2009-06-27 Pavel Roskin <proski@gnu.org>
35908 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
35909
35910 * include/grub/dl.h: Include grub/elf.h.
35911 (struct grub_dl): Add symtab field.
35912 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
35913 GRUB_MODULES_MACHINE_READONLY.
35914 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
35915 of the header for read-only modules.
35916 (grub_dl_unload): Free mod->symtab for read-only modules.
35917 * kern/i386/dl.c: Use mod->symtab.
35918 * kern/powerpc/dl.c: Likewise.
35919 * kern/sparc64/dl.c: Likewise.
35920 * kern/x86_64/dl.c: Likewise.
35921
35922 * conf/i386-qemu.rmk: New file.
35923 * kern/i386/qemu/startup.S: Likewise.
35924 * kern/i386/qemu/mmap.c: Likewise.
35925 * boot/i386/qemu/boot.S: Likewise.
35926 * include/grub/i386/qemu/time.h: Likewise.
35927 * include/grub/i386/qemu/serial.h: Likewise.
35928 * include/grub/i386/qemu/kernel.h: Likewise.
35929 * include/grub/i386/qemu/console.h: Likewise.
35930 * include/grub/i386/qemu/boot.h: Likewise.
35931 * include/grub/i386/qemu/init.h: Likewise.
35932 * include/grub/i386/qemu/machine.h: Likewise.
35933 * include/grub/i386/qemu/loader.h: Likewise.
35934 * include/grub/i386/qemu/memory.h: Likewise.
35935
35936 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
35937 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
35938 [qemu] (pkglib_IMAGES): Add `boot.img'.
35939 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
35940 [qemu] (boot_img_FORMAT): New variables.
35941 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
35942 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
35943 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
35944 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
35945 [qemu] (kernel_img_FORMAT): New variables.
35946
35947 * configure.ac: Recognise `i386-qemu'.
35948
35949 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
35950 (for no compression).
35951 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
35952 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
35953 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
35954 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
35955 ifdefs).
35956
35957 2009-06-27 Pavel Roskin <proski@gnu.org>
35958
35959 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
35960 read.
35961 * efiemu/prepare32.c: Likewise.
35962 * efiemu/prepare64.c: Likewise.
35963
35964 2009-06-26 Pavel Roskin <proski@gnu.org>
35965
35966 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
35967 * include/grub/elf.h: Define symbols without "32" or "64" based
35968 on GRUB_TARGET_WORDSIZE.
35969 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
35970 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
35971 ELF definitions.
35972 * efiemu/loadcore64.c: Likewise.
35973 * loader/i386/bsd32.c: Likewise.
35974 * loader/i386/bsd64.c: Likewise.
35975 * kern/dl.c: Remove own ELF definitions.
35976 * util/i386/efi/grub-mkimage.c: Likewise.
35977
35978 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
35979
35980 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
35981 segment 0x0 unconditionally, because the reference generated by
35982 GAS is an absolute address.
35983
35984 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
35985
35986 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
35987 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
35988
35989 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
35990
35991 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
35992 indexes. Check for -f explicitly.
35993 (search_file): Improve error message.
35994 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
35995
35996 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
35997
35998 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
35999 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
36000
36001 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
36002
36003 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
36004 * conf/i386-ieee1275.rmk: Likewise.
36005 * conf/i386-coreboot.rmk: Likewise.
36006
36007 * kern/i386/pc/startup.S (grub_stop): Remove function.
36008 * kern/i386/ieee1275/startup.S: Likewise.
36009 * kern/i386/coreboot/startup.S: Likewise.
36010 * kern/i386/misc.S (grub_stop): New function.
36011
36012 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
36013
36014 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
36015 * kern/i386/realmode.S (real_to_prot): ... to here.
36016
36017 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
36018
36019 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
36020 with `kernel.img'.
36021 (kernel_elf_SOURCES): Rename to ...
36022 (kernel_img_SOURCES): ... this.
36023 (kernel_elf_HEADERS): Rename to ...
36024 (kernel_img_HEADERS): ... this. Update all users.
36025 (kernel_elf_ASFLAGS): Rename to ...
36026 (kernel_img_ASFLAGS): ... this.
36027 (kernel_elf_CFLAGS): Rename to ...
36028 (kernel_img_CFLAGS): ... this.
36029 (kernel_elf_LDFLAGS): Rename to ...
36030 (kernel_img_LDFLAGS): ... this.
36031 * conf/i386-coreboot.rmk: Likewise.
36032 * conf/powerpc-ieee1275.rmk: Likewise.
36033
36034 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
36035 with "kernel.img".
36036
36037 2009-06-21 Pavel Roskin <proski@gnu.org>
36038
36039 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
36040 to match nested functions.
36041 * loader/sparc64/ieee1275/linux.c: Likewise.
36042
36043 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
36044
36045 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
36046
36047 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
36048 all i386 platforms.
36049
36050 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
36051
36052 Fix asm file handling on ELF, and remove workarounds.
36053
36054 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
36055 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
36056 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
36057 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
36058
36059 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
36060
36061 Load BSD ELF modules
36062
36063 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
36064 and loader/i386/bsd64.c
36065 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
36066 (FREEBSD_MODTYPE_ELF_MODULE): New definition
36067 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
36068 (grub_freebsd_load_elfmodule32): New declaration
36069 (grub_freebsd_load_elfmoduleobj64): Likewise
36070 (grub_freebsd_load_elf_meta32): Likewise
36071 (grub_freebsd_load_elf_meta64): Likewise
36072 (grub_freebsd_add_meta): Likewise
36073 (grub_freebsd_add_meta_module): Likewise
36074 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
36075 (grub_freebsd_add_meta_module): Likewise and move module-specific
36076 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
36077 (grub_cmd_freebsd): Add elf-kernel specific parts
36078 based on grub_freebsd_add_meta_module
36079 (grub_cmd_freebsd_module): Add type parsing moved from
36080 grub_freebsd_add_meta_module
36081 (grub_cmd_freebsd_module_elf): New function
36082 (cmd_freebsd_module_elf): New variable
36083 (GRUB_MOD_INIT): Register freebsd_module_elf
36084 * loader/i386/bsd32.c: New file
36085 * loader/i386/bsd64.c: Likewise
36086 * loader/i386/bsdXX.c: Likewise
36087 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
36088 (grub_elf64_load): Likewise
36089 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
36090 All users updated
36091 (grub_elf64_load_hook_t): Likewise
36092
36093 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
36094
36095 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
36096 variable.
36097 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
36098 don't write a menu entry for recovery mode.
36099
36100 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
36101
36102 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
36103 after it's no longer needed.
36104
36105 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
36106
36107 * include/grub/i386/loader.h (grub_linux_prot_size)
36108 (grub_linux_tmp_addr, grub_linux_real_addr)
36109 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
36110 GRUB_MACHINE_PCBIOS.
36111 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
36112 common grub_util_info() call to ...
36113 (generate_image): ... here.
36114 Fix use of uninitialized memory, comparison of signed with
36115 unsigned integers and memory leak.
36116 Remove bogus module address message.
36117
36118 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
36119
36120 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
36121 grub_raid_register
36122 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
36123
36124 2009-06-19 Pavel Roskin <proski@gnu.org>
36125
36126 * configure.ac: Remove stray AC_MSG_CHECKING.
36127
36128 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
36129
36130 * disk/scsi.c (grub_scsi_open): use continue instead of big if
36131
36132 2009-06-18 Pavel Roskin <proski@gnu.org>
36133
36134 * conf/common.rmk: Add fs_file.mod.
36135 * disk/fs_file.c: New file.
36136 * include/grub/disk.h (enum grub_disk_dev_id): Add
36137 GRUB_DISK_DEVICE_FILE_ID.
36138
36139 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
36140
36141 Fix build with Apple's toolchain. Part 2
36142
36143 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
36144 a fake start
36145
36146 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
36147
36148 Fix build with Apple's toolchain. Part 1
36149
36150 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
36151 for long calls
36152 * configure.ac: remove a leftover AC_MSG_RESULT
36153 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
36154 Apple's toolchain
36155
36156 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
36157
36158 Fix warnings
36159
36160 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
36161 (decomp_block): initialize ch
36162 use grub_memcpy instead of memcpy
36163
36164 2009-06-17 Pavel Roskin <proski@gnu.org>
36165
36166 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
36167 version, use declarations needed to use vga_text as the startup
36168 console.
36169
36170 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
36171 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
36172 the kernel.
36173 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
36174 and grub_at_keyboard_fini(), it's done on module load and
36175 unload.
36176
36177 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
36178
36179 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
36180 file can't be found.
36181 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
36182
36183 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
36184
36185 Fix newline handling
36186
36187 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
36188 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
36189 (grub_script_yylex): don't segfault on unterminated script
36190 newline terminates command and variable
36191
36192 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
36193
36194 avoid double grub_adjust_range call. Bug reported by David Simner
36195
36196 * kern/disk.c (grub_disk_write): change to raw disk access before
36197 calling disk_read
36198
36199 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
36200
36201 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
36202 spaces, for the benefit of help2man.
36203 * util/i386/efi/grub-mkimage.c (usage): Likewise.
36204
36205 2009-06-16 Pavel Roskin <proski@gnu.org>
36206
36207 * kern/i386/halt.c: Include grub/machine/init.h.
36208 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
36209
36210 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
36211
36212 * util/grub.d/30_os-prober.in: Use ${root} in the generated
36213 drivemap menuentry.
36214
36215 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
36216
36217 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
36218 `echo' command.
36219
36220 2009-06-16 Pavel Roskin <proski@gnu.org>
36221
36222 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
36223 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
36224 save %dx, we only need %dl and we never change it.
36225 * boot/i386/pc/cdboot.S: Don't set the root drive.
36226 * boot/i386/pc/pxeboot.S: Likewise.
36227 * include/grub/i386/pc/boot.h: Remove
36228 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
36229 GRUB_BOOT_MACHINE_DRIVE_CHECK.
36230 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
36231 * kern/i386/pc/init.c (make_install_device): Remove references
36232 to grub_root_drive.
36233 * kern/i386/pc/startup.S: Likewise.
36234 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
36235
36236 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
36237
36238 xnu_uuid command
36239
36240 * commands/xnu_uuid.c: new file
36241 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
36242 (xnu_uuid_mod_SOURCES): new variable
36243 (xnu_uuid_mod_CFLAGS): likewise
36244 (xnu_uuid_mod_LDFLAGS): likewise
36245 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
36246 * conf/i386-ieee1275.rmk: likewise
36247 * conf/i386-pc.rmk: likewise
36248 * conf/powerpc-ieee1275.rmk: likewise
36249 * conf/sparc64-ieee1275.rmk: likewise
36250 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
36251
36252 2009-06-16 Pavel Roskin <proski@gnu.org>
36253
36254 * configure.ac: Avoid '==' in test command, it's not portable.
36255
36256 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
36257
36258 Probe command
36259
36260 * commands/probe.c: new file
36261 * conf/common.rmk (pkglib_MODULES): add probe.mod
36262 (probe_mod_SOURCES): new variable
36263 (probe_mod_CFLAGS): likewise
36264 (probe_mod_LDFLAGS): likewise
36265 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
36266 * conf/i386-ieee1275.rmk: likewise
36267 * conf/i386-pc.rmk: likewise
36268 * conf/powerpc-ieee1275.rmk: likewise
36269 * conf/sparc64-ieee1275.rmk: likewise
36270
36271 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
36272
36273 Fix handling of string like \"hello\" and "a
36274 b"
36275
36276 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
36277 (grub_script_yylex): fix parsing of quoting, escaping and newline
36278
36279 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
36280
36281 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
36282 handling
36283
36284 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
36285
36286 * util/grub-mkconfig.in: Fix parsing of --output option.
36287
36288 2009-06-12 Pavel Roskin <proski@gnu.org>
36289
36290 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
36291 genmk.rb don't need to be generated or installed.
36292
36293 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
36294
36295 * commands/i386/pc/drivemap_int13h.S: add more comments
36296
36297 2009-06-11 Pavel Roskin <proski@gnu.org>
36298
36299 * Makefile.in (uninstall): Uninstall manuals.
36300
36301 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
36302 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
36303 and update-grub_lib in two places.
36304 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
36305
36306 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
36307 a compiler warning.
36308
36309 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
36310 `entry_lo' to fix variable shadowing.
36311
36312 2009-06-11 Christian Franke <franke@computer.org>
36313
36314 * kern/misc.c (__enable_execute_stack): Add missing return type
36315 to prevent gcc warning.
36316
36317 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
36318
36319 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
36320
36321 2009-06-11 Pavel Roskin <proski@gnu.org>
36322
36323 * Makefile.in: Don't rely on any scripts being executable.
36324 Always use $(SHELL) to run shell scripts.
36325
36326 * configure.ac: Always define ___main if using -nostdlib. This
36327 fixes tests on Cygwin.
36328
36329 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
36330
36331 UDF fix
36332
36333 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
36334 is in bytes and not in blocks
36335
36336 2009-06-11 Pavel Roskin <proski@gnu.org>
36337
36338 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
36339 warning.
36340
36341 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
36342
36343 * util/grub.d/30_os-prober.in: Fix a comment. Source
36344 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
36345 to set the root device. Place drivemap command in the generated
36346 chain entry.
36347
36348 2009-06-11 Pavel Roskin <proski@gnu.org>
36349
36350 * configure.ac: Remove host_m32. Issues with 64-bit utilities
36351 have long been resolved.
36352
36353 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
36354
36355 * util/grub.d/10_linux.in: Capitalise "Linux".
36356
36357 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
36358
36359 2009-06-11 Pavel Roskin <proski@gnu.org>
36360
36361 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
36362 fix a gcc warning and ensure that the function won't ever exit.
36363
36364 * kern/i386/ieee1275/init.c: Add missing prototype for
36365 grub_stop_floppy().
36366
36367 * loader/ieee1275/multiboot2.c [__i386__]: Include
36368 grub/cpu/multiboot.h.
36369
36370 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
36371 casts to short - they are not portable and cause warnings. Fix
36372 use of uninitialized values in input_buf. Use ARRAY_SIZE.
36373
36374 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
36375
36376 Drivemap fixes
36377
36378 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
36379 new function
36380 (grub_get_root_biosnumber_saved): new variable
36381 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
36382 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
36383 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
36384 %dx after the call if necessary
36385 * conf/common.rmk (pkglib_MODULES): remove boot.mod
36386 (boot_mod_SOURCES): remove
36387 (boot_mod_CFLAGS): remove
36388 (boot_mod_LDFLAGS): remove
36389 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
36390 (boot_mod_SOURCES): new variable
36391 (boot_mod_CFLAGS): likewise
36392 (boot_mod_LDFLAGS): likewise
36393 * conf/i386-efi.rmk: likewise
36394 * conf/i386-ieee1275.rmk: likewise
36395 * conf/i386-pc.rmk: likewise
36396 * conf/powerpc-ieee1275.rmk: likewise
36397 * conf/sparc64-ieee1275.rmk: likewise
36398 * conf/x86_64-efi.rmk: likewise
36399 * include/grub/i386/pc/biosnum.h: new file
36400 * lib/i386/pc/biosnum.c: likewise
36401 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
36402 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
36403 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
36404
36405 2009-06-10 Pavel Roskin <proski@gnu.org>
36406
36407 * io/gzio.c (test_header): Don't reuse one buffer for all data.
36408 Use separate variables. Read only the file size at the end, but
36409 not the checksum that we don't use.
36410
36411 * kern/file.c (grub_file_read): Use void pointer for the buffer.
36412 Adjust all callers.
36413
36414 * kern/ieee1275/openfw.c: Remove libc includes.
36415 * kern/ieee1275/cmain.c: Likewise.
36416 * include/grub/ieee1275/ieee1275.h: Likewise.
36417
36418 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
36419 compiler warnings.
36420
36421 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
36422
36423 * Makefile.in: Remove all trailing whitespace.
36424 * conf/i386-pc.rmk: Likewise.
36425 * conf/powerpc-ieee1275.rmk: Likewise.
36426 * conf/sparc64-ieee1275.rmk: Likewise.
36427 * docs/grub.texi: Likewise.
36428 * docs/texinfo.tex: Likewise.
36429 * disk/fs_uuid.c: Likewise.
36430 * disk/lvm.c: Likewise.
36431 * disk/scsi.c: Likewise.
36432 * disk/ata.c: Likewise.
36433 * disk/ieee1275/ofdisk.c: Likewise.
36434 * disk/i386/pc/biosdisk.c: Likewise.
36435 * disk/host.c: Likewise.
36436 * disk/raid.c: Likewise.
36437 * disk/efi/efidisk.c: Likewise.
36438 * disk/usbms.c: Likewise.
36439 * disk/memdisk.c: Likewise.
36440 * disk/loopback.c: Likewise.
36441 * kern/powerpc/dl.c: Likewise.
36442 * kern/device.c: Likewise.
36443 * kern/dl.c: Likewise.
36444 * kern/sparc64/dl.c: Likewise.
36445 * kern/ieee1275/ieee1275.c: Likewise.
36446 * kern/term.c: Likewise.
36447 * kern/fs.c: Likewise.
36448 * kern/i386/dl.c: Likewise.
36449 * kern/i386/pc/startup.S: Likewise.
36450 * kern/i386/pc/init.c: Likewise.
36451 * kern/i386/pc/mmap.c: Likewise.
36452 * kern/i386/pc/lzo1x.S: Likewise.
36453 * kern/i386/ieee1275/init.c: Likewise.
36454 * kern/i386/realmode.S: Likewise.
36455 * kern/i386/tsc.c: Likewise.
36456 * kern/partition.c: Likewise.
36457 * kern/corecmd.c: Likewise.
36458 * kern/file.c: Likewise.
36459 * kern/efi/efi.c: Likewise.
36460 * kern/efi/init.c: Likewise.
36461 * kern/efi/mm.c: Likewise.
36462 * kern/main.c: Likewise.
36463 * kern/err.c: Likewise.
36464 * kern/env.c: Likewise.
36465 * kern/disk.c: Likewise.
36466 * kern/generic/millisleep.c: Likewise.
36467 * kern/generic/rtc_get_time_ms.c: Likewise.
36468 * kern/misc.c: Likewise.
36469 * kern/parser.c: Likewise.
36470 * genmk.rb: Likewise.
36471 * configure.ac: Likewise.
36472 * boot/i386/pc/diskboot.S: Likewise.
36473 * boot/i386/pc/pxeboot.S: Likewise.
36474 * boot/i386/pc/boot.S: Likewise.
36475 * boot/i386/pc/lnxboot.S: Likewise.
36476 * boot/i386/pc/cdboot.S: Likewise.
36477 * parttool/pcpart.c: Likewise.
36478 * video/readers/tga.c: Likewise.
36479 * video/video.c: Likewise.
36480 * video/bitmap.c: Likewise.
36481 * lib/envblk.c: Likewise.
36482 * lib/i386/setjmp.S: Likewise.
36483 * fs/xfs.c: Likewise.
36484 * fs/afs.c: Likewise.
36485 * fs/fat.c: Likewise.
36486 * fs/ntfs.c: Likewise.
36487 * fs/udf.c: Likewise.
36488 * fs/affs.c: Likewise.
36489 * fs/iso9660.c: Likewise.
36490 * fs/hfs.c: Likewise.
36491 * fs/fshelp.c: Likewise.
36492 * fs/ext2.c: Likewise.
36493 * fs/jfs.c: Likewise.
36494 * fs/reiserfs.c: Likewise.
36495 * fs/hfsplus.c: Likewise.
36496 * fs/minix.c: Likewise.
36497 * fs/cpio.c: Likewise.
36498 * fs/sfs.c: Likewise.
36499 * fs/ufs.c: Likewise.
36500 * efiemu/prepare.c: Likewise.
36501 * efiemu/loadcore_common.c: Likewise.
36502 * efiemu/runtime/efiemu.sh: Likewise.
36503 * efiemu/runtime/efiemu.S: Likewise.
36504 * efiemu/runtime/efiemu.c: Likewise.
36505 * efiemu/pnvram.c: Likewise.
36506 * efiemu/main.c: Likewise.
36507 * efiemu/i386/pc/cfgtables.c: Likewise.
36508 * efiemu/i386/loadcore64.c: Likewise.
36509 * efiemu/i386/loadcore32.c: Likewise.
36510 * efiemu/loadcore.c: Likewise.
36511 * efiemu/symbols.c: Likewise.
36512 * efiemu/mm.c: Likewise.
36513 * include/grub/autoefi.h: Likewise.
36514 * include/grub/datetime.h: Likewise.
36515 * include/grub/term.h: Likewise.
36516 * include/grub/hfs.h: Likewise.
36517 * include/grub/lvm.h: Likewise.
36518 * include/grub/i386/tsc.h: Likewise.
36519 * include/grub/i386/linux.h: Likewise.
36520 * include/grub/i386/xnu.h: Likewise.
36521 * include/grub/i386/efiemu.h: Likewise.
36522 * include/grub/i386/pc/biosdisk.h: Likewise.
36523 * include/grub/i386/pc/memory.h: Likewise.
36524 * include/grub/i386/pc/vbe.h: Likewise.
36525 * include/grub/parttool.h: Likewise.
36526 * include/grub/video.h: Likewise.
36527 * include/grub/memory.h: Likewise.
36528 * include/grub/fs.h: Likewise.
36529 * include/grub/partition.h: Likewise.
36530 * include/grub/xnu.h: Likewise.
36531 * include/grub/efi/api.h: Likewise.
36532 * include/grub/efi/pe32.h: Likewise.
36533 * include/grub/efi/memory.h: Likewise.
36534 * include/grub/multiboot.h: Likewise.
36535 * include/grub/usbdesc.h: Likewise.
36536 * include/grub/multiboot2.h: Likewise.
36537 * include/grub/acpi.h: Likewise.
36538 * include/grub/efiemu/efiemu.h: Likewise.
36539 * include/grub/disk.h: Likewise.
36540 * include/grub/ieee1275/ieee1275.h: Likewise.
36541 * include/grub/net.h: Likewise.
36542 * include/grub/machoload.h: Likewise.
36543 * include/grub/macho.h: Likewise.
36544 * include/multiboot.h: Likewise.
36545 * genmoddep.awk: Likewise.
36546 * normal/main.c: Likewise.
36547 * normal/menu_entry.c: Likewise.
36548 * normal/menu_viewer.c: Likewise.
36549 * normal/completion.c: Likewise.
36550 * normal/cmdline.c: Likewise.
36551 * normal/misc.c: Likewise.
36552 * normal/datetime.c: Likewise.
36553 * bus/usb/usbtrans.c: Likewise.
36554 * bus/usb/ohci.c: Likewise.
36555 * bus/usb/uhci.c: Likewise.
36556 * bus/usb/usb.c: Likewise.
36557 * mmap/efi/mmap.c: Likewise.
36558 * mmap/i386/pc/mmap_helper.S: Likewise.
36559 * mmap/i386/pc/mmap.c: Likewise.
36560 * mmap/i386/mmap.c: Likewise.
36561 * mmap/i386/uppermem.c: Likewise.
36562 * mmap/mmap.c: Likewise.
36563 * commands/acpi.c: Likewise.
36564 * commands/echo.c: Likewise.
36565 * commands/blocklist.c: Likewise.
36566 * commands/loadenv.c: Likewise.
36567 * commands/usbtest.c: Likewise.
36568 * commands/boot.c: Likewise.
36569 * commands/parttool.c: Likewise.
36570 * commands/search.c: Likewise.
36571 * commands/cat.c: Likewise.
36572 * commands/i386/pc/play.c: Likewise.
36573 * commands/i386/pc/drivemap.c: Likewise.
36574 * commands/i386/pc/vbeinfo.c: Likewise.
36575 * commands/i386/pc/acpi.c: Likewise.
36576 * commands/i386/pc/vbetest.c: Likewise.
36577 * commands/ls.c: Likewise.
36578 * commands/cmp.c: Likewise.
36579 * commands/test.c: Likewise.
36580 * commands/efi/acpi.c: Likewise.
36581 * commands/gptsync.c: Likewise.
36582 * commands/help.c: Likewise.
36583 * partmap/amiga.c: Likewise.
36584 * partmap/apple.c: Likewise.
36585 * partmap/acorn.c: Likewise.
36586 * partmap/pc.c: Likewise.
36587 * partmap/sun.c: Likewise.
36588 * partmap/gpt.c: Likewise.
36589 * script/sh/lexer.c: Likewise.
36590 * script/sh/function.c: Likewise.
36591 * font/font.c: Likewise.
36592 * font/font_cmd.c: Likewise.
36593 * loader/powerpc/ieee1275/linux.c: Likewise.
36594 * loader/efi/chainloader.c: Likewise.
36595 * loader/multiboot_loader.c: Likewise.
36596 * loader/macho.c: Likewise.
36597 * loader/i386/multiboot.c: Likewise.
36598 * loader/i386/linux.c: Likewise.
36599 * loader/i386/pc/linux.c: Likewise.
36600 * loader/i386/pc/multiboot2.c: Likewise.
36601 * loader/i386/pc/chainloader.c: Likewise.
36602 * loader/i386/pc/xnu.c: Likewise.
36603 * loader/i386/bsd_trampoline.S: Likewise.
36604 * loader/i386/efi/linux.c: Likewise.
36605 * loader/i386/multiboot_elfxx.c: Likewise.
36606 * loader/i386/bsd_helper.S: Likewise.
36607 * loader/i386/bsd.c: Likewise.
36608 * loader/i386/linux_trampoline.S: Likewise.
36609 * loader/i386/xnu_helper.S: Likewise.
36610 * loader/i386/xnu.c: Likewise.
36611 * loader/i386/bsd_pagetable.c: Likewise.
36612 * loader/i386/multiboot_helper.S: Likewise.
36613 * loader/xnu.c: Likewise.
36614 * loader/xnu_resume.c: Likewise.
36615 * io/gzio.c: Likewise.
36616 * term/efi/console.c: Likewise.
36617 * term/terminfo.c: Likewise.
36618 * term/ieee1275/ofconsole.c: Likewise.
36619 * term/i386/pc/serial.c: Likewise.
36620 * term/i386/pc/vesafb.c: Likewise.
36621 * term/i386/pc/vga.c: Likewise.
36622 * term/usb_keyboard.c: Likewise.
36623 * term/gfxterm.c: Likewise.
36624 * aclocal.m4: Likewise.
36625 * util/lvm.c: Likewise.
36626 * util/grub.d/30_os-prober.in: Likewise.
36627 * util/grub.d/10_hurd.in: Likewise.
36628 * util/console.c: Likewise.
36629 * util/grub-macho2img.c: Likewise.
36630 * util/grub-probe.c: Likewise.
36631 * util/hostfs.c: Likewise.
36632 * util/i386/pc/grub-mkimage.c: Likewise.
36633 * util/i386/pc/grub-setup.c: Likewise.
36634 * util/i386/efi/grub-mkimage.c: Likewise.
36635 * util/grub-mkconfig.in: Likewise.
36636 * util/raid.c: Likewise.
36637 * util/resolve.c: Likewise.
36638 * util/grub-mkdevicemap.c: Likewise.
36639 * util/grub-emu.c: Likewise.
36640 * util/getroot.c: Likewise.
36641 * util/hostdisk.c: Likewise.
36642 * util/usb.c: Likewise.
36643 * util/grub-editenv.c: Likewise.
36644 * util/misc.c: Likewise.
36645
36646 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
36647
36648 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
36649 `genparttoollist.sh'.
36650 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
36651 Add `*.sh' to the list find searches for and change `mdate.sh'
36652 to `mdate-sh'.
36653
36654 2009-06-10 Pavel Roskin <proski@gnu.org>
36655
36656 * include/grub/multiboot2.h: Provide compatibility defines for
36657 multiboot2.h.
36658 * include/multiboot2.h: Include stdint.h only if needed, using
36659 angle brackets.
36660 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
36661 grub/multiboot2.h.
36662 * loader/ieee1275/multiboot2.c: Likewise.
36663 * loader/multiboot2.c: Likewise.
36664 * loader/multiboot_loader.c: Likewise.
36665
36666 * configure.ac: Use -nostdlib when probing for the target. It
36667 should not be required to have libc for the target.
36668
36669 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
36670 they fail without libc headers for the target.
36671 * include/grub/powerpc/libgcc.h: Use weak attribute for all
36672 exports.
36673 * include/grub/sparc64/libgcc.h: Likewise. Don't use
36674 preprocessor conditionals.
36675
36676 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
36677 build system doesn't need to be aware of the tar.c internals.
36678
36679 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
36680
36681 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
36682
36683 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
36684
36685 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
36686 disk limit to 26 for IDE, Virtio, Xen and SCSI.
36687
36688 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
36689
36690 * util/i386/pc/grub-install.in: Change the error message if UUIDs
36691 aren't available if ata.mod gets used.
36692
36693 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
36694
36695 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
36696 initialising controller.
36697 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
36698
36699 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
36700
36701 * util/i386/pc/grub-install.in: Add a parameter --disk-module
36702 to choose between ata and biosdisk module on i386-pc.
36703
36704 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
36705
36706 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
36707 Subclass and Programming Interface fields in terms of the 3 byte
36708 Class Code register.
36709 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
36710
36711 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
36712 interface is OHCI. Add grub_dprintf for symmetry with
36713 bus/usb/uhci.c.
36714 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
36715 interface is UHCI. Add interf variable for programming
36716 interface. Print interface with class/subclass.
36717
36718 * bus/usb/ohci.c: Set interf with correct field.
36719
36720 * bus/usb/uhci.c: Remove unneeded doubled lines.
36721 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
36722 Remove whitespace inside comment.
36723
36724 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
36725
36726 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
36727 as fallback an equivalent option without depth.
36728
36729 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
36730
36731 Not fail if unable to retrieve C/H/S on LBA disks
36732
36733 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
36734 if unable to retrieve C/H/S on LBA disks
36735
36736 2009-06-08 Pavel Roskin <proski@gnu.org>
36737
36738 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
36739 about aliasing.
36740
36741 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
36742
36743 * Makefile.in (uninstall): Remove all $lib_DATA files.
36744
36745 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
36746
36747 Bugfix: install on partitionless device
36748
36749 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
36750 is a whole disk
36751
36752 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
36753
36754 * Makefile.in (uninstall): Remove all $include_DATA files.
36755
36756 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
36757
36758 * commands/true.c: New file. Implement the true and false commands.
36759 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
36760 (true_mod_SOURCES): New variable.
36761 (true_mod_CFLAGS): Likewise.
36762 (true_mod_LDFLAGS): Likewise.
36763
36764 2009-06-05 Colin D Bennett <colin@gibibit.com>
36765
36766 Optimized font character lookup using binary search instead of linear
36767 search. Fonts now are required to have the character index ordered by
36768 code point.
36769
36770 * font/font.c (load_font_index): Verify that fonts have ordered
36771 character indices.
36772 (find_glyph): Use binary search instead of linear search to find a
36773 character in a font.
36774
36775 2009-06-05 Michael Scherer <misc@mandriva.org>
36776
36777 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
36778 uses case sensitive btree.
36779 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
36780 only for case insensitive filesystems.
36781
36782 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
36783
36784 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
36785 * conf/common.rmk (search_mod_CFLAGS): likewise
36786
36787 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36788
36789 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
36790 compensate a compiler bug
36791
36792 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36793
36794 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
36795 instead of '\b'
36796
36797 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36798
36799 Definitions for creating asm symbols with Apple's CC
36800
36801 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
36802 [APPLE_CC] (VARIABLE): likewise
36803
36804 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36805
36806 Disable lnxboot.img when compiled
36807 with Apple's CC
36808
36809 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
36810 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
36811 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
36812 [! APPLE_CC] (CODE_LENG): skip
36813 [! APPLE_CC] (setup_sects): likewise
36814 [! APPLE_CC]: skip filling
36815
36816 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36817
36818 Address in trampolines based on 32-bit registers when compiled
36819 with Apple's CC
36820
36821 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
36822 for addresses
36823 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
36824
36825 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36826
36827 Avoid aliases when compiling with Apple's CC for PCBIOS machine
36828
36829 * kern/misc.c [APPLE_CC] (memcpy): new function
36830 [APPLE_CC] (memmove): likewise
36831 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
36832 (memcpy): define alias conditionally on !APPLE_CC
36833 (memset): likewise
36834 (abort): likewise
36835 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
36836 APPLE_CC are defined
36837 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
36838 (grub_assert_fail): make prototype conditional
36839
36840 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36841
36842 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
36843
36844 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
36845 grub-macho2img
36846 (CLEANFILES): add grub-macho2img
36847 (grub_macho2img_SOURCES): new variable
36848 * kern/i386/pc/startup.S (bss_start): new variable
36849 (bss_end): likewise
36850 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
36851 * util/grub-macho2img.c: new file
36852
36853 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36854
36855 Use objconv when compiling with Apple's CC
36856
36857 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
36858 (efiemu64.o): likewise
36859 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
36860 when compiling with Apple's CC
36861 (efiemu64_s.o): likewise
36862 * configure.ac: check for objconv when compiling with Apple's CC
36863 * genmk.rb: use objconv for modules when compiled with Apple's CC
36864
36865 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36866
36867 Define segment as well as section when compiling with
36868 Apple's CC
36869
36870 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
36871 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
36872 (efiemu_convert_pointer): likewise
36873 (efiemu_set_virtual_address_map): likewise
36874 (efiemu_convert_pointer): likewise
36875 (efiemu_getcrc32): likewise
36876 (init_crc32_table): likewise
36877 (reflect): likewise
36878 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
36879 (GRUB_MOD_DEP): likewise
36880
36881 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36882
36883 Allow a compilation without -mcmodel=large
36884
36885 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
36886 when compiled without -mcmodel=large
36887 (filter_memory_map): remove memory post 4 GiB when compiled
36888 without -mcmodel=large
36889 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
36890 TARGET_CFLAGS when -mcmodel=large isn't supported
36891
36892 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36893
36894 Remove nested functions in efiemu core
36895
36896 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
36897
36898 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36899
36900 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
36901
36902 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
36903 temporary storage
36904 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
36905 using Apple's CC
36906 (grub_cpu_is_tsc_supported): likewise
36907 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
36908
36909 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36910
36911 Absolute addressing through constant with Apple's cc
36912
36913 * kern/i386/pc/startup.S: Define necessary constants
36914 and address through it when using ABS with Apple's CC
36915 * boot/i386/pc/diskboot.S: likewise
36916 * boot/i386/pc/boot.S: likewise
36917 * boot/i386/pc/lnxboot.S: likewise
36918 * boot/i386/pc/cdboot.S: likewise
36919 * mmap/i386/pc/mmap_helper.S: likewise
36920 * commands/i386/pc/drivemap_int13h.S: likewise
36921
36922 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36923
36924 Check if compiler is apple cc
36925
36926 * Makefile.in (ASFLAGS): new variable
36927 (TARGET_ASFLAGS): likewise
36928 (TARGET_MODULE_FORMAT): likewise
36929 (TARGET_APPLE_CC): likewise
36930 (OBJCONV): likewise
36931 (TARGET_IMG_CFLAGS): likewise
36932 (TARGET_CPPFLAGS): add includedir
36933 * configure.ac: call grub_apple_cc and grub_apple_target_cc
36934 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
36935 Check for linker script only if compiler isn't Apple's CC
36936 (TARGET_MODULE_FORMAT): set
36937 (TARGET_APPLE_CC): likewise
36938 (TARGET_ASFLAGS): likewise
36939 (ASFLAGS): likewise
36940 Check for objcopy only if compiler isn't Apple's CC
36941 Check for BSS symbol only if compiler isn't Apple's CC
36942 * genmk.rb: adapt nm options if we use Apple's utils
36943 * aclocal.m4 (grub_apple_cc): new test
36944 (grub_apple_target_cc): likewise
36945
36946 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36947
36948 Simplify sed expressions and improve awk
36949
36950 * Makefile.in (install-local): simplify sed expression
36951 * gencmdlist.sh: likewise
36952 * genmoddep.awk: avoid adding module as a dependency of itself
36953
36954 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36955
36956 Add missing start symbols
36957
36958 * boot/i386/pc/boot.S: add start
36959 * boot/i386/pc/pxeboot.S: likewise
36960
36961 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36962
36963 Fix wrong assumptions with grub-mkimage on EFI
36964
36965 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
36966 (relocate_addresses): consider both r_addend and value at offset
36967 (make_mods_section): zerofill modinfo and header
36968 (convert_elf): write prefix here
36969
36970 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36971
36972 Use .asciz instead of .string
36973
36974 * i386/pc/diskboot.S: use .asciz instead of .string
36975 * i386/pc/boot.S: likewise
36976 * include/grub/dl.h (GRUB_MOD_DEP): likewise
36977 (GRUB_MOD_NAME): likewise
36978
36979 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36980
36981 gfxpayload support
36982
36983 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
36984 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
36985 (grub_video_setup): remove
36986 (grub_video_set_mode): new prototype
36987 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
36988 (vid_mode): remove
36989 (linux_vesafb_res): compile only on PCBIOS
36990 (grub_linux_boot): support gfxpayload
36991 * loader/i386/pc/xnu.c (video_hook): new function
36992 (grub_xnu_set_video): support gfxpayload
36993 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
36994 (DEFAULT_VIDEO_HEIGHT): likewise
36995 (DEFAULT_VIDEO_FLAGS): likewise
36996 (DEFAULT_VIDEO_MODE): new definition
36997 (video_hook): new function
36998 (grub_gfxterm_init): use grub_video_set_mode
36999 * util/grub.d/30_os-prober.in: remove explicit modesetting before
37000 loading xnu
37001 * video/video.c (grub_video_setup): removed
37002 (grub_video_set_mode): new function based on grub_gfxterm_init and
37003 grub_video_setup
37004
37005 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37006
37007 Avoid calling biosdisk in drivemap
37008
37009 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
37010 (revparse_biosdisk): likewise
37011 (list_mappings): derive name from id directly
37012 (grub_cmd_drivemap): use tryparse_diskstring
37013
37014 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37015
37016 Script fixes
37017
37018 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
37019 (grub_lexer_param): add tokenonhold
37020 (grub_script_create_cmdline): remove cmdline. All callers updated
37021 (grub_script_function_create): make functionname
37022 grub_script_arg. All callers updated
37023 (grub_script_execute_argument_to_string): new prototype
37024 * kern/parser.c (state_transitions): reorder
37025 (grub_parser_cmdline_state): fix a bug and make more compact
37026 * script/sh/execute.c (grub_script_execute_argument_to_string):
37027 make global
37028 (grub_script_execute_cmdline): use new format
37029 * script/sh/function.c (grub_script_function_create): make functionname
37030 grub_script_arg. All callers updated
37031 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
37032 (grub_script_yylex): remove
37033 (grub_script_yylex2): renamed to ...
37034 (grub_script_yylex): ...renamed
37035 parse the expressions like a${b}c
37036 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
37037 (GRUB_PARSER_TOKEN_VAR): remove
37038 (GRUB_PARSER_TOKEN_NAME): likewise
37039 ("if"): declare as typeless
37040 ("while"): likewise
37041 ("function"): likewise
37042 ("else"): likewise
37043 ("then"): likewise
37044 ("fi"): likewise
37045 (text): remove
37046 (argument): likewise
37047 (script): accept empty scripts and make exit on error
37048 (arguments): use GRUB_PARSER_TOKEN_ARG
37049 (function): likewise
37050 (command): move error handling to script
37051 (menuentry): move grub_script_lexer_ref before
37052 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
37053 argument. All callers updated
37054
37055 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
37056
37057 Prevent GRUB from probing floppies during boot.
37058
37059 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
37060 * commands/search.c (options): Add --no-floppy.
37061 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
37062 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
37063 --no-floppy when searching for UUIDs.
37064
37065 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
37066
37067 Simplify the code duplication in commands/search.c.
37068
37069 * commands/search.c (search_label, search_fs_uuid): Merge into ...
37070 (search_fs): ... this. Update all users.
37071
37072 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
37073
37074 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
37075
37076 2009-05-28 Pavel Roskin <proski@gnu.org>
37077
37078 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
37079 Remove the original symlink explicitly.
37080
37081 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
37082 just one slash. That's how grub_fshelp_find_file() does it.
37083
37084 2009-05-26 Pavel Roskin <proski@gnu.org>
37085
37086 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
37087 to `str'.
37088
37089 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
37090 possibly unused.
37091
37092 2009-05-25 Christian Franke <franke@computer.org>
37093
37094 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
37095 register.
37096 (grub_atapi_identify): Add wait after drive select.
37097 (grub_ata_identify): Do more strict status register check before
37098 calling grub_atapi_identify (). Suppress error message if status
37099 register is 0x00 after command failure. Add status register
37100 check after PIO read to avoid bogus identify due to stuck DRQ.
37101 Thanks to Pavel Roskin for testing.
37102 (grub_device_initialize): Remove unsafe status register check.
37103 Thanks to 'phcoder' for problem report and patch.
37104 Prevent sign extension in debug message.
37105
37106 2009-05-23 Colin D Bennett <colin@gibibit.com>
37107
37108 Cleaned up `include/grub/normal.h'. Grouped prototypes by
37109 definition file, and functions defined in `normal/menu.c' have had
37110 their prototypes moved to `include/grub/menu.h' for consistency.
37111
37112 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
37113 from normal.h.
37114 (grub_menu_get_entry): Likewise.
37115 (grub_menu_get_timeout): Likewise.
37116 (grub_menu_set_timeout): Likewise.
37117 (grub_menu_execute_entry): Likewise.
37118 (grub_menu_execute_with_fallback): Likewise.
37119 (grub_menu_entry_run): Likewise.
37120
37121 * include/grub/normal.h: Re-ordered and grouped function
37122 prototypes by file that the function is defined in.
37123 (grub_menu_execute_callback): Removed; moved to menu.h.
37124 (grub_menu_get_entry): Likewise.
37125 (grub_menu_get_timeout): Likewise.
37126 (grub_menu_set_timeout): Likewise.
37127 (grub_menu_execute_entry): Likewise.
37128 (grub_menu_execute_with_fallback): Likewise.
37129 (grub_menu_entry_run): Likewise.
37130 (grub_menu_addentry): Renamed from this ...
37131 (grub_normal_add_menu_entry): ... to this.
37132
37133 * normal/main.c (grub_menu_addentry): Renamed from this ...
37134 (grub_normal_add_menu_entry): ... to this.
37135
37136 * script/sh/execute.c (grub_script_execute_menuentry): Update
37137 reference to renamed grub_menu_addentry function.
37138
37139 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
37140
37141 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
37142
37143 2009-05-22 Pavel Roskin <proski@gnu.org>
37144
37145 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
37146 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
37147 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
37148 compiling for the i386 targets, but not for the utilities.
37149
37150 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
37151 to grub_uint8_t.
37152 (grub_root_drive): Likewise.
37153 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
37154 remove alignment.
37155 (grub_root_drive): Change size to byte.
37156 (grub_start_addr): Remove.
37157 (grub_end_addr): Likewise.
37158 (grub_apm_bios_info): Likewise.
37159
37160 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
37161
37162 * normal/i386: Remove.
37163 * normal/powerpc: Likewise.
37164 * normal/sparc64: Likewise.
37165 * normal/x86_64: Likewise.
37166
37167 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
37168
37169 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
37170 * loader/i386/linux_trampoline.S: Fix indentation
37171 * loader/i386/xnu_helper.S: Likewise
37172
37173 2009-05-18 Colin D Bennett <colin@gibibit.com>
37174
37175 Display error messages when parsing a Lua statement fails.
37176 Previously, executing a syntactically invalid statement like
37177 ")foo" or "bar;" would silently fail.
37178
37179 * script/lua/grub_main.c (handle_lua_error): New function.
37180 (grub_lua_parse_line): Improved reporting of Lua parser and
37181 execution errors.
37182
37183 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
37184
37185 Remove -Werror which causes build to fail on some systems
37186
37187 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
37188 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
37189 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
37190
37191 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
37192
37193 trampoline for linux on 64-bit platform
37194
37195 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
37196 loader/i386/efi/linux_trampoline.S
37197 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
37198 declaration
37199 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
37200 here
37201 * loader/i386/linux_trampoline.S: moved here
37202 * loader/i386/efi/linux.c (allocate_pages): reserve space for
37203 trampoline
37204 (jumpvector): removed
37205 (grub_linux_trampoline_start): new declaration
37206 (grub_linux_trampoline_end): likewise
37207 (grub_linux_boot): use trampoline when on 64-bit platform
37208 * loader/i386/linux.c: likewise
37209
37210 2009-05-16 Pavel Roskin <proski@gnu.org>
37211
37212 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
37213 const to avoid a warning.
37214 (grub_lua_setenv): Likewise.
37215 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
37216 lmsg to fix a warning.
37217
37218 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
37219
37220 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
37221 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
37222 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
37223 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
37224 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
37225 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
37226 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
37227 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
37228
37229 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
37230
37231 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
37232
37233 2009-05-16 Bean <bean123ch@gmail.com>
37234
37235 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
37236 (lua_mod_SOURCES): New variable.
37237 (lua_mod_CFLAGS): Likewise.
37238 (lua_mod_LDFLAGS): Likewise.
37239
37240 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
37241 (setjmp_mod_SOURCES): New variable.
37242 (setjmp_mod_CFLAGS): Likewise.
37243 (setjmp_LDFLAGS): Likewise.
37244
37245 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
37246 (setjmp_mod_SOURCES): New variable.
37247 (setjmp_mod_CFLAGS): Likewise.
37248 (setjmp_LDFLAGS): Likewise.
37249
37250 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
37251 (setjmp_mod_SOURCES): New variable.
37252 (setjmp_mod_CFLAGS): Likewise.
37253 (setjmp_LDFLAGS): Likewise.
37254
37255 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
37256 (setjmp_mod_SOURCES): New variable.
37257 (setjmp_mod_CFLAGS): Likewise.
37258 (setjmp_LDFLAGS): Likewise.
37259
37260 * normal/i386/setjmp.S: Moved from here ...
37261 * lib/i386/setjmp.S: ... Moved here
37262 * normal/x86_64/setjmp.S: Moved from here ...
37263 * lib/x86_64/setjmp.S: ... Moved here
37264 * normal/powerpc/setjmp.S: Moved from here ...
37265 * lib/powerpc/setjmp.S: ... Moved here
37266 * normal/sparc64/setjmp.S: Moved from here ...
37267 * lib/sparc64/setjmp.S: ... Moved here
37268
37269 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
37270 returns_twice in mingw.
37271
37272 * script/lua/grub_lib.c: New file.
37273 * script/lua/grub_lib.h: Likewise.
37274 * script/lua/grub_lua.h: Likewise.
37275 * script/lua/grub_main.c: Likewise.
37276 * script/lua/lapi.c: Likewise.
37277 * script/lua/lapi.h: Likewise.
37278 * script/lua/lauxlib.c: Likewise.
37279 * script/lua/lauxlib.h: Likewise.
37280 * script/lua/lbaselib.c: Likewise.
37281 * script/lua/lcode.c: Likewise.
37282 * script/lua/lcode.h: Likewise.
37283 * script/lua/ldblib.c: Likewise.
37284 * script/lua/ldebug.c: Likewise.
37285 * script/lua/ldebug.h: Likewise.
37286 * script/lua/ldo.c: Likewise.
37287 * script/lua/ldo.h: Likewise.
37288 * script/lua/ldump.c: Likewise.
37289 * script/lua/lfunc.c: Likewise.
37290 * script/lua/lfunc.h: Likewise.
37291 * script/lua/lgc.c: Likewise.
37292 * script/lua/lgc.h: Likewise.
37293 * script/lua/linit.c: Likewise.
37294 * script/lua/liolib.c: Likewise.
37295 * script/lua/llex.c: Likewise.
37296 * script/lua/llex.h: Likewise.
37297 * script/lua/llimits.h: Likewise.
37298 * script/lua/lmathlib.c: Likewise.
37299 * script/lua/lmem.c: Likewise.
37300 * script/lua/lmem.h: Likewise.
37301 * script/lua/loadlib.c: Likewise.
37302 * script/lua/lobject.c: Likewise.
37303 * script/lua/lobject.h: Likewise.
37304 * script/lua/lopcodes.c: Likewise.
37305 * script/lua/lopcodes.h: Likewise.
37306 * script/lua/loslib.c: Likewise.
37307 * script/lua/lparser.c: Likewise.
37308 * script/lua/lparser.h: Likewise.
37309 * script/lua/lstate.c: Likewise.
37310 * script/lua/lstate.h: Likewise.
37311 * script/lua/lstring.c: Likewise.
37312 * script/lua/lstring.h: Likewise.
37313 * script/lua/lstrlib.c: Likewise.
37314 * script/lua/ltable.c: Likewise.
37315 * script/lua/ltable.h: Likewise.
37316 * script/lua/ltablib.c: Likewise.
37317 * script/lua/ltm.c: Likewise.
37318 * script/lua/ltm.h: Likewise.
37319 * script/lua/lua.h: Likewise.
37320 * script/lua/luaconf.h: Likewise.
37321 * script/lua/lualib.h: Likewise.
37322 * script/lua/lundump.c: Likewise.
37323 * script/lua/lundump.h: Likewise.
37324 * script/lua/lvm.c: Likewise.
37325 * script/lua/lvm.h: Likewise.
37326 * script/lua/lzio.c: Likewise.
37327 * script/lua/lzio.h: Likewise.
37328
37329 2009-05-16 Bean <bean123ch@gmail.com>
37330
37331 * include/grub/kernel.h (grub_module_header_types): Add type
37332 OBJ_TYPE_CONFIG.
37333
37334 * kern/main.c (grub_load_config): New function.
37335 (grub_main): Call grub_load_config to read boot config.
37336
37337 * grub-mkimage (generate_image): New parameter config_path.
37338 (options): New option --config.
37339 (main): Parse --config option, and pass it to generate_image.
37340
37341 2009-05-14 Christian Franke <franke@computer.org>
37342
37343 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
37344 This fixes build on Cygwin.
37345
37346 2009-05-14 Pavel Roskin <proski@gnu.org>
37347
37348 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
37349 jump. This saves two bytes, so the typical case of 2 swapped
37350 drives would fit 32 bytes.
37351
37352 2009-05-13 Pavel Roskin <proski@gnu.org>
37353
37354 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
37355 grub_uint32_t to avoid a warning.
37356
37357 * loader/i386/linux.c (allocate_pages): When assigning
37358 real_mode_mem, cast through grub_size_t to fix a warning. The
37359 code already makes sure that the value would fit a pointer.
37360 (grub_linux_setup_video): Cast render_target->data to
37361 grub_size_t to fix a warning.
37362
37363 2009-05-13 Javier Martín <lordhabbit@gmail.com>
37364
37365 * commands/i386/pc/drivemap.c: New file - implement drivemap
37366 command.
37367 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
37368 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
37369
37370 2009-05-13 Pavel Roskin <proski@gnu.org>
37371
37372 * util/i386/pc/grub-setup.c (setup): Remove unused variable
37373 embedding_area_exists.
37374
37375 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
37376
37377 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
37378 it easier to understand / work with.
37379 Improve warning messages for cases where there's no embedding area,
37380 or when it is too small (or core.img too large).
37381
37382 2009-05-13 Pavel Roskin <proski@gnu.org>
37383
37384 * loader/i386/pc/multiboot2.c: Add necessary includes for
37385 grub_multiboot2_real_boot().
37386
37387 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
37388 PX record is always little-endian. We only need the lower 2
37389 bytes of the mode.
37390
37391 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
37392 facilitate code reuse.
37393 (grub_cpio_mount): Use "struct head", not a char buffer. This
37394 fixes a warning reported by gcc 4.4.
37395
37396 * kernel/disk.c (grub_disk_read): Use void pointer for the
37397 buffer.
37398 (grub_disk_write): Use const void pointer for the buffer.
37399 Adjust all callers. Remove unnecessary casts.
37400
37401 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
37402
37403 * util/i386/pc/grub-install.in: Update copyright year.
37404
37405 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
37406
37407 gptsync
37408
37409 * commands/gptsync.c: new file
37410 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
37411 (gptsync_mod_SOURCES): new variable
37412 (gptsync_mod_CFLAGS): likewise
37413 (gptsync_mod_LDFLAGS): likewise
37414 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
37415 new definition
37416 (GRUB_PC_PARTITION_TYPE_HFS): likewise
37417 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
37418 * conf/i386-ieee1275.rmk: likewise
37419 * conf/i386-pc.rmk: likewise
37420 * conf/powerpc-ieee1275.rmk: likewise
37421
37422 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
37423
37424 Fixed grub-emu
37425
37426 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
37427 (grub_dl_ref): likewise
37428
37429 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
37430
37431 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
37432 split in two functions (one for msdos and one for gpt).
37433
37434 2009-05-08 Pavel Roskin <proski@gnu.org>
37435
37436 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
37437 not modified.
37438
37439 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
37440 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
37441 Initialize them with -1. Add sanity check for bad1. Eliminate
37442 nerr variable.
37443
37444 2009-05-08 David S. Miller <davem@davemloft.net>
37445
37446 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
37447
37448 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
37449
37450 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
37451 existence.
37452
37453 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
37454
37455 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
37456 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
37457
37458 2009-05-05 David S. Miller <davem@davemloft.net>
37459
37460 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
37461
37462 2009-05-05 Pavel Roskin <proski@gnu.org>
37463
37464 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
37465 of grub_dl_ref() and grub_dl_unref().
37466 * commands/parttool.c: Remove preprocessor conditionals around
37467 grub_dl_ref() and grub_dl_unref().
37468 * fs/affs.c: Likewise.
37469 * fs/afs.c: Likewise.
37470 * fs/cpio.c: Likewise.
37471 * fs/ext2.c: Likewise.
37472 * fs/fat.c: Likewise.
37473 * fs/hfs.c: Likewise.
37474 * fs/hfsplus.c: Likewise.
37475 * fs/iso9660.c: Likewise.
37476 * fs/jfs.c: Likewise.
37477 * fs/minix.c: Likewise.
37478 * fs/ntfs.c: Likewise.
37479 * fs/reiserfs.c: Likewise.
37480 * fs/sfs.c: Likewise.
37481 * fs/udf.c: Likewise.
37482 * fs/ufs.c: Likewise.
37483 * fs/xfs.c: Likewise.
37484 * include/grub/dl.h: Likewise.
37485 * loader/xnu.c: Likewise.
37486
37487 2009-05-04 Pavel Roskin <proski@gnu.org>
37488
37489 * commands/acpi.c: Remove unused variable my_mod.
37490 * partmap/amiga.c: Likewise.
37491 * partmap/apple.c: Likewise.
37492 * partmap/gpt.c: Likewise.
37493 * partmap/pc.c: Likewise.
37494 * partmap/sun.c: Likewise.
37495 * term/gfxterm.c: Likewise.
37496 * term/i386/pc/vesafb.c: Likewise.
37497 * term/i386/pc/vga.c: Likewise.
37498
37499 2009-05-04 David S. Miller <davem@davemloft.net>
37500
37501 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
37502 pointer args to grub_ieee1275_get_property().
37503
37504 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
37505
37506 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
37507 devices, and do not traverse down under controller nodes.
37508
37509 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
37510 (grub_ofdisk_open): Use it to un-escape "," characters.
37511 * kern/disk.c (find_part_sep): New.
37512 (grub_disk_open): Use it to find the first non-escaped ','
37513 character in the disk name.
37514 * util/ieee1275/devicemap.c (escape_of_path): New.
37515 (grub_util_emit_devicemap_entry): Use it.
37516 * util/sparc64/ieee1275/grub-install.in: Update script to
37517 strip partition specifiers properly by not triggering on
37518 '\' escaped ',' characters.
37519
37520 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
37521
37522 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
37523 to 0x300.
37524 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
37525 resolutions.
37526 (linux_vesafb_modes): Add a lot of additional modes to the list (based
37527 on documentation from Wikipedia).
37528
37529 2009-05-04 Pavel Roskin <proski@gnu.org>
37530
37531 * disk/ata.c: Spelling fixes.
37532 * disk/raid.c: Likewise.
37533 * disk/usbms.c: Likewise.
37534 * disk/dmraid_nvidia.c: Likewise.
37535 * kern/ieee1275/openfw.c: Likewise.
37536 * kern/ieee1275/init.c: Likewise.
37537 * kern/ieee1275/cmain.c: Likewise.
37538 * boot/i386/pc/cdboot.S: Likewise.
37539 * video/readers/png.c: Likewise.
37540 * video/i386/pc/vbe.c: Likewise.
37541 * fs/udf.c: Likewise.
37542 * fs/hfs.c: Likewise.
37543 * fs/reiserfs.c: Likewise.
37544 * efiemu/runtime/efiemu.c: Likewise.
37545 * efiemu/main.c: Likewise.
37546 * efiemu/mm.c: Likewise.
37547 * include/grub/elf.h: Likewise.
37548 * include/grub/xnu.h: Likewise.
37549 * include/grub/usbdesc.h: Likewise.
37550 * include/grub/usb.h: Likewise.
37551 * include/grub/script_sh.h: Likewise.
37552 * include/grub/lib/LzmaEnc.h: Likewise.
37553 * include/grub/efiemu/efiemu.h: Likewise.
37554 * include/grub/command.h: Likewise.
37555 * normal/menu.c: Likewise.
37556 * normal/main.c: Likewise.
37557 * normal/datetime.c: Likewise.
37558 * bus/usb/uhci.c: Likewise.
37559 * mmap/i386/uppermem.c: Likewise.
37560 * mmap/mmap.c: Likewise.
37561 * commands/acpi.c: Likewise.
37562 * commands/test.c: Likewise.
37563 * partmap/apple.c: Likewise.
37564 * font/font.c: Likewise.
37565 * loader/sparc64/ieee1275/linux.c: Likewise.
37566 * loader/macho.c: Likewise.
37567 * loader/i386/bsd_trampoline.S: Likewise.
37568 * loader/i386/bsd.c: Likewise.
37569 * loader/xnu.c: Likewise.
37570 * term/i386/pc/vesafb.c: Likewise.
37571 * term/usb_keyboard.c: Likewise.
37572 * util/resolve.c: Likewise.
37573 * util/getroot.c: Likewise.
37574
37575 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
37576
37577 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
37578
37579 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
37580
37581 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
37582 build error.
37583
37584 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
37585
37586 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
37587 parameter only available on BIOS.
37588
37589 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
37590
37591 Removed wrong semicolon in declaration
37592
37593 * grub/misc.h (grub_dprintf): remove semicolon
37594
37595 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
37596
37597 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
37598 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
37599 is done by grub_cmd_linux() now).
37600 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
37601 restore video to text mode.
37602 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
37603 indicates lack of "vga=" parameter. "vga=0" is mapped to
37604 `GRUB_LINUX_VID_MODE_NORMAL'.
37605
37606 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
37607
37608 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
37609 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
37610 and `normal/script.c'. Add `kern/rescue_reader.c',
37611 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
37612 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
37613 `grub_script.tab.c'.
37614
37615 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37616 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
37617 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37618 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
37619 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37620
37621 * Makefile.in: Remove duplicated 2008 in Copyright line.
37622
37623 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
37624
37625 * util/misc.c (grub_util_warn): New function. Emits a warning
37626 unconditionally.
37627 * include/grub/util/misc.h (grub_util_warn): New declaration.
37628
37629 * util/i386/pc/grub-install.in: Understand --force and pass it down
37630 to grub-setup.
37631
37632 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
37633 down to setup().
37634 (setup): Improve error messages and add warnings when requested to
37635 install in odd layouts. Refuse to install using blocklists unless
37636 --force was set.
37637
37638 2009-05-04 martin f. krafft <madduck@madduck.net>
37639
37640 * disk/raid.c (grub_raid_scan_device): Improve debug message.
37641
37642 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
37643
37644 Updated copyright year
37645
37646 * fs/hfsplus.c: updated copyright year
37647
37648 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
37649
37650 HFS+ UUID
37651
37652 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
37653 in the space previously used by unused3
37654 (grub_hfsplus_uuid): new function
37655 (grub_hfsplus_fs): added uuid field
37656
37657 2009-05-03 Pavel Roskin <proski@gnu.org>
37658
37659 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
37660 suppress warnings. It's no longer needed.
37661 * disk/host.c: Likewise.
37662 * disk/ata_pthru.c: Likewise.
37663 * disk/loopback.c: Likewise.
37664 * hook/datehook.c: Likewise.
37665 * parttool/pcpart.c: Likewise.
37666 * fs/i386/pc/pxe.c: Likewise.
37667 * fs/ntfscomp.c: Likewise.
37668 * efiemu/main.c: Likewise.
37669 * mmap/mmap.c: Likewise.
37670 * commands/crc.c: Likewise.
37671 * commands/hexdump.c: Likewise.
37672 * commands/hdparm.c: Likewise.
37673 * commands/acpi.c: Likewise.
37674 * commands/echo.c: Likewise.
37675 * commands/minicmd.c: Likewise.
37676 * commands/blocklist.c: Likewise.
37677 * commands/memrw.c: Likewise.
37678 * commands/loadenv.c: Likewise.
37679 * commands/usbtest.c: Likewise.
37680 * commands/lsmmap.c: Likewise.
37681 * commands/boot.c: Likewise.
37682 * commands/parttool.c: Likewise.
37683 * commands/configfile.c: Likewise.
37684 * commands/search.c: Likewise.
37685 * commands/ieee1275/suspend.c: Likewise.
37686 * commands/cat.c: Likewise.
37687 * commands/i386/pc/pxecmd.c: Likewise.
37688 * commands/i386/pc/play.c: Likewise.
37689 * commands/i386/pc/halt.c: Likewise.
37690 * commands/i386/pc/vbeinfo.c: Likewise.
37691 * commands/i386/pc/vbetest.c: Likewise.
37692 * commands/lspci.c: Likewise.
37693 * commands/date.c: Likewise.
37694 * commands/handler.c: Likewise.
37695 * commands/ls.c: Likewise.
37696 * commands/test.c: Likewise.
37697 * commands/cmp.c: Likewise.
37698 * commands/efi/loadbios.c: Likewise.
37699 * commands/efi/fixvideo.c: Likewise.
37700 * commands/halt.c: Likewise.
37701 * commands/help.c: Likewise.
37702 * commands/reboot.c: Likewise.
37703 * hello/hello.c: Likewise.
37704 * script/sh/main.c: Likewise.
37705 * loader/xnu.c: Likewise.
37706 * term/terminfo.c: Likewise.
37707 * term/i386/pc/serial.c: Likewise.
37708 * term/usb_keyboard.c: Likewise.
37709
37710 2009-05-03 David S. Miller <davem@davemloft.net>
37711
37712 * normal/menu.c: Include grub/parser.h
37713
37714 2009-05-03 Pavel Roskin <proski@gnu.org>
37715
37716 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
37717 not char*.
37718 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
37719 Suggested by Javier Martín <lordhabbit@gmail.com>
37720
37721 * util/i386/pc/grub-mkrescue.in: Allow for the case when
37722 efiemu??.o doesn't exist.
37723 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
37724 copying.
37725
37726 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
37727
37728 FreeBSD 64-bit support
37729
37730 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
37731 and loader/i386/bsd_trampoline.S
37732 (bsd_mod_ASFLAGS): new variable
37733 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
37734 (FREEBSD_MODTYPE_KERNEL64): likewise
37735 (grub_bsd64_trampoline_start): likewise
37736 (grub_bsd64_trampoline_end): likewise
37737 (grub_bsd64_trampoline_selfjump): likewise
37738 (grub_bsd64_trampoline_gdt): likewise
37739 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
37740 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
37741 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
37742 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
37743 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
37744 of "attrib" member
37745 * loader/i386/bsd_pagetable.c: new file
37746 * loader/i386/bsd_trampoline.S: likewise
37747 * loader/i386/bsd.c (ALIGN_QWORD): new macro
37748 (ALIGN_VAR): likewise
37749 (entry_hi): new variable
37750 (kern_end_mdofs): likewise
37751 (is_64bit): likewise
37752 (grub_freebsd_add_meta): use ALIGN_VAR
37753 (grub_e820_mmap): new declaration
37754 (grub_freebsd_add_mmap): new function
37755 (grub_freebsd_add_meta_module): support 64 bit kernels
37756 (grub_freebsd_list_modules): use ALIGN_VAR
37757 (gdt_descriptor): new declaration
37758 (grub_freebsd_boot): support 64 bit kernels
37759 (grub_bsd_elf64_hook): new function
37760 (grub_bsd_load_elf): support elf64
37761
37762 2009-05-03 Bean <bean123ch@gmail.com>
37763
37764 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
37765 after we get the result of if statement.
37766
37767 2009-05-03 Bean <bean123ch@gmail.com>
37768
37769 * Makefile.in (enable_efiemu): New variable.
37770
37771 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
37772 set.
37773 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
37774 path.
37775 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
37776 path, add -mno-red-zone option.
37777 (efiemu64_s.o): Likewise.
37778 (efiemu64.o): Use macro $^ for source file.
37779
37780 * configure.ac (--enable-efiemu): New option.
37781
37782 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
37783
37784 xnu support
37785
37786 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
37787 (pkglib_MODULES): add xnu.mod
37788 (xnu_mod_SOURCES): new variable
37789 (xnu_mod_CFLAGS): likewise
37790 (xnu_mod_LDFLAGS): likewise
37791 (xnu_mod_ASFLAGS): likewise
37792 * conf/i386-pc.rmk: likewise
37793 * conf/x86_64-efi.rmk: likewise
37794 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
37795 new declaration
37796 * include/grub/i386/macho.h: new file
37797 * include/grub/i386/xnu.h: likewise
37798 * include/grub/macho.h: likewise
37799 * include/grub/machoload.h: likewise
37800 * include/grub/x86_64/macho.h: likewise
37801 * include/grub/x86_64/xnu.h: likewise
37802 * include/grub/xnu.h: likewise
37803 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
37804 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
37805 * loader/i386/efi/xnu.c: new file
37806 * loader/i386/pc/xnu.c: likewise
37807 * loader/i386/xnu.c: likewise
37808 * loader/i386/xnu_helper.S: likewise
37809 * loader/macho.c: likewise
37810 * loader/xnu.c: likewise
37811 * loader/xnu_resume.c: likewise
37812 * util/grub-dumpdevtree: likewise
37813 * include/grub/i386/pit.h: include grub/err.h
37814 (grub_pit_wait): export
37815 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
37816
37817 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
37818
37819 Efiemu
37820
37821 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
37822 _linux_efi, linux_efi.
37823 new files in grub-emu
37824 new targets efiemu32.o and efiemu64.o
37825 * loader/linux_normal_efiemu.c: likewise
37826 * loader/i386/efi/linux.c: added preliminary efiemu support
37827 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
37828 files to copy
37829 * include/grub/autoefi.h: new file
37830 * include/grub/i386/efiemu.h: likewise
37831 * include/grub/i386/pc/efiemu.h: likewise
37832 * include/grub/efi/api.h: add LL suffix when necessary
37833 new definitions relating to tables
37834 * include/grub/efiemu/efiemu.h: new file
37835 * include/grub/efiemu/runtime.h: likewise
37836 * efiemu/prepare.c: likewise
37837 * efiemu/loadcore_common.c: likewise
37838 * efiemu/loadcore64.c: likewise
37839 * efiemu/runtime/efiemu.sh: likewise
37840 * efiemu/runtime/efiemu.S: likewise
37841 * efiemu/runtime/efiemu.c: likewise
37842 * efiemu/runtime/config.h: likewise
37843 * efiemu/prepare32.c: likewise
37844 * efiemu/main.c: likewise
37845 * efiemu/modules/pnvram.c: likewise
37846 * efiemu/modules/i386: likewise
37847 * efiemu/modules/i386/pc: likewise
37848 * efiemu/modules/acpi.c: likewise
37849 * efiemu/i386/pc/cfgtables.c: likewise
37850 * efiemu/i386/loadcore64.c: likewise
37851 * efiemu/i386/loadcore32.c: likewise
37852 * efiemu/prepare64.c: likewise
37853 * efiemu/loadcore.c: likewise
37854 * efiemu/symbols.c: likewise
37855 * efiemu/mm.c: likewise
37856 * efiemu/loadcore32.c: likewise
37857
37858 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
37859
37860 ACPI spoofing
37861
37862 * commands/acpi.c: new file
37863 * commands/i386/pc/acpi.c: likewise
37864 * commands/efi/acpi.c: likewise
37865 * include/grub/acpi.h: likewise
37866 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
37867 (acpi_mod_SOURCES): new variable
37868 (acpi_mod_CFLAGS): likewise
37869 (acpi_mod_LDFLAGS): likewise
37870 * conf/i386-efi.rmk: likewise
37871 * conf/x86_64-efi.rmk: likewise
37872
37873 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
37874
37875 Missing part from mmap patch
37876
37877 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
37878 (grub_mmap_unregister)
37879 (grub_mmap_free_and_unregister): use grub_mmap_register
37880
37881 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
37882
37883 Mmap services
37884
37885 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
37886 * loader/i386/linux.c (find_mmap_size): likewise
37887 (allocate_pages): likewise
37888 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
37889 (grub_fill_multiboot_mmap): likewise
37890 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
37891 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
37892 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
37893 (OPENBSD_MMAP_RESERVED): likewise
37894 * include/grub/i386/pc/memory.h: include grub/memory.h
37895 (grub_lower_mem): removed
37896 (grub_upper_mem): likewise
37897 (GRUB_MACHINE_MEMORY_ACPI): new definition
37898 (GRUB_MACHINE_MEMORY_NVS): likewise
37899 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
37900 (GRUB_MACHINE_MEMORY_HOLE): likewise
37901 (grub_machine_mmap_register): likewise
37902 (grub_machine_mmap_unregister): likewise
37903 (grub_machine_get_upper): likewise
37904 (grub_machine_get_lower): likewise
37905 (grub_machine_get_post64): likewise
37906 * include/grub/i386/efi/memory.h: new file
37907 * include/grub/x86_64/efi/memory.h: likewise
37908 * include/grub/efi/memory.h: likewise
37909 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
37910 (mmap_mod_SOURCES): new variable
37911 (mmap_mod_LDFLAGS): likewise
37912 (mmap_mod_ASFLAGS): likewise
37913 * conf/i386-coreboot.rmk: likewise
37914 * conf/i386-ieee1275.rmk: likewise
37915 * conf/i386-efi.rmk: likewise
37916 * conf/x86_64-efi.rmk: likewise
37917 * include/grub/types.h (UINT_TO_PTR): new macro
37918 (PTR_TO_UINT32): likewise
37919 (PTR_TO_UINT64): likewise
37920 * include/grub/memory.h: new file
37921 * mmap/i386/pc/mmap.c: likewise
37922 * mmap/i386/pc/mmap_helper.S: likewise
37923 * mmap/i386/uppermem.c: likewise
37924 * mmap/mmap.c: likewise
37925 * mmap/efi/mmap.c: likewise
37926 * kern/i386/coreboot/init.c (grub_machine_init): don't use
37927 grub_upper_mem
37928 * kern/i386/pc/init.c (grub_lower_mem): removed variable
37929 (grub_upper_mem): likewise
37930 (grub_machine_init): don't use grub_upper_mem,
37931 make grub_lower_mem local
37932 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
37933 grub_mmap_iterate and grub_mmap_get_upper
37934 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
37935
37936 2009-05-02 Bean <bean123ch@gmail.com>
37937
37938 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
37939 script/sh/parser.y.
37940 (pkglib_MODULES): Add normal.mod and sh.mod.
37941 (normal_SOURCES): New variable.
37942 (normal_mod_CFLAGS): Likewise.
37943 (normal_mod_LDFLAGS): Likewise.
37944 (sh_mod_SOURCES): Likewise.
37945 (sh_mod_CFLAGS): Likewise.
37946 (sh_mod_LDFLAGS): Likewise.
37947
37948 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
37949 script/sh/lexer.c_DEPENDENCIES.
37950 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
37951 kern/rescue_reader.c and kern/rescue_parser.c.
37952 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
37953 (grub_emu_SOURCES): Change source files.
37954 (pkglib_MODULES): Remove normal.mod.
37955 (normal_SOURCES): Removed.
37956 (normal_mod_CFLAGS): Likewise.
37957 (normal_mod_LDFLAGS): Likewise.
37958 * conf/i386-coreboot.rmk: Likewise.
37959 * conf/i386-efi.rmk: Likewise.
37960 * conf/i386-ieee1276.rmk: Likewise.
37961 * conf/powerpc-ieee1275.rmk: Likewise.
37962 * conf/sparc64-ieee1275.rmk: Likewise.
37963 * conf/x86_64-efi.rmk: Likewise.
37964
37965 * include/grub/command.h (grub_command_execute): New inline function.
37966
37967 * include/grub/menu.h (grub_menu_entry): Removed commands field.
37968
37969 * include/grub/normal.h: Remove <grub/setjmp.h>.
37970 (grub_fs_module_list): Moved to normal/autofs.c.
37971 (grub_exit_env): Removed.
37972 (grub_command_execute): Likewise.
37973 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
37974 parameter script.
37975 (read_command_list): New function declaration.
37976 (read_fs_list): Likewise.
37977
37978 * include/parser.h: Include <grub/reader.h>.
37979 (grub_parser_split_cmdline): Change type of getline parameter.
37980 (grub_parser): New structure.
37981 (grub_parser_class): New variable.
37982 (grub_parser_execute): New function declaration.
37983 (grub_register_rescue_parser): Likewise.
37984 (grub_parser_register): New inline function.
37985 (grub_parser_unregister): Likewise.
37986 (grub_parser_get_current): Likewise.
37987 (grub_parser_set_current): Likewise.
37988
37989 * include/grub/reader.h: New file.
37990 * kern/reader.c: Likewise.
37991 * kern/rescue_parser.c: Likewise.
37992 * kern/rescue_reader.c: Likewise.
37993 * normal/autofs.c: Likewise.
37994 * normal/dyncmd.c: Likewise.
37995
37996 * include/grub/rescue.h: Removed.
37997 * normal/command.h: Likewise.
37998
37999 * include/grub/script.h: Moved to ...
38000 * include/grub/script_sh.h: ... Moved here.
38001 * normal/execute.c: Moved to ...
38002 * script/sh/execute.c: ... Moved here.
38003 * normal/function.c: Moved to ...
38004 * script/sh/function.c: ... Moved here.
38005 * normal/lexer.c: Moved to ...
38006 * script/sh/lexer.c: ... Moved here.
38007 * normal/parser.y: Moved to ...
38008 * script/sh/parser.y: ... Moved here.
38009 * normal/script.c: Moved to ...
38010 * script/sh/script.c: ... Moved here.
38011
38012 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
38013 <grub/reader.h>.
38014 (grub_exit_env): Removed.
38015 (fs_module_list): Moved to normal/autofs.c.
38016 (grub_file_getline): Don't handle comment here.
38017 (free_menu): Skip removed field entry->commands.
38018 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
38019 script parameter.
38020 (read_config_file): Removed nested parameter, change getline function.
38021 (grub_enter_normal_mode): Removed.
38022 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
38023 (read_command_list): Likewise.
38024 (autoload_fs_module): Moved to normal/autofs.c.
38025 (read_fs_list): Likewise.
38026 (reader_nested): New variable.
38027 (grub_normal_execute): Run parser.sh to switch to sh parser.
38028 (grub_cmd_rescue): Removed.
38029 (cmd_normal): Removed.
38030 (grub_cmd_normal): Unregister itself at the beginning. Don't register
38031 rescue command.
38032 (grub_cmdline_run): New function.
38033 (grub_normal_reader_init): Likewise.
38034 (grub_normal_read_line): Likewise.
38035 (grub_env_write_pager): Likewise.
38036 (cmdline): New variable.
38037 (grub_normal_reader): Likewise.
38038 (GRUB_MOD_INIT): Register normal reader and set as current, register
38039 pager hook, register normal command with grub_register_command_prio,
38040 so that it won't show up in command.lst.
38041 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
38042 grub_fs_autoload_hook.
38043
38044 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
38045 (grub_menu_execute_entry): Replace grub_script_execute with
38046 grub_parser_execute, change parameter to grub_command_execute.
38047
38048 * normal/menu_text.c: Remove <grub/script.h>.
38049
38050 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
38051 and <grub/parser.h>.
38052 (run): Change editor_getline to use new parser interface. Change
38053 parameter to grub_command_execute.
38054
38055 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
38056 <grub/reader.h> and <grub/parser.h>.
38057 (grub_load_normal_mode): Execute normal command.
38058 (grub_main): Call grub_register_core_commands,
38059 grub_register_rescue_parser and grub_register_rescue_reader, use
38060 grub_reader_loop to enter input loop.
38061
38062 * kern/parser.c (grub_parser_split_cmdline): Change type of
38063 getline parameter.
38064 (grub_parser_class): New variable.
38065 (grub_parser_execute): New function.
38066
38067 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
38068 * loader/multiboot2.c: Likewise.
38069 * loader/sparc64/ieee1275/linux.c: Likewise.
38070
38071 * util/grub-emu.c (read_command_list): New dummy function.
38072
38073 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
38074
38075 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
38076 count to 16 for CCISS and IDA.
38077
38078 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
38079
38080 * normal/menu_text.c (grub_wait_after_message): Print a newline
38081 after waiting for user input.
38082
38083 * loader/i386/linux.c: Include `<grub/normal.h>'.
38084 (grub_cmd_linux): Improve the error message about `ask' mode, by
38085 waiting for user input so it's not missed (we can do this, since
38086 user requested interaction).
38087
38088 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38089
38090 Added missing lst to grub-mkrescue
38091
38092 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
38093 and ${input_dir}/parttool.lst
38094
38095 2009-04-30 David S. Miller <davem@davemloft.net>
38096
38097 * util/hostdisk.c (device_is_wholedisk): New function.
38098 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
38099 zero only if device_is_wholedisk() returns true.
38100
38101 * util/hostdisk.c (convert_system_partition_to_system_disk):
38102 Handle virtual disk devices named /dev/vdiskX as found on sparc
38103 and powerpc.
38104
38105 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
38106 lettered partition specifier is found, convert to numbered.
38107
38108 2009-04-29 David S. Miller <davem@davemloft.net>
38109
38110 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
38111 * include/grub/sparc64/ieee1275/memory.h: Likewise.
38112
38113 * normal/command.c: Add missing newline at end of file.
38114
38115 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
38116 warnings.
38117 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
38118 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
38119 grub_ofdisk_read): Likewise, and deal similarly with the fact that
38120 ihandles have a 32-bit type but need to be stored in a "void *".
38121
38122 2009-04-28 Pavel Roskin <proski@gnu.org>
38123
38124 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
38125 not disk. Adjust all dependencies.
38126 (grub_fs_uuid_close): Use grub_device_close(), not
38127 grub_disk_close().
38128
38129 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
38130 parent's partition, don't copy it by reference, as it gets freed
38131 on close.
38132
38133 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
38134
38135 Preboot hooks support
38136
38137 * commands/boot.c (struct grub_preboot_t): new declaration
38138 (preboots_head): new variable
38139 (preboots_tail): likewise
38140 (grub_loader_register_preboot_hook): new function
38141 (grub_loader_unregister_preboot_hook): likewise
38142 (grub_loader_set): launch preboot hooks
38143 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
38144 (grub_loader_register_preboot_hook): new declaration
38145 (grub_loader_unregister_preboot_hook): likewise
38146
38147 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
38148
38149 Warning fix
38150
38151 * disk/scsi.c (grub_scsi_open): added missing cast when
38152 calling grub_dprintf
38153
38154 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
38155
38156 Bug and warning fixes
38157
38158 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
38159 declaration
38160 * commands/test.c (test_parse): fixed bug with file tests and corrected
38161 declaration of find_file
38162
38163 2009-04-26 Pavel Roskin <proski@gnu.org>
38164
38165 * Makefile.in: Don't install empty manual pages if help2man is
38166 missing. Use help2man option for output, not shell redirection.
38167
38168 2009-04-26 David S. Miller <davem@davemloft.net>
38169
38170 * util/grub-mkdevicemap.c (make_device_map): Add missing
38171 NESTED_FUNC_ATTR to process_device().
38172
38173 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
38174
38175 Test command
38176
38177 * commands/test.c: rewritten to use bash-like test
38178
38179 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
38180
38181 Parttool autoloading and improvements
38182
38183 * Makefile.in (pkglib_DATA): add parttool.lst
38184 (parttool.lst): new target
38185 * genmk.rb: generate parttool-*
38186 (CLEANFILES): add #{parttool}
38187 (PARTTOOLFILES): new variable
38188 * genparttoollist.sh: new file
38189 * parttool/pcpart.c (grub_pcpart_boot): more feedback
38190 (grub_pcpart_type): likewise
38191 * commands/parttool.c (helpmsg): new variable
38192 (grub_cmd_parttool): output help if not enough arguments are supplied
38193 autoload modules
38194 (GRUB_MOD_INIT(parttool)): use helpmsg
38195
38196 2009-04-24 David S. Miller <davem@davemloft.net>
38197
38198 Avoiding opening same device multiple times in device iterator.
38199
38200 * kern/device.c: (grub_device_iterate): Define struct part_ent,
38201 and use it to build a list of partitions in iterate_disk() and
38202 iterate_partition().
38203
38204 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
38205 on disk->data.
38206
38207 * disk/ieee1275/nand.c (grub_nand_iterate): Return
38208 grub_devalias_iterate() result instead of unconditional 0.
38209 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
38210 Also, capture hook return value, either directly or via
38211 grub_children_iterate(), and propagate to caller.
38212 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
38213 grub_children_iterate): Return value is now 'int' instead of
38214 'grub_err_t'.
38215 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
38216 like a proper iterator, stopping when hooks return non-zero.
38217 (grub_devalias_iterate): Likewise.
38218
38219 2009-04-23 David S. Miller <davem@davemloft.net>
38220
38221 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
38222
38223 2009-04-22 David S. Miller <davem@davemloft.net>
38224
38225 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
38226 is larger than address_cells, use that value for address_cells too.
38227
38228 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
38229 IEEE1275_MAX_PATH_LEN): Define.
38230 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
38231 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
38232 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
38233 'devtype'. Explicitly NULL terminate devalias expansion.
38234
38235 * util/sparc64/ieee1275/misc.c: New file.
38236 * util/sparc64/ieee1275/grub-setup.c: New file.
38237 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
38238 * util/sparc64/ieee1275/grub-mkimage.c: New file.
38239 * util/sparc64/ieee1275/grub-install.in: New file.
38240 * util/ieee1275/ofpath.c: New file.
38241 * util/ieee1275/devicemap.c: New file.
38242 * util/devicemap.c: New file.
38243 * util/deviceiter.c: New file.
38244 * kern/sparc64/ieee1275/init.c: New file.
38245 * include/grub/util/ofpath.h: New file.
38246 * include/grub/util/deviceiter.h: New file.
38247 * util/grub-mkdevicemap.c: Include deviceiter.h.
38248 Implement using grub_util_emit_devicemap_entry and
38249 grub_util_iterate_devices.
38250 * conf/i386-corebook.rmk: Build util/deviceiter.c and
38251 util/devicemap.c into grub-mkdevicemap
38252 * conf/i386-efi.rmk: Likewise.
38253 * conf/i386-ieee1275.rmk: Likewise.
38254 * conf/i386-pc.rmk: Likewise.
38255 * conf/powerpc-ieee1275.rmk: Likewise.
38256 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
38257 images and installation utilities. Build kernel as image
38258 instead of as elf binary. Use common rules as much as possible.
38259
38260 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
38261
38262 Correct GPT definition
38263
38264 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
38265 of "attrib" member
38266
38267 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
38268
38269 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
38270
38271 2009-04-19 David S. Miller <davem@davemloft.net>
38272
38273 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
38274 (grub_rescue_cmd_linux): Rename to...
38275 (grub_cmd_linux): and fix prototype.
38276 (grub_rescue_cmd_initrd): Rename to...
38277 (grub_cmd_initrd): and fix prototype.
38278 (cmd_linux, cmd_initrd): New.
38279 (GRUB_MOD_INIT(linux)): Use grub_register_command().
38280 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
38281
38282 2009-04-17 Pavel Roskin <proski@gnu.org>
38283
38284 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
38285 format.
38286 (grub_ohci_transfer): Likewise.
38287
38288 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
38289
38290 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
38291 return without a value. Fix inconsistent indentation.
38292
38293 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
38294 match struct grub_fs.
38295
38296 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
38297 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
38298 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
38299 * commands/lspci.c (grub_lspci_iter): Likewise.
38300
38301 2009-04-16 Bean <bean123ch@gmail.com>
38302
38303 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
38304 value.
38305
38306 2009-04-15 Pavel Roskin <proski@gnu.org>
38307
38308 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
38309 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
38310 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
38311 definitions.
38312
38313 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
38314
38315 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
38316 that no multiple data or metadata areas are supported and `Unknown
38317 metadata header'.
38318
38319 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
38320
38321 Move loader out of the kernel
38322
38323 * kern/loader.c: moved to ...
38324 * commands/boot.c: ... moved here
38325 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
38326 * commands/boot.c (grub_cmd_boot): moved here. All users updated
38327 * include/grub/kernel.h (grub_machine_fini): export
38328 * include/grub/loader.h (grub_loader_is_loaded): update declaration
38329 (grub_loader_set): likewise
38330 (grub_loader_unset): likewise
38331 (grub_loader_boot): likewise
38332 * conf/common.rmk: new module boot.mod
38333 (pkglib_MODULES): add boot.mod
38334 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
38335 (grub_emu_SOURCES): likewise
38336 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
38337 (grub_emu_SOURCES): likewise
38338 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
38339 (grub_emu_SOURCES): likewise
38340 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
38341 (grub_emu_SOURCES): likewise
38342 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
38343 (grub_emu_SOURCES): likewise
38344 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
38345 (grub_emu_SOURCES): likewise
38346 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
38347 (grub_emu_SOURCES): likewise
38348
38349 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
38350
38351 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
38352
38353 * kern/misc.c (grub_itoa): Removed function
38354 (grub_ltoa): likewise
38355 (grub_vsprintf): use grub_lltoa
38356
38357 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
38358
38359 Restore grub-emu
38360
38361 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
38362 * conf/i386-coreboot.rmk: likewise
38363 * conf/i386-ieee1275.rmk: likewise
38364 * conf/powerpc-ieee1275.rmk: likewise
38365
38366 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
38367
38368 * INSTALL: Add that `./autogen.sh' needs to be run before
38369 `./configure.'.
38370
38371 2009-04-14 Bean <bean123ch@gmail.com>
38372
38373 * Makefile.in (pkglib_DATA): Add handler.lst.
38374 (handler.lst): New rule.
38375
38376 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
38377 * conf/i386-coreboot.rmk: Likewise.
38378 * conf/i386-ieee1275.rmk: Likewise.
38379 * conf/i386-efi.rmk: Likewise.
38380 * conf/x86_64-efi.rmk: Likewise.
38381 * conf/powerpc-ieee1275.rmk: Likewise.
38382 * conf/sparc64-ieee1275.rmk: Likewise.
38383
38384 * genhandlerlist.sh: New file.
38385
38386 * genmk.rb: Add rules to generate handler.lst.
38387
38388 * include/grub/normal.h (grub_file_getline): New function definition.
38389 (read_handler_list): Likewise.
38390 (free_handler_list): Likewise.
38391
38392 * include/grub/term.h (grub_term_register_input): Add name parameter
38393 for auto generation of handler.lst.
38394 (grub_term_register_output): Likewise.
38395
38396 * normal/handler.c: New file.
38397
38398 * normal/main.c (get_line): Renamed to grub_file_getline.
38399 (read_config_file): Use the newly renamed grub_file_getline.
38400 (read_command_list): Likewise.
38401 (read_fs_list): Likewise.
38402 (grub_normal_execute): Call read_handler_list to parse handler.lst.
38403 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
38404
38405 * term/efi/console.c (grub_console_init): Add name parameter for auto
38406 generation of handler.lst.
38407 * term/gfxterm.c: Likewise.
38408 * term/i386/pc/at_keyboard.c: Likewise.
38409 * term/i386/pc/console.c: Likewise.
38410 * term/i386/pc/serial.c: Likewise.
38411 * term/i386/pc/vesafb.c: Likewise.
38412 * term/i386/pc/vga.c: Likewise.
38413 * term/i386/pc/vga_text.c: Likewise.
38414 * term/ieee1275/ofconsole.c: Likewise.
38415 * term/usb_keyboard.c: Likewise.
38416
38417 2009-04-14 Bean <bean123ch@gmail.com>
38418
38419 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
38420 properly with null character.
38421
38422 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
38423
38424 * configure: Remove.
38425 * config.h.in: Likewise.
38426 * stamp-h.in: Likewise.
38427 * DISTLIST: Likewise.
38428 * conf/common.mk: Likewise.
38429 * conf/i386-coreboot.mk: Likewise.
38430 * conf/i386-efi.mk: Likewise.
38431 * conf/i386-ieee1275.mk: Likewise.
38432 * conf/i386.mk: Likewise.
38433 * conf/i386-pc.mk: Likewise.
38434 * conf/powerpc-ieee1275.mk: Likewise.
38435 * conf/sparc64-ieee1275.mk: Likewise.
38436 * conf/x86_64-efi.mk: Likewise.
38437
38438 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
38439 develop on GRUB.
38440
38441 2009-04-14 John Stanley <jpsinthemix@verizon.net>
38442 David S. Miller <davem@davemloft.net>
38443
38444 * util/hostdisk.c (make_device_name): Fix buffer length
38445 calculations.
38446
38447 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
38448
38449 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
38450 <sys/param.h> and <sys/sysctl.h>.
38451 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
38452 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
38453 opening the device and reset them afterwards.
38454
38455 2009-04-13 Pavel Roskin <proski@gnu.org>
38456
38457 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
38458 Reported by John Stanley <jpsinthemix@verizon.net>
38459
38460 2009-04-13 Robert Millan <rmh@aybabtu.com>
38461
38462 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
38463 that name for menuentries when appropriate.
38464
38465 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
38466
38467 * util/grub.d/10_freebsd.in: Add a missing `fi'.
38468
38469 2009-04-13 Robert Millan <rmh@aybabtu.com>
38470
38471 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
38472 to Linux, simply abort telling the user it's no longer supported.
38473
38474 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
38475
38476 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
38477 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
38478 `freebsd_loadenv' only when devices.hints exist.
38479
38480 2009-04-13 Pavel Roskin <proski@gnu.org>
38481
38482 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
38483
38484 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
38485
38486 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
38487 partition number.
38488 (grub_drive): Likewise.
38489
38490 2009-04-13 David S. Miller <davem@davemloft.net>
38491
38492 * kern/sparc64/ieee1275/ieee1275.c: New file.
38493 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
38494 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
38495 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
38496 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
38497 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
38498 grub_ieee1275_alloc_physmem): Declare new exported functions.
38499
38500 * include/grub/sparc64/ieee1275/loader.h: New file.
38501 * include/grub/sparc64/ieee1275/memory.h: Likewise.
38502 * include/grub/sparc64/kernel.h: Likewise.
38503 * loader/sparc64/ieee1275/linux.c: Likewise.
38504
38505 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
38506 (grub_fstest_SOURCES): Likewise.
38507
38508 * util/hostdisk.c (make_device_name): Do not make any assumptions
38509 about the length of drive names.
38510
38511 * kern/dl.c (grub_dl_load_file): Close file immediately when
38512 we are done using it.
38513
38514 2009-04-12 David S. Miller <davem@davemloft.net>
38515
38516 * kern/misc.c (grub_ltoa): Fix cast when handling negative
38517 values. Noticed by Pavel Roskin.
38518
38519 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
38520 target compiler.
38521
38522 * genmk.rb: Add more flexible image type specification, also
38523 pass --strip-unneeded to objcopy.
38524 * conf/i386-pc.rmk: Use *_FORMAT.
38525 * conf/i386-pc.mk: Rebuilt.
38526
38527 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
38528 (OFDISK_HASH_SZ): Define.
38529 (ofdisk_hash): New hash table.
38530 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
38531 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
38532 instead of device phandle which is not unique.
38533
38534 * kern/sparc64/ieee1275/init.c: Delete, replace with...
38535 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
38536 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
38537 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
38538 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
38539 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
38540 GRUB_KERNEL_MACHINE_DATA_END): Define.
38541 (grub_kernel_image_size, grub_total_module_size): Declare.
38542
38543 2009-04-12 Pavel Roskin <proski@gnu.org>
38544
38545 * configure.ac: Change the logic when we check for target tools.
38546 Do it when the target is specified and it's different from the
38547 specified value of the host.
38548
38549 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
38550
38551 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
38552 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
38553 GNU/kFreeBSD. Check if a device is a character device. Use
38554 DIOCGMEDIASIZE to get the size.
38555 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
38556 support for GNU/kFreeBSD.
38557 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
38558 is a character device instead of a block device. Add support for
38559 FreeBSD device names.
38560
38561 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
38562 is a character device instead of a block device.
38563
38564 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
38565 is a character device instead of a block device.
38566
38567 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
38568
38569 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
38570 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
38571 FreeBSD. Check if a device is a character device. Use
38572 DIOCGMEDIASIZE to get the size.
38573 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
38574 support for FreeBSD.
38575 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
38576 is a character device instead of a block device. Add support for
38577 FreeBSD device names.
38578
38579 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
38580 a character device instead of a block device.
38581 (grub_util_check_char_device): New function.
38582
38583 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
38584 a character device instead of a block device.
38585
38586 * include/grub/util/getroot.h (grub_util_check_char_device): New
38587 prototype.
38588
38589 2009-04-11 David S. Miller <davem@davemloft.net>
38590
38591 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
38592 static libgcc.
38593 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
38594 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
38595 function, if present.
38596 (__bswapdi2): Likewise.
38597
38598 * include/grub/sparc64/ieee1275/boot.h: New file.
38599 * boot/sparc64/ieee1275/boot.S: Likewise.
38600 * boot/sparc64/ieee1275/diskboot.S: Likewise.
38601
38602 * kern/misc.c (grub_ltoa): New function.
38603 (grub_vsprintf): Use it to format 'long' integers.
38604
38605 2009-04-10 David S. Miller <davem@davemloft.net>
38606
38607 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
38608 slots are of type grub_ieee1275_cell_t.
38609 (grub_nand_read): Likewise.
38610 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
38611 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
38612 macros are used to compare values in arg/ret block of the call.
38613 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
38614 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
38615 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
38616 grub_ieee1275_instance_to_path, grub_ieee1275_write,
38617 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
38618 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
38619 grub_ieee1275_close, grub_ieee1275_set_property,
38620 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
38621 grub_ieee1275_cell_t.
38622 * kern/ieee1275/openfw.c (grub_map): Likewise.
38623 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
38624 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
38625
38626 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
38627 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
38628 (grub_devalias_iterate): Likewise.
38629
38630 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
38631
38632 UFS improvements
38633
38634 * fs/ufs.c (INODE_NBLOCKS): new definition
38635 (struct grub_ufs_dirent): added fields for non-BSD dirents
38636 (grub_ufs_get_file_block): fixed double indirect handling
38637 (grub_ufs_lookup_symlink): use more robust way to determine whether
38638 symlink is inline
38639 (grub_ufs_find_file): support for non-BSD dirents
38640 (grub_ufs_dir): support for non-BSD dirents
38641
38642 2009-04-10 Bean <bean123ch@gnail.com>
38643
38644 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
38645 attribute, otherwise the size would be wrong for i386 platform.
38646
38647 * include/grub/pci.h (grub_pci_read_word): New inline function.
38648 (grub_pci_read_byte): Likewise.
38649 (grub_pci_write): Likewise.
38650 (grub_pci_write_word): Likewise.
38651 (grub_pci_write_byte): Likewise.
38652
38653 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
38654
38655 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
38656 (find_framebuf): Scan pci to locate the frame buffer address.
38657
38658 * commands/efi/fixvideo.c: New file.
38659
38660 * commands/efi/loadbios.c: Likewise.
38661
38662 * commands/memrw.c: Likewise.
38663
38664 * util/grub-dumpbios.in: Likewise.
38665
38666 * conf/common.rmk (grub-dumpbios): New utility.
38667 (pkglib_MODULES): New module memrw.mod.
38668 (memrw_mod_SOURCE): New macro.
38669 (memrw_mod_CFLAGS): Likewise.
38670 (memrw_mod_LDFLAGS): Likewise.
38671
38672 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
38673 fixvideo.mod.
38674 (loadbios_mod_SOURCE): New macro.
38675 (loadbios_mod_CFLAGS): Likewise.
38676 (loadbios_mod_LDFLAGS): Likewise.
38677 (fixvideo_mod_SOURCE): Likewise.
38678 (fixvideo_mod_CFLAGS): Likewise.
38679 (fixvideo_mod_LDFLAGS): Likewise.
38680
38681 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
38682 fixvideo.mod.
38683 (loadbios_mod_SOURCE): New macro.
38684 (loadbios_mod_CFLAGS): Likewise.
38685 (loadbios_mod_LDFLAGS): Likewise.
38686 (fixvideo_mod_SOURCE): Likewise.
38687 (fixvideo_mod_CFLAGS): Likewise.
38688 (fixvideo_mod_LDFLAGS): Likewise.
38689
38690 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
38691
38692 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
38693
38694 2009-04-07 David S. Miller <davem@davemloft.net>
38695
38696 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
38697 support for R_SPARC_OLO10 relocations. Fix compile warning for
38698 R_SPARC_WDISP30 case.
38699 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
38700
38701 2009-04-06 Pavel Roskin <proski@gnu.org>
38702
38703 * include/grub/misc.h (ARRAY_SIZE): New macro.
38704 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
38705 New macro.
38706 * loader/i386/linux.c (allocate_pages): Use free_pages().
38707 (grub_linux_unload): Don't use free_pages().
38708 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
38709 wrong index. Treat all other modes as text modes.
38710 (grub_cmd_linux): Initialize vid_mode unconditionally to
38711 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
38712
38713 * commands/help.c (print_command_help): Use cmd->prio, not
38714 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
38715
38716 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
38717
38718 Parttool
38719
38720 * parttool/pcpart.c: new file
38721 * commands/parttool.c: likewise
38722 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
38723 (parttool_mod_SOURCES): new variable
38724 (parttool_mod_CFLAGS): likewise
38725 (parttool_mod_LDFLAGS): likewise
38726 (pcpart_mod_SOURCES): likewise
38727 (pcpart_mod_CFLAGS): likewise
38728 (pcpart_mod_LDFLAGS): likewise
38729 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
38730 and parttool/pcpart.c
38731 * conf/i386-efi.rmk: likewise
38732 * conf/i386-ieee1275.rmk: likewise
38733 * conf/i386-pc.rmk: likewise
38734 * conf/powerpc-ieee1275.rmk: likewise
38735 * conf/sparc64-ieee1275.rmk: likewise
38736 * conf/x86_64-ieee1275.rmk: likewise
38737
38738 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
38739
38740 Support for mtime and further expandability of dir command
38741
38742 * include/grub/lib/datetime.h: moved to ...
38743 * include/grub/datetime.h: ... moved here and added
38744 declaration of grub_unixtime2datetime. All users updated
38745 * include/grub/fs.h: new syntax for dir and mtime functions in
38746 struct grub_fs
38747 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
38748 and GRUB_FSHELP_FLAGS_MASK
38749 * commands/ls.c (grub_ls_list_files): Write mtime in long format
38750 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
38751 (grub_ext2_mtime): new function
38752 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
38753 (grub_hfsplus_mtime): new function
38754 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
38755 (GRUB_UFS_ATTR_FILE): likewise
38756 (GRUB_UFS_ATTR_LNK): likewise
38757 (struct grub_ufs_sblock): new fields mtime
38758 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
38759 all users updated
38760 (grub_ufs_dir): mtime support
38761 (grub_ufs_mtime): new function
38762 * fs/affs.c (grub_affs_dir): use new dir syntax
38763 * fs/afs.c (grub_afs_dir): likewise
38764 * fs/cpio.c (grub_cpio_dir): likewise
38765 * fs/fat.c (grub_fat_find_dir): likewise
38766 * fs/hfs.c (grub_hfs_dir): likewise
38767 * fs/iso9660.c (grub_iso9660_dir): likewise
38768 * fs/jfs.c (grub_jfs_dir): likewise
38769 * fs/minix.c (grub_minix_dir): likewise
38770 * fs/ntfs.c (grub_ntfs_dir): likewise
38771 * fs/reiserfs.c (grub_reiserfs_dir): likewise
38772 * fs/sfs.c (grub_sfs_dir): likewise
38773 * fs/xfs.c (grub_xfs_dir): likewise
38774 * util/hostfs.c (grub_hostfs_dir): likewise
38775 * lib/datetime.c: moved to ...
38776 * normal/datetime.c: ... moved here
38777 (grub_unixtime2datetime): new function
38778 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
38779 * normal/completion.c (iterate_dir): use new dir syntax
38780 * normal/misc.c (grub_normal_print_device_info): tell the
38781 last modification time of a volume
38782 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
38783 * conf/common.rmk: added lib/datetime.c to ls.mod
38784 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
38785 (normal_mod_SOURCES): likewise
38786 (datetime_mod_SOURCES): Removed lib/datetime.c
38787 * conf/i386-efi.rmk: likewise
38788 * conf/i386-ieee1275.rmk: likewise
38789 * conf/i386-pc.rmk: likewise
38790 * conf/powerpc-ieee1275.rmk: likewise
38791 * conf/sparc64-ieee1275.rmk: likewise
38792 * conf/x86_64-efi.rmk: likewise
38793
38794 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
38795
38796 Trim trailing spaces in FAT label and support mtools-like labels
38797
38798 * fs/fat.c (grub_fat_iterate_dir): New function based
38799 on grub_fat_find_dir
38800 (grub_fat_find_dir): use grub_fat_iterate_dir
38801 (grub_fat_label): likewise
38802
38803 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
38804
38805 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
38806 and command.h
38807 remove extraneous kernel_elf_HEADERS
38808
38809 2009-04-04 Bean <bean123ch@gnail.com>
38810
38811 * include/grub/util/misc.h: Add dummy function fsync for mingw.
38812
38813 * util/misc.c: Likewise.
38814
38815 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
38816
38817 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
38818 instead of grub_printf.
38819
38820 2009-04-03 Robert Millan <rmh@aybabtu.com>
38821
38822 * loader/i386/linux.c (grub_linux_setup_video): Fill
38823 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
38824 values from `mode info' structure instead of hardcoded
38825 values.
38826
38827 2009-04-01 Pavel Roskin <proski@gnu.org>
38828
38829 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
38830 unused now.
38831 * genmk.rb: Likewise.
38832 * configure.ac: Likewise.
38833
38834 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
38835
38836 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
38837 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
38838
38839 2009-04-01 David S. Miller <davem@davemloft.net>
38840
38841 * normal/sparc64/setjmp.S: Fix setjmp implementation.
38842 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
38843 (grub_setjmp): Mark with 'returns_twice' attribute.
38844 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
38845 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
38846 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
38847
38848 2009-04-01 Robert Millan <rmh@aybabtu.com>
38849
38850 Reapply fix from 2008-07-28 which was accidentally reverted; also
38851 perform the same fix to a similar check in same function.
38852
38853 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
38854 with the same number are found, just use issue a warning with
38855 grub_dprintf(), as this error has been reported to be non-fatal.
38856
38857 2009-03-31 Pavel Roskin <proski@gnu.org>
38858
38859 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
38860 for cross-compilation.
38861
38862 2009-03-30 Robert Millan <rmh@aybabtu.com>
38863
38864 Fix i386-ieee1275 build.
38865
38866 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
38867 Remove declaration.
38868
38869 2009-03-30 Pavel Roskin <proski@gnu.org>
38870
38871 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
38872 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
38873 zero-terminated, rely only on the strlen value. Fix comparison
38874 of strings differing in length.
38875
38876 2009-03-30 Robert Millan <rmh@aybabtu.com>
38877
38878 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
38879 checking for abi version. Improve error messages on BIOS to notify
38880 user about `linux16' command.
38881
38882 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
38883
38884 Leak fixes
38885
38886 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
38887 in case of collision
38888 * disk/scsi.c (grub_scsi_open): free scsi in case of error
38889
38890 2009-03-29 Robert Millan <rmh@aybabtu.com>
38891
38892 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
38893 set `vid_mode' accordingly.
38894 (grub_linux_boot): Process `vid_mode' and set video mode.
38895
38896 2009-03-29 Robert Millan <rmh@aybabtu.com>
38897
38898 * util/grub.d/10_linux.in (linux_entry): New function.
38899 Factorize generation of Linux boot entries.
38900
38901 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
38902
38903 Make the format of Environment Block plain text. The boot loader
38904 part is not tested well yet.
38905
38906 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
38907 (buffer): Removed.
38908 (envblk): Likewise.
38909 (usage): Remove "info" and "clear". Add "unset". Update the
38910 description of "set", as this does not delete variables any
38911 longer.
38912 (create_envblk_file): Complete rewrite.
38913 (open_envblk_file): Likewise.
38914 (cmd_info): Removed.
38915 (cmd_list): Likewise.
38916 (cmd_set): Likewise.
38917 (cmd_clear): Likewise.
38918 (list_variables): New function.
38919 (write_envblk): Likewise.
38920 (set_variables): Likewise.
38921 (unset_variables): Likewise.
38922 (main): Complete rewrite.
38923
38924 * commands/loadenv.c (buffer): Removed.
38925 (envblk): Likewise.
38926 (open_envblk_file): New function.
38927 (read_envblk_file): Complete rewrite.
38928 (grub_cmd_load_env): Likewise.
38929 (grub_cmd_list_env): Likewise.
38930 (struct blocklist): New struct.
38931 (free_blocklists): New function.
38932 (check_blocklists): Likewise.
38933 (write_blocklists): Likewise.
38934 (grub_cmd_save_env): Complete rewrite.
38935
38936 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
38937 a plain text signature.
38938 (GRUB_ENVBLK_MAXLEN): Removed.
38939 (struct grub_envblk): Complete rewrite.
38940 (grub_envblk_find): Removed.
38941 (grub_envblk_insert): Likewise.
38942 (grub_envblk_open): New prototype.
38943 (grub_envblk_set): Likewise.
38944 (grub_envblk_delete): Put const to VALUE.
38945 (grub_envblk_iterate): Put const to NAME and VALUE.
38946 (grub_envblk_close): New prototype.
38947 (grub_envblk_buffer): New inline function.
38948 (grub_envblk_size): Likewise.
38949
38950 * lib/envblk.c: Include grub/mm.h.
38951 (grub_env_find): Removed.
38952 (grub_envblk_open): New function.
38953 (grub_envblk_close): Likewise.
38954 (escaped_value_len): Likewise.
38955 (find_next_line): Likewise.
38956 (grub_envblk_insert): Removed.
38957 (grub_envblk_set): New function.
38958 (grub_envblk_delete): Complete rewrite.
38959 (grub_envblk_iterate): Likewise.
38960
38961 2009-03-28 Robert Millan <rmh@aybabtu.com>
38962
38963 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
38964 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
38965 variables. Use 16-bit loader.
38966 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
38967 loader.
38968 * kern/i386/loader.S (grub_linux_boot): Rename to ...
38969 (grub_linux16_boot): ... this. Update all users.
38970 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
38971 (grub_linux_boot): ... this. Update all users.
38972
38973 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
38974 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
38975 commands to `linux16' and `initrd16'.
38976 (GRUB_MOD_FINI(linux)): Rename to ...
38977 (GRUB_MOD_FINI(linux16)): ... this.
38978
38979 2009-03-24 Pavel Roskin <proski@gnu.org>
38980
38981 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
38982 not just for compilation.
38983
38984 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
38985
38986 Move multiboot helper out of kernel
38987
38988 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
38989 `loader/i386/multiboot_helper.S'.
38990 * conf/i386-coreboot.rmk: Likewise
38991 * conf/i386-ieee1275.rmk: Likewise
38992
38993 * kern/i386/loader.S: Move multiboot helpers from here...
38994 * loader/i386/multiboot_helper.S: ...moved here
38995 * include/grub/i386/loader.h: Move declarations of multiboot
38996 helpers from here...
38997 * include/grub/i386/multiboot.h: ...moved here
38998 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
38999
39000 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
39001
39002 * kern/env.c (grub_env_context_open): Added an argument to specify
39003 whether a new context inherits exported variables from current
39004 one. This is useful when making a sandbox to interpret a config
39005 file.
39006 All callers updated.
39007
39008 * include/grub/env.h (grub_env_context_open): Updated the prototype.
39009
39010 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
39011
39012 * kern/env.c (grub_env_context_close): Fix memory leaks.
39013
39014 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
39015
39016 * normal/main.c (grub_normal_execute): Added an argument
39017 BATCH to specify if an interactive interface should be provided
39018 after reading a config file.
39019 All callers updated.
39020 (read_command_list): Prevent being executed twice.
39021 (read_fs_list): Likewise.
39022
39023 * include/grub/normal.h (grub_normal_execute): Updated the
39024 prototype.
39025
39026 2009-03-22 Pavel Roskin <proski@gno.org>
39027
39028 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
39029 _start.
39030 * kern/i386/pc/startup.S: Likewise.
39031 * kern/i386/efi/startup.S: Likewise.
39032 * kern/i386/ieee1275/startup.S: Likewise.
39033 * kern/i386/coreboot/startup.S: Likewise.
39034 * kern/x86_64/efi/startup.S: Likewise.
39035
39036 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
39037 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
39038 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
39039
39040 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
39041
39042 Bugfixes in multiboot for bugs uncovered by solaris kernel.
39043
39044 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
39045 limit detection.
39046 Use vaddr of correct segment for entry_point.
39047
39048 2009-03-21 Bean <bean123ch@gmail.com>
39049
39050 * commands/blocklist.c: Add include file <grub/command.h>, remove
39051 <grub/normal.h> and <grub/arg.h>.
39052 (grub_cmd_blocklist): Use the new command interface.
39053 (GRUB_MOD_INIT): Likewise.
39054 (GRUB_MOD_FINI): Likewise.
39055 * commands/boot.c: Likewise.
39056 * commands/cat.c: Likewise.
39057 * commands/cmp.c: Likewise.
39058 * commands/configfile.c: Likewise.
39059 * commands/crc.c: Likewise.
39060 * commands/echo.c: Likewise.
39061 * commands/halt.c: Likewise.
39062 * commands/handler.c: Likewise.
39063 * commands/hdparm.c: Likewise.
39064 * commands/help.c: Likewise.
39065 * commands/hexdump.c: Likewise.
39066 * commands/loadenv.c: Likewise.
39067 * commands/ls.c: Likewise.
39068 * commands/lsmmap.c: Likewise.
39069 * commands/lspci.c: Likewise.
39070 * commands/loadenv.c: Likewise.
39071 * commands/read.c: Likewise.
39072 * commands/reboot.c: Likewise.
39073 * commands/search.c: Likewise.
39074 * commands/sleep.c: Likewise.
39075 * commands/test.c: Likewise.
39076 * commands/usbtest.c: Likewise.
39077 * commands/videotest.c: Likewise.
39078 * commands/i386/cpuid.c: Likewise.
39079 * commands/i386/pc/halt.c: Likewise.
39080 * commands/i386/pc/play.c: Likewise.
39081 * commands/i386/pc/pxecmd.c: Likewise.
39082 * commands/i386/pc/vbeinfo.c: Likewise.
39083 * commands/i386/pc/vbetest.c: Likewise.
39084 * commands/ieee1275/suspend.c: Likewise.
39085 * disk/loopback.c: Likewise.
39086 * font/font_cmd.c: Likewise.
39087 * hello/hello.c: Likewise.
39088 * loader/efi/appleloader.c: Likewise.
39089 * loader/efi/chainloader.c: Likewise.
39090 * loader/i386/bsd.c: Likewise.
39091 * loader/i386/efi/linux.c: Likewise.
39092 * loader/i386/ieee1275/linux.c: Likewise.
39093 * loader/i386/linux.c: Likewise.
39094 * loader/i386/pc/chainloader.c: Likewise.
39095 * loader/i386/pc/linux.c: Likewise.
39096 * loader/powerpc/ieee1275/linux.c: Likewise.
39097 * loader/multiboot_loader.c: Likewise.
39098 * term/gfxterm.c: Likewise.
39099 * term/i386/pc/serial.c: Likewise.
39100 * term/terminfo.c: Likewise.
39101
39102 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
39103 * term/i386/pc/vga.c: Likewise.
39104 * video/readers/jpeg.c: Likewise.
39105 * video/readers/png.c: Likewise.
39106 * video/readers/tga.c: Likewise.
39107
39108 * util/grub-fstest (cmd_loopback): Removed.
39109 (cmd_blocklist): Likewise.
39110 (cmd_ls): Likewise.
39111 (grub_register_command): Likewise.
39112 (grub_unregister_command): Likewise.
39113 (execute_command): Use grub_command_find to locate command and execute
39114 it.
39115
39116 * include/grub/efi/chainloader.h: Removed.
39117 * loader/efi/chainloader_normal.c: Likewise.
39118 * loader/i386/bsd_normal.c: Likewise.
39119 * loader/i386/pc/chainloader_normal.c: Likewise.
39120 * loader/i386/pc/multiboot_normal.c: Likewise.
39121 * loader/linux_normal.c: Likewise.
39122 * loader/multiboot_loader_normal.c: Likewise.
39123 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
39124
39125 * gencmdlist.sh: Scan new registration command grub_register_extcmd
39126 and grub_register_command_p1.
39127
39128 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
39129 kern/command.c, lib/arg.c and commands/extcmd.c.
39130 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
39131 (minicmd_mod_SOURCES): New variable.
39132 (minicmd_mod_CFLAGS): Likewise.
39133 (minicmd_mod_LDFLAGS): Likewise.
39134 (extcmd_mod_SOURCES): Likewise.
39135 (extcmd_mod_CFLAGS): Likewise.
39136 (extcmd_mod_LDFLAGS): Likewise.
39137 (boot_mod_SOURCES): Removed.
39138 (boot_mod_CFLAGS): Likewise.
39139 (boot_mod_LDFLAGS): Likewise.
39140
39141 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
39142 kern/corecmd.c.
39143 (kernel_img_HEADERS): Add command.h.
39144 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
39145 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
39146 and lib/arg.c.
39147 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
39148 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
39149 remove the corresponding normal mode command.
39150 (normal_mod_SOURCES): Remove normal/arg.c.
39151 * conf/i386-coreboot.rmk: Likewise.
39152 * conf/i386-efi.rmk: Likewise.
39153 * conf/i386-ieee1275.rmk: Likewise.
39154 * conf/powerpc-ieee1275.rmk: Likewise.
39155 * conf/x86_64-efi.rmk: Likewise.
39156
39157 * include/grub/arg.h: Move from here ...
39158 * include/grub/lib/arg.h: ... to here.
39159
39160 * normal/arg.c: Move from here ...
39161 * lib/arg.c: ... to here.
39162
39163 * commands/extcmd.c: New file.
39164 * commands/minicmd.c: Likewise.
39165 * include/grub/command.h: Likewise.
39166 * include/grub/extcmd.h: Likewise.
39167 * kern/command.c: Likewise.
39168 * kern/corecmd.c: Likewise.
39169
39170 * kern/list.c (grub_list_iterate): Return int instead of void.
39171 (grub_list_insert): New function.
39172 (grub_prio_list_insert): Likewise.
39173
39174 * kern/rescue.c (grub_rescue_command): Removed.
39175 (grub_rescue_command_list): Likewise.
39176 (grub_rescue_register_command): Likewise.
39177 (grub_rescue_unregister_command): Likewise.
39178 (grub_rescue_cmd_boot): Move to minicmd.c
39179 (grub_rescue_cmd_help): Likewise.
39180 (grub_rescue_cmd_info): Likewise.
39181 (grub_rescue_cmd_boot): Likewise.
39182 (grub_rescue_cmd_testload): Likewise.
39183 (grub_rescue_cmd_dump): Likewise.
39184 (grub_rescue_cmd_rmmod): Likewise.
39185 (grub_rescue_cmd_lsmod): Likewise.
39186 (grub_rescue_cmd_exit): Likewise.
39187 (grub_rescue_print_devices): Moved to corecmd.c.
39188 (grub_rescue_print_files): Likewise.
39189 (grub_rescue_cmd_ls): Likewise.
39190 (grub_rescue_cmd_insmod): Likewise.
39191 (grub_rescue_cmd_set): Likewise.
39192 (grub_rescue_cmd_unset): Likewise.
39193 (attempt_normal_mode): Use grub_command_find to get normal module.
39194 (grub_enter_rescue_mode): Use grub_register_core_commands to register
39195 commands, remove grub_rescue_register_command calls.
39196
39197 * normal/command.c (grub_register_command): Removed.
39198 (grub_unregister_command): Likewise.
39199 (grub_command_find): Likewise.
39200 (grub_iterate_commands): Likewise.
39201 (rescue_command): Likewise.
39202 (export_command): Moved to corecmd.c.
39203 (set_command): Removed.
39204 (unset_command): Likewise.
39205 (insmod_command): Likewise.
39206 (rmmod_command): Likewise.
39207 (lsmod_command): Likewise.
39208 (grub_command_init): Likewise.
39209
39210 * normal/completion.c (iterate_command): Use cmd->prio to check for
39211 active command.
39212 (complete_arguments): Use grub_extcmd_t structure to find options.
39213 (grub_normal_do_completion): Change function grub_iterate_commands to
39214 grub_command_iterate.
39215
39216 * normal/execute.c (grub_script_execute_cmd): No need to parse
39217 argument here.
39218
39219 * normal/main.c (grub_dyncmd_dispatcher): New function.
39220 (read_command_list): Register unload commands as dyncmd.
39221 (grub_cmd_normal): Use new command interface, register rescue,
39222 unregister normal at entry, register normal, unregister rescue at exit.
39223
39224 * include/grub/list.h (grub_list_test_t): New type.
39225 (grub_list_iterate): Return int instead of void.
39226 (grub_list_insert): New function.
39227 (GRUB_AS_NAMED_LIST_P): New macro.
39228 (GRUB_AS_PRIO_LIST): Likewise.
39229 (GRUB_AS_PRIO_LIST_P): Likewise.
39230 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
39231 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
39232 (grub_prio_list): New structure.
39233 (grub_prio_list_insert): New function.
39234 (grub_prio_list_remove): New inline function.
39235
39236 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
39237 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
39238 (GRUB_COMMAND_FLAG_MENU): Likewise.
39239 (GRUB_COMMAND_FLAG_BOTH): Likewise.
39240 (GRUB_COMMAND_FLAG_TITLE): Likewise.
39241 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
39242 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
39243 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
39244 (grub_command): Likewise.
39245 (grub_register_command): Likewise.
39246 (grub_command_find): Likewise.
39247 (grub_iterate_commands): Likewise.
39248 (grub_command_init): Likewise.
39249 (grub_arg_parse): Likewise.
39250 (grub_arg_show_help): Likewise.
39251
39252 * include/grub/rescue.h (grub_rescue_register_command): Removed.
39253 (grub_rescue_unregister_command): Likewise.
39254
39255 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
39256 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
39257 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
39258
39259 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
39260 grub_rescue_cmd_initrd.
39261 * include/grub/i386/loader.h: Likewise.
39262 * include/grub/x86_64/loader.h: Likewise.
39263
39264 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
39265
39266 2009-03-21 Bean <bean123ch@gmail.com>
39267
39268 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
39269 instead of stat in mingw environment.
39270
39271 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
39272
39273 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
39274
39275 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
39276 AC_CONFIG_LINKS.
39277
39278 2009-03-21 Bean <bean123ch@gmail.com>
39279
39280 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
39281 out of range error.
39282
39283 2009-03-18 Michel Dänzer <michel@daenzer.net>
39284
39285 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
39286 checking inode flags for EXT4_EXTENTS_FLAG.
39287
39288 2009-03-18 Robert Millan <rmh@aybabtu.com>
39289
39290 * loader/i386/linux.c: Include `<grub/video.h>' and
39291 `<grub/i386/pc/vbe.h>'..
39292 (grub_linux_setup_video): New function. Loosely based on the EFI one.
39293 (grub_linux32_boot): Attempt to configure video settings with
39294 grub_linux_setup_video().
39295 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
39296 to avoid grub_console_fini() which would step out of graphical mode
39297 unconditionally.
39298
39299 2009-03-14 Robert Millan <rmh@aybabtu.com>
39300
39301 Fix build on powerpc.
39302 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
39303
39304 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
39305
39306 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
39307 background image command.
39308
39309 2009-03-12 Colin D Bennett <colin@gibibit.com>
39310
39311 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
39312 (grub_gfxterm_putchar): Extract pairs of identical calls to
39313 draw_cursor out of conditional blocks.
39314
39315 2009-03-11 Pavel Roskin <proski@gnu.org>
39316
39317 * fs/hfs.c (grub_hfs_strncasecmp): New function.
39318 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
39319
39320 2009-03-11 Robert Millan <rmh@aybabtu.com>
39321
39322 * loader/i386/multiboot_elfxx.c
39323 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
39324
39325 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
39326
39327 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
39328 `kern/handler.c'.
39329
39330 2009-03-11 Robert Millan <rmh@aybabtu.com>
39331
39332 * loader/i386/multiboot.c (code_size): New variable.
39333 (grub_multiboot): Define offsets by adding to `code_size' rather
39334 than subtracting from `grub_multiboot_payload_size'. Provide
39335 4-byte alignment to MBI and others by increasing
39336 `boot_loader_name_length' appropriately.
39337
39338 * loader/i386/multiboot_elfxx.c
39339 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
39340
39341 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
39342
39343 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
39344 `fs/ext2.c'.
39345
39346 2009-03-08 Robert Millan <rmh@aybabtu.com>
39347
39348 Make loader/i386/linux.c usable on i386-pc again.
39349
39350 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
39351 memory to heap.
39352 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
39353 `#error' stanza.
39354
39355 2009-03-07 Bean <bean123ch@gmail.com>
39356
39357 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
39358 allocation.
39359
39360 2009-03-06 Robert Millan <rmh@aybabtu.com>
39361
39362 Fix display issue on terminals with screen size other than 80x25
39363 (e.g. gfxterm with resolution higher than 640x480).
39364
39365 * normal/main.c (grub_normal_init_page): Display title text in a
39366 position relative to the center of the terminal instead of relying
39367 on a hardcoded offset.
39368
39369 2009-03-04 Robert Millan <rmh@aybabtu.com>
39370
39371 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
39372 installed.
39373
39374 * Makefile.in (host_kernel): New variable.
39375 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
39376 scripts instead of just the windows one.
39377 * configure.ac: Initialize and AC_SUBST `host_kernel'.
39378
39379 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
39380
39381 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
39382 `kern/handler.c'.
39383 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39384 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
39385 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
39386 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39387 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39388 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39389
39390 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
39391
39392 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
39393 or if there's no space for the disk label and print the partition number on a
39394 invalid magic.
39395
39396 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
39397
39398 * util/misc.c: Include <time.h>.
39399 (grub_millisleep): New function.
39400
39401 2009-03-04 Bean <bean123ch@gmail.com>
39402
39403 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
39404 another option -mno-red-zone.
39405
39406 * commands/handler.c: Change module description.
39407
39408 * kern/handler.c: Add missing space at the end of description line.
39409
39410 * kern/list.c: Likewise.
39411
39412 2009-03-03 Robert Millan <rmh@aybabtu.com>
39413
39414 Move more components to the relocation area, and fix mbi pointer
39415 handling to use the destination rather than the origin (thanks to
39416 Vladimir Serbinenko for spotting).
39417
39418 * loader/i386/multiboot.c (mbi_dest): New variable.
39419 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
39420 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
39421 relocation area.
39422
39423 2009-03-01 Bean <bean123ch@gmail.com>
39424
39425 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
39426 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
39427 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
39428 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
39429
39430 * loader/i386/efi/linux.c (acpi_guid): New variable.
39431 (acpi_guid): Likewise.
39432 (EBDA_SEG_ADDR): New constant.
39433 (LOW_MEM_ADDR): Likewise.
39434 (FAKE_EBDA_SEG): Likewise.
39435 (fake_bios_data): New function.
39436 (grub_linux_boot): Call fake_bios_data.
39437
39438 2009-03-01 Bean <bean123ch@gmail.com>
39439
39440 * commands/terminal.c: Removed.
39441
39442 * commands/handler.c: New file.
39443
39444 * include/grub/list.h: Likewise.
39445
39446 * include/grub/handler.h: Likewise.
39447
39448 * kern/list.c: Likewise.
39449
39450 * kern/handler.c: Likewise.
39451
39452 * kern/term.h: Include header file <grub/handler.h>.
39453 (grub_term_input): Move next field to the beginning.
39454 (grub_term_output): Likewise.
39455 (grub_term_input_class): New variable.
39456 (grub_term_output_class): Likewise.
39457 (grub_term_register_input): Changed to inline function.
39458 (grub_term_register_output): Likewise.
39459 (grub_term_unregister_input): Likewise.
39460 (grub_term_unregister_output): Likewise.
39461 (grub_term_set_current_input): Likewise.
39462 (grub_term_set_current_output): Likewise.
39463 (grub_term_get_current_input): Likewise.
39464 (grub_term_get_current_output): Likewise.
39465 (grub_term_iterate_input): Removed.
39466 (grub_term_iterate_output): Likewise.
39467
39468 * kern/term.c (grub_term_list_input): Removed.
39469 (grub_term_list_output): Likewise.
39470 (grub_term_input_class): New variable.
39471 (grub_term_output_class): Likewise.
39472 (grub_cur_term_input): Change variable as macro.
39473 (grub_cur_term_output): Likewise.
39474 (grub_term_register_input): Removed.
39475 (grub_term_register_output): Likewise.
39476 (grub_term_unregister_input): Likewise.
39477 (grub_term_unregister_output): Likewise.
39478 (grub_term_set_current_input): Likewise.
39479 (grub_term_set_current_output): Likewise.
39480 (grub_term_iterate_input): Likewise.
39481 (grub_term_iterate_output): Likewise.
39482 (grub_term_get_current_input): Likewise.
39483 (grub_term_get_current_output): Likewise.
39484
39485 * util/grub-editenv.c: Include header file <grub/handler.h>.
39486 (grub_term_get_current_input): Removed.
39487 (grub_term_get_current_output): Likewise.
39488 (grub_term_input_class): New variable.
39489 (grub_term_output_class): Likewise.
39490
39491 * util/grub-fstest.c (grub_term_get_current_input): Removed.
39492 (grub_term_get_current_output): Likewise.
39493 (grub_term_input_class): New variable.
39494 (grub_term_output_class): Likewise.
39495
39496 * util/grub-probe.c (grub_term_get_current_input): Removed.
39497 (grub_term_get_current_output): Likewise.
39498 (grub_term_input_class): New variable.
39499 (grub_term_output_class): Likewise.
39500
39501 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
39502 (grub_term_get_current_output): Likewise.
39503 (grub_term_input_class): New variable.
39504 (grub_term_output_class): Likewise.
39505
39506 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
39507 (terminal_mod_SOURCES): Likewise.
39508 (terminal_mod_CFLAGS): Likewise.
39509 (terminal_mod_LDFLAGS): Likewise.
39510
39511 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
39512 handler.c.
39513 (kernel_img_SOURCES): Add list.c and handler.c.
39514 (kernel_img_HEADERS): Add list.h and handler.h.
39515
39516 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
39517 handler.c.
39518 (kernel_mod_SOURCES): Add list.c and handler.c.
39519 (kernel_mod_HEADERS): Add list.h and handler.h.
39520
39521 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
39522 handler.c.
39523 (kernel_elf_SOURCES): Add list.c and handler.c.
39524 (kernel_elf_HEADERS): Add list.h and handler.h.
39525
39526 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
39527 handler.c.
39528 (kernel_elf_SOURCES): Add list.c and handler.c.
39529 (kernel_elf_HEADERS): Add list.h and handler.h.
39530
39531 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
39532 handler.c.
39533 (kernel_mod_SOURCES): Add list.c and handler.c.
39534 (kernel_mod_HEADERS): Add list.h and handler.h.
39535
39536 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
39537 handler.c.
39538 (kernel_elf_SOURCES): Add list.c and handler.c.
39539 (kernel_elf_HEADERS): Add list.h and handler.h.
39540
39541 2009-02-27 Robert Millan <rmh@aybabtu.com>
39542
39543 Factorize elf32 / elf64 code in Multiboot loader. This will
39544 prevent it from getting out of sync again.
39545
39546 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
39547 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
39548 grub_multiboot_load_elf64): Move from here ...
39549 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
39550 grub_multiboot_load_elf): ... to here (new file).
39551
39552 2009-02-27 Robert Millan <rmh@aybabtu.com>
39553
39554 * util/grub.d/10_linux.in: Rename "single-user mode" to
39555 "recovery mode".
39556
39557 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
39558
39559 Don't leak in SCSI code.
39560 * disk/scsi.c (grub_scsi_close): free `scsi'.
39561
39562 2009-02-27 Robert Millan <rmh@aybabtu.com>
39563
39564 * loader/i386/pc/multiboot.c: Move from here ...
39565 * loader/i386/multiboot.c: ... to here. Update all users.
39566
39567 2009-02-27 Robert Millan <rmh@aybabtu.com>
39568
39569 Patch from Alexandre Bique <bique.alexandre@gmail.com>
39570 * util/i386/pc/grub-setup.c (setup): Fix directory path.
39571
39572 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
39573
39574 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
39575 b-tree.
39576
39577 2009-02-27 Robert Millan <rmh@aybabtu.com>
39578
39579 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
39580 `0x' qualifier as 0 when base is specified as parameter).
39581
39582 2009-02-24 Bean <bean123ch@gmail.com>
39583
39584 * configure.ac: Check for -mcmodel=large in x86_64 target.
39585
39586 * include/grub/efi/api.h (efi_call_10): New macro.
39587 (efi_wrap_10): New function.
39588
39589 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
39590 (GRUB_PE32_REL_BASED_HIGH): Likewise.
39591 (GRUB_PE32_REL_BASED_LOW): Likewise.
39592 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
39593 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
39594 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
39595 (GRUB_PE32_REL_BASED_SECTION): Likewise.
39596 (GRUB_PE32_REL_BASED_REL): Likewise.
39597 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
39598 (GRUB_PE32_REL_BASED_DIR64): Likewise.
39599 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
39600
39601 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
39602 issue.
39603
39604 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
39605 (efi_wrap_10): New function.
39606
39607 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
39608
39609 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
39610 MB/MBP model (NV chipset).
39611 (devdata_devs): Add devpath_5 to the list.
39612
39613 * load/i386/efi/linux.c (video_base): Remove variable.
39614 (RGB_MASK): New macro.
39615 (RGB_MAGIC): Likewise.
39616 (LINE_MIN): Likewise.
39617 (LINE_MAX): Likewise.
39618 (FBTEST_STEP): Likewise.
39619 (FBTEST_COUNT): Likewise.
39620 (fb_list): New variable.
39621 (grub_find_video_card): Remove function.
39622 (find_framebuf): New function.
39623 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
39624 line length.
39625
39626 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
39627 problem for x86_64.
39628
39629 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
39630
39631 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
39632
39633 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
39634 coding tool name.
39635
39636 2009-02-22 Robert Millan <rmh@aybabtu.com>
39637
39638 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
39639 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
39640 in our relocation, instead of using it directly from heap. Also
39641 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
39642
39643 2009-02-21 Robert Millan <rmh@aybabtu.com>
39644
39645 Implement USB keyboard support (based on patch by Marco Gerards)
39646
39647 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
39648 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
39649 (usb_keyboard_mod_LDFLAGS): New variables.
39650
39651 * term/usb_keyboard.c: New file.
39652
39653 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
39654
39655 Corrected wrong declaration
39656
39657 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
39658
39659 2009-02-14 Christian Franke <franke@computer.org>
39660
39661 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
39662 (grub_lspci_iter): Print class code and programming interface byte.
39663
39664 2009-02-14 Christian Franke <franke@computer.org>
39665
39666 * gendistlist.sh: Ignore `.svn' directories.
39667
39668 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
39669
39670 * fs/fat.c: Add 2009 to Copyright line.
39671
39672 2009-02-14 Christian Franke <franke@computer.org>
39673
39674 * commands/hdparm.c: New file. Provides `hdparm' command
39675 which sends ATA commands via grub_disk_ata_pass_through ().
39676
39677 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
39678
39679 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
39680 and <grub/cpu/io.h> to include/grub/ata.h.
39681 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
39682 (GRUB_CDROM_SECTOR_SIZE): Remove.
39683 (GRUB_ATA_*): Move to include/grub/ata.h.
39684 (GRUB_ATAPI_*): Likewise.
39685 (enum grub_ata_commands): Likewise.
39686 (enum grub_ata_timeout_milliseconds): Likewise.
39687 (struct grub_ata_device): Likewise.
39688 (grub_ata_regset): Likewise.
39689 (grub_ata_regget): Likewise.
39690 (grub_ata_regset2): Likewise.
39691 (grub_ata_regget2): Likewise.
39692 (grub_ata_check_ready): Likewise.
39693 (grub_ata_wait_not_busy): Remove static, exported in
39694 include/grub/ata.h.
39695 (grub_ata_wait_drq): Likewise.
39696 (grub_ata_pio_read): Likewise.
39697
39698 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
39699 function for hdparm.mod.
39700
39701 * include/grub/ata.h: New file, contains declarations from
39702 disk/ata.c.
39703 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
39704
39705 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
39706 (grub_disk_ata_pass_through): New exported variable.
39707
39708 * kern/disk.c (grub_disk_ata_pass_through): New variable.
39709
39710 2009-02-13 Colin D Bennett <colin@gibibit.com>
39711
39712 Support multiple fallback entries, and provide an API to support
39713 executing default+fallback menu entries. Renamed the `terminal' menu
39714 viewer to `text'.
39715
39716 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
39717 variable declaration.
39718 (grub_menu_execute_callback): New structure declaration.
39719 (grub_menu_execute_callback_t): New typedef.
39720 (grub_menu_execute_with_fallback): New function declaration.
39721 (grub_menu_get_entry): Likewise.
39722 (grub_menu_get_timeout): Likewise.
39723 (grub_menu_set_timeout): Likewise.
39724
39725 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
39726
39727 * normal/menu.c (grub_wait_after_message): Moved to
39728 `normal/menu_text.c'.
39729 (draw_border): Likewise.
39730 (print_message): Likewise.
39731 (print_entry): Likewise.
39732 (print_entries): Likewise.
39733 (grub_menu_init_page): Likewise.
39734 (get_entry_number): Likewise.
39735 (print_timeout): Likewise.
39736 (run_menu): Likewise.
39737 (grub_menu_execute_entry): Likewise.
39738 (show_text_menu): Likewise.
39739 (get_and_remove_first_entry_number): New function.
39740 (grub_menu_execute_with_fallback): Likewise.
39741 (get_entry): Renamed to ...
39742 (grub_menu_get_entry): .. this and made it global.
39743 (get_timeout): Renamed to ...
39744 (grub_menu_get_timeout): ... this and made it global.
39745 (set_timeout): Renamed to ...
39746 (grub_menu_set_timeout): ... this and made it global.
39747 (grub_normal_terminal_menu_viewer): Renamed to ...
39748 (grub_normal_text_menu_viewer): ... this.
39749
39750 * normal/menu_text.c: New file. Extracted text-menu-specific code
39751 from normal/menu.c.
39752
39753 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
39754 (normal_mod_SOURCES): Likewise.
39755
39756 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39757 (normal_mod_SOURCES): Likewise.
39758
39759 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39760 (normal_mod_SOURCES): Likewise.
39761
39762 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
39763 (normal_mod_SOURCES): Likewise.
39764
39765 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39766 (normal_mod_SOURCES): Likewise.
39767
39768 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39769 (normal_mod_SOURCES): Likewise.
39770
39771 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
39772 (normal_mod_SOURCES): Likewise.
39773
39774 2009-02-11 Robert Millan <rmh@aybabtu.com>
39775
39776 * util/grub.d/00_header.in: Update old reference to `font' command.
39777
39778 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
39779
39780 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
39781
39782 Based on patch from Javier Martín.
39783
39784 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
39785
39786 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
39787 to avoid false positives with FAT.
39788 (grub_fstest_SOURCES): Likewise.
39789 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
39790 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
39791 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39792 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
39793 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39794 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39795
39796 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
39797
39798 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
39799 bpb.version_specific.fat12_or_fat16.fstype and
39800 bpb.version_specific.fat32.fstype.
39801
39802 2009-02-08 Robert Millan <rmh@aybabtu.com>
39803
39804 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
39805
39806 2009-02-08 Robert Millan <rmh@aybabtu.com>
39807
39808 * Makefile.in (host_os, host_cpu): New variables.
39809 (target_os): Remove. Update all users.
39810
39811 2009-02-08 Marco Gerards <marco@gnu.org>
39812
39813 * Makefile.in (enable_grub_emu_usb): New variable.
39814 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
39815 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
39816 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
39817 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
39818 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
39819 `usbtest.mod' and `usbms.mod'.
39820 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
39821 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
39822 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
39823 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
39824 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
39825 variables.
39826
39827 * disk/usbms.c: New file.
39828
39829 * include/grub/usb.h: Likewise.
39830
39831 * include/grub/usbtrans.h: Likewise.
39832
39833 * include/grub/usbdesc.h: Likewise.
39834
39835 * bus/usb/usbtrans.c: Likewise.
39836
39837 * bus/usb/ohci.c: Likewise.
39838
39839 * bus/usb/uhci.c: Likewise.
39840
39841 * bus/usb/usbhub.c: Likewise.
39842
39843 * bus/usb/usb.c: Likewise.
39844
39845 * commands/usbtest.c: Likewise.
39846
39847 * util/usb.c: Likewise.
39848
39849 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
39850
39851 * configure.ac: Test for libusb presence.
39852
39853 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
39854
39855 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
39856
39857 * kern/mm.c: Add more comments.
39858
39859 2009-02-08 Robert Millan <rmh@aybabtu.com>
39860
39861 Patch from Javier Martín.
39862 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
39863 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
39864
39865 2009-02-08 Robert Millan <rmh@aybabtu.com>
39866
39867 * fs/cpio.c: Split tar functionality to ...
39868 * fs/tar.c: ... here (new file). Update all users.
39869
39870 2009-02-07 Robert Millan <rmh@aybabtu.com>
39871
39872 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
39873 backward-incompatible features.
39874
39875 Based on patch from Javier Martín, with some adjustments.
39876
39877 2009-02-07 Michael Scherer <misc@mandriva.org>
39878
39879 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
39880
39881 2009-02-07 Robert Millan <rmh@aybabtu.com>
39882
39883 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
39884 position of `disk/lvm.c' to ensure grub_init_all() always picks it
39885 after the RAID stuff.
39886
39887 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
39888
39889 Fixes problem when running vbetest command as reported by
39890 Vladimir Serbinenko <phcoder@gmail.com>.
39891
39892 * (grub_vbe_set_video_mode): Fixed problem with text modes.
39893
39894 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
39895
39896 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
39897 /dev/md/NpN style mdraid devices.
39898
39899 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
39900
39901 * util/unifont2pff.rb: Remove.
39902
39903 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
39904
39905 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
39906 `#'.
39907
39908 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
39909
39910 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
39911 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39912 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
39913 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
39914 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39915 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39916 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39917
39918 2009-02-02 Christian Franke <franke@computer.org>
39919
39920 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
39921
39922 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
39923
39924 * INSTALL: Note that we now require at least autoconf 2.59 and
39925 that LZO is optional.
39926
39927 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
39928
39929 Base on patch on bug #24154 created by Tomas Tintera
39930 <trosos@seznam.cz>.
39931
39932 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
39933
39934 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
39935
39936 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
39937 <bero@arklinux.org>.
39938
39939 * normal/parser.y (script_init): Add missing semicolon.
39940
39941 2009-01-31 Colin D Bennett <colin@gibibit.com>
39942
39943 * normal/main.c: Add include to grub/menu_viewer.h.
39944 (free_menu_entry_classes): Added.
39945 (grub_normal_menu_addentry): Added class property handling.
39946 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
39947 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
39948
39949 * normal/menu_viewer.c: New file.
39950
39951 * normal/menu.c (run_menu_entry): Renamed to ...
39952 (grub_menu_execute_entry): ... this and made it as global.
39953 (grub_menu_run): Renamed to ...
39954 (show_text_menu): ... this and made it local.
39955 (show_text_menu): Adapt to new function names.
39956 (grub_normal_terminal_menu_viewer): New global variable.
39957
39958 * include/grub/menu.h: New file.
39959
39960 * include/grub/menu_viewer.h: New file.
39961
39962 * include/grub/normal.h: Added include to grub/menu.h.
39963 (grub_menu_entry): Moved to include/grub/menu.h.
39964 (grub_menu_entry_t): Likewise.
39965 (grub_menu): Likewise.
39966 (grub_menu_t): Likewise.
39967 (grub_normal_terminal_menu_viewer): Added.
39968 (grub_menu_execute_entry): Likewise.
39969 (grub_menu_run): Removed.
39970
39971 * DISTLIST: Added include/grub/menu.h.
39972 Added include/grub/menu_viewer.h.
39973 Added normal/menu_viewer.c.
39974
39975 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
39976
39977 * normal/execute.c (grub_script_execute_menuentry): Changed to use
39978 arglist for menutitle arguments.
39979
39980 * normal/main.c (grub_normal_menu_addentry): Likewise.
39981
39982 * normal/parser.y (menuentry): Likewise.
39983
39984 * normal/script.c (grub_script_create_cmdmenu): Likewise.
39985
39986 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
39987 (grub_script_create_cmdmenu): Likewise.
39988
39989 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
39990
39991 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
39992 changes.
39993
39994 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
39995
39996 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
39997
39998 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
39999
40000 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
40001
40002 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
40003
40004 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
40005
40006 2009-01-30 Christian Franke <franke@computer.org>
40007
40008 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
40009 in option help text.
40010
40011 2009-01-27 Pavel Roskin <proski@gnu.org>
40012
40013 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
40014
40015 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
40016
40017 * commands/lsmmap.c: Add include to grub/machine/memory.h.
40018
40019 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
40020
40021 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
40022 unregister function.
40023
40024 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
40025
40026 * disk/scsi.c (grub_scsi_read): Fix sign problem.
40027
40028 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
40029
40030 * util/grub-mkfont.c (usage): Fix typo.
40031
40032 * util/elf/grub-mkimage.c (load_modules): Fix warning.
40033
40034 2009-01-26 Daniel Mierswa <impulze@impulze.org>
40035
40036 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
40037
40038 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
40039
40040 * kern/misc.c (grub_strcasecmp): New function.
40041 (grub_strcasecmp): Use grub_size_t instead of int for length.
40042 Fix return value.
40043 * include/grub/misc.h: Update function prototypes.
40044
40045 2009-01-26 Robert Millan <rmh@aybabtu.com>
40046
40047 * configure.ac: Fix cross-compilation check.
40048
40049 2009-01-22 Christian Franke <franke@computer.org>
40050
40051 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
40052 (precision) digit string. Allow `.format2' without `format1' (width).
40053 Limit input chars for `%s' output to `format2' if specified. This is
40054 compatible with standard printf ().
40055
40056 2009-01-22 Christian Franke <franke@computer.org>
40057
40058 * disk/ata.c (grub_ata_wait_status): Replace by ...
40059 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
40060 other status bits may be invalid while BSY is asserted.
40061 (grub_ata_check_ready): New function.
40062 (grub_ata_cmd): Removed.
40063 (grub_ata_wait_drq): New function.
40064 (grub_ata_strncpy): Remove inline.
40065 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
40066 and error check now done by grub_ata_wait_drq ().
40067 (grub_ata_pio_write): Likewise.
40068 (grub_atapi_identify): Set DEV before check for !BSY. Use
40069 grub_ata_wait_drq () to wait for data.
40070 (grub_ata_device_initialize): Add status register check to
40071 detect missing SATA slave devices. Add debug messages.
40072 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
40073 (grub_atapi_packet): Set DEV before check for !BSY. Replace
40074 transfer loop by grub_ata_pio_write ().
40075 (grub_ata_identify): Set DEV before check for !BSY. Use
40076 grub_ata_wait_drq () to wait for data.
40077 (grub_ata_setaddress): Set DEV before check for !BSY.
40078 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
40079 read/write in one loop. Fix invalid command on write. Fix incomplete
40080 command on (size % batch) == 0. Add missing error check after write of
40081 last block. Add debug messages.
40082 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
40083
40084 2009-01-19 Christian Franke <franke@computer.org>
40085
40086 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
40087 (GRUB_ATAPI_IREASON_*): Likewise.
40088 (grub_ata_pio_write): Fix timeout error return.
40089 (grub_atapi_identify): Add grub_ata_wait () after cmd.
40090 (grub_atapi_wait_drq): New function.
40091 (grub_atapi_packet): New parameter `size'.
40092 Use grub_atapi_wait_drq () and direct write instead of
40093 grub_ata_pio_write ().
40094 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
40095 reads the number of bytes requested by the device for each DRQ
40096 assertion.
40097 (grub_atapi_write): Remove old implementation, return not
40098 implemented instead.
40099
40100 2009-01-19 Christian Franke <franke@computer.org>
40101
40102 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
40103 of 512 to calculate data size.
40104 (grub_scsi_read12): Likewise.
40105 (grub_scsi_write10): Likewise.
40106 (grub_scsi_write12): Likewise.
40107 (grub_scsi_read): Adjust size according to blocksize.
40108 Add checks for invalid blocksize and unaligned transfer.
40109
40110 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
40111
40112 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
40113
40114 * term/gfxterm.c (write_char): Fix background rendering for wide
40115 width glyphs.
40116
40117 2009-01-19 Robert Millan <rmh@aybabtu.com>
40118
40119 * config.guess: Update to latest version from config git.
40120 * config.sub: Likewise.
40121
40122 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
40123
40124 * Makefile.in: Change font compilation to use new grub-mkfont instead
40125 of java version.
40126
40127 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
40128 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
40129 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
40130 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
40131 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
40132 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
40133 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
40134 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
40135 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
40136
40137 2009-01-16 Christian Franke <franke@computer.org>
40138
40139 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
40140 (enum grub_ata_timeout_milliseconds): New enum.
40141 (grub_ata_wait_status): Add parameter milliseconds.
40142 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
40143 recovery from timed-out commands.
40144 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
40145 return grub_errno instead of REG_ERROR.
40146 (grub_ata_pio_write): Add parameter milliseconds.
40147 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
40148 Pass milliseconds to grub_ata_wait_status () and
40149 grub_ata_pio_read ().
40150 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
40151 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
40152 grub_ata_wait_status (). Fix IDENTIFY timeout check.
40153 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
40154 It is not suitable for device detection, because DEV bit is ignored,
40155 the command may run too long, and not all devices set the signature
40156 properly.
40157 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
40158 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
40159 Fix device selection, DEV bit must be set first to address the registers
40160 of the correct device.
40161 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
40162 grub_ata_pio_read/write ().
40163 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
40164 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
40165
40166 2009-01-13 Carles Pina i Estany <carles@pina.cat>
40167
40168 * util/grub-editenv.c (main): Use fseeko(), not fseek().
40169
40170 2009-01-13 Bean <bean123ch@gmail.com>
40171
40172 * util/grub-mkfont.c (write_font): forget to remove some debug code.
40173
40174 2009-01-13 Bean <bean123ch@gmail.com>
40175
40176 * Makefile.in: (enable_grub_mkfont): New variable.
40177 (freetype_cflags): Likewise.
40178 (freetype_libs): Likewise.
40179
40180 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
40181 (grub_mkfont_SOURCES): New variable.
40182 (grub_mkfont_CFLAGS): Likewise.
40183 (grub_mkfont_LDFLAGS): Likewise.
40184
40185 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
40186 library if `--enable-grub-mkfont' is requested.
40187 (enable_grub_mkfont): New variable.
40188 (freetype_cflags): Likewise.
40189 (freetype_libs): Likewise.
40190
40191 * util/grub-mkfont.c: New file.
40192
40193 2009-01-12 Christian Franke <franke@computer.org>
40194
40195 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
40196 mode check. Fix setting of compat_use[].
40197
40198 2009-01-10 Robert Millan <rmh@aybabtu.com>
40199
40200 Update a few copyright years which we forgot to do in 2008 (only for
40201 files whose changes made in 2008 were copyright-significant)
40202
40203 * Makefile.in: Add 2008 to Copyright line.
40204 * disk/ieee1275/ofdisk.c: Likewise.
40205 * disk/efi/efidisk.c: Likewise.
40206 * kern/dl.c: Likewise.
40207 * kern/sparc64/ieee1275/init.c: Likewise.
40208 * kern/mm.c: Likewise.
40209 * kern/efi/mm.c: Likewise.
40210 * boot/i386/pc/boot.S: Likewise.
40211 * genfslist.sh: Likewise.
40212 * fs/iso9660.c: Likewise.
40213 * fs/hfs.c: Likewise.
40214 * fs/jfs.c: Likewise.
40215 * fs/minix.c: Likewise.
40216 * fs/ufs.c: Likewise.
40217 * gensymlist.sh.in: Likewise.
40218 * genkernsyms.sh.in: Likewise.
40219 * include/grub/misc.h: Likewise.
40220 * include/grub/types.h: Likewise.
40221 * include/grub/symbol.h: Likewise.
40222 * include/grub/elf.h: Likewise.
40223 * include/grub/kernel.h: Likewise.
40224 * include/grub/disk.h: Likewise.
40225 * include/grub/dl.h: Likewise.
40226 * include/grub/i386/linux.h: Likewise.
40227 * include/grub/i386/pc/biosdisk.h: Likewise.
40228 * include/grub/efi/api.h: Likewise.
40229 * include/grub/efi/pe32.h: Likewise.
40230 * include/grub/util/misc.h: Likewise.
40231 * normal/execute.c: Likewise.
40232 * normal/arg.c: Likewise.
40233 * normal/completion.c: Likewise.
40234 * normal/lexer.c: Likewise.
40235 * normal/parser.y: Likewise.
40236 * normal/misc.c: Likewise.
40237 * commands/i386/pc/vbeinfo.c: Likewise.
40238 * commands/hexdump.c: Likewise.
40239 * commands/terminal.c: Likewise.
40240 * commands/ls.c: Likewise.
40241 * commands/help.c: Likewise.
40242 * partmap/pc.c: Likewise.
40243 * loader/efi/chainloader.c: Likewise.
40244 * loader/multiboot_loader.c: Likewise.
40245 * loader/i386/pc/multiboot2.c: Likewise.
40246 * term/efi/console.c: Likewise.
40247 * term/i386/pc/serial.c: Likewise.
40248 * util/lvm.c: Likewise.
40249 * util/console.c: Likewise.
40250 * util/i386/efi/grub-mkimage.c: Likewise.
40251 * util/raid.c: Likewise.
40252
40253 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
40254
40255 * commands/videotest.c: Removed include to grub/machine/memory.h.
40256
40257 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
40258 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
40259 (video_mod_SOURCES): Removed.
40260 (video_mod_CFLAGS): Likewise.
40261 (video_mod_LDFLAGS): Likewise.
40262 (gfxterm_mod_SOURCES): Likewise.
40263 (gfxterm_mod_CFLAGS): Likewise.
40264 (gfxterm_mod_LDFLAGS): Likewise.
40265 (videotest_mod_SOURCES): Likewise.
40266 (videotest_mod_CFLAGS): Likewise.
40267 (videotest_mod_LDFLAGS): Likewise.
40268 (bitmap_mod_SOURCES): Likewise.
40269 (bitmap_mod_CFLAGS): Likewise.
40270 (bitmap_mod_LDFLAGS): Likewise.
40271 (tga_mod_SOURCES): Likewise.
40272 (tga_mod_CFLAGS): Likewise.
40273 (tga_mod_LDFLAGS): Likewise.
40274 (jpeg_mod_SOURCES): Likewise.
40275 (jpeg_mod_CFLAGS): Likewise.
40276 (jpeg_mod_LDFLAGS): Likewise.
40277 (png_mod_SOURCES): Likewise.
40278 (png_mod_CFLAGS): Likewise.
40279 (png_mod_LDFLAGS): Likewise.
40280
40281 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
40282 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
40283 (video_mod_SOURCES): Added.
40284 (video_mod_CFLAGS): Likewise.
40285 (video_mod_LDFLAGS): Likewise.
40286 (videotest_mod_SOURCES): Likewise.
40287 (videotest_mod_CFLAGS): Likewise.
40288 (videotest_mod_LDFLAGS): Likewise.
40289 (bitmap_mod_SOURCES): Likewise.
40290 (bitmap_mod_CFLAGS): Likewise.
40291 (bitmap_mod_LDFLAGS): Likewise.
40292 (tga_mod_SOURCES): Likewise.
40293 (tga_mod_CFLAGS): Likewise.
40294 (tga_mod_LDFLAGS): Likewise.
40295 (jpeg_mod_SOURCES): Likewise.
40296 (jpeg_mod_CFLAGS): Likewise.
40297 (jpeg_mod_LDFLAGS): Likewise.
40298 (png_mod_SOURCES): Likewise.
40299 (png_mod_CFLAGS): Likewise.
40300 (png_mod_LDFLAGS): Likewise.
40301 (gfxterm_mod_SOURCES): Likewise.
40302 (gfxterm_mod_CFLAGS): Likewise.
40303 (gfxterm_mod_LDFLAGS): Likewise.
40304
40305 * term/gfxterm.c: Removed include to grub/machine/memory.h,
40306 grub/machine/console.h.
40307
40308 2009-01-04 Jerone Young <jerone@gmail.com>
40309
40310 Make on screen instructions clearer
40311
40312 Based on patch created by Jidanni <jidanni@jidanni.org>
40313
40314 * normal/menu.c: print clearer instructions on the screen
40315
40316 2009-01-02 Colin D Bennett <colin@gibibit.com>
40317
40318 New font engine.
40319
40320 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
40321 build system and fixed gfxterm.c to work with different sized fonts.
40322
40323 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
40324
40325 * configure: Re-generated.
40326
40327 * DISTLIST: Removed font/manager.c.
40328 Added font/font.c.
40329 Added font/font_cmd.c.
40330
40331 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
40332 compilation.
40333
40334 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
40335
40336 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
40337
40338 * kern/term.c: Changed users of grub_utf8_to_ucs4.
40339
40340 * normal/menu.c: Likewise.
40341
40342 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
40343 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
40344
40345 * include/grub/font.h: Replaced with new file.
40346
40347 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
40348 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
40349 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
40350 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
40351 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
40352 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
40353 fg_red, fg_green, fg_blue, fg_alpha.
40354 (grub_video_adapter): Removed blit_glyph.
40355 (grub_video_blit_glyph): Removed.
40356
40357 * font/manager.c: Removed file.
40358
40359 * font/font.c: New file.
40360
40361 * font/font_cmd.c: Likewise.
40362
40363 * video/video.c (grub_video_blit_glyph): Removed.
40364
40365 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
40366 (grub_video_vbe_map_rgba): Likewise.
40367 (grub_video_vbe_unmap_color_int): Likewise.
40368 (grub_video_vbe_blit_glyph): Removed.
40369 (grub_video_vbe_adapter): Removed blit_glyph.
40370
40371 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
40372 (get_pixel): Likewise.
40373 (set_pixel): Likewise.
40374
40375 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
40376
40377 * term/gfxterm.c: Adapted to new font engine.
40378
40379 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
40380
40381 * term/i386/pc/vga.c: Likewise.
40382
40383 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
40384
40385 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
40386
40387 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
40388
40389 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
40390
40391 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
40392
40393 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
40394
40395 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
40396
40397 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
40398
40399 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
40400
40401 * util/grub.d/00_header.in: Changed to use new loadfont command.
40402
40403 * util/grub-mkconfig_lib.in: Changed font extension.
40404
40405 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
40406
40407 * util/getroot.c (grub_util_get_grub_dev): Add support for
40408 /dev/md/dNNpNN style partitionable mdraid devices.
40409
40410 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
40411
40412 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
40413 at a time limit of the PXE TFTP API correctly.
40414 (grub_pxefs_close): Likewise.
40415
40416 2008-11-29 Robert Millan <rmh@aybabtu.com>
40417
40418 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
40419 grub_ata_device_initialize() calls.
40420
40421 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
40422
40423 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
40424 iteration failed.
40425 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
40426
40427 2008-11-28 Robert Millan <rmh@aybabtu.com>
40428
40429 Fix build on powerpc-ieee1275. Based on patch created by
40430 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
40431 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
40432 `kern/ieee1275/mmap.c'.
40433 * include/grub/powerpc/ieee1275/memory.h: New file.
40434
40435 Provide grub-install on coreboot.
40436 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
40437 (grub_install_SOURCES): New variable.
40438 * util/i386/pc/grub-install.in: Add a few condition checks to make it
40439 usable on coreboot.
40440
40441 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
40442
40443 * util/grub-fstest.c (grub_term_get_current_input): Change return type
40444 to `grub_term_input_t'.
40445 (grub_term_get_current_output): Change return type to
40446 `grub_term_output_t'.
40447
40448 2008-11-22 Robert Millan <rmh@aybabtu.com>
40449
40450 Fix breakage on coreboot due to declaration mismatch.
40451 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
40452 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
40453 grub_vga_text_cls().
40454
40455 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
40456 comments. Avoid copying one more byte than necessary (just in case).
40457
40458 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
40459 to 0x200000 (avoids trouble with some OFW implementations, and matches
40460 with the one in Yaboot).
40461 Reported by Manoel Abranches
40462
40463 2008-11-20 Robert Millan <rmh@aybabtu.com>
40464
40465 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
40466 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
40467
40468 * util/grub-mkconfig_lib.in (grub_warn): New function.
40469 (convert_system_path_to_grub_path): Use grub_warn() when issuing
40470 warnings, to obtain consistent formatting.
40471 * util/grub.d/00_header.in: Likewise.
40472 * util/update-grub_lib.in: Likewise.
40473
40474 * loader/i386/linux.c (allocate_pages): Fix a warning.
40475 Move comment text to `#error' stanza.
40476
40477 Harmonize ieee1275's grub_available_iterate() with the generic
40478 grub_machine_mmap_iterate() interface (fixes a recently-introduced
40479 build problem on i386-ieee1275):
40480 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
40481 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
40482 parameter `type'. Update all users of this function.
40483 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
40484 `kern/ieee1275/mmap.c'.
40485 * kern/ieee1275/init.c
40486 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
40487 with ...
40488 (grub_machine_mmap_iterate): ... this.
40489 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
40490 return type to `grub_err_t'. Update all implementations of this
40491 function prototype.
40492 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
40493 Likewise.
40494
40495 Add `lsmmap' command (lists firmware-provided memory map):
40496 * commands/lsmmap.c: New file.
40497 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
40498 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
40499 variables.
40500 * conf/powerpc-ieee1275.rmk: Likewise.
40501 * conf/i386-coreboot.rmk: Likewise.
40502 * conf/i386-ieee1275.rmk: Likewise.
40503
40504 2008-11-19 Robert Millan <rmh@aybabtu.com>
40505
40506 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
40507 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
40508 constraints to initrd allocation (based on code from
40509 loader/i386/pc/linux.c). Without them, initrd was allocated too high
40510 for Linux to find it.
40511
40512 2008-11-14 Robert Millan <rmh@aybabtu.com>
40513
40514 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
40515 order to cope with duplicate slashes.
40516
40517 2008-11-14 Robert Millan <rmh@aybabtu.com>
40518
40519 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
40520 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
40521 don't want to mess with lower memory, because it is used in the Linux
40522 loader.
40523
40524 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
40525 an appropriate place in lower memory, between 0x10000 and 0x90000,
40526 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
40527 is in our heap (probably as a result of it being corrupted during
40528 decompression). Add #error instance with comment to explain why this
40529 loader isn't currently usable on PC/BIOS.
40530
40531 2008-11-14 Robert Millan <rmh@aybabtu.com>
40532
40533 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
40534 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
40535
40536 2008-11-12 Robert Millan <rmh@aybabtu.com>
40537
40538 Make loader/i386/linux.c buildable on i386-pc (although disabled).
40539
40540 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
40541 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
40542 from here ...
40543 * include/grub/i386/pc/memory.h: ... to here.
40544
40545 2008-11-12 Robert Millan <rmh@aybabtu.com>
40546
40547 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
40548 split).
40549
40550 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
40551 (grub_console_cur_color, grub_console_real_putchar)
40552 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
40553 (grub_console_setcolorstate, grub_console_setcolor)
40554 (grub_console_getcolor): Move from here ...
40555 * include/grub/i386/vga_common.h: ... to here (new file).
40556
40557 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
40558 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
40559 `<grub/i386/io.h>'.
40560 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
40561 `<grub/i386/vga_common.h>'.
40562
40563 2008-11-12 Robert Millan <rmh@aybabtu.com>
40564
40565 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
40566 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
40567 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
40568 variables.
40569 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
40570 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
40571
40572 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
40573 grub_console_init() with call to grub_vga_text_init().
40574 (grub_machine_fini): Replace call to
40575 grub_console_fini() with call to grub_vga_text_fini() and
40576 grub_at_keyboard_fini().
40577
40578 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
40579 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
40580 (grub_console_setcolorstate, grub_console_setcolor)
40581 (grub_console_getcolor): New function prototypes.
40582
40583 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
40584 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
40585 (grub_vga_text_setcursor): Static-ize.
40586 (grub_vga_text_term): New structure.
40587 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
40588
40589 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
40590 (grub_console_cur_color, grub_console_standard_color)
40591 (grub_console_normal_color, grub_console_highlight_color)
40592 (map_char, grub_console_putchar, grub_console_getcharwidth)
40593 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
40594 (grub_console_getcolor): Move from here ...
40595 * term/i386/vga_common.c: ... to here (same function names).
40596
40597 2008-11-12 Robert Millan <rmh@aybabtu.com>
40598
40599 Use newly-added Multiboot support in coreboot.
40600
40601 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
40602 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
40603
40604 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
40605 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
40606 (codestart): Store the MBI in `startup_multiboot_info' when we're
40607 being loaded using Multiboot.
40608
40609 * kern/i386/coreboot/init.c (grub_machine_init): Move
40610 grub_at_keyboard_init() call to beginning of function (useful for
40611 debugging). Call grub_machine_mmap_init() before attempting to use
40612 grub_machine_mmap_iterate().
40613 (grub_lower_mem, grub_upper_mem): Move from here ...
40614 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
40615 here (new file).
40616
40617 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
40618 function prototype.
40619
40620 2008-11-12 Robert Millan <rmh@aybabtu.com>
40621
40622 Fix a regression introduced by the at_keyboard.mod split. Because
40623 some terminals are default on some platforms and non-default on
40624 others, the first terminal being registered determines which is
40625 going to be default.
40626
40627 * kern/term.c (grub_term_register_input): If this is the first
40628 terminal being registered, set it as the current one.
40629 (grub_term_register_output): Likewise.
40630
40631 * term/efi/console.c (grub_console_init): Do not call
40632 grub_term_set_current_output() or grub_term_set_current_input().
40633 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
40634 * term/i386/pc/console.c (grub_console_init): Likewise.
40635 (grub_console_fini): Do not call grub_term_set_current_input()
40636 (but leave grub_term_set_current_output() to restore text mode).
40637
40638 2008-11-10 Robert Millan <rmh@aybabtu.com>
40639
40640 * util/grub.d/00_header.in: Add backward compatibility check for
40641 versions of terminal.mod that don't understand `terminal_input' or
40642 `terminal_output'.
40643
40644 2008-11-09 Robert Millan <rmh@aybabtu.com>
40645
40646 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
40647 `terminal_input' / `terminal_output', not `terminal'.
40648
40649 2008-11-08 Robert Millan <rmh@aybabtu.com>
40650
40651 * Makefile.in (include_DATA): Fix srcdir=. assumption.
40652 (DISTCLEANFILES): Add `build_env.mk'.
40653
40654 2008-11-08 Robert Millan <rmh@aybabtu.com>
40655
40656 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
40657 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
40658 members. Update all users.
40659 * util/console.c (grub_ncurses_term): Split in ...
40660 (grub_ncurses_term_input): ... this, and ...
40661 (grub_ncurses_term_output): ... this. Update all users.
40662 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
40663
40664 2008-11-08 Robert Millan <rmh@aybabtu.com>
40665
40666 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
40667 (PKGDATA): Add $(pkgdata_SRCDIR).
40668 (pkglib_BUILDDIR): New variable.
40669 (pkgdata_SRCDIR): New variable.
40670 (build_env.mk): New target.
40671 (include_DATA): New variable.
40672 (install-local): Install $(include_DATA) files in $(includedir).
40673
40674 2008-11-07 Pavel Roskin <proski@gnu.org>
40675
40676 * gendistlist.sh: Use C locale for sorting to ensure consistent
40677 output on all systems.
40678
40679 * util/grub.d/00_header.in: Remove incorrect space before
40680 "serial".
40681
40682 2008-11-07 Robert Millan <rmh@aybabtu.com>
40683
40684 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
40685 per specification.
40686 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
40687 * loader/multiboot_loader.c (find_multi_boot2_header): New function
40688 (based on find_multi_boot1_header).
40689 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
40690 using find_multi_boot2_header(), and abort if neither Multiboot or
40691 Multiboot headers were found.
40692
40693 2008-11-07 Robert Millan <rmh@aybabtu.com>
40694
40695 Modularize at_keyboard.mod:
40696
40697 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
40698 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
40699 (at_keyboard_mod_LDFLAGS): New variables.
40700
40701 Actual terminal split:
40702
40703 * include/grub/term.h (struct grub_term): Split in ...
40704 (struct grub_term_input): ... this, and ...
40705 (struct grub_term_output): ... this. Update all users.
40706 (grub_term_set_current): Split in ...
40707 (grub_term_set_current_input): ... this, and ...
40708 (grub_term_set_current_output): ... this.
40709 (grub_term_get_current): Split in ...
40710 (grub_term_get_current_input): ... this, and ...
40711 (grub_term_get_current_output): ... this.
40712 (grub_term_register): Split in ...
40713 (grub_term_register_input): ... this, and ...
40714 (grub_term_register_output): ... this.
40715 (grub_term_unregister): Split in ...
40716 (grub_term_unregister_input): ... this, and ...
40717 (grub_term_unregister_output): ... this.
40718 (grub_term_iterate): Split in ...
40719 (grub_term_iterate_input): ... this, and ...
40720 (grub_term_iterate_output): ... this.
40721
40722 * kern/term.c (grub_term_list): Split in ...
40723 (grub_term_list_input): ... this, and ...
40724 (grub_term_list_output): ... this. Update all users.
40725 (grub_cur_term): Split in ...
40726 (grub_cur_term_input): ... this, and ...
40727 (grub_cur_term_output): ... this. Update all users.
40728 (grub_term_set_current): Split in ...
40729 (grub_term_set_current_input): ... this, and ...
40730 (grub_term_set_current_output): ... this.
40731 (grub_term_get_current): Split in ...
40732 (grub_term_get_current_input): ... this, and ...
40733 (grub_term_get_current_output): ... this.
40734 (grub_term_register): Split in ...
40735 (grub_term_register_input): ... this, and ...
40736 (grub_term_register_output): ... this.
40737 (grub_term_unregister): Split in ...
40738 (grub_term_unregister_input): ... this, and ...
40739 (grub_term_unregister_output): ... this.
40740 (grub_term_iterate): Split in ...
40741 (grub_term_iterate_input): ... this, and ...
40742 (grub_term_iterate_output): ... this.
40743
40744 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
40745 a check for input and one for output (and only attempt to get keys
40746 from user when input works).
40747
40748 * util/grub-probe.c (grub_term_get_current): Split in ...
40749 (grub_term_get_current_input): ... this, and ...
40750 (grub_term_get_current_output): ... this.
40751 * util/grub-fstest.c: Likewise.
40752 * util/i386/pc/grub-setup.c: Likewise.
40753 * util/grub-editenv.c: Likewise.
40754
40755 Portability adjustments:
40756
40757 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
40758 `term/i386/pc/at_keyboard.c'.
40759 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
40760 grub_keyboard_controller_init() (now handled by terminal .init).
40761 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
40762 grub_at_keyboard_init().
40763 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
40764 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
40765 at_keyboard.mod via input terminal interface).
40766 * include/grub/i386/coreboot/console.h: Convert into a stub for
40767 `<grub/i386/pc/console.h>'.
40768
40769 Migrate full terminals to new API:
40770
40771 * term/efi/console.c (grub_console_term): Split into ...
40772 (grub_console_term_input): ... this, and ...
40773 (grub_console_term_output): ... this. Update all users.
40774 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
40775 (grub_ofconsole_init): Split into ...
40776 (grub_ofconsole_init_input): ... this, and ...
40777 (grub_ofconsole_init_output): ... this.
40778 (grub_ofconsole_term): Split into ...
40779 (grub_ofconsole_term_input): ... this, and ...
40780 (grub_ofconsole_term_output): ... this. Update all users.
40781 * term/i386/pc/serial.c (grub_serial_term): Split into ...
40782 (grub_serial_term_input): ... this, and ...
40783 (grub_serial_term_output): ... this. Update all users.
40784 * term/i386/pc/console.c (grub_console_term): Split into ...
40785 (grub_console_term_input): ... this, and ...
40786 (grub_console_term_output): ... this. Update all users.
40787 (grub_console_term_input): Only enable it on PC/BIOS platform.
40788 (grub_console_init): Remove grub_keyboard_controller_init() call.
40789
40790 Migrate input terminals to new API:
40791
40792 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
40793 `i386' and `i386/pc' to enable build on x86_64 (this driver is
40794 i386-specific anyway).
40795 (grub_console_checkkey): Rename to ...
40796 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
40797 users.
40798 (grub_keyboard_controller_orig): New variable.
40799 (grub_console_getkey): Rename to ...
40800 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
40801 users.
40802 (grub_keyboard_controller_init): Static-ize. Save original
40803 controller value so that it can be restored ...
40804 (grub_keyboard_controller_fini): ... here (new function).
40805 (grub_at_keyboard_term): New structure.
40806 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
40807 functions.
40808
40809 Migrate output terminals to new API:
40810
40811 * term/i386/pc/vga.c (grub_vga_term): Change type to
40812 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
40813 members. Update all users.
40814 * term/gfxterm.c (grub_video_term): Change type to
40815 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
40816 members. Update all users.
40817 * include/grub/i386/pc/console.h (grub_console_checkkey)
40818 (grub_console_getkey): Do not export (no longer needed by gfxterm,
40819 etc).
40820
40821 Migrate `terminal' command and userland tools to new API:
40822
40823 * commands/terminal.c (grub_cmd_terminal): Split into ...
40824 (grub_cmd_terminal_input): ... this, and ...
40825 (grub_cmd_terminal_output): ... this.
40826 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
40827 `terminal_input' and `terminal_output'.
40828 * util/grub.d/00_header.in: Adjust `terminal' calls to new
40829 `terminal_input' / `terminal_output' API.
40830 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
40831 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
40832 provided ${GRUB_TERMINAL}, convert it).
40833
40834 2008-11-04 Robert Millan <rmh@aybabtu.com>
40835
40836 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
40837 for FreeBSD.
40838 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
40839
40840 2008-11-03 Bean <bean123ch@gmail.com>
40841
40842 * kern/elf.c (grub_elf32_load): Revert to previous code.
40843 (grub_elf64_load): Likewise.
40844
40845 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
40846
40847 2008-11-01 Robert Millan <rmh@aybabtu.com>
40848
40849 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
40850 (TARGET_CPPFLAGS): Likewise.
40851 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
40852
40853 2008-11-01 Carles Pina i Estany <carles@pina.cat>
40854
40855 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
40856
40857 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
40858
40859 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
40860 addition of objects until the code is not going to be able to fail.
40861
40862 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
40863
40864 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
40865 (add a missing NULL check, and correct them by moving the pointer
40866 operations after the actual check).
40867
40868 2008-10-29 Robert Millan <rmh@aybabtu.com>
40869
40870 * util/i386/pc/grub-install.in: Handle empty string as output from
40871 make_system_path_relative_to_its_root().
40872
40873 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
40874
40875 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
40876 circular metadata worst case scenario. If the metadata is circular
40877 then copy the wrap in place.
40878 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
40879 project lib/format_text/layout.h
40880 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
40881
40882 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
40883
40884 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
40885
40886 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
40887
40888 * util/update-grub_lib.in: Mention filename in warning message.
40889
40890 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
40891
40892 * NEWS: Update for rename of update-grub to grub-mkconfig.
40893
40894 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
40895
40896 * util/update-grub_lib.in: Copy to ...
40897 * util/grub-mkconfig_lib.in: ... this. Update all users.
40898 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
40899 * util/update-grub.in: Rename to ...
40900 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
40901 option. Add `--output' option to allow users to specify the generated
40902 configuration file. Default to stdout.
40903 (update_grub_dir): Rename to ...
40904 (grub_mkconfig_dir): ... this.
40905 (grub_cfg): Default to an empty string.
40906 * conf/common.rmk (update-grub): Rename to ...
40907 (grub-mkconfig): ... this.
40908 (update-grub_lib): Copy to ...
40909 (grub-mkconfig_lib): ... this.
40910 (update-grub_SCRIPTS): Copy to ...
40911 (grub-mkconfig_SCRIPTS): ... this. Update all users.
40912 (update-grub_DATA): Rename to ...
40913 (grub-mkconfig_DATA): ... this.
40914
40915 2008-09-28 Robert Millan <rmh@aybabtu.com>
40916
40917 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
40918 to `modified'. Add the real `created' field.
40919 (grub_iso9660_uuid): Use `modified' rather than `created' for
40920 constructing the UUID.
40921
40922 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
40923
40924 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
40925 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
40926
40927 2008-09-28 Bean <bean123ch@gmail.com>
40928
40929 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
40930 Thanks to Christian Franke for finding this bug.
40931
40932 2008-09-25 Robert Millan <rmh@aybabtu.com>
40933
40934 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
40935 instances of grub_util_get_disk_name() (see previous commit).
40936
40937 2008-09-25 Robert Millan <rmh@aybabtu.com>
40938
40939 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
40940 `util/i386/get_disk_name.c'.
40941 * conf/i386-efi.rmk: Likewise.
40942 * conf/x86_64-efi.rmk: Likewise.
40943 * conf/i386-coreboot.rmk: Likewise.
40944 * conf/i386-ieee1275.rmk: Likewise.
40945 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
40946 `util/ieee1275/get_disk_name.c'.
40947 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
40948 * util/ieee1275/get_disk_name.c: Remove file.
40949 * util/i386/get_disk_name.c: Remove file.
40950 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
40951 "hd%d" for device.map entries, rather than using
40952 grub_util_get_disk_name().
40953
40954 2008-09-24 Carles Pina i Estany <carles@pina.cat>
40955
40956 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
40957 warning.
40958 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
40959
40960 2008-09-24 Carles Pina i Estany <carles@pina.cat>
40961
40962 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
40963 Changed to 0x5100.
40964 (GRUB_TERM_PPAGE): Changed to 0x4900.
40965
40966 2008-09-24 Robert Millan <rmh@aybabtu.com>
40967
40968 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
40969 macros (they were i386-pc specific).
40970 * include/grub/sparc64/ieee1275/console.h: Likewise.
40971 * include/grub/efi/console.h: Likewise.
40972
40973 2008-09-22 Bean <bean123ch@gmail.com>
40974
40975 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
40976 resident and in attribute list.
40977
40978 * include/grub/ntfs.h (BMP_LEN): Removed.
40979
40980 2008-09-22 Bean <bean123ch@gmail.com>
40981
40982 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
40983 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
40984
40985 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
40986 error occurs, as grub_disk_open will call grub_disk_close, which will
40987 call p->close (scsi).
40988
40989 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
40990
40991 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
40992 (AC_PREREQ): Bumped to 2.59.
40993 (AC_TRY_COMPILE): Replace obsolete macro with ...
40994 (AC_COMPILE_IFELSE): ... this.
40995 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
40996 (AC_LINK_IFELSE): ... this.
40997
40998 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
40999
41000 * autogen.sh: Add a call to `gendistlist.sh'.
41001
41002 2008-09-19 Christian Franke <franke@computer.org>
41003
41004 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
41005 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
41006 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
41007 Export __enable_execute_stack() to modules.
41008 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
41009 New function.
41010
41011 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
41012
41013 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
41014 Sort the list.
41015
41016 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
41017
41018 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
41019 #include <grub/util/hostdisk.h>.
41020
41021 2008-09-08 Robert Millan <rmh@aybabtu.com>
41022
41023 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
41024 segments when their filesz is zero (grub_file_read() interprets
41025 zero-size as "read until EOF", which results in memory corruption).
41026 Use `lowest_segment' rather than 0 for calculating the current
41027 segment load address.
41028
41029 2008-09-08 Robert Millan <rmh@aybabtu.com>
41030
41031 * util/hostdisk.c (open_device): Replace a grub_util_info() call
41032 with grub_dprintf("hostdisk", ...), as it was so verbose that it
41033 clobbered useful information.
41034
41035 2008-09-08 Robert Millan <rmh@aybabtu.com>
41036
41037 * include/grub/util/biosdisk.h: Move to ...
41038 * include/grub/util/hostdisk.h: ... here. Update all users.
41039 * util/biosdisk.c: Move to ...
41040 * util/hostdisk.c: ... here. Update all users.
41041
41042 2008-09-07 Robert Millan <rmh@aybabtu.com>
41043
41044 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
41045 variables.
41046 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
41047 and length can be stored directly in the `mbi->mmap_addr' and
41048 `mbi->mmap_length' struct fields.
41049
41050 2008-09-07 Robert Millan <rmh@aybabtu.com>
41051
41052 * conf/i386.rmk: New file. Provides declaration for building
41053 `cpuid.mod'.
41054 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
41055 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
41056 variables.
41057 Include `conf/i386.mk'.
41058 * conf/i386-efi.rmk: Likewise.
41059 * conf/x86_64-efi.rmk: Likewise.
41060 * conf/i386-coreboot.rmk: Likewise.
41061 * conf/i386-ieee1275.rmk: Likewise.
41062
41063 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
41064
41065 Based on patch created by Colin D Bennett <colin@gibibit.com>.
41066 Adds optimization support for BGR based modes.
41067
41068 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
41069 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
41070 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
41071 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
41072 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
41073 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
41074 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
41075 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
41076 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
41077 (grub_video_i386_vbeblit_index_index): Likewise.
41078 (grub_video_i386_vbeblit_replace_directN): Added.
41079 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
41080 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
41081 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
41082 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
41083 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
41084 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
41085 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
41086 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
41087 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
41088 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
41089 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
41090 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
41091 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
41092
41093 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
41094 (grub_video_i386_vbefill_R8G8B8): Likewise.
41095 (grub_video_i386_vbefill_index): Likewise.
41096 (grub_video_i386_vbefill_direct32): Added.
41097 (grub_video_i386_vbefill_direct24): Likewise.
41098 (grub_video_i386_vbefill_direct16): Likewise.
41099 (grub_video_i386_vbefill_direct8): Likewise.
41100
41101 * include/grub/video.h (grub_video_blit_format): Removed
41102 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
41103 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
41104 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
41105 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
41106 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
41107
41108 * video/video.c (grub_video_get_blit_format): Updated to use new
41109 blit formats. Added handling for 16 bit color modes.
41110
41111 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
41112 fillers.
41113 (common_blitter): Updated to use new blitters.
41114
41115 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
41116 Removed.
41117 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
41118 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
41119 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
41120 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
41121 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
41122 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
41123 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
41124 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
41125 (grub_video_i386_vbeblit_index_index): Likewise.
41126 (grub_video_i386_vbeblit_replace_directN): Added.
41127 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
41128 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
41129 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
41130 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
41131 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
41132 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
41133 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
41134 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
41135 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
41136 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
41137 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
41138 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
41139 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
41140
41141 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
41142 (grub_video_i386_vbefill_R8G8B8): Likewise.
41143 (grub_video_i386_vbefill_index): Likewise.
41144 (grub_video_i386_vbefill_direct32): Added.
41145 (grub_video_i386_vbefill_direct24): Likewise.
41146 (grub_video_i386_vbefill_direct16): Likewise.
41147 (grub_video_i386_vbefill_direct8): Likewise.
41148
41149 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
41150 types.
41151
41152 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
41153 types.
41154
41155 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
41156 blitter types.
41157
41158 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
41159 types.
41160
41161 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
41162
41163 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
41164 RAID level 1.
41165
41166 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
41167
41168 * fs/iso9660.c (grub_iso9660_date): New structure.
41169 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
41170 (grub_iso9660_uuid): New function.
41171
41172 2008-09-05 Bean <bean123ch@gmail.com>
41173
41174 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
41175
41176 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
41177 insensitive bit for names in Win32 and Win32 & DOS namespace.
41178
41179 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
41180
41181 * include/grub/types.h (LONG_MAX): Likewise.
41182
41183 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
41184
41185 * util/getroot.c: Include <config.h>.
41186 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
41187 add support for /dev/md/N devices and handle LVM double dash escaping.
41188
41189 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
41190
41191 * config.guess: Update to latest version from config git.
41192 * config.sub: Likewise.
41193
41194 2008-09-03 Robert Millan <rmh@aybabtu.com>
41195
41196 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
41197 `disk->total_sectors'.
41198
41199 2008-09-01 Colin D Bennett <colin@gibibit.com>
41200
41201 * include/grub/normal.h: Fixed incorrect comment for
41202 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
41203
41204 2008-09-01 Colin D Bennett <colin@gibibit.com>
41205
41206 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
41207 values with defines.
41208
41209 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
41210 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
41211 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
41212 (GRUB_VBE_MODEATTR_COLOR): Likewise.
41213 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
41214 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
41215 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
41216 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
41217 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
41218 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
41219 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
41220 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
41221 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
41222 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
41223 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
41224 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
41225 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
41226 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
41227 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
41228
41229 2008-08-31 Robert Millan <rmh@aybabtu.com>
41230
41231 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
41232 declaration.
41233 (grub_multiboot): Fix a few warnings.
41234
41235 2008-08-31 Robert Millan <rmh@aybabtu.com>
41236
41237 * loader/i386/pc/multiboot.c: Update comment not to say that
41238 boot_device support is unimplemented.
41239
41240 2008-08-31 Robert Millan <rmh@aybabtu.com>
41241
41242 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
41243 or memory map support are unimplemented.
41244
41245 2008-08-31 Colin D Bennett <colin@gibibit.com>
41246
41247 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
41248
41249 2008-08-31 Colin D Bennett <colin@gibibit.com>
41250
41251 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
41252 total video memory in 'vbeinfo' output; show color format details for
41253 each video mode.
41254
41255 2008-08-30 Pavel Roskin <proski@gnu.org>
41256
41257 * util/genmoddep.c: Remove for real this time.
41258 * DISTLIST: Remove util/genmoddep.c.
41259
41260 2008-08-30 Robert Millan <rmh@aybabtu.com>
41261
41262 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
41263 as required by Multiboot spec (it was already 4-byte aligned, but
41264 only by chance).
41265
41266 2008-08-29 Pavel Roskin <proski@gnu.org>
41267
41268 * kern/powerpc/ieee1275/crt0.S: Rename to ...
41269 * kern/powerpc/ieee1275/startup.S: ... this.
41270 * conf/powerpc-ieee1275.rmk: Adjust for the above.
41271 * DISTLIST: Likewise.
41272
41273 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
41274 grub/cpu/kernel.h. Add start label for consistency with other
41275 platforms. Add grub_prefix immediately after start. Add jump
41276 to the code after grub_prefix.
41277 * include/grub/powerpc/kernel.h: Provide valid values for
41278 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
41279
41280 2008-08-29 Bean <bean123ch@gmail.com>
41281
41282 * configure.ac: Change host_os to cygwin for mingw.
41283 (asprintf): New check for function.
41284
41285 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
41286 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
41287
41288 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
41289 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
41290 sync, sleep and grub_util_get_disk_size for mingw.
41291
41292 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
41293 to get size in mingw.
41294 (open_device): Use flag O_BINARY if it's defined.
41295 (find_root_device): Add dummy code for mingw.
41296
41297 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
41298 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
41299 (get_scsi_disk_name): Return 0 for mingw.
41300
41301 * util/hostfs.c: #include <grub/util/misc.h>.
41302 (grub_hostfs_open): Use "rb" flag to open file, use
41303 grub_util_get_disk_size to get disk size for mingw.
41304
41305 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
41306 (asprintf): New function if HAVE_ASPRINTF is not set.
41307 (sync): New function for mingw.
41308 (sleep): Likewise.
41309 (grub_util_get_disk_size): Likewise.
41310
41311 2008-08-28 Pavel Roskin <proski@gnu.org>
41312
41313 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
41314 kern/time.c.
41315
41316 2008-08-28 Robert Millan <rmh@aybabtu.com>
41317
41318 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
41319
41320 2008-08-28 Robert Millan <rmh@aybabtu.com>
41321
41322 Change find_grub_drive() syntax so it doesn't prevent it from
41323 detecting NULL names as errors.
41324
41325 * util/biosdisk.c (find_grub_drive): Move free slot search code
41326 from here ...
41327 (find_free_slot): ... to here.
41328 (read_device_map): Use find_free_slot() to search for free slots.
41329
41330 2008-08-27 Marco Gerards <marco@gnu.org>
41331
41332 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
41333 (scsi_mod_SOURCES): New variable.
41334 (scsi_mod_CFLAGS): Likewise
41335 (scsi_mod_LDFLAGS): Likewise.
41336
41337 * disk/scsi.c: New file.
41338
41339 * include/grub/scsi.h: Likewise.
41340
41341 * include/grub/scsicmd.h: Likewise.
41342
41343 * disk/ata.c: Include <grub/scsi.h>.
41344 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
41345 instead.
41346 (grub_ata_iterate): Skip ATAPI devices.
41347 (grub_ata_open): Only handle ATAPI devices.
41348 (struct grub_atapi_read): Removed.
41349 (grub_atapi_readsector): Likewise.
41350 (grub_ata_read): No longer handle ATAPI devices.
41351 (grub_ata_write): Likewise.
41352 (grub_atapi_iterate): New function.
41353 (grub_atapi_read): Likewise.
41354 (grub_atapi_write): Likewise.
41355 (grub_atapi_open): Likewise.
41356 (grub_atapi_close): Likewise.
41357 (grub_atapi_dev): New variable.
41358 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
41359 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
41360
41361 * include/grub/disk.h (enum grub_disk_dev_id): Add
41362 `GRUB_DISK_DEVICE_SCSI_ID'.
41363
41364 2008-08-26 Robert Millan <rmh@aybabtu.com>
41365
41366 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
41367 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
41368 descriptive.
41369
41370 2008-08-23 Bean <bean123ch@gmail.com>
41371
41372 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
41373 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
41374 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
41375 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
41376 dm_nv.mod.
41377 (raid5rec_mod_SOURCES): New macro.
41378 (raid5rec_mod_CFLAGS): Likewise.
41379 (raid5rec_mod_LDFLAGS): Likewise.
41380 (raid6rec_mod_SOURCES): Likewise.
41381 (raid6rec_mod_CFLAGS): Likewise.
41382 (raid6rec_mod_LDFLAGS): Likewise.
41383 (mdraid_mod_SOURCES): Likewise.
41384 (mdraid_mod_CFLAGS): Likewise.
41385 (mdraid_mod_LDFLAGS): Likewise.
41386 (dm_nv_mod_SOURCES): Likewise.
41387 (dm_nv_mod_CFLAGS): Likewise.
41388 (dm_nv_mod_LDFLAGS): Likewise.
41389
41390 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
41391 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
41392 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
41393
41394 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
41395 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
41396
41397 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41398
41399 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41400
41401 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41402
41403 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41404
41405 * disk/raid5_recover.c: New file.
41406
41407 * disk/raid6_recover.c: Likewise.
41408
41409 * disk/mdraid_linux.c: Likewise.
41410
41411 * disk/dmraid_nvidia.c: Likewise.
41412
41413 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
41414 ULONG_MAX.
41415
41416 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
41417 calculate the size of raid device.
41418 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
41419 different layout of raid5.
41420 (grub_raid_scan_device): Remove code specific to mdraid.
41421 (grub_raid_list): New variable.
41422 (free_array): New function.
41423 (grub_raid_register): Likewise.
41424 (grub_raid_unregister): Likewise.
41425 (grub_raid_rescan): Likewise.
41426 (GRUB_MOD_INIT): Don't iterate device here.
41427 (GRUB_MOD_FINI): Use free_array to release resource.
41428
41429 * include/grub/raid.h: Remove macro and structure specific to mdraid.
41430 (grub_raid5_recover_func_t): New function variable type.
41431 (grub_raid6_recover_func_t): Likewise.
41432 (grub_raid5_recover_func): New variable.
41433 (grub_raid6_recover_func): Likewise.
41434 (grub_raid_register): New function.
41435 (grub_raid_unregister): Likewise.
41436 (grub_raid_rescan): Likewise.
41437 (grub_raid_block_xor): Likewise.
41438
41439 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
41440 (CMD_CRC): New macro.
41441 (part): Removed.
41442 (read_file): Handle device as well as file.
41443 (cmd_crc): New function.
41444 (fstest): Handle multiple disks.
41445 (options): Remove part, raw and long, add root and diskcount.
41446 (usage): Add crc, remove -p, -r, -l, add -r and -c.
41447 (main): Find the first non option entry and ignore subsequent options,
41448 add handling for the new options, support multiple disks.
41449
41450 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
41451
41452 2008-08-23 Bean <bean123ch@gmail.com>
41453
41454 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
41455
41456 * genfslist.sh: Ignore kernel.mod.
41457
41458 * genpartmaplist.sh: Likewise.
41459
41460 2008-08-23 Robert Millan <rmh@aybabtu.com>
41461
41462 * util/getroot.c (find_root_device): Skip anything that starts with
41463 a dot, not just directories. This avoids things like /dev/.tmp.md0.
41464
41465 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
41466
41467 * util/update-grub.in (GRUB_GFXMODE): Export variable.
41468 * util/grub.d/00_header.in: Allow the administrator to change default
41469 gfxmode via ${GRUB_GFXMODE}.
41470
41471 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
41472
41473 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
41474
41475 2008-08-21 Robert Millan <rmh@aybabtu.com>
41476
41477 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
41478 loader.
41479 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
41480 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
41481
41482 2008-08-20 Carles Pina i Estany <carles@pina.cat>
41483
41484 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
41485 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
41486
41487 2008-08-19 Robert Millan <rmh@aybabtu.com>
41488
41489 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
41490 (struct grub_virtual_screen): Remove `cursor_color'.
41491 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
41492 initialization.
41493 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
41494
41495 2008-08-18 Robert Millan <rmh@aybabtu.com>
41496
41497 Unify (identical) linux_normal.c files.
41498 * loader/i386/efi/linux_normal.c: Move from here ...
41499 * loader/linux_normal.c: ... to here. Update all users.
41500 * loader/i386/pc/linux_normal.c: Delete. Update all users.
41501 * loader/i386/ieee1275/linux_normal.c: Likewise.
41502
41503 2008-08-18 Robert Millan <rmh@aybabtu.com>
41504
41505 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
41506 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
41507 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
41508 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
41509 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
41510 New macros.
41511 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
41512 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
41513 (GRUB_LINUX_CL_END_OFFSET): ... to here.
41514 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
41515 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
41516 (GRUB_EFI_CL_END_OFFSET): Rename to ...
41517 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
41518 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
41519 Initialize `params->video_cursor_x' and `params->video_cursor_y'
41520 portably using grub_getxy().
41521 Replace `-EFI' with `-bzImage' in boot message.
41522
41523 2008-08-17 Robert Millan <rmh@aybabtu.com>
41524
41525 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
41526
41527 2008-08-17 Robert Millan <rmh@aybabtu.com>
41528
41529 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
41530
41531 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
41532 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
41533 (grub_machine_mmap_iterate): New function declaration.
41534 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
41535 structure.
41536 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
41537 macros.
41538
41539 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
41540 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
41541 Move e820 parsing from here ...
41542 * kern/i386/pc/mmap.c: New file.
41543 (grub_machine_mmap_iterate): ... to here.
41544
41545 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
41546 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
41547 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
41548 (grub_available_iterate): Redeclare to return `void', and redeclare
41549 its hook to use grub_uint64_t as addr and size parameters, and rename
41550 to ...
41551 (grub_machine_mmap_iterate): ... this. Update all users.
41552
41553 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
41554 to make it more readable. Rename to ...
41555 (grub_machine_mmap_iterate): ... this.
41556
41557 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
41558 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
41559 (grub_multiboot): Allocate an extra region after the payload, and fill
41560 it with a Multiboot memory map. Adjust a.out loader to calculate size
41561 with the extra space.
41562 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
41563 with the extra space.
41564
41565 2008-08-17 Carles Pina i Estany <carles@pina.cat>
41566
41567 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
41568
41569 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
41570
41571 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
41572 mdate-sh to the list `find' searches for.
41573 * DISTLIST: Regenerated.
41574
41575 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
41576
41577 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
41578 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
41579 genmoddep.awk, gensymlist.sh.in.
41580 (DISTDIRS): Add bus, docs, hook, lib.
41581 * DISTLIST: Regenerated.
41582 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
41583
41584 2008-08-16 Robert Millan <rmh@aybabtu.com>
41585
41586 * disk/raid.c (grub_raid_init): Handle/report errors set by
41587 grub_device_iterate().
41588 * disk/lvm.c (grub_lvm_init): Likewise.
41589
41590 2008-08-15 Bean <bean123ch@gmail.com>
41591
41592 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
41593 and datehook.mod.
41594 (datetime_mod_SOURCES): New macro.
41595 (datetime_mod_CFLAGS): Likewise.
41596 (datetime_mod_LDFLAGS): Likewise.
41597 (date_mod_SOURCES): Likewise.
41598 (date_mod_CFLAGS): Likewise.
41599 (date_mod_LDFLAGS): Likewise.
41600 (datehook_mod_SOURCES): Likewise.
41601 (datehook_mod_CFLAGS): Likewise.
41602 (datehook_mod_LDFLAGS): Likewise.
41603
41604 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
41605 and datehook.mod.
41606 (datetime_mod_SOURCES): New macro.
41607 (datetime_mod_CFLAGS): Likewise.
41608 (datetime_mod_LDFLAGS): Likewise.
41609 (date_mod_SOURCES): Likewise.
41610 (date_mod_CFLAGS): Likewise.
41611 (date_mod_LDFLAGS): Likewise.
41612 (datehook_mod_SOURCES): Likewise.
41613 (datehook_mod_CFLAGS): Likewise.
41614 (datehook_mod_LDFLAGS): Likewise.
41615
41616 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
41617 and datehook.mod.
41618 (datetime_mod_SOURCES): New macro.
41619 (datetime_mod_CFLAGS): Likewise.
41620 (datetime_mod_LDFLAGS): Likewise.
41621 (date_mod_SOURCES): Likewise.
41622 (date_mod_CFLAGS): Likewise.
41623 (date_mod_LDFLAGS): Likewise.
41624 (datehook_mod_SOURCES): Likewise.
41625 (datehook_mod_CFLAGS): Likewise.
41626 (datehook_mod_LDFLAGS): Likewise.
41627
41628 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
41629 and datehook.mod.
41630 (datetime_mod_SOURCES): New macro.
41631 (datetime_mod_CFLAGS): Likewise.
41632 (datetime_mod_LDFLAGS): Likewise.
41633 (date_mod_SOURCES): Likewise.
41634 (date_mod_CFLAGS): Likewise.
41635 (date_mod_LDFLAGS): Likewise.
41636 (datehook_mod_SOURCES): Likewise.
41637 (datehook_mod_CFLAGS): Likewise.
41638 (datehook_mod_LDFLAGS): Likewise.
41639
41640 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
41641 and datehook.mod.
41642 (datetime_mod_SOURCES): New macro.
41643 (datetime_mod_CFLAGS): Likewise.
41644 (datetime_mod_LDFLAGS): Likewise.
41645 (date_mod_SOURCES): Likewise.
41646 (date_mod_CFLAGS): Likewise.
41647 (date_mod_LDFLAGS): Likewise.
41648 (datehook_mod_SOURCES): Likewise.
41649 (datehook_mod_CFLAGS): Likewise.
41650 (datehook_mod_LDFLAGS): Likewise.
41651
41652 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
41653
41654 * commands/date.c: New file.
41655
41656 * hook/datehook.c: Likewise.
41657
41658 * include/grub/lib/datetime.h: Likewise.
41659
41660 * include/grub/i386/cmos.h: Likewise.
41661
41662 * lib/datetime.c: Likewise.
41663
41664 * lib/i386/datetime.c: Likewise.
41665
41666 * lib/efi/datetime.c: Likewise.
41667
41668 2008-08-14 Robert Millan <rmh@aybabtu.com>
41669
41670 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
41671 (grub_mkelfimage_SOURCES): New variable.
41672 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
41673
41674 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
41675 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
41676 * conf/powerpc-ieee1275.rmk: Likewise.
41677 * conf/i386-ieee1275.rmk: Likewise.
41678
41679 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
41680 * kern/i386/coreboot/init.c: Likewise.
41681
41682 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
41683 with `<grub/cpu/kernel.h>'.
41684 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
41685 to ...
41686 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
41687 * kern/i386/coreboot/startup.S: Likewise.
41688
41689 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
41690 (GRUB_MOD_GAP): Remove.
41691 * include/grub/powerpc/kernel.h: New file.
41692 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
41693 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
41694 * include/grub/i386/kernel.h: New file.
41695 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
41696 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
41697 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
41698
41699 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
41700 `grub-mkelfimage'.
41701 Use --directory when invoking grub_mkimage.
41702
41703 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
41704 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
41705 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
41706 and GRUB_KERNEL_CPU_PREFIX.
41707
41708 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
41709
41710 * include/grub/err.h (grub_err_printf): New function prototype.
41711 * util/misc.c (grub_err_printf): New function.
41712 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
41713 grub_printf.
41714 * kern/err.c (grub_print_error): Use grub_err_printf.
41715
41716 2008-08-13 Robert Millan <rmh@aybabtu.com>
41717
41718 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
41719
41720 2008-08-13 Robert Millan <rmh@aybabtu.com>
41721
41722 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
41723 boot entry.
41724
41725 2008-08-12 Robert Millan <rmh@aybabtu.com>
41726
41727 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
41728 of the relocation code from here ...
41729 (grub_multiboot): ... to here.
41730 (forward_relocator, backward_relocator): Move from here ...
41731 * kern/i386/loader.S (grub_multiboot_forward_relocator)
41732 (grub_multiboot_backward_relocator): ... to here.
41733 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
41734 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
41735 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
41736 (grub_multiboot_forward_relocator_end)
41737 (grub_multiboot_backward_relocator)
41738 (grub_multiboot_backward_relocator_end): New variables.
41739
41740 2008-08-12 Bean <bean123ch@gmail.com>
41741
41742 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
41743
41744 2008-08-11 Robert Millan <rmh@aybabtu.com>
41745
41746 * kern/i386/linuxbios/startup.S: Move from here ...
41747 * kern/i386/coreboot/startup.S: ... to here.
41748
41749 * kern/i386/linuxbios/init.c: Move from here ...
41750 * kern/i386/coreboot/init.c: ... to here.
41751
41752 * kern/i386/linuxbios/table.c: Move from here ...
41753 * kern/i386/coreboot/mmap.c: ... to here.
41754
41755 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
41756
41757 2008-08-11 Robert Millan <rmh@aybabtu.com>
41758
41759 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
41760 errors. Leave it to the upper layer to handle them.
41761
41762 2008-08-09 Christian Franke <franke@computer.org>
41763
41764 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
41765 * conf/common.rmk: Install `grub-pe2elf' only if requested.
41766 Install `grub.d/10_windows' only on Cygwin.
41767 * configure.ac: Add subst of `target_os'.
41768 Check `target_os' also before setting TARGET_OBJ2ELF.
41769 Add `--enable-grub-pe2elf'.
41770
41771 2008-08-08 Robert Millan <rmh@aybabtu.com>
41772
41773 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
41774 (grub_last_time): Change type to grub_uint64_t.
41775 (grub_disk_open): Migrate code from to using grub_get_time_ms().
41776 (grub_disk_close): Likewise.
41777
41778 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
41779 (run_menu): Migrate code from to using grub_get_time_ms().
41780
41781 * util/misc.c (grub_get_time_ms): New function.
41782
41783 2008-08-08 Marco Gerards <marco@gnu.org>
41784
41785 * disk/ata.c (grub_ata_regget): Change return type to
41786 `grub_uint8_t'.
41787 (grub_ata_regget2): Likewise.
41788 (grub_ata_wait_status): New function.
41789 (grub_ata_wait_busy): Removed function, updated all users to use
41790 `grub_ata_wait_status'.
41791 (grub_ata_wait_drq): Likewise.
41792 (grub_ata_cmd): New function.
41793 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
41794 error handling.
41795 (grub_ata_pio_write): Add error handling.
41796 (grub_atapi_identify): Likewise.
41797 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
41798 handling.
41799 (grub_ata_identify): Use `grub_ata_cmd' and improve error
41800 handling. Actually use the detected registers. Reorder the
41801 detection logic such that it is easier to read.
41802 (grub_ata_pciinit): Do not assign the same ID to each controller.
41803 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
41804 handling.
41805 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
41806
41807 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
41808
41809 2008-08-08 Marco Gerards <marco@gnu.org>
41810
41811 * NEWS: Update.
41812
41813 2008-08-07 Bean <bean123ch@gmail.com>
41814
41815 * include/grub/x86_64/pci.h: New file.
41816
41817 2008-08-07 Christian Franke <franke@computer.org>
41818
41819 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
41820 (TIMER2_GATE): Likewise.
41821 (grub_pit_wait): Add enable/disable of the timer2 gate
41822 bit of port 0x61. This fixes a possible infinite loop.
41823
41824 2008-08-07 Bean <bean123ch@gmail.com>
41825
41826 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
41827 kern/i386/tsc.c and kern/i386/pit.c.
41828
41829 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
41830 x86_64 platform.
41831
41832 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
41833 <grub/i386/tsc.h>.
41834
41835 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
41836
41837 2008-08-07 Bean <bean123ch@gmail.com>
41838
41839 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
41840
41841 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
41842
41843 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
41844 multiple inclusion. Add #include <grub/types.h>.
41845
41846 2008-08-06 Christian Franke <franke@computer.org>
41847
41848 * conf/common.rmk: Build and install `10_windows'.
41849 * util/grub.d/10_windows.in: New script.
41850
41851 2008-08-06 Pavel Roskin <proski@gnu.org>
41852
41853 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
41854
41855 2008-08-06 Robert Millan <rmh@aybabtu.com>
41856
41857 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
41858 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
41859
41860 2008-08-06 Bean <bean123ch@gmail.com>
41861
41862 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
41863 (grub_pxefs_fs_int): Remove dummy definition.
41864 (grub_pxefs_open): Use data->block_size to store the current block
41865 size setting.
41866 (grub_pxefs_read): Use block size stored in data->block_size. As the
41867 value of grub_pxe_blksize can be changed after the file is opened.
41868
41869 2008-08-06 Bean <bean123ch@gmail.com>
41870
41871 * fs/i386/pc/pxe.c (curr_file): new variable.
41872 (grub_pxefs_open): Simply the handling of pxe file system. Don't
41873 require the dummy internal file system anymore.
41874 (grub_pxefs_read): Removed.
41875 (grub_pxefs_close): Likewise.
41876 (grub_pxefs_fs_int): Likewise.
41877 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
41878 connection when we switch file.
41879 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
41880
41881 2008-08-06 Robert Millan <rmh@aybabtu.com>
41882
41883 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
41884 `halt.mod'.
41885 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
41886 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
41887
41888 * kern/i386/halt.c: New file.
41889 * kern/i386/reboot.c: Likewise.
41890 * include/grub/i386/reboot.h: Likewise.
41891 * include/grub/i386/halt.h: Likewise.
41892
41893 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
41894 Include `<grub/cpu/halt.h>'.
41895 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
41896 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
41897
41898 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
41899 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
41900 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
41901 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
41902 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
41903 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
41904 from here ...
41905 * include/grub/i386/at_keyboard.h: ... to here.
41906
41907 2008-08-05 Robert Millan <rmh@aybabtu.com>
41908
41909 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
41910 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
41911 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
41912 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
41913 `kern/generic/millisleep.c'.
41914
41915 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
41916 instead of grub_get_rtc().
41917 (grub_tsc_init): Initialize `tsc_boot_time'.
41918
41919 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
41920 (grub_machine_init): Use grub_tsc_init() rather than
41921 installing an RTC-based handler via grub_install_get_time_ms().
41922
41923 * kern/i386/pit.c: New file.
41924 * include/grub/i386/pit.h: Likewise.
41925
41926 2008-08-05 Bean <bean123ch@gmail.com>
41927
41928 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
41929
41930 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
41931 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
41932 (pxe_mod_SOURCES): New macro.
41933 (pxe_mod_CFLAGS): Likewise.
41934 (pxe_mod_LDFLAGS): Likewise.
41935 (pxecmd_mod_SOURCES): Likewise.
41936 (pxecmd_mod_CFLAGS): Likewise.
41937 (pxecmd_mod_LDFLAGS): Likewise.
41938
41939 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
41940 (grub_pxe_call): Likewise.
41941
41942 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
41943
41944 * commands/i386/pc/pxecmd.c: New file.
41945
41946 * fs/i386/pc/pxe.c: Likewise.
41947
41948 * include/grub/i386/pc/pxe.h: Likewise.
41949
41950 2008-08-05 Bean <bean123ch@gmail.com>
41951
41952 * util/console.c (grub_console_cur_color): New variable.
41953 (grub_console_standard_color): Likewise.
41954 (grub_console_normal_color): Likewise.
41955 (grub_console_highlight_color): Likewise.
41956 (color_map): Likewise.
41957 (use_color): Likewise.
41958 (NUM_COLORS): New macro.
41959 (grub_ncurses_setcolorstate): Handle color properly.
41960 (grub_ncurses_setcolor): Don't change color here, just remember the
41961 settings, color will be set in grub_ncurses_setcolorstate.
41962 (grub_ncurses_getcolor): New function.
41963 (grub_ncurses_init): Initialize color pairs.
41964 (grub_ncurses_term): New member grub_ncurses_getcolor.
41965
41966 2008-08-05 Colin D Bennett <colin@gibibit.com>
41967
41968 High resolution timer support. Implemented for x86 CPUs using TSC.
41969 Extracted generic grub_millisleep() so it's linked in only as needed.
41970 This requires a Pentium compatible CPU; if the RDTSC instruction is
41971 not supported, then it falls back on the generic grub_get_time_ms()
41972 implementation that uses the machine's RTC.
41973
41974 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
41975 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
41976 `kern/generic/millisleep.c'.
41977
41978 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
41979 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
41980
41981 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
41982 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
41983
41984 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
41985
41986 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
41987 `kern/generic/millisleep.c'.
41988
41989 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
41990
41991 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
41992
41993 * kern/generic/rtc_get_time_ms.c: New file.
41994
41995 * kern/generic/millisleep.c: New file.
41996
41997 * kern/misc.c: Don't include
41998 <kern/time.h> anymore.
41999 (grub_millisleep_generic): Removed.
42000
42001 * commands/sleep.c (grub_interruptible_millisleep): Uses
42002 grub_get_time_ms() instead of grub_get_rtc().
42003
42004 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
42005 function.
42006 (grub_cpu_is_cpuid_supported): New inline function.
42007 (grub_cpu_is_tsc_supported): New inline function.
42008 (grub_tsc_init): New function prototype.
42009 (grub_tsc_get_time_ms): New function prototype.
42010
42011 * kern/i386/tsc.c (grub_get_time_ms): New file.
42012
42013 * include/grub/time.h: Include <grub/types.h.
42014 (grub_millisleep_generic): Removed.
42015 (grub_get_time_ms): New prototype.
42016 (grub_install_get_time_ms): New prototype.
42017 (grub_rtc_get_time_ms): New prototype.
42018
42019 * kern/time.c (grub_get_time_ms): New function.
42020 (grub_install_get_time_ms): New function.
42021
42022 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
42023 <grub/time.h> anymore.
42024 (grub_millisleep): Removed.
42025 (grub_machine_init): Call grub_tsc_init.
42026
42027 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
42028 get_time_ms() implementation.
42029
42030 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
42031 (ieee1275_get_time_ms): New function.
42032 (grub_machine_init): Install get_time_ms() implementation.
42033
42034 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
42035 (grub_machine_init): Call grub_tsc_init().
42036 (grub_millisleep): Removed.
42037
42038 * kern/ieee1275/init.c (grub_millisleep): Removed.
42039 (grub_machine_init): Install ieee1275_get_time_ms()
42040 implementation.
42041 (ieee1275_get_time_ms): New function.
42042 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
42043 real work.
42044
42045 2008-08-05 Marco Gerards <marco@gnu.org>
42046
42047 * disk/ata.c: Include <grub/pci.h>.
42048 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
42049 (grub_ata_initialize): Rewritten.
42050 (grub_ata_device_initialize): New function.
42051
42052 2008-08-04 Pavel Roskin <proski@gnu.org>
42053
42054 * kern/main.c: Include grub/mm.h.
42055
42056 2008-08-04 Robert Millan <rmh@aybabtu.com>
42057
42058 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
42059 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
42060 corruption problem).
42061
42062 2008-08-04 Robert Millan <rmh@aybabtu.com>
42063
42064 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
42065 warnings introduced in my last commit.
42066
42067 2008-08-03 Robert Millan <rmh@aybabtu.com>
42068
42069 Make PCI available on all i386 architectures.
42070
42071 * include/grub/i386/pc/pci.h: Move from here ...
42072 * include/grub/i386/pci.h: ... to here.
42073
42074 * include/grub/i386/pc/pci.h: Remove.
42075 * include/grub/i386/efi/pci.h: Remove.
42076 * include/grub/x86_64/efi/pci.h: Remove.
42077
42078 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
42079 `<grub/cpu/pci.h>'.
42080
42081 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
42082 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
42083 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
42084
42085 * conf/i386-ieee1275.rmk: Likewise.
42086
42087 2008-08-03 Robert Millan <rmh@aybabtu.com>
42088
42089 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
42090 (grub_console_setcursor): Make it possible to set cursor off.
42091
42092 2008-08-03 Robert Millan <rmh@aybabtu.com>
42093
42094 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
42095 of modules instead of assuming which platform provides what.
42096 * util/update-grub.in: Likewise.
42097
42098 2008-08-03 Robert Millan <rmh@aybabtu.com>
42099
42100 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
42101 instead of `grub_install_dos_part' to determine whether a drive needs
42102 to be prepended to prefix (`grub_install_dos_part' is not reliable,
42103 because it can be overridden when loading GRUB via Multiboot).
42104
42105 2008-08-02 Robert Millan <rmh@aybabtu.com>
42106
42107 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
42108
42109 2008-08-02 Robert Millan <rmh@aybabtu.com>
42110
42111 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
42112 of informational grub_dprintf() calls.
42113
42114 2008-08-02 Robert Millan <rmh@aybabtu.com>
42115
42116 * disk/memdisk.c (memdisk_size): Don't initialize.
42117 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
42118
42119 * include/grub/i386/pc/kernel.h
42120 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
42121 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
42122 (grub_memdisk_image_size, grub_arch_memdisk_addr)
42123 (grub_arch_memdisk_size): Remove.
42124
42125 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
42126 field (was only used to transfer a constant). Add `type' field to
42127 support multiple module types.
42128 (grub_module_iterate): New function.
42129
42130 * kern/device.c (grub_device_open): Do not hide error messages
42131 when grub_disk_open() fails. Use grub_print_error() instead.
42132
42133 * kern/i386/pc/init.c (grub_arch_modules_addr)
42134 (grub_arch_memdisk_size): Remove functions.
42135 (grub_arch_modules_addr): Return the module address in high memory
42136 (now that it isn't copied anymore).
42137
42138 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
42139 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
42140 decompression routine (grub_total_module_size already includes that
42141 now). Don't copy modules back to low memory.
42142
42143 * kern/main.c: Include `<grub/mm.h>'.
42144 (grub_load_modules): Split out (and use) ...
42145 (grub_module_iterate): ... this function, which iterates through
42146 module objects and runs a hook.
42147 Comment out grub_mm_init_region() call, as it would cause non-ELF
42148 modules to be overwritten.
42149
42150 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
42151 the memdisk image in its own region, make it part of the module list.
42152 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
42153 (main): Parse --memdisk|-m option, and pass user-provided path as
42154 parameter to generate_image().
42155 (add_segments): Pass `memdisk_path' down to load_modules().
42156 (load_modules): Embed memdisk image in module section when requested.
42157 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
42158 `header.type' instead of `header.offset'.
42159
42160 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
42161 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
42162 (memdisk_mod_LDFLAGS): New variables.
42163 * conf/i386-coreboot.rmk: Likewise.
42164 * conf/i386-ieee1275.rmk: Likewise.
42165
42166 2008-08-02 Robert Millan <rmh@aybabtu.com>
42167
42168 * loader/i386/pc/multiboot.c (playground, forward_relocator)
42169 (backward_relocator): New variables. Used to allocate and relocate
42170 the payload, respectively.
42171 (grub_multiboot_load_elf32): Load into heap instead of requested
42172 address, install the appropriate relocator code in each bound of
42173 the payload, and set the entry point such that
42174 grub_multiboot_real_boot() will jump to one of them.
42175
42176 * kern/i386/loader.S (grub_multiboot_payload_size)
42177 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
42178 (grub_multiboot_payload_entry_offset): New variables.
42179 (grub_multiboot_real_boot): Set cpu context to what the relocator
42180 expects, and jump to the relocator instead of the payload.
42181
42182 * include/grub/i386/loader.h (grub_multiboot_payload_size)
42183 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
42184 (grub_multiboot_payload_entry_offset): Export.
42185
42186 2008-08-01 Bean <bean123ch@gmail.com>
42187
42188 * normal/menu_entry.c (editor_getline): Don't return the original
42189 string as result, as it will be released by lexer once it has done
42190 using it.
42191
42192 2008-08-01 Robert Millan <rmh@aybabtu.com>
42193
42194 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
42195 within menuentries, not before them.
42196 util/grub.d/10_hurd.in: Likewise.
42197
42198 2008-08-01 Bean <bean123ch@gmail.com>
42199
42200 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
42201 (bufio_mod_SOURCES): New macro.
42202 (bufio_mod_CFLAGS): Likewise.
42203 (bufio_mod_LDFLAGS): Likewise.
42204
42205 * include/grub/bufio.h: New file.
42206
42207 * io/bufio.c: Likewise.
42208
42209 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
42210 (grub_video_reader_png): Use grub_buffile_open to open file.
42211
42212 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
42213 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
42214
42215 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
42216 (grub_video_reader_tga): Use grub_buffile_open to open file.
42217
42218 * font/manager.c: Include <grub/bufio.h>.
42219 (add_font): Use grub_buffile_open to open file.
42220
42221 2008-07-31 Robert Millan <rmh@aybabtu.com>
42222
42223 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
42224 ELF segments, use a macro for arbitrarily accessing any of them instead
42225 of preparing a pointer that allows access to one at a time.
42226 (grub_multiboot_load_elf64): Likewise.
42227
42228 2008-07-31 Bean <bean123ch@gmail.com>
42229
42230 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
42231 GRUB_KERNEL_MACHINE_DATA_END.
42232
42233 2008-07-30 Robert Millan <rmh@aybabtu.com>
42234
42235 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
42236 Increase from 0x50 to 0x60.
42237 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
42238 use UUIDs to identify the root drive for them. If that's not
42239 possible, abort.
42240 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
42241 check, for cross-disk installs.
42242
42243 2008-07-30 Robert Millan <rmh@aybabtu.com>
42244
42245 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
42246 is non-empty, use it to set the `prefix' environment variable instead
42247 of the usual approach.
42248 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
42249 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
42250 environment variable instead of dummy make_install_device().
42251
42252 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
42253 (start): Insert a data section, with `grub_prefix' variable.
42254 * kern/i386/linuxbios/startup.S: Likewise.
42255
42256 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
42257 New variable reference.
42258 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
42259 New macro. Defines offset of `grub_prefix' within startup.S (relative
42260 to `start').
42261 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
42262 section within startup.S (relative to `start').
42263 * include/grub/i386/coreboot/kernel.h: Likewise.
42264
42265 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
42266 Overwrite grub_prefix with its contents, at the beginning of the
42267 first segment.
42268 (main): Understand -p|--prefix.
42269
42270 2008-07-30 Robert Millan <rmh@aybabtu.com>
42271
42272 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
42273
42274 2008-07-30 Robert Millan <rmh@aybabtu.com>
42275
42276 * term/i386/pc/vga_text.c (grub_console_cls): Use
42277 grub_console_gotoxy() to go back to beginning of the screen.
42278 Found by Patrick Georgi <patrick.georgi@coresystems.de>
42279
42280 2008-07-29 Christian Franke <franke@computer.org>
42281
42282 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
42283 Add conversion of emulated mount points on Cygwin.
42284
42285 2008-07-29 Christian Franke <franke@computer.org>
42286
42287 * util/update-grub.in: Add a check for admin
42288 group on Cygwin.
42289 Remove old `grub.cfg.new' before creation.
42290 Add `-f' to `mv' to handle the different filesystem
42291 semantics of Windows.
42292
42293 2008-07-29 Bean <bean123ch@gmail.com>
42294
42295 * normal/main.c (get_line): Fix buffer overflow bug.
42296
42297 2008-07-28 Robert Millan <rmh@aybabtu.com>
42298
42299 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
42300 (struct grub_apple_header): New struct. Describes the layout of
42301 the partmap header.
42302 (apple_partition_map_iterate): Check the header magic as well as the
42303 partition magic (which was already being checked).
42304
42305 2008-07-28 Pavel Roskin <proski@gnu.org>
42306
42307 * genmk.rb: Add a warning to the beginning of the output that
42308 it's a generated file and should not be edited.
42309
42310 2008-07-28 Robert Millan <rmh@aybabtu.com>
42311
42312 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
42313 with the same number are found, just use issue a warning with
42314 grub_dprintf(), as this error has been reported to be non-fatal.
42315
42316 2008-07-27 Robert Millan <rmh@aybabtu.com>
42317
42318 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
42319 information.
42320
42321 2008-07-27 Bean <bean123ch@gmail.com>
42322
42323 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
42324 (grub_fat_find_dir): Ignore case when comparing filename.
42325
42326 2008-07-27 Bean <bean123ch@gmail.com>
42327
42328 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
42329 smallino, as it's more descriptive, and i8count can be confused with
42330 the other field count.
42331 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
42332 inode type.
42333
42334 2008-07-27 Bean <bean123ch@gmail.com>
42335
42336 * commands/crc.c: New file.
42337
42338 * lib/crc.c: Likewise.
42339
42340 * include/grub/lib/crc.h: Likewise.
42341
42342 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
42343
42344 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
42345 (hexdump): Move this function to ...
42346
42347 * lib/hexdump.c: ... here.
42348
42349 * include/grub/hexdump.h: Renamed to ...
42350
42351 * include/grub/lib/hexdump.h: ... this.
42352
42353 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
42354
42355 * util/grub-editenv.c: Likewise.
42356
42357 * include/envblk.h: Renamed to ...
42358
42359 * include/lib/envblk.h: ... this.
42360
42361 * util/envblk.c: Renamed to ...
42362
42363 * lib/envblk.c: ... this.
42364
42365 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
42366 lib/hexdump.c.
42367 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
42368 (pkglib_MODULES): Add crc.mod.
42369 (hexdump_mod_SOURCES): Add lib/hexdump.c.
42370 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
42371 (crc_mod_SOURCES): New macro.
42372 (crc_mod_CFLAGS): Likewise.
42373 (crc_mod_LDFLAGS): Likewise.
42374
42375 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
42376
42377 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42378
42379 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
42380
42381 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42382
42383 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
42384
42385 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
42386
42387 * commands/help.c: Include <grub/term.h>.
42388 (TERM_WIDTH): Removed. Updated all users.
42389
42390 2008-07-27 Pavel Roskin <proski@gnu.org>
42391
42392 * util/getroot.c (find_root_device): Rephrase a comment to avoid
42393 spurious warnings about a comment within a comment.
42394
42395 2008-07-25 Robert Millan <rmh@aybabtu.com>
42396
42397 * util/getroot.c (find_root_device): Skip devices that match
42398 /dev/dm-[0-9]. This lets the real device be found for any type of
42399 abstraction (LVM, EVMS, RAID..).
42400 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
42401 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
42402 device is found first, find_root_device() will now skip it.
42403
42404 2008-07-24 Pavel Roskin <proski@gnu.org>
42405
42406 * include/grub/types.h: Use __builtin_bswap32() and
42407 __builtin_bswap64() with gcc 4.3 and newer.
42408
42409 2008-07-24 Christian Franke <franke@computer.org>
42410
42411 * util/i386/pc/grub-install.in: If `--debug' is specified,
42412 pass `--verbose' to grub-setup.
42413 Abort script if make_system_path_relative_to_its_root() fails.
42414
42415 2008-07-24 Bean <bean123ch@gmail.com>
42416
42417 * configure.ac: Fixed a bug caused by the previous cygwin patch,
42418 variable `target_platform' should be `platform'.
42419
42420 2008-07-24 Bean <bean123ch@gmail.com>
42421
42422 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
42423 (grub_png_init_fixed_block): New function.
42424 (grub_png_decode_image_data): Handle fixed huffman code compression.
42425
42426 2008-07-24 Bean <bean123ch@gmail.com>
42427
42428 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
42429 (grub_pe2elf_SOURCES): New macro.
42430 (CLEANFILES): Add grub-pe2elf.
42431
42432 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
42433 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
42434 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
42435 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
42436 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
42437 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
42438 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
42439 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
42440 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
42441 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
42442 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
42443 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
42444 (GRUB_PE32_DT_FUNCTION): Likewise.
42445 (GRUB_PE32_REL_I386_DIR32): Likewise.
42446 (GRUB_PE32_REL_I386_REL32): Likewise.
42447 (grub_pe32_symbol): New structure.
42448 (grub_pe32_reloc): Likewise.
42449
42450 * util/grub-pe2elf.c: New file.
42451
42452 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
42453 start symbol in non pc platform.
42454
42455 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
42456
42457 The following patches are from Christian Franke.
42458
42459 * include/grub/dl.h: Remove .previous, gas supports this only
42460 for ELF format.
42461
42462 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
42463 Remove .type, gas supports this only for ELF format.
42464
42465 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
42466 nullbytes in symbol table. This fixes an infinite loop if table is
42467 zero filled.
42468
42469 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
42470 TARGET_IMG_LDFLAGS and EXEEXT.
42471
42472 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
42473 TARGET_IMG_LDFLAGS_AC.
42474 (grub_CHECK_STACK_ARG_PROBE): New function.
42475
42476 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
42477
42478 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
42479
42480 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
42481 to set TARGET_IMG_LD* accordingly.
42482 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
42483 Add call to grub_CHECK_STACK_ARG_PROBE.
42484 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
42485
42486 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
42487
42488 * genmk.rb: Add EXEEXT to CLEANFILES.
42489
42490 2008-07-23 Robert Millan <rmh@aybabtu.com>
42491
42492 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
42493 define the codes for arrows and lines used for the menu).
42494 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
42495 as well.
42496
42497 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
42498 fonts, because the latter are too slow.
42499
42500 2008-07-21 Bean <bean123ch@gmail.com>
42501
42502 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
42503 a20. Run keyboard test last, as it will cause macbook to halt.
42504
42505 2008-07-18 Pavel Roskin <proski@gnu.org>
42506
42507 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
42508 load foreign architecture modules correctly anyway. Keep
42509 support for loading host architecture modules, whether we
42510 compile them or not.
42511
42512 2008-07-17 Pavel Roskin <proski@gnu.org>
42513
42514 * configure.ac: Use -m32 or -m64 regardless of whether we had to
42515 change target_cpu. The compiler default can mismatch target_cpu
42516 in any case.
42517
42518 * disk/efi/efidisk.c: Fix format warnings on x86_64.
42519 * kern/efi/efi.c: Likewise.
42520
42521 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
42522 target compiler is functional.
42523 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
42524 are set up.
42525
42526 * configure.ac: Default to efi platform for x86_64-apple. Allow
42527 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
42528 adjustments from the rest, only do them if target is not
42529 explicitly given. Merge other adjustments with the final sanity
42530 check. Remove an extraneous check for supported CPU. Be
42531 specific which CPU and which platform is not supported.
42532
42533 * configure.ac: Default to pc platform for x86_64.
42534
42535 2008-07-17 Robert Millan <rmh@aybabtu.com>
42536
42537 Partial LinuxBIOS -> Coreboot rename.
42538
42539 * conf/i386-linuxbios.rmk: Renamed to ...
42540 * conf/i386-coreboot.rmk: ... this.
42541 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
42542 * configure.ac: Accept "coreboot" as input platform (but maintain
42543 compatibility with "linuxbios").
42544 * include/grub/i386/linuxbios: Renamed to ...
42545 * include/grub/i386/coreboot: ... this.
42546
42547 2008-07-17 Bean <bean123ch@gmail.com>
42548
42549 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
42550 (appleldr_mod_SOURCE): New variable.
42551 (appleldr_mod_CFLAGS): Likewise.
42552 (appleldr_mod_LDFLAGS): Likewise.
42553 (pci_mod_SOURCES): Likewise.
42554 (pci_mod_CFLAGS): Likewise.
42555 (pci_mod_LDFLAGS): Likewise.
42556 (lspci_mod_SOURCES): Likewise.
42557 (lspci_mod_CFLAGS): Likewise.
42558 (lspci_mod_LDFLAGS): Likewise.
42559
42560 * conf/x86_64-efi.rmk: New file.
42561
42562 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
42563 macro.
42564 (grub_efidisk_write): Likewise.
42565
42566 * include/efi/api.h (efi_call_0): New macro.
42567 (efi_call_1): Likewise.
42568 (efi_call_2): Likewise.
42569 (efi_call_3): Likewise.
42570 (efi_call_4): Likewise.
42571 (efi_call_5): Likewise.
42572 (efi_call_6): Likewise.
42573
42574 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
42575 grub_rescue_cmd_chainloader.
42576
42577 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
42578 (grub_pe32_optional_header): Change some fields based on i386 or
42579 x86_64 platform.
42580 (GRUB_PE32_PE32_MAGIC): Likewise.
42581
42582 * include/grub/efi/uga_draw.h: New file.
42583
42584 * include/grub/elf.h (STN_ABS): New constant.
42585 (R_X86_64_NONE): Relocation constant for x86_64.
42586 (R_X86_64_64): Likewise.
42587 (R_X86_64_PC32): Likewise.
42588 (R_X86_64_GOT32): Likewise.
42589 (R_X86_64_PLT32): Likewise.
42590 (R_X86_64_COPY): Likewise.
42591 (R_X86_64_GLOB_DAT): Likewise.
42592 (R_X86_64_JUMP_SLOT): Likewise.
42593 (R_X86_64_RELATIVE): Likewise.
42594 (R_X86_64_GOTPCREL): Likewise.
42595 (R_X86_64_32): Likewise.
42596 (R_X86_64_32S): Likewise.
42597 (R_X86_64_16): Likewise.
42598 (R_X86_64_PC16): Likewise.
42599 (R_X86_64_8): Likewise.
42600 (R_X86_64_PC8): Likewise.
42601
42602 * include/grub/i386/efi/pci.h: New file.
42603
42604 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
42605 Change it value based on platform.
42606 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
42607 (GRUB_E820_RAM): Likewise.
42608 (GRUB_E820_RESERVED): Likewise.
42609 (GRUB_E820_ACPI): Likewise.
42610 (GRUB_E820_NVS): Likewise.
42611 (GRUB_E820_EXEC_CODE): Likewise.
42612 (GRUB_E820_MAX_ENTRY): Likewise.
42613 (grub_e820_mmap): New structure.
42614 (linux_kernel_header): Change the efi field according to different
42615 kernel version, also field from linux_kernel_header.
42616
42617 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
42618
42619 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
42620 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
42621 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
42622 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
42623 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
42624 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
42625 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
42626 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
42627 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
42628 (GRUB_PCI_ADDR_IO_MASK): Likewise.
42629
42630 * include/grub/x86_64/efi/kernel.h: New file.
42631
42632 * include/grub/x86_64/efi/loader.h: Likewise.
42633
42634 * include/grub/x86_64/efi/machine.h: Likewise.
42635
42636 * include/grub/x86_64/efi/pci.h: Likewise.
42637
42638 * include/grub/x86_64/efi/time.h: Likewise.
42639
42640 * include/grub/x86_64/linux.h: Likewise.
42641
42642 * include/grub/x86_64/setjmp.h: Likewise.
42643
42644 * include/grub/x86_64/time.h: Likewise.
42645
42646 * include/grub/x86_64/types.h: Likewise.
42647
42648 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
42649 GRUB_TARGET_SIZEOF_VOID_P.
42650
42651 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
42652 (grub_efi_locate_handle): Likewise.
42653 (grub_efi_open_protocol): Likewise.
42654 (grub_efi_set_text_mode): Likewise.
42655 (grub_efi_stall): Likewise.
42656 (grub_exit): Likewise.
42657 (grub_reboot): Likewise.
42658 (grub_halt): Likewise.
42659 (grub_efi_exit_boot_services): Likewise.
42660 (grub_get_rtc): Likewise.
42661
42662 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
42663 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
42664 (grub_efi_allocate_pages): Wrap efi calls.
42665 (grub_efi_free_pages): Wrap efi calls.
42666 (grub_efi_get_memory_map): Wrap efi calls.
42667
42668 * kern/x86_64/dl.c: New file.
42669
42670 * kern/x86_64/efi/callwrap.S: Likewise.
42671
42672 * kern/x86_64/efi/startup.S: Likewise.
42673
42674 * loader/efi/appleloader.c: Likewise.
42675
42676 * loader/efi/chainloader.c (cmdline): New variable.
42677 (grub_chainloader_unload): Wrap efi calls.
42678 (grub_chainloader_boot): Likewise.
42679 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
42680 command line.
42681
42682 * loader/efi/chainloader_normal.c (chainloader_command):
42683 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
42684 command line.
42685
42686 * loader/i386/efi/linux.c (allocate_pages): Change allocation
42687 method.
42688 (grub_e820_add_region): New function.
42689 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
42690 booting.
42691 (grub_find_video_card): New function.
42692 (grub_linux_setup_video): New function.
42693 (grub_rescue_cmd_linux): Probe for video information.
42694
42695 * normal/x86_64/setjmp.S: New file.
42696
42697 * term/efi/console.c (map_char): New function.
42698 (grub_console_putchar): Map unicode char.
42699 (grub_console_checkkey): Wrap efi calls.
42700 (grub_console_getkey): Likewise.
42701 (grub_console_getwh): Likewise.
42702 (grub_console_gotoxy): Likewise.
42703 (grub_console_cls): Likewise.
42704 (grub_console_setcolorstate): Likewise.
42705 (grub_console_setcursor): Likewise.
42706
42707 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
42708
42709 2008-07-16 Pavel Roskin <proski@gnu.org>
42710
42711 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
42712 format strings.
42713
42714 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
42715 pointer, not an integer. This fixes a warning and prevents
42716 precision loss on 64-bit systems.
42717 (relocate_addresses): Remove unneeded cast.
42718
42719 2008-07-15 Pavel Roskin <proski@gnu.org>
42720
42721 * kern/i386/ieee1275/init.c: Include grub/cache.h.
42722
42723 * term/ieee1275/ofconsole.c: Disable code unused on i386.
42724
42725 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
42726 Fix comparison between signed and unsigned.
42727
42728 * include/grub/i386/ieee1275/console.h: Declare
42729 grub_console_init() and grub_console_fini().
42730
42731 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
42732 It's empty and unused.
42733
42734 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
42735 beginning to avoid warnings with some compilers.
42736
42737 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
42738 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
42739
42740 2008-07-14 Pavel Roskin <proski@gnu.org>
42741
42742 * kern/env.c (grub_register_variable_hook): Don't copy empty
42743 string, it leaks memory. Pass "" to grub_env_set(), it should
42744 handle constant strings.
42745
42746 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
42747 * commands/cmp.c (grub_cmd_cmp): Likewise.
42748 * kern/dl.c (grub_dl_flush_cache): Likewise.
42749 (grub_dl_load_core): Likewise.
42750 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
42751 (grub_elf64_load_phdrs): Likewise.
42752
42753 2008-07-13 Pavel Roskin <proski@gnu.org>
42754
42755 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
42756 between signed and unsigned.
42757 (LzmaEnc_Finish): Fix warning about an unused parameter.
42758
42759 2008-07-13 Bean <bean123ch@gmail.com>
42760
42761 * Makefile.in (enable_lzo): New rule.
42762
42763 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
42764
42765 * configure.ac (ENABLE_LZO): New option --enable-lzo.
42766
42767 * boot/i386/pc/lnxboot.S: #include <config.h>.
42768
42769 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
42770 its value according to the compression algorithm used, lzo or lzma.
42771
42772 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
42773 compression algorithm according to configure macro.
42774
42775 * kern/i386/pc/startup.S (codestart): Likewise.
42776
42777 * kern/i386/pc/lzma_decode.S: New file.
42778
42779 * include/grub/lib/LzFind.h: Likewise.
42780
42781 * include/grub/lib/LzHash.h: Likewise.
42782
42783 * include/grub/lib/LzmaDec.h: Likewise.
42784
42785 * include/grub/lib/LzmaEnc.h: Likewise.
42786
42787 * include/grub/lib/LzmaTypes.h: Likewise.
42788
42789 * lib/LzFind.c: Likewise.
42790
42791 * lib/LzmaDec.c: Likewise.
42792
42793 * lib/LzmaEnc.c: Likewise.
42794
42795 2008-07-13 Bean <bean123ch@gmail.com>
42796
42797 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
42798 (grub_ext4_extent_header): New structure.
42799 (grub_ext4_extent): Likewise.
42800 (grub_ext4_extent_idx): Likewise.
42801 (grub_ext4_find_leaf): New function.
42802 (grub_ext2_read_block): Handle extents.
42803
42804 2008-07-12 Robert Millan <rmh@aybabtu.com>
42805
42806 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
42807
42808 2008-07-11 Robert Millan <rmh@aybabtu.com>
42809
42810 * util/grub.d/40_custom.in: New file. Example on how to add custom
42811 entries to /etc/grub.d.
42812 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
42813 40_custom (implicitly, by merging all the grub.d rules).
42814
42815 2008-07-11 Pavel Roskin <proski@gnu.org>
42816
42817 * commands/read.c (grub_getline): Fix invalid memory access.
42818 Don't add newline to the variable value.
42819
42820 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
42821 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
42822 (serial_hw_get_port): Check validity of the port number.
42823 (grub_cmd_serial): Check return value of serial_hw_get_port().
42824
42825 2008-07-07 Pavel Roskin <proski@gnu.org>
42826
42827 * boot/i386/pc/diskboot.S (notification_string): Replace
42828 "Loading kernel" with just "loading". This is shorter, less
42829 confusing and saves a few bytes for possible future changes.
42830
42831 2008-07-05 Pavel Roskin <proski@gnu.org>
42832
42833 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
42834 size for ATAPI devices, they are undefined. Output sector
42835 number in decimal form.
42836
42837 * disk/ata.c: Use named constants for status bits.
42838
42839 2008-07-04 Pavel Roskin <proski@gnu.org>
42840
42841 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
42842 grub_addr_t before casting it to the void pointer to fix a
42843 warning. Non-addressable regions are discarded earlier.
42844 (grub_arch_modules_addr): Cast _end to grub_addr_t.
42845 * kern/i386/linuxbios/table.c: Include grub/misc.h.
42846 (check_signature): Don't shadow table_header.
42847 (grub_linuxbios_table_iterate): Cast numeric constants to
42848 grub_linuxbios_table_header_t.
42849 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
42850 grub_stop().
42851
42852 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
42853 prevent warnings.
42854
42855 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
42856 pointer, which can cause warnings. Support 64-bit addresses.
42857
42858 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
42859 of sizeof(long). This fixes PowerPC image generation on x86_64.
42860
42861 2008-07-04 Robert Millan <rmh@aybabtu.com>
42862
42863 This fixes a performance issue when pc & gpt partmap iterators
42864 didn't abort iteration even after our hook found what it was
42865 looking for (often causing expensive probes of non-existent drives).
42866
42867 Some callers relied on previous buggy behaviour, since they would
42868 raise an error when their own hooks caused early abortion of its
42869 iteration.
42870
42871 * kern/device.c (grub_device_open): Improve error message.
42872 * disk/lvm.c (grub_lvm_open): Likewise.
42873 * disk/raid.c (grub_raid_open): Likewise.
42874
42875 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
42876 when hook requests it, independently of grub_errno.
42877 (pc_partition_map_probe): Do not fail when find_func() caused
42878 early abortion of pc_partition_map_iterate().
42879
42880 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
42881 when hook requests it, independently of grub_errno.
42882 (gpt_partition_map_probe): Do not fail when find_func() caused
42883 early abortion of gpt_partition_map_iterate().
42884
42885 * kern/partition.c (grub_partition_iterate): Abort parent iteration
42886 when hook requests it, independently of grub_errno. Do not fail when
42887 part_map_iterate_hook() caused early abortion of p->iterate().
42888
42889 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
42890 when grub_partition_iterate() returned with non-zero.
42891
42892 2008-07-03 Pavel Roskin <proski@gnu.org>
42893
42894 * disk/ata.c (grub_ata_pio_write): Check status before writing,
42895 like we do in grub_ata_pio_read().
42896 (grub_ata_readwrite): Always write individual sectors. Fix the
42897 sector count for the remainder.
42898 (grub_ata_write): Enable writing to ATA devices. Correctly
42899 report error for ATAPI devices.
42900
42901 2008-07-02 Pavel Roskin <proski@gnu.org>
42902
42903 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
42904 warning.
42905
42906 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
42907 for every read sector, we already increment it for the whole
42908 batch. This fixes reading more than 256 sectors at once.
42909
42910 * util/grub-editenv.c (cmd_info): Cast argument to long
42911 explicitly. ptrdiff_t reduces to int on i386.
42912
42913 * util/grub-editenv.c (main): Be specific which parameter is
42914 missing.
42915
42916 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
42917 (memdisk): Make memdisk_orig_addr a pointer.
42918
42919 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
42920 for file offsets, use grub_off_t instead. Fix printf format
42921 warnings.
42922
42923 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
42924 there. Real unexpected warnings should not drown in the noise
42925 about known problems.
42926
42927 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
42928 grub_disk_addr_t for memory addresses.
42929
42930 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
42931 explicitly to fix a warning.
42932
42933 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
42934
42935 * Makefile.in (MODULE_LDFLAGS): New variable.
42936 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
42937 the linker accepts --build-id=none.
42938 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
42939 MODULE_LDFLAGS.
42940 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
42941
42942 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
42943 those in Linux XFS code. Provide a way to access 64-bit parent
42944 inode.
42945 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
42946 the end of struct grub_xfs_dir_header.
42947
42948 2008-07-02 Bean <bean123ch@gmail.com>
42949
42950 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
42951 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
42952 and GRUB_IEEE1275_FLAG_NO_ANSI.
42953
42954 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
42955 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
42956 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
42957
42958 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
42959 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
42960
42961 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
42962 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
42963
42964 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
42965 esc sequence on non ANSI terminal.
42966 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
42967
42968 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
42969 beginning of file.
42970
42971 2008-07-02 Bean <bean123ch@gmail.com>
42972
42973 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
42974 (grub_editenv_SOURCES): New variable.
42975 (pkglib_MODULES): Add loadenv.mod.
42976 (loadenv_mod_SOURCES): New variable.
42977 (loadenv_mod_CFLAGS): Likewise.
42978 (loadenv_mod_LDFLAGS): Likewise.
42979
42980 * include/grub/envblk.h: New file.
42981
42982 * util/envblk.c: New file.
42983
42984 * util/grub-editenv.c: New file.
42985
42986 * commands/loadenv.c: New file.
42987
42988 2008-07-01 Pavel Roskin <proski@gnu.org>
42989
42990 * include/multiboot2.h (struct multiboot_tag_module): Use char,
42991 not unsigned char. This fixes warnings and is consistent with
42992 other tags.
42993
42994 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
42995
42996 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
42997
42998 * term/tparm.c (analyze): Always set *popcount.
42999
43000 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
43001 cast to fix a warning.
43002
43003 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
43004 cast to suppress a warning.
43005
43006 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
43007 grub_fshelp_read_file() expects.
43008
43009 * fs/fat.c: Fix UUID calculation on big-endian systems. We
43010 write uuid as a 32-bit value in CPU byte order, so declare and
43011 use it as such.
43012
43013 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
43014 long if the format specifier expects it.
43015 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
43016 * partmap/pc.c (pc_partition_map_iterate): Likewise.
43017 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
43018 long to fix a warning.
43019 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
43020 grub_dprintf() arguments to fix warnings.
43021
43022 2008-06-30 Pavel Roskin <proski@gnu.org>
43023
43024 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
43025 install_bsd_part immediately before core.img is embedded or
43026 modified on disk. This fixes core.img verification if core.img
43027 cannot be embedded.
43028
43029 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
43030 core_path to calculate the blocklist.
43031 Patch from Javier Martín <lordhabbit@gmail.com>
43032
43033 2008-06-29 Robert Millan <rmh@aybabtu.com>
43034
43035 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
43036 block to disk block.
43037 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
43038 Patch from Niels Böhm <bitbucket@arcor.de>
43039
43040 2008-06-29 Robert Millan <rmh@aybabtu.com>
43041
43042 * util/update-grub_lib.in (font_path): Search for fonts in
43043 /boot/grub first, which is more likely to be readable (we aren't
43044 deciding where fonts live, just looking for them).
43045
43046 2008-06-26 Pavel Roskin <proski@gnu.org>
43047
43048 * util/biosdisk.c (read_device_map): Don't leave dead map
43049 entries for devices failing stat() check.
43050
43051 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
43052 core_path_dev for the core.img path on the target device.
43053
43054 2008-06-26 Robert Millan <rmh@aybabtu.com>
43055
43056 * disk/fs_uuid.c: New file.
43057 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
43058 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
43059 (fs_uuid_mod_LDFLAGS): New variables.
43060 * include/grub/disk.h (grub_disk_dev_id): Add
43061 `GRUB_DISK_DEVICE_UUID_ID'.
43062 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
43063 implement iterate().
43064
43065 2008-06-26 Robert Millan <rmh@aybabtu.com>
43066
43067 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
43068 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
43069 Linux image includes no initrd.
43070
43071 2008-06-21 Javier Martín <lordhabbit@gmail.com>
43072
43073 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
43074 call to resolve the core image location that effectively appended the
43075 name twice.
43076
43077 2008-06-21 Robert Millan <rmh@aybabtu.com>
43078
43079 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
43080 call from here ...
43081
43082 * util/grub.d/10_hurd.in: ... to here ...
43083 * util/grub.d/10_linux.in: ... and here.
43084
43085 2008-06-19 Robert Millan <rmh@aybabtu.com>
43086
43087 * kern/main.c (grub_main): Export `prefix' variable immediately
43088 after it has been set by grub_machine_set_prefix().
43089
43090 2008-06-19 Robert Millan <rmh@aybabtu.com>
43091
43092 * commands/search.c (search_label, search_fs_uuid, search_file): Print
43093 search result when not saving to variable, not the other way around.
43094 When saving to variable, abort iteration as soon as a match is found.
43095
43096 2008-06-19 Robert Millan <rmh@aybabtu.com>
43097
43098 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
43099 check for partition that provides /boot/grub. Its logic is flawed,
43100 as it prevents prepare_grub_to_access_device() from being called
43101 multiple times.
43102
43103 2008-06-19 Robert Millan <rmh@aybabtu.com>
43104
43105 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
43106 "insmod" command directly when abstraction modules are needed,
43107 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
43108 since it had already been processed).
43109
43110 2008-06-19 Pavel Roskin <proski@gnu.org>
43111
43112 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
43113 changed. This is needed in case GRUB_LIBDIR changes.
43114 * conf/i386-ieee1275.rmk: Likewise.
43115 * conf/i386-linuxbios.rmk: Likewise.
43116 * conf/i386-pc.rmk: Likewise.
43117 * conf/powerpc-ieee1275.rmk: Likewise.
43118
43119 2008-06-18 Pavel Roskin <proski@gnu.org>
43120
43121 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
43122 kernel_elf_symlist.c to symlist.c for consistency with other
43123 architectures. Update all users.
43124 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43125
43126 2008-06-18 Robert Millan <rmh@aybabtu.com>
43127
43128 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
43129 it in prefix.
43130
43131 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
43132 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
43133 a RAID device, run setup() for all members independently on whether
43134 LVM abstraction is being used.
43135 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
43136 If grub-mkimage has set `*install_dos_part == -2', don't override this
43137 value.
43138 Perform *install_dos_part adjustments independently on whether
43139 we're embedding or not.
43140 Clarify error message when image is too big for embedding.
43141 Remove duplicate *install_dos_part stanza.
43142
43143 2008-06-17 Robert Millan <rmh@aybabtu.com>
43144
43145 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
43146 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
43147 variables.
43148 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
43149 values in grub_ofconsole_normal_color and
43150 grub_ofconsole_highlight_color (they're not directly related to
43151 background and foreground).
43152 (grub_ofconsole_setcolorstate): Extract background and foreground
43153 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
43154
43155 2008-06-17 Robert Millan <rmh@aybabtu.com>
43156
43157 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
43158 /boot/grub for the check in last commit, not /boot (they could be
43159 different partitions).
43160
43161 2008-06-16 Robert Millan <rmh@aybabtu.com>
43162
43163 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
43164 asked to setup access for the same partition that provides /boot,
43165 don't bother using UUIDs since our root already has the value we
43166 want.
43167
43168 2008-06-16 Robert Millan <rmh@aybabtu.com>
43169
43170 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
43171 I2O devices.
43172 Patch from Sven Mueller <sven@debian.org>.
43173
43174 2008-06-16 Robert Millan <rmh@aybabtu.com>
43175
43176 * util/update-grub.in: Check for $EUID instead of $UID.
43177 Reported by Vincent Zweije.
43178
43179 2008-06-16 Bean <bean123ch@gmail.com>
43180
43181 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
43182 (grub_ext2_read_block): Likewise.
43183 (grub_ext2_read_inode): Likewise.
43184 (grub_ext2_mount): Likewise.
43185 (grub_ext2_close): Likewise.
43186 (grub_ext3_get_journal): Removed.
43187
43188 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
43189 (grub_reiserfs_read_symlink): Likewise.
43190 (grub_reiserfs_mount): Likewise.
43191 (grub_reiserfs_open): Likewise.
43192 (grub_reiserfs_read): Likewise.
43193 (grub_reiserfs_close): Likewise.
43194 (grub_reiserfs_get_journal): Removed.
43195
43196 * fs/fshelp.c (grub_fshelp_read): Removed.
43197 (grub_fshelp_map_block): Likewise.
43198
43199 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
43200 (grub_fshelp_journal): Likewise.
43201 (grub_fshelp_read): Likewise.
43202 (grub_fshelp_map_block): Likewise.
43203
43204 2008-06-16 Pavel Roskin <proski@gnu.org>
43205
43206 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
43207 floating point anymore.
43208 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
43209
43210 2008-06-15 Pavel Roskin <proski@gnu.org>
43211
43212 * commands/ls.c (grub_ls_list_files): Use integer calculations
43213 for human readable format, avoid floating point use.
43214 * kern/misc.c (grub_ftoa): Remove.
43215 (grub_vsprintf): Remove floating point support.
43216
43217 2008-06-15 Robert Millan <rmh@aybabtu.com>
43218
43219 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
43220 devices.
43221 Reported by Max Vozeler.
43222
43223 2008-06-15 Robert Millan <rmh@aybabtu.com>
43224
43225 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
43226 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
43227 skipped later.
43228 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
43229 the beginning of the prefix.
43230
43231 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
43232 It is assumed that if we have a memdisk, grub-mkimage has set
43233 grub_prefix to include the "(memdisk)" drive in it.
43234
43235 2008-06-15 Robert Millan <rmh@aybabtu.com>
43236
43237 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
43238 Initialize keyboard controller after registering the terminal, so that
43239 grub_printf() can be called from grub_keyboard_controller_init().
43240
43241 2008-06-15 Robert Millan <rmh@aybabtu.com>
43242
43243 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
43244 extent-btree which is written as big endian on disk.
43245 Reported by Alain Greppin <al@chilibi.org>.
43246
43247 2008-06-14 Robert Millan <rmh@aybabtu.com>
43248
43249 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
43250 * util/i386/pc/grub-install.in (modules): Likewise.
43251
43252 2008-06-13 Pavel Roskin <proski@gnu.org>
43253
43254 * commands/ls.c (grub_ls_list_files): Fix format warnings.
43255
43256 2008-06-13 Bean <bean123ch@gmail.com>
43257
43258 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
43259
43260 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
43261
43262 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
43263 to indicate sparse block.
43264
43265 2008-06-12 Pavel Roskin <proski@gnu.org>
43266
43267 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
43268 number, grub_fshelp_read() does it for us.
43269
43270 * fs/fshelp.c (grub_fshelp_read): New function. Implement
43271 linear disk read with journal translation.
43272 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
43273 * include/grub/fshelp.h: Declare grub_fshelp_read().
43274
43275 2008-06-09 Pavel Roskin <proski@gnu.org>
43276
43277 * fs/minix.c (grub_minix_mount): Handle error reading
43278 superblock.
43279
43280 2008-06-08 Robert Millan <rmh@aybabtu.com>
43281
43282 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
43283 don't append the RAID prefix afterwards.
43284 Reported by Clint Adams.
43285
43286 2008-06-08 Robert Millan <rmh@aybabtu.com>
43287
43288 Based on description from Pavel:
43289 * kern/disk.c (grub_disk_check_range): Rename to ...
43290 (grub_disk_adjust_range): ... this. Add a comment explaining the
43291 tasks performed by this function.
43292
43293 2008-06-08 Robert Millan <rmh@aybabtu.com>
43294
43295 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
43296 `num_serial' (for consistency with other variables).
43297 (struct grub_ntfs_data): Add `uuid' member.
43298 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
43299 (grub_ntfs_uuid): New function.
43300 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
43301
43302 2008-06-07 Pavel Roskin <proski@gnu.org>
43303
43304 * util/biosdisk.c (open_device): Revert last change to the
43305 function, it broke installation. The sector needs to be
43306 different dependent on which device is opened.
43307
43308 2008-06-06 Robert Millan <rmh@aybabtu.com>
43309
43310 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
43311 rest of GRUB, and breakage doesn't happen if its value were modified.
43312
43313 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
43314 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
43315 a constant (same value).
43316 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
43317 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
43318
43319 2008-06-06 Robert Millan <rmh@aybabtu.com>
43320
43321 * util/biosdisk.c (open_device): Do not modify sector offset when
43322 accessing a partition. kern/disk.c already handles this for us.
43323
43324 2008-06-06 Robert Millan <rmh@aybabtu.com>
43325
43326 * util/grub-emu.c (grub_machine_init): Move code in this function from
43327 here ...
43328 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
43329 segfault in case grub_printf() is called).
43330
43331 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
43332 grub_probe. Update all users not to explicitly add it again.
43333 (grub_device): New variable; contains corresponding device for grubdir.
43334 (fs_module, partmap_module, devabstraction_module): Pass
43335 `--device ${grub_device}' to grub_probe to avoid traversing /dev
43336 every time.
43337
43338 2008-06-05 Robert Millan <rmh@aybabtu.com>
43339
43340 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
43341 is found, print it (same layout as with labels).
43342
43343 2008-06-04 Robert Millan <rmh@aybabtu.com>
43344
43345 * util/biosdisk.c (get_drive): Rename to ...
43346 (find_grub_drive): ... this. Update all users.
43347
43348 (get_os_disk): Rename to ...
43349 (convert_system_partition_to_system_disk): ... this. Update all users.
43350
43351 (find_drive): Rename to ...
43352 (find_system_device): ... this. Update all users.
43353
43354 2008-06-04 Robert Millan <rmh@aybabtu.com>
43355
43356 * util/biosdisk.c (get_os_disk): Handle IDA devices.
43357 * util/grub-mkdevicemap.c (get_mmc_disk_name)
43358 (make_device_map): Likewise.
43359
43360 2008-06-01 Robert Millan <rmh@aybabtu.com>
43361
43362 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
43363 before dereferencing it.
43364
43365 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
43366 union with fat12/fat16-specific ones. Add some new fields, including
43367 `num_serial' for both versions.
43368 (struct grub_fat_data): Add `uuid' member.
43369 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
43370 names. Initialize `data->uuid' using `num_serial'.
43371 (grub_fat_uuid): New function.
43372 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
43373
43374 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
43375 (grub_reiserfs_uuid): New function.
43376 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
43377 member.
43378
43379 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
43380 (grub_xfs_uuid): New function.
43381 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
43382
43383 2008-06-01 Robert Millan <rmh@aybabtu.com>
43384
43385 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
43386 code that is backward compatible with pre-uuid search command.
43387
43388 2008-05-31 Robert Millan <rmh@aybabtu.com>
43389
43390 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
43391 floppies after everything else, to ensure floppy drive isn't accessed
43392 unnecessarily (patch from Bean).
43393
43394 2008-05-31 Robert Millan <rmh@aybabtu.com>
43395
43396 * commands/search.c (search_label, search_fs_uuid, search_file): Do
43397 not print device names when we were asked to set a variable.
43398
43399 2008-05-31 Robert Millan <rmh@aybabtu.com>
43400
43401 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
43402 using "cursor-on" and "cursor-off" commands (understood at least by
43403 the Open Firmware flavour on OLPC).
43404
43405 2008-05-31 Michael Gorven <michael@gorven.za.net>
43406
43407 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
43408 on and off sequences.
43409
43410 2008-05-31 Robert Millan <rmh@aybabtu.com>
43411
43412 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
43413 * util/update-grub.in: Likewise.
43414
43415 2008-05-30 Pavel Roskin <proski@gnu.org>
43416
43417 * util/biosdisk.c (linux_find_partition): Simplify logic and
43418 make the code more universal. Keep special processing for
43419 devfs, but use a simple rule for all other devices. If the
43420 device ends with a number, append 'p' and the partition number.
43421 Otherwise, append only the partition number.
43422
43423 2008-05-30 Robert Millan <rmh@aybabtu.com>
43424
43425 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
43426 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
43427 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
43428 the `root' parameter to Linux.
43429
43430 2008-05-30 Robert Millan <rmh@aybabtu.com>
43431
43432 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
43433 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
43434 --fs_uuid with --fs-uuid.
43435 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
43436 all filesystems support them).
43437
43438 2008-05-30 Robert Millan <rmh@aybabtu.com>
43439
43440 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
43441 grub_printf() flags, since we're printing in units of 2 bytes.
43442
43443 2008-05-30 Robert Millan <rmh@aybabtu.com>
43444
43445 * util/grub.d/00_header.in: Remove obsolete comment referencing
43446 convert_system_path_to_grub_path().
43447 * util/update-grub.in: Likewise.
43448 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
43449 (convert_system_path_to_grub_path): Add a warning message explaining
43450 that this function is deprecated. Rely on is_path_readable_by_grub()
43451 for the readability checks.
43452 (font_path): Use is_path_readable_by_grub() for the readability
43453 check rather than convert_system_path_to_grub_path().
43454
43455 2008-05-30 Robert Millan <rmh@aybabtu.com>
43456
43457 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
43458 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
43459 converting it first.
43460 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
43461 grub.cfg for access to font file, and afterwards call it again to set
43462 the root device.
43463
43464 2008-05-30 Robert Millan <rmh@aybabtu.com>
43465
43466 * commands/search.c (options): Add --fs_uuid option.
43467 (search_fs_uuid): New function.
43468 (grub_cmd_search): Fix --set argument passing.
43469 Use search_fs_uuid() when requested via --fs_uuid.
43470 (grub_search_init): Update help message.
43471 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
43472 and redeclare it as an array of 16-bit words.
43473 (grub_ext2_uuid): New function.
43474 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
43475 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
43476 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
43477 (GRUB_DEVICE_BOOT_UUID): New variables.
43478 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
43479 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
43480 whenever possible.
43481 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
43482 just assume `root' variable has the right value.
43483 * util/grub.d/10_linux.in: Likewise.
43484 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
43485 via PRINT_FS_UUID.
43486 (main): Recognise `-t fs_uuid' argument.
43487
43488 2008-05-30 Robert Millan <rmh@aybabtu.com>
43489
43490 * util/biosdisk.c (map): Redefine structure to hold information
43491 about GRUB drive name.
43492 (get_drive): Reimplement without assuming (and verifying) BIOS-like
43493 drive names.
43494 (call_hook): Remove.
43495 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
43496 member. Assume drive has partitions.
43497 (grub_util_biosdisk_open): Access device names via `.device' struct
43498 member.
43499 (open_device): Likewise.
43500 (find_drive): Likewise.
43501 (read_device_map): Adjust map[] usage to match the new struct
43502 definition. Don't check for duplicates (still possible, but not cheap
43503 anymore).
43504 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
43505 (make_device_name): Remove assumption of BIOS-like drive names.
43506
43507 2008-05-30 Pavel Roskin <proski@gnu.org>
43508
43509 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
43510 compiling execute.c doesn't need grub_script.tab.h anymore.
43511 (normal/command.c_DEPENDENCIES): Likewise.
43512 (normal/function.c_DEPENDENCIES): Likewise.
43513 * conf/i386-ieee1275.rmk: Likewise.
43514 * conf/i386-linuxbios.rmk: Likewise.
43515 * conf/i386-pc.rmk: Likewise.
43516 * conf/powerpc-ieee1275.rmk: Likewise.
43517 * conf/sparc64-ieee1275.rmk: Likewise.
43518
43519 2008-05-29 Pavel Roskin <proski@gnu.org>
43520
43521 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
43522 when scanning metadata for volume group name.
43523
43524 * include/grub/script.h: Don't include grub_script.tab.h. It's
43525 a generated file, which may only be included from the files with
43526 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
43527 use union YYSTYPE, as the later allows forward declaration.
43528 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
43529
43530 2008-05-29 Robert Millan <rmh@aybabtu.com>
43531
43532 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
43533 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
43534 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
43535 (grub_console_checkkey): Add grub_dprintf() call to report unknown
43536 scan codes.
43537
43538 2008-05-29 Robert Millan <rmh@aybabtu.com>
43539
43540 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
43541 control key combinations.
43542
43543 2008-05-29 Robert Millan <rmh@aybabtu.com>
43544
43545 * util/powerpc/ieee1275/grub-install.in: Move from here ...
43546 * util/ieee1275/grub-install.in: ... to here.
43547 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
43548 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
43549 (grub_install_SOURCES): Likewise.
43550
43551 2008-05-29 Robert Millan <rmh@aybabtu.com>
43552
43553 * fs/affs.c: Update copyright year.
43554 * fs/ext2.c: Likewise.
43555 * fs/fshelp.c: Likewise.
43556 * fs/hfsplus.c: Likewise.
43557 * fs/ntfs.c: Likewise.
43558 * fs/xfs.c: Likewise.
43559 * include/grub/fshelp.h: Likewise.
43560 * util/grub-mkdevicemap.c: Likewise.
43561
43562 2008-05-28 Robert Millan <rmh@aybabtu.com>
43563
43564 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
43565 might need to be fatfs to support some firmware implementations
43566 (e.g. OFW or EFI).
43567
43568 2008-05-28 Robert Millan <rmh@aybabtu.com>
43569
43570 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
43571 devices.
43572 * util/grub-mkdevicemap.c (get_mmc_disk_name)
43573 (make_device_map): Likewise.
43574
43575 2008-05-20 Bean <bean123ch@gmail.com>
43576
43577 * fs/fshelp.c (grub_fshelp_map_block): New function.
43578 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
43579 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
43580
43581 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
43582 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
43583 (grub_fshelp_journal): New structure.
43584 (grub_fshelp_map_block): New function prototype.
43585 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
43586 (grub_fshelp_map_block): Likewise.
43587
43588 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
43589 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
43590 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
43591 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
43592 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
43593 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
43594 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
43595 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
43596 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
43597 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
43598 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
43599 (grub_ext2_sblock): New members for journal support.
43600 (grub_ext3_journal_header): New structure.
43601 (grub_ext3_journal_revoke_header): Likewise.
43602 (grub_ext3_journal_block_tag): Likewise.
43603 (grub_ext3_journal_sblock): Likewise.
43604 (grub_fshelp_node): New members logfile and journal.
43605 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
43606 grub_fshelp_map_block to get real block number.
43607 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
43608 number.
43609 (grub_ext2_read_inode): Likewise.
43610 (grub_ext3_get_journal): New function.
43611 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
43612 (grub_ext2_close): Release memory used by journal.
43613
43614 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
43615 (REISERFS_MAGIC_DESC_BLOCK): New macro.
43616 (grub_reiserfs_transaction_header): Renamed to
43617 grub_reiserfs_description_block, replace field data with real_blocks.
43618 (grub_reiserfs_commit_block): New structure.
43619 (grub_reiserfs_data): New member journal.
43620 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
43621 number.
43622 (grub_reiserfs_read_symlink): Likewise.
43623 (grub_reiserfs_iterate_dir): Likewise.
43624 (grub_reiserfs_open): Likewise.
43625 (grub_reiserfs_read): Likewise.
43626 (grub_reiserfs_get_journal): New function.
43627 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
43628 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
43629 using grub_reiserfs_get_journal.
43630 (grub_reiserfs_close): Release memory used by journal.
43631
43632 * fs/affs.c (grub_affs_read_block): Change block type to
43633 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
43634
43635 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
43636
43637 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
43638
43639 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
43640
43641 * fs/udf.c (grub_udf_read_block): Change block type to
43642 grub_disk_addr_t. Use type cast to avoid warning.
43643
43644 * fs/xfs.c (grub_xfs_read_block): Likewise.
43645
43646 2008-05-16 Christian Franke <franke@computer.org>
43647
43648 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
43649 to ensure that break with ESC will always work.
43650 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
43651 Remove ESC from keyboard queue.
43652
43653 2008-05-16 Christian Franke <franke@computer.org>
43654
43655 * util/biosdisk.c: [__CYGWIN__] Add includes.
43656 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
43657 (get_os_disk): Move variable declarations to OS specific
43658 parts to avoid warning.
43659 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
43660 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
43661 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
43662 Cygwin.
43663 * util/getroot.c: [__CYGWIN__] Add includes.
43664 (strip_extra_slashes): Fix "/" case.
43665 [__CYGWIN__] (get_win32_path): New function.
43666 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
43667 [__CYGWIN__] (find_root_device): Disable.
43668 [__CYGWIN__] (get_bootsec_serial): New function.
43669 [__CYGWIN__] (find_cygwin_root_device): Likewise.
43670 [__linux__] (grub_guess_root_device): Add early returns to simplify
43671 structure.
43672 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
43673 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
43674 check for Linux only.
43675
43676 2008-05-15 Bean <bean123ch@gmail.com>
43677
43678 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
43679 keyboard hang problem in apple's intel mac.
43680
43681 2008-05-09 Robert Millan <rmh@aybabtu.com>
43682
43683 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
43684 devices.
43685 * util/grub-mkdevicemap.c (get_virtio_disk_name)
43686 (make_device_map): Likewise.
43687 Reported by Aurelien Jarno <aurel32@debian.org>
43688
43689 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
43690
43691 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
43692 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
43693 (make_device_map): Output entries for xvd type disks.
43694
43695 2008-05-07 Robert Millan <rmh@aybabtu.com>
43696
43697 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
43698 devices.
43699 * util/grub-mkdevicemap.c (get_cciss_disk_name)
43700 (make_device_map): Likewise.
43701 Reported by Roland Dreier <rdreier@cisco.com>
43702
43703 2008-05-07 Robert Millan <rmh@aybabtu.com>
43704
43705 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
43706 grub_strstr() call. Correct a few mistakes in failure path handling.
43707
43708 2008-05-06 Robert Millan <rmh@aybabtu.com>
43709
43710 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
43711 Do not print a trailing slash (therefore, the root directory is an
43712 empty string).
43713 (convert_system_path_to_grub_path): Do not remove trailing slash
43714 from make_system_path_relative_to_its_root() output.
43715
43716 * util/i386/pc/grub-install.in: Add trailing slash to output from
43717 make_system_path_relative_to_its_root().
43718
43719 2008-05-06 Robert Millan <rmh@aybabtu.com>
43720
43721 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
43722 ensures that output lines aren't intermangled with those sent to
43723 stderr (via grub_util_info()).
43724 * util/grub-probe.c (grub_refresh): Likewise.
43725 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
43726
43727 2008-05-05 Christian Franke <franke@computer.org>
43728
43729 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
43730 Add Cygwin device names.
43731 (get_ide_disk_name) [__CYGWIN__]: Likewise.
43732 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
43733 (check_device): Return error instead of success on empty name.
43734 (make_device_map): Move label inside linux specific code to
43735 prevent compiler warning.
43736
43737 2008-04-30 Robert Millan <rmh@aybabtu.com>
43738
43739 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
43740 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
43741 first boot option.
43742 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
43743
43744 2008-04-29 Robert Millan <rmh@aybabtu.com>
43745
43746 * docs/grub.cfg: New file (example GRUB configuration).
43747
43748 2008-04-26 Robert Millan <rmh@aybabtu.com>
43749
43750 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
43751 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
43752 and `disk/ieee1275/nand.c'.
43753
43754 2008-04-25 Bean <bean123ch@gmail.com>
43755
43756 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
43757 i386-linuxbios.
43758
43759 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
43760 change the buffer size to 4096 for cdrom device.
43761
43762 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
43763 and nand.mod.
43764 (_linux_mod_SOURCES): New variable.
43765 (_linux_mod_CFLAGS): Likewise.
43766 (_linux_mod_LDFLAGS): Likewise.
43767 (linux_mod_SOURCES): Likewise.
43768 (linux_mod_CFLAGS): Likewise.
43769 (linux_mod_LDFLAGS): Likewise.
43770 (nand_mod_SOURCES): Likewise.
43771 (nand_mod_CFLAGS): Likewise.
43772 (nand_mod_LDFLAGS): Likewise.
43773
43774 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
43775 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
43776 type property. (nand device in olpc don't have this property)
43777
43778 * include/grub/disk.h (grub_disk_dev_id): New macro
43779 GRUB_DISK_DEVICE_NAND_ID.
43780
43781 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
43782 function prototype.
43783 (grub_rescue_cmd_initrd): Likewise.
43784
43785 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
43786 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
43787 ofw_cif_handler and ofw_idt, adjust padding number.
43788
43789 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
43790 GRUB_MACHINE_IEEE1275 is defined.
43791
43792 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
43793 Use NESTED_FUNC_ATTR attribute on the hook parameter.
43794
43795 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
43796 on nested function heap_init.
43797 (grub_upper_mem): New variable for i386-ieee1275.
43798 (grub_get_extended_memory): New function for i386-ieee1275.
43799 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
43800
43801 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
43802 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
43803 property.
43804
43805 * loader/i386/ieee1275/linux.c: New file.
43806
43807 * loader/i386/ieee1275/linux_normal.c: New file.
43808
43809 * disk/ieee1275/nand.c: New file.
43810
43811 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
43812
43813 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
43814 value.
43815 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
43816
43817 2008-04-18 Robert Millan <rmh@aybabtu.com>
43818
43819 Restructures early code path on ieee1275 to unify grub_main() as
43820 the first C function that is executed in every platform.
43821
43822 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
43823 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
43824 cmain().
43825 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
43826 * kern/ieee1275/cmain.c (cmain): Rename to ...
43827 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
43828 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
43829 at the beginning.
43830
43831 2008-04-18 Robert Millan <rmh@aybabtu.com>
43832
43833 * util/update-grub.in: Fix syntax error when setting
43834 `GRUB_PRELOAD_MODULES'.
43835 Reported by Stephane Chazelas <stephane@artesyncp.com>
43836
43837 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
43838
43839 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
43840 section into account, newer toolchains generate unique build ids
43841 * configure.ac: remove the test for --build-id=none acceptance,
43842 we want build ids to be preserved
43843 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
43844 far from other sections don't cause the raw binary images grow
43845 size
43846
43847 2008-04-15 Robert Millan <rmh@aybabtu.com>
43848
43849 * disk/lvm.c: Update copyright year.
43850 * kern/misc.c: Likewise.
43851
43852 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
43853
43854 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
43855 there is no memory left for physical volume name.
43856
43857 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
43858
43859 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
43860 volume name mapping to support bigger than 9 character names properly.
43861
43862 2008-04-13 Robert Millan <rmh@aybabtu.com>
43863
43864 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
43865 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
43866
43867 2008-04-13 Christian Franke <franke@computer.org>
43868
43869 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
43870 to create a floppy emulation boot CD when non emulation mode
43871 does not work.
43872 Enable Joliet CD filesystem extension.
43873
43874 2008-04-13 Robert Millan <rmh@aybabtu.com>
43875
43876 * kern/misc.c (grub_strncat): Fix off-by-one error.
43877 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
43878
43879 * kern/env.c (grub_env_context_close): Clear current context, not
43880 previous one.
43881 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
43882
43883 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
43884
43885 2008-04-13 Robert Millan <rmh@aybabtu.com>
43886
43887 Improve robustness when handling LVM.
43888
43889 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
43890 (and leave `*p' unmodified).
43891 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
43892 through it.
43893 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
43894 iterating through it.
43895 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
43896 through it.
43897 (grub_lvm_scan_device): Check the return value (and fail gracefully
43898 when due) on each grub_lvm_getvalue() or grub_strstr() call.
43899 Don't assume `vg->pvs != NULL' when iterating through it.
43900
43901 2008-04-13 Robert Millan <rmh@aybabtu.com>
43902
43903 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
43904 * genmk.rb (partmap): New variable.
43905 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
43906 (#{partmap}): New target rule.
43907 * genpartmaplist.sh: New file.
43908 * Makefile.in (pkglib_DATA): Add partmap.lst.
43909 (partmap.lst): New target rule.
43910 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
43911 modules (including all partition maps), instead of preloading them.
43912
43913 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
43914
43915 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
43916 `linux-boot-prober' (if installed) to detect other operating
43917 systems which are installed on the computer and add them to
43918 the boot menu.
43919 * conf/common.rmk: Build and install 30_os-prober.
43920
43921 2008-04-12 Robert Millan <rmh@aybabtu.com>
43922
43923 * kern/powerpc/ieee1275/init.c: Move from here ...
43924 * kern/ieee1275/init.c: ... to here. Update all users.
43925
43926 * kern/powerpc/ieee1275/cmain.c: Move from here ...
43927 * kern/ieee1275/cmain.c: ... to here. Update all users.
43928
43929 * kern/powerpc/ieee1275/openfw.c: Move from here ...
43930 * kern/ieee1275/openfw.c: ... to here. Update all users.
43931
43932 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
43933 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
43934
43935 2008-04-10 Pavel Roskin <proski@gnu.org>
43936
43937 * configure.ac: Always use "_cv_" in cache variables for
43938 compatibility with Autoconf 2.62.
43939
43940 2008-04-07 Robert Millan <rmh@aybabtu.com>
43941
43942 Revert grub/machine/init.h addition by Pavel (since it breaks on
43943 i386-ieee1275 and others):
43944 * util/i386/pc/misc.c: Remove grub/machine/init.h.
43945 * util/powerpc/ieee1275/misc.c: Likewise.
43946
43947 2008-04-07 Robert Millan <rmh@aybabtu.com>
43948
43949 * util/grub-probe.c (probe): Improve error message.
43950
43951 2008-04-07 Robert Millan <rmh@aybabtu.com>
43952
43953 * util/biosdisk.c (read_device_map): Skip devices that don't exist
43954 (this prevents the presence of a bogus entry from ruining the whole
43955 thing).
43956
43957 2008-04-06 Pavel Roskin <proski@gnu.org>
43958
43959 * util/biosdisk.c: Include grub/util/biosdisk.h.
43960 * util/grub-fstest.c (execute_command): Make static.
43961 * util/grub-mkdevicemap.c (check_device): Likewise.
43962 * util/i386/pc/misc.c: Include grub/machine/init.h.
43963 * util/powerpc/ieee1275/misc.c: Likewise.
43964 * util/lvm.c: Include grub/util/lvm.h.
43965 * util/misc.c: Include grub/kernel.h, grub/misc.h and
43966 grub/cache.h.
43967 * util/raid.c: Include grub/util/raid.h.
43968 (grub_util_getdiskname): Make static.
43969
43970 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
43971 grub_hostfs_fini(), as they are called from grub_init_all() and
43972 grub_fini_all() respectively. This fixes an infinite loop in
43973 grub-fstest due to double registration of hostfs.
43974 Reported by Christian Franke <Christian.Franke@t-online.de>
43975
43976 2008-04-05 Pavel Roskin <proski@gnu.org>
43977
43978 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
43979 all 8 functions. Otherwise, probe function 0 only.
43980
43981 2008-04-04 Pavel Roskin <proski@gnu.org>
43982
43983 * commands/lspci.c (grub_lspci_iter): Print the bus number
43984 correctly.
43985
43986 * commands/lspci.c (grub_pci_classes): Fix typos.
43987 (grub_lspci_iter): Don't print func twice. Print vendor ID
43988 before device ID, as it's normally done.
43989
43990 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
43991 Fix signedness warnings.
43992 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
43993 Likewise.
43994 * util/ieee1275/get_disk_name.c: Include config.h so that
43995 _GNU_SOURCE is defined and getline() is declared. Mark an
43996 unused argument as such. Fix a signedness warning.
43997
43998 2008-04-02 Pavel Roskin <proski@gnu.org>
43999
44000 * genkernsyms.sh.in: Use more robust assignments for CC and
44001 srcdir. Quote srcdir.
44002 * gensymlist.sh.in: Likewise. Assert at the compile time that
44003 the symbol table is not empty.
44004
44005 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
44006 * fs/cpio.c (grub_cpio_read): Likewise.
44007
44008 2008-04-01 Pavel Roskin <proski@gnu.org>
44009
44010 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
44011 * disk/host.c (grub_host_open): Likewise.
44012 * disk/loopback.c (grub_loopback_open): Likewise.
44013 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
44014 disk->id as in disk/host.c, not a multi-character constant.
44015
44016 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
44017 later is obsolete, potentially dangerous and sets a bad example.
44018 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
44019 * util/misc.c (grub_util_get_image_size): Likewise.
44020
44021 * disk/loopback.c (options): Improve help for "--partitions".
44022
44023 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
44024 options to align them with the short options, e.g. "echo -e".
44025
44026 2008-03-31 Bean <bean123ch@gmail.com>
44027
44028 * video/reader/png.c (grub_png_data): New member is_16bit and
44029 image_data.
44030 (grub_png_decode_image_header): Detect 16 bit png image.
44031 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
44032 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
44033 (grub_video_reader_png): Release memory occupied by image_data.
44034
44035 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
44036 4096 bytes.
44037 (grub_nfs_mount): Skip the test for sector per cluster.
44038
44039 * include/grub/ntfs.h (MAX_SPC): Removed.
44040
44041 2008-03-31 Bean <bean123ch@gmail.com>
44042
44043 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
44044 (grub_probe_SOURCES): Add fs/afs.c.
44045 (grub_fstest_SOURCES): Likewise.
44046 (afs_mod_SOURCES): New variable.
44047 (afs_mod_CFLAGS): Likewise.
44048 (afs_mod_LDFLAGS): Likewise.
44049
44050 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
44051 (grub_emu_SOURCES): Likewise.
44052
44053 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
44054
44055 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44056
44057 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
44058
44059 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44060
44061 * fs/afs.c: New file.
44062
44063 2008-03-30 Pavel Roskin <proski@gnu.org>
44064
44065 * disk/host.c: Include grub/misc.h to fix a warning.
44066 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
44067 warnings about implicit declarations.
44068
44069 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
44070 variable.
44071 * include/grub/i386/loader.h: Change declaration of
44072 grub_linux_boot() to match what grub_loader_set() expects.
44073 * util/getroot.c (grub_guess_root_device): Return const char* to
44074 fix a warning.
44075 * util/grub-probe.c (probe): Fix a warning about uninitialized
44076 abstraction_name variable.
44077 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
44078 second argument as unused to fix a warning.
44079
44080 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
44081 missing grub_error() call.
44082
44083 * util/update-grub_lib.in: Define datarootdir, since Autoconf
44084 2.60 and newer uses it to define datadir.
44085
44086 * commands/sleep.c: Fix warning about implicit declaration.
44087 * disk/memdisk.c: Likewise.
44088 * loader/aout.c: Likewise.
44089 * loader/i386/bsd_normal.c: Likewise.
44090 * util/grub-probe.c: Likewise.
44091
44092 * commands/i386/cpuid.c (has_longmode): Make static.
44093 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
44094 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
44095
44096 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
44097 GDT. This is more robust, as %ds can change.
44098 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
44099 calling real_to_prot().
44100 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
44101
44102 2008-03-28 Pavel Roskin <proski@gnu.org>
44103
44104 * kern/i386/pc/startup.S: Assert that uncompressed functions
44105 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
44106 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
44107 code, as they push parts of the code (error handlers) beyond
44108 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
44109 code as correctness and size.
44110
44111 2008-03-28 Pavel Roskin <proski@gnu.org>
44112
44113 * kern/i386/pc/startup.S
44114 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
44115 data block address to the real mode, keep offset minimal. This
44116 works around a bug in AWARD BIOS on old Athlon systems, which
44117 makes CD detection hang.
44118
44119 2008-03-26 Pavel Roskin <proski@gnu.org>
44120
44121 * normal/color.c (grub_parse_color_name_pair): Make `name' a
44122 const.
44123 * include/grub/normal.h: Add grub_parse_color_name_pair()
44124 declaration.
44125
44126 2008-03-24 Bean <bean123ch@gmail.com>
44127
44128 * disk/i386/pc/biosdisk.c (cd_start): Removed.
44129 (cd_count): Removed.
44130 (cd_drive): New variable.
44131 (grub_biosdisk_get_drive): Don't check for (cdN) device.
44132 (grub_biosdisk_call_hook): Likewise.
44133 (grub_biosdisk_iterate): Change cdrom detection method.
44134 (grub_biosdisk_open): Replace cd_start with cd_drive.
44135 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
44136 detect cdrom device.
44137
44138 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
44139 Removed.
44140 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
44141 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
44142 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
44143 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
44144 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
44145 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
44146 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
44147 (grub_biosdisk_cdrp): New structure.
44148 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
44149
44150 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
44151
44152 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
44153 device.
44154
44155 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
44156 New function.
44157
44158 2008-03-20 Robert Millan <rmh@aybabtu.com>
44159
44160 Remove 2 TiB limit in ata.mod.
44161 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
44162 (grub_ata_dumpinfo): Print sector count with 0x%llx.
44163 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
44164 grub_uint64_t instead of grub_uint32_t.
44165
44166 2008-03-05 Bean <bean123ch@gmail.com>
44167
44168 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
44169 (grub_multiboot): Set boot device.
44170
44171 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
44172
44173 2008-03-02 Bean <bean123ch@gmail.com>
44174
44175 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
44176 symlink_buffer.
44177
44178 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
44179
44180 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
44181 texinfo.tex.
44182
44183 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
44184 modified.
44185
44186 * docs/fdl.texi: New file.
44187
44188 * docs/mdate-sh: New file. Copied from gnulib.
44189 * docs/texinfo.tex: Likewise.
44190
44191 * config.guess: Updated from gnulib.
44192 * install-sh: Likewise.
44193
44194 2008-02-28 Robert Millan <rmh@aybabtu.com>
44195
44196 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
44197 (aout_mod_SOURCES): New variable.
44198 (aout_mod_CFLAGS): Likewise.
44199 (aout_mod_LDFLAGS): Likewise.
44200
44201 * conf/i386-ieee1275.rmk: Likewise.
44202
44203 2008-02-28 Robert Millan <rmh@aybabtu.com>
44204
44205 * util/update-grub.in: Reorganise terminal validity check. Accept
44206 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
44207 Based on suggestion by Franklin PIAT.
44208
44209 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
44210
44211 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
44212 function.
44213 * util/getroot.c (grub_util_check_block_device): New function that
44214 returns the given argument if it is a block device and returns NULL else.
44215 * util/grub-probe.c (argument_is_device): New variable.
44216 (probe): Promote device_name from a variable to an argument. Receive
44217 device_name from grub_util_check_block_device() if path is NULL and from
44218 grub_guess_root_device() else. Do not free() device_name anymore.
44219 (options): Introduce new parameter '-d, --device'.
44220 (main): Add description of the new parameter to the help screen.
44221 Rename path variable to argument. Set argument_is_device if the '-d'
44222 option is given. Pass argument to probe() depending on
44223 argument_is_device.
44224
44225 2008-02-24 Bean <bean123ch@gmail.com>
44226
44227 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
44228 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
44229 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
44230 (GRUB_ISO9660_VOLDESC_PART): Likewise.
44231 (GRUB_ISO9660_VOLDESC_END): Likewise.
44232 (grub_iso9660_primary_voldesc): New member escape.
44233 (grub_iso9660_data): New member joliet.
44234 (grub_iso9660_convert_string): New function.
44235 (grub_iso9660_mount): Detect joliet extension.
44236 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
44237 (grub_iso9660_iso9660_label): Likewise.
44238
44239 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
44240 (grub_setup_SOURCES): Add fs/udf.c.
44241 (grub_fstest_SOURCES): Likewise.
44242 (udf_mod_SOURCES): New variable.
44243 (udf_mod_CFLAGS): Likewise.
44244 (udf_mod_LDFLAGS): Likewise.
44245
44246 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
44247 (grub_emu_SOURCES): Likewise.
44248
44249 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
44250
44251 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44252
44253 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
44254
44255 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44256
44257 * fs/udf.c: New file.
44258
44259 2008-02-24 Robert Millan <rmh@aybabtu.com>
44260
44261 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
44262 (normal/lexer.c_DEPENDENCIES): New variables.
44263 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
44264 (normal/lexer.c_DEPENDENCIES): Likewise.
44265 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
44266 (normal/lexer.c_DEPENDENCIES): Likewise.
44267 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
44268 (normal/lexer.c_DEPENDENCIES): Likewise.
44269 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
44270 (normal/lexer.c_DEPENDENCIES): Likewise.
44271 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
44272 (normal/lexer.c_DEPENDENCIES): Likewise.
44273
44274 2008-02-23 Robert Millan <rmh@aybabtu.com>
44275
44276 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
44277 since they were intended to be in hex. This didn't break previously
44278 because of a bug in gpt_partition_map_iterate() (see below).
44279
44280 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
44281 when checking the validity of GPT header.
44282 Remove `partno', since it always provides the same information as `i'.
44283
44284 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
44285
44286 * include/grub/efi/time.h: Fix a wrong comment.
44287
44288 2008-02-19 Pavel Roskin <proski@gnu.org>
44289
44290 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
44291 message.
44292
44293 2008-02-19 Bean <bean123ch@gmail.com>
44294
44295 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
44296 (aout_mod_SOURCES): New variable.
44297 (aout_mod_CFLAGS): Likewise.
44298 (aout_mod_LDFLAGS): Likewise.
44299 (_bsd_mod_SOURCES): New variable.
44300 (_bsd_mod_CFLAGS): Likewise.
44301 (_bsd_mod_LDFLAGS): Likewise.
44302 (bsd_mod_SOURCES): New variable.
44303 (bsd_mod_CFLAGS): Likewise.
44304 (bsd_mod_LDFLAGS): Likewise.
44305
44306 * include/grub/aout.h: New file.
44307
44308 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
44309
44310 * include/grub/i386/bsd.h: New file.
44311
44312 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
44313 to make it public.
44314
44315 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
44316 function is called, so that it's possible to change it inside the hook.
44317 (grub_elf64_load): Likewise.
44318 (grub_elf_file): Don't close the file if elf header is not found.
44319 (grub_elf_close): Close the file if grub_elf_file fails (The new
44320 grub_elf_file won't close it).
44321 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
44322 (grub_elf64_size): Likewise.
44323
44324 * kern/i386/loader.S (grub_unix_real_boot): New function.
44325
44326 * loader/aout.c: New file.
44327
44328 * loader/i386/bsd.c: New file.
44329
44330 * loader/i386/bsd_normal.c: New file.
44331
44332 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
44333
44334 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
44335 can test other formats.
44336
44337 2008-02-19 Robert Millan <rmh@aybabtu.com>
44338
44339 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
44340 (grub_gpt_partition_type_empty): Redefine with macro from
44341 `<grub/gpt_partition.h>'.
44342 (gpt_partition_map_iterate): Adjust partition type comparison.
44343
44344 Export `entry' as partmap-specific `part.data' struct.
44345 (grub_gpt_header, grub_gpt_partentry): Move from here ...
44346
44347 * include/grub/gpt_partition.h (grub_gpt_header)
44348 (grub_gpt_partentry): ... to here (new file).
44349
44350 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
44351
44352 (grub_gpt_partition_type_bios_boot): New const variable, defined
44353 with macro from `<grub/gpt_partition.h>'.
44354
44355 (setup): Replace `first_start' with `embed_region', which keeps
44356 track of the embed region (and is partmap-agnostic).
44357
44358 Replace find_first_partition_start() with find_usable_region(),
44359 which finds a usable region for embedding using partmap-specific
44360 knowledge (supports PC/MSDOS and GPT).
44361
44362 Fix all assumptions that the embed region start at sector 1, using
44363 `embed_region.start' from now on. Similarly, use `embed_region.end'
44364 rather than `first_start' to calculate available size.
44365
44366 In grub_util_info() message, replace "into after the MBR" with an
44367 indication of the specific sector our embed region starts at.
44368
44369 2008-02-19 Robert Millan <rmh@aybabtu.com>
44370
44371 * DISTLIST: Replace `commands/ieee1275/halt.c' and
44372 `commands/ieee1275/reboot.c' with `commands/halt.c' and
44373 `commands/reboot.c'.
44374 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
44375 (halt_mod_SOURCES): Likewise.
44376 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
44377 (halt_mod_SOURCES): Likewise.
44378
44379 2008-02-17 Christian Franke <franke@computer.org>
44380
44381 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
44382
44383 2008-02-17 Robert Millan <rmh@aybabtu.com>
44384
44385 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
44386 set `first_start' to 0 for non-PC/MSDOS partition maps.
44387
44388 2008-02-16 Robert Millan <rmh@aybabtu.com>
44389
44390 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
44391 do not assume partition map is PC/MSDOS before performing checks that
44392 are specific to that layout.
44393
44394 2008-02-13 Robert Millan <rmh@aybabtu.com>
44395
44396 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
44397 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
44398 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
44399
44400 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
44401
44402 * configure.ac: Only a cosmetic change on the handling of
44403 -fno-stack-protector.
44404
44405 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
44406
44407 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
44408 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
44409 reboot.c.
44410 (grub_install_SOURCES): Add halt.mod and reboot.mod.
44411 (halt_mod_SOURCES): New variable.
44412 (halt_mod_CFLAGS): Likewise.
44413 (halt_mod_LDFLAGS): Likewise.
44414 (reboot_mod_SOURCES): Likewise.
44415 (reboot_mod_CFLAGS): Likewise.
44416 (reboot_mod_LDFLAGS): Likewise.
44417
44418 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
44419 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
44420 reboot.c.
44421 (halt_mod_SOURCES): Likewise.
44422 (reboot_mod_SOURCES): Likewise.
44423
44424 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
44425 commands/i386/pc/reboot.c by commands/reboot.c.
44426 (reboot_mod_SOURCES): Likewise.
44427
44428 * commands/i386/pc/reboot.c: merge this file ...
44429
44430 * commands/ieee1275/reboot.c: ... and this file ...
44431
44432 * commands/reboot.c: ... to this file.
44433 Add some precompiler directive to include the correct header for
44434 each machine.
44435
44436 * commands/ieee1275/halt.c: move this file ...
44437
44438 * commands/halt.c: ... to here.
44439 Add some precompiler directive to include the correct header for
44440 each machine.
44441
44442 * include/grub/efi/efi.h (grub_reboot): New function declaration.
44443 (grub_halt): Likewise.
44444
44445 * kern/efi/efi.c (grub_reboot): New function.
44446 (grub_halt): Likewise.
44447
44448 2008-02-12 Robert Millan <rmh@aybabtu.com>
44449
44450 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
44451 /dev (like it is done for /dev/mapper). This doesn't provide support
44452 for EVMS, but at least it is now easy to identify the problem when it
44453 arises.
44454
44455 2008-02-11 Robert Millan <rmh@aybabtu.com>
44456
44457 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
44458 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
44459 comparing it with -1, not 0.
44460
44461 2008-02-10 Robert Millan <rmh@aybabtu.com>
44462
44463 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
44464 `disk/lvm.c'.
44465 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44466 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
44467
44468 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
44469 `disk/lvm.c' to the end of the list.
44470 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
44471 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
44472
44473 2008-02-10 Robert Millan <rmh@aybabtu.com>
44474
44475 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
44476 grub_print_error() instead. This will let user know why we're entering
44477 rescue mode.
44478 Based on suggestions from Sam Morris.
44479
44480 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
44481
44482 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
44483 on remaining N args, instead of "--" arg N times.
44484
44485 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
44486
44487 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
44488 (fill_with_default_glyph): Changed to use unknown_glyph for fill
44489 pattern for unknown glyphs.
44490
44491 2008-02-09 Robert Millan <rmh@aybabtu.com>
44492
44493 * configure.ac: Probe for `help2man'.
44494 * Makefile.in (builddir): New variable.
44495 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
44496 or otherwise add a few flags/options to it.
44497 (install-local): For every executable utility or script that is
44498 installed, invoke $(HELP2MAN) to install a manpage based on --help
44499 output.
44500
44501 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
44502 that it doesn't prevent --help from working in build tree.
44503
44504 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
44505 with `bug-grub@gnu.org'.
44506 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
44507 * util/update-grub.in (usage): New function.
44508 Implement proper argument check, with support for --help and --version
44509 (as well as existing -y).
44510
44511 2008-02-09 Christian Franke <franke@computer.org>
44512
44513 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
44514 avoid overwriting previous output.
44515 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
44516
44517 2008-02-09 Robert Millan <rmh@aybabtu.com>
44518
44519 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
44520 drawing the menu.
44521
44522 2008-02-09 Robert Millan <rmh@aybabtu.com>
44523
44524 * commands/sleep.c: New file.
44525 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
44526 (sleep_mod_SOURCES): New variable.
44527 (sleep_mod_CFLAGS): Likewise.
44528 (sleep_mod_LDFLAGS): Likewise.
44529
44530 2008-02-09 Robert Millan <rmh@aybabtu.com>
44531
44532 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
44533 situations in which we can deduce the RAID size and the superblock
44534 doesn't match it.
44535
44536 2008-02-09 Robert Millan <rmh@aybabtu.com>
44537
44538 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
44539 and return a grub_diskmemberlist_t composed of LVM physical volumes.
44540 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
44541
44542 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
44543 and return a grub_diskmemberlist_t composed of physical array members.
44544 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
44545
44546 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
44547 prototype.
44548 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
44549 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
44550 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
44551
44552 * util/grub-probe.c (probe): Move partmap probing code from here ...
44553 (probe_partmap): ... to here.
44554 (probe): Use probe_partmap() once for the disk we're probing, and
44555 additionally, when such disk contains a memberlist() struct member,
44556 once for each disk that is contained in the structure returned by
44557 memberlist().
44558
44559 2008-02-09 Robert Millan <rmh@aybabtu.com>
44560
44561 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
44562 environment variable to 'all' in order to obtain debug output from
44563 non-util/ code.
44564 * util/i386/pc/grub-setup.c (main): Likewise.
44565
44566 2008-02-08 Robert Millan <rmh@aybabtu.com>
44567
44568 * disk/raid.c (grub_raid_scan_device): Check for
44569 `array->device[sb.this_disk.number]' rather than for
44570 `array->device[sb.this_disk.number]->name', since the latter is not
44571 guaranteed to be accessible.
44572
44573 2008-02-08 Robert Millan <rmh@aybabtu.com>
44574
44575 * disk/raid.c: Update copyright.
44576 * fs/cpio.c: Likewise.
44577 * include/grub/raid.h: Likewise.
44578 * loader/i386/pc/multiboot.c: Likewise.
44579 * util/hostfs.c: Likewise.
44580
44581 2008-02-08 Robert Millan <rmh@aybabtu.com>
44582
44583 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
44584 to a grub_disk_t array.
44585 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
44586 `device[x]'.
44587 (grub_raid_scan_device): Replace `device[x].name' accesses with
44588 `device[x]->name'. Simplify initialization of `array->device[x]'.
44589
44590 2008-02-08 Robert Millan <rmh@aybabtu.com>
44591
44592 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
44593 grub_dprintf() calls.
44594 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
44595 error message.
44596
44597 2008-02-07 Christian Franke <franke@computer.org>
44598
44599 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
44600 instead of fseek and ftell to support large files.
44601 (grub_hostfs_read): Likewise.
44602
44603 2008-02-07 Robert Millan <rmh@aybabtu.com>
44604
44605 Patch from Jeroen Dekkers.
44606 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
44607 failure, since successfully reading all array members might not be
44608 required.
44609
44610 2008-02-06 Robert Millan <rmh@aybabtu.com>
44611
44612 * util/grub-probe.c (probe): Simplify partmap probing (with the
44613 assumption that the first word up to the underscore equals to
44614 the module name).
44615
44616 2008-02-06 Christian Franke <franke@computer.org>
44617
44618 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
44619 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
44620 last block of a cpio or tar stream.
44621 Check for "TRAILER!!!" instead of any empty data
44622 block to detect last block of a cpio stream.
44623 (grub_cpio_dir): Fix constness of variable np.
44624 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
44625 cpio or tar trailer is detected. This fixes a crash
44626 on open of a non existing file.
44627
44628 2008-02-05 Bean <bean123ch@gmail.com>
44629
44630 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
44631 address of entry.
44632 (grub_multiboot_load_elf64): Likewise.
44633 (grub_multiboot): Initialize mbi structure.
44634
44635 * util/grub-fstest.c: Don't include unused header file script.h.
44636
44637 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
44638 of file.
44639 (grub_fstest_SOURCES): Likewise.
44640
44641 2008-02-05 Robert Millan <rmh@aybabtu.com>
44642
44643 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
44644 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
44645 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
44646 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
44647
44648 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
44649 (translation_table): Replace hardcoded values with macros
44650 provided by `<grub/term.h>'.
44651
44652 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
44653 (keyboard_map): Correct/add a few values, with macros provided
44654 by `<grub/term.h>'.
44655 (keyboard_map_shift): Zero values that don't differ from their
44656 `keyboard_map' equivalents.
44657 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
44658 Discard the second scan code that is always sent by Caps lock.
44659 Only use `keyboard_map_shift' when it provides a non-zero value,
44660 otherwise fallback to `keyboard_map'.
44661
44662 2008-02-04 Bean <bean123ch@gmail.com>
44663
44664 * Makefile.in (enable_grub_fstest): New variable.
44665
44666 * conf/common.rmk (grub_fstest_init.lst): New rule.
44667 (grub_fstest_init.h): Likewise.
44668 (grub_fstest_init.c): Likewise.
44669 (util/grub-fstest.c_DEPENDENCIES): New variable.
44670 (grub_fstest_SOURCES): Likewise.
44671
44672 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
44673
44674 * util/grub-fstest.c: New file.
44675
44676 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
44677
44678 Make grub-setup handle a separate root device.
44679
44680 * util/i386/pc/grub-setup.c (setup): Always open the root device,
44681 so that the root device can be compared with the destination
44682 device.
44683 When embedding the core image, if the root and destination devices
44684 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
44685 0xFF.
44686 When not embedding, set ROOT_DRIVE to 0xFF.
44687
44688 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
44689
44690 Add support for having a grub directory in a different drive. This
44691 is still only the data handling part.
44692
44693 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
44694 (codestart): Save %dh in GRUB_ROOT_DRIVE.
44695 (grub_root_drive): New variable.
44696
44697 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
44698 instead of GRUB_BOOT_DRIVE to construct a device name. Set
44699 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
44700 as it was.
44701
44702 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
44703
44704 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
44705 macro.
44706 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
44707
44708 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
44709 is bogus, because PXE booting does not specify any drive
44710 correctly.
44711
44712 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
44713 am not sure if this is really correct.
44714
44715 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
44716 is always identical to the boot drive when booting from a CD.
44717
44718 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
44719 longer.
44720 (root_drive): New variable.
44721 (real_start): Unconditionally set %dh to ROOT_DRIVE.
44722 (setup_sectors): Push %dx right after popping it, because %dh will
44723 be modified later.
44724 (copy_buffer): Restore %dx.
44725
44726 2008-02-03 Robert Millan <rmh@aybabtu.com>
44727
44728 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
44729 use `cdboot.img' for cdrom images.
44730
44731 2008-02-03 Robert Millan <rmh@aybabtu.com>
44732
44733 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
44734 only setup gfxterm when `font' command has succeeded.
44735
44736 2008-02-03 Robert Millan <rmh@aybabtu.com>
44737
44738 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
44739 (grub_rescue_cmd_multiboot_loader)
44740 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
44741
44742 2008-02-03 Pavel Roskin <proski@gnu.org>
44743
44744 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
44745 %edx and %esi from stack only after grub_gate_a20() is called.
44746 grub_gate_a20() clobbers %edx.
44747
44748 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
44749
44750 * configure.ac (AC_INIT): Bumped to 1.96.
44751
44752 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
44753 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
44754 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
44755 video/readers/png.c.
44756
44757 2008-02-03 Bean <bean123ch@gmail.com>
44758
44759 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
44760 (cdboot_img_SOURCES): New variable.
44761 (cdboot_img_ASFLAGS): New variable.
44762 (cdboot_img_LDFLAGS): New variable.
44763
44764 * boot/i386/pc/cdboot.S: New file.
44765
44766 * disk/i386/pc/biosdisk.c (cd_start): New variable.
44767 (cd_count): Likewise.
44768 (grub_biosdisk_get_drive): Add support for cd device.
44769 (grub_biosdisk_call_hook): Likewise.
44770 (grub_biosdisk_iterate): Likewise.
44771 (grub_biosdisk_open): Likewise.
44772 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
44773 (grub_biosdisk_rw): Support reading from cd device.
44774 (GRUB_MOD_INIT): Iterate cd devices.
44775
44776 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
44777 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
44778 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
44779
44780 * kern/i386/pc/init.c (make_install_device): Check for cd device.
44781
44782 2008-02-02 Robert Millan <rmh@aybabtu.com>
44783
44784 * commands/read.c: New file.
44785 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
44786 (read_mod_SOURCES): New variable.
44787 (read_mod_CFLAGS): Likewise.
44788 (read_mod_LDFLAGS): Likewise.
44789
44790 2008-02-02 Robert Millan <rmh@aybabtu.com>
44791
44792 * normal/main.c (grub_normal_execute): Check for `menu->size' when
44793 determining whether menu has to be displayed.
44794
44795 2008-02-02 Marco Gerards <marco@gnu.org>
44796
44797 * bus/pci.c: New file.
44798
44799 * include/grub/pci.h: Likewise.
44800
44801 * include/grub/i386/pc/pci.h: Likewise.
44802
44803 * commands/lspci.c: Likewise.
44804
44805 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
44806 `lspci.mod'.
44807 (pci_mod_SOURCES): New variable.
44808 (pci_mod_CFLAGS): Likewise.
44809 (pci_mod_LDFLAGS): Likewise.
44810 (lspci_mod_SOURCES): Likewise.
44811 (lspci_mod_CFLAGS): Likewise.
44812 (lspci_mod_LDFLAGS): Likewise.
44813
44814 2008-02-02 Bean <bean123ch@gmail.com>
44815
44816 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
44817 (grub_ufs_get_file_block): Fix indirect block calculation problem.
44818
44819 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
44820 (grub_xfs_btree_node): New structure.
44821 (grub_xfs_btree_root): New structure.
44822 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
44823 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
44824 (GRUB_XFS_EXTENT_BLOCK): Likewise.
44825 (GRUB_XFS_EXTENT_SIZE): Likewise.
44826 (grub_xfs_read_block): Support btree format type.
44827 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
44828 Use directory block as basic unit.
44829
44830 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
44831
44832 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
44833 __attribute__ ((__regparm__ (1))).
44834
44835 2008-02-01 Robert Millan <rmh@aybabtu.com>
44836
44837 Correct a mistake in previous commit.
44838
44839 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
44840 top.
44841 (normal/command.c_DEPENDENCIES): New variable.
44842
44843 2008-02-01 Robert Millan <rmh@aybabtu.com>
44844
44845 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
44846 top.
44847 (normal/command.c_DEPENDENCIES): New variable.
44848 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
44849 * conf/i386-ieee1275.rmk: Likewise.
44850 * conf/i386-linuxbios.rmk: Likewise.
44851 * conf/i386-pc.rmk: Likewise.
44852 * conf/sparc64-ieee1275.rmk: Likewise.
44853 * conf/powerpc-ieee1275.rmk: Likewise.
44854 (grub_emu_SOURCES): Add `fs/fshelp.c'.
44855
44856 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
44857
44858 2008-02-01 Robert Millan <rmh@aybabtu.com>
44859
44860 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
44861 call at beginning of function.
44862
44863 2008-01-31 Pavel Roskin <proski@gnu.org>
44864
44865 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
44866 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
44867 (grub_mkrescue_SOURCES): Likewise.
44868 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
44869
44870 2008-01-30 Robert Millan <rmh@aybabtu.com>
44871
44872 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
44873 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
44874 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
44875 (grub_probe_SOURCES): ... to here.
44876
44877 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
44878 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
44879 * conf/i386-ieee1275.rmk: Likewise.
44880 * conf/i386-linuxbios.rmk: Likewise.
44881 * conf/powerpc-ieee1275.rmk: Likewise.
44882
44883 2008-01-30 Tristan Gingold <gingold@free.fr>
44884
44885 * kern/rescue.c: Silently accept empty lines.
44886
44887 2008-01-29 Bean <bean123ch@gmail.com>
44888
44889 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
44890 (real_code_2): Code cleanup and change comment style.
44891 (move_memory): Avoid using 32-bit address mode.
44892
44893 2008-01-29 Bean <bean123ch@gmail.com>
44894
44895 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
44896 (png_mod_SOURCES): New variable.
44897 (png_mod_CFLAGS): Likewise.
44898 (png_mod_LDFLAGS): Likewise.
44899
44900 * video/readers/png.c: New file.
44901
44902 2008-01-28 Robert Millan <rmh@aybabtu.com>
44903
44904 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
44905 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
44906 `ifndef GRUB_MOD_GAP' hack.
44907 * util/elf/grub-mkimage.c (add_segments): Likewise.
44908
44909 2008-01-27 Robert Millan <rmh@aybabtu.com>
44910
44911 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
44912 `GRUB_MOD_GAP' for platforms in which it's not defined.
44913 * util/elf/grub-mkimage.c (add_segments): Likewise.
44914
44915 2008-01-27 Robert Millan <rmh@aybabtu.com>
44916
44917 Get grub-emu to build again (including parallel builds).
44918
44919 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
44920 Split into ...
44921 (util/grub-emu.c_DEPENDENCIES): ... this, ...
44922 (normal/execute.c_DEPENDENCIES): ... this, ...
44923 (grub-emu_DEPENDENCIES): ... and this.
44924
44925 * conf/i386-efi.rmk: Likewise.
44926 * conf/i386-linuxbios.rmk: Likewise.
44927 * conf/i386-ieee1275.rmk: Likewise.
44928 * conf/powerpc-ieee1275.rmk: Likewise.
44929 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
44930
44931 2008-01-27 Robert Millan <rmh@aybabtu.com>
44932
44933 * NEWS: Add a few items.
44934
44935 2008-01-27 Robert Millan <rmh@aybabtu.com>
44936
44937 Fix parallel builds with grub-emu. Based on earlier commit for
44938 grub-probe and grub-setup.
44939
44940 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
44941 (util/grub-emu.c_DEPENDENCIES): ... this.
44942 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
44943 (util/grub-emu.c_DEPENDENCIES): ... this.
44944 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
44945 (util/grub-emu.c_DEPENDENCIES): ... this.
44946 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
44947 (util/grub-emu.c_DEPENDENCIES): ... this.
44948 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
44949 (util/grub-emu.c_DEPENDENCIES): ... this.
44950
44951 2008-01-27 Pavel Roskin <proski@gnu.org>
44952
44953 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
44954 to create a gap between _end and the modules added to the image
44955 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
44956 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
44957 * util/elf/grub-mkimage.c (add_segments): Likewise.
44958
44959 2008-01-26 Pavel Roskin <proski@gnu.org>
44960
44961 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
44962 just return an error.
44963
44964 2008-01-26 Bean <bean123ch@gmail.com>
44965
44966 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
44967 (grub_reiserfs_get_item): Save offset of the next item.
44968 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
44969
44970 2008-01-25 Robert Millan <rmh@aybabtu.com>
44971
44972 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
44973 make all filesystem sources appear together (possibly fixing omissions
44974 while at it).
44975 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
44976 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44977 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
44978 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44979
44980 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
44981 add `kern/file.c'.
44982 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
44983 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
44984 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
44985 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
44986
44987 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
44988 (probe): Add a sanity check to make sure of our ability to read
44989 requested files when probing for filesystem type.
44990
44991 * genmk.rb: Update copyright year (2007).
44992
44993 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
44994 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
44995 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
44996 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
44997 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
44998 : Remove function prototypes.
44999
45000 2008-01-25 Robert Millan <rmh@aybabtu.com>
45001
45002 Revert my previous commits (based on wrong assumption of how grub_errno
45003 works).
45004
45005 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
45006 * kern/file.c (grub_file_open): Likewise.
45007
45008 2008-01-24 Pavel Roskin <proski@gnu.org>
45009
45010 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
45011 that hang if GRUB tries to setup colors.
45012 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
45013 colors for firmwares that don't support it.
45014 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
45015 Recognize Open Hack'Ware, set flags to work around its
45016 limitations.
45017
45018 2008-01-24 Robert Millan <rmh@aybabtu.com>
45019
45020 * kern/file.c (grub_file_open): Do not account previous failures of
45021 unrelated functions when grub_errno is checked for.
45022 Reported by Oleg Strikov.
45023
45024 2008-01-24 Bean <bean123ch@gmail.com>
45025
45026 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
45027 (grub_ufs_sblock): New member volume name.
45028 (grub_ufs_find_file): Fix string copy bug.
45029 (grub_ufs_label): Implement this function properly.
45030
45031 * fs/hfs.c (grub_hfs_cnid_type): New enum.
45032 (grub_hfs_iterate_records): Use the correct file number for extents
45033 and catalog file. Fix problem in next index calculation.
45034 (grub_hfs_find_node): Replace recursive function call with loop.
45035 (grub_hfs_iterate_dir): Replace recursive function call with loop.
45036
45037 2008-01-23 Robert Millan <rmh@aybabtu.com>
45038
45039 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
45040 `<grub/symbol.h>' and `<grub/multiboot.h>'.
45041 (grub_multiboot2_real_boot): New function prototype.
45042
45043 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
45044 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
45045
45046 * kern/i386/ieee1275/init.c (grub_os_area_addr)
45047 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
45048
45049 2008-01-23 Robert Millan <rmh@aybabtu.com>
45050
45051 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
45052 #ifdef'ed out grub_printf().
45053
45054 2008-01-23 Robert Millan <rmh@aybabtu.com>
45055
45056 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
45057 grub_dprintf calls, since they make "debug=all" mode unusable.
45058 (grub_console_checkkey): Likewise.
45059
45060 2008-01-23 Robert Millan <rmh@aybabtu.com>
45061
45062 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
45063 `term/i386/pc/at_keyboard.c'.
45064 (pkglib_MODULES): Add `serial.mod'.
45065 (serial_mod_SOURCES): New variable.
45066 (serial_mod_CFLAGS): Likewise.
45067 (serial_mod_LDFLAGS): Likewise.
45068
45069 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
45070 `<grub/powerpc/ieee1275/console.h>'.
45071 (grub_keyboard_controller_init): New function prototype.
45072 (grub_console_checkkey): Likewise.
45073 (grub_console_getkey): Likewise.
45074
45075 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
45076 keyboard on i386.
45077
45078 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
45079 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
45080
45081 2008-01-23 Robert Millan <rmh@aybabtu.com>
45082
45083 * kern/i386/pc/init.c (make_install_device): When memdisk image is
45084 present, "(memdisk)/boot/grub" becomes the default prefix.
45085
45086 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
45087 a memdisk tarball with all the modules. Add --overlay=DIR option that
45088 allows users to overlay additional files into the image.
45089
45090 2008-01-23 Robert Millan <rmh@aybabtu.com>
45091
45092 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
45093 and `machine/memory.h'.
45094 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
45095 (_multiboot_mod_SOURCES): New variable.
45096 (_multiboot_mod_CFLAGS): Likewise.
45097 (_multiboot_mod_LDFLAGS): Likewise.
45098 (multiboot_mod_SOURCES): Likewise.
45099 (multiboot_mod_CFLAGS): Likewise.
45100 (multiboot_mod_LDFLAGS): Likewise.
45101
45102 * include/grub/i386/ieee1275/loader.h: New file.
45103
45104 * include/grub/i386/ieee1275/machine.h: Likewise.
45105
45106 * include/grub/i386/ieee1275/memory.h: Likewise.
45107
45108 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
45109 variable declaration.
45110 (grub_os_area_size): Likewise.
45111
45112 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
45113 (grub_lower_mem, grub_upper_mem): New variables.
45114 (grub_stop_floppy): New function (just to make
45115 grub_multiboot2_real_boot() happy).
45116
45117 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
45118 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
45119 (grub_stop): New function.
45120 Include `"../realmode.S"' and `"../loader.S"'.
45121
45122 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
45123 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
45124
45125 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
45126 rely on grub_multiboot2_real_boot() for final boot.
45127
45128 2008-01-22 Robert Millan <rmh@aybabtu.com>
45129
45130 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
45131 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
45132 device that doesn't look like an SD card.
45133 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
45134 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
45135 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
45136 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
45137 found.
45138
45139 2008-01-22 Robert Millan <rmh@aybabtu.com>
45140
45141 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
45142 avoid claiming over our own code.
45143
45144 2008-01-22 Bean <bean123ch@gmail.com>
45145
45146 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
45147 (jpeg_mod_SOURCES): New variable.
45148 (jpeg_mod_CFLAGS): Likewise.
45149 (jpeg_mod_LDFLAGS): Likewise.
45150
45151 * video/readers/jpeg.c : New file.
45152
45153 2008-01-22 Bean <bean123ch@gmail.com>
45154
45155 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
45156 there are no more items.
45157
45158 2008-01-21 Robert Millan <rmh@aybabtu.com>
45159
45160 * kern/mm.c (grub_mm_init_region): Improve debug message.
45161
45162 2008-01-21 Robert Millan <rmh@aybabtu.com>
45163
45164 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
45165 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
45166 address.
45167 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
45168 a C macro.
45169 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
45170 Indicates start of upper memory.
45171 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
45172 (generate_image): Abort when image size is big enough to corrupt
45173 upper memory.
45174
45175 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
45176 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
45177 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
45178 instead of hardcoding 0xA0000.
45179 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
45180 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
45181 instead of hardcoding 0xA0000.
45182
45183 2008-01-21 Robert Millan <rmh@aybabtu.com>
45184
45185 * disk/memdisk.c (memdisk_size): New variable.
45186 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
45187 `memdisk_size'.
45188 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
45189 image to dynamic memory.
45190 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
45191 `memdisk_size'. Free memdisk block.
45192
45193 2008-01-21 Robert Millan <rmh@aybabtu.com>
45194
45195 Fix detection of very small filesystems (like tar).
45196
45197 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
45198 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
45199 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
45200 a problem with this disk).
45201
45202 2008-01-21 Robert Millan <rmh@aybabtu.com>
45203
45204 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
45205 on grub_biosdisk_rw_standard() error.
45206
45207 2008-01-21 Robert Millan <rmh@aybabtu.com>
45208
45209 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
45210 recent changes.
45211 * kern/elf.c: Likewise.
45212 * kern/ieee1275/ieee1275.c: Likewise.
45213 * kern/powerpc/ieee1275/openfw.c: Likewise.
45214 * term/ieee1275/ofconsole.c: Likewise.
45215
45216 2008-01-21 Robert Millan <rmh@aybabtu.com>
45217
45218 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
45219
45220 * include/grub/kernel.h (grub_arch_memdisk_addr)
45221 (grub_arch_memdisk_size): Moved from here ...
45222
45223 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
45224 (grub_arch_memdisk_size): ... to here.
45225
45226 2008-01-21 Robert Millan <rmh@aybabtu.com>
45227
45228 Mostly based on bugfix from Bean.
45229
45230 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
45231 attribute with hook() parameter.
45232 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
45233 declaration.
45234 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
45235 attribute with hook() parameter.
45236 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
45237 declaration.
45238
45239 2008-01-21 Robert Millan <rmh@aybabtu.com>
45240
45241 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
45242 (pkglib_MODULES): Add `memdisk.mod'.
45243 (memdisk_mod_SOURCES): New variable.
45244 (memdisk_mod_CFLAGS): Likewise.
45245 (memdisk_mod_LDFLAGS): Likewise.
45246
45247 * disk/memdisk.c: New file.
45248
45249 * include/grub/disk.h (grub_disk_dev_id): Add
45250 `GRUB_DISK_DEVICE_MEMDISK_ID'.
45251
45252 * include/grub/i386/pc/kernel.h
45253 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
45254 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
45255 (grub_kernel_image_size): New variable declaration.
45256 (grub_total_module_size): Likewise.
45257 (grub_memdisk_image_size): Likewise.
45258
45259 * include/grub/i386/pc/memory.h
45260 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
45261
45262 * include/grub/kernel.h: Include `<grub/symbol.h>'.
45263 (grub_arch_memdisk_addr): New variable declaration.
45264 (grub_arch_memdisk_size): Likewise.
45265
45266 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
45267 (grub_arch_memdisk_size): Likewise.
45268
45269 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
45270 (codestart): Replace hardcoded `0x100000' with
45271 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
45272
45273 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
45274 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
45275 not NULL, append the contents of the file it refers to, at the end of
45276 the compressed kernel image. Initialize `grub_memdisk_image_size'
45277 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
45278 (options): Add "memdisk"|'m' option.
45279 (main): Parse --memdisk|-m option, and pass user-provided path as
45280 parameter to generate_image().
45281
45282 2008-01-20 Robert Millan <rmh@aybabtu.com>
45283
45284 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
45285 grub_dprintf() calls from here ...
45286 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
45287
45288 2008-01-20 Robert Millan <rmh@aybabtu.com>
45289
45290 Fix detection of "real mode" when /options/real-mode? doesn't exist.
45291
45292 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
45293 declaration.
45294 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
45295 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
45296 `GRUB_IEEE1275_FLAG_REAL_MODE'.
45297 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
45298 property).
45299 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
45300 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
45301
45302 2008-01-19 Robert Millan <rmh@aybabtu.com>
45303
45304 Get rid of confusing function (superseded by
45305 `grub_ieee1275_get_integer_property')
45306 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
45307 prototype.
45308 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
45309 function.
45310 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
45311 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
45312 in native endianness from grub_ieee1275_get_integer_property().
45313
45314 2008-01-19 Robert Millan <rmh@aybabtu.com>
45315
45316 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
45317 command after "shut-down", since implementations differ on which
45318 the command for halt is.
45319
45320 2008-01-19 Robert Millan <rmh@aybabtu.com>
45321
45322 * include/grub/i386/linuxbios/console.h: Add header protection.
45323 (grub_keyboard_controller_init): New function prototype.
45324 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
45325 (KEYBOARD_COMMAND_READ): Likewise.
45326 (KEYBOARD_COMMAND_WRITE): Likewise.
45327 (KEYBOARD_SCANCODE_SET1): Likewise.
45328 (grub_keyboard_controller_write): New function.
45329 (grub_keyboard_controller_read): Likewise.
45330 (grub_keyboard_controller_init): Likewise.
45331
45332 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
45333 (grub_console_init): On coreboot/LinuxBIOS, call
45334 grub_keyboard_controller_init().
45335
45336 2008-01-19 Robert Millan <rmh@aybabtu.com>
45337
45338 PowerPC changes provided by Pavel Roskin.
45339
45340 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
45341 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
45342 don't rely on cmain() doing it.
45343 * kern/i386/ieee1275/startup.S (_start): Store %eax in
45344 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
45345
45346 2008-01-16 Robert Millan <rmh@aybabtu.com>
45347
45348 * include/grub/i386/linuxbios/memory.h
45349 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
45350 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
45351 receive `table_header' as argument. Instead, probe for it in the
45352 known memory ranges where it can be present.
45353 (grub_available_iterate): Do not pass a fixed `table_header' address
45354 to grub_linuxbios_table_iterate().
45355
45356 2008-01-15 Robert Millan <rmh@aybabtu.com>
45357
45358 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
45359 * conf/i386-ieee1275.rmk: New file.
45360 * include/grub/i386/ieee1275/console.h: Likewise.
45361 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
45362 * include/grub/i386/ieee1275/kernel.h: Likewise.
45363 * include/grub/i386/ieee1275/time.h: Likewise.
45364 * kern/i386/ieee1275/init.c: Likewise.
45365 * kern/i386/ieee1275/startup.S: Likewise.
45366
45367 2008-01-15 Robert Millan <rmh@aybabtu.com>
45368
45369 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
45370 when pointers are 32-bit (but still do set it to one when they are
45371 64-bit).
45372
45373 2008-01-15 Robert Millan <rmh@aybabtu.com>
45374
45375 * include/grub/ieee1275/ieee1275.h
45376 (grub_ieee1275_get_integer_property): New function prototype.
45377
45378 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
45379 (grub_ieee1275_get_integer_property): New function. Wraps around
45380 grub_ieee1275_get_property() to handle endianness.
45381
45382 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
45383 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
45384 where appropriate.
45385 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
45386 (grub_map): Likewise.
45387 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
45388
45389 2008-01-15 Bean <bean123ch@gmail.com>
45390
45391 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
45392 (grub_script_execute_cmdline): Reset grub_errno.
45393
45394 * normal/main.c (read_config_file): Reset grub_errno.
45395
45396 * normal/parse.y (script_init): New.
45397 (script): Move function and menuentry here.
45398 (delimiter): New.
45399 (command): Add delimiter at the end of command.
45400 (commands): Adjust to match the new command.
45401 (commandblock): Remove grub_script_lexer_record_start.
45402 (menuentry): Add grub_script_lexer_record_start, use the new commands.
45403 (if): Use the new commands.
45404
45405 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
45406
45407 2008-01-15 Robert Millan <rmh@aybabtu.com>
45408
45409 * normal/menu.c (run_menu): Move timeout message from here ...
45410 (print_timeout): ... to here.
45411 (run_menu): Use print_timeout() once during initial draw to print
45412 the whole message, and again in every clock tick to update only
45413 the number of seconds.
45414
45415 2008-01-15 Robert Millan <rmh@aybabtu.com>
45416
45417 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
45418 actual size of `available' from grub_ieee1275_get_property(), and
45419 restrict parsing to that bound.
45420
45421 2008-01-15 Christian Franke <franke@computer.org>
45422
45423 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
45424 (argp_program_version): Remove variable.
45425 (argp_program_bug_address): Likewise.
45426 (options): Convert from struct argp_option to struct option.
45427 (struct arguments): Remove.
45428 (parse_opt): Remove.
45429 (usage): New function.
45430 (main): Replace struct args members by simple variables.
45431 Replace argp_parse() by getopt_long().
45432 Add switch to evaluate options.
45433 Add missing "(...)" around root_dev in prefix string.
45434
45435 2008-01-14 Robert Millan <rmh@aybabtu.com>
45436
45437 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
45438 for grub_ieee1275_exit(), in order to improve portability.
45439
45440 2008-01-14 Robert Millan <rmh@aybabtu.com>
45441
45442 * util/grub.d/10_linux.in (prefix): Define.
45443 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
45444
45445 2008-01-13 Pavel Roskin <proski@gnu.org>
45446
45447 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
45448 grub_errno if no errors have been detected.
45449
45450 2008-01-12 Robert Millan <rmh@aybabtu.com>
45451
45452 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
45453 (grub_util_get_dev_abstraction): New function prototype.
45454
45455 * util/getroot.c: Include `<grub/util/getroot.h>'
45456 (grub_util_get_grub_dev): Move detection of abstraction type to ...
45457 (grub_util_get_dev_abstraction): ... here (new function).
45458
45459 * util/grub-probe.c: Convert PRINT_* to an enum. Add
45460 `PRINT_ABSTRACTION'.
45461 (probe): Probe for abstraction type when requested.
45462 (main): Understand `--target=abstraction'.
45463
45464 * util/i386/efi/grub-install.in: Add abstraction module to core
45465 image when it is found to be necessary.
45466 * util/i386/pc/grub-install.in: Likewise.
45467 * util/powerpc/ieee1275/grub-install.in: Likewise.
45468
45469 * util/update-grub_lib.in (font_path): Return system path without
45470 converting to GRUB path.
45471 * util/update-grub.in: Convert system path returned by font_path()
45472 to a GRUB path. Use `grub-probe -t abstraction' to determine what
45473 abstraction module is needed for loading fonts (if any). Export
45474 that as `GRUB_PRELOAD_MODULES'.
45475 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
45476 insmod commands).
45477
45478 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
45479
45480 Remove some unused code from reiserfs.
45481
45482 * fs/reiserfs.c (struct grub_reiserfs_key)
45483 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
45484 (struct grub_reiserfs_node_body): Removed.
45485 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
45486 Likewise.
45487 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
45488 Likewise.
45489 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
45490 Likewise.
45491 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
45492 Likewise.
45493 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
45494 Likewise.
45495 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
45496 Likewise.
45497 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
45498 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
45499 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
45500
45501 2008-01-10 Robert Millan <rmh@aybabtu.com>
45502
45503 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
45504 Determines if a file is garbage left by packaging systems, etc.
45505 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
45506 for processing /etc/grub.d scripts.
45507 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
45508 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
45509 as a condition for processing Linux images.
45510
45511 2008-01-10 Pavel Roskin <proski@gnu.org>
45512
45513 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
45514 to compile reiserfs.c on PowerPC.
45515
45516 2008-01-10 Robert Millan <rmh@aybabtu.com>
45517
45518 * kern/device.c (grub_device_iterate): Do not abort device iteration
45519 when one of the devices cannot be opened.
45520 * kern/disk.c (grub_disk_open): Do not account previous failures of
45521 unrelated functions when grub_errno is checked for.
45522
45523 2008-01-08 Robert Millan <rmh@aybabtu.com>
45524
45525 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
45526 `! grub_linux_is_bzimage', change order of address comparison to make
45527 it more intuitive, and improve "too big zImage" error message.
45528
45529 2008-01-08 Robert Millan <rmh@aybabtu.com>
45530
45531 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
45532 `$(update-grub_DATA)'.
45533 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
45534 targets.
45535
45536 2008-01-07 Robert Millan <rmh@aybabtu.com>
45537
45538 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
45539 which instruction is modified by grub-setup during installation
45540 (since it wasn't obvious by only looking at this file).
45541
45542 2008-01-07 Robert Millan <rmh@aybabtu.com>
45543
45544 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
45545 listing actual TODO items.
45546
45547 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
45548
45549 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
45550 correctly.
45551 (grub_reiserfs_get_key_offset): Likewise.
45552 (grub_reiserfs_set_key_offset): Likewise.
45553 (grub_reiserfs_set_key_type): Likewise.
45554 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
45555
45556 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
45557 better to remove the bitfield version completely.
45558
45559 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
45560
45561 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
45562 allocated from the heap, due to the fshelp implementation.
45563 (grub_reiserfs_dir): Free NODE, due to the same reason.
45564
45565 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
45566
45567 Mostly from Vincent Pelletier:
45568
45569 * fs/reiserfs.c: New file.
45570
45571 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
45572 (reiserfs_mod_SOURCES): New variable.
45573 (reiserfs_mod_CFLAGS): Likewise.
45574 (reiserfs_mod_LDFLAGS): Likewise.
45575
45576 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
45577 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
45578 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
45579 normal/color.c.
45580
45581 2008-01-06 Robert Millan <rmh@aybabtu.com>
45582
45583 * normal/color.c: Remove `<grub/env.h>'.
45584
45585 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
45586
45587 * include/grub/normal.h: Include <grub/env.h>.
45588
45589 2008-01-05 Robert Millan <rmh@aybabtu.com>
45590
45591 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
45592 usage example with `(hd0,1)'.
45593 Reported by Samuel Thibault.
45594
45595 2008-01-05 Robert Millan <rmh@aybabtu.com>
45596
45597 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
45598 (grub_linux_boot_zimage): Rename to ...
45599 (grub_linux_boot): ... this.
45600 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
45601 (grub_linux_boot_zimage): Conditionalize zImage copy.
45602
45603 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
45604 (grub_linux_boot_bzimage): Remove prototype.
45605 (grub_linux_boot_zimage): Rename to ...
45606 (grub_linux_boot): ... this.
45607
45608 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
45609 (grub_linux_boot): Remove function.
45610
45611 2008-01-05 Robert Millan <rmh@aybabtu.com>
45612
45613 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
45614 (grub_env_write_color_highlight): Likewise.
45615 (grub_wait_after_message): Likewise.
45616
45617 * normal/color.c: New file.
45618
45619 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
45620 (normal_mod_DEPENDENCIES): Likewise.
45621
45622 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
45623 (normal_mod_DEPENDENCIES): Likewise.
45624
45625 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
45626 (normal_mod_DEPENDENCIES): Likewise.
45627
45628 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
45629 (normal_mod_DEPENDENCIES): Likewise.
45630
45631 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
45632 for waiting after a message is printed.
45633 * normal/main.c (read_config_file): Likewise.
45634 (grub_normal_init): Register grub_env_write_color_normal() and
45635 grub_env_write_color_highlight() hooks. Mark `color_normal' and
45636 `color_highlight' variables as global.
45637
45638 * normal/menu.c (grub_wait_after_message): New function.
45639 (grub_color_menu_normal): New variable. Replaces ...
45640 (GRUB_COLOR_MENU_NORMAL): ... this macro.
45641 (grub_color_menu_highlight): New variable. Replaces ...
45642 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
45643 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
45644 `GRUB_TERM_COLOR_STANDARD'.
45645 (print_message): Use `grub_setcolorstate' to reload colors. Rename
45646 `normal_code' and `highlight_code' to `old_color_normal' and
45647 `old_color_highlight', respectively.
45648 (grub_menu_init_page): Update colors when drawing the menu, based on
45649 `menu_color_normal' and `menu_color_highlight' variables.
45650 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
45651 a message is printed.
45652
45653 2008-01-05 Robert Millan <rmh@aybabtu.com>
45654
45655 * kern/env.c (grub_env_context_open): Propagate hooks for global
45656 variables to new context.
45657
45658 * kern/main.c (grub_set_root_dev): Export `root' variable.
45659
45660 2008-01-05 Robert Millan <rmh@aybabtu.com>
45661
45662 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
45663 discs unconditionally, since udev and others have options to provide
45664 them.
45665
45666 2008-01-05 Robert Millan <rmh@aybabtu.com>
45667
45668 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
45669
45670 2008-01-04 Christian Franke <franke@computer.org>
45671
45672 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
45673 of eisa_mmap.
45674
45675 2008-01-03 Pavel Roskin <proski@gnu.org>
45676
45677 * kern/i386/linuxbios/init.c: Put "void" to all function
45678 declarations with no arguments.
45679 * kern/powerpc/ieee1275/init.c: Likewise.
45680 * term/i386/pc/at_keyboard.c: Likewise.
45681 * term/i386/pc/vga_text.c: Likewise.
45682 * util/grub-mkdevicemap.c: Likewise.
45683
45684 2008-01-02 Robert Millan <rmh@aybabtu.com>
45685
45686 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
45687 message when loaded image is out of bounds.
45688 (grub_multiboot_load_elf64): Likewise.
45689
45690 2008-01-02 Pavel Roskin <proski@gnu.org>
45691
45692 * util/grub.d/10_linux.in: Try version without ".old" when
45693 looking for initrd. It's better to use initrd from the newer
45694 kernel of the same version than no initrd at all.
45695
45696 2008-01-01 Robert Millan <rmh@aybabtu.com>
45697
45698 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
45699
45700 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
45701
45702 * include/grub/video.h: Added grub_video_unmap_color and
45703 grub_video_get_active_render_target.
45704 (grub_video_adapter): Added unmap_color and get_active_render_target.
45705
45706 * video/video.c: Added grub_video_unmap_color and
45707 grub_video_get_active_render_target.
45708 (grub_video_get_info): Changed method to accept NULL pointer as an
45709 argument to allow detection of active video adapter.
45710
45711 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
45712 grub_video_vbe_unmap_color_int.
45713 Added grub_video_vbe_unmap_color and
45714 grub_video_vbe_get_active_render_target.
45715 (grub_video_vbe_adapter): Added unmap_color and
45716 get_active_render_target.
45717
45718 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
45719 with grub_video_vbe_unmap_color_int.
45720
45721 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
45722 (DEFAULT_NORMAL_COLOR): Likewise.
45723 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
45724 (DEFAULT_FG_COLOR): Removed.
45725 (DEFAULT_BG_COLOR): Likewise.
45726 (DEFAULT_CURSOR_COLOR): Changed value.
45727 (grub_virtual_screen): Added standard_color_setting,
45728 normal_color_setting, highlight_color_setting and term_color.
45729 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
45730 (bitmap_width): Added.
45731 (bitmap_height): Likewise.
45732 (bitmap): Likewise.
45733 (set_term_color): Likewise.
45734 (grub_virtual_screen_setup): Changed to use new terminal coloring
45735 settings.
45736 (grub_gfxterm_init): Added init for bitmap.
45737 (grub_gfxterm_fini): Added destroy for bitmap.
45738 (redraw_screen_rect): Updated to use background bitmap and new
45739 terminal coloring.
45740 (scroll_up): Added optimization for case when there is no bitmap.
45741 (grub_gfxterm_cls): Fixed to use correct background color.
45742 (grub_virtual_screen_setcolorstate): Changed to use new terminal
45743 coloring.
45744 (grub_virtual_screen_setcolor): Likewise.
45745 (grub_virtual_screen_getcolor): Added.
45746 (grub_gfxterm_background_image_cmd): Likewise.
45747 (grub_video_term): Added setcolor and getcolor.
45748 (MOD_INIT): Added registration of background_image command.
45749 (MOD_TERM): Added unregistration for background_image command.
45750
45751 2007-12-30 Pavel Roskin <proski@gnu.org>
45752
45753 * loader/multiboot_loader.c: Fix multiboot command
45754 unregistration. Fix all typos in the word "multiboot".
45755
45756 2007-12-29 Pavel Roskin <proski@gnu.org>
45757
45758 * util/grub.d/10_linux.in: Refactor search for initrd. Add
45759 support for initrd names used in Fedora.
45760
45761 2007-12-26 Bean <bean123ch@gmail.com>
45762
45763 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
45764 (cpio_mod_SOURCES): New variable.
45765 (cpio_mod_CFLAGS): Likewise.
45766 (cpio_mod_LDFLAGS): Likewise.
45767
45768 * fs/cpio.c: New file.
45769
45770 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
45771
45772 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45773
45774 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45775
45776 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45777
45778 2007-12-25 Robert Millan <rmh@aybabtu.com>
45779
45780 * include/grub/term.h (struct grub_term): Add `getcolor' function.
45781 (grub_getcolor): New function.
45782
45783 * kern/term.c (grub_getcolor): New function.
45784 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
45785 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
45786 (print_entry): Set normal and highlight colors to
45787 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
45788 respectively, before printing and restore them to old
45789 values afterwards.
45790 (grub_menu_init_page): Likewise. Fill an additional colored space
45791 that would otherwise be left blank.
45792
45793 * term/efi/console.c (grub_console_getcolor): New function.
45794 (struct grub_console_term.getcolor): New variable.
45795 * term/i386/pc/console.c (grub_console_getcolor): New function.
45796 (struct grub_console_term.getcolor): New variable.
45797 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
45798 (struct grub_console_term.getcolor): New variable.
45799
45800 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
45801 (struct grub_console_term.setcolor): Remove variable.
45802 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
45803 (struct grub_console_term.setcolor): Remove variable.
45804 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
45805 (struct grub_console_term.setcolor): Remove variable.
45806 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
45807 (struct grub_console_term.setcolor): Remove variable.
45808
45809 2007-12-25 Robert Millan <rmh@aybabtu.com>
45810
45811 * configure.ac: Search for possible unifont.hex locations, and
45812 define UNIFONT_HEX if found.
45813
45814 * Makefile.in (UNIFONT_HEX): Define variable.
45815 (DATA): Rename to ...
45816 (PKGLIB): ... this. Update all users.
45817 (PKGDATA): New variable.
45818 (pkgdata_IMAGES): Rename to ...
45819 (pkglib_IMAGES): ... this. Update all users.
45820 (pkgdata_MODULES): Rename to ...
45821 (pkglib_MODULES): ... this. Update all users.
45822 (pkgdata_PROGRAMS): Rename to ...
45823 (pkglib_PROGRAMS): ... this. Update all users.
45824 (pkgdata_DATA): Rename to ...
45825 (pkglib_DATA): ... this. Update all users.
45826 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
45827 (unicode.pff, ascii.pff): New rules.
45828 (all-local): Add `$(PKGDATA)' dependency.
45829 (install-local): Process `$(PKGDATA)'.
45830
45831 * util/update-grub_lib.in (font_path): Search for *.pff files in
45832 a few more locations, including `${pkgdata}'.
45833
45834 2007-12-23 Robert Millan <rmh@aybabtu.com>
45835
45836 Patch from Bean <bean123ch@gmail.com>:
45837 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
45838 `size'.
45839
45840 2007-12-21 Bean <bean123ch@gmail.com>
45841
45842 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
45843 (ntfscomp_mod_SOURCES): New variable.
45844 (ntfscomp_mod_CFLAGS): Likewise.
45845 (ntfscomp_mod_LDFLAGS): Likewise.
45846
45847 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
45848 (grub_probe_SOURCES): Likewise.
45849 (grub_emu_SOURCES): Likewise.
45850
45851 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
45852 (grub_emu_SOURCES): Likewise.
45853
45854 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
45855 (grub_emu_SOURCES): Likewise.
45856
45857 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
45858 (grub_emu_SOURCES): Likewise.
45859
45860 * fs/ntfs.c (grub_ntfscomp_func): New variable.
45861 (read_run_list): Renamed to grub_ntfs_read_run_list.
45862 (decomp_nextvcn): Moved to ntfscomp.c.
45863 (decomp_getch): Likewise.
45864 (decomp_get16): Likewise.
45865 (decomp_block): Likewise.
45866 (read_block): Likewise.
45867 (read_data): Partially moved to ntfscomp.c.
45868 (fixup): Change unsigned to grub_uint16_t.
45869 (read_mft): Change unsigned long to grub_uint32_t.
45870 (read_attr): Likewise.
45871 (read_data): Likewise.
45872 (read_run_data): Likewise.
45873 (read_run_list): Likewise.
45874 (read_mft): Likewise.
45875
45876 * fs/ntfscomp.c: New file.
45877
45878 * include/grub/ntfs.h: New file.
45879
45880 2007-12-16 Robert Millan <rmh@aybabtu.com>
45881
45882 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
45883 IDE disk check, since Linux is known to support 20 IDE disks.
45884 Reported by Colin Watson.
45885
45886 2007-12-15 Bean <bean123ch@gmail.com>
45887
45888 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
45889 (lnxboot_img_SOURCES): New variable.
45890 (lnxboot_img_ASFLAGS): Likewise.
45891 (lnxboot_img_LDFLAGS): Likewise.
45892
45893 * boot/i386/pc/lnxboot.S: New file.
45894
45895 2007-11-24 Pavel Roskin <proski@gnu.org>
45896
45897 * configure.ac: Test if '--build-id=none' is supported by the
45898 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
45899 objcopy to generate incorrect binary files (binutils
45900 2.17.50.0.18-1 as shipped by Fedora 8).
45901 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
45902 linking, so that build ID doesn't break the test.
45903
45904 2007-11-24 Pavel Roskin <proski@gnu.org>
45905
45906 * include/grub/i386/time.h: use "void" in the argument list
45907 of grub_cpu_idle().
45908 * include/grub/powerpc/time.h: Likewise.
45909 * include/grub/sparc64/time.h: Likewise.
45910
45911 2007-11-18 Christian Franke <franke@computer.org>
45912
45913 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
45914 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
45915 This fixes the problem that function keys did not work in grub-emu.
45916
45917 2007-11-18 Christian Franke <franke@computer.org>
45918
45919 * disk/host.c (grub_host_open): Remove attribute unused from
45920 name parameter. Add check for "host". This fixes the problem
45921 that grub-emu does not find partitions.
45922
45923 2007-11-18 Christian Franke <franke@computer.org>
45924
45925 * util/hostfs.c (is_dir): New function.
45926 (grub_hostfs_dir): Handle missing dirent.d_type case.
45927 (grub_hostfs_read): Add missing fseek().
45928 (grub_hostfs_label): Clear label pointer. This fixes a crash
45929 of grub-emu on "ls (host)".
45930
45931 2007-11-18 Christian Franke <franke@computer.org>
45932
45933 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
45934 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
45935 to 64 bit boundary by default.
45936
45937 2007-11-18 Bean <bean123ch@gmail.com>
45938
45939 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
45940 (hexdump_mod_SOURCES): New variable.
45941 (hexdump_mod_CFLAGS): Likewise.
45942 (hexdump_mod_LDFLAGS): Likewise.
45943
45944 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
45945
45946 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
45947
45948 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
45949
45950 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
45951
45952 * include/grub/hexdump.h: New file.
45953
45954 * commands/hexdump.c: New file.
45955
45956 2007-11-10 Robert Millan <rmh@aybabtu.com>
45957
45958 * commands/i386/pc/play.c (beep_off): Switch order of arguments
45959 in grub_outb() calls.
45960 (beep_on): Likewise.
45961
45962 2007-11-10 Christian Franke <franke@computer.org>
45963
45964 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
45965 (grub_menu_run): Likewise.
45966
45967 2007-11-10 Robert Millan <rmh@aybabtu.com>
45968
45969 * include/grub/i386/efi/machine.h: New file.
45970 * include/grub/i386/linuxbios/machine.h: Likewise.
45971 * include/grub/i386/pc/machine.h: Likewise.
45972 * include/grub/powerpc/ieee1275/machine.h: Likewise.
45973 * include/grub/sparc64/ieee1275/machine.h: Likewise.
45974
45975 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
45976 (serial_hw_io_addr): New variable.
45977 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
45978 instead of `(unsigned short *) 0x400'.
45979
45980 2007-11-10 Bean <bean123ch@gmail.com>
45981
45982 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
45983
45984 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
45985
45986 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
45987 (vga_mod_SOURCES): Added.
45988 (vga_mod_CFLAGS): Likewise.
45989 (vga_mod_LDFLAGS): Likewise.
45990
45991 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
45992 grub_outb() calls.
45993 (set_map_mask): Likewise.
45994 (set_read_map): Likewise.
45995 (set_read_address): Likewise.
45996 (vga_font): Removed variable.
45997 (get_vga_glyph): Removed function.
45998 (invalidate_char): Likewise.
45999 (write_char): Changed to use grub_font_get_glyph() for font
46000 information.
46001 (grub_vga_putchar): Likewise.
46002 (grub_vga_getcharwidth): Likewise.
46003
46004 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
46005
46006 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
46007 flags.
46008 (pxeboot_img_LDFLAGS): Likewise.
46009 (diskboot_img_LDFLAGS): Likewise.
46010 (kernel_img_LDFLAGS): Likewise.
46011
46012 2007-11-06 Robert Millan <rmh@aybabtu.com>
46013
46014 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
46015 in grub_outb() calls.
46016 (serial_hw_init): Likewise.
46017
46018 2007-11-05 Robert Millan <rmh@aybabtu.com>
46019
46020 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
46021 spaces. Skip non-regular files.
46022
46023 2007-11-05 Robert Millan <rmh@aybabtu.com>
46024
46025 * kern/disk.c (grub_disk_firmware_fini)
46026 (grub_disk_firmware_is_tainted): New variables.
46027
46028 * include/grub/disk.h (grub_disk_firmware_fini)
46029 (grub_disk_firmware_is_tainted): Likewise.
46030
46031 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
46032 (grub_disk_biosdisk_fini): ... to here.
46033 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
46034 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
46035 is set. Register grub_disk_biosdisk_fini() in
46036 `grub_disk_firmware_fini'.
46037
46038 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
46039 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
46040 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
46041 to finish existing firmware disk interface.
46042
46043 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
46044 (ata_mod_SOURCES): New variable.
46045 (ata_mod_CFLAGS): Likewise.
46046 (ata_mod_LDFLAGS): Likewise.
46047
46048 2007-11-05 Robert Millan <rmh@aybabtu.com>
46049
46050 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
46051 (grub_ata_wait): Reimplement using grub_millisleep().
46052
46053 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
46054 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
46055
46056 2007-11-03 Marco Gerards <marco@gnu.org>
46057
46058 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
46059 (CRTC_ADDR_PORT): New macro.
46060 (CRTC_DATA_PORT): Likewise.
46061 (CRTC_CURSOR): Likewise.
46062 (CRTC_CURSOR_ADDR_HIGH): Likewise.
46063 (CRTC_CURSOR_ADDR_LOW): Likewise.
46064 (update_cursor): New function.
46065 (grub_console_real_putchar): Call `update_cursor'.
46066 (grub_console_gotoxy): Likewise.
46067 (grub_console_cls): Set the default color when clearing the
46068 screen.
46069 (grub_console_setcursor): Implemented.
46070
46071 2007-11-03 Marco Gerards <marco@gnu.org>
46072
46073 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
46074 become activate.
46075 (grub_ata_pio_write): Likewise.
46076
46077 (grub_atapi_identify): Wait after issuing an ATA command.
46078 (grub_atapi_packet): Likewise.
46079 (grub_ata_identify): Likewise.
46080 (grub_ata_readwrite): Likewise.
46081
46082 2007-11-03 Marco Gerards <marco@gnu.org>
46083
46084 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
46085 (grub_ata_pio_write): Likewise.
46086 (grub_ata_readwrite): Use `grub_error', instead of
46087 returning `grub_errno'.
46088
46089 2007-11-03 Marco Gerards <marco@gnu.org>
46090
46091 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
46092 grub_ata_pio_write once for every single sector, instead of for
46093 multiple sectors.
46094
46095 2007-10-31 Robert Millan <rmh@aybabtu.com>
46096
46097 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
46098
46099 * conf/i386-linuxbios.rmk: New file.
46100
46101 * kern/i386/pc/hardware.c: Likewise.
46102 * term/i386/pc/at_keyboard.c: Likewise.
46103 * term/i386/pc/vga_text.c: Likewise.
46104
46105 * include/grub/i386/linuxbios/boot.h: Likewise.
46106 * include/grub/i386/linuxbios/console.h: Likewise.
46107 * include/grub/i386/linuxbios/init.h: Likewise.
46108 * include/grub/i386/linuxbios/kernel.h: Likewise.
46109 * include/grub/i386/linuxbios/loader.h: Likewise.
46110 * include/grub/i386/linuxbios/memory.h: Likewise.
46111 * include/grub/i386/linuxbios/serial.h: Likewise.
46112 * include/grub/i386/linuxbios/time.h: Likewise.
46113
46114 * kern/i386/linuxbios/init.c: Likewise.
46115 * kern/i386/linuxbios/startup.S: Likewise.
46116 * kern/i386/linuxbios/table.c: Likewise.
46117
46118 2007-10-31 Marco Gerards <marco@gnu.org>
46119
46120 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
46121 (ata_mod_SOURCES): New variable.
46122 (ata_mod_CFLAGS): Likewise.
46123 (ata_mod_LDFLAGS): Likewise.
46124
46125 * disk/ata.c: New file.
46126
46127 * include/grub/disk.h (grub_disk_dev_id): Add
46128 `GRUB_DISK_DEV_ATA_ID'.
46129
46130 2007-10-31 Robert Millan <rmh@aybabtu.com>
46131
46132 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
46133 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
46134
46135 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
46136 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
46137
46138 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
46139 `<grub/types.h>'.
46140
46141 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
46142
46143 2007-10-27 Robert Millan <rmh@aybabtu.com>
46144
46145 * include/grub/types.h (ULONG_MAX): Define macro.
46146
46147 2007-10-22 Robert Millan <rmh@aybabtu.com>
46148
46149 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
46150 `"../realmode.S"'.
46151 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
46152
46153 2007-10-22 Robert Millan <rmh@aybabtu.com>
46154
46155 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
46156 (pkgdata_MODULES): Add `biosdisk.mod'.
46157 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
46158 variables.
46159
46160 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
46161 (grub_biosdisk_init): Replace with ...
46162 (GRUB_MOD_INIT(biosdisk)): ... this.
46163 (grub_biosdisk_fini): Replace with ...
46164 (GRUB_MOD_FINI(biosdisk)): ... this.
46165
46166 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
46167 (grub_machine_init): Remove call to grub_biosdisk_init().
46168 (grub_machine_fini): Remove call to grub_machine_fini().
46169
46170 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
46171
46172 2007-10-22 Robert Millan <rmh@aybabtu.com>
46173
46174 * include/grub/time.h: New file.
46175 * include/grub/i386/time.h: Likewise.
46176 * include/grub/powerpc/time.h: Likewise.
46177 * include/grub/sparc64/time.h: Likewise.
46178
46179 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
46180 instances to ...
46181 (KERNEL_MACHINE_TIME_HEADER): ... this.
46182 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
46183 instances to ...
46184 (KERNEL_MACHINE_TIME_HEADER): ... this.
46185 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
46186 instances to ...
46187 (KERNEL_MACHINE_TIME_HEADER): ... this.
46188
46189 * kern/i386/efi/init.c: Include `<grub/time.h>'.
46190 (grub_millisleep): New function.
46191 * kern/i386/pc/init.c: Include `<grub/time.h>'.
46192 (grub_millisleep): New function.
46193 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
46194 Remove `grub/machine/time.h' include.
46195 (grub_millisleep): New function.
46196 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
46197 Remove `grub/machine/time.h' include.
46198 (grub_millisleep): New function.
46199
46200 * include/grub/misc.h (grub_div_roundup): New function.
46201
46202 * kern/misc.c: Include `<grub/time.h>'.
46203 (grub_millisleep_generic): New function.
46204
46205 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
46206 Add `time.h'.
46207 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
46208 Add `time.h'.
46209 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
46210 `machine/time.h'. Add `time.h'.
46211 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
46212
46213 2007-10-21 Robert Millan <rmh@aybabtu.com>
46214
46215 * include/grub/misc.h (grub_max): New function.
46216
46217 2007-10-21 Robert Millan <rmh@aybabtu.com>
46218
46219 * util/misc.c (grub_util_info): Call fflush() before returning.
46220
46221 2007-10-20 Robert Millan <rmh@aybabtu.com>
46222
46223 * genmk.rb (Image): Copy `extra_flags' from here ...
46224 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
46225
46226 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
46227 to `argc' and `args' arguments.
46228
46229 2007-10-17 Robert Millan <rmh@aybabtu.com>
46230
46231 * kern/i386/loader.S: New file.
46232
46233 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
46234 * kern/i386/loader.S (grub_linux_prot_size)... to here.
46235 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
46236 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
46237 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
46238 * kern/i386/loader.S (grub_linux_real_addr)... to here.
46239 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
46240 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
46241 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
46242 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
46243 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
46244 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
46245 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
46246 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
46247
46248 * kern/i386/realmode.S: New file.
46249
46250 * kern/i386/pc/startup.S (protstack): Moved from here ...
46251 * kern/i386/realmode.S (protstack)... to here.
46252 * kern/i386/pc/startup.S (gdt): Moved from here ...
46253 * kern/i386/realmode.S (gdt)... to here.
46254 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
46255 * kern/i386/realmode.S (prot_to_real)... to here.
46256
46257 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
46258 `kern/i386/realmode.S'.
46259
46260 2007-10-17 Robert Millan <rmh@aybabtu.com>
46261
46262 * include/grub/i386/loader.h: New file.
46263
46264 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
46265 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
46266 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
46267 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
46268 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
46269 * include/grub/i386/loader.h (grub_linux_prot_size)
46270 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
46271 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
46272 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
46273 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
46274
46275 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
46276
46277 2007-10-15 Robert Millan <rmh@aybabtu.com>
46278
46279 * normal/misc.c (grub_normal_print_device_info): Do not probe for
46280 filesystem when dev->disk is unset.
46281 Do probe for filesystem even when dev->disk->has_partitions is set.
46282 In case a filesystem is found, always report it.
46283 In case it isn't, if dev->disk->has_partitions is set, report that
46284 a partition table was found instead of reporting that no filesystem
46285 could be identified.
46286
46287 2007-10-12 Robert Millan <rmh@aybabtu.com>
46288
46289 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
46290 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
46291
46292 * include/grub/types.h (grub_host_to_target16): New macro.
46293 (grub_host_to_target32): Likewise.
46294 (grub_host_to_target64): Likewise.
46295 (grub_target_to_host16): Likewise.
46296 (grub_target_to_host32): Likewise.
46297 (grub_target_to_host64): Likewise.
46298
46299 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
46300 Renamed from to ...
46301 (GRUB_MOD_ALIGN): ...this. Update all users.
46302
46303 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
46304 grub_host_to_target32.
46305 Replace grub_be_to_cpu32 with grub_target_to_host32.
46306 (load_modules): Likewise.
46307 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
46308 Replace grub_be_to_cpu32 with grub_target_to_host32.
46309 Replace grub_cpu_to_be16 with grub_host_to_target16.
46310 Replace grub_cpu_to_be32 grub_host_to_target32.
46311
46312 2007-10-12 Robert Millan <rmh@aybabtu.com>
46313
46314 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
46315 * util/elf/grub-mkimage.c: ... here.
46316
46317 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
46318 `util/powerpc/ieee1275/grub-mkimage.c'.
46319
46320 2007-10-07 Robert Millan <rmh@aybabtu.com>
46321
46322 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
46323 and make it easier to figure out.
46324 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
46325 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
46326 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
46327 leave us with less than HEAP_MIN_SIZE total heap.
46328 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
46329
46330 2007-10-03 Robert Millan <rmh@aybabtu.com>
46331
46332 * include/grub/i386/io.h: New file.
46333 * commands/i386/pc/play.c (inb): Removed.
46334 (outb): Removed.
46335 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
46336 with grub_outb().
46337 * term/i386/pc/serial.c (inb): Removed.
46338 (outb): Removed.
46339 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
46340 with grub_outb().
46341 * term/i386/pc/vga.c (inb): Removed.
46342 (outb): Removed.
46343 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
46344 with grub_outb().
46345
46346 2007-10-02 Robert Millan <rmh@aybabtu.com>
46347
46348 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
46349 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46350 Reported by Marcin Kurek.
46351
46352 2007-09-07 Robert Millan <rmh@aybabtu.com>
46353
46354 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
46355 SmartFirmware version updates (as released by Sven Luther), and avoid
46356 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
46357 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
46358 known broken.
46359
46360 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
46361
46362 From Hitoshi Ozeki:
46363 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
46364 when merging two regions.
46365
46366 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
46367
46368 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
46369 * normal/completion.c (grub_normal_do_completion): Likewise.
46370 Reported by Hitoshi Ozeki.
46371
46372 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
46373
46374 Do not use devices at boot in chainloading.
46375
46376 * loader/i386/pc/chainloader.c (boot_drive): New variable.
46377 (boot_part_addr): Likewise.
46378 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
46379 with BOOT_DRIVE and BOOT_PART_ADDR.
46380 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
46381 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
46382
46383 2007-08-29 Robert Millan <rmh@aybabtu.com>
46384
46385 Patch from Simon Peter <dn.tlp@gmx.net>:
46386 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
46387 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
46388 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
46389 util/i386/pc/grub-setup.c_DEPENDENCIES.
46390 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
46391 util/grub-probe.c_DEPENDENCIES.
46392 * conf/powerpc-ieee1275.rmk: Likewise.
46393
46394 2007-08-28 Robert Millan <rmh@aybabtu.com>
46395
46396 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
46397 to tell grub-mkdevicemap how to name devices.
46398 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
46399 feature).
46400
46401 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
46402 util/i386/get_disk_name.c.
46403 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
46404 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
46405 util/ieee1275/get_disk_name.c.
46406
46407 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
46408
46409 * DISTLIST: Add util/i386/get_disk_name.c and
46410 util/ieee1275/get_disk_name.c.
46411
46412 * util/grub-mkdevicemap.c: Replace device naming logic with
46413 grub_util_get_disk_name() calls.
46414
46415 2007-08-20 Robert Millan <rmh@aybabtu.com>
46416
46417 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
46418 (so that it works for both plural and singular quantities).
46419
46420 2007-08-05 Robert Millan <rmh@aybabtu.com>
46421
46422 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
46423 so that [xz] isn't taken into account when determining order.
46424
46425 2007-08-02 Marco Gerards <marco@gnu.org>
46426
46427 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
46428 `include/multiboot2.h', `include/grub/elfload.h',
46429 `include/multiboot.h', `include/grub/multiboot.h',
46430 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
46431 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
46432 `kern/elf.c', `loader/multiboot_loader.c',
46433 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
46434 `loader/i386/pc/multiboot2.c',
46435 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
46436 `util/i386/pc/grub-mkrescue.in'. Remove
46437 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
46438 `include/grub/i386/pc/util/biosdisk.h' and
46439 `include/grub/powerpc/ieee1275/multiboot.h'.
46440
46441 2007-08-02 Bean <bean123ch@gmail.com>
46442
46443 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
46444 (ntfs_mod_SOURCES): New variable.
46445 (ntfs_mod_CFLAGS): Likewise.
46446 (ntfs_mod_LDFLAGS): Likewise.
46447
46448 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
46449 (grub_probe_SOURCES): Likewise.
46450 (grub_emu_SOURCES): Likewise.
46451
46452 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
46453 (grub_emu_SOURCES): Likewise.
46454
46455 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
46456 (grub_emu_SOURCES): Likewise.
46457
46458 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
46459
46460 * fs/ntfs.c: New file.
46461
46462 2007-08-02 Bean <bean123ch@gmail.com>
46463
46464 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
46465
46466 * file.h (grub_file): Likewise.
46467
46468 * fshelp.h (grub_fshelp_read_file): Likewise.
46469
46470 * util/i386/pc/grub-setup.c (setup): Likewise.
46471 (save_first_sector): Likewise.
46472 (save_blocklists): Likewise.
46473
46474 * fs/affs.c (grub_affs_read_file): Likewise.
46475
46476 * fs/ext2.c (grub_ext2_read_file): Likewise.
46477
46478 * fs/fat.c (grub_fat_read_data): Likewise.
46479
46480 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
46481
46482 * fs/hfs.c (grub_hfs_read_file): Likewise.
46483
46484 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
46485
46486 * fs/jfs.c (grub_jfs_read_file): Likewise.
46487
46488 * fs/minix.c (grub_minix_read_file): Likewise.
46489
46490 * fs/sfs.c (grub_sfs_read_file): Likewise.
46491
46492 * fs/ufs.c (grub_ufs_read_file): Likewise.
46493
46494 * fs/xfs.c (grub_xfs_read_file): Likewise.
46495
46496 * command/blocklist.c (read_blocklist): Likewise.
46497 (print_blocklist): Likewise.
46498
46499 2007-08-02 Marco Gerards <marco@gnu.org>
46500
46501 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
46502 `util/hostfs.c'.
46503
46504 * disk/host.c: New file.
46505
46506 * util/hostfs.c: Likewise.
46507
46508 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
46509 return `GRUB_ERR_BAD_FS'.
46510 * fs/sfs.c (grub_sfs_mount): Likewise.
46511 * fs/xfs.c (grub_xfs_mount): Likewise.
46512
46513 * include/grub/disk.h (enum grub_disk_dev_id): Add
46514 `GRUB_DISK_DEVICE_HOST_ID'.
46515
46516 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
46517
46518 2007-07-24 Jerone Young <jerone@gmail.com>
46519
46520 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
46521 modules for compilation.
46522 * conf/powerpc-ieee1275.rmk: Likewise.
46523
46524 * include/multiboot.h: Move multiboot definitions to one file. Rename
46525 many definitions to not get grub specific.
46526 * include/multiboot2.h: Create header with multiboot 2 definitions.
46527 * include/grub/multiboot.h: Header for grub specific function
46528 prototypes and definitions.
46529 * include/grub/multiboot2.h: Likewise.
46530 * include/grub/multiboot_loader.h: Likewise.
46531 * include/grub/i386/pc/multiboot.h: Removed.
46532 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
46533
46534 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
46535 and 2 to allow for one multiboot and module commands.
46536 * loader/multiboot2.c: Add multiboot2 functionality.
46537 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
46538 and definition names.
46539 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
46540 2 functions.
46541 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
46542 ieee1275 specific multiboot2 code.
46543
46544 * kern/i386/pc/startup.S: Change headers and definition names for
46545 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
46546
46547 2007-07-22 Robert Millan <rmh@aybabtu.com>
46548
46549 * geninitheader.sh: Process file specified in first parameter rather
46550 than hardcoding grub_modules_init.lst.
46551 * geninit.sh: Likewise. Also, construct header name dynamically rather
46552 than hardcoding grub_modules_init.h.
46553
46554 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
46555 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
46556 grub_probe_init.[ch] and grub_setup_init.[ch].
46557
46558 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
46559 grub_modules_init.h with grub_emu_init.h.
46560 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
46561 grub_probe_init.[ch] files.
46562 * conf/i386-efi.rmk: Likewise.
46563 * conf/i386-pc.rmk: Likewise.
46564 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
46565 grub_setup_init.[ch] files.
46566
46567 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
46568 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
46569 to initialize modules rather than a list of hardcoded functions.
46570 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
46571 grub_init_all() to initialize modules rather than a list of hardcoded
46572 functions.
46573
46574 2007-07-22 Robert Millan <rmh@aybabtu.com>
46575
46576 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
46577 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
46578
46579 2007-07-22 Robert Millan <rmh@aybabtu.com>
46580
46581 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
46582 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
46583 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
46584 flag when running on SmartFirmware.
46585 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
46586 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
46587 was set.
46588
46589 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
46590 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
46591 rather than decreasing it.
46592
46593 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
46594 there's not enough space to do it, fail in the same way as when it
46595 can't be done because there are no partitions.
46596
46597 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
46598 when nvsetenv failed.
46599
46600 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
46601
46602 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
46603 because this rule is automatically generated.
46604 (grub-mkrescue): Removed for the same reason as above.
46605
46606 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
46607
46608 Migrate to GNU General Public License Version 3.
46609
46610 * COPYING: Replaced with the plain text version of GPLv3.
46611
46612 * config.guess: Updated from gnulib.
46613 * config.sub: Likewise.
46614
46615 * geninit.sh: Output a GPLv3 copyright notice.
46616 * geninitheader.sh: Likewise.
46617 * genmodsrc.sh: Likewise.
46618 * gensymlist.sh.in: Likewise.
46619
46620 * boot/i386/pc/boot.S: Upgraded to GPLv3.
46621 * boot/i386/pc/diskboot.S: Likewise.
46622 * boot/i386/pc/pxeboot.S: Likewise.
46623 * commands/blocklist.c: Likewise.
46624 * commands/boot.c: Likewise.
46625 * commands/cat.c: Likewise.
46626 * commands/cmp.c: Likewise.
46627 * commands/configfile.c: Likewise.
46628 * commands/echo.c: Likewise.
46629 * commands/help.c: Likewise.
46630 * commands/ls.c: Likewise.
46631 * commands/search.c: Likewise.
46632 * commands/terminal.c: Likewise.
46633 * commands/test.c: Likewise.
46634 * commands/videotest.c: Likewise.
46635 * commands/i386/cpuid.c: Likewise.
46636 * commands/i386/pc/halt.c: Likewise.
46637 * commands/i386/pc/play.c: Likewise.
46638 * commands/i386/pc/reboot.c: Likewise.
46639 * commands/i386/pc/vbeinfo.c: Likewise.
46640 * commands/i386/pc/vbetest.c: Likewise.
46641 * commands/ieee1275/halt.c: Likewise.
46642 * commands/ieee1275/reboot.c: Likewise.
46643 * commands/ieee1275/suspend.c: Likewise.
46644 * disk/loopback.c: Likewise.
46645 * disk/lvm.c: Likewise.
46646 * disk/raid.c: Likewise.
46647 * disk/efi/efidisk.c: Likewise.
46648 * disk/i386/pc/biosdisk.c: Likewise.
46649 * disk/ieee1275/ofdisk.c: Likewise.
46650 * font/manager.c: Likewise.
46651 * fs/affs.c: Likewise.
46652 * fs/ext2.c: Likewise.
46653 * fs/fat.c: Likewise.
46654 * fs/fshelp.c: Likewise.
46655 * fs/hfs.c: Likewise.
46656 * fs/hfsplus.c: Likewise.
46657 * fs/iso9660.c: Likewise.
46658 * fs/jfs.c: Likewise.
46659 * fs/minix.c: Likewise.
46660 * fs/sfs.c: Likewise.
46661 * fs/ufs.c: Likewise.
46662 * fs/xfs.c: Likewise.
46663 * hello/hello.c: Likewise.
46664 * include/grub/acorn_filecore.h: Likewise.
46665 * include/grub/arg.h: Likewise.
46666 * include/grub/bitmap.h: Likewise.
46667 * include/grub/boot.h: Likewise.
46668 * include/grub/cache.h: Likewise.
46669 * include/grub/device.h: Likewise.
46670 * include/grub/disk.h: Likewise.
46671 * include/grub/dl.h: Likewise.
46672 * include/grub/elfload.h: Likewise.
46673 * include/grub/env.h: Likewise.
46674 * include/grub/err.h: Likewise.
46675 * include/grub/file.h: Likewise.
46676 * include/grub/font.h: Likewise.
46677 * include/grub/fs.h: Likewise.
46678 * include/grub/fshelp.h: Likewise.
46679 * include/grub/gzio.h: Likewise.
46680 * include/grub/hfs.h: Likewise.
46681 * include/grub/kernel.h: Likewise.
46682 * include/grub/loader.h: Likewise.
46683 * include/grub/lvm.h: Likewise.
46684 * include/grub/misc.h: Likewise.
46685 * include/grub/mm.h: Likewise.
46686 * include/grub/net.h: Likewise.
46687 * include/grub/normal.h: Likewise.
46688 * include/grub/parser.h: Likewise.
46689 * include/grub/partition.h: Likewise.
46690 * include/grub/pc_partition.h: Likewise.
46691 * include/grub/raid.h: Likewise.
46692 * include/grub/rescue.h: Likewise.
46693 * include/grub/script.h: Likewise.
46694 * include/grub/setjmp.h: Likewise.
46695 * include/grub/symbol.h: Likewise.
46696 * include/grub/term.h: Likewise.
46697 * include/grub/terminfo.h: Likewise.
46698 * include/grub/tparm.h: Likewise.
46699 * include/grub/types.h: Likewise.
46700 * include/grub/video.h: Likewise.
46701 * include/grub/efi/api.h: Likewise.
46702 * include/grub/efi/chainloader.h: Likewise.
46703 * include/grub/efi/console.h: Likewise.
46704 * include/grub/efi/console_control.h: Likewise.
46705 * include/grub/efi/disk.h: Likewise.
46706 * include/grub/efi/efi.h: Likewise.
46707 * include/grub/efi/pe32.h: Likewise.
46708 * include/grub/efi/time.h: Likewise.
46709 * include/grub/i386/linux.h: Likewise.
46710 * include/grub/i386/setjmp.h: Likewise.
46711 * include/grub/i386/types.h: Likewise.
46712 * include/grub/i386/efi/kernel.h: Likewise.
46713 * include/grub/i386/efi/loader.h: Likewise.
46714 * include/grub/i386/efi/time.h: Likewise.
46715 * include/grub/i386/pc/biosdisk.h: Likewise.
46716 * include/grub/i386/pc/boot.h: Likewise.
46717 * include/grub/i386/pc/chainloader.h: Likewise.
46718 * include/grub/i386/pc/console.h: Likewise.
46719 * include/grub/i386/pc/init.h: Likewise.
46720 * include/grub/i386/pc/kernel.h: Likewise.
46721 * include/grub/i386/pc/loader.h: Likewise.
46722 * include/grub/i386/pc/memory.h: Likewise.
46723 * include/grub/i386/pc/multiboot.h: Likewise.
46724 * include/grub/i386/pc/serial.h: Likewise.
46725 * include/grub/i386/pc/time.h: Likewise.
46726 * include/grub/i386/pc/vbe.h: Likewise.
46727 * include/grub/i386/pc/vbeblit.h: Likewise.
46728 * include/grub/i386/pc/vbefill.h: Likewise.
46729 * include/grub/i386/pc/vbeutil.h: Likewise.
46730 * include/grub/i386/pc/vga.h: Likewise.
46731 * include/grub/ieee1275/ieee1275.h: Likewise.
46732 * include/grub/ieee1275/ofdisk.h: Likewise.
46733 * include/grub/powerpc/libgcc.h: Likewise.
46734 * include/grub/powerpc/setjmp.h: Likewise.
46735 * include/grub/powerpc/types.h: Likewise.
46736 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
46737 * include/grub/powerpc/ieee1275/console.h: Likewise.
46738 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
46739 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
46740 * include/grub/powerpc/ieee1275/loader.h: Likewise.
46741 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
46742 * include/grub/powerpc/ieee1275/time.h: Likewise.
46743 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
46744 * include/grub/sparc64/libgcc.h: Likewise.
46745 * include/grub/sparc64/setjmp.h: Likewise.
46746 * include/grub/sparc64/types.h: Likewise.
46747 * include/grub/sparc64/ieee1275/console.h: Likewise.
46748 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
46749 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
46750 * include/grub/sparc64/ieee1275/time.h: Likewise.
46751 * include/grub/util/biosdisk.h: Likewise.
46752 * include/grub/util/getroot.h: Likewise.
46753 * include/grub/util/lvm.h: Likewise.
46754 * include/grub/util/misc.h: Likewise.
46755 * include/grub/util/raid.h: Likewise.
46756 * include/grub/util/resolve.h: Likewise.
46757 * io/gzio.c: Likewise.
46758 * kern/device.c: Likewise.
46759 * kern/disk.c: Likewise.
46760 * kern/dl.c: Likewise.
46761 * kern/elf.c: Likewise.
46762 * kern/env.c: Likewise.
46763 * kern/err.c: Likewise.
46764 * kern/file.c: Likewise.
46765 * kern/fs.c: Likewise.
46766 * kern/loader.c: Likewise.
46767 * kern/main.c: Likewise.
46768 * kern/misc.c: Likewise.
46769 * kern/mm.c: Likewise.
46770 * kern/parser.c: Likewise.
46771 * kern/partition.c: Likewise.
46772 * kern/rescue.c: Likewise.
46773 * kern/term.c: Likewise.
46774 * kern/efi/efi.c: Likewise.
46775 * kern/efi/init.c: Likewise.
46776 * kern/efi/mm.c: Likewise.
46777 * kern/i386/dl.c: Likewise.
46778 * kern/i386/efi/init.c: Likewise.
46779 * kern/i386/efi/startup.S: Likewise.
46780 * kern/i386/pc/init.c: Likewise.
46781 * kern/i386/pc/lzo1x.S: Likewise.
46782 * kern/i386/pc/startup.S: Likewise.
46783 * kern/ieee1275/ieee1275.c: Likewise.
46784 * kern/powerpc/cache.S: Likewise.
46785 * kern/powerpc/dl.c: Likewise.
46786 * kern/powerpc/ieee1275/cmain.c: Likewise.
46787 * kern/powerpc/ieee1275/crt0.S: Likewise.
46788 * kern/powerpc/ieee1275/init.c: Likewise.
46789 * kern/powerpc/ieee1275/openfw.c: Likewise.
46790 * kern/sparc64/cache.S: Likewise.
46791 * kern/sparc64/dl.c: Likewise.
46792 * kern/sparc64/ieee1275/init.c: Likewise.
46793 * kern/sparc64/ieee1275/openfw.c: Likewise.
46794 * loader/efi/chainloader.c: Likewise.
46795 * loader/efi/chainloader_normal.c: Likewise.
46796 * loader/i386/efi/linux.c: Likewise.
46797 * loader/i386/efi/linux_normal.c: Likewise.
46798 * loader/i386/pc/chainloader.c: Likewise.
46799 * loader/i386/pc/chainloader_normal.c: Likewise.
46800 * loader/i386/pc/linux.c: Likewise.
46801 * loader/i386/pc/linux_normal.c: Likewise.
46802 * loader/i386/pc/multiboot.c: Likewise.
46803 * loader/i386/pc/multiboot_normal.c: Likewise.
46804 * loader/powerpc/ieee1275/linux.c: Likewise.
46805 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
46806 * normal/arg.c: Likewise.
46807 * normal/cmdline.c: Likewise.
46808 * normal/command.c: Likewise.
46809 * normal/completion.c: Likewise.
46810 * normal/execute.c: Likewise.
46811 * normal/function.c: Likewise.
46812 * normal/lexer.c: Likewise.
46813 * normal/main.c: Likewise.
46814 * normal/menu.c: Likewise.
46815 * normal/menu_entry.c: Likewise.
46816 * normal/misc.c: Likewise.
46817 * normal/parser.y: Likewise.
46818 * normal/script.c: Likewise.
46819 * normal/i386/setjmp.S: Likewise.
46820 * normal/powerpc/setjmp.S: Likewise.
46821 * normal/sparc64/setjmp.S: Likewise.
46822 * partmap/acorn.c: Likewise.
46823 * partmap/amiga.c: Likewise.
46824 * partmap/apple.c: Likewise.
46825 * partmap/gpt.c: Likewise.
46826 * partmap/pc.c: Likewise.
46827 * partmap/sun.c: Likewise.
46828 * term/gfxterm.c: Likewise.
46829 * term/terminfo.c: Likewise.
46830 * term/efi/console.c: Likewise.
46831 * term/i386/pc/console.c: Likewise.
46832 * term/i386/pc/serial.c: Likewise.
46833 * term/i386/pc/vesafb.c: Likewise.
46834 * term/i386/pc/vga.c: Likewise.
46835 * term/ieee1275/ofconsole.c: Likewise.
46836 * util/biosdisk.c: Likewise.
46837 * util/console.c: Likewise.
46838 * util/genmoddep.c: Likewise.
46839 * util/getroot.c: Likewise.
46840 * util/grub-emu.c: Likewise.
46841 * util/grub-mkdevicemap.c: Likewise.
46842 * util/grub-probe.c: Likewise.
46843 * util/lvm.c: Likewise.
46844 * util/misc.c: Likewise.
46845 * util/raid.c: Likewise.
46846 * util/resolve.c: Likewise.
46847 * util/update-grub.in: Likewise.
46848 * util/update-grub_lib.in: Likewise.
46849 * util/grub.d/00_header.in: Likewise.
46850 * util/grub.d/10_hurd.in: Likewise.
46851 * util/grub.d/10_linux.in: Likewise.
46852 * util/i386/efi/grub-install.in: Likewise.
46853 * util/i386/efi/grub-mkimage.c: Likewise.
46854 * util/i386/pc/grub-install.in: Likewise.
46855 * util/i386/pc/grub-mkimage.c: Likewise.
46856 * util/i386/pc/grub-mkrescue.in: Likewise.
46857 * util/i386/pc/grub-setup.c: Likewise.
46858 * util/i386/pc/misc.c: Likewise.
46859 * util/powerpc/ieee1275/grub-install.in: Likewise.
46860 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
46861 * util/powerpc/ieee1275/misc.c: Likewise.
46862 * video/bitmap.c: Likewise.
46863 * video/video.c: Likewise.
46864 * video/i386/pc/vbe.c: Likewise.
46865 * video/i386/pc/vbeblit.c: Likewise.
46866 * video/i386/pc/vbefill.c: Likewise.
46867 * video/i386/pc/vbeutil.c: Likewise.
46868 * video/readers/tga.c: Likewise.
46869
46870 2007-07-02 Robert Millan <rmh@aybabtu.com>
46871
46872 * conf/i386-efi.rmk: Replace obsolete reference to
46873 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
46874 with util/getroot.c.
46875 * conf/powerpc-ieee1275.rmk: Likewise.
46876 * conf/sparc64-ieee1275.rmk: Likewise.
46877
46878 * util/grub-emu.c (main): Fix unchecked pointer handling.
46879
46880 2007-07-02 Robert Millan <rmh@aybabtu.com>
46881
46882 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
46883 invocation to fail, in order to support partition-less media.
46884
46885 * util/i386/pc/grub-install.in: Likewise.
46886
46887 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
46888 which fs or partmap modules are needed (akin to its sister scripts).
46889
46890 Also use grub-probe to get rid of unportable /proc/mounts check.
46891
46892 Print the same informational message that the other scripts do, before
46893 exiting.
46894
46895 2007-06-23 Robert Millan <rmh@aybabtu.com>
46896
46897 * util/update-grub_lib.in (font_path): New function. Determine whether
46898 a font file can be found and, if so, echo the GRUB path to it.
46899
46900 * util/update-grub.in: Handle multiple terminals depending on user
46901 input, platform availability and font file presence. Propagate
46902 variables of our findings to /etc/grub.d/ children.
46903
46904 * util/grub.d/00_header.in: Handle multiple terminals, based on
46905 environment setup by update-grub.
46906
46907 2007-06-23 Robert Millan <rmh@aybabtu.com>
46908
46909 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
46910
46911 2007-06-21 Robert Millan <rmh@aybabtu.com>
46912
46913 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
46914 indicate end of data section in kernel image.
46915 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
46916 GRUB_KERNEL_MACHINE_DATA_END.
46917
46918 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
46919 space for it.
46920 * kern/i386/efi/startup.S: Likewise.
46921
46922 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
46923 during image generation. Implement --prefix option to override this
46924 patch.
46925 * util/i386/efi/grub-mkimage.c: Likewise.
46926
46927 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
46928 code to make path relative to its root into a separate function.
46929
46930 * util/i386/pc/grub-install.in: Use newly provided
46931 make_system_path_relative_to_its_root() to convert ${grubdir}, then
46932 pass the result to grub-install --prefix.
46933
46934 2007-06-13 Robert Millan <rmh@aybabtu.com>
46935
46936 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
46937 DEFAULT_DEVICE_MAP.
46938 * util/grub-emu.c: Use above definitions from misc.h instead of
46939 defining them.
46940 * util/grub-mkdevicemap.c: Likewise.
46941 * util/i386/pc/grub-setup.c: Likewise.
46942 * util/grub-probe.c: Likewise.
46943 (probe): Abort with grub_util_error() when either
46944 grub_guess_root_device or grub_util_get_grub_dev fails.
46945
46946 2007-06-12 Robert Millan <rmh@aybabtu.com>
46947
46948 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
46949 "pager" assignment.
46950 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
46951 "pcdata".
46952 * util/grub-probe.c (probe): Likewise for "drive_name".
46953
46954 2007-06-11 Robert Millan <rmh@aybabtu.com>
46955
46956 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
46957 not just the cdrom one.
46958
46959 2007-06-11 Robert Millan <rmh@aybabtu.com>
46960
46961 * util/i386/pc/grub-mkrescue.in: Add "set -e".
46962 Add --pkglibdir=DIR option to override pkglibdir.
46963 Mention --image-type=TYPE in help output.
46964 Fix --grub-mkimage (it was a no-op).
46965 Abort gracefully when no parameter is given.
46966
46967 2007-06-11 Robert Millan <rmh@aybabtu.com>
46968
46969 * util/i386/pc/grub-mkrescue.in: New file.
46970 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
46971 * Makefile.in: Handle bin_SCRIPTS.
46972
46973 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
46974
46975 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
46976 list of video modes.
46977
46978 2007-06-06 Robert Millan <rmh@aybabtu.com>
46979
46980 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
46981 file doesn't exist, or if it is in a filesystem grub can't read.
46982
46983 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
46984 not abort if GRUB_DRIVE could not be defined. Rearrange generated
46985 header comment to fit in 80 columns when the variables are resolved.
46986
46987 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
46988 could be identified by update-grub. Remove redundant check for
46989 unifont.pff existence (since convert_system_path_to_grub_path now
46990 handles that).
46991
46992 2007-06-04 Robert Millan <rmh@aybabtu.com>
46993
46994 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
46995
46996 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
46997
46998 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
46999
47000 2007-06-04 Robert Millan <rmh@aybabtu.com>
47001
47002 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
47003
47004 * include/grub/partition.h: Declare grub_apple_partition_map_init and
47005 grub_apple_partition_map_fini.
47006
47007 * util/biosdisk.c
47008 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
47009 to access >2 TiB disks).
47010
47011 Print disk->total_sectors with %llu instead of %lu, since this
47012 variable is always 64-bit (prevents wrong disk size from being displayed
47013 on either >2 TiB disk or big-endian CPU).
47014
47015 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
47016 into a generic case that supports all (sane) partition maps.
47017
47018 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
47019 breaks big-endian.
47020
47021 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
47022 and grub_apple_partition_map_fini() after that.
47023
47024 2007-06-01 Robert Millan <rmh@aybabtu.com>
47025
47026 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
47027
47028 * util/grub.d/00_header.in: Only enable gfxterm when
47029 convert_system_path_to_grub_path() succeeds.
47030
47031 2007-05-20 Robert Millan <rmh@aybabtu.com>
47032
47033 * util/update-grub_lib.in: New file.
47034 * DISTLIST: Add update-grub_lib.in.
47035 * conf/common.rmk: Generate update-grub_lib and install it in
47036 $(lib_DATA).
47037 * Makefile.in: Add install routine for $(lib_DATA).
47038
47039 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
47040 function provided by update-grub_lib to support arbitrary paths of
47041 unifont.pff.
47042 * util/update-grub.in: Use convert_system_path_to_grub_path() to
47043 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
47044
47045 2007-05-19 Robert Millan <rmh@aybabtu.com>
47046
47047 * commands/i386/cpuid.c: New module.
47048 * DISTLIST: Add it.
47049 * conf/i386-efi.rmk: Enable cpuid.mod.
47050 * conf/i386-pc.rmk: Likewise.
47051
47052 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
47053
47054 * kern/disk.c (grub_disk_read): Check return value of
47055 grub_realloc().
47056
47057 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
47058
47059 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
47060 arrays.
47061 * disk/raid.c (grub_raid_open): Likewise.
47062
47063 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
47064
47065 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
47066 stack instead of on the heap.
47067
47068 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
47069 before doing a read on it.
47070
47071 * configure.ac: Only use -fno-stack-protector for the target
47072 environment.
47073
47074 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
47075
47076 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
47077 __attribute_ ((unused)) to mode_type argument.
47078
47079 * util/getroot.c (grub_guess_root_device): Fix #endif.
47080
47081 * kern/misc.c (memcmp): Fix prototype.
47082
47083 * include/grub/partition.h [GRUB_UTIL]
47084 (grub_gpt_partition_map_init): Add prototype.
47085 (grub_gpt_partition_map_fini): Likewise.
47086
47087 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
47088 at the right place.
47089
47090 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
47091 (grub_fat_read_data): Likewise.
47092 (grub_fat_find_dir): Likewise.
47093
47094 * font/manager.c (find_glyph): Make table a const.
47095 (grub_font_get_glyph): Remove bitmap from if statement.
47096
47097 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
47098
47099 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
47100 code, first search for device in /dev/mapper, then in /dev.
47101 (grub_util_get_grub_dev): New function.
47102 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
47103 prototype.
47104 * util/grub-probe.c (probe): Remove check for RAID, call
47105 grub_util_get_grub_dev() instead of
47106 grub_util_biosdisk_get_grub_dev().
47107 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
47108 grub_util_biosdisk_get_grub_dev().
47109 * util/i386/pc/grub-setup.c (main): Likewise.
47110
47111 2007-05-16 Robert Millan <rmh@aybabtu.com>
47112
47113 * DISTLIST: Update for the latest changes.
47114 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
47115 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
47116 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
47117 grub/util/biosdisk.h.
47118 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
47119 grub/util/biosdisk.h.
47120
47121 2007-05-16 Robert Millan <rmh@aybabtu.com>
47122
47123 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
47124
47125 2007-05-16 Robert Millan <rmh@aybabtu.com>
47126
47127 * util/i386/efi/grub-install.in: New.
47128 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
47129 newly added grub-install.
47130 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
47131 include.
47132 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
47133 grub/util/biosdisk.h.
47134 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
47135 grub/util/biosdisk.h.
47136
47137 2007-05-16 Robert Millan <rmh@aybabtu.com>
47138
47139 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
47140 * include/grub/util/biosdisk.h: ... here.
47141 * util/i386/pc/biosdisk.c: Moved to ...
47142 * util/biosdisk.c: ... here.
47143 * util/i386/pc/getroot.c: Moved to ...
47144 * util/getroot.c: ... here.
47145 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
47146 * util/grub-mkdevicemap.c: ... here.
47147 * util/i386/pc/grub-probe.c: Moved to ...
47148 * util/grub-probe.c: ... here.
47149
47150 2007-05-15 Robert Millan <rmh@aybabtu.com>
47151
47152 * util/update-grub.in: Remove duplicated line in grub.cfg header
47153 message.
47154
47155 2007-05-13 Robert Millan <rmh@aybabtu.com>
47156
47157 * util/update-grub.in: Fix a few assumptions about the devices holding
47158 /, /boot and /boot/grub being the same.
47159 * util/grub.d/00_header.in: Likewise.
47160 * util/grub.d/10_hurd.in: Likewise.
47161 * util/grub.d/10_linux.in: Likewise.
47162
47163 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
47164 patterns. Use that to define the `.old' suffix as older than `'.
47165
47166 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
47167
47168 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
47169 the grub.cfg header message.
47170
47171 2007-05-11 Robert Millan <rmh@aybabtu.com>
47172
47173 * util/update-grub.in: Create device.map if it doesn't already exist,
47174 before attempting to run grub-probe.
47175 Check for grub-probe and grub-mkdevicemap with the same code
47176 grub-install is using.
47177 Remove test mode.
47178
47179 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
47180
47181 * Makefile.in: Add the datarootdir autoconf variable.
47182
47183 2007-05-09 Robert Millan <rmh@aybabtu.com>
47184
47185 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
47186 fail gracefully if dev->disk->partition == NULL.
47187
47188 2007-05-07 Robert Millan <rmh@aybabtu.com>
47189
47190 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
47191 determine partition map module.
47192 * util/i386/pc/grub-install.in: Use this feature to decide which
47193 partition module to load, instead of hardcoding pc and gpt.
47194
47195 2007-05-07 Robert Millan <rmh@aybabtu.com>
47196
47197 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
47198 source directory differs from build directory.
47199
47200 2007-05-05 Robert Millan <rmh@aybabtu.com>
47201
47202 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
47203 initialisation.
47204
47205 2007-05-05 Robert Millan <rmh@aybabtu.com>
47206
47207 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
47208
47209 2007-05-05 Robert Millan <rmh@aybabtu.com>
47210
47211 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
47212 command-line arguments via ${GRUB_CMDLINE_LINUX}.
47213
47214 2007-05-05 Robert Millan <rmh@aybabtu.com>
47215
47216 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
47217 (grub_probe_SOURCES): Likewise.
47218 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
47219 GPT and initialize dos_part and bsd_part accordingly.
47220 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
47221 install_bsd_part.
47222 (main): Activate gpt module for use during partition identification,
47223 and deactivate it afterwards.
47224 * util/i386/pc/grub-install.in: Add gpt module to core.img.
47225 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
47226 partition identification, and deactivate it afterwards.
47227
47228 2007-05-05 Robert Millan <rmh@aybabtu.com>
47229
47230 * term/i386/pc/console.c (grub_console_fini): Call
47231 grub_term_set_current() before grub_term_unregister().
47232
47233 2007-05-04 Robert Millan <rmh@aybabtu.com>
47234
47235 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
47236 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
47237 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
47238 and update-grub_DATA.
47239 * conf/common.rmk: Build and install update-grub components.
47240 * conf/common.mk: Regenerate.
47241 * util/update-grub.in: New. Core of update-grub.
47242 * util/grub.d/00_header.in: New. Generates grub.cfg header.
47243 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
47244 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
47245 * util/grub.d/README: New. Document grub.d directory layout.
47246
47247 2007-05-01 Robert Millan <rmh@aybabtu.com>
47248
47249 * util/grub-emu.c: Move initialization functions
47250 grub_util_biosdisk_init() and grub_init_all() before
47251 grub_util_biosdisk_get_grub_dev(), which relies on them.
47252
47253 2007-04-19 Robert Millan <rmh@aybabtu.com>
47254
47255 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
47256 it is used later.
47257
47258 2007-04-18 Jerone Young <jerone@gmail.com>
47259
47260 * kernel/elf.c: Add missing parenthesis for conditional statement
47261 stanza.
47262
47263 2007-04-10 Jerone Young <jerone@gmail.com>
47264
47265 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
47266 continue on and look for device node with real device name.
47267
47268 2007-04-10 Jerone Young <jerone@gmail.com>
47269
47270 * configure.ac: Add argument for autoconf to use transformation
47271 ability.
47272 * Makefile.in: Add autoconf package transformation code.
47273 * util/i386/pc/grub-install.in: Likewise.
47274 * util/powerpc/ieee1275/grub-install.in: Likewise.
47275
47276 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
47277
47278 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
47279 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
47280 (EXT2_REVISION): Likewise.
47281 (EXT2_INODE_SIZE): Likewise.
47282 (struct grub_ext2_block_group): Added a missing member
47283 "used_dirs".
47284 (grub_ext2_read_inode): Divide by the inode size in a superblock
47285 instead of 128 to obtain INODES_PER_BLOCK.
47286 Use the macro EXT2_INODE_SIZE instead of directly using
47287 SBLOCK->INODE_SIZE.
47288
47289 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
47290
47291 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
47292 superblock instead of the structure size to compute an
47293 offset. This fixes the problem that GRUB could not read a
47294 filesystem when inode size is different from 128-byte.
47295
47296 2007-03-05 Marco Gerards <marco@gnu.org>
47297
47298 * normal/main.c (read_config_file): When "menu" is not set, create
47299 an initial context.
47300
47301 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
47302
47303 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
47304 (HEAP_LIMIT): New macro.
47305 (grub_claim_heap): Claim memory up to `heaplimit'.
47306
47307 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
47308
47309 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
47310 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
47311 (_start): Likewise.
47312 (grub_arch_modules_addr): Return address after `_end'.
47313 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
47314 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
47315 (add_segments): Calculate `_end' from phdr size and location.
47316 (ALIGN_UP): Moved to ...
47317 * include/grub/misc.h: here.
47318 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
47319 New macro.
47320 (GRUB_IEEE1275_MODULE_BASE): Removed.
47321
47322 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
47323
47324 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
47325 loop boundary.
47326
47327 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
47328
47329 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
47330 All users updated.
47331 (grub_elf64_load_hook_t): Likewise.
47332 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
47333 debug output.
47334
47335 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
47336
47337 * kern/mm.c: Update copyright.
47338 (grub_mm_debug): Correct syntax error.
47339 (grub_mm_dump_free): New function.
47340 (grub_debug_free): Call `grub_free'.
47341 * include/grub/mm.h: Update copyright.
47342 (grub_mm_dump_free): Add declaration.
47343
47344 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
47345
47346 * include/grub/ieee1275/ieee1275.h: Update copyright.
47347 * kern/powerpc/ieee1275/init.c: Likewise.
47348 * kern/powerpc/ieee1275/openfw.c: Likewise.
47349
47350 * loader/powerpc/ieee1275/linux.c: Likewise.
47351 * include/grub/elfload.h: Likewise.
47352 * kern/elf.c: Likewise.
47353 (grub_elf32_load): Pass `base' and `size' parameters. Update all
47354 callers.
47355 (grub_elf64_load): Likewise.
47356 (grub_elf32_load_segment): Move to a nested function.
47357 (grub_elf64_load_segment): Likewise.
47358
47359 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
47360
47361 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
47362 prototype.
47363 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
47364 (grub_heap_len): Likewise.
47365 (HEAP_SIZE): New macro.
47366 (grub_claim_heap): New function.
47367 (grub_machine_init): Don't claim heap directly. Call
47368 `grub_claim_heap'.
47369 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
47370 (grub_available_iterate): New function.
47371
47372 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
47373
47374 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
47375 * configure.ac: Use it for testing the HOST and TARGET compilers.
47376
47377 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
47378
47379 * Makefile.in (enable_grub_emu): New variable.
47380 * configure.ac (--enable-grub-emu): New option.
47381 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
47382 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
47383 * conf/i386-pc.rmk: Likewise.
47384 * conf/powerpc-ieee1275.rmk: Likewise.
47385 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
47386
47387 2006-12-12 Marco Gerards <marco@gnu.org>
47388
47389 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
47390
47391 * kern/env.c (grub_env_unset): Don't free the member `value' when
47392 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
47393 pointer.
47394
47395 * normal/main.c (current_menu): Removed.
47396 (free_menu): Unset the `menu' environment variable.
47397 (grub_normal_menu_addentry): Make use of the environment variable
47398 `menu', instead of using the global `current_menu'. Allocate
47399 memory for the sourcecode of this entry.
47400 (read_config_file): New argument `nested', changed all callers.
47401 Only in the case of a new context, initialize a new menu. Set the
47402 `menu' environment variable.
47403 (grub_normal_execute): Don't set and unset the environment
47404 variable `menu' here anymore. Only free the menu when leaving the
47405 context.
47406
47407 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
47408 leak.
47409
47410 2006-12-11 Marco Gerards <marco@gnu.org>
47411
47412 * normal/menu_entry.c (run): Fix off by one bug so the last line
47413 is executed. Move the loader check to outside the loop.
47414
47415 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
47416
47417 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
47418
47419 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
47420
47421 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
47422 the number of sectors. Reported by Andrey Shuvikov
47423 <mr_hyro@yahoo.com>.
47424
47425 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
47426
47427 * kern/disk.c (grub_disk_read): When there is a read error, always
47428 try to read only the necessary data.
47429
47430 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
47431 disk/raid.c.
47432 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
47433 prototype.
47434 [GRUB_UTIL] (grub_raid_fini): Likewise.
47435 [GRUB_UTIL] (grub_lvm_init): Likewise.
47436 [GRUB_UTIL] (grub_lvm_fini): Likewise.
47437 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
47438 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
47439 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
47440 and grub_raid_fini().
47441
47442 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
47443
47444 * include/grub/types.h (__unused): Rename to UNUSED.
47445 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
47446 (grub_elf64_size): Likewise.
47447
47448 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
47449
47450 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
47451 grub_error_push and grub_error_pop in the error-handling path.
47452 (grub_elf32_load_segment): Only call grub_file_read with non-zero
47453 length.
47454
47455 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
47456
47457 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
47458 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
47459 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47460 (kernel_elf_SOURCES): Likewise.
47461 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
47462 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
47463 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
47464 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
47465 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
47466 (elf_mod_SOURCES): New variable.
47467 (elf_mod_CFLAGS): Likewise.
47468 (elf_mod_LDFLAGS): Likewise.
47469 * include/grub/types.h (__unused): New macro.
47470 * include/grub/elfload.h: New file.
47471 * kern/elf.c: Likewise.
47472 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
47473 (ELF32_LOADMASK): New macro.
47474 (ELF64_LOADMASK): Likewise.
47475 (vmlinux): Removed.
47476 (grub_linux_load32): New function.
47477 (grub_linux_load64): Likewise.
47478 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
47479 Use grub_elf_t instead of grub_file_t.
47480
47481 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
47482
47483 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
47484 `catch_result' to struct set_color_args.
47485
47486 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
47487
47488 * normal/menu.c: Include grub/script.h.
47489 * normal/menu_entry.c: Likewise.
47490 * include/grub/normal.h: Do not include grub/script.h.
47491
47492 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
47493
47494 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
47495
47496 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
47497
47498 * kern/disk.c (grub_disk_open): Print debug messages when opening a
47499 disk.
47500 (grub_disk_close): Print debug messages when closing a disk.
47501 (grub_disk_read): Print debug messages when disk read fails.
47502 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
47503 filesystem type.
47504 * kern/partition.c: Include misc.h.
47505 (grub_partition_iterate): Print debug messages when detecting
47506 partition type.
47507
47508 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
47509
47510 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
47511 is negative.
47512 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
47513
47514 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
47515
47516 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
47517 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
47518
47519 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
47520
47521 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
47522 instead of sizeof(lv). Patch by Michael Guntsche.
47523
47524 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
47525
47526 * disk/lvm.c: Rename VGS to VG_LIST.
47527 (grub_lvm_iterate): Change VGS->LV to VG-LV.
47528 (grub_lvm_open): Likewise.
47529 Thanks to Michael Guntsche for finding this bug.
47530
47531 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
47532
47533 * configure.ac (AC_INIT): Bumped to 1.95.
47534
47535 2006-10-14 Robert Millan <rmh@aybabtu.com>
47536
47537 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
47538 with "/dev/.static/dev/md".
47539
47540 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
47541
47542 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
47543 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
47544 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
47545 DRIVE_NAME are always freed.
47546
47547 * util/i386/pc/biosdisk.c (make_device_name): Add one into
47548 DOS_PART, as a DOS partition is counted from one instead of zero
47549 now. Reported by Robert Millan.
47550
47551 2006-10-14 Robert Millan <rmh@aybabtu.com>
47552
47553 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
47554 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
47555 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
47556 string returned by grub_guess_root_device.
47557 * util/i386/pc/grub-setup.c: Likewise.
47558 * util/i386/pc/grub-probefs.c: Likewise.
47559
47560 * util/i386/pc/grub-probefs.c: Rename to ...
47561 * util/i386/pc/grub-probe.c: ... this.
47562 * DISTLIST: Remove grub-probefs, add grub-probe.
47563 * conf/i386-efi.rmk: Likewise.
47564 * conf/i386-pc.rmk: Likewise.
47565 * util/i386/pc/grub-install.in: Likewise.
47566
47567 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
47568 choose which information we want to print.
47569
47570 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
47571
47572 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
47573 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
47574 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
47575 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
47576 video/readers/tga.c and video/i386/pc/vbeutil.c.
47577
47578 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
47579
47580 Added support for RAID and LVM.
47581
47582 * disk/lvm.c: New file.
47583 * disk/raid.c: Likewise.
47584 * include/grub/lvm.h: Likewise.
47585 * include/grub/raid.h: Likewise.
47586 * include/grub/util/lvm.h: Likewise.
47587 * include/grub/util/raid.h: Likewise.
47588 * util/lvm.c: Likewise.
47589 * util/raid.c: Likewise.
47590
47591 * include/grub/disk.h (grub_disk_dev_id): Add
47592 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
47593 (grub_disk_get_size): New prototype.
47594 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
47595 returns a partition.
47596 (grub_disk_get_size): New function.
47597
47598 * kern/i386/pc/init.c (make_install_device): Copy the prefix
47599 verbatim if grub_install_dos_part is -2.
47600
47601 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
47602 and LVM devices.
47603
47604 * util/i386/pc/grub-setup.c (setup): New argument
47605 MUST_EMBED. Force embedding of GRUB when the argument is
47606 true. Close FILE before returning.
47607 (main): Add support for RAID and LVM.
47608
47609 * conf/common.rmk: Add RAID and LVM modules.
47610 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
47611 util/lvm.c.
47612 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
47613
47614 * kern/misc.c (grub_strstr): New function.
47615 * include/grub/misc.h (grub_strstr): New prototype.
47616
47617 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
47618
47619 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
47620
47621 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
47622
47623 * kern/misc.c (grub_strtoull): Guess the base only if not
47624 specified.
47625
47626 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
47627
47628 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
47629 PowerMac support.
47630
47631 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
47632
47633 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
47634
47635 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
47636 Remove `flags' argument. All callers changed.
47637 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
47638 (IEEE1275_IHANDLE_INVALID): New variable.
47639 (IEEE1275_CELL_INVALID): New variable.
47640 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
47641 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
47642 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
47643 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
47644 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
47645 codes from Open Firmware. All callers updated.
47646 (grub_ieee1275_next_property): Directly return Open Firmware return
47647 code.
47648 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
47649 Standardize error checking from `grub_ieee1275_get_property'.
47650 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
47651 `devalias' to `aliases'. Correct comments. Consolidate error paths.
47652
47653 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
47654
47655 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
47656 `instance_to_package_args' to `instance_to_path_args'.
47657
47658 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
47659 `grub_ieee1275_chosen'.
47660
47661 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
47662 `grub_ieee1275_interpret'.
47663
47664 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
47665
47666 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
47667
47668 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
47669
47670 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
47671 (__cmpdi): Likewise.
47672
47673 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
47674 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
47675 `grub_ssize_t'.
47676
47677 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
47678
47679 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
47680 to type `grub_ssize_t'.
47681 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
47682
47683 2006-09-22 Marco Gerards <marco@gnu.org>
47684
47685 * normal/script.c (grub_script_create_cmdmenu): Skip leading
47686 newlines.
47687
47688 2006-09-22 Marco Gerards <marco@gnu.org>
47689
47690 * commands/echo.c: New file.
47691
47692 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
47693
47694 * conf/common.rmk (echo_mod_SOURCES): New variable.
47695 (echo_mod_CFLAGS): Likewise.
47696 (echo_mod_LDFLAGS): Likewise.
47697
47698 2006-09-22 Marco Gerards <marco@gnu.org>
47699
47700 * normal/main.c (get_line): Malloc memory instead of using
47701 preallocated memory. Removed the arguments `cmdline' and
47702 `max_len'. Updated all callers.
47703
47704 2006-09-22 Marco Gerards <marco@gnu.org>
47705
47706 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
47707 (normal_mod_DEPENDENCIES): Likewise.
47708
47709 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
47710 (normal_mod_DEPENDENCIES): Likewise.
47711
47712 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
47713
47714 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
47715
47716 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
47717 programs.
47718 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
47719 (normal_mod_DEPENDENCIES): Likewise.
47720 * conf/i386-pc.mk: Regenerate.
47721 * conf/i386-efi.mk: Likewise
47722 * conf/common.mk: Likewise.
47723 * conf/powerpc-ieee1275.mk: Likewise.
47724 * conf/sparc64-ieee1275.mk: Likewise.
47725
47726 2006-09-22 Robert Millan <rmh@aybabtu.com>
47727
47728 Sync with i386 version.
47729 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
47730 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
47731
47732 2006-09-21 Robert Millan <rmh@aybabtu.com>
47733
47734 Import from GRUB Legacy (lib/device.c):
47735 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
47736 (init_device_map) [__linux__]: Add support for I2O devices.
47737
47738 2006-09-14 Marco Gerards <marco@gnu.org>
47739
47740 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
47741 `-melf_i386'.
47742
47743 2006-09-14 Robert Millan <rmh@aybabtu.com>
47744
47745 * util/i386/pc/grub-install.in: Skip menu.lst when removing
47746 /boot/grub/*.lst.
47747
47748 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
47749
47750 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
47751 before adding it to device.map.
47752
47753 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
47754
47755 * genmk.rb: Let GCC generate dependencies the first time it
47756 compiles a file; using the -MD option.
47757 * conf/common.mk: Regenerate.
47758 * conf/i386-pc.mk: Likewise.
47759 * conf/i386-efi.mk: Likewise.
47760 * conf/powerpc-ieee1275.mk: Likewise.
47761 * conf/sparc64-ieee1275.mk: Likewise.
47762
47763 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
47764
47765 Move the prototypes of grub_setjmp and grub_longjmp to
47766 cpu/setjmp.h, so that each architecture may specify different
47767 attributes.
47768
47769 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
47770 (grub_longjmp): Likewise.
47771 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
47772 (grub_longjmp): Likewise.
47773 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
47774 (grub_longjmp): Likewise.
47775
47776 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
47777 [!GRUB_UTIL] (grub_longjmp): Removed.
47778
47779 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
47780
47781 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
47782 "color!" method does not return any value.
47783
47784 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
47785
47786 * include/grub/bitmap.h: New file.
47787
47788 * include/grub/i386/pc/vbeutil.h: Likewise.
47789
47790 * video/bitmap.c: Likewise.
47791
47792 * video/readers/tga.c: Likewise.
47793
47794 * video/i386/pc/vbeutil.c: Likewise.
47795
47796 * commands/videotest.c: Code cleanup and updated to reflect to new
47797 video API.
47798
47799 * term/gfxterm.c: Likewise.
47800
47801 * video/video.c: Likewise.
47802
47803 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
47804 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
47805 (bitmap_mod_SOURCES): New entry.
47806 (bitmap_mod_CFLAGS): Likewise.
47807 (bitmap_mod_LDFLAGS): Likewise.
47808 (tga_mod_SOURCES): Likewise.
47809 (tga_mod_CFLAGS): Likewise.
47810 (tga_mod_LDFLAGS): Likewise.
47811
47812 * include/grub/video.h (grub_video_blit_operators): New enum type.
47813 (grub_video_render_target): Changed as forward declaration and moved
47814 actual definition to be video driver specific.
47815 (grub_video_adapter.blit_bitmap): Added blitting operator.
47816 (grub_video_adapter.blit_render_target): Likewise.
47817 (grub_video_blit_bitmap): Likewise.
47818 (grub_video_blit_render_target): Likewise.
47819
47820 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
47821 driver specific render target definition.
47822 (grub_video_vbe_map_rgba): Added driver internal helper.
47823 (grub_video_vbe_unmap_color): Updated to use
47824 grub_video_i386_vbeblit_info.
47825 (grub_video_vbe_get_video_ptr): Likewise.
47826
47827 * include/grub/i386/pc/vbeblit.h
47828 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
47829 grub_video_i386_vbeblit_info.
47830 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
47831 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
47832 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
47833 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
47834 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
47835 (grub_video_i386_vbeblit_index_index): Likewise.
47836 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
47837 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
47838 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
47839 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
47840 operator.
47841 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
47842 operator.
47843
47844 * video/i386/pc/vbeblit.c: Updated to reflect changes on
47845 include/grub/i386/pc/vbeblit.h.
47846
47847 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
47848 Updated to use grub_video_i386_vbeblit_info.
47849 (grub_video_i386_vbefill_R8G8B8): Likewise.
47850 (grub_video_i386_vbefill_index): Likewise.
47851 (grub_video_i386_vbefill): Added generic filler.
47852
47853 * video/i386/pc/vbefill.c: Updated to reflect changes on
47854 include/grub/i386/pc/vbefill.h.
47855
47856 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
47857 grub_video_i386_vbeblit_info.
47858 (grub_video_vbe_unmap_color): Likewise.
47859 (grub_video_vbe_blit_glyph): Likewise.
47860 (grub_video_vbe_scroll): Likewise.
47861 (grub_video_vbe_draw_pixel): Removed function.
47862 (grub_video_vbe_get_pixel): Likewise.
47863 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
47864 updated code to use it.
47865 (common_blitter): Added common blitter for render target and bitmap.
47866 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
47867 (grub_video_vbe_blit_render_target): Likewise.
47868
47869 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
47870
47871 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
47872 is in text mode if there is no console control protocol instance
47873 available.
47874
47875 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
47876
47877 * include/grub/video.h: Code cleanup.
47878
47879 * include/grub/i386/pc/vbe.h: Likewise.
47880
47881 * video/i386/pc/vbe.c: Likewise.
47882
47883 * video/i386/pc/vbeblit.c: Likewise.
47884
47885 * video/i386/pc/vbefill.c: Likewise.
47886
47887 * video/video.c: Likewise. Also added more comments.
47888
47889 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
47890
47891 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
47892 (struct grub_biosdisk_dap): Likewise.
47893
47894 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
47895 linkage settings for all functions.
47896
47897 2006-07-12 Marco Gerards <marco@gnu.org>
47898
47899 * configure.ac (--enable-mm-debug): Fix typo.
47900
47901 * genkernsyms.sh.in: Use proper quoting for `CC'.
47902
47903 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
47904
47905 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
47906 (normal_mod_ASFLAGS): Remove "-m32".
47907
47908 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
47909
47910 * util/misc.c: Include config.h.
47911 [!HAVE_MEMALIGN]: Do not include malloc.h.
47912 (grub_memalign): Use posix_memalign, if present. Then, use
47913 memalign, if present. Otherwise, emit an error.
47914
47915 * util/grub-emu.c: Do not include malloc.h.
47916
47917 * include/grub/util/misc.h: Include unistd.h. This is required for
47918 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
47919 D. Eades III <hde@foobar-qux.org>.
47920
47921 * configure.ac (AC_GNU_SOURCE): Added.
47922 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
47923 type.
47924
47925 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
47926
47927 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
47928 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
47929
47930 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
47931
47932 * include/grub/types.h (grub_host_addr_t): Rename to
47933 grub_target_addr_t.
47934 (grub_host_off_t): Rename to grub_target_off_t.
47935 (grub_host_size_t): Rename to grub_target_size_t.
47936 (grub_host_ssize_t): Rename to grub_target_ssize_t.
47937 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
47938
47939 * include/grub/kernel.h (struct grub_module_header): Change type
47940 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
47941 (grub_module_info): Likewise.
47942
47943 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
47944
47945 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
47946 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
47947 Velazquez <jesus.velazquez@gmail.com>.
47948
47949 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
47950
47951 Count partitions from 1 instead of 0 in the string representation
47952 of partitions. Still use 0-based internally.
47953
47954 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
47955 (sun_partition_map_iterate): Use grub_partition_t instead of
47956 struct grub_partition *. Cast DESC->START_CYLINDER to
47957 grub_uint64_t after converting the endian.
47958 (sun_partition_map_probe): Subtract 1 for PARTNUM.
47959 (sun_partition_map_get_name): Add 1 to P->INDEX.
47960
47961 * partmap/pc.c (grub_partition_parse): Subtract 1 for
47962 PCDATA->DOS_PART.
47963 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
47964
47965 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
47966 zero instead of one.
47967 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
47968 (gpt_partition_map_get_name): Add 1 into P->INDEX.
47969
47970 * partmap/apple.c (apple_partition_map_iterate): Change the type
47971 of POS to unsigned.
47972 (apple_partition_map_probe): Subtract 1 for PARTNUM.
47973 (apple_partition_map_get_name): Add 1 into P->INDEX.
47974
47975 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
47976 of POS to unsigned.
47977 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
47978 calculate the offset of a partition.
47979 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
47980 (amiga_partition_map_get_name): Add 1 into P->INDEX.
47981
47982 * partmap/acorn.c (acorn_partition_map_find): Change the type of
47983 SECTOR to grub_disk_addr_t.
47984 (acorn_partition_map_iterate): Likewise.
47985 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
47986 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
47987 top.
47988 (acorn_partition_map_get_name): Add 1 into P->INDEX.
47989
47990 * kern/i386/pc/init.c (make_install_device): Add 1 into
47991 GRUB_INSTALL_DOS_PART.
47992
47993 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
47994 conditional.
47995
47996 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
47997
47998 Clean up the code to support 64-bit addressing in disks and
47999 files. This change is not enough for filesystems yet.
48000
48001 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
48002 type of "start" to grub_uint64_t.
48003 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
48004 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
48005 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
48006 convert addresses.
48007
48008 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
48009 to grub_disk_addr_t.
48010
48011 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
48012 string.
48013
48014 * partmap/pc.c (pc_partition_map_iterate): Likewise.
48015
48016 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
48017 to char *.
48018
48019 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
48020
48021 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
48022
48023 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
48024
48025 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
48026 to grub_off_t, to detect an error from grub_file_seek.
48027 (grub_multiboot_load_elf32): Likewise.
48028
48029 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
48030 maximum unsigned long value when an overflow is detected.
48031 (grub_strtoull): New function.
48032 (grub_divmod64): Likewise.
48033 (grub_lltoa): use grub_divmod64.
48034
48035 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
48036 grub_disk_addr_t.
48037 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
48038 the pointer to next character. Use grub_strtoull instead of
48039 grub_strtoul.
48040 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
48041 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
48042 respectively.
48043
48044 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
48045 return value is signed.
48046 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
48047 test if OFFSET is less than zero, as OFFSET is unsigned now.
48048
48049 * kern/disk.c (struct grub_disk_cache): Change the type of
48050 "sector" to grub_disk_addr_t.
48051 (grub_disk_cache_get_index): Change the type of SECTOR to
48052 grub_disk_addr_t. Calculate the hash with SECTOR casted to
48053 unsigned after shifting.
48054 (grub_disk_cache_invalidate): Change the type of SECTOR to
48055 grub_disk_addr_t.
48056 (grub_disk_cache_unlock): Likewise.
48057 (grub_disk_cache_store): Likewise.
48058 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
48059 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
48060 grub_disk_addr_t and grub_uint64_t, respectively.
48061 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
48062 body, as the value of OFFSET is tweaked by
48063 grub_disk_check_range. Change the types of START_SECTOR, LEN and
48064 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
48065 respectively.
48066 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
48067 body, as the value of OFFSET is tweaked by
48068 grub_disk_check_range. Change the types of LEN and N to
48069 grub_size_t.
48070
48071 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
48072 and "saved_offset" to grub_off_t.
48073 (test_header): Cast BUF to char *.
48074 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
48075 to char *.
48076 (grub_gzio_read): Change the types of OFFSET and SIZE to
48077 grub_off_t and grub_size_t, respectively.
48078
48079 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
48080 Removed.
48081 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
48082 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
48083 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
48084 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
48085 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
48086
48087 * include/grub/types.h (grub_off_t): Unconditionally set to
48088 grub_uint64_t.
48089 (grub_disk_addr_t): Changed to grub_uint64_t.
48090
48091 * include/grub/partition.h (struct grub_partition): Change the
48092 types of "start", "len" and "offset" to grub_disk_addr_t,
48093 grub_uint64_t and grub_disk_addr_t, respectively.
48094 (grub_partition_get_start): Return grub_disk_addr_t.
48095 (grub_partition_get_len): Return grub_uint64_t.
48096
48097 * include/grub/misc.h (grub_strtoull): New prototype.
48098 (grub_divmod64): Likewise.
48099
48100 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
48101 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
48102 grub_off_t, respectively.
48103 All callers and references changed.
48104
48105 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
48106 grub_size_t in "read".
48107 All callers and references changed.
48108
48109 * include/grub/file.h (struct grub_file): Change the types of
48110 "offset" and "size" to grub_off_t and grub_off_t,
48111 respectively. Change the type of SECTOR to grub_disk_addr_t in
48112 "read_hook".
48113 (grub_file_read): Change the type of LEN to grub_size_t.
48114 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
48115 grub_off_t.
48116 (grub_file_size): Return grub_off_t.
48117 (grub_file_tell): Likewise.
48118 All callers and references changed.
48119
48120 * include/grub/disk.h (struct grub_disk_dev): Change the types of
48121 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
48122 "write".
48123 (struct grub_disk): Change the type of "total_sectors" to
48124 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
48125 "read_hook".
48126 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
48127 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
48128 (grub_disk_write): Likewise.
48129 All callers and references changed.
48130
48131 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
48132 char * for grub_strncmp to silence gcc.
48133 (grub_iso9660_mount): Likewise.
48134 (grub_iso9660_mount): Likewise.
48135 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
48136 return statement.
48137 (grub_iso9660_iterate_dir): Likewise.
48138 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
48139
48140 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
48141 LEN to grub_disk_addr_t and grub_size_t, respectively.
48142
48143 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
48144
48145 * fs/jfs.c (grub_jfs_read_file): Likewise.
48146
48147 * fs/minix.c (grub_jfs_read_file): Likewise.
48148
48149 * fs/sfs.c (grub_jfs_read_file): Likewise.
48150
48151 * fs/ufs.c (grub_jfs_read_file): Likewise.
48152
48153 * fs/xfs.c (grub_jfs_read_file): Likewise.
48154
48155 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
48156 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
48157 respectively.
48158
48159 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
48160 BLKNR to -1 instead of returning GRUB_ERRNO.
48161 (grub_ext2_read_file): Change the types of SECTOR and
48162 LEN to grub_disk_addr_t and grub_size_t, respectively.
48163
48164 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
48165 LEN to grub_disk_addr_t and grub_size_t, respectively.
48166
48167 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
48168 grub_file_read.
48169
48170 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
48171 string. Do not cast SECTOR explicitly.
48172
48173 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
48174 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
48175 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
48176 grub_disk_addr_t and grub_size_t, respectively. If the sector is
48177 over 2TB and LBA mode is not supported, raise an error.
48178 (get_safe_sectors): New function.
48179 (grub_biosdisk_read): Use get_safe_sectors.
48180 (grub_biosdisk_write): Likewise.
48181
48182 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
48183 (grub_efidisk_write): Likewise.
48184
48185 * disk/loopback.c (delete_loopback): Cosmetic changes.
48186 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
48187 correctly.
48188 (grub_loopback_open): Likewise.
48189 (grub_loopback_read): Likewise. Also, change the type of POS to
48190 grub_off_t, and fix the usage of grub_memset.
48191
48192 * commands/i386/pc/play.c: Include grub/machine/time.h.
48193
48194 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
48195 print FILE->SIZE.
48196
48197 * commands/configfile.c: Include grub/env.h.
48198
48199 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
48200 GRUB_ERRNO directly instead. Change the type of POS to
48201 grub_off_t. Follow the coding standard.
48202
48203 * commands/blocklist.c: Include grub/partition.h.
48204 (grub_cmd_blocklist): Return an error if the underlying device is
48205 not a disk. Take the starting sector of a partition into account,
48206 if a partition is used.
48207
48208 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
48209 a length field.
48210 (lba_mode): Support 64-bit addresses.
48211 (chs_mode): Likewise.
48212 (copy_buffer): Adapted to the new offsets of a length field and a
48213 segment field.
48214 (blocklist_default_start): Allocate 64-bit space.
48215
48216 * boot/i386/pc/boot.S (force_lba): Removed.
48217 (boot_drive): Moved to under KERNEL_SECTOR.
48218 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
48219 space.
48220 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
48221 is useless.
48222 (lba_mode): Refactored to support a 64-bit address. More size
48223 optimization.
48224 (setup_sectors): Likewise.
48225
48226 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
48227
48228 * DISTLIST: Added include/grub/i386/linux.h. Removed
48229 include/grub/i386/pc/linux.h
48230
48231 * configure.ac (AC_INIT): Bumped to 1.94.
48232
48233 * config.guess: Updated from gnulib.
48234 * config.sub: Likewise.
48235 * install-sh: Likewise.
48236 * mkinstalldirs: Likewise.
48237
48238 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
48239
48240 * conf/common.rmk (grub_modules_init.lst): Depended on
48241 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
48242 MODSRCFILES.
48243
48244 * genmk.rb (PModule::rule): Reverted the previous change.
48245
48246 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
48247
48248 * conf/common.rmk (grub_modules_init.lst): Depends on
48249 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
48250 that the target does not exist before producing.
48251 (grub_modules_init.h): Remove the target before generating.
48252 (grub_emu_init.c): Likewise.
48253
48254 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
48255
48256 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
48257
48258 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
48259 for the target-specific tests. Make sure that we also have the
48260 up-to-date target variables for those tests.
48261
48262 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
48263
48264 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
48265 (PModule::rule): Likewise.
48266
48267 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
48268
48269 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
48270 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
48271 target-specific flags should be prefixed.
48272 (PModule::rule): Likewise.
48273
48274 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
48275
48276 * configure.ac (CMP): Check if cmp is available explicitly.
48277
48278 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
48279
48280 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
48281 (target_cpu): New variable.
48282 (pkglibdir): Use target_cpu instead of host_cpu.
48283
48284 * util/i386/pc/grub-install.in (host_cpu): Removed.
48285 (target_cpu): New variable.
48286 (pkglibdir): Use target_cpu instead of host_cpu.
48287
48288 * util/genmoddep.c: Removed.
48289
48290 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
48291 instead of GRUB_HOST_SIZEOF_VOID_P.
48292 * kern/dl.c: Likewise.
48293
48294 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
48295 ...
48296 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
48297 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
48298 (GRUB_TARGET_SIZEOF_LONG): ... this.
48299 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
48300 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
48301 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
48302 to ...
48303 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
48304 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
48305 (GRUB_TARGET_SIZEOF_LONG): ... this.
48306 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
48307 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
48308 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
48309 to ...
48310 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
48311 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
48312 (GRUB_TARGET_SIZEOF_LONG): ... this.
48313 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
48314 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
48315
48316 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
48317 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
48318 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
48319 instead of GRUB_HOST_SIZEOF_LONG.
48320 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
48321 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
48322 GRUB_CPU_WORDS_BIGENDIAN.
48323 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
48324 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
48325 grub_host_ssize_t.
48326
48327 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
48328 (genmoddep_SOURCES): Likewise.
48329 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
48330 (genmoddep_SOURCES): Likewise.
48331 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
48332 (genmoddep_SOURCES): Likewise.
48333 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
48334 Likewise.
48335 (genmoddep_SOURCES): Likewise.
48336
48337 * genmoddep.awk: New file.
48338
48339 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
48340 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
48341 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
48342 (PModule::rule): Likewise.
48343 (Program::rule): Likewise.
48344 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
48345 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
48346 respectively.
48347
48348 * configure.ac: Rewritten intensively to use host and target
48349 instead of build and host, respectively.
48350
48351 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
48352 (host_cpu): Removed.
48353 (target_cpu): New variable.
48354 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
48355 (BUILD_CC): Removed.
48356 (BUILD_CFLAGS): Likewise.
48357 (BUILD_CPPFLAGS): Likewise.
48358 (TARGET_CC): New variable.
48359 (TARGET_CFLAGS): Likewise.
48360 (TARGET_CPPFLAGS): Likewise.
48361 (TARGET_LDFLAGS): Likewise.
48362 (AWK): Likewise.
48363 (include): Use target_cpu instead of host_cpu.
48364 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
48365
48366 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
48367
48368 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
48369
48370 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
48371 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
48372 field 'false' to 'exec_on_false'.
48373 (grub_script_create_cmdif): Renamed argument names to reflect above
48374 changes.
48375
48376 * normal/execute.c (grub_script_execute_cmdif): Likewise.
48377
48378 * normal/script.c (grub_script_create_cmdif): Likewise.
48379
48380 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
48381
48382 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
48383 top.
48384 (grub_hfsplus_btree_recptr): Likewise.
48385 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
48386 FILEBLOCK both to pass a block number and store next block
48387 number.
48388 (grub_hfsplus_read_block): Rewritten heavily to support an extent
48389 overflow file correctly. Specify errors appropriately, because
48390 fshelp expects that GRUB_ERRNO is set when fails. Reuse
48391 grub_hfsplus_btree_recptr to get the pointer to a found key.
48392 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
48393 is found.
48394
48395 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
48396 linux.mod.
48397 (_linux_mod_SOURCES): New variable.
48398 (_linux_mod_CFLAGS): Likewise.
48399 (_linux_mod_LDFLAGS): Likewise.
48400 (linux_mod_SOURCES): Likewise.
48401 (linux_mod_CFLAGS): Likewise.
48402 (linux_mod_LDFLAGS): Likewise.
48403
48404 * DISTLIST: Added loader/i386/efi/linux.c,
48405 loader/i386/efi/linux_normal.c and
48406 include/grub/i386/efi/loader.h.
48407
48408 * loader/i386/efi/linux.c: New file.
48409 * loader/i386/efi/linux_normal.c: Likewise.
48410 * include/grub/i386/efi/loader.h: Likewise.
48411
48412 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
48413
48414 * commands/blocklist.c: New file.
48415
48416 * DISTLIST: Added commands/blocklist.c.
48417
48418 * term/efi/console.c (grub_console_highlight_color): Use a lighter
48419 color for the background, and a darker color for the foreground.
48420 (grub_console_checkkey): Return READ_KEY.
48421 (grub_console_cls): Set the background to
48422 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
48423
48424 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
48425
48426 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
48427 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
48428
48429 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
48430 prototype.
48431
48432 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
48433 BG. The spec is wrong again.
48434
48435 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
48436 prototype.
48437 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
48438
48439 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
48440 commands/blocklist.c.
48441 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48442
48443 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
48444 (blocklist_mod_SOURCES): New variable.
48445 (blocklist_mod_CFLAGS): Likewise.
48446 (blocklist_mod_LDFLAGS): Likewise.
48447
48448 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
48449
48450 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
48451 duplication.
48452 (lba_mode): Use %eax more intensively to reduce the code size.
48453
48454 2006-05-20 Marco Gerards <marco@gnu.org>
48455
48456 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
48457
48458 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
48459 for `menuentry'.
48460 (script): Accept leading newlines.
48461 (newlines): New rule to describe 0 or more newlines.
48462 (commands): Accept `command' with trailing newline. Fixed the
48463 order in which arguments were passed to `grub_script_add_cmd'.
48464 Accept commands separated by newlines.
48465 (function): Changed to accept newlines.
48466 (menuentry) Rewritten.
48467
48468 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
48469 front of the list, instead of to the end.
48470
48471 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
48472
48473 * util/i386/pc/grub-install.in (bindir): New variable.
48474 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
48475 Shaver <lbgwjl@gmail.com>.
48476
48477 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
48478
48479 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
48480 grub/machine/linux.h
48481 * loader/i386/pc/linux.c: Likewise.
48482
48483 * include/grub/i386/pc/linux.h: Moved to ...
48484 * include/grub/i386/linux.h: ... here.
48485
48486 * include/grub/i386/linux.h (struct linux_kernel_params): New
48487 struct.
48488
48489 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
48490
48491 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
48492 checking.
48493 (grub_video_vbe_blit_glyph): Likewise.
48494 (grub_video_vbe_blit_bitmap): Likewise.
48495 (grub_video_vbe_blit_render_target): Likewise.
48496
48497 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
48498
48499 * configure.ac (--with-platform): Properly quote the square
48500 brackets.
48501
48502 2006-05-08 Marco Gerards <marco@gnu.org>
48503
48504 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
48505 this...
48506 (kernel_elf_HEADERS): ...to this. Updated all users.
48507 (grubof_symlist.c): Renamed from this...
48508 (kernel_elf_symlist.c): ...to this. Updated all users.
48509 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
48510 (grubof_SOURCES): Renamed from this...
48511 (kernel_elf_SOURCES): ...to this.
48512 (grubof_HEADERS): Renamed from this...
48513 (kernel_elf_HEADERS): ...to this.
48514 (grubof_CFLAGS): Renamed from this...
48515 (kernel_elf_CFLAGS): ...to this.
48516 (grubof_ASFLAGS): Renamed from this...
48517 (kernel_elf_ASFLAGS): ...to this.
48518 (grubof_LDFLAGS): Renamed from this...
48519 (kernel_elf_LDFLAGS): ...to this.
48520
48521 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
48522 this...
48523 (kernel_elf_HEADERS): ...to this. Updated all users.
48524 (grubof_symlist.c): Renamed from this...
48525 (kernel_elf_symlist.c): ...to this. Updated all users.
48526 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
48527 (grubof_SOURCES): Renamed from this...
48528 (kernel_elf_SOURCES): ...to this.
48529 (grubof_HEADERS): Renamed from this...
48530 (kernel_elf_HEADERS): ...to this.
48531 (grubof_CFLAGS): Renamed from this...
48532 (kernel_elf_CFLAGS): ...to this.
48533 (grubof_ASFLAGS): Renamed from this...
48534 (kernel_elf_ASFLAGS): ...to this.
48535 (grubof_LDFLAGS): Renamed from this...
48536 (kernel_elf_LDFLAGS): ...to this.
48537
48538 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
48539 `kernel.elf' instead of `grubof'.
48540
48541 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
48542
48543 Add --with-platform to configure. Use pkglibdir instead of
48544 pkgdatadir. This is reported by Roger Leigh.
48545
48546 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
48547 (host_vendor): Likewise.
48548 (host_os): Likewise.
48549 (pkgdatadir): Likewise.
48550 (platform): New variable.
48551 (pkglibdir): Likewise.
48552 Use PKGLIBDIR instead of PKGDATADIR.
48553
48554 * util/i386/pc/grub-install.in (datadir): Removed.
48555 (host_vendor): Likewise.
48556 (host_os): Likewise.
48557 (pkgdatadir): Likewise.
48558 (platform): New variable.
48559 (pkglibdir): Likewise.
48560 Use PKGLIBDIR instead of PKGDATADIR.
48561
48562 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
48563 instead of GRUB_DATADIR.
48564 (main): Likewise.
48565 * util/i386/pc/grub-mkimage.c (usage): Likewise.
48566 (main): Likewise.
48567 * util/i386/efi/grub-mkimage.c (usage): Likewise.
48568 (main): Likewise.
48569
48570 * configure.ac (--with-platform): New option.
48571 Use PLATFORM instead of HOST_VENDOR to specify a platform.
48572
48573 * Makefile.in: Include a makefile based on PLATFORM instead of
48574 HOST_VENDOR.
48575 (pkgdatadir): Not appended by the machine type.
48576 (pkglibdir): Appended by the machine type.
48577 (host_vendor): Removed.
48578 (platform): New variable.
48579 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
48580 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
48581 (uninstall): Likewise.
48582
48583 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
48584
48585 Use the environment context in the menu. Remove the commands
48586 "default" and "timeout", and use variables instead.
48587
48588 * normal/menu.c: Include grub/env.h.
48589 (print_entry): Cast TITLE to silence gcc.
48590 (get_timeout): New function.
48591 (set_timeout): Likewise.
48592 (get_entry_number): Likewise.
48593 (run_menu): Use a default entry, a fallback entry and a timeout
48594 in the environment variables "default", "fallback" and
48595 "timeout". Also, tweak the default entry if it is not within the
48596 current menu entries.
48597 (grub_menu_run): Use a fallback entry in the environment variable
48598 "fallback".
48599
48600 * normal/main.c (read_config_file): Do not initialize
48601 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
48602 NEWMENU->TIMEOUT.
48603 (grub_normal_execute): Use a data slot to store the menu.
48604
48605 * include/grub/normal.h (struct grub_menu): Removed default_entry,
48606 fallback_entry and timeout.
48607 (struct grub_menu_list): Removed.
48608 (grub_menu_list_t): Likewise.
48609 (struct grub_context): Likewise.
48610 (grub_context_t): Likewise.
48611 (grub_context_get): Likewise.
48612 (grub_context_get_current_menu): Likewise.
48613 (grub_context_push_menu): Likewise.
48614 (grub_context_pop_menu): Likewise.
48615 (grub_default_init): Likewise.
48616 (grub_default_fini): Likewise.
48617 (grub_timeout_init): Likewise.
48618 (grub_timeout_fini): Likewise.
48619
48620 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
48621 and timeout.mod.
48622 (normal_mod_SOURCES): Removed normal/context.c.
48623
48624 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
48625 commands/default.c, commands/timeout.c and normal/context.c.
48626 (normal_mod_SOURCES): Removed normal/context.c.
48627
48628 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
48629 commands/timeout.c and normal/context.c.
48630 (normal_mod_SOURCES): Removed normal/context.c.
48631
48632 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
48633 commands/default.c, commands/timeout.c and normal/context.c.
48634 (normal_mod_SOURCES): Removed normal/context.c.
48635
48636 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
48637 timeout.mod.
48638 (default_mod_SOURCES): Removed.
48639 (default_mod_CFLAGS): Likewise.
48640 (default_mod_LDFLAGS): Likewise.
48641 (timeout_mod_SOURCES): Removed.
48642 (timeout_mod_CFLAGS): Likewise.
48643 (timeout_mod_LDFLAGS): Likewise.
48644
48645 * DISTLIST: Removed commands/default.c, commands/timeout.c and
48646 normal/context.c.
48647
48648 * commands/default.c: Removed.
48649 * commands/timeout.c: Likewise.
48650 * normal/context.c: Likewise.
48651
48652 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
48653
48654 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
48655
48656 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
48657
48658 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
48659 "next" to "prev" for readability.
48660 (struct grub_env_sorted_var): New struct.
48661 (grub_env_context): Renamed to ...
48662 (initial_context): ... this.
48663 (grub_env_var_context): Renamed to ...
48664 (current_context): ... this.
48665 (grub_env_find): Look only at CURRENT_CONTEXT.
48666 (grub_env_context_open): Rewritten to copy exported variables from
48667 previous context.
48668 (grub_env_context_close): Rewritten according to the new
48669 scheme. Also, add an assertion to prevent the initial context from
48670 removed.
48671 (grub_env_insert): Removed the code for the sorted list.
48672 (grub_env_remove): Likewise.
48673 (grub_env_export): Simply mark the variable with
48674 GRUB_ENV_VAR_GLOBAL.
48675 (grub_env_set): A cosmetic change for naming consistency.
48676 (grub_env_get): Likewise.
48677 (grub_env_unset): Likewise.
48678 (grub_env_iterate): Rewritten to sort variables within this
48679 function.
48680 (grub_register_variable_hook): Fixed for naming consistency. Call
48681 grub_env_find again, only if NAME is not found at the first time.
48682 (mangle_data_slot_name): New function.
48683 (grub_env_set_data_slot): Likewise.
48684 (grub_env_get_data_slot): Likewise.
48685 (grub_env_unset_data_slot): Likewise.
48686
48687 * include/grub/env.h (grub_env_var_type): New enum.
48688 (GRUB_ENV_VAR_LOCAL): New constant.
48689 (GRUB_ENV_VAR_GLOBAL): Likewise.
48690 (GRUB_ENV_VAR_DATA): Likewise.
48691 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
48692 "type".
48693 (grub_env_set): Replace VAR with NAME for consistency.
48694 (grub_register_variable_hook): Likewise.
48695 (grub_env_export): Specify the name of the argument.
48696 (grub_env_set_data_slot): New prototype.
48697 (grub_env_get_data_slot): Likewise.
48698 (grub_env_unset_data_slot): Likewise.
48699
48700 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
48701
48702 Extend the loader so that GRUB can accept a loader which comes
48703 back to GRUB when a loaded image exits. Also, this change adds
48704 support for a chainloader on EFI.
48705
48706 * term/efi/console.c: Include grub/misc.h.
48707 (grub_console_checkkey): Display a scan code on the top for
48708 debugging. This will be removed once the EFI port gets stable.
48709 Correct the scan code mapping.
48710
48711 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
48712 allocate memory from larger regions, in order to reduce the number
48713 of allocated regions. Otherwise, the MacOSX loader panics.
48714 (filter_memory_map): Avoid less than 1MB for compatibility with
48715 other loaders.
48716 (add_memory_regions): Allocate from the tail of a region, if
48717 possible, to avoid allocating a region near to 1MB, for the MacOSX
48718 loader.
48719
48720 * kern/efi/init.c (grub_efi_set_prefix): Specify
48721 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
48722
48723 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
48724 argument IMAGE_HANDLE and specify it to get a loaded image.
48725 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
48726 grub_efi_get_loaded_image.
48727 (grub_efi_get_filename): Divide the length by the size of
48728 grub_efi_char16_t.
48729 (grub_efi_get_device_path): New function.
48730 (grub_efi_print_device_path): Print End Device Path nodes. Divide
48731 the length by the size of grub_efi_char16_t for a file path device
48732 path node.
48733
48734 * kern/loader.c (grub_loader_noreturn): New variable.
48735 (grub_loader_set): Accept a new argument NORETURN. Set
48736 GRUB_LOADER_NORETURN to NORETURN.
48737 All callers changed.
48738 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
48739 grub_machine_fini.
48740
48741 * include/grub/efi/efi.h (grub_efi_get_device_path): New
48742 prototype.
48743 (grub_efi_get_loaded_image): Take an argument to specify an image
48744 handle.
48745
48746 * include/grub/loader.h (grub_loader_set): Added one more argument
48747 NORETURN.
48748
48749 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
48750 instead of grub_efi_open_protocol.
48751 (grub_efidisk_get_device_name): Likewise.
48752 (grub_efidisk_close): Print a newline.
48753 (grub_efidisk_get_device_handle): Fixed to use
48754 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
48755 GRUB_EFI_DEVICE_PATH_TYPE.
48756
48757 * disk/efi/efidisk.c (device_path_guid): Moved to ...
48758 * kern/efi/efi.c (device_path_guid): ... here.
48759
48760 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
48761 chain.mod.
48762 (kernel_mod_HEADERS): Added efi/disk.h.
48763 (_chain_mod_SOURCES): New variable.
48764 (_chain_mod_CFLAGS): Likewise.
48765 (_chain_mod_LDFLAGS): Likewise.
48766 (chain_mod_SOURCES): Likewise.
48767 (chain_mod_CFLAGS): Likewise.
48768 (chain_mod_LDFLAGS): Likewise.
48769
48770 * DISTLIST: Added include/grub/efi/chainloader.h,
48771 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
48772
48773 * include/grub/efi/chainloader.h: New file.
48774 * loader/efi/chainloader.c: Likewise.
48775 * loader/efi/chainloader_normal.c: Likewise.
48776
48777 2006-04-30 Marco Gerards <marco@gnu.org>
48778
48779 * commands/configfile.c (grub_cmd_source): New function.
48780 (GRUB_MOD_INIT): Register the commands `source' and `.'.
48781 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
48782
48783 2006-04-30 Marco Gerards <marco@gnu.org>
48784
48785 * normal/execute.c (grub_script_execute_cmd): Change the return
48786 type to `grub_err_t'. Correctly return the error.
48787 (grub_script_execute_cmdline): In case a command line is not a
48788 command or a function, try to interpret it as an assignment.
48789
48790 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
48791
48792 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
48793 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
48794 skip a node whose name is obviously invalid as UTF-16,
48795 i.e. contains a NUL character. Stop the iteration when the last
48796 directory entry is found. Instead of using the return value of
48797 grub_hfsplus_btree_iterate_node, store the value in RET and use
48798 it, because the iterator can be stopped by the last directory
48799 entry.
48800
48801 2006-04-30 Marco Gerards <marco@gnu.org>
48802
48803 * include/grub/env.h (grub_env_export): New prototype. Reported
48804 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
48805
48806 2006-04-30 Marco Gerards <marco@gnu.org>
48807
48808 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
48809 size of the extents in a catalog file record.
48810
48811 2006-04-29 Marco Gerards <marco@gnu.org>
48812
48813 * commands/configfile.c (grub_cmd_configfile): Execute the
48814 configfile within its own context.
48815
48816 * include/grub/env.h (grub_env_context_open): New prototype.
48817 (grub_env_context_close): Likewise.
48818
48819 * kern/env.c (grub_env): Removed.
48820 (grub_env_sorted): Likewise.
48821 (grub_env_context): New variable.
48822 (grub_env_var_context): Likewise.
48823 (grub_env_find): Search both the active context and the global
48824 context.
48825 (grub_env_context_open): New function.
48826 (grub_env_context_close): Likewise.
48827 (grub_env_insert): Likewise.
48828 (grub_env_remove): Likewise.
48829 (grub_env_export): Likewise.
48830 (grub_env_set): Changed to use helper functions to avoid code
48831 duplication.
48832 (grub_env_iterate): Rewritten so both the current context and the
48833 global context are being used.
48834
48835 * normal/command.c (export_command): New function.
48836 (grub_command_init): Register the `export' function.
48837
48838 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
48839
48840 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
48841 explicitly to suppress gcc's warnings.
48842 * fs/fat.c (grub_fat_find_dir): Likewise.
48843 (grub_fat_label): Likewise.
48844 * fs/xfs.c (grub_xfs_read_inode): Likewise.
48845 (grub_xfs_mount): Likewise.
48846 (grub_xfs_label): Likewise.
48847 * fs/affs.c (grub_affs_mount): Likewise.
48848 (grub_affs_label): Likewise.
48849 (grub_affs_iterate_dir): Likewise.
48850 * fs/sfs.c (grub_sfs_mount): Likewise.
48851 (grub_sfs_iterate_dir): Likewise.
48852 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
48853 * fs/hfs.c (grub_hfs_mount): Likewise.
48854 (grub_hfs_cmp_catkeys): Likewise.
48855 (grub_hfs_find_dir): Likewise.
48856 (grub_hfs_dir): Likewise.
48857 (grub_hfs_label): Likewise.
48858 * fs/jfs.c (grub_jfs_mount): Likewise.
48859 (grub_jfs_opendir): Likewise.
48860 (grub_jfs_getent): Likewise.
48861 (grub_jfs_lookup_symlink): Likewise.
48862 (grub_jfs_label): Likewise.
48863 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
48864 (grub_hfsplus_iterate_dir): Likewise.
48865 (grub_hfsplus_btree_iterate_node): Made static.
48866
48867 * util/grub-emu.c (prefix): New variable.
48868 (grub_machine_set_prefix): New function.
48869 (main): Do not set the environment variable "prefix" here. Only
48870 set PREFIX, which is used later by grub_machine_set_prefix.
48871
48872 * include/grub/video.h: Do not include grub/symbol.h.
48873 (grub_video_register): Not exported. This symbol is not defined in
48874 the kernel.
48875 (grub_video_unregister): Likewise.
48876 (grub_video_iterate): Likewise.
48877 (grub_video_setup): Likewise.
48878 (grub_video_restore): Likewise.
48879 (grub_video_get_info): Likewise.
48880 (grub_video_get_blit_format): Likewise.
48881 (grub_video_set_palette): Likewise.
48882 (grub_video_get_palette): Likewise.
48883 (grub_video_set_viewport): Likewise.
48884 (grub_video_get_viewport): Likewise.
48885 (grub_video_map_color): Likewise.
48886 (grub_video_map_rgb): Likewise.
48887 (grub_video_map_rgba): Likewise.
48888 (grub_video_fill_rect): Likewise.
48889 (grub_video_blit_glyph): Likewise.
48890 (grub_video_blit_bitmap): Likewise.
48891 (grub_video_blit_render_target): Likewise.
48892 (grub_video_scroll): Likewise.
48893 (grub_video_swap_buffers): Likewise.
48894 (grub_video_create_render_target): Likewise.
48895 (grub_video_delete_render_target): Likewise.
48896 (grub_video_set_active_render_target): Likewise.
48897
48898 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
48899 Undefined.
48900 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
48901
48902 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
48903 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
48904 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
48905 instead of $(srcdir)/genkernsyms.sh.
48906
48907 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
48908 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
48909 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
48910 instead of $(srcdir)/genkernsyms.sh.
48911
48912 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
48913 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
48914 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
48915 instead of $(srcdir)/genkernsyms.sh.
48916
48917 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
48918 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
48919 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
48920 instead of $(srcdir)/genkernsyms.sh.
48921
48922 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
48923 genkernsyms.sh.
48924
48925 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
48926 genkernsyms.sh.
48927 (gensymlist.sh): New target.
48928 (genkernsyms.sh): Likewise.
48929
48930 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
48931 genkernsyms.sh.in and gensymlist.sh.in.
48932
48933 * genkernsyms.sh: Removed.
48934 * gensymlist.sh: Likewise.
48935
48936 * genkernsyms.sh.in: New file.
48937 * gensymlist.sh.in: Likewise.
48938
48939 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
48940
48941 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
48942 clobber "prefix", since we may have already set it manually.
48943
48944 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
48945
48946 * kern/misc.c (abort): New alias for grub_abort.
48947
48948 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
48949
48950 A new machine-specific function "grub_machine_set_prefix" is
48951 defined. This is called after loading modules, so that a prefix
48952 initialization can use modules. Also, this change adds an
48953 intensive debugging feature for the memory manager via the
48954 configure option "--enable-mm-debug".
48955
48956 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
48957 PART.LEN.
48958
48959 * kern/sparc64/ieee1275/init.c (abort): Removed.
48960 (grub_stop): Likewise.
48961 (grub_exit): New function.
48962 (grub_set_prefix): Renamed to ...
48963 (grub_machine_set_prefix): ... this.
48964 (grub_machine_init): Do not call grub_set_prefix.
48965
48966 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
48967 (grub_machine_set_prefix): ... this.
48968 (grub_machine_init): Do not call grub_set_prefix.
48969
48970 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
48971 (grub_machine_init): Do not set the prefix here.
48972
48973 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
48974
48975 * kern/efi/init.c: Include grub/mm.h.
48976 (grub_efi_set_prefix): New function.
48977
48978 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
48979 (grub_efi_get_filename): New function.
48980 (grub_print_device_path): Renamed to ...
48981 (grub_efi_print_device_path): ... this.
48982
48983 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
48984 [MM_DEBUG] (grub_realloc): Likewise.
48985 [MM_DEBUG] (grub_free): Likewise.
48986 [MM_DEBUG] (grub_memalign): Likewise.
48987 [MM_DEBUG] (grub_mm_debug): New variable.
48988 [MM_DEBUG] (grub_debug_malloc): New function.
48989 [MM_DEBUG] (grub_debug_free): New function.
48990 [MM_DEBUG] (grub_debug_realloc): New function.
48991 [MM_DEBUG] (grub_debug_memalign): New function.
48992
48993 * kern/misc.c (grub_abort): Print a newline to distinguish
48994 the message.
48995
48996 * kern/main.c (grub_main): Call grub_machine_set_prefix and
48997 grub_set_root_dev after loading modules. This is necessary when
48998 setting a prefix depends on modules.
48999
49000 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
49001 (grub_efi_print_device_path): ... this.
49002 (grub_efi_get_filename): New prototype.
49003 (grub_efi_set_prefix): Likewise.
49004
49005 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
49006 and grub/disk.h.
49007 (grub_efidisk_get_device_handle): New prototype.
49008 (grub_efidisk_get_device_name): Likewise.
49009
49010 * include/grub/mm.h: Include config.h.
49011 (MM_DEBUG): Removed.
49012 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
49013 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
49014 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
49015 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
49016 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
49017 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
49018 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
49019 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
49020 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
49021
49022 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
49023
49024 * disk/efi/efidisk.c: Include grub/partition.h.
49025 (iterate_child_devices): New function.
49026 (add_device): First, compare only last device path nodes, so that
49027 devices are sorted by the types.
49028 (grub_efidisk_get_device_handle): New function.
49029 (grub_efidisk_get_device_name): Likewise.
49030
49031 * configure.ac (--enable-mm-debug): New option to enable the
49032 memory manager debugging feature. This makes the binary much
49033 bigger, so is disabled by default.
49034
49035 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
49036
49037 Use grub_abort instead of grub_stop, and grub_exit must be
49038 define in each architecture now. Also, this change adds support
49039 for EFI disks.
49040
49041 * util/i386/pc/grub-probefs.c: Include grub/term.h.
49042 (grub_getkey): New function.
49043 (grub_term_get_current): Likewise.
49044
49045 * util/i386/pc/grub-setup.c: Include grub/term.h.
49046 (grub_getkey): New function.
49047 (grub_term_get_current): Likewise.
49048
49049 * util/misc.c (grub_stop): Renamed to ...
49050 (grub_exit): ... this.
49051
49052 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
49053 (grub_exit): ... this.
49054 (grub_machine_init): Use grub_abort instead of abort.
49055 (grub_stop): Removed.
49056
49057 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
49058 abort.
49059
49060 * kern/i386/pc/startup.S (grub_exit): New function.
49061 (cold_reboot): New label.
49062
49063 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
49064 (grub_efi_init): Call grub_efidisk_init.
49065 (grub_efi_fini): Call grub_efidisk_fini.
49066
49067 * kern/efi/efi.c: Include grub/mm.h.
49068 (grub_efi_console_control_guid): Renamed to ...
49069 (console_control_guid): ... this.
49070 (grub_efi_loaded_image_guid): Renamed to ...
49071 (loaded_image_guid): ... this.
49072 (grub_efi_locate_handle): New function.
49073 (grub_efi_open_protocol): Likewise.
49074 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
49075 GRUB_EFI_CONSOLE_CONTROL_GUID.
49076 (grub_efi_exit): Removed.
49077 (grub_stop): Likewise.
49078 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
49079 (grub_exit): New function.
49080 (grub_print_device_path): Likewise.
49081
49082 * kern/rescue.c (grub_rescue_cmd_exit): New function.
49083 (grub_enter_rescue_mode): Register "exit".
49084
49085 * kern/misc.c (grub_real_dprintf): A cosmetic change.
49086 (grub_abort): New function.
49087
49088 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
49089
49090 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
49091
49092 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
49093
49094 * include/grub/efi/efi.h (grub_efi_exit): Removed.
49095 (grub_print_device_path): New prototype.
49096 (grub_efi_locate_handle): Likewise.
49097 (grub_efi_open_protocol): Likewise.
49098
49099 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
49100 * disk/efi/efidisk.c: Likewise.
49101
49102 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
49103
49104 * include/grub/efi/console_control.h
49105 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
49106
49107 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
49108 last 8 bytes as an array.
49109 (GRUB_EFI_DISK_IO_GUID): New macro.
49110 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
49111 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
49112 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
49113 grub_uint8_t.
49114 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
49115 (struct grub_efi_device_path): Rename the member "sub_type" to
49116 "subtype".
49117 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
49118 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
49119 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
49120 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
49121 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
49122 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
49123 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
49124 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
49125 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
49126 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
49127 (struct grub_efi_pci_device_path): New structure.
49128 (grub_efi_pci_device_path_t): New type.
49129 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
49130 (struct grub_efi_pccard_device_path): New structure.
49131 (grub_efi_pccard_device_path_t): New type.
49132 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
49133 (struct grub_efi_memory_mapped_device_path): New structure.
49134 (grub_efi_memory_mapped_device_path_t): New type.
49135 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
49136 (struct grub_efi_vendor_device_path): New structure.
49137 (grub_efi_vendor_device_path_t): New type.
49138 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
49139 (struct grub_efi_controller_device_path): New structure.
49140 (grub_efi_controller_device_path_t): New type.
49141 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
49142 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
49143 (struct grub_efi_acpi_device_path): New structure.
49144 (grub_efi_acpi_device_path_t): New type.
49145 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
49146 (struct grub_efi_expanded_acpi_device_path): New structure.
49147 (grub_efi_expanded_acpi_device_path_t): New type.
49148 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
49149 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
49150 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
49151 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
49152 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
49153 (struct grub_efi_atapi_device_path): New structure.
49154 (grub_efi_atapi_device_path_t): New type.
49155 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
49156 (struct grub_efi_fibre_channel_device_path): New structure.
49157 (grub_efi_fibre_channel_device_path_t): New type.
49158 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
49159 (struct grub_efi_1394_device_path): New structure.
49160 (grub_efi_1394_device_path_t): New type.
49161 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
49162 (struct grub_efi_usb_device_path): New structure.
49163 (grub_efi_usb_device_path_t): New type.
49164 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
49165 (struct grub_efi_usb_class_device_path): New structure.
49166 (grub_efi_usb_class_device_path_t): New type.
49167 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
49168 (struct grub_efi_i2o_device_path): New structure.
49169 (grub_efi_i2o_device_path_t): New type.
49170 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
49171 (struct grub_efi_mac_address_device_path): New structure.
49172 (grub_efi_mac_address_device_path_t): New type.
49173 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
49174 (struct grub_efi_ipv4_device_path): New structure.
49175 (grub_efi_ipv4_device_path_t): New type.
49176 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
49177 (struct grub_efi_ipv6_device_path): New structure.
49178 (grub_efi_ipv6_device_path_t): New type.
49179 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
49180 (struct grub_efi_infiniband_device_path): New structure.
49181 (grub_efi_infiniband_device_path_t): New type.
49182 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
49183 (struct grub_efi_uart_device_path): New structure.
49184 (grub_efi_uart_device_path_t): New type.
49185 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
49186 (struct grub_efi_vendor_messaging_device_path): New structure.
49187 (grub_efi_vendor_messaging_device_path_t): New type.
49188 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
49189 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
49190 (struct grub_efi_hard_drive_device_path): New structure.
49191 (grub_efi_hard_drive_device_path_t): New type.
49192 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
49193 (struct grub_efi_cdrom_device_path): New structure.
49194 (grub_efi_cdrom_device_path_t): New type.
49195 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
49196 (struct grub_efi_vendor_media_device_path): New structure.
49197 (grub_efi_vendor_media_device_path_t): New type.
49198 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
49199 (struct grub_efi_file_path_device_path): New structure.
49200 (grub_efi_file_path_device_path_t): New type.
49201 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
49202 (struct grub_efi_protocol_device_path): New structure.
49203 (grub_efi_protocol_device_path_t): New type.
49204 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
49205 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
49206 (struct grub_efi_bios_device_path): New structure.
49207 (grub_efi_bios_device_path_t): New type.
49208 (struct grub_efi_disk_io): New structure.
49209 (grub_efi_disk_io_t): New type.
49210 (struct grub_efi_block_io_media): New structure.
49211 (grub_efi_block_io_media_t): New type.
49212 (struct grub_efi_block_io): New structure.
49213 (grub_efi_block_io_t): New type.
49214
49215 * include/grub/misc.h (grub_stop): Removed.
49216 (grub_exit): New prototype.
49217 (grub_abort): Likewise.
49218
49219 * include/grub/disk.h (enum grub_disk_dev_id): Added
49220 GRUB_DISK_DEVICE_EFIDISK_ID.
49221
49222 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
49223 disk/efi/efidisk.c.
49224 (kernel_syms.lst): Remove the target if an error occurs.
49225
49226 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
49227
49228 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
49229 as it was simply too buggy.
49230
49231 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
49232
49233 * kern/misc.c (grub_lltoa): New function.
49234 (grub_vsprintf): Added support for the long long suffix,
49235 i.e. "ll".
49236
49237 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
49238
49239 * Makefile.in (LDFLAGS): Add variable.
49240 (LD): Remove variable.
49241 * configure.ac: Add -m32 to LDFLAGS.
49242 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
49243 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
49244 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
49245 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
49246 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
49247 variables.
49248 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
49249 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
49250 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
49251
49252 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
49253
49254 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
49255 length for unknown glyph.
49256
49257 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
49258
49259 Add support for pre-loaded modules into the EFI port.
49260
49261 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
49262 completely. Accept one more argument DIR. The caller has changed.
49263
49264 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
49265
49266 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
49267 (grub_efi_loaded_image_guid): New variable.
49268 (grub_efi_get_loaded_image): New function.
49269 (grub_arch_modules_addr): Likewise.
49270
49271 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
49272 prototype.
49273
49274 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
49275 (struct grub_efi_loaded_image): New structure.
49276 (grub_efi_loaded_image_t): New type.
49277
49278 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
49279
49280 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
49281 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
49282 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
49283
49284 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
49285
49286 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
49287
49288 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
49289
49290 * DISTLIST: Added include/grub/efi/console.h,
49291 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
49292 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
49293
49294 * include/grub/efi/console.h: New file.
49295 * include/grub/efi/time.h: Likewise.
49296 * include/grub/i386/efi/kernel.h: Likewise.
49297 * kern/efi/init.c: Likewise.
49298 * kern/efi/mm.c: Likewise.
49299 * term/efi/console.c: Likewise.
49300
49301 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
49302 (grub_stop): Removed.
49303 (grub_get_rtc): Likewise.
49304 (grub_machine_init): Simply call grub_efi_init.
49305 (grub_machine_fini): Call grub_efi_fini.
49306
49307 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
49308 (grub_efi_output_string): Removed.
49309 (grub_efi_stall): New function.
49310 (grub_stop): Likewise.
49311 (grub_get_rtc): Likewise.
49312
49313 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
49314 (grub_efi_stall): New prototype.
49315 (grub_efi_allocate_pages): Likewise.
49316 (grub_efi_free_pages): Likewise.
49317 (grub_efi_get_memory_map): Likewise.
49318 (grub_efi_mm_init): Likewise.
49319 (grub_efi_mm_fini): Likewise.
49320 (grub_efi_init): Likewise.
49321 (grub_efi_fini): Likewise.
49322
49323 * include/grub/i386/efi/time.h: Do not include
49324 grub/symbol.h. Include grub/efi/time.h.
49325 (GRUB_TICKS_PER_SECOND): Removed.
49326 (grub_get_rtc): Likewise.
49327
49328 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
49329 Added padding. The EFI spec is buggy.
49330 (GRUB_EFI_BLACK): New macro.
49331 (GRUB_EFI_BLUE): Likewise.
49332 (GRUB_EFI_GREEN): Likewise.
49333 (GRUB_EFI_CYAN): Likewise.
49334 (GRUB_EFI_RED): Likewise.
49335 (GRUB_EFI_MAGENTA): Likewise.
49336 (GRUB_EFI_BROWN): Likewise.
49337 (GRUB_EFI_LIGHTGRAY): Likewise.
49338 (GRUB_EFI_BRIGHT): Likewise.
49339 (GRUB_EFI_DARKGRAY): Likewise.
49340 (GRUB_EFI_LIGHTBLUE): Likewise.
49341 (GRUB_EFI_LIGHTGREEN): Likewise.
49342 (GRUB_EFI_LIGHTCYAN): Likewise.
49343 (GRUB_EFI_LIGHTRED): Likewise.
49344 (GRUB_EFI_LIGHTMAGENTA): Likewise.
49345 (GRUB_EFI_YELLOW): Likewise.
49346 (GRUB_EFI_WHITE): Likewise.
49347 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
49348 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
49349 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
49350 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
49351 (GRUB_EFI_BACKGROUND_RED): Likewise.
49352 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
49353 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
49354 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
49355 (GRUB_EFI_TEXT_ATTR): Likewise.
49356
49357 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
49358 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
49359 (kernel_mod_HEADERS): Added efi/time.h.
49360
49361 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
49362
49363 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
49364 include/grub/efi/api.h, include/grub/efi/console_control.h,
49365 include/grub/efi/efi.h, include/grub/efi/pe32.h,
49366 include/grub/i386/efi/time.h, kern/efi/efi.c,
49367 kern/i386/efi/init.c, kern/i386/efi/startup.S,
49368 and util/i386/efi/grub-mkimage.c.
49369
49370 * Makefile.in (RMKFILES): Added i386-efi.rmk.
49371
49372 * genmk.rb (PModule#rule): Do not export symbols if
49373 #{prefix}_EXPORTS is set to "no".
49374
49375 * conf/i386-efi.mk: New file.
49376 * conf/i386-efi.rmk: Likewise.
49377 * include/grub/efi/api.h: Likewise.
49378 * include/grub/efi/console_control.h: Likewise.
49379 * include/grub/efi/efi.h: Likewise.
49380 * include/grub/efi/pe32.h: Likewise.
49381 * include/grub/i386/efi/time.h: Likewise.
49382 * kern/efi/efi.c: Likewise.
49383 * kern/i386/efi/init.c: Likewise.
49384 * kern/i386/efi/startup.S: Likewise.
49385 * util/i386/efi/grub-mkimage.c: Likewise.
49386
49387 2006-04-17 Marco Gerards <marco@gnu.org>
49388
49389 * include/grub/script.h: Include <grub/parser.h> and
49390 "grub_script.tab.h".
49391 (struct grub_lexer_param): New struct.
49392 (struct grub_parser_param): Likewise.
49393 (grub_script_create_arglist): Pass the state in an argument.
49394 (grub_script_add_arglist): Likewise.
49395 (grub_script_create_cmdline): Likewise.
49396 (grub_script_create_cmdblock): Likewise.
49397 (grub_script_create_cmdif): Likewise.
49398 (grub_script_create_cmdmenu): Likewise.
49399 (grub_script_add_cmd): Likewise.
49400 (grub_script_arg_add): Likewise.
49401 (grub_script_lexer_ref): Likewise.
49402 (grub_script_lexer_deref): Likewise.
49403 (grub_script_lexer_record_start): Likewise.
49404 (grub_script_lexer_record_stop): Likewise.
49405 (grub_script_mem_record): Likewise.
49406 (grub_script_mem_record_stop): Likewise.
49407 (grub_script_malloc): Likewise.
49408 (grub_script_yylex): Likewise.
49409 (grub_script_yyparse): Likewise.
49410 (grub_script_yyerror): Likewise.
49411 (grub_script_yylex): Likewise.
49412 (grub_script_lexer_init): Return the state.
49413
49414 * normal/lexer.c (grub_script_lexer_state): Removed variable.
49415 (grub_script_lexer_done): Likewise.
49416 (grub_script_lexer_getline): Likewise.
49417 (grub_script_lexer_refs): Likewise.
49418 (script): Likewise.
49419 (newscript): Likewise.
49420 (record): Likewise.
49421 (recording): Likewise.
49422 (recordpos): Likewise.
49423 (recordlen): Likewise.
49424 (grub_script_lexer_init): Return the state instead of setting
49425 global variables.
49426 (grub_script_lexer_ref): Use the newly added argument for state
49427 instead of globals.
49428 (grub_script_lexer_deref): Likewise.
49429 (grub_script_lexer_record_start): Likewise.
49430 (grub_script_lexer_record_stop): Likewise.
49431 (recordchar): Likewise.
49432 (nextchar): Likewise.
49433 (grub_script_yylex2): Likewise.
49434 (grub_script_yylex): Likewise.
49435 (grub_script_yyerror): Likewise.
49436
49437 * normal/parser.y (func_mem): Removed variable.
49438 (menu_entry): Likewise.
49439 (err): Likewise.
49440 (%lex-param): New parser option.
49441 (%parse-param): Likewise.
49442 (script): Always return the AST.
49443 (argument): Pass the state around.
49444 (arguments): Likewise.
49445 (grubcmd): Likewise.
49446 (commands): Likewise.
49447 (function): Likewise.
49448 (menuentry): Likewise.
49449 (if_statement): Likewise.
49450 (if): Likewise.
49451
49452 * normal/script.c (grub_script_memused): Removed variable.
49453 (grub_script_parsed): Likewise.
49454 (grub_script_malloc): Added a state argument. Use that instead of
49455 global variables.
49456 (grub_script_mem_record): Likewise.
49457 (grub_script_mem_record_stop): Likewise.
49458 (grub_script_arg_add): Likewise.
49459 (grub_script_add_arglist): Likewise.
49460 (grub_script_create_cmdline): Likewise.
49461 (grub_script_create_cmdif): Likewise.
49462 (grub_script_create_cmdmenu): Likewise.
49463 (grub_script_add_cmd): Likewise.
49464 (grub_script_parse): Setup the state before calling the parser.
49465
49466 2006-04-16 Marco Gerards <marco@gnu.org>
49467
49468 * normal/command.c (grub_command_init): Remove the title command.
49469
49470 * normal/lexer.c (grub_script_yylex): Renamed from this...
49471 (grub_script_yylex2): ... to this.
49472 (grub_script_yylex): New function. Temporary
49473 introduced to filter some tokens.
49474 (grub_script_yyerror): Print a newline.
49475
49476 * normal/main.c (read_config_file): Output information about the
49477 lines that contain errors. Wait for a key after all lines have
49478 been processed. Don't return an empty menu.
49479
49480 * normal/parser.y (func_mem): Don't initialize.
49481 (menu_entry): Likewise.
49482 (err): New variable.
49483 (script): Don't return anything when an error was encountered.
49484 (ws, returns): Removed rules.
49485 (argument): Disabled concatenated variable support.
49486 (arguments): Remove explicit separators.
49487 (grubcmd): Likewise.
49488 (function): Likewise.
49489 (menuentry): Likewise.
49490 (if): Likewise.
49491 (commands): Likewise. Add error handling.
49492
49493 * normal/script.c (grub_script_create_cmdline): If
49494 `grub_script_parsed' is 0, assume the parser encountered an error.
49495
49496 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
49497
49498 * configure.ac: Add support for EFI. Fix the typo
49499 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
49500
49501 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
49502
49503 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
49504 foreign multibyte characters should be shown correctly.
49505
49506 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
49507
49508 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
49509 calculation.
49510 (read_config_file): Made it to close file before returning.
49511
49512 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
49513
49514 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
49515 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
49516 video/i386/pc/vbefill.c.
49517
49518 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
49519 video/i386/pc/vbefill.c.
49520
49521 * include/grub/video.h (grub_video_blit_format): New enum.
49522 (grub_video_mode_info): Added new member blit_format.
49523 (grub_video_get_blit_format): New function prototype.
49524
49525 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
49526 function prototype.
49527 (grub_video_vbe_map_rgb): Likewise.
49528 (grub_video_vbe_unmap_color): Likewise.
49529
49530 * include/grub/i386/pc/vbeblit.h: New file.
49531
49532 * include/grub/i386/pc/vbefill.h: New file.
49533
49534 * video/video.c (grub_video_get_blit_format): New function.
49535 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
49536 (grub_video_vbe_map_rgb): Likewise.
49537 (grub_video_vbe_unmap_color): Likewise.
49538
49539 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
49540 optimized fills.
49541 (grub_video_vbe_blit_render_target): Changed to use more optimized
49542 blits.
49543 (grub_video_vbe_setup): Added detection for optimized settings.
49544 (grub_video_vbe_create_render_target): Likewise.
49545
49546 * video/i386/pc/vbeblit.c: New file.
49547
49548 * video/i386/pc/vbefill.c: New file.
49549
49550 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
49551
49552 * font/manager.c (grub_font_get_glyph): Removed font fixup from
49553 here...
49554
49555 * util/unifont2pff.rb: ... and moved it to here. Improved argument
49556 parsing to support both hex and dec ranges. If filename was missing
49557 show usage information.
49558
49559 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
49560
49561 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
49562 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
49563
49564 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
49565 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
49566 (video_mod_SOURCES): Added.
49567 (video_mod_CFLAGS): Likewise.
49568 (video_mod_LDFLAGS): Likewise.
49569 (gfxterm_mod_SOURCES): Likewise.
49570 (gfxterm_mod_CFLAGS): Likewise.
49571 (gfxterm_mod_LDFLAGS): Likewise.
49572 (videotest_mod_SOURCES): Likewise.
49573 (videotest_mod_CFLAGS): Likewise.
49574 (videotest_mod_LDFLAGS): Likewise.
49575 (vesafb_mod_SOURCES): Removed.
49576 (vesafb_mod_CFLAGS): Likewise.
49577 (vesafb_mod_LDFLAGS): Likewise.
49578 (vga_mod_SOURCES): Likewise.
49579 (vga_mod_CFLAGS): Likewise.
49580 (vga_mod_LDFLAGS): Likewise.
49581
49582 * commands/videotest.c: New file.
49583
49584 * font/manager.c (fill_with_default_glyph): Modified to use
49585 grub_font_glyph.
49586 (grub_font_get_glyph): Likewise.
49587 (fontmanager): Renamed from this...
49588 (font_manager): ... to this.
49589
49590 * include/grub/font.h (grub_font_glyph): Added new structure.
49591 (grub_font_get_glyph): Modified to use grub_font_glyph.
49592
49593 * include/grub/misc.h (grub_abs): Added as inline function.
49594
49595 * include/grub/video.h: New file.
49596
49597 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
49598 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
49599 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
49600 (grub_vbe_get_controller_info): Renamed from this...
49601 (grub_vbe_bios_get_controller_info): ... to this.
49602 (grub_vbe_get_mode_info): Renamed from this...
49603 (grub_vbe_bios_get_mode_info): ... to this.
49604 (grub_vbe_set_mode): Renamed from this...
49605 (grub_vbe_bios_set_mode): ... to this.
49606 (grub_vbe_get_mode): Renamed from this...
49607 (grub_vbe_bios_get_mode): ... to this.
49608 (grub_vbe_set_memory_window): Renamed from this...
49609 (grub_vbe_bios_set_memory_window): ... to this.
49610 (grub_vbe_get_memory_window): Renamed from this...
49611 (grub_vbe_bios_get_memory_window): ... to this.
49612 (grub_vbe_set_scanline_length): Renamed from this...
49613 (grub_vbe_set_scanline_length): ... to this.
49614 (grub_vbe_get_scanline_length): Renamed from this...
49615 (grub_vbe_bios_get_scanline_length): ... to this.
49616 (grub_vbe_set_display_start): Renamed from this...
49617 (grub_vbe_bios_set_display_start): ... to this.
49618 (grub_vbe_get_display_start): Renamed from this...
49619 (grub_vbe_bios_get_display_start): ... to this.
49620 (grub_vbe_set_palette_data): Renamed from this...
49621 (grub_vbe_bios_set_palette_data): ... to this.
49622 (grub_vbe_set_pixel_rgb): Removed.
49623 (grub_vbe_set_pixel_index): Likewise.
49624
49625 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
49626 from this...
49627 (grub_vbe_bios_get_controller_info): ... to this.
49628 (grub_vbe_get_mode_info): Renamed from this...
49629 (grub_vbe_bios_get_mode_info): ... to this.
49630 (grub_vbe_set_mode): Renamed from this...
49631 (grub_vbe_bios_set_mode): ... to this.
49632 (grub_vbe_get_mode): Renamed from this...
49633 (grub_vbe_bios_get_mode): ... to this.
49634 (grub_vbe_set_memory_window): Renamed from this...
49635 (grub_vbe_bios_set_memory_window): ... to this.
49636 (grub_vbe_get_memory_window): Renamed from this...
49637 (grub_vbe_bios_get_memory_window): ... to this.
49638 (grub_vbe_set_scanline_length): Renamed from this...
49639 (grub_vbe_set_scanline_length): ... to this.
49640 (grub_vbe_get_scanline_length): Renamed from this...
49641 (grub_vbe_bios_get_scanline_length): ... to this.
49642 (grub_vbe_set_display_start): Renamed from this...
49643 (grub_vbe_bios_set_display_start): ... to this.
49644 (grub_vbe_get_display_start): Renamed from this...
49645 (grub_vbe_bios_get_display_start): ... to this.
49646 (grub_vbe_set_palette_data): Renamed from this...
49647 (grub_vbe_bios_set_palette_data): ... to this.
49648 (grub_vbe_bios_get_controller_info): Fixed problem with registers
49649 getting corrupted after calling it. Added more pushes and pops.
49650 (grub_vbe_bios_set_mode): Likewise.
49651 (grub_vbe_bios_get_mode): Likewise.
49652 (grub_vbe_bios_get_memory_window): Likewise.
49653 (grub_vbe_bios_set_scanline_length): Likewise.
49654 (grub_vbe_bios_get_scanline_length): Likewise.
49655 (grub_vbe_bios_get_display_start): Likewise.
49656 (grub_vbe_bios_set_palette_data): Likewise.
49657
49658 * normal/cmdline.c (cl_set_pos): Refresh the screen.
49659 (cl_insert): Likewise.
49660 (cl_delete): Likewise.
49661
49662 * term/gfxterm.c: New file.
49663
49664 * term/i386/pc/vesafb.c: Removed file.
49665
49666 * video/video.c: New file.
49667
49668 * video/i386/pc/vbe.c (real2pm): Added new function.
49669 (grub_video_vbe_draw_pixel): Likewise.
49670 (grub_video_vbe_get_video_ptr): Likewise.
49671 (grub_video_vbe_get_pixel): Likewise
49672 (grub_video_vbe_init): Likewise.
49673 (grub_video_vbe_fini): Likewise.
49674 (grub_video_vbe_setup): Likewise.
49675 (grub_video_vbe_get_info): Likewise.
49676 (grub_video_vbe_set_palette): Likewise.
49677 (grub_video_vbe_get_palette): Likewise.
49678 (grub_video_vbe_set_viewport): Likewise.
49679 (grub_video_vbe_get_viewport): Likewise.
49680 (grub_video_vbe_map_color): Likewise.
49681 (grub_video_vbe_map_rgb): Likewise.
49682 (grub_video_vbe_map_rgba): Likewise.
49683 (grub_video_vbe_unmap_color): Likewise.
49684 (grub_video_vbe_fill_rect): Likewise.
49685 (grub_video_vbe_blit_glyph): Likewise.
49686 (grub_video_vbe_blit_bitmap): Likewise.
49687 (grub_video_vbe_blit_render_target): Likewise.
49688 (grub_video_vbe_scroll): Likewise.
49689 (grub_video_vbe_swap_buffers): Likewise.
49690 (grub_video_vbe_create_render_target): Likewise.
49691 (grub_video_vbe_delete_render_target): Likewise.
49692 (grub_video_vbe_set_active_render_target): Likewise.
49693 (grub_vbe_set_pixel_rgb): Remove function.
49694 (grub_vbe_set_pixel_index): Likewise.
49695 (index_color_mode): Remove static variable.
49696 (active_mode): Likewise.
49697 (framebuffer): Likewise.
49698 (bytes_per_scan_line): Likewise.
49699 (grub_video_vbe_adapter): Added new static variable.
49700 (framebuffer): Likewise.
49701 (render_target): Likewise.
49702 (initial_mode): Likewise.
49703 (mode_in_use): Likewise.
49704 (mode_list): Likewise.
49705
49706 2006-03-10 Marco Gerards <marco@gnu.org>
49707
49708 * configure.ac (AC_INIT): Bumped to 1.93.
49709
49710 * DISTLIST: Added `include/grub/hfs.h'.
49711
49712 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
49713
49714 * boot/i386/pc/boot.S (general_error): Before looping, try INT
49715 18H, which might help the BIOS falling back to next boot media.
49716
49717 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
49718
49719 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
49720 Poe Chen <poe.poechen@gmail.com>.
49721
49722 2006-01-17 Marco Gerards <marco@gnu.org>
49723
49724 * include/grub/normal.h: Include <grub/script.h>.
49725 (grub_command_list): Removed struct.
49726 (grub_command_list_t): Removed type.
49727 (grub_menu_entry): Remove members `num' and `command_list'. Add
49728 members `commands' and `sourcecode'.
49729 * include/grub/script.h: Add inclusion guards.
49730 (grub_script_cmd_menuentry): New struct.
49731 (grub_script_execute_menuentry): New prototype.
49732 (grub_script_lexer_record_start): Likewise.
49733 (grub_script_lexer_record_stop): Likewise.
49734 * normal/execute.c (grub_script_execute_menuentry): New function.
49735 * normal/lexer.c (record, recording, recordpos, recordlen): New
49736 variables.
49737 (grub_script_lexer_record_start): New function.
49738 (grub_script_lexer_record_stop): Likewise.
49739 (recordchar): Likewise.
49740 (nextchar): Likewise.
49741 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
49742 2048 as the buffer size. Add the tokens `menuentry' and `@'.
49743 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
49744 (current_menu): New variable.
49745 (free_menu): Mainly rewritten.
49746 (grub_normal_menu_addentry): New function.
49747 (read_config_file): Rewritten.
49748 * normal/menu.c (run_menu_entry): Mainly rewritten.
49749 * normal/menu_entry.c (make_screen): Rewritten the code to insert
49750 the menu entry.
49751 (run): Mainly rewritten.
49752 * normal/parser.y (menu_entry): New variable.
49753 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
49754 (menuentry): New rule.
49755 (command): Add `menuentry'.
49756 (if_statement): Allow additional returns before `fi'.
49757 * normal/script.c (grub_script_create_cmdmenu): New function.
49758
49759 2006-01-03 Marco Gerards <marco@gnu.org>
49760
49761 * INSTALL: GNU Bison is required.
49762 * configure.ac: Rewritten the test to detect Bison.
49763 * Makefile.in (YACC): New variable. Reported by Xun Sun
49764 <xun.sun.cn@gmail.com>.
49765
49766 2006-01-03 Marco Gerards <marco@gnu.org>
49767
49768 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
49769 the HFS+ filesystem to filesystem blocks.
49770 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
49771 GCC warning is silenced.
49772
49773 2006-01-03 Marco Gerards <marco@gnu.org>
49774
49775 * partmap/apple.c (apple_partition_map_iterate): Convert the data
49776 read from disk from big endian to host byte order.
49777
49778 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
49779
49780 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
49781 documentation.
49782 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
49783 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
49784 embedded HFS+ filesystem.
49785 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
49786 (grub_hfs_sblock): Move from here...
49787 * include/grub/hfs.h: To here... New file.
49788 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
49789 documentation.
49790 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
49791 New macros.
49792 (grub_hfsplus_volheader): Change type of member `magic' to
49793 `grub_uint16_t'.
49794 (grub_hfsplus_data): Add new member `embedded_offset'.
49795 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
49796 returned block.
49797 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
49798 Calculate the offset.
49799
49800 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
49801
49802 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
49803 Removed.
49804 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
49805
49806 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
49807
49808 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
49809 ENV->NAME is NULL after allocating ENV->VALUE.
49810
49811 2005-12-25 Marco Gerards <marco@gnu.org>
49812
49813 * kern/env.c (grub_env_set): Rewritten the error handling code.
49814
49815 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
49816
49817 * geninit.sh: Made more robust, and more portable.
49818
49819 2005-12-25 Marco Gerards <marco@gnu.org>
49820
49821 Add support for Apple HFS+ filesystems.
49822
49823 * fs/hfsplus.c: New file.
49824
49825 * DISTLIST: Added `fs/hfsplus.c'.
49826
49827 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
49828 (hfsplus_mod_SOURCES): New variable.
49829 (hfsplus_mod_CFLAGS): Likewise.
49830 (hfsplus_mod_LDFLAGS): Likewise.
49831 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
49832 (grub_setup_SOURCES): Likewise.
49833 (grub_mkdevicemap_SOURCES): Likewise.
49834 (grub_emu_SOURCES): Likewise.
49835 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
49836
49837 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
49838
49839 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
49840
49841 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
49842
49843 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
49844 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
49845 include/grub/parser.h, include/grub/script.h, kern/parser.c,
49846 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
49847 normal/lexer.c, normal/parser.y, normal/script.c, and
49848 partmap/gpt.c.
49849 Removed kern/sparc64/cache.c.
49850
49851 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
49852 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
49853 grub_emu_init.c.
49854
49855 * configure.ac (AC_INIT): Bumped to 1.92.
49856
49857 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
49858
49859 * kern/err.c (grub_error_push): Added new function to support error
49860 stacks.
49861 (grub_error_pop): Likewise.
49862 (grub_error_stack_items): New local variable to support error stacks.
49863 (grub_error_stack_pos): Likewise.
49864 (grub_error_stack_assert): Likewise.
49865 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
49866 stack depth.
49867 (grub_print_error): Added support to print errors from error stack.
49868
49869 * include/grub/err.h (grub_error_push): Added function prototype.
49870 (grub_error_pop): Likewise.
49871
49872 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
49873
49874 * configure.ac: Accept `powerpc64' as host_cpu.
49875 (amd64): Rename to `biarch32'.
49876
49877 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
49878 non-cacheline-aligned addresses.
49879
49880 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
49881 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
49882 if `size' is non-zero.
49883
49884 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
49885
49886 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
49887 and `cd' to make sure the filename is not prefixed with a
49888 directory name.
49889 (pkgdata_MODULES): Add `gpt.mod'.
49890 (gpt_mod_SOURCES): New variable.
49891 (gpt_mod_CFLAGS): Likewise.
49892 (gpt_mod_LDFLAGS): Likewise.
49893
49894 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
49895
49896 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
49897 New macro.
49898
49899 * partmap/gpt.c: New file.
49900
49901 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
49902 GPT partition map is detected.
49903
49904 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
49905
49906 * commands/i386/pc/play.c: New file.
49907 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
49908 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
49909 macros.
49910
49911 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
49912
49913 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
49914 ((unused))' to silence gcc warning.
49915
49916 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
49917
49918 * configure.ac: Correct `AC_PROG_YACC' test.
49919
49920 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
49921
49922 * util/powerpc/ieee1275/grub-install.in: Run the mount point
49923 check before installing files.
49924
49925 2005-11-22 Mike Small <smallm@panix.com>
49926
49927 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
49928 number regex so multidigit numbers are recognized correctly.
49929
49930 2005-11-22 Mike Small <smallm@panix.com>
49931
49932 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
49933 debugging message before attempting to claim memory.
49934 (grub_rescue_cmd_initrd): Add a claim debugging message and try
49935 multiple addresses in case of failure.
49936
49937 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
49938
49939 * term/tparm.c (get_space): Remove empty `if' statement.
49940
49941 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
49942
49943 * kern/parser.c (check_varstate): Rename `state' to 's'.
49944
49945 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
49946
49947 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
49948 variable definitions to the beginning of each function. Sort stack
49949 variables by size.
49950 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
49951 `buf' argument to `char *'.
49952
49953 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
49954
49955 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
49956 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
49957 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
49958 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
49959 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
49960 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
49961 configfile.mod, search.mod, gzio.mod and test.mod.
49962 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
49963 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
49964 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
49965 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
49966 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
49967 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
49968 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
49969 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
49970 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
49971 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
49972 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
49973 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
49974 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
49975 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
49976 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
49977 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
49978 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
49979 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
49980 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
49981 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
49982 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
49983 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
49984 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
49985
49986 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
49987 `grep --include'.
49988 (pkgdata_MODULES): Add test.mod.
49989
49990 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
49991
49992 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
49993 appending to variables with "+=".
49994 (PModule): Use full pathname to generate *.lst filenames.
49995
49996 * Makefile.in: Fixed list rules moved from genmk.rb.
49997 (.DELETE_ON_ERROR): New special target.
49998 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
49999
50000 * conf/i386-pc.rmk: Include conf/common.mk.
50001 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
50002 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
50003 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
50004 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
50005 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
50006 configfile.mod, search.mod, gzio.mod and test.mod.
50007 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
50008 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
50009 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
50010 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
50011 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
50012 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
50013 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
50014 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
50015 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
50016 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
50017 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
50018 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
50019 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
50020 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
50021 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
50022 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
50023 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
50024 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
50025 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
50026 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
50027 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
50028 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
50029 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
50030 here...
50031 * conf/common.rmk: ... to here. New file.
50032
50033 * conf/common.mk: New file.
50034
50035 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
50036
50037 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
50038 (grub_script.tab.c): ... here.
50039
50040 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
50041 (grub_script.tab.c): ... here.
50042
50043 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
50044 (grub_script.tab.c): ... here.
50045
50046 * normal/command.c (grub_command_find): Fixed a memory leak of
50047 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
50048
50049 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
50050
50051 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
50052 "@" which marks the start of a comment on ARM.
50053 (VARIABLE): Likewise.
50054
50055 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
50056
50057 Add support for Linux/ADFS partition tables.
50058
50059 * partmap/acorn.c: New file.
50060
50061 * include/grub/acorn_filecore.h: Likewise.
50062
50063 * DISTLIST: Added `partmap/acorn.c' and
50064 `include/grub/acorn_filecore.h'.
50065
50066 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
50067 `partmap/acorn.c'.
50068 (pkgdata_MODULES): Add `acorn.mod'.
50069 (acorn_mod_SOURCES): New variable.
50070 (acorn_mod_CFLAGS): Likewise.
50071
50072 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
50073 `partmap/acorn.c'.
50074 (pkgdata_MODULES): Add `acorn.mod'.
50075 (acorn_mod_SOURCES): New variable.
50076 (acorn_mod_CFLAGS): Likewise.
50077
50078 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
50079 (pkgdata_MODULES): Add `acorn.mod'.
50080 (acorn_mod_SOURCES): New variable.
50081 (acorn_mod_CFLAGS): Likewise.
50082 (acorn_mod_LDFLAGS): Likewise.
50083
50084 * include/types.h (grub_disk_addr_t): New typedef.
50085
50086 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
50087
50088 * geninit.sh: New file.
50089
50090 * geninitheader.sh: Likewise.
50091
50092 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
50093 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
50094 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
50095 * commands/configfile.c (grub_configfile_init)
50096 (grub_configfile_fini): Likewise.
50097 * commands/default.c (grub_default_init, grub_default_fini):
50098 Likewise.
50099 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
50100 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
50101 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
50102 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
50103 Likewise.
50104 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
50105 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
50106 Likewise.
50107 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
50108 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
50109 Likewise.
50110 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
50111 Likewise.
50112 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
50113 Likewise.
50114 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
50115 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
50116 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
50117 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
50118 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
50119 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
50120 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
50121 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
50122 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
50123 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
50124 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
50125 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
50126 * partmap/amiga.c (grub_amiga_partition_map_init)
50127 (grub_amiga_partition_map_fini): Likewise.
50128 * partmap/apple.c (grub_apple_partition_map_init)
50129 (grub_apple_partition_map_fini): Likewise.
50130 * partmap/pc.c (grub_pc_partition_map_init)
50131 (grub_pc_partition_map_fini): Likewise.
50132 * partmap/sun.c (grub_sun_partition_map_init,
50133 grub_sun_partition_map_fini): Likewise.
50134 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
50135 Likewise.
50136
50137 * util/grub-emu.c: Include <grub_modules_init.h>.
50138 (main): Don't initialize and de-initialize any modules directly,
50139 use `grub_init_all' and `grub_fini_all' instead.
50140
50141 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
50142 `grub_vesafb_mod_init'.
50143 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
50144 all users.
50145 * term/i386/pc/vga.c (grub_vga_init): Renamed to
50146 `grub_vga_mod_init'. Updated all users.
50147 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
50148
50149 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
50150 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
50151 rules.
50152
50153 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
50154 Generate a function to initialize the module in utilities.
50155 Updated all callers.
50156 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
50157 initialize the module in utilities. Updated all callers.
50158
50159 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
50160
50161 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
50162 escape sequence and a literal ^L to clear the screen.
50163
50164 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
50165 when returning from Open Firmware.
50166
50167 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
50168
50169 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
50170 (grub_ofconsole_height): Likewise.
50171 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
50172 manually insert a '\n'.
50173 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
50174 `grub_ofconsole_height'. Return early if these are already set.
50175
50176 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
50177
50178 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
50179 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
50180 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
50181 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
50182 and `normal/script.c'.
50183 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
50184 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
50185 (test_mod_SOURCES): New variable.
50186 (test_mod_CFLAGS): Likewise.
50187 (test_mod_LDFLAGS): Likewise.
50188 (pkgdata_MODULES): Add `test.mod'.
50189 (grub_script.tab.c): New rule.
50190 (grub_script.tab.h): Likewise.
50191
50192 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
50193
50194 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
50195 `commands/test.c', `normal/execute.c', `normal/lexer.c',
50196 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
50197 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
50198 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
50199 (test_mod_SOURCES): New variable.
50200 (test_mod_CFLAGS): Likewise.
50201 (pkgdata_MODULES): Add `test.mod'.
50202 (grub_script.tab.c): New rule.
50203 (grub_script.tab.h): Likewise.
50204
50205 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
50206
50207 Add initial scripting support.
50208
50209 * commands/test.c: New file.
50210 * include/grub/script.h: Likewise.
50211 * normal/execute.c: Likewise.
50212 * normal/function.c: Likewise.
50213 * normal/lexer.c: Likewise.
50214 * normal/parser.y: Likewise.
50215 * normal/script.c: Likewise.
50216
50217 * configure.ac: Add `AC_PROG_YACC' test.
50218
50219 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
50220 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
50221 `normal/function.c' and `normal/script.c'.
50222 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
50223 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
50224 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
50225 variables.
50226 (pkgdata_MODULES): Add `test.mod'.
50227 (grub_script.tab.c): New rule.
50228 (grub_script.tab.h): Likewise.
50229
50230 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
50231
50232 * include/grub/normal.h (grub_test_init): New prototype.
50233 (grub_test_fini): Likewise.
50234
50235 * normal/command.c: Include <grub/script.h>.
50236 (grub_command_execute): Rewritten.
50237
50238 * util/grub-emu.c (main): Call `grub_test_init' and
50239 `grub_test_fini'.
50240
50241 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
50242
50243 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
50244 to 0.
50245 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
50246 there are no pending characters.
50247
50248 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
50249
50250 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
50251 `grub_strndup' to drop device arguments. Replace unnecessary
50252 `grub_strndup' with `grub_strdup'.
50253
50254 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
50255
50256 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
50257 `debug' environment variable has been set.
50258
50259 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
50260
50261 * Makefile.in (install-local): Use $(DATA).
50262 (uninstall): Likewise.
50263 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
50264 (sbin_UTILITIES): ... to here.
50265 (sbin_SCRIPTS): New variable.
50266 (grub_install_SOURCES): New variable.
50267 * util/powerpc/ieee1275/grub-install.in: New file.
50268 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
50269 variable.
50270 (add_segments): Call `grub_util_get_path'.
50271
50272 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
50273
50274 From Timothy Baldwin:
50275 * commands/ls.c (grub_ls_list_files): Close FILE with
50276 grub_file_close.
50277 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
50278
50279 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
50280
50281 * include/grub/parser.h: New file.
50282
50283 * kern/parser.c: Likewise.
50284
50285 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
50286 (grub_setup_SOURCES): Likewise.
50287 (grub_probefs_SOURCES): Likewise.
50288 (grub_emu_SOURCES): Likewise.
50289 (kernel_img_HEADERS): Add `parser.h'.
50290
50291 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
50292 (grub_emu_SOURCES): Add `kern/parser.c'.
50293 (grubof_SOURCES): Likewise.
50294
50295 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
50296 (grubof_SOURCES): Add `kern/parser.c'.
50297
50298 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
50299
50300 * kern/misc.c (grub_split_cmdline): Removed function.
50301
50302 * kern/rescue.c: Include <grub/parser.h>.
50303 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
50304 of `grub_split_cmdline'.
50305
50306 * normal/command.c: Include <grub/parser.h>.
50307 (grub_command_execute): Use `grub_parser_split_cmdline' instead
50308 of `grub_split_cmdline'.
50309
50310 * normal/completion.c: Include <grub/parser.h>.
50311 (cmdline_state): New variable.
50312 (iterate_dir): End the filename with a quote depending on the
50313 command line state.
50314 (get_state): new function.
50315 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
50316 split the arguments and determine the current argument. When the
50317 argument string is not quoted, escape all spaces.
50318
50319 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
50320
50321 * normal/sparc64/setjmp.S: New file.
50322
50323 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
50324
50325 * include/grub/sparc64/libgcc.h: New file.
50326 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
50327 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
50328 normal/sparc64/setjmp.c.
50329
50330 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
50331
50332 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
50333 * kern/sparc64/cache.S: New file.
50334 * kern/sparc64/cache.c: Removed.
50335 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
50336 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
50337 -mtune=ultrasparc.
50338 (COMMON_LDFLAGS): Add -melf64_sparc.
50339 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
50340 (grubof_SOURCES): Use cache.S instead of cache.c.
50341 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
50342 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
50343 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
50344 commented though.
50345 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
50346 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
50347 (linux_mod_CFLAGS): Commented out.
50348 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
50349 out because module isn't built.
50350 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
50351 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
50352 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
50353 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
50354 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
50355 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
50356 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
50357 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
50358 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
50359 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
50360 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
50361 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
50362 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
50363 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
50364
50365 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
50366
50367 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
50368 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
50369 longer, because HFS should not be used on PC.
50370
50371 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
50372
50373 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
50374 consistently within the loop.
50375
50376 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
50377
50378 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
50379 directory can not be read.
50380
50381 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
50382
50383 * configure.ac (AC_INIT): Increase the version number to 1.91.
50384
50385 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
50386 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
50387 term/i386/pc/serial.c.
50388
50389 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
50390
50391 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
50392 file size must be permitted.
50393
50394 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
50395 between %ah and %al.
50396
50397 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
50398
50399 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
50400 grub_uint64_t.
50401 Call the hook with a NUL-terminated filename.
50402 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
50403 grub_cpu_to_be32.
50404
50405 * kern/term.c (cursor_state): New variable.
50406 (grub_term_set_current): Reset the cursor state on a new
50407 terminal.
50408 (grub_setcursor): Rewritten to use CURSOR_STATE.
50409 (grub_getcursor): New function.
50410
50411 * include/grub/term.h (grub_getcursor): New prototype.
50412
50413 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
50414 integers on ARM. Reported by Timothy Baldwin
50415 <T.E.Baldwin99@members.leeds.ac.uk>.
50416
50417 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
50418
50419 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
50420 allocated.
50421 (grub_sfs_dir): Likewise.
50422
50423 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
50424
50425 Add support for the SFS filesystem.
50426
50427 * fs/sfs.c: New file.
50428
50429 * DISTLIST: Added `fs/sfs.c'.
50430
50431 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
50432 (grub_probefs_SOURCES): Likewise.
50433 (grub_emu_SOURCES): Likewise.
50434 (pkgdata_MODULES): Add `sfs.mod'.
50435 (sfs_mod_SOURCES): New variable.
50436 (sfs_mod_CFLAGS): Likewise.
50437 (sfs_mod_LDFLAGS): Likewise.
50438
50439 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
50440 (pkgdata_MODULES): Add `sfs.mod'.
50441 (sfs_mod_SOURCES): New variable.
50442 (sfs_mod_CFLAGS): Likewise.
50443
50444 * util/grub-emu.c (main): Call `grub_sfs_init' and
50445 `grub_sfs_fini'.
50446
50447 * include/grub/fs.h (grub_sfs_init): New prototype.
50448 (grub_sfs_fini): Likewise.
50449
50450 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
50451
50452 Add support for the AFFS filesystem.
50453
50454 * fs/affs.c: New file.
50455
50456 * DISTLIST: Added `fs/affs.c'.
50457
50458 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
50459 (grub_probefs_SOURCES): Likewise.
50460 (grub_emu_SOURCES): Likewise.
50461 (pkgdata_MODULES): Add `affs.mod'.
50462 (affs_mod_SOURCES): New variable.
50463 (affs_mod_CFLAGS): Likewise.
50464 (affs_mod_LDFLAGS): Likewise.
50465
50466 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
50467 (pkgdata_MODULES): Add `affs.mod'.
50468 (affs_mod_SOURCES): New variable.
50469 (affs_mod_CFLAGS): Likewise.
50470
50471 * util/grub-emu.c (main): Call `grub_affs_init' and
50472 `grub_affs_fini'.
50473
50474 * include/grub/fs.h (grub_affs_init): New prototype.
50475 (grub_affs_fini): Likewise.
50476
50477 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
50478
50479 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
50480
50481 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
50482
50483 * configure.ac: Accept `x86_64' as host_cpu. In that case add
50484 `-m32' to CFLAGS.
50485
50486 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
50487 linking.
50488
50489 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
50490 (COMMON_LDFLAGS): New variable.
50491 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
50492 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
50493 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
50494 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
50495 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
50496 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
50497 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
50498 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
50499 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
50500 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
50501 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
50502 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
50503 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
50504 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
50505 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
50506 variables.
50507 (normal_mod_ASFLAGS): Add `-m32'.
50508
50509 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
50510 (grub_host_size_t, grub_host_ssize_t): New types.
50511 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
50512 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
50513 `GRUB_HOST_SIZEOF_VOID_P'.
50514
50515 * include/grub/kernel.h (struct grub_module_header): Type of
50516 member offset changed to `grub_host_off_t'. Type of member size
50517 changed to `grub_host_size_t'.
50518 (struct grub_module_info): Type of member offset changed to
50519 `grub_host_off_t'. Type of member size changed to
50520 `grub_host_size_t'.
50521
50522 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
50523
50524 Make GRUB's kernel compliant to Multiboot Specification.
50525
50526 * kern/i386/pc/startup.S (multiboot_header): New label.
50527 (multiboot_entry): Likewise.
50528 (multiboot_trampoline): Likewise.
50529
50530 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
50531 Increased to 0x4A0.
50532
50533 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
50534 put parentheses after a question mark.
50535 [!GRUB_UTIL] (my_mod): New variable.
50536
50537 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
50538
50539 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
50540
50541 Adds support for the XFS filesystem. Btrees are not supported
50542 yet.
50543
50544 * fs/xfs.c: New file.
50545
50546 * DISTLIST: Added `fs/xfs.c'.
50547
50548 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
50549 (grub_probefs_SOURCES): Likewise.
50550 (grub_emu_SOURCES): Likewise.
50551 (pkgdata_MODULES): Add `xfs.mod'.
50552 (xfs_mod_SOURCES): New variable.
50553 (xfs_mod_CFLAGS): Likewise.
50554
50555 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
50556 (pkgdata_MODULES): Add `xfs.mod'.
50557 (xfs_mod_SOURCES): New variable.
50558 (xfs_mod_CFLAGS): Likewise.
50559
50560 * util/grub-emu.c (main): Call `grub_xfs_init' and
50561 `grub_xfs_fini'.
50562
50563 * include/grub/fs.h (grub_xfs_init): New prototype.
50564 (grub_xfs_fini): Likewise.
50565
50566
50567 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
50568
50569 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
50570 color modes, allow greater than 16 colors to be configured as
50571 a default palette.
50572
50573 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
50574
50575 * normal/completion.c (complete_arguments): Add the qualifier
50576 const into OPTIONS.
50577
50578 From Omniflux <omniflux+lists@omniflux.com>:
50579 * include/grub/terminfo.h: New file.
50580 * include/grub/tparm.h: Likewise.
50581 * include/grub/i386/pc/serial.h: Likewise.
50582 * term/terminfo.c: Likewise.
50583 * term/tparm.c: Likewise.
50584 * term/i386/pc/serial.c: Likewise.
50585 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
50586 serial.mod.
50587 (terminfo_mod_SOURCES): New variable.
50588 (terminfo_mod_CFLAGS): Likewise.
50589 (serial_mod_SOURCES): Likewise.
50590 (serial_mod_CFLAGS): Likewise.
50591
50592 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
50593
50594 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
50595 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
50596 and kern/powerpc/ieee1275/cmain.c, respectively.
50597
50598 * boot/powerpc/ieee1275/crt0.S: Moved to ...
50599 * kern/powerpc/ieee1275/crt0.S: ... here.
50600
50601 * boot/powerpc/ieee1275/cmain.c: Moved to ...
50602 * kern/powerpc/ieee1275/cmain.c: ... here.
50603
50604 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
50605 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
50606 instead of boot/powerpc/ieee1275/crt0.S and
50607 boot/powerpc/ieee1275/cmain.c, respectively.
50608
50609 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
50610 sectors. It was not used anyway.
50611
50612 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
50613
50614 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
50615 `unused parameter' warning.
50616
50617 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
50618
50619 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
50620 function.
50621 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
50622 getcharwidth.
50623
50624 2005-08-28 Marco Gerards <metgerards@student.han.nl>
50625
50626 * include/grub/normal.h (enum grub_completion_type): Added
50627 `GRUB_COMPLETION_TYPE_ARGUMENT'.
50628
50629 * normal/cmdline.c (print_completion): Handle
50630 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
50631 * normal/menu_entry.c (store_completion): Likewise.
50632
50633 * normal/completion.c (complete_arguments): New function.
50634 (grub_normal_do_completion): Call `complete_arguments' when the
50635 current words start with a dash.
50636
50637 2005-08-27 Marco Gerards <metgerards@student.han.nl>
50638
50639 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
50640 `gzio.mod' instead of `io.mod').
50641
50642 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
50643
50644 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
50645 (DISTDIRS): Added io and video.
50646 Rewrite the search routine to make an output consistently.
50647
50648 * DISTLIST: Added conf/sparc64-ieee1275.mk,
50649 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
50650 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
50651 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
50652 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
50653 util/powerpc/ieee1275/misc.c.
50654
50655 * include/grub/gzio.h: New file.
50656 * io/gzio.c: Likewise.
50657
50658 * kern/file.c (grub_file_close): Call grub_device_close only if
50659 FILE->DEVICE is not NULL.
50660
50661 * include/grub/mm.h [!NULL] (NULL): New macro.
50662
50663 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
50664
50665 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
50666 (pkgdata_MODULES): Added gzio.mod.
50667 (gzio_mod_SOURCES): New variable.
50668 (gzio_mod_CFLAGS): Likewise.
50669
50670 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
50671 (pkgdata_MODULES): Added gzio.mod.
50672 (gzio_mod_SOURCES): New variable.
50673 (gzio_mod_CFLAGS): Likewise.
50674
50675 * commands/cat.c: Include grub/gzio.h.
50676 (grub_cmd_cat): Use grub_gzfile_open instead of
50677 grub_file_open.
50678
50679 * commands/cmp.c: Include grub/gzio.h.
50680 (grub_cmd_cmp): Use grub_gzfile_open instead of
50681 grub_file_open.
50682
50683 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
50684 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
50685 grub_file_open.
50686 (grub_rescue_cmd_module): Likewise.
50687
50688 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
50689
50690 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
50691 kern/sparc64/ieee1275/init.c because it contains _start.
50692 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
50693
50694 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
50695
50696 * configure.ac: Add support for sparc64 host with ieee1275
50697 firmware.
50698 * configure: Generated from configure.ac.
50699 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
50700 instead of int.
50701 (grub_ofdisk_read): Likewise.
50702 (grub_ofdisk_open): Use %p to print pointer values, and cast the
50703 pointers as (void *) to remove a warning.
50704 (grub_ofdisk_close): Likewise.
50705 (grub_ofdisk_read): Likewise.
50706 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
50707 returns, so make it return void to remove a warning.
50708 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
50709 Corresponding prototype change.
50710 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
50711 values, and cast the pointers as (void *) to remove a warning.
50712 (grub_mm_dump): Likewise.
50713 * conf/sparc64-ieee1275.mk: New file.
50714 * conf/sparc64-ieee1275.rmk: Likewise.
50715 * include/grub/sparc64/setjmp.h: Likewise.
50716 * include/grub/sparc64/types.h: Likewise.
50717 * include/grub/sparc64/ieee1275/console.h: Likewise.
50718 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
50719 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
50720 * include/grub/sparc64/ieee1275/time.h: Likewise.
50721 * kern/sparc64/cache.c: Likewise.
50722 * kern/sparc64/dl.c: Likewise.
50723 * kern/sparc64/ieee1275/init.c: Likewise.
50724 * kern/sparc64/ieee1275/openfw.c: Likewise.
50725
50726 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
50727
50728 * util/console.c (grub_ncurses_putchar): If C is greater than
50729 0x7f, set C to a question mark.
50730 (grub_ncurses_getcharwidth): New function.
50731 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
50732 getcharwidth.
50733
50734 * normal/menu.c (print_entry): Made aware of Unicode. First,
50735 convert TITLE to UCS-4, and predict the cursor position by
50736 grub_getcharwidth.
50737
50738 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
50739 const to SRC.
50740 * kern/misc.c (grub_utf16_to_utf8): Likewise.
50741
50742 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
50743
50744 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
50745 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
50746 grub_strcat.
50747
50748 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
50749 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
50750 grub_strcpy and grub_strlen. Take it into account that a space
50751 character is inserted as a delimiter.
50752
50753 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
50754
50755 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
50756 invalid magic in the error.
50757
50758 * commands/search.c: New file.
50759
50760 * util/grub-emu.c (main): Call grub_search_init and
50761 grub_search_fini.
50762
50763 * kern/rescue.c (grub_rescue_print_disks): Removed.
50764 (grub_rescue_print_devices): New function.
50765 (grub_rescue_cmd_ls): Use grub_device_iterate with
50766 grub_rescue_print_devices instead of grub_disk_dev_iterate with
50767 grub_rescue_print_disks.
50768
50769 * kern/partition.c (grub_partition_iterate): Return the result of
50770 PARTMAP->ITERATE instead of GRUB_ERRNO.
50771
50772 * kern/device.c: Include grub/partition.h.
50773 (grub_device_iterate): New function.
50774
50775 * include/grub/partition.h (grub_partition_iterate): Return int
50776 instead of grub_err_t.
50777
50778 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
50779 prototype.
50780 [GRUB_UTIL] (grub_search_fini): Likewise.
50781
50782 * include/grub/device.h (grub_device_iterate): New prototype.
50783
50784 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
50785 commands/search.c.
50786 (pkgdata_MODULES): Added search.mod.
50787 (search_mod_SOURCES): New variable.
50788 (search_mod_CFLAGS): Likewise.
50789
50790 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
50791 (pkgdata_MODULES): Added search.mod.
50792 (search_mod_SOURCES): New variable.
50793 (search_mod_CFLAGS): Likewise.
50794
50795 * commands/ls.c (grub_ls_list_disks): Renamed to ...
50796 (grub_ls_list_devices): ... this, and use grub_device_iterate.
50797 All callers changed.
50798
50799 * DISTLIST: Added commands/search.c.
50800
50801 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
50802
50803 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
50804 conversion.
50805 (grub_getcharwidth): New function.
50806
50807 * kern/misc.c (grub_utf8_to_ucs4): New function.
50808
50809 * include/grub/term.h (struct grub_term): Added a new member
50810 "getcharwidth".
50811 (grub_getcharwidth): New prototype.
50812
50813 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
50814
50815 * term/i386/pc/console.c (map_char): New function. Segregated from
50816 grub_console_putchar.
50817 (grub_console_putchar): Use map_char.
50818 (grub_console_getcharwidth): New function.
50819 (grub_console_term): Specified grub_console_getcharwidth as
50820 getcharwidth.
50821
50822 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
50823 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
50824
50825 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
50826 GRUB_ERRNO.
50827 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
50828 on grub_strtoul completely.
50829 (write_char): Declare local variables in the beginning of the
50830 function.
50831 (grub_vesafb_getcharwidth): New function.
50832 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
50833 getcharwidth.
50834
50835 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
50836
50837 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
50838 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
50839 commands/i386/pc/vbetest.c.
50840
50841 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
50842 call grub_vbe_get_controller_info again, because the returned
50843 information is volatile.
50844 (grub_vbe_set_video_mode): Mostly rewritten.
50845 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
50846 grub_vbe_status_t correctly.
50847 (grub_vbe_get_video_mode_info): Likewise.
50848 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
50849 several if statements.
50850
50851 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
50852 * commands/i386/pc/vbeinfo.c: ... this.
50853
50854 * commands/i386/pc/vbe_test.c: Renamed to ...
50855 * commands/i386/pc/vbetest.c: ... this.
50856
50857 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
50858 ...
50859 (grub_cmd_vbeinfo): ... this. Save video modes before
50860 iterating. Skip a video mode, if it is not available, not enough
50861 information is given or it is monochrome. Show the memory
50862 model. Leave the interpretation of MODEVAR to grub_strtoul
50863 completely.
50864 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
50865 (GRUB_MOD_FINI): Likewise.
50866
50867 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
50868 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
50869 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
50870 duplicated grub_env_get. Leave the interpretation of MODEVAR to
50871 grub_strtoul completely.
50872 (real2pm): Removed.
50873 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
50874 (GRUB_MOD_FINI): Likewise.
50875
50876 * normal/misc.c: Include grub/mm.h.
50877
50878 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
50879 vbe_list_modes with vbetest.mod and vbeinfo.mod.
50880 (vbe_list_modes_mod_SOURCES): Removed.
50881 (vbe_list_modes_mod_CFLAGS): Likewise.
50882 (vbe_test_mod_SOURCES): Likewise.
50883 (vbe_test_mod_CFLAGS): Likewise.
50884 (vbeinfo_mod_SOURCES): New variable.
50885 (vbeinfo_mod_CFLAGS): Likewise.
50886 (vbetest_mod_SOURCES): Likewise.
50887 (vbetest_mod_CFLAGS): Likewise.
50888
50889 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
50890
50891 * normal/misc.c: New file.
50892
50893 * DISTLIST: Added normal/misc.c.
50894
50895 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
50896 DISK to HOOK. Call HOOK with DISK.
50897 * partmap/apple.c (apple_partition_map_iterate): Likewise.
50898 * partmap/pc.c (pc_partition_map_iterate): Likewise.
50899 * partmap/sun.c (sun_partition_map_iterate): Likewise.
50900
50901 * normal/menu_entry.c (struct screen): Added a new member
50902 "completion_shown".
50903 (completion_buffer): New global variable.
50904 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
50905 (store_completion): New function.
50906 (complete): Likewise.
50907 (clear_completions): Likewise.
50908 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
50909 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
50910 a tab, call complete.
50911
50912 * normal/completion.c (disk_dev): Removed.
50913 (print_simple_completion): Likewise.
50914 (print_partition_completion): Likewise.
50915 (print_func): New global variable.
50916 (add_completion): Do not take the arguments WHAT or PRINT any
50917 longer. Added a new argument TYPE. Instead of printing directly,
50918 call PRINT_FUNC if not NULL.
50919 All callers changed.
50920 (complete_device): Use a local variable DEV instead of
50921 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
50922 (grub_normal_do_completion): Take a new argument HOOK. Do not
50923 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
50924 empty string, return NULL instead.
50925 All callers changed.
50926
50927 * normal/cmdline.c (print_completion): New function.
50928
50929 * kern/partition.c (grub_partition_iterate): Add an argument DISK
50930 to HOOK.
50931 All callers changed.
50932
50933 * kern/disk.c (grub_print_partinfo): Removed.
50934
50935 * include/grub/partition.h (struct grub_partition_map): Add a new
50936 argument DISK into HOOK of ITERATE.
50937 (grub_partition_iterate): Add a new argument DISK to HOOK.
50938
50939 * include/grub/normal.h (enum grub_completion_type): New enum.
50940 (grub_completion_type_t): New type.
50941 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
50942 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
50943 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
50944 (GRUB_COMPLETION_TYPE_FILE): Likewise.
50945 (grub_normal_do_completion): Added a new argument HOOK.
50946 (grub_normal_print_device_info): New prototype.
50947
50948 * include/grub/disk.h (grub_print_partinfo): Removed.
50949
50950 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
50951 (normal_mod_SOURCES): Likewise.
50952 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
50953 (normal_mod_SOURCES): Likewise.
50954
50955 * commands/ls.c (grub_ls_list_disks): Use
50956 grub_normal_print_device_info instead of grub_print_partinfo. Free
50957 PNAME.
50958 (grub_ls_list_files): Use grub_normal_print_device_info instead of
50959 duplicating the code.
50960
50961 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
50962
50963 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
50964 follow GCS more precisely.
50965 * commands/i386/pc/vbe_test.c: Likewise.
50966 * include/grub/i386/pc/vbe.h: Likewise.
50967 * term/i386/pc/vesafb.c: Likewise.
50968 * video/i386/pc/vbe.c: Likewise.
50969
50970 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
50971
50972 * DISTLIST: Added term/i386/pc/vesafb.c
50973 DISTLIST: Added video/i386/pc/vbe.c
50974 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
50975 DISTLIST: Added commands/i386/pc/vbe_test.c.
50976 * commands/i386/pc/vbe_list_modes.c: New file.
50977 * commands/i386/pc/vbe_test.c: Likewise.
50978 * term/i386/pc/vesafb.c: Likewise.
50979 * video/i386/pc/vbe.c: Likewise.
50980 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
50981 (grub_vbe_probe) Added prototype.
50982 (grub_vbe_set_video_mode) Likewise.
50983 (grub_vbe_get_video_mode) Likewise.
50984 (grub_vbe_get_video_mode_info) Likewise.
50985 (grub_vbe_set_pixel_rgb) Likewise.
50986 (grub_vbe_set_pixel_index) Likewise.
50987 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
50988 (pkgdata_MODULES): Added vesafb.mod.
50989 (pkgdata_MODULES): Added vbe_list_modes.mod.
50990 (pkgdata_MODULES): Added vbe_test.mod.
50991 (vbe_mod_SOURCES): Added.
50992 (vbe_mod_CFLAGS): Likewise.
50993 (vesafb_mod_SOURCES): Likewise.
50994 (vesafb_mod_CFLAGS): Likewise.
50995 (vbe_list_modes_mod_SOURCES): Likewise.
50996 (vbe_list_modes_mod_CFLAGS): Likewise.
50997 (vbe_test_mod_SOURCES): Likewise.
50998 (vbe_test_mod_CFLAGS): Likewise.
50999
51000 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
51001
51002 * normal/command.c (grub_command_execute): If INTERACTIVE is
51003 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
51004 CMDLINE. Disable the pager if INTERACTIVE is true.
51005 All callers are changed.
51006
51007 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
51008 before reading a config file.
51009 * normal/main.c (read_config_file): Even if a command is not
51010 found, register it if it is within an entry.
51011
51012 * util/grub-emu.c: Include sys/types.h and unistd.h.
51013 (options): Added --hold.
51014 (struct arguments): Added a new member "hold".
51015 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
51016 missing.
51017 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
51018 cleared by a debugger, if it is not zero.
51019
51020 * include/grub/normal.h (grub_command_execute): Add an argument
51021 INTERACTIVE.
51022
51023 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
51024
51025 * DISTLIST: Added include/grub/i386/pc/vbe.h.
51026
51027 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
51028
51029 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
51030 program with another one, because the old one didn't detect a bug
51031 in gcc-3.4. Always use regparm 2, because the new test is still
51032 not enough for gcc-4.0. Someone must investigate a simple test
51033 case which detects a bug in gcc-4.0.
51034
51035 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
51036
51037 * DISTLIST: Added normal/completion.c.
51038
51039 * normal/completion.c: New file.
51040
51041 * term/i386/pc/console.c (grub_console_getwh): New function.
51042 (grub_console_term): Assign grub_console_getwh to getwh.
51043
51044 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
51045 function is defined in normal/completion.c as
51046 grub_normal_do_completion.
51047 (grub_cmdline_get): Use grub_normal_do_completion instead of
51048 grub_tab_complete.
51049
51050 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
51051 returns non-zero, otherwise return 0.
51052 (grub_partition_iterate): First, probe the partition map. Then,
51053 call ITERATE only for this partition map.
51054
51055 * kern/misc.c (grub_strncmp): Rewritten.
51056
51057 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
51058 returns non-zero. Otherwise return 0.
51059
51060 * include/grub/partition.h (grub_partition_map_iterate): Return
51061 int instead of void.
51062
51063 * include/grub/normal.h (grub_normal_do_completion): New prototype.
51064
51065 * include/grub/misc.h (grub_strncmp): Change the type of N to
51066 grub_size_t.
51067
51068 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
51069 of void.
51070
51071 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
51072 unsigned explicitly before comparing it with I.
51073
51074 * kern/main.c (grub_env_write_root): Add the attribute unused into
51075 VAR.
51076
51077 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
51078 normal/completion.c.
51079 (normal_mod_SOURCES): Likewise.
51080 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
51081 (normal_mod_SOURCES): Likewise.
51082
51083 * normal/command.c (grub_iterate_commands): If ITERATE returns
51084 non-zero, return one immediately.
51085
51086 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
51087
51088 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
51089 * kern/i386/pc/startup.S: Updated Global Descriptor table's
51090 descriptions.
51091 (grub_vbe_get_controller_info): New function.
51092 (grub_vbe_get_mode_info): Likewise.
51093 (grub_vbe_set_mode): Likewise.
51094 (grub_vbe_get_mode): Likewise.
51095 (grub_vbe_set_memory_window): Likewise.
51096 (grub_vbe_get_memory_window): Likewise.
51097 (grub_vbe_set_scanline_length): Likewise.
51098 (grub_vbe_get_scanline_length): Likewise.
51099 (grub_vbe_set_display_start): Likewise.
51100 (grub_vbe_get_display_start): Likewise.
51101 (grub_vbe_set_palette_data): Likewise.
51102 * include/grub/i386/pc/vbe.h: New file.
51103
51104 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
51105
51106 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
51107 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
51108 * DISTLIST: Likewise.
51109 * kern/ieee1275/of.c: Moved to ...
51110 * kern/ieee1275/ieee1275.c: ... here.
51111
51112 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
51113
51114 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
51115 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
51116 Pass 0 as `end' parameter to grub_strtoul().
51117
51118 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
51119
51120 * include/grub/powerpc/ieee1275/console.h: Do not include
51121 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
51122 ifdef.
51123 (grub_console_cur_color): Remove i386-specific prototype.
51124 (grub_console_real_putchar): Likewise.
51125 (grub_console_checkkey): Likewise.
51126 (grub_console_getkey): Likewise.
51127 (grub_console_getxy): Likewise.
51128 (grub_console_gotoxy): Likewise.
51129 (grub_console_cls): Likewise.
51130 (grub_console_setcursor): Likewise.
51131 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
51132 Include <grub/machine/console.h>.
51133 * term/ieee1275/ofconsole.c: Likewise.
51134
51135 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
51136
51137 * Makefile.in (LIBLZO): New variable.
51138
51139 * configure.ac: Check for LZO version 2.
51140
51141 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
51142 lzo/lzo1x.h instead of lzo1x.h.
51143
51144 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
51145 of -llzo.
51146
51147 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
51148 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
51149
51150 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
51151 copying the data from PARTITION to P.
51152
51153 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
51154
51155 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
51156 negative, unload the module.
51157
51158 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
51159 map is "pc_partition_map" but not "pc".
51160 (usage): Fix the description. The options are --boot-image and
51161 --core-image but not --boot-file or --core-file.
51162 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
51163 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
51164 DEFAULT_DIRECTORY.
51165
51166 * util/i386/pc/grub-install.in: Do not specify --boot-file or
51167 --core-file. Specify INSTALL_DEVICE as an argument.
51168
51169 * util/console.c: Include config.h.
51170 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
51171 [HAVE_NCURSES_H]: Include ncurses.h.
51172 [HAVE_CURSES_H]: Include curses.h.
51173 [!A_NORMAL] (A_NORMAL): Defined as zero.
51174 [!A_STANDOUT] (A_STANDOUT): Likewise.
51175
51176 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
51177 -lncurses.
51178 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
51179
51180 * configure.ac: Check for curses libraries and headers.
51181
51182 * Makefile.in (LIBCURSES): New variable.
51183
51184 * genmk.rb (Script::rule): Set the executable bits.
51185
51186 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
51187 name of the PC partition map is "pc_partition_map" but not "pc".
51188
51189 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
51190
51191 * util/i386/pc/grub-install.in (grub_probefs): New variable.
51192 (modules): Likewise.
51193 (usage): Added descriptions for --modules and --grub-probefs.
51194 Handle --modules and --grub-probefs. Save the arguments in MODULES
51195 and GRUB_PROBEFS, respectively.
51196 Auto-detect a filesystem module against GRUBDIR. If the result is
51197 empty and modules are not specified explicitly, abort the
51198 installation. Add the result to MODULES.
51199
51200 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
51201 disk/powerpc/ieee1275/ofdisk.c,
51202 include/grub/powerpc/ieee1275/init.h and
51203 term/powerpc/ieee1275/ofconsole.c.
51204 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
51205 term/ieee1275/ofconsole.c.
51206
51207 * include/grub/powerpc/ieee1275/console.h: Resurrected.
51208
51209 * COPYING: Upgraded to the latest version. Only the address of the
51210 FSF office has changed.
51211
51212 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
51213
51214 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
51215 kern/ieee1275.c with kern/ieee1275/of.c.
51216
51217 * kern/ieee1275.c: Moved to ...
51218 * kern/ieee1275/of.c: ... here.
51219
51220 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
51221
51222 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
51223 readability.
51224
51225 * config.guess: Updated to the latest version from gnulib.
51226 * config.sub: Likewise.
51227 * install.sh: Likewise.
51228 * mkinstalldirs: Likewise.
51229
51230 * include/grub/console.h: Removed. This file is arch-specific. Do
51231 not put this in include/grub.
51232
51233 * include/grub/i386/pc/console.h: Resurrected.
51234
51235 * util/console.c: Include grub/machine/console.h instead of
51236 grub/console.h.
51237 * util/grub-emu.c: Likewise.
51238
51239 2005-08-04 Marco Gerards <metgerards@student.han.nl>
51240
51241 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
51242 hardcoded value.
51243
51244 From Vincent Pelletier <subdino2004@yahoo.fr>
51245 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
51246 Redefined to use grub_getwh.
51247 (grub_term): New member named getwh.
51248 (grub_getwh): New prototype.
51249 * kern/term.c (grub_getwh): New function.
51250 * term/i386/pc/console.c (grub_console_getwh): New function.
51251 (grub_console_term): New member `getwh'.
51252 * term/i386/pc/vga.c (grub_vga_getwh): New function.
51253 (grub_vga_term): New member `getwh'.
51254 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
51255 grub_ssize_t.
51256 (grub_ofconsole_getw): New function.
51257 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
51258 (grub_ofconsole_term): New field named getwh and new initial
51259 value.
51260
51261 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
51262
51263 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
51264 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
51265 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
51266 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
51267 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
51268 of <grub/machine/ieee1275.h>.
51269 * commands/ieee1275/reboot.c: Likewise.
51270 * boot/powerpc/ieee1275/ieee1275.c: Move ...
51271 * kern/ieee1275.c: ... to here. All users updated. Change all
51272 parameter structs to use new type `grub_ieee1275_cell_t'.
51273 * term/powerpc/ieee1275/ofconsole.c: Move ...
51274 * term/ieee1275/ofconsole.c: ... to here. All users updated.
51275 * disk/powerpc/ieee1275/ofdisk.c: Move ...
51276 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
51277 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
51278 to return int.
51279 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
51280 Remove unused prototypes. All users updated.
51281 * include/grub/powerpc/ieee1275/console.h: Removed.
51282 * include/grub/powerpc/ieee1275/ieee1275.h: Define
51283 `grub_ieee1275_cell_t'.
51284 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
51285 Cast comparisons with -1 to the correct type.
51286 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
51287 type to match `grub_ieee1275_entry_fn'.
51288
51289 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
51290
51291 * DISTLIST: Added util/i386/pc/grub-probefs.c.
51292
51293 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
51294 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
51295 partmap/sun.c.
51296 (grub_probefs_SOURCES): New variable.
51297
51298 * util/i386/pc/grub-probefs.c: New file.
51299
51300 * util/i386/pc/grub-setup.c (main): Call
51301 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
51302 grub_hfs_init and grub_jfs_init to initialize the system. Call
51303 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
51304 grub_pc_partition_map_fini to finish the system.
51305
51306 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
51307
51308 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
51309 function.
51310 (grub_multiboot_load_elf32): Likewise.
51311 (grub_multiboot_is_elf64): Likewise.
51312 (grub_multiboot_load_elf64): Likewise.
51313 (grub_multiboot_load_elf): Likewise.
51314 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
51315 an ELF32 or ELF64 file.
51316 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
51317
51318 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
51319 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
51320 NULL before calling FS->LABEL.
51321 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
51322 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
51323 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
51324 before calling FS->LABEL.
51325
51326 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
51327
51328 * util/i386/pc/grub-install.in (datadir): New variable.
51329 (libdir): Removed.
51330 (pkgdatadir): New variable.
51331 (pkglibdir): Removed.
51332
51333 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
51334
51335 * DISTLIST: Added util/i386/pc/grub-install.in.
51336
51337 * util/i386/pc/grub-install.in: New file.
51338
51339 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
51340 (grub_install_SOURCES): Likewise.
51341
51342 * genmk.rb: Added support for scripts.
51343 (Script): New class.
51344 (scripts): New variable.
51345
51346 * Makefile.in (install-local): Install sbin_SCRIPTS by
51347 INSTALL_SCRIPT.
51348 (uninstall): Remove sbin_SCRIPTS.
51349
51350 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
51351 device, try to get a GRUB device by
51352 grub_util_biosdisk_get_grub_dev.
51353 Free DEST_DEV.
51354
51355 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
51356 description for --device-map.
51357
51358 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
51359
51360 Change the semantics of variable hooks. They now return strings
51361 instead of error values.
51362
51363 * util/i386/pc/grub-setup.c: Include grub/env.h.
51364 (setup): Use grub_device_set_root instead of grub_env_set.
51365
51366 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
51367 grub_env_get instead of grub_device_set_root and
51368 grub_device_get_root, respectively.
51369
51370 * kern/main.c (grub_env_write_root): New function.
51371 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
51372 grub_env_set instead of grub_device_set_root.
51373
51374 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
51375 many variables.
51376 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
51377 rather than calling ENV->WRITE_HOOK afterwards.
51378 (grub_env_get): Return the result of ENV->READ_HOOK rather than
51379 passing a pointer of a pointer.
51380 (grub_register_variable_hook): Change the types of "read_hook" and
51381 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
51382 respectively.
51383 Allocate the default empty string on the heap, because this string
51384 may be freed later.
51385
51386 * kern/device.c: Include grub/env.h.
51387 (grub_device_set_root): Removed.
51388 (grub_device_get_root): Likewise.
51389 (grub_device_open): Use grub_env_get instead of
51390 grub_device_get_root.
51391
51392 * include/grub/env.h (grub_env_read_hook_t): New type.
51393 (grub_env_write_hook_t): Likewise.
51394 (grub_env_var): Change the types of "read_hook" and "write_hook"
51395 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
51396 (grub_register_variable_hook): Likewise.
51397
51398 * include/grub/device.h (grub_device_set_root): Removed.
51399 (grub_device_set_root): Likewise.
51400
51401 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
51402 make sure that DIRNAME terminates with '/', so that
51403 grub_fat_find_dir will fail if PATH is not a directory.
51404
51405 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
51406 from DIRNAME.
51407 Use the qualifier auto for print_files and print_files_long.
51408 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
51409 as a regular file.
51410 Put a newline only if there is no error.
51411 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
51412 used.
51413
51414 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
51415
51416 * kern/partition.c (grub_partition_probe): Initialize PART to
51417 NULL. Otherwise, when no partition map is registered, this returns
51418 a garbage.
51419
51420 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
51421
51422 * partmap/apple.c (apple_partition_map_iterate): Check if POS
51423 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
51424 valid.
51425
51426 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
51427
51428 * commands/ls.c (grub_ls_list_disks): Print the filesystem
51429 information on each device, if it does not have partitions. Print
51430 "Device" instead of "Disk", because this function is not specific
51431 to disk devices.
51432
51433 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
51434 static to ensure that it is put on the memory rather than a
51435 register.
51436
51437 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
51438
51439 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
51440 (grub_cat_init): Likewise.
51441 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
51442 (options): Likewise.
51443 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
51444 (grub_configfile_init): Likewise.
51445 * font/manager.c (GRUB_MOD_INIT): Likewise.
51446 * commands/help.c (GRUB_MOD_INIT): Likewise.
51447 (grub_help_init): Likewise.
51448 * normal/command.c (grub_command_init): Likewise.
51449 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
51450 * disk/loopback.c (grub_loop_init): Likewise.
51451 (GRUB_MOD_INIT): Likewise.
51452 * commands/ls.c (grub_ls_init): Likewise.
51453 (GRUB_MOD_INIT): Likewise.
51454 (options): Likewise.
51455 * commands/boot.c (grub_boot_init): Likewise.
51456 (GRUB_MOD_INIT): Likewise.
51457 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
51458 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
51459 (GRUB_MOD_INIT): Likewise.
51460 * commands/cmp.c (grub_cmp_init): Likewise.
51461 (GRUB_MOD_INIT): Likewise.
51462
51463 * normal/arg.c: Use <> instead of "" to include header files.
51464 (SHORT_ARG_HELP): New macro.
51465 (SHORT_ARG_USAGE): Likewise.
51466 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
51467 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
51468 descriptions.
51469 (find_short): Check if C is 'h' or 'u' explicitly.
51470 (grub_arg_show_help): Use space characters instead of tabs. Treat
51471 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
51472 are shown with --help and --usage only if they are not used for
51473 the command itself.
51474 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
51475 'h' and 'u'.
51476
51477 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
51478 const into "longarg". Change the type of "shortarg" to int.
51479
51480 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
51481
51482 * boot/i386/pc/boot.S (boot_drive_check): New label.
51483
51484 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
51485 macro.
51486
51487 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
51488 which do not pass a boot drive correctly. Copied from GRUB Legacy.
51489
51490 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
51491
51492 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
51493 When turning off Gate A20, skip the check and return immediately,
51494 because this is not fatal usually.
51495
51496 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
51497
51498 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
51499 be 0x7C00 instead of 0x8000.
51500
51501 * boot/i386/pc/pxeboot.S: Rewritten.
51502
51503 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
51504 EXT_C.
51505 (gate_a20_check_state): Read a byte from 0x108000. Invert the
51506 result.
51507
51508 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
51509
51510 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
51511 robustness. This routine now supports a BIOS call and System
51512 Control Port A to modify the gate A20.
51513
51514 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
51515 Increased to 0x440.
51516
51517 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
51518
51519 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
51520 device path and resulting ihandle.
51521 (grub_ofdisk_close): dprintf the ihandle being closed.
51522 (grub_ofdisk_read): dprintf function parameters.
51523 * kern/mm.c (grub_mm_init_region): Likewise.
51524 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
51525 (grub_linux_boot): dprintf the Linux entry point, initrd address and
51526 size, and boot arguments.
51527 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
51528 before loading into memory.
51529 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
51530 before loading into memory.
51531
51532 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
51533
51534 * kern/mm.c: Added much documentation.
51535 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
51536 8, set to 5 instead of 8.
51537
51538 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
51539
51540 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
51541
51542 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
51543 (grub_mkdevicemap_SOURCES): New variable.
51544
51545 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
51546 lib/device.c of GRUB Legacy.
51547
51548 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
51549
51550 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
51551 instead of PATH is NULL.
51552
51553 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
51554
51555 * commands/cmp.c (BUFFER_SIZE): New macro.
51556 (grub_cmd_cmp): Close the right file at the right time. Compare
51557 only data just read. Don't report files of different size as
51558 identical. Dynamically allocate buffers. Move variable
51559 declarations at the beginning of function.
51560
51561 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
51562
51563 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
51564 reverse.
51565
51566 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
51567
51568 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
51569 when backspace is pressed at beginning of line.
51570
51571 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
51572
51573 * DISTLIST: Added genfslist.sh.
51574
51575 * normal/main.c (fs_module_list): New variable.
51576 (autoload_fs_module): New function.
51577 (read_fs_list): Likewise.
51578 (grub_normal_execute): Call read_fs_list.
51579
51580 * kern/fs.c (grub_fs_autoload_hook): New variable.
51581 (grub_fs_probe): Added support for auto-loading.
51582
51583 * include/grub/normal.h (struct grub_fs_module_list): New struct.
51584 (grub_fs_module_list_t): New type.
51585
51586 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
51587 (grub_fs_autoload_hook): New prototype.
51588
51589 * genfslist.sh: New file.
51590
51591 * genmk.rb: Added a rule to generate a filesystem list.
51592
51593 2005-06-30 Marco Gerards <metgerards@student.han.nl>
51594
51595 * configure.ac: Fix the test for cross-compiling.
51596
51597 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
51598 define GRUB_UTIL anymore.
51599
51600 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
51601 so this function works on other systems than just big endian.
51602 (load_modules): Likewise.
51603 (add_segments): Likewise.
51604
51605 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
51606
51607 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
51608 contains `l' modifier, get a long from va_arg().
51609
51610 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
51611
51612 * kern/mm.c (grub_free): If the next free block which is being
51613 merged is the first free block, set the first block to the block
51614 being freed.
51615 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
51616
51617 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
51618
51619 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
51620 `grub_ieee1275_chosen'.
51621
51622 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
51623
51624 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
51625 (grub_ieee1275_chosen): New variable.
51626 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
51627 `chosen'.
51628 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
51629 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
51630 Rename first argument to `phandle' for consistency.
51631 (grub_ieee1275_get_property_length): Likewise.
51632 (grub_ieee1275_next_property): Likewise. Change type of first argument
51633 to grub_ieee1275_phandle_t.
51634 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
51635 Move export next to declaration.
51636 (grub_ieee1275_chosen): New variable.
51637 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
51638 Correct cosmetic typo.
51639 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
51640 `grub_ieee1275_chosen'.
51641 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
51642 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
51643 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
51644 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
51645 `grub_ieee1275_chosen'.
51646
51647 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
51648
51649 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
51650 /chosen/bootargs.
51651 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
51652 /chosen/bootargs as "variable=value" pairs.
51653
51654 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
51655
51656 * include/grub/misc.h (grub_dprintf): New macro.
51657 (grub_real_dprintf): New prototype.
51658 (grub_strword): Likewise.
51659 (grub_iswordseparator): Likewise.
51660 * kern/misc.c (grub_real_dprintf): New function.
51661 (grub_strword): Likewise.
51662 (grub_iswordseparator): Likewise.
51663
51664 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
51665
51666 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
51667 (roundup): Remove macro.
51668 (grub_ieee1275_flags): Make static.
51669 (grub_ieee1275_realmode): Remove.
51670 (grub_ieee1275_test_flag): New function.
51671 (grub_ieee1275_set_flag): Likewise.
51672 (find_options): Rename to `grub_ieee1275_find_options'; update
51673 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
51674 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
51675 (cmain): New prototype.
51676 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
51677 `grub_ieee1275_flags' directly.
51678 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
51679 machine/biosdisk.h.
51680 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
51681 Don't include grub/machine/init.h.
51682 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
51683 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
51684 Remove prototype.
51685 (grub_ieee1275_realmode): Likewise.
51686 (grub_ieee1275_flag): New enum.
51687 (grub_ieee1275_test_flag): New prototype.
51688 (grub_ieee1275_set_flag): New prototype.
51689 * include/grub/powerpc/ieee1275/init.h: Remove file.
51690 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
51691 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
51692 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
51693 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
51694 comment.
51695 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
51696 `grub_ieee1275_test_flag'.
51697 (grub_ieee1275_encode_devname): Likewise.
51698
51699 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
51700
51701 * include/grub/powerpc/ieee1275/ieee1275.h
51702 (grub_ieee1275_encode_devname): New prototype.
51703 (grub_ieee1275_get_filename): Likewise.
51704 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
51705 function.
51706 (grub_set_prefix): Likewise.
51707 (grub_machine_init): Call grub_set_prefix.
51708 * kern/powerpc/ieee1275/openfw.c: Fix typos.
51709 (grub_parse_type): New enum.
51710 (grub_ieee1275_get_devargs): New function.
51711 (grub_ieee1275_get_devname): Likewise.
51712 (grub_ieee1275_parse_args): Likewise.
51713 (grub_ieee1275_get_filename): Likewise.
51714 (grub_ieee1275_encode_devname): Likewise.
51715
51716 2005-03-30 Marco Gerards <metgerards@student.han.nl>
51717
51718 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
51719 `grub_loader_unset'.
51720
51721 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
51722
51723 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
51724 instead of grub_ieee1275_interpret.
51725 (grub_halt_init): New function.
51726 (grub_halt_fini): Likewise.
51727 (GRUB_MOD_INIT): Correct message grammar.
51728 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
51729 instead of grub_ieee1275_interpret.
51730 (grub_reboot_init): New function.
51731 (grub_reboot_fini): Likewise.
51732 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
51733 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
51734 util/i386/pc/misc.c with commands/ieee1275/halt.c,
51735 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
51736 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
51737 function.
51738 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
51739 Add prototype.
51740 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
51741 prototype.
51742 (grub_halt): Likewise.
51743 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
51744 (cmain): Remove __attribute__((unused)).
51745 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
51746 (grub_heap_len): Likewise.
51747 (grub_machine_fini): New function.
51748 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
51749 (grub_halt): Likewise.
51750 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
51751 function.
51752 * util/powerpc/ieee1275/misc.c: New file.
51753
51754 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
51755
51756 * DISTLIST: New file.
51757 * gendistlist.sh: Likewise.
51758
51759 * Makefile.in (COMMON_DISTFILES): Removed.
51760 (BOOT_DISTFILES): Likewise.
51761 (CONF_DISTFILES): Likewise.
51762 (DISK_DISTFILES): Likewise.
51763 (FS_DISTFILES): Likewise.
51764 (INCLUDE_DISTFILES): Likewise.
51765 (KERN_DISTFILES): Likewise.
51766 (LOADER_DISTFILES): Likewise.
51767 (TERM_DISTFILES): Likewise.
51768 (UTIL_DISTFILES): Likewise.
51769 (DISTFILES): Likewise.
51770 (uninstall): Uninstall files in $(pkgdata_DATA).
51771 (DISTLIST): New target.
51772 (distdir): Use the contents of the file DISTLIST to get a list of
51773 distributed files.
51774
51775 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
51776
51777 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
51778 descriptor. This is ported from GRUB Legacy.
51779
51780 * gencmdlist.sh: Added an extra semicolon to make it work with
51781 old sed versions. Reported by Robert Bihlmeyer
51782 <robbe@orcus.priv.at>.
51783
51784 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
51785
51786 Automatic loading of commands is supported.
51787
51788 * normal/main.c (read_command_list): New function.
51789 (grub_normal_execute): Call read_command_list.
51790
51791 * normal/command.c (grub_register_command): Return zero or CMD.
51792 Allocate CMD->NAME from the heap.
51793 Initialize CMD->MODULE_NAME to zero.
51794 Find the same name as well. If the same command is found and it is
51795 a dummy command, overwrite members. If it is not a dummy command,
51796 return zero.
51797 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
51798 (grub_command_find): If a dummy command is found, load a module
51799 and retry to find a command only once.
51800
51801 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
51802 make sure that each command is loaded.
51803
51804 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
51805 macro.
51806 (struct grub_command): Remove const from the member `name'.
51807 Add a new member `module_name'.
51808 (grub_register_command): Return grub_command_t.
51809
51810 * commands/help.c (grub_cmd_help): Call grub_command_find to make
51811 sure that each command is loaded.
51812
51813 * genmk.rb (PModule::rule): Specify a module name without the
51814 suffix ".mod" to gencmdlist.sh.
51815
51816 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
51817
51818 * gencmdlist.sh: New file.
51819
51820 * genmk.rb (PModule::rule): Generate a rule for a command list.
51821 Clean command.lst.
51822 Generate command.lst from $(COMMANDFILES).
51823
51824 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
51825 (DATA): Added $(pkgdata_DATA).
51826 (install-local): Install files in $(pkgdata_DATA).
51827
51828 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
51829
51830 * term/i386/pc/vga.c (debug_command): Removed.
51831 (GRUB_MOD_INIT): Do not register the command "debug".
51832
51833 From Hollis Blanchard:
51834 * commands/configfile.c: New file.
51835 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
51836 commands/configfile.c.
51837 (pkgdata_MODULES): Added configfile.mod.
51838 (configfile_mod_SOURCES): New variable.
51839 (configfile_mod_CFLAGS): Likewise.
51840 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
51841 commands/configfile.c.
51842 (pkgdata_MODULES): Added configfile.mod.
51843 (configfile_mod_SOURCES): New variable.
51844 (configfile_mod_CFLAGS): Likewise.
51845 * util/grub-emu.c (main): Call grub_configfile_init and
51846 grub_configfile_fini.
51847 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
51848 prototype.
51849 [GRUB_UTIL] (grub_configfile_fini): Likewise.
51850
51851 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
51852
51853 * normal/arg.c (grub_arg_show_help): Do not show the bug report
51854 address.
51855
51856 * commands/help.c (grub_cmd_help): Do not print newlines after
51857 the last command in print_command_help.
51858
51859 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
51860
51861 * commands/default.h: New file.
51862 * commands/timeout.h: Likewise.
51863 * normal/context.c: Likewise.
51864
51865 * util/misc.c: Do not include sys/times.h.
51866 Include sys/time.h and grub/machine/time.h.
51867 (grub_get_rtc): Rewritten with gettimeofday.
51868
51869 * util/grub-emu.c (main): Call grub_default_init and
51870 grub_timeout_init before grub_normal_init, and call
51871 grub_timeout_fini and grub_default_fini after grub_main.
51872
51873 * util/console.c (grub_ncurses_checkkey): Return the read
51874 character or -1.
51875
51876 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
51877 timeouts.
51878
51879 * normal/main.c (read_config_file): Push MENU. If this fails,
51880 print an error and wait for a user input.
51881 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
51882 If a menu is empty or an error occurs, pop MENU.
51883 (grub_normal_execute): Pop and free MENU after grub_menu_run
51884 returns.
51885
51886 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
51887
51888 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
51889 include time.h.
51890 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
51891 without GRUB_UTIL.
51892 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
51893 time.h.
51894 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
51895 without GRUB_UTIL.
51896
51897 * include/grub/normal.h (struct grub_menu_list): New struct.
51898 (grub_menu_list_t): New type.
51899 (struct grub_context): New struct.
51900 (grub_context_t): New type.
51901 (grub_register_command): Got rid of EXPORT_FUNC.
51902 (grub_unregister_command): Likewise.
51903 (grub_context_get): New prototype.
51904 (grub_context_get_current_menu): Likewise.
51905 (grub_context_push_menu): Likewise.
51906 (grub_context_pop_menu): Likewise.
51907 [GRUB_UTIL] (grub_default_init): Likewise.
51908 [GRUB_UTIL] (grub_default_fini): Likewise.
51909 [GRUB_UTIL] (grub_timeout_init): Likewise.
51910 [GRUB_UTIL] (grub_timeout_fini): Likewise.
51911
51912 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
51913 commands/timeout.c and normal/context.c.
51914 (pkgdata_MODULES): Added default.mod and timeout.mod.
51915 (normal_mod_SOURCES): Added normal/context.c.
51916 (default_mod_SOURCES): New variable.
51917 (default_mod_CFLAGS): Likewise.
51918 (timeout_mod_SOURCES): Likewise.
51919 (timeout_mod_CFLAGS): Likewise.
51920 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
51921 conf/i386-pc.rmk.
51922 (pkgdata_MODULES): Added default.mod and timeout.mod.
51923 (normal_mod_SOURCES): Added normal/context.c.
51924 (default_mod_SOURCES): New variable.
51925 (default_mod_CFLAGS): Likewise.
51926 (timeout_mod_SOURCES): Likewise.
51927 (timeout_mod_CFLAGS): Likewise.
51928
51929 * Makefile.in (all-local): Added $(MKFILES).
51930
51931 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
51932
51933 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
51934 (grub_emu_SOURCES): Likewise.
51935 (pkgdata_MODULES): Add `sun.mod'.
51936 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
51937 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51938 `partmap/sun.c'.
51939 (pkgdata_MODULES): Add `sun.mod'.
51940 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
51941 * include/grub/partition.h (grub_sun_partition_map_init): New
51942 prototype.
51943 (grub_sun_partition_map_fini): Likewise.
51944 * partmap/sun.c: New file.
51945 * util/grub-emu.c (main): Initialize and de-initialize the sun
51946 partitionmap support.
51947
51948 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
51949
51950 This implements an Emacs-like menu entry editor.
51951
51952 * normal/menu_entry.c: New file.
51953
51954 * util/console.c (grub_ncurses_putchar): Translate some Unicode
51955 characters to ASCII.
51956 (saved_char): New variable.
51957 (grub_ncurses_checkkey): Rewritten completely.
51958 (grub_ncurses_getkey): Likewise.
51959 (grub_ncurses_init): Call raw instead of cbreak.
51960
51961 * normal/menu.c (print_entry): Do not put a space.
51962 (init_page): Renamed to ...
51963 (grub_menu_init_page): ... this. All callers changed.
51964 (edit_menu_entry): Removed.
51965 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
51966
51967 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
51968
51969 * kern/misc.c (grub_vprintf): Call grub_refresh.
51970
51971 * normal/menu.c (DISP_LEFT): Renamed to ...
51972 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
51973 * normal/menu.c (DISP_UP): Renamed to ...
51974 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
51975 * normal/menu.c (DISP_RIGHT): Renamed to ...
51976 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
51977 * normal/menu.c (DISP_DOWN): Renamed to ...
51978 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
51979 * normal/menu.c (DISP_HLINE): Renamed to ...
51980 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
51981 * normal/menu.c (DISP_VLINE): Renamed to ...
51982 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
51983 * normal/menu.c (DISP_UL): Renamed to ...
51984 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
51985 * normal/menu.c (DISP_UR): Renamed to ...
51986 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
51987 * normal/menu.c (DISP_LL): Renamed to ...
51988 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
51989 * normal/menu.c (DISP_LR): Renamed to ...
51990 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
51991 * normal/menu.c (TERM_WIDTH): Renamed to ...
51992 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
51993 * normal/menu.c (TERM_HEIGHT): Renamed to ...
51994 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
51995 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
51996 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
51997 * normal/menu.c (TERM_MARGIN): Renamed to ...
51998 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
51999 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
52000 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
52001 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
52002 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
52003 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
52004 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
52005 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
52006 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
52007 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
52008 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
52009 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
52010 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
52011 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
52012 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
52013 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
52014 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
52015 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
52016 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
52017 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
52018 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
52019 All callers changed.
52020
52021 * include/grub/normal.h: New prototype.
52022
52023 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
52024 normal/menu_entry.c.
52025 (normal_mod_SOURCES): Likewise.
52026 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
52027 (normal_mod_SOURCES): Likewise.
52028
52029 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
52030
52031 * include/grub/normal.h (grub_halt_init): New prototype.
52032 (grub_halt_fini): Likewise.
52033 (grub_reboot_init): Likewise.
52034 (grub_reboot_fini): Likewise.
52035
52036 * util/grub-emu.c: Include signal.h.
52037 (main_env): New global variable.
52038 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
52039 catch C-c.
52040 (grub_machine_fini): New function.
52041 (main): Call grub_halt_init and grub_reboot_init before
52042 grub_main, and grub_reboot_fini and grub_halt_fini after it.
52043 Call setjmp with MAIN_ENV to go back afterwards.
52044 Call grub_machine_fini right before return.
52045
52046 * include/grub/util/misc.h: Include setjmp.h.
52047 (main_env): New prototype.
52048
52049 * include/grub/kernel.h (grub_machine_fini): New prototype.
52050 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
52051 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
52052
52053 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
52054 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
52055 * term/i386/pc/console.c (grub_console_fini): Likewise.
52056
52057 * util/i386/pc/misc.c: New file.
52058
52059 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
52060 util/i386/pc/misc.c, commands/i386/pc/halt.c and
52061 commands/i386/pc/reboot.c.
52062
52063 2005-02-14 Guillem Jover <guillem@hadrons.org>
52064
52065 * include/grub/dl.h (grub_dl_check_header): New prototype.
52066 (grub_arch_dl_check_header): Change return type to grub_err_t,
52067 remove size parameter and export function. Update all callers.
52068 * kern/dl.c (grub_dl_check_header): New function.
52069 (grub_dl_load_core): Use `grub_dl_check_header' instead of
52070 `grub_arch_dl_check_header'. Check ELF type. Check if sections
52071 are inside the core.
52072 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
52073 independent ELF header checks.
52074 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
52075 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
52076 `grub_dl_check_header' instead of explicit checks. Check for the
52077 ELF type.
52078 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
52079 `grub_dl_check_header' instead of explicit checks. Remove arch
52080 specific ELF header checks.
52081
52082 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
52083 argument SIZE.
52084
52085 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
52086
52087 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
52088 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
52089
52090 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
52091
52092 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
52093 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
52094 (part_map_iterate): Clear `grub_errno' and return 0 if
52095 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
52096 * partmap/amiga.c (amiga_partition_map_iterate): Return
52097 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
52098 * partmap/apple.c (apple_partition_map_iterate): Likewise.
52099
52100 2005-02-01 Guillem Jover <guillem@hadrons.org>
52101
52102 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
52103 help info.
52104
52105 2005-01-31 Marco Gerards <metgerards@student.han.nl>
52106
52107 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
52108 Removed prototype.
52109 (grub_rescue_cmd_linux): New prototype.
52110 (grub_rescue_cmd_initrd): Likewise.
52111 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
52112 `bi_rec'.
52113 (grub_linux_release_mem): Release the memory for the initrd.
52114 (grub_load_linux): Renamed from this...
52115 (grub_rescue_cmd_linux): ...To this. Changed all callers.
52116 Changed `entry' not to be static. Loop over memory regions to
52117 find another one when the default fails.
52118 (grub_rescue_cmd_initrd): New function.
52119 (grub_linux_init): Remove function.
52120 (grub_linux_fini): Likewise.
52121 (GRUB_MOD_INIT): Register `initrd'.
52122 (GRUB_MOD_FINI): Unregister `initrd'.
52123 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
52124 Function removed.
52125 (grub_linux_normal_fini): Likewise.
52126 (GRUB_MOD_INIT): Register `initrd'.
52127 (GRUB_MOD_FINI): Unregister `initrd'.
52128
52129 2005-01-31 Marco Gerards <metgerards@student.han.nl>
52130
52131 * commands/help.c: New file.
52132 * normal/arg.c (show_help): Renamed to...
52133 (grub_arg_show_help): ... this.
52134 * commands/i386/pc/halt.c: New file.
52135 * commands/i386/pc/reboot.c: Likewise.
52136 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
52137 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
52138 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
52139 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
52140 variables.
52141 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
52142 `commands/help.c'.
52143 (pkgdata_MODULES): Add `help.mod'.
52144 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
52145 * grub/i386/pc/init.h (grub_reboot): New prototype.
52146 (grub_halt): Likewise.
52147 * include/grub/normal.h (grub_arg_show_help): New prototype.
52148 (grub_help_init): Likewise.
52149 (grub_help_fini): Likewise.
52150 * util/grub-emu.c (main): Initialize and deinitialize the help
52151 command.
52152
52153 * normal/cmdline.c (grub_cmdline_get): Doc fix.
52154
52155 * normal/command.c (grub_command_init): Fixed the description of
52156 the `set' and `unset' commands.
52157
52158 2005-01-31 Marco Gerards <metgerards@student.han.nl>
52159
52160 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
52161 function.
52162 * commands/ieee1275/halt.c: New file.
52163 * commands/ieee1275/reboot.c: Likewise.
52164 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
52165 `__attribute__ ((unused))'. Some GCS related fixed.
52166 (grub_suspend_init) [GRUB_UTIL]: Function removed.
52167 (grub_suspend_fini): Likewise.
52168 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
52169 and `halt.mod'.
52170 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
52171 (halt_mod_CFLAGS): New variables.
52172 * include/grub/powerpc/ieee1275/ieee1275.h
52173 (grub_ieee1275_interpret): New prototype.
52174
52175 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
52176
52177 * include/grub/misc.h (memmove): New prototype.
52178 (memcpy): Likewise.
52179
52180 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
52181
52182 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
52183 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
52184
52185 2005-01-22 Marco Gerards <metgerards@student.han.nl>
52186
52187 * kern/misc.c (grub_strndup): Function rewritten.
52188
52189 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
52190
52191 * normal/menu.c (TERM_WIDTH): Macro redefined.
52192 (TERM_TOP_BORDER_Y): Likewise.
52193 (draw_border): Replaced while-loop by a for-loop. Make the number
52194 of lines consistent with the number of lines displayed in
52195 print_entries. Added a margin below the rectangle.
52196 (print_entry): Make the entry fit in the rectangle.
52197 (print_entries): Display the scroll arrows next to the right
52198 border.
52199
52200 2005-01-21 Marco Gerards <metgerards@student.han.nl>
52201
52202 * fs/minix.c (grub_minix_find_file): Reserve more space for
52203 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
52204 `grub_strncpy' to copy `path' into it.
52205
52206 2005-01-21 Marco Gerards <metgerards@student.han.nl>
52207
52208 Add the loopback device, a device via which files can be accessed
52209 as devices.
52210
52211 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
52212 (pkgdata_MODULES): Add loopback.mod.
52213 (loopback_mod_SOURCES): New variable.
52214 (loopback_mod_CFLAGS): Likewise.
52215 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
52216 `disk/loopback.c'.
52217 (pkgdata_MODULES): Add loopback.mod.
52218 (loopback_mod_SOURCES): New variable.
52219 (loopback_mod_CFLAGS): Likewise.
52220 * disk/loopback.c: new file.
52221 * include/grub/normal.h (grub_loop_init): New prototype.
52222 (grub_loop_fini): New prototype.
52223 * util/grub-emu.c (main): Initialize and de-initialize loopback
52224 support.
52225 * include/grub/disk.h (grub_disk_dev_id): Add
52226 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
52227
52228 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
52229
52230 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
52231 function.
52232 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
52233 (suspend_mod_SOURCES): New variable.
52234 (suspend_mod_CFLAGS): Likewise.
52235 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
52236 New prototype.
52237 * commands/ieee1275/suspend.c: New file.
52238
52239 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
52240
52241 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
52242 ((unused))' to `__attribute__ ((used))'.
52243 (GRUB_MOD_FINI): Likewise.
52244 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
52245 * genmk.rb (PModule): Assign space to common symbols when linking
52246 modules.
52247
52248 2005-01-20 Marco Gerards <metgerards@student.han.nl>
52249
52250 * include/grub/mm.h (grub_mm_init_region): Change the type of the
52251 `unsigned' arguments to `grub_size_t'.
52252 (grub_malloc): Likewise.
52253 (grub_realloc): Likewise.
52254 (grub_memalign): Likewise.
52255 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
52256 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
52257 * util/misc.c (grub_malloc): Likewise.
52258 (grub_realloc): Likewise.
52259 * kern/mm.c (get_header_from_pointer): Change the casts to
52260 `unsigned' into a cast to `grub_size_t'.
52261
52262 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
52263 point to `currnode' when `currnode' is changed.
52264
52265 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
52266 Schottelius <nico-linux@schottelius.org>.
52267
52268 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
52269
52270 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
52271 (note_path): Remove variable.
52272 (GRUB_IEEE1275_NOTE_NAME): New macro.
52273 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
52274 (grub_ieee1275_note_hdr): New structure.
52275 (grub_ieee1275_note_desc): Likewise.
52276 (grub_ieee1275_note): Likewise.
52277 (load_note): Remove `dir' argument. All callers updated. Remove
52278 `note_img' and `path'. Do not load a file from `note_path'.
52279 Initialize a struct grub_ieee1275_note and write that to `out'.
52280 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
52281
52282 2005-01-05 Marco Gerards <metgerards@student.han.nl>
52283
52284 * util/misc.c (grub_util_read_image): Revert last change. It
52285 called `grub_util_read_at', which seeks from the beginning of the
52286 file.
52287
52288 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
52289
52290 * TODO: Add note about endianness in grub-mkimage.
52291 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
52292 section.
52293 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
52294 (grub_mkimage_SOURCES): New target.
52295 * include/grub/kernel.h (grub_start_addr): Remove variable.
52296 (grub_end_addr): Likewise.
52297 (grub_total_module_size): Likewise.
52298 (grub_kernel_image_size): Likewise.
52299 (GRUB_MODULE_MAGIC): New constant.
52300 (grub_module_info): New structure.
52301 (grub_arch_modules_addr): New prototype.
52302 (grub_get_end_addr): Remove prototype.
52303 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
52304 * include/grub/powerpc/ieee1275/kernel.h: New file.
52305 * include/grub/util/misc.h (grub_util_get_fp_size): New
52306 prototype.
52307 (grub_util_read_at): Likewise.
52308 (grub_util_write_image_at): Likewise.
52309 * kern/main.c (grub_get_end_addr): Remove function.
52310 (grub_load_modules): Call grub_arch_modules_addr instead of using
52311 grub_end_addr. Look for a grub_module_info struct in memory. Use
52312 the grub_module_info fields instead of calling grub_get_end_addr
52313 as loop conditions. Move grub_add_unused_region code here.
52314 (grub_add_unused_region): Remove function.
52315 * kern/i386/pc/init.c: Include grub/cache.h.
52316 (grub_machine_init): Remove call to grub_get_end_addr. Remove
52317 one call to add_mem_region.
52318 (grub_arch_modules_addr): New function.
52319 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
52320 (grub_total_module_size): Likewise.
52321 Include grub/machine/kernel.h.
52322 (grub_arch_modules_addr): New function.
52323 * util/grub-emu.c (grub_end_addr): Remove variable.
52324 (grub_total_module_size): Likewise.
52325 (grub_arch_modules_addr): New function.
52326 * util/misc.c: Include unistd.h.
52327 (grub_util_get_fp_size): New function.
52328 (grub_util_read_at): Likewise.
52329 (grub_util_write_image_at): Likewise.
52330 (grub_util_read_image): Call grub_util_read_at.
52331 (grub_util_write_image): Call grub_util_write_image_at.
52332 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
52333 additional memory in kernel_img for a struct grub_module_info.
52334 Fill in that grub_module_info.
52335 * util/powerpc/ieee1275/grub-mkimage.c: New file.
52336
52337 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
52338
52339 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
52340 New function.
52341 * include/grub/powerpc/ieee1275/ieee1275.h
52342 (grub_ieee1275_milliseconds): New prototype.
52343 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
52344 Change to 1000.
52345 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
52346 grub_ieee1275_milliseconds.
52347
52348 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
52349
52350 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
52351 variable.
52352 (find_options): New function.
52353 (cmain): Call find_options.
52354 * include/grub/powerpc/ieee1275/ieee1275.h
52355 (grub_ieee1275_realmode): New extern variable.
52356 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
52357 grub_map if grub_ieee1275_realmode is false.
52358
52359 2004-12-29 Marco Gerards <metgerards@student.han.nl>
52360
52361 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
52362 lines are inserted and make it work like readline. Reported by
52363 Vincent Pelletier <subdino2004@yahoo.fr>.
52364
52365 2004-12-28 Marco Gerards <metgerards@student.han.nl>
52366
52367 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
52368
52369 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
52370 `kern/powerpc/cache.S'.
52371
52372 2004-12-27 Marco Gerards <metgerards@student.han.nl>
52373
52374 * genmk.rb: Handle the `Program' class in the main loop. Written
52375 by Johan Rydberg <jrydberg@gnu.org>.
52376 (Program): New class.
52377 (programs): New variable.
52378 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
52379 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
52380 instead of "grub/kernel.h". Include <grub/machine/init.h>.
52381 (help_arch): Function removed.
52382 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
52383 `powerpc/libgcc.h' and `loader.h'.
52384 (pkgdata_PROGRAMS): New variable.
52385 (sbin_UTILITIES): Variable removed.
52386 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
52387 (grubof_SOURCES): Variable re-defined so it only includes the
52388 core functionality.
52389 (grubof_CFLAGS): Remove `-DGRUBOF'.
52390 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
52391 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
52392 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
52393 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
52394 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
52395 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
52396 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
52397 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
52398 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
52399 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
52400 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
52401 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
52402 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
52403 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
52404 (pc_mod_CFLAGS): New variables.
52405 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
52406 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
52407 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
52408 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
52409 Moved from here...
52410 * include/grub/i386/pc/init.h (grub_os_area_addr)
52411 (rub_os_area_size): ... to here.
52412 * include/grub/powerpc/ieee1275/ieee1275.h
52413 (grub_ieee1275_entry_fn): Export symbol.
52414 * include/grub/powerpc/ieee1275/init.h: New file.
52415 * include/grub/powerpc/libgcc.h: Likewise.
52416 * include/grub/cache.h: Likewise.
52417 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
52418 <hollis@penguinppc.org>.
52419 * kern/dl.c: Include <grub/cache.h>.
52420 (grub_dl_flush_cache): New function.
52421 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
52422 for this module.
52423 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
52424 (grub_console_init): Removed prototypes.
52425 (grub_machine_init): Don't initialize the modules anymore.
52426 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
52427 static.
52428 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
52429 Macro undef removed.
52430 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
52431 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
52432 relocation `R_PPC_REL32'. Return an error when the relocation is
52433 unknown.
52434 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
52435 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
52436 * util/misc.c (grub_arch_sync_caches): Likewise.
52437
52438 2004-12-19 Marco Gerards <metgerards@student.han.nl>
52439
52440 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
52441 `symlist.c', add `grubof_symlist.c'.
52442 (symlist.c): Variable removed.
52443 (grubof_HEADERS): Variable added.
52444 (grubof_symlist.c): New target.
52445 (kernel_syms.lst): Use `grubof_HEADERS' instead of
52446 `kernel_img_HEADERS'.
52447 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
52448 * kern/powerpc/dl.c: New file.
52449 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
52450 Function removed.
52451 (grub_arch_dl_relocate_symbols): Likewise.
52452 (grub_register_exported_symbols): Likewise.
52453
52454 2004-12-13 Marco Gerards <metgerards@student.han.nl>
52455
52456 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
52457 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
52458 to fail instead. Reported by Vincent Pelletier
52459 <subdino2004@yahoo.fr>.
52460
52461 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
52462 it is not allocated. Reported by Vincent Pelletier
52463 <subdino2004@yahoo.fr>.
52464
52465 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
52466 output so the output looks better.
52467
52468 2004-12-04 Marco Gerards <metgerards@student.han.nl>
52469
52470 Modulize the partition map support and add support for the amiga
52471 partition map.
52472
52473 * commands/ls.c: Include <grub/partition.h> instead of
52474 <grub/machine/partition.h>.
52475 * kern/disk.c: Likewise.
52476 * kern/rescue.c: Likewise.
52477 * loader/i386/pc/chainloader.c: Likewise.
52478 * normal/cmdline.c: Likewise.
52479 * kern/powerpc/ieee1275/init.c: Likewise.
52480 (grub_machine_init): Call `grub_pc_partition_map_init',
52481 `grub_amiga_partition_map_init' and
52482 `grub_apple_partition_map_init'.
52483 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
52484 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
52485 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
52486 `partition.h' and `pc_partition.h'.
52487 (grub_setup_SOURCES): Remove
52488 `disk/i386/pc/partition.c'. Add `kern/partition.c',
52489 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
52490 (grub_emu_SOURCES): Likewise.
52491 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
52492 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
52493 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
52494 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
52495 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
52496 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
52497 (grubof_SOURCES): Likewise.
52498 * disk/i386/pc/partition.c: File removed.
52499 * disk/powerpc/ieee1275/partition.c: Likewise.
52500 * include/grub/powerpc/ieee1275/partition.h: Likewise.
52501 * include/grub/i386/pc/partition.h: Likewise.
52502 * kern/partition.c: New file.
52503 * partmap/amiga.c: Likewise.
52504 * partmap/apple.c: Likewise.
52505 * partmap/pc.c: Likewise.
52506 * include/grub/partition.h: Likewise..
52507 * include/grub/pc_partition.h: Likewise.
52508 * util/grub-emu.c: Include <grub/partition.h> instead of
52509 <grub/machine/partition.h>.
52510 (main): Call `grub_pc_partition_map_init',
52511 `grub_amiga_partition_map_init' and
52512 `grub_apple_partition_map_init' and deinitialize afterwards.
52513 * util/i386/pc/biosdisk.c: Include `#include
52514 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
52515 `<grub/machine/partition.h>'.
52516 * util/i386/pc/grub-setup.c: Likewise.
52517 * util/i386/pc/biosdisk.c: Likewise.
52518 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
52519 partition information in case of a PC partition.
52520 * util/i386/pc/grub-setup.c: Include `#include
52521 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
52522 `<grub/machine/partition.h>'.
52523 (setup): Only access the PC specific partition information in case
52524 of a PC partition.
52525
52526 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
52527
52528 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
52529 (grub_longjmp): Likewise.
52530 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
52531 20.
52532 * normal/powerpc/setjmp.S: New file.
52533 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
52534 `normal/powerpc/setjmp.S'.
52535 (grubof_CFLAGS): Add `-DGRUBOF'.
52536 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
52537 [GRUB_UTIL && !GRUBOF].
52538
52539 2004-11-16 Marco Gerards <metgerards@student.han.nl>
52540
52541 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
52542 property named `name'. Correctly handle the error returned by
52543 `grub_ieee1275_finddevice' if a device can not be opened.
52544
52545 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
52546
52547 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
52548 `actual' for negativity.
52549 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
52550 kern/fshelp.c.
52551
52552 2004-11-01 Marco Gerards <metgerards@student.han.nl>
52553
52554 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
52555 (PAGE_OFFSET): New macro.
52556 (CRTC_ADDR_PORT): Likewise.
52557 (CRTC_DATA_PORT): Likewise.
52558 (START_ADDR_HIGH_REGISTER): Likewise.
52559 (START_ADDR_LOW_REGISTER): Likewise.
52560 (GRAPHICS_ADDR_PORT): Likewise.
52561 (GRAPHICS_DATA_PORT): Likewise.
52562 (READ_MAP_REGISTER): Likewise.
52563 (INPUT_STATUS1_REGISTER): Likewise.
52564 (INPUT_STATUS1_VERTR_BIT): Likewise.
52565 (page): New variable.
52566 (wait_vretrace): New function.
52567 (set_read_map): Likewise.
52568 (set_start_address): Likewise.
52569 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
52570 the right page.
52571 (check_vga_mem): Take the page into account.
52572 (write_char): Likewise.
52573 (write_cursor): Likewise.
52574 (scroll_up): Likewise. Copy the page to the page that is not
52575 shown and switch between both pages.
52576 (grub_vga_putchar): Fix off by one error.
52577 (grub_vga_cls): Wait for the vertical retrace. Take the page into
52578 account.
52579
52580 2004-11-01 Marco Gerards <metgerards@student.han.nl>
52581
52582 Add support for iso9660 (including rockridge).
52583
52584 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
52585 (iso9660_mod_SOURCES): New variable.
52586 (iso9660_mod_CFLAGS): Likewise.
52587 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
52588 * include/grub/fs.h (grub_iso9660_init): New prototype.
52589 * util/grub-emu.c (main): Call `grub_iso9660_init'.
52590 * fs/iso9660.c: New file.
52591
52592 * include/grub/misc.h (grub_strncat): New prototype.
52593 * kern/misc.c (grub_strncat): New function.
52594
52595 * fs/hfs.c (grub_hfs_mount): Translate the error
52596 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
52597 * fs/jfs.c (grub_jfs_mount): Likewise.
52598 * fs/ufs.c (grub_ufs_mount): Likewise.
52599
52600 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
52601
52602 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
52603 which initialized BAT registers.
52604 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
52605 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
52606 Move from here...
52607 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
52608 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
52609 ... to here.
52610 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
52611 (grub_mapclaim): Likewise.
52612 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
52613 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
52614 hand.
52615
52616 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
52617
52618 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
52619 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
52620 -ffreestanding and -msoft-float.
52621
52622 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
52623
52624 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
52625 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
52626 set in grub_ieee1275_flags.
52627
52628 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
52629
52630 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
52631 prototype.
52632 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
52633 grub_console_init first.
52634 Change the memory range used for grub_ieee1275_claim and
52635 grub_mm_init_region.
52636 Print an error message if the claim fails.
52637 Include <grub/misc.h>.
52638
52639 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
52640
52641 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
52642 Call grub_children_iterate for device nodes of type `scsi',
52643 `ide', or `ata'.
52644 (grub_ofdisk_open): Remove manual device alias resolution.
52645 Fix memory leak when device cannot be opened.
52646 * include/grub/powerpc/ieee1275/ieee1275.h
52647 (grub_children_iterate): New prototype.
52648 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
52649 New function.
52650 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
52651 Return -1 if args.size was -1.
52652
52653 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
52654
52655 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
52656 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
52657 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
52658 Open Firmware's memory for it; claim memory from _start to _end.
52659 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
52660 (_end): New extern.
52661 (_start): Zero BSS from __bss_start to _end.
52662 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
52663 New extern.
52664 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
52665
52666 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
52667
52668 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
52669 -1 if args.base was -1.
52670
52671 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
52672
52673 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
52674 escape sequence instead of a literal ^L. Also call
52675 grub_ofconsole_gotoxy.
52676
52677 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
52678
52679 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
52680 void * arguments to grub_addr_t. All callers updated. Also make
52681 the `result' argument optional.
52682 (grub_ieee1275_release): change void * arguments to grub_addr_t.
52683 All callers updated.
52684
52685 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
52686
52687 * commands/ls.c (grub_ls_list_files): Use the string following the
52688 initial ')', if present, as the filesystem path.
52689 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
52690
52691 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
52692
52693 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
52694
52695 Make the source code of the menu interface more readable.
52696
52697 * normal/menu.c: Include grub/mm.h.
52698 (TERM_WIDTH): New macro.
52699 (TERM_HEIGHT): Likewise.
52700 (TERM_INFO_HEIGHT): Likewise.
52701 (TERM_MARGIN): Likewise.
52702 (TERM_SCROLL_WIDTH): Likewise.
52703 (TERM_TOP_BORDER_Y): Likewise.
52704 (TERM_LEFT_BORDER_X): Likewise.
52705 (TERM_BORDER_WIDTH): Likewise.
52706 (TERM_MESSAGE_HEIGHT): Likewise.
52707 (TERM_BORDER_HEIGHT): Likewise.
52708 (TERM_NUM_ENTRIES): Likewise.
52709 (TERM_FIRST_ENTRY_Y): Likewise.
52710 (TERM_ENTRY_WIDTH): Likewise.
52711 (TERM_CURSOR_X): Likewise.
52712 (draw_border): Use macros instead of magic numbers.
52713 (print_entry): Likewise.
52714 (print_entries): Likewise.
52715 (run_menu): Likewise. Also, handle the key 'e'.
52716 (run_menu_entry): Ignore empty command lines.
52717 (print_message): Added a new argument EDIT. If EDIT is true,
52718 print a different message.
52719 (init_page): Likewise.
52720 (edit_menu_entry): New function. Not implemented yet.
52721
52722 2004-09-17 Marco Gerards <metgerards@student.han.nl>
52723
52724 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
52725 can be loaded from normal mode.
52726
52727 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
52728 `multiboot.mod'.
52729 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
52730 (multiboot_mod_CFLAGS): New variables.
52731 * loader/i386/pc/linux_normal.c: New file.
52732 * loader/i386/pc/multiboot_normal.c: Likewise.
52733
52734 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
52735 attribute `unused'.
52736
52737 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
52738 `fdiro' to read the mode information from instead of `diro'.
52739
52740 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
52741 looking up a symlink.
52742
52743 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
52744 macro.
52745 * normal/command.c (grub_command_execute): Don't parse the
52746 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
52747 flags of the command.
52748
52749 * normal/menu.c (grub_menu_run): Fix typo.
52750
52751 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
52752
52753 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
52754
52755 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
52756 `y + 1' instead of `y - 1'.
52757
52758 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
52759
52760 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
52761
52762 From Hollis Blanchard <hollis@penguinppc.org>:
52763 * kern/misc.c (memmove): New alias for grub_memmove.
52764 (memcmp): New alias for grub_memcmp.
52765 (memset): New alias for grub_memset.
52766 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
52767 Change "int handle" to "grub_ieee1275_phandle_t handle".
52768 * include/grub/powerpc/ieee1275/ieee1275.h
52769 (grub_ieee1275_get_property): Likewise.
52770
52771 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
52772
52773 Added normal mode command `chainloader' as module chain.mod, which
52774 depends on normal.mod and _chain.mod.
52775
52776 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
52777 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
52778 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
52779 Deleted prototype.
52780 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
52781 but arguments parsing moved to ...
52782 (grub_chainloader_cmd): ... here. New function.
52783 * include/grub/i386/pc/chainloader.h: New file.
52784 * loader/i386/pc/chainloader_normal.c: Likewise.
52785
52786 2004-09-11 Marco Gerards <metgerards@student.han.nl>
52787
52788 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
52789 (grub_mkimage_LDFLAGS): Likewise.
52790 (grub_emu_SOURCES): Likewise.
52791 (kernel_img_HEADERS): Added fshelp.h.
52792 * fs/ext2.c: Include <grub/fshelp.h>.
52793 (FILETYPE_REG): New macro.
52794 (FILETYPE_INO_REG): Likewise.
52795 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
52796 Changed all users.
52797 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
52798 all users.
52799 (grub_fshelp_node): New struct.
52800 (grub_ext2_data): Added member `diropen'. Changed member `inode'
52801 to a pointer.
52802 (grub_ext2_get_file_block): Removed function.
52803 (grub_ext2_read_block): New function.
52804 (grub_ext2_read_file): Replaced parameter `data' by `node'.
52805 This function was written.
52806 (grub_ext2_mount): Read the root inode. Create a diropen struct.
52807 (grub_ext2_find_file): Removed function.
52808 (grub_ext2_read_symlink): New function.
52809 (grub_ext2_iterate_dir): Likewise.
52810 (grub_ext2_open): Rewritten.
52811 (grub_ext2_dir): Rewritten.
52812 * include/grub/fshelp.h: New file.
52813 * fs/fshelp.c: Likewise.
52814
52815 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
52816
52817 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
52818 (print_message): Add a missing newline.
52819 (run_menu): Added timeout support.
52820 (run_menu_entry): New local function.
52821 (grub_menu_run): Added support for booting.
52822
52823 * kern/loader.c (grub_loader_is_loaded): New function.
52824
52825 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
52826 (grub_get_rtc): Exported.
52827
52828 * include/grub/i386/pc/time.h: Include grub/symbol.h.
52829 (grub_get_rtc): Exported.
52830
52831 * include/grub/normal.h (struct grub_command_list): Remove
52832 constant from the member `command'.
52833
52834 * include/grub/loader.h (grub_loader_is_loaded): Declared.
52835
52836 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
52837
52838 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
52839
52840 2004-08-28 Marco Gerards <metgerards@student.han.nl>
52841
52842 Add support for the JFS filesystem.
52843
52844 * fs/jfs.c: New file.
52845 * include/grub/fs.h (grub_jfs_init): New prototype.
52846 (grub_jfs_fini): New prototype.
52847 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
52848 (grub_emu_SOURCES): Likewise.
52849 (pkgdata_MODULES): Add jfs.mod.
52850 (jfs_mod_SOURCES): New variable.
52851 (jfs_mod_CFLAGS): Likewise.
52852 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
52853 (grubof_SOURCES): Likewise.
52854 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
52855
52856 * fs/fat.c (grub_fat_find_dir): Convert the filename little
52857 endian to the host endian.
52858 (grub_fat_utf16_to_utf8): Move function from there...
52859 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
52860 the endianness of the source string anymore.
52861 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
52862
52863 2004-08-24 Marco Gerards <metgerards@student.han.nl>
52864
52865 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
52866 (grub_boot_fini) [GRUB_UTIL]: Likewise.
52867 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
52868 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
52869
52870 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
52871 (grub_hfs_iterate_dir): Make the function static. Add prototypes
52872 for `node_found' and `it_dir'.
52873 (grub_hfs_dir): Add prototype for `dir_hook'.
52874
52875 * fs/minix.c (grub_minix_get_file_block): Add prototype for
52876 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
52877 and `indir32' to silence a gcc warning.
52878
52879 * include/grub/fs.h (grub_hfs_init): New prototype.
52880 (grub_hfs_fini): Likewise.
52881
52882
52883 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
52884
52885 Each disk device has its own id now. This is useful to make use
52886 of multiple disk devices.
52887
52888 * include/grub/disk.h (grub_disk_dev_id): New enum.
52889 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
52890 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
52891
52892 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
52893 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
52894
52895 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
52896 GRUB_DISK_DEVICE_OFDISK_ID as an id.
52897
52898 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
52899 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
52900
52901 * include/grub/disk.h (struct grub_disk_dev): Added a new member
52902 "id" which is used by the cache manager.
52903
52904 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
52905 of just "GRUB".
52906
52907 2004-08-18 Marco Gerards <metgerards@student.han.nl>
52908
52909 * fs/hfs.c: New file.
52910 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
52911 (grub_emu_SOURCES): Likewise.
52912 (pkgdata_MODULES): Add hfs.mod.
52913 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
52914 (grubof_SOURCES): Likewise.
52915 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
52916
52917 * include/grub/misc.h (grub_strncasecmp): Add prototype.
52918 * kern/misc.c (grub_strncasecmp): Add function.
52919
52920 2004-08-14 Marco Gerards <metgerards@student.han.nl>
52921
52922 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
52923 with parentheses.
52924
52925 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
52926 (grub_ext2_dir): In case the directory entry type is unknown, read
52927 it from the inode.
52928
52929 2004-08-02 Peter Bruin <pjbruin@dds.nl>
52930
52931 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
52932 grub_load_linux instead of grub_rescue_cmd_linux as second
52933 argument of grub_rescue_register_command.
52934
52935 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
52936
52937 2004-07-27 Marco Gerards <metgerards@student.han.nl>
52938
52939 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
52940 function.
52941 * commands/boot.c: Remove the check for `GRUB_UTIL'.
52942 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
52943 `loader/powerpc/ieee1275/linux.c',
52944 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
52945 * include/grub/powerpc/ieee1275/ieee1275.h
52946 (grub_ieee1275_release): New prototype.
52947 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
52948 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
52949 normal, boot, linux and linux_normal.
52950 * loader/powerpc/ieee1275/linux.c: New file.
52951 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
52952
52953 2004-07-12 Marco Gerards <metgerards@student.han.nl>
52954
52955 * normal/arg.c (grub_arg_parse): Correct error handling after
52956 reallocating the argumentlist (check if `argl' is not null instead
52957 of checking if `args' is not null).
52958 * kern/mm.c (grub_realloc): Return the same pointer when using the
52959 same region, instead of returning the header address.
52960
52961 2004-07-11 Marco Gerards <metgerards@student.han.nl>
52962
52963 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
52964 one block instead of two when looking for the initial partition.
52965 (grub_partition_probe): Initialize the local variable `p' with 0.
52966 Use base 10 for the grub_strtoul call.
52967 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
52968 need for one local variable.
52969 (grub_strtoul): Don't add the new value to `num', instead of that
52970 just assign it.
52971
52972 2004-07-11 Marco Gerards <metgerards@student.han.nl>
52973
52974 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
52975 (pxeboot_img_SOURCES): New variable.
52976 (pxeboot_img_ASFLAGS): Likewise.
52977 (pxeboot_img_LDFLAGS): Likewise.
52978 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
52979 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
52980 <lode_leroy@hotmail.com>.
52981
52982 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
52983
52984 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
52985 there was no input.
52986
52987 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
52988
52989 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
52990 the history buffer logic.
52991
52992 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
52993
52994 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
52995 (FILETYPE_INO_SYMLINK): New macros.
52996 (grub_ext2_find_file): Check if the node is a directory using the
52997 inode stat information instead of using the filetype in the
52998 dirent. Exclude the first character of an absolute symlink.
52999 (grub_ext2_dir): Mask out the filetype part of the mode member of
53000 the inode.
53001
53002 2004-05-24 Marco Gerards <metgerards@student.han.nl>
53003
53004 Add support for UFS version 1 and 2. Add support for the minix
53005 filesystem version 1 and 2, both the variants with 14 and 30 long
53006 filenames.
53007
53008 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
53009 fs/minix.c.
53010 (grub_emu_SOURCES): Likewise.
53011 (pkgdata_MODULES): Add ufs.mod and minix.mod.
53012 (ufs_mod_SOURCES): New variable.
53013 (ufs_mod_CFLAGS): Likewise.
53014 (minix_mod_SOURCES): Likewise.
53015 (minix_mod_CFLAGS): Likewise.
53016 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
53017 fs/minix.c.
53018 (grubof_SOURCES): Likewise.
53019 * fs/ufs.c: New file.
53020 * fs/minix.c: New file.
53021 * include/grub/fs.h (grub_ufs_init): New prototype.
53022 (grub_ufs_fini): Likewise.
53023 (grub_minix_init): Likewise.
53024 (grub_minix_fini): Likewise.
53025 * util/grub-emu.c (main): Initialize and deinitialize UFS and
53026 minix fs.
53027
53028 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
53029
53030 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
53031 commands/ls.c, commands/terminal.c, commands/boot.c,
53032 commands/cmp.c and commands/cat.c.
53033 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
53034
53035 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
53036 "env.h"
53037
53038 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
53039
53040 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
53041 and grub_, respectively. Because the conversion is trivial and
53042 mechanical, I omit the details here. Please refer to the CVS
53043 if you need more information.
53044
53045 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
53046
53047 * include/pupa: Renamed to ...
53048 * include/grub: ... this.
53049 * util/i386/pc/pupa-mkimage.c: Renamed to ...
53050 * util/i386/pc/grub-mkimage.c: ... this.
53051 * util/i386/pc/pupa-setup.c: Renamed to ...
53052 * util/i386/pc/grub-setup.c: ... this.
53053 * util/pupa-emu.c: Renamed to ...
53054 * util/grub-emu.c: ... this.
53055
53056 2004-03-29 Marco Gerards <metgerards@student.han.nl>
53057
53058 Add support for the newworld apple macintosh (PPC). This has been
53059 tested on the powerbook 2000 only. It only adds support for
53060 generic ieee1275 functions, console and disk support. This should
53061 be easy to port to other architectures with support for Open
53062 Firmware.
53063
53064 * configure.ac: Accept the powerpc as host_cpu. In the case of
53065 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
53066 specific tests are only executed while building for the i386.
53067 Inverse test for crosscompile.
53068 * genmk.rb (Utility): Allow assembler files.
53069 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
53070 * conf/powerpc-ieee1275.rmk: New file.
53071 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
53072 * disk/powerpc/ieee1275/partition.c: Likewise.
53073 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
53074 * include/pupa/powerpc/ieee1275/console.h: Likewise.
53075 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
53076 * include/pupa/powerpc/ieee1275/time.h: Likewise.
53077 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
53078 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
53079 * include/pupa/powerpc/ieee1275/loader.h
53080 * include/pupa/powerpc/setjmp.h: Likewise.
53081 * include/pupa/powerpc/types.h: Likewise.
53082 * kern/powerpc/ieee1275/init.c: Likewise.
53083 * kern/powerpc/ieee1275/openfw.c: Likewise.
53084 * term/powerpc/ieee1275/ofconsole.c: Likewise.
53085
53086 These files were written by Johan Rydberg
53087 (jrydberg@night.trouble.net) and I only modified them slightly.
53088
53089 * boot/powerpc/ieee1275/cmain.c: New file.
53090 * boot/powerpc/ieee1275/crt0.S: Likewise.
53091 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
53092 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
53093
53094 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
53095
53096 * Makefile.in: Update copyright.
53097 * genmodsrc.sh: Likewise.
53098 * gensymlist.sh: Likewise.
53099 * term/i386/pc/vga.c: Indent correctly.
53100
53101 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
53102 bugreporting address.
53103 * util/i386/pc/pupa-setup.c (usage): Likewise,
53104 (main): Call pupa_ext2_init and pupa_ext2_fini.
53105
53106 * fs/fat.c (log2): Renamed to ...
53107 (fat_log2): ... this.
53108 All callers changed.
53109 * kern/misc.c (memcpy): Alias to pupa_memmove.
53110 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
53111 lvalue cast.
53112 * util/console.c (pupa_ncurses_fini): Return 0.
53113
53114 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
53115 Move fail label here.
53116 [__GNU__]: Don't warn when using stat.
53117 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
53118 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
53119 long int. Use strtol instead of strtoul.
53120
53121 2004-03-14 Marco Gerards <metgerards@student.han.nl>
53122
53123 * commands/boot.c: New file.
53124 * commands/cat.c: Likewise.
53125 * commands/cmp.c: Likewise.
53126 * commands/ls.c: Likewise.
53127 * commands/terminal.c: Likewise.
53128 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
53129 (pupa_register_command): Changed interface to match the new
53130 argument parser.
53131 (pupa_command_execute): Changed (almost rewritten) so it uses
53132 pupa_split_command. Added support for setting variables using the
53133 syntax `foo=bar'.
53134 (rescue_command): Changed to work with the new argument parser.
53135 (terminal_command): Moved from here to commands/terminal.c.
53136 (set_command): New function.
53137 (unset_command): New function.
53138 (insmod_command): New function.
53139 (rmmod_command): New function.
53140 (lsmod_command): New function.
53141 (pupa_command_init): Don't initialize the command terminal
53142 anymore. Initialize the commands set, unset, insmod, rmmod and
53143 lsmod.
53144 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
53145 (kernel_img_HEADERS): Add arg.h and env.h.
53146 (pupa_mkimage_LDFLAGS): Add kern/env.c.
53147 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
53148 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
53149 normal/arg.c.
53150 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
53151 terminal.mod.
53152 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
53153 (boot_mod_SOURCES): New variable.
53154 (terminal_mod_SOURCES): Likewise.
53155 (ls_mod_SOURCES): Likewise.
53156 (cmp_mod_SOURCES): Likewise.
53157 (cat_mod_SOURCES): Likewise.
53158
53159 * normal/arg.c: New file.
53160 * kern/env.c: Likewise.
53161 * include/pupa/arg.h: Likewise.
53162 * include/pupa/env.h: Likewise.
53163 * font/manager.c (font_command): Changed to match argument parsing
53164 interface changes.
53165 (PUPA_MOD_INIT): Likewise.
53166 * hello/hello.c (pupa_cmd_hello): Likewise.
53167 (PUPA_MOD_INIT): Likewise.
53168 * include/pupa/disk.h: Include <pupa/device.h>.
53169 (pupa_print_partinfo): New prototype.
53170 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
53171 (pupa_dl_get_prefix): Likewise.
53172 * include/pupa/misc.h: Include <pupa/err.h>.
53173 (pupa_isgraph): New prototype.
53174 (pupa_isdigit): Likewise.
53175 (pupa_split_cmdline): Likewise.
53176 * include/pupa/normal.h: Include <pupa/arg.h>.
53177 (pupa_command): Changed the prototype of the member `func' to
53178 match the argument parsing interface. Added member `options'.
53179 (pupa_register_command): Updated to match function.
53180 (pupa_arg_parse): New prototype.
53181 (pupa_hello_init) [PUPA_UTIL]: New prototype.
53182 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
53183 (pupa_ls_init) [PUPA_UTIL]: Likewise.
53184 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
53185 (pupa_cat_init) [PUPA_UTIL]: Likewise.
53186 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
53187 (pupa_boot_init) [PUPA_UTIL]: Likewise.
53188 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
53189 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
53190 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
53191 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
53192 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
53193 * kern/disk.c: Include <pupa/file.h>.
53194 (pupa_print_partinfo): New function.
53195 * kern/dl.c: Include <pupa/env.h>.
53196 (pupa_dl_dir): Variable removed.
53197 (pupa_dl_load): Use the environment variable `prefix' instead of
53198 the variable pupa_dl_dir.
53199 (pupa_dl_set_prefix): Function removed.
53200 (pupa_dl_get_prefix): Likewise.
53201 * kern/i386/pc/init.c: Include <pupa/env.h>.
53202 (pupa_machine_init): Use the environment variable `prefix' instead of
53203 using pupa_dl_set_prefix to set the prefix.
53204 * kern/main.c: Include <pupa/env.h>.
53205 (pupa_set_root_dev): Use the environment variable `prefix' instead of
53206 using pupa_dl_get_prefix to get the prefix.
53207 * kern/misc.c: Include <pupa/env.h>.
53208 (pupa_isdigit): New function.
53209 (pupa_isgraph): Likewise.
53210 (pupa_ftoa): Likewise.
53211 (pupa_vsprintf): Added support for printing values of the type
53212 `double'. Make it possible to format variable output when using
53213 formatting like `%1.2%f'.
53214 (pupa_split_cmdline): New function.
53215 * kern/rescue.c: Include <pupa/env.h>.
53216 (next_word): Removed function.
53217 (pupa_rescue_cmd_prefix): Likewise.
53218 (pupa_rescue_cmd_set): New function.
53219 (pupa_rescue_cmd_unset): New function.
53220 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
53221 split the command line instead of splitting it here. Added
53222 support for setting variables using the syntax `foo=bar'. Don't
53223 initialize the prefix command anymore. Initialized the set and
53224 unset commands.
53225 * normal/cmdline.c: Include <pupa/env.h>.
53226 (pupa_tab_complete): Added prototypes for print_simple_completion,
53227 print_partition_completion, add_completion, iterate_commands,
53228 iterate_dev, iterate_part and iterate_dir. Moved code to print
53229 partition information from here to kern/disk.c.
53230 (pupa_cmdline_run): Don't check if the function exists anymore.
53231 * normal/main.c: Include <pupa/env.h>.
53232 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
53233 instead of using pupa_dl_get_prefix to get the prefix.
53234 * term/i386/pc/vga.c: Include <pupa/arg.h>.
53235 (check_vga_mem): Cast pointers to `void *' to silence a gcc
53236 warning.
53237 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
53238 (pupa_vga_setcolor): Declare unused variables with `__attribute__
53239 ((unused))' to silence a gcc warning.
53240 (pupa_vga_setcolor): Likewise.
53241 (debug_command): Changed to match argument parsing
53242 interface changes.
53243 * util/pupa-emu.c: Include <pupa/env.h>.
53244 (options): Added 0's for unused fields to silence a gcc warning.
53245 (argp): Likewise.
53246 (main): Use the environment variable `prefix' instead of using
53247 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
53248 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
53249 and terminal.
53250
53251 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
53252 * util/misc.c: Include <malloc.h>.
53253 (pupa_malloc): Rewritten so errors are correctly reported.
53254 (pupa_realloc): Likewise.
53255 (pupa_memalign): Likewise.
53256 (pupa_mm_init_region): Declare unused variables with
53257 `__attribute__ ((unused))' to silence a gcc warning.
53258 * normal/i386/setjmp.S: Remove tab at the end of the file to
53259 silence a gcc warning.
53260 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
53261 variables with `__attribute__ ((unused))' to silence a gcc
53262 warning.
53263 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
53264 local variable i unsigned to silence a gcc warning.
53265
53266 * kern/term.c: Include <pupa/misc.h>.
53267 (pupa_more_lines): New variable.
53268 (pupa_more): Likewise.
53269 (pupa_putcode): When the pager is active pause at the end of every
53270 screen.
53271 (pupa_set_more): New function.
53272 * include/pupa/term.h (pupa_set_more): New prototype.
53273
53274
53275 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
53276
53277 Now this project is GRUB 2 rather than PUPA. The location of
53278 the CVS repository was moved to GRUB's.
53279
53280 * configure.ac: Use bug-grub as the reporting address.
53281 Use GRUB instead of PUPA.
53282 Change the version number to 1.90.
53283
53284 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
53285
53286 * genkernsyms.sh: Updated copyright information.
53287 * genmk.rb: Likewise.
53288 * genmodsrc.sh: Likewise.
53289 * gensymlist.sh: Likewise.
53290 * boot/i386/pc/boot.S: Likewise.
53291 * boot/i386/pc/diskboot.S: Likewise.
53292 * disk/i386/pc/biosdisk.c: Likewise.
53293 * disk/i386/pc/partition.c: Likewise.
53294 * font/manager.c: Likewise.
53295 * fs/ext2.c: Likewise.
53296 * fs/fat.c: Likewise.
53297 * include/pupa/boot.h: Likewise.
53298 * include/pupa/device.h: Likewise.
53299 * include/pupa/disk.h: Likewise.
53300 * include/pupa/dl.h: Likewise.
53301 * include/pupa/elf.h: Likewise.
53302 * include/pupa/err.h: Likewise.
53303 * include/pupa/file.h: Likewise.
53304 * include/pupa/font.h: Likewise.
53305 * include/pupa/fs.h: Likewise.
53306 * include/pupa/kernel.h: Likewise.
53307 * include/pupa/loader.h: Likewise.
53308 * include/pupa/misc.h: Likewise.
53309 * include/pupa/mm.h: Likewise.
53310 * include/pupa/net.h: Likewise.
53311 * include/pupa/normal.h: Likewise.
53312 * include/pupa/rescue.h: Likewise.
53313 * include/pupa/setjmp.h: Likewise.
53314 * include/pupa/symbol.h: Likewise.
53315 * include/pupa/term.h: Likewise.
53316 * include/pupa/types.h: Likewise.
53317 * include/pupa/i386/setjmp.h: Likewise.
53318 * include/pupa/i386/types.h: Likewise.
53319 * include/pupa/i386/pc/biosdisk.h: Likewise.
53320 * include/pupa/i386/pc/boot.h: Likewise.
53321 * include/pupa/i386/pc/console.h: Likewise.
53322 * include/pupa/i386/pc/init.h: Likewise.
53323 * include/pupa/i386/pc/kernel.h: Likewise.
53324 * include/pupa/i386/pc/linux.h: Likewise.
53325 * include/pupa/i386/pc/loader.h: Likewise.
53326 * include/pupa/i386/pc/memory.h: Likewise.
53327 * include/pupa/i386/pc/multiboot.h: Likewise.
53328 * include/pupa/i386/pc/partition.h: Likewise.
53329 * include/pupa/i386/pc/time.h: Likewise.
53330 * include/pupa/i386/pc/vga.h: Likewise.
53331 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
53332 * include/pupa/util/getroot.h: Likewise.
53333 * include/pupa/util/misc.h: Likewise.
53334 * include/pupa/util/resolve.h: Likewise.
53335 * kern/device.c: Likewise.
53336 * kern/disk.c: Likewise.
53337 * kern/dl.c: Likewise.
53338 * kern/err.c: Likewise.
53339 * kern/file.c: Likewise.
53340 * kern/fs.c: Likewise.
53341 * kern/loader.c: Likewise.
53342 * kern/main.c: Likewise.
53343 * kern/misc.c: Likewise.
53344 * kern/mm.c: Likewise.
53345 * kern/rescue.c: Likewise.
53346 * kern/term.c: Likewise.
53347 * kern/i386/dl.c: Likewise.
53348 * kern/i386/pc/init.c: Likewise.
53349 * kern/i386/pc/lzo1x.S: Likewise.
53350 * kern/i386/pc/startup.S: Likewise.
53351 * loader/i386/pc/chainloader.c: Likewise.
53352 * loader/i386/pc/linux.c: Likewise.
53353 * loader/i386/pc/multiboot.c: Likewise.
53354 * normal/cmdline.c: Likewise.
53355 * normal/command.c: Likewise.
53356 * normal/main.c: Likewise.
53357 * normal/menu.c: Likewise.
53358 * normal/i386/setjmp.S: Likewise.
53359 * term/i386/pc/console.c: Likewise.
53360 * term/i386/pc/vga.c: Likewise.
53361 * util/console.c: Likewise.
53362 * util/genmoddep.c: Likewise.
53363 * util/misc.c: Likewise.
53364 * util/pupa-emu.c: Likewise.
53365 * util/resolve.c: Likewise.
53366 * util/unifont2pff.rb: Likewise.
53367 * util/i386/pc/biosdisk.c: Likewise.
53368 * util/i386/pc/getroot.c: Likewise.
53369 * util/i386/pc/pupa-mkimage.c: Likewise.
53370 * util/i386/pc/pupa-setup.c: Likewise.
53371
53372 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
53373
53374 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
53375 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
53376 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
53377 reading and reset it after reading.
53378 (pupa_ext2_close): Return PUPA_ERR_NONE.
53379
53380 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
53381 Correct value.
53382 (struct linux_kernel_header): Add kernel_version and
53383 initrd_addr_max.
53384 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
53385 pupa_file_read succeeds.
53386 (pupa_rescue_cmd_initrd): Implement.
53387
53388 2003-12-03 Marco Gerards <metgerards@student.han.nl>
53389
53390 * fs/ext2.c (pupa_ext2_label): New function.
53391 (pupa_ext2_fs): Added label.
53392 * fs/fat.c (pupa_fat_label): New function.
53393 (pupa_fat_fs): Added label.
53394 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
53395
53396 * kern/misc.c (pupa_strndup): New function.
53397 * include/pupa/misc.h (pupa_strndup): New prototype.
53398
53399 * include/pupa/normal.h: Include <pupa/err.h>.
53400 (pupa_set_history): New prototype.
53401 (pupa_iterate_commands): New prototype.
53402 * normal/cmdline.c: Include <pupa/machine/partition.h>,
53403 <pupa/disk.h>, <pupa/file.h>.
53404 (hist_size): New variable.
53405 (hist_lines): Likewise.
53406 (hist_end): Likewise.
53407 (hist_used): Likewise.
53408 (pupa_set_history): New function.
53409 (pupa_history_get): Likewise.
53410 (pupa_history_add): Likewise.
53411 (pupa_history_replace): Likewise.
53412 (pupa_tab_complete): Likewise.
53413 (pupa_cmdline_run): Added tab completion and history buffer. Tab
53414 completion shows partitionnames while completing partitions, this
53415 feature was suggested by Jeff Bailey.
53416 * normal/command.c (pupa_iterate_commands): New function.
53417 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
53418 (pupa_normal_init): Initialize history buffer.
53419 (PUPA_MOD_INIT): Likewise.
53420 (pupa_normal_fini): Free the history buffer.
53421 (PUPA_MOD_FINI): Likewise.
53422
53423 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
53424 key.
53425
53426 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
53427 * configure.ac [i386]: Check for regparam bug.
53428 (NESTED_FUNC_ATTR) [! i386]: Defined.
53429
53430 2003-11-17 Marco Gerards <metgerards@student.han.nl>
53431
53432 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
53433 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
53434 (pupa_emu_SOURCES): New variable.
53435 (pupa_emu_LDFLAGS): Likewise.
53436 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
53437 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
53438 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
53439 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
53440 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
53441 (pupa_jmp_buf): New typedef.
53442 (pupa_setjmp) [PUPA_UTIL]: New macro.
53443 (pupa_longjmp) [PUPA_UTIL]: Likewise.
53444 * include/pupa/term.h (struct pupa_term): New member `refresh'.
53445 (pupa_refresh): New prototype.
53446 * include/pupa/util/getroot.h: New file.
53447 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
53448 it.
53449 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
53450 (pupa_rescue_cmd_cat): Likewise.
53451 (pupa_rescue_cmd_ls): Likewise.
53452 (pupa_rescue_cmd_testload): Likewise.
53453 (pupa_rescue_cmd_lsmod): Likewise.
53454 * normal/cmdline.c (pupa_cmdline_get): Likewise.
53455 * normal/menu.c (run_menu): Likewise.
53456 * kern/term.c (pupa_cls): Likewise.
53457 (pupa_refresh): New function.
53458 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
53459 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
53460 * util/console.c: New file.
53461
53462 * util/i386/pc/getroot.c: New file.
53463 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
53464 (pupa_putchar): New function.
53465 (pupa_refresh): Likewise.
53466 (xgetcwd): Function moved to ...
53467 (strip_extra_slashes): Likewise.
53468 (get_prefix): Likewise.
53469 * util/i386/pc/getroot.c: ... here.
53470 (find_root_device): Function moved and renamed to...
53471 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
53472 Changed all callers.
53473 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
53474 and renamed to...
53475 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
53476 Changed all callers.
53477 * util/misc.c (pupa_memalign): New function.
53478 (pupa_mm_init_region): Likewise.
53479 (pupa_register_exported_symbols): Likewise.
53480 (pupa_putchar): Function removed.
53481 * util/pupa-emu.c: New file.
53482
53483 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
53484
53485 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
53486 (_multiboot_mod_SOURCES): New variable.
53487 (_multiboot_mod_CFLAGS): Likewise.
53488 * loader/i386/pc/multiboot.c: New file.
53489 * include/pupa/i386/pc/multiboot.h: Likewise.
53490 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
53491 (pupa_multiboot_real_boot): New function.
53492 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
53493 (pupa_multiboot_real_boot): New prototype.
53494 (pupa_rescue_cmd_multiboot): Likewise
53495 (pupa_rescue_cmd_module): Likewise.
53496
53497 * kern/loader.c (pupa_loader_set): Continue when
53498 pupa_loader_unload_func() fails.
53499 (pupa_loader_unset): New function.
53500 * include/pupa/loader.h (pupa_loader_unset): New prototype.
53501
53502 * kern/misc.c (pupa_stpcpy): New function.
53503 * include/pupa/misc.h (pupa_stpcpy): New prototype.
53504
53505 2003-11-12 Marco Gerards <metgerards@student.han.nl>
53506
53507 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
53508 for available extensions.
53509
53510 * include/pupa/i386/pc/time.h: New file.
53511 * kern/disk.c: Include <pupa/machine/time.h>.
53512 (PUPA_CACHE_TIMEOUT): New macro.
53513 (pupa_last_time): New variable.
53514 (pupa_disk_open): Flush the cache when there was a timeout.
53515 (pupa_disk_close): Reset the timer.
53516 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
53517 pupa_currticks.
53518 * util/misc.c: Include <sys/times.h>
53519 (pupa_get_rtc): New function.
53520
53521 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
53522
53523 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
53524 as blocks.
53525 (pupa_ext2_get_file_block): Use blocks member.
53526
53527 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
53528 first block. Return -1 instead of pupa_errno on error.
53529
53530 2003-10-27 Marco Gerards <metgerards@student.han.nl>
53531
53532 * README: In the pupa-mkimage example use _chain instead of chain
53533 and ext2 instead of fat.
53534 * TODO: Replace ext2fs with jfs as an example. Add an item for
53535 adding journal playback for ext2fs.
53536 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
53537 (pkgdata_MODULES): Added ext2.mod.
53538 (ext2_mod_SOURCES): New variable.
53539 (ext2_mod_CFLAGS): Likewise.
53540 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
53541 * include/pupa/misc.h (pupa_strncpy): New prototype.
53542 (pupa_strcat): Likewise.
53543 (pupa_strncmp): Likewise.
53544 * kern/misc.c (pupa_strcat): Enable function.
53545 (pupa_strncpy): New function.
53546 (pupa_strncmp): Likewise.
53547 * fs/ext2.c: New file.
53548
53549 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
53550 when the read failed before retrying.
53551 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
53552 (_FILE_OFFSET_BITS): Likewise.
53553 * configure.ac: Added AC_SYS_LARGEFILE.
53554
53555 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
53556
53557 * genmk.rb (PModule#rule): Make sure to get only symbol names
53558 from the output of nm.
53559 Reported by Robert Millan <rmh.grub@aybabtu.com>.
53560
53561 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
53562
53563 I forgot to check in these changes for a long time. This adds
53564 incomplete support for VGA console, and this is still very
53565 buggy. Also, a lot of consideration is required for I18N,
53566 UNICODE, and VGA font issues. Therefore, assume that this is
53567 such that "better than nothing".
53568
53569 * font/manager.c: New file.
53570 * include/pupa/font.h: Likewise.
53571 * include/pupa/i386/pc/vga.h: Likewise.
53572 * term/i386/pc/vga.c: Likewise.
53573 * util/unifont2pff.rb: Likewise.
53574
53575 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
53576 (pkgdata_MODULES): Added vga.mod and font.mod.
53577 (vga_mod_SOURCES): New variables.
53578 (vga_mod_CFLAGS): Likewise.
53579 (font_mod_SOURCES): Likewise.
53580 (font_mod_CFLAGS): Likewise.
53581
53582 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
53583
53584 * include/pupa/term.h: Include pupa/err.h.
53585 (struct pupa_term): Added init and fini.
53586 Changed the argument of putchar to pupa_uint32_t.
53587
53588 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
53589 (pupa_console_real_putchar): New prototype.
53590 (pupa_console_putchar): Removed.
53591 (pupa_console_checkkey): Exported.
53592 (pupa_console_getkey): Likewise.
53593
53594 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
53595 characters.
53596
53597 * kern/term.c (pupa_term_set_current): Rewritten.
53598 (pupa_putchar): Likewise.
53599 (pupa_putcode): New function.
53600
53601 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
53602 (pupa_console_real_putchar): ... this.
53603 (pupa_vga_set_mode): New function.
53604 (pupa_vga_get_font): Likewise.
53605
53606 * normal/command.c: Include pupa/term.h.
53607 (terminal_command): New function.
53608 (pupa_command_init): Register the command "terminal".
53609
53610 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
53611 (DISP_UP): Likewise.
53612 (DISP_RIGHT): Likewise.
53613 (DISP_DOWN): Likewise.
53614 (DISP_HLINE): Likewise.
53615 (DISP_VLINE): Likewise.
53616 (DISP_UL): Likewise.
53617 (DISP_UR): Likewise.
53618 (DISP_LL): Likewise.
53619 (DISP_LR): Likewise.
53620
53621 * term/i386/pc/console.c (pupa_console_putchar): New function.
53622
53623 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
53624
53625 * util/resolve.c (pupa_util_resolve_dependencies): BUG
53626 FIX. Reverse the path_list.
53627
53628 * include/pupa/normal.h: Export pupa_register_command and
53629 pupa_unregister_command.
53630
53631 * hello/hello.c (pupa_cmd_hello): New module.
53632 * conf/i386-pc.rmk: Added hello.mod.
53633
53634 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
53635
53636 * kern/i386/pc/lzo1x.S: New file.
53637
53638 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
53639 (compress_kernel): New variable.
53640 (generate_image): Heavily modified to support compressing a
53641 large part of the core image.
53642
53643 * util/misc.c (pupa_util_read_image): Fix a file descriptor
53644 leak.
53645 (pupa_util_load_image): New function.
53646
53647 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
53648 (pupa_compressed_size): New variable.
53649 (codestart): Enable Gate A20 here.
53650 Decompress the compressed part of the core image.
53651 Rearrange the code to put functions and variables which are
53652 required for initialization in the non-compressed part.
53653 Include lzo1x.S.
53654
53655 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
53656 here.
53657
53658 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
53659
53660 * include/pupa/i386/pc/kernel.h
53661 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
53662 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
53663 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
53664 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
53665 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
53666
53667 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
53668
53669 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
53670 (Utility#rule): Likewise.
53671
53672 * configure.ac: Check if LZO is available.
53673
53674 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
53675
53676 * include/pupa/normal.h: New file.
53677 * include/pupa/setjmp.h: Likewise.
53678 * include/pupa/i386/setjmp.h: Likewise.
53679 * normal/cmdline.c: Likewise.
53680 * normal/command.c: Likewise.
53681 * normal/main.c: Likewise.
53682 * normal/menu.c: Likewise.
53683 * normal/i386/setjmp.S: Likewise.
53684
53685 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
53686 (pupa_rescue_cmd_initrd): Likewise.
53687
53688 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
53689 Likewise.
53690
53691 * kern/i386/pc/startup.S (translation_table): New variable.
53692 (translate_keycode): New function.
53693 (pupa_console_getkey): Call translate_keycode.
53694
53695 * kern/rescue.c (attempt_normal_mode): New function.
53696 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
53697 it failed, print a message.
53698
53699 * kern/mm.c (pupa_real_malloc): Print more information when a
53700 free magic is broken.
53701 (pupa_free): If the first free header is not free actually, set
53702 it to P.
53703
53704 * kern/main.c (pupa_load_normal_mode): Just load the module
53705 "normal".
53706 (pupa_main): Don't print the message
53707 "Entering into rescue mode..." here.
53708
53709 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
53710 Declared.
53711 (pupa_rescue_cmd_initrd): Likewise.
53712 (pupa_rescue_cmd_initrd): Likewise.
53713
53714 * include/pupa/symbol.h (FUNCTION): Specify the type.
53715 (VARIABLE): Likewise.
53716
53717 * include/pupa/err.h (pupa_err_t): Added
53718 PUPA_ERR_UNKNOWN_COMMAND.
53719
53720 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
53721 (pupa_dl_get_prefix): Likewise.
53722
53723 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
53724 Added _chain.mod and _linux.mod instead of chain.mod and
53725 linux.mod.
53726 (chain_mod_SOURCES): Renamed to ...
53727 (_chain_mod_SOURCES): ... this.
53728 (chain_mod_CFLAGS): Renamed to ...
53729 (_chain_mod_CFLAGS): ... this.
53730 (linux_mod_SOURCES): Renamed to ...
53731 (_linux_mod_SOURCES): ... this.
53732 (linux_mod_CFLAGS): Renamed to ...
53733 (_linux_mod_CFLAGS): ... this.
53734 (normal_mod_SOURCES): New variable.
53735 (normal_mod_CFLAGS): Likewise.
53736 (normal_mod_ASFLAGS): Likewise.
53737
53738 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
53739
53740 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
53741 possible.
53742
53743 * kern/dl.c (pupa_dl_ref): Refer depending modules
53744 recursively.
53745 (pupa_dl_unref): Unrefer depending modules recursively.
53746 Don't call pupa_dl_unload implicitly, because PUPA can crash if
53747 a module is unloaded before one depending on that module is
53748 unloaded.
53749 (pupa_dl_unload): Unload depending modules explicitly,
53750 if possible.
53751
53752 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
53753
53754 * include/pupa/i386/pc/linux.h: New file.
53755 * loader/i386/pc/linux.c: Likewise.
53756
53757 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
53758 Removed.
53759 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
53760 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
53761 of PUPA_CHAINLOADER_BOOT_SECTOR.
53762
53763 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
53764 (pupa_linux_prot_size): New variable.
53765 (pupa_linux_tmp_addr): Likewise.
53766 (pupa_linux_real_addr): Likewise.
53767 (pupa_linux_boot_zimage): New function.
53768 (pupa_linux_boot_bzimage): Likewise.
53769
53770 * kern/i386/pc/init.c (struct mem_region): New structure.
53771 (MAX_REGIONS): New macro.
53772 (mem_regions): New variable.
53773 (num_regions): Likewise.
53774 (pupa_os_area_addr): Likewise.
53775 (pupa_os_area_size): Likewise.
53776 (pupa_lower_mem): Likewise.
53777 (pupa_upper_mem): Likewise.
53778 (add_mem_region): New function.
53779 (compact_mem_regions): Likewise.
53780 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
53781 the size of the conventional memory and that of so-called upper
53782 memory (before the first memory hole).
53783 Instead of adding each found region to free memory, use
53784 add_mem_region and add them after removing overlaps.
53785 Also, add only 1/4 of the upper memory to free memory. The rest
53786 is used for loading OS images. Maybe this is ad hoc, but this
53787 makes it much easier to relocate OS images when booting.
53788
53789 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
53790 (pupa_enter_rescue_mode): Don't register initrd and module.
53791
53792 * kern/mm.c: Include pupa/dl.h.
53793
53794 * kern/main.c: Include pupa/file.h and pupa/device.h.
53795
53796 * kern/loader.c (pupa_loader_load_module_func): Removed.
53797 (pupa_loader_load_module): Likewise.
53798
53799 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
53800 ``.o''.
53801
53802 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
53803 (pupa_linux_tmp_addr): Likewise.
53804 (pupa_linux_real_addr): Likewise.
53805 (pupa_linux_boot_zimage): Likewise.
53806 (pupa_linux_boot_bzimage): Likewise.
53807
53808 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
53809 (pupa_upper_mem): Likewise.
53810 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
53811 module is too dangerous.
53812
53813 * include/pupa/loader.h (pupa_os_area_addr): Declared.
53814 (pupa_os_area_size): Likewise.
53815 (pupa_loader_set): Remove the first argument. Loader doesn't
53816 manage modules or initrd any longer.
53817 (pupa_loader_load_module): Removed.
53818
53819 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
53820 (linux_mod_SOURCES): New variable.
53821 (linux_mod_CFLAGS): Likewise.
53822
53823 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
53824
53825 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
53826 the length of a blocklist correctly.
53827
53828 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
53829 Use ioctl only if the OS file is a block device.
53830 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
53831 not very useful for normal files.
53832
53833 * kern/main.c (pupa_set_root_dev): New function.
53834 (pupa_load_normal_mode): Likewise.
53835 (pupa_main): Call those above.
53836
53837 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
53838 pupa_uint16_t.
53839
53840 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
53841
53842 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
53843
53844 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
53845 (setup): Configure the installed partition information and the
53846 dl prefix.
53847
53848 * loader/i386/pc/chainloader.c (my_mod): New variable.
53849 (pupa_chainloader_unload): New function.
53850 (pupa_rescue_cmd_chainloader): Refer itself.
53851 (PUPA_MOD_INIT): Save its own module in MY_MOD.
53852
53853 * kern/i386/pc/startup.S (install_partition): Removed.
53854 (version_string): Likewise.
53855 (config_file): Likewise.
53856 (pupa_install_dos_part): New variable.
53857 (pupa_install_bsd_part): Likewise.
53858 (pupa_prefix): Likewise.
53859 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
53860
53861 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
53862 and pupa/misc.h.
53863 (make_install_device): New function.
53864 (pupa_machine_init): Set the dl prefix.
53865
53866 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
53867 (buf): Renamed to ...
53868 (linebuf): ... this.
53869 (pupa_rescue_cmd_prefix): New function.
53870 (pupa_rescue_cmd_insmod): Likewise.
53871 (pupa_rescue_cmd_rmmod): Likewise.
53872 (pupa_rescue_cmd_lsmod): Likewise.
53873 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
53874 rmmod and lsmod.
53875
53876 * kern/mm.c (pupa_memalign): If failed even after invalidating
53877 disk caches, unload unneeded modules and retry.
53878
53879 * kern/misc.c (pupa_memmove): New function.
53880 (pupa_memcpy): Removed.
53881 (pupa_strcpy): New function.
53882 (pupa_itoa): Made static.
53883
53884 * kern/dl.c (pupa_dl_iterate): New function.
53885 (pupa_dl_ref): Likewise.
53886 (pupa_dl_unref): Likewise.
53887 (pupa_dl_unload): Return if succeeded or not.
53888 (pupa_dl_unload_unneeded): New function.
53889 (pupa_dl_unload_all): Likewise.
53890 (pupa_dl_init): Renamed to ...
53891 (pupa_dl_set_prefix): ... this.
53892 (pupa_dl_get_prefix): New function.
53893
53894 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
53895 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
53896 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
53897 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
53898 (pupa_install_dos_part): Declared.
53899 (pupa_install_bsd_part): Likewise.
53900 (pupa_prefix): Likewise.
53901 (pupa_boot_drive): Likewise.
53902
53903 * include/pupa/types.h: Fix a typo.
53904
53905 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
53906 pupa_memmove.
53907 (pupa_memmove): Declared.
53908 (pupa_strcpy): Likewise.
53909
53910 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
53911 pupa_mod_init takes one argument, its own module.
53912 (pupa_dl_unload_unneeded): Declared.
53913 (pupa_dl_unload_all): Likewise.
53914 (pupa_dl_ref): Likewise.
53915 (pupa_dl_unref): Likewise.
53916 (pupa_dl_iterate): Likewise.
53917 (pupa_dl_init): Renamed to ...
53918 (pupa_dl_set_prefix): ... this.
53919 (pupa_dl_get_prefix): Declared.
53920
53921 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
53922 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
53923 unloaded.
53924 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
53925 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
53926
53927 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
53928 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
53929
53930 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
53931
53932 * util/i386/pc/pupa-setup.c (setup): Define the internal
53933 function find_first_partition_start at the top level, because GCC
53934 3.0.x cannot compile internal functions in deeper scopes
53935 correctly.
53936 (find_root_device): Use lstat instead of stat.
53937 Don't follow symbolic links.
53938 Fix the path-constructing code.
53939
53940 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
53941 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
53942 by a BLKGETSIZE ioctl first, because block devices don't fill
53943 the member st_mode of the structure stat on Linux.
53944 [__linux__] (linux_find_partition): Use a temporary buffer
53945 REAL_DEV for the working space. Copy it to DEV before returning.
53946 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
53947 buffer cache consistent.
53948 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
53949 strncmp. The previous value was merely wrong.
53950 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
53951
53952 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
53953 FAT size is 12. The previous value was merely wrong.
53954
53955 * kern/main.c (pupa_main): Don't split the starting message from
53956 newlines.
53957
53958 * kern/term.c (pupa_putchar): Put CR after LF instead of before
53959 LF, because BIOS goes crazy about character attributes in this
53960 case.
53961
53962 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
53963
53964 * include/i386/pc/util/biosdisk.h: New file.
53965 * util/i386/pc/biosdisk.c: Likewise.
53966 * util/i386/pc/pupa-setup.c: Likewise.
53967
53968 * Makefile.in (INCLUDE_DISTFILES): Added
53969 include/pupa/i386/pc/util/biosdisk.h.
53970 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
53971 directory util/i386/pc.
53972 (install-local): Added a rule for sbin_UTILITIES.
53973 (uninstall): Likewise.
53974
53975 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
53976
53977 * util/misc.c (xrealloc): New function.
53978 (pupa_malloc): Likewise.
53979 (pupa_free): Likewise.
53980 (pupa_realloc): Likewise.
53981 (pupa_stop): Likewise.
53982 (pupa_putchar): Likewise.
53983
53984 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
53985
53986 * include/pupa/util/misc.h (xrealloc): Declared.
53987
53988 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
53989 macro.
53990 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
53991 (PUPA_BOOT_MACHINE_BPB_END): ... this.
53992
53993 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
53994 [PUPA_UTIL] (pupa_fat_fini): Likewise.
53995
53996 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
53997 way should be implemented.
53998 [PUPA_UTIL] (pupa_fat_fini): Likewise.
53999
54000 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
54001 the size of NAME for safety.
54002 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
54003 0x88.
54004
54005 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
54006 (pupa_setup_SOURCES): Likewise.
54007
54008 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
54009
54010 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
54011
54012 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
54013 bunch of pushl's from pusha, because this destroys the return
54014 value.
54015
54016 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
54017
54018 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
54019 This means that any missing prototypes could be fatal. Also, you
54020 must take care when writing assembly code. See the comments at
54021 the beginning of startup.S, for more details.
54022
54023 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
54024 compilation mechanism.
54025 (pupa_chainloader_real_boot): Likewise.
54026 (pupa_biosdisk_rw_int13_extensions): Likewise.
54027 (pupa_biosdisk_rw_standard): Likewise.
54028 (pupa_biosdisk_check_int13_extensions): Likewise.
54029 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
54030 (pupa_biosdisk_get_diskinfo_standard): Likewise.
54031 (pupa_get_memsize): Likewise.
54032 (pupa_get_mmap_entry): Likewise.
54033 (pupa_console_putchar): Likewise.
54034 (pupa_console_setcursor): Likewise.
54035 (pupa_getrtsecs): Use pushl instead of push.
54036
54037 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
54038 memory instead of the stack for a mmap entry, because some
54039 BIOSes may ignore the maximum size and overflow.
54040
54041 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
54042
54043 * genmk.rb (PModule#rule): Compile automatically generated
54044 sources with module-specific CFLAGS as well as other sources.
54045
54046 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
54047
54048 * configure.ac: Check ld.
54049 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
54050 respectively, before checking endianness and sizes.
54051
54052 * Makefile.in (LD): New variable.
54053
54054 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
54055
54056 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
54057
54058 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
54059
54060 * Changelog: New file.
54061