]> git.proxmox.com Git - grub2.git/blame - ChangeLog
* grub-core/loader/i386/xen_fileXX.c: Silence cast-align.
[grub2.git] / ChangeLog
CommitLineData
1123bed9
VS
12013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
2
3 * grub-core/loader/i386/xen_fileXX.c: Silence cast-align.
4
ebda165f
VS
52013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
6
7 * grub-core/loader/macho.c: Fix compilation on non-i386.
8
fe7c20bf
VS
92013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
10
11 Add missing format_arg attribute to check that printf with translated
12 messages has proper arguments.
13
f4dab3d1
VS
142013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
15
16 Use grub_xasprintf to format translated error messages containing
17 64-bit quantity.
18
24d5934d
JM
192013-12-17 Jon McCune <jonmccune@google.com>
20
21 Fix double-free introduced by commit 33d02a42d64cf06cada1c389
22
d6c2782a
VS
232013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
24
25 Unify message for unsupported relocation.
26
50d2e959
VS
272013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
28
29 Mark miscompile error for translation.
30
18e76955
VS
312013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
32
33 Use %I64 and not %ll when using OS printf if compiling for windows.
34
d218ec97
VS
352013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
36
37 Update Mac code to match new register_efi prototype.
38
b8765fa0
VS
392013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
40
41 Implement better integration with Mac firmware.
42
1f032575
VS
432013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
44
45 * grub-core/loader/multiboot_mbi2.c: Implement special value for
46 load_addr.
47
14829755
VS
482013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
49
50 Include serial module in default_payload.elf.
51
d45067a2
VS
522013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
53
54 Add explicit thumb interwork bx in asm files.
55
56 Shouldn't matter for armv >= 5 but let's be safe.
57
30861754
VS
582013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
59
60 Implement Truecrypt ISO loader.
61
e14d409b
VS
622013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
63
64 * grub-core/lib/arg.c: Ensure at least a single space between commands.
65
ec824e0f
VS
662013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
67
68 Implement grub_file tool and use it to implement generating of config
69 in separate root.
70
296f7606
VS
712013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
72
73 Change to v1 xen grants.
74
2c384f1e
VS
752013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
76
77 * grub-core/lib/i386/xen/relocator.S: Fix hypercall ABI violation.
78
79 GRUB relied on %ebx being preserved across hypercall which isn't true.
80
d16ff589
VS
812013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
82
83 * grub-core/lib/x86_64/xen/relocator.S: Fix hypercall ABI violation.
84
85 GRUB relied on %rdi being preserved across hypercall which isn't true.
86
71669c3b
VS
872013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
88
89 Implement XEN VFB support.
90
60d1dd3d
VS
912013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
92
93 Remove grub_bios_interrupt on coreboot.
94
95 It's not used currently and cannot be used safely currently.
96
a8201050
VS
972013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
98
99 Update exclude.pot and mark few strings for translation.
100
6cc89597
VS
1012013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
102
103 * util/grub-mkrescue.c: Fix incorrect file usage in fallback code.
104
105 Reported by: Jon McCune
106
840a2c05
AB
1072013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
108
109 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
110 Add verbose information which firmware directories were tried.
111
35248820
AB
1122013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
113
114 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect_all): New
115 function to optionally redirect all three standard descriptors.
116 Redefine grub_util_exec, grub_util_exec_redirect and
117 grub_util_exec_redirect_null to use it.
118 * include/grub/emu/exec.h: Define it.
119 * include/grub/osdep/exec_unix.h: Delete, it is unused.
120 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
121 Use grub_util_exec_redirect_all to redirect error to NULL.
122
2a123f4c
VS
1232013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
124
125 * grub-core/tests/sleep_test.c: Silence spurious warning.
126
316c8d9a
VS
1272013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
128
129 Make grub_xen_hypercall on i386 cdecl rather than stdcall to avoid
130 linker trying to "fixup" the code.
131
8fcce8d5
VS
1322013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
133
134 * grub-core/kern/x86_64/xen/startup.S: Align stack.
135
6f1f6a0c
VS
1362013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
137
138 Add support for converting PE+ to Elf64.
139
66a07ce2
VS
1402013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
141
142 * grub-core/commands/minicmd.c (grub_mini_cmd_dump): Handle LLP case.
143
cc6fb517
VS
1442013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
145
146 Remove practice of assigning random const pointers to device id.
147
148 This is not required as cache code already checks driver id as well.
149
f009f07c
VS
1502013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
151
152 * include/grub/x86_64/types.h: Define sizeof (long) as 4 when compiling
153 with mingw.
154
9fdec226
VS
1552013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
156
157 * include/grub/efi/api.h: Don't use call wrappers when compiled with
158 mingw or cygwin as API already matches.
159
d87cb3ae
VS
1602013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
161
162 * grub-core/lib/posix_wrap/errno.h: Undefine errno before redefining.
163
3e38c31a
VS
1642013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
165
166 * include/grub/efi/api.h: Define (u)intn_t based on pointer size and
167 not on long.
168
f4171ebd
VS
1692013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
170
171 Handle X86_64_PC64 relocation.
172
173 Those are generated by some cygwin compilers.
174
252a289c
VS
1752013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
176
177 Determine the need for mingw-related stubs at compile time rather than
178 using not very significant $target_os.
179
23d2abc3
VS
1802013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
181
182 * grub-core/genmod.sh.in: Strip before converting to ELF as strip
183 may not work with ELF.
184
4f979ccb
VS
1852013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
186
187 Use unix functions for temporary files and special files on cygwin.
188
37378f74
VS
1892013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
190
191 Define functions explicitly rather than using --defsym in tests
192 whenever possible. Respect locality in remaining cases.
193
6a09d83e
VS
1942013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
195
196 * grub-core/genmoddep.awk: Remove explicit getline < /dev/stdin.
197
e477187b
AB
1982013-12-15 Andrey Borzenkov <arvidjaar@gmail.com>
199
200 * grub-core/osdep/windows/platform.c (grub_install_register_efi): Handle
201 unlikely errors when getting EFI variables and make exhaustive search
202 for all BootNNNN variables to find matching one.
203
80b865bd
IC
2042013-12-15 Ian Campbell <ijc@hellion.org.uk>
205
206 * grub-core/kern/uboot/init.c: Fix units of uboot timer.
207
04b02857
VS
2082013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
209
210 New functional test for sleep function.
211
212 This test allows to check sleep without qemu. Keep qemu version as
213 well as functional test won't notice if all clocks are going too fast
214 or too slow.
215
39711101
VS
2162013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
217
218 Add explicit sysv_abi on amd64 asm routines.
219
d99af4f0
VS
2202013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
221
222 * grub-core/commands/efi/lsefisystab.c: Use %lld to show
223 num_table_entries.
224
71043684
VS
2252013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
226
227 * include/grub/test.h: Use gnu_printf rather than printf on GRUB
228 functions.
229
111bf5db
VS
2302013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
231
232 * grub-core/loader/i386/linux.c: Use grub_addr_t rather than long when
233 appropriate.
234
24ca71c9
VS
2352013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
236
237 * grub-core/loader/i386/linux.c: Use %p rather than %lx for pointers.
238
48ba5c0c
VS
2392013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
240
241 * grub-core/kern/elfXX.c: Use grub_addr_t rather than long when
242 appropriate.
243
8ae67045
VS
2442013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
245
246 * grub-core/disk/loopback.c: Use sequential IDs rather than pointer.
247
248 In case of quick removal of loopback and adding another one it may
249 get same ID, confusing the cache system.
250
ed559310
VS
2512013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
252
253 * grub-core/commands/acpi.c: Use grub_addr_t rather than long when
254 appropriate.
255
8fa26279
VS
2562013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
257
258 * grub-core/kern/i386/coreboot/cbtable.c: Use char * arithmetic rather
259 than converting to long.
260
6f5f3337
VS
2612013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
262
263 * grub-core/disk/cryptodisk.c: Rename "n" to "last_cryptodisk_id".
264
e7c418c5
VS
2652013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
266
267 * util/grub-mkimagexx.c (relocate_addresses): Display offset rather
268 than almost useless pointer.
269
7e47e27b
VS
2702013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
271
272 Add gcc_struct to all packed structures when compiling with mingw.
273
274 Just "packed" doesn't always pack the way we expect.
275
ae8159b9
VS
2762013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
277
278 * include/grub/i386/coreboot/lbio.h: Add missing attribute (packed).
279
74e7ad66
VS
2802013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
281
282 * util/grub-pe2elf.c: Fix handling of .bss.
283
814442ba
VS
2842013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
285
286 Implement windows flavour of EFI install routines.
287
5f5bb107
VS
2882013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
289
290 * conf/Makefile.extra-dist: Adjust path to conf/i386-cygwin-img-ld.sc.
291
a24725cc
VS
2922013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
293
294 Change grub_install_register_efi interface to pass GRUB device.
295
296 This allows grub_install_register_efi to request partition info
297 directly.
298
38933cee
VS
2992013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
300
301 Workaround cygwin bug when using \\?\Volume{GUID} syntax.
302
6d3cfe50
VS
3032013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
304
305 Do not use TCHAR string functions as they are not available on cygwin.
306
4bad23a1
VS
3072013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
308
309 Workaround windows bug when querying EFI system partition parameters.
310
6a5fe132
VS
3112013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
312
313 * grub-core/kern/i386/qemu/init.c (resource): Decrease struct size
314 by using bitfields.
315
bc8fcf4b
VS
3162013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
317
318 * grub-core/boot/i386/qemu/boot.S: Add missing EXT_C.
319
60b967be
VS
3202013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
321
322 Make i386-* other than i386-pc compileable under cygwin.
323
6dc33377
VS
3242013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
325
326 Fix definition of grub_efi_hard_drive_device_path. Take care that
327 existing code would work even if by some reason bogus definition is
328 used by EFI implementations.
329
f2c6ff15
VS
3302013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
331
332 * grub-core/osdep/windows/hostdisk.c: Fix cygwin compilation.
333
6b8a1625
VS
3342013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
335
336 * grub-core/osdep/windows/blocklist.c: Add missing cast in printf
337 invocation.
338
954c723a
VS
3392013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
340
341 * util/config.c: Remove trailing newline from distributor in simple
342 parsing.
343
607a39f9
VS
3442013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
345
346 * include/grub/efi/api.h: Rename protocol and interface to avoid
347 conflict.
348
df6fedca
VS
3492013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
350
351 * .gitignore: Add .exe variants. Add missing files. Remove few outdated
352 entries.
353
f684d7e1
VS
3542013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
355
356 * grub-core/osdep/exec.c: Use unix version on cygwin.
357
0df77d79
VS
3582013-12-13 Vladimir Serbinenko <phcoder@gmail.com>
359
360 Implement multiboot2 EFI BS specification.
361
dafff9ce
VS
3622013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
363
364 * grub-core/normal/charset.c: Fix premature line wrap and crash.
365 Crash happened only in some cases like a string starting at the
366 half of the screen of same length.
367
6644d973
VS
3682013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
369
370 * include/grub/efiemu/efiemu.h: Sync configuration table declaration
371 with EFI counterpart.
372
44bbfa33
VS
3732013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
374
375 Propagate the EFI commits to x86-efi specific parts.
376
3e3dff24
VS
3772013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
378
379 * grub-core/commands/efi/lssal.c: Fix terminating condition.
380
316dda71
VS
3812013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
382
383 Introduce grub_efi_packed_guid and use it where alignment is not
384 guaranteed.
385
219401b8
VS
3862013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
387
388 * include/grub/efi/api.h (grub_efi_device_path): Define length as
389 unaligned u16 rather than u8[2].
390
30d00537
VS
3912013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
392
393 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Add checks
394 for relocation range.
395
979742bc
VS
3962013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
397
398 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Handle
399 non-function pcrel21b relocation. It happens with .text.unlikely
400 section.
401
16c8f785
LL
4022013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
403
404 * make MAX_USABLE_ADDRESS platform-specific
405 * grub-core/kern/efi/mm.c: add Vladimir's new BYTES_TO_PAGES_DOWN macro.
406
3f1423e7
LL
4072013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
408
409 * grub-core/lib/fdt.c: change memcpy => grub_memcpy
410
dd73313c
JM
4112013-12-09 Jon McCune <jonmccune@google.com>
412
413 * Add --no-rs-codes flag to optionally disable reed-solomon codes
414 in grub-install and grub-bios-setup for x86 BIOS targets.
415
eaf01c25
VS
4162013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
417
418 Add missing compile and link options for sparc64-emu.
419
7a148da6
VS
4202013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
421
422 Implement sparc64 trampolines (needed for sparc64-emu).
423
21eee750
VS
4242013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
425
426 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Check
427 range of R_SPARC_HI22.
428 Implement R_SPARC_LM22.
429
7b54b626
VS
4302013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
431
432 * grub-core/kern/powerpc/dl_helper.c (grub_arch_dl_get_tramp_got_size):
433 Do not explicitly check for symbol table as it's already checked in
434 platform-independent layer.
435
9a945e2a
VS
4362013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
437
438 * grub-core/kern/emu/cache.c [__ia64__]: Use our cache cleaning routine
439 on ia64 as __clear_cache is a dummy on ia64.
440
4f4ea1b4
VS
4412013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
442
443 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
444 Do not explicitly check for symbol table as it's already checked in
445 platform-independent layer.
446
fe4ae213
CW
4472013-12-09 Colin Watson <cjwatson@ubuntu.com>
448
449 * util/grub-mkconfig.in: Add missing newline to output.
450
78b2b0a1
VS
4512013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
452
453 * grub-core/kern/ia64/efi/init.c (grub_arch_sync_caches): Move to ...
454 * grub-core/kern/ia64/cache.c (grub_arch_sync_caches): ... here.
455
d14772c4
VS
4562013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
457
458 * grub-core/kern/emu/main.c: Silence missing prototypes to allow emu
459 compilation with GCC <= 4.2.
460 * grub-core/kern/emu/argp_common.c: Likewise.
461
388f3cd0
VS
4622013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
463
464 * include/grub/kernel.h [__sparc__]: Restrict sparc64-ieee1275 to
465 right platform rather than leaking to sparc64-emu.
466
11e4167a
VS
4672013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
468
469 * grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
470 But ensure that the variables in question are indeed unsigned.
471
fa7eb63d
VS
4722013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
473
474 * grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
475
50b3a68d
VS
4762013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
477
478 Remove grub_memalign on emu.
479
fbbfb6ab
VS
4802013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
481
482 * grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
483 truncate incomplete lines but instead flushes them.
484
a19293cb
VS
4852013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
486
487 Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
488 and implement windows variant.
489
d5c14e1e
VS
4902013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
491
492 Fix mips-emu compilation.
493
b75db69a
VS
4942013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
495
496 * configure.ac: Check for freetype library usability.
497
c311ced5
VS
4982013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
499
500 Make arm-emu work.
501
c8fd2ddf
VS
5022013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
503
504 * util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.
505
c50e5f45
AB
5062013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
507
508 * docs/grub.texi (Environment): Update color_normal and color_highlight
509 defaults (light-gray instead of white).
510
bb05e313
AB
5112013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
512
513 * grub-core/normal/main.c (INIT): Set default color to light-gray
514 to match GRUB_TERM_DEFAULT_NORMAL_COLOR (i.e. rescue mode), Linux
515 and apparently BIOS defaults.
516
f23bc651
VS
5172013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
518
519 Transform -C option to grub-mkstandalone to --core-compress available
520 in all grub-install flavours.
521
4c4ea9c7
VS
5222013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
523
524 Merge GRUBFS and GRUB_FS variables.
525
92e9352d
AB
5262013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
527
528 Revert commit 69ca97c820, it caused failures when using OS device name
529 in grub-install. Instead just strip off parenthesis in grub-install
530 if (hdX) was passed.
531
f585c905
AB
5322013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
533
534 * util/grub-install.c (push_partmap_module): Add helper to convert
535 partmap names to module names and use it in probe_mods(). Fixes
536 failure to find partmap modules in diskfilter case.
537
5ff24907
VS
5382013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
539
540 * configure.ac: Make unifont mandatory on coreboot.
541
0277eab7
VS
5422013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
543
544 * configure.ac: Skip unifont 6.3 pcf and bdf.
545
4861b6c8
VS
5462013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
547
548 * Makefile.am: Remove partial font files if generation failed.
549
3100cdc7
AB
5502013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
551
552 * util/misc.c (grub_qsort_strcmp): Add qsort helper function to sort
553 strings.
554 * include/grub/util/misc.h: Define it ...
555 * util/grub-install.c (device_map_check_duplicates): ... and use it.
556
ad73cc33
AB
5572013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
558
559 * util/grub.d/30_os-prober.in: Fix use of grub-probe instead of
560 ${grub_probe}.
561
41822625
VS
5622013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
563
564 Don't add -mlong-calls when compiling with clang.
565
896f483d
VS
5662013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
567
568 * configure.ac: Fix a typo.
569
8c534b85
VS
5702013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
571
572 Revamp relocation handling.
573
574 Move more code to common dl.c. Add missing veneers for arm and arm64.
575 Decreases kernel size by 70 bytes on i386-pc (40-50 compressed)
576
a846dd4b
VS
5772013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
578
579 * util/grub-mkimagexx.c: Fix reloc section generation for ia64.
580
aa437b58
MG
5812013-12-05 Mike Gilbert <floppym@gentoo.org>
582
583 * INSTALL: Raise minimum python version to 2.6.
584 * gentpl.py: Use python3-style print function.
585
b0f311f4
VS
5862013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
587
588 * util/grub-install.c: Mention Boot* variable.
589
59b38922
CW
5902013-12-05 Colin Watson <cjwatson@ubuntu.com>
591
592 * grub-core/osdep/linux/hostdisk.c
593 (grub_util_find_partition_start_os): Initialise start to avoid
594 spurious compiler warning.
595
0480665b
CW
5962013-12-05 Colin Watson <cjwatson@ubuntu.com>
597
598 On Linux, read partition start offsets from sysfs if possible, to
599 cope with block device drivers that don't implement HDIO_GETGEO.
600 Fixes Ubuntu bug #1237519.
601
602 * grub-core/osdep/linux/hostdisk.c (sysfs_partition_path): New
603 function.
604 (sysfs_partition_start): Likewise.
605 (grub_util_find_partition_start_os): Try sysfs_partition_start
606 before HDIO_GETGEO.
607
bbeee1c4
LL
6082013-12-05 Leif Lindholm <leif.lindholm@linaro.org>
609
610 * grub-core/kern/fdt.c: Update struct size when adding node.
611
e5ed2f69
VS
6122013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
613
614 Handle unaligned .bss on sparc64.
615
616 Current code improperly assumes that both __bss_start and _end are
617 aligned to 8-bytes. Eliminating this assumption and explicitly align
618 modules.
619
4a73746a
VS
6202013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
621
622 * grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
623 so it doesn't land in the middle of loaded image.
624
382b500e
VS
6252013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
626
627 * configure.ac: Move all warning options that may be absent in
628 gcc >= 3.1 to optional.
629
630 Note: while this allows to compile with older GCC, official requirements
631 remain the same and no support for older GCC.
632
3a82f8bb
CW
6332013-12-04 Colin Watson <cjwatson@ubuntu.com>
634
635 Copying the themes directory in grub-shell isn't
636 parallel-test-friendly and breaks on the second test when the source
637 directory is read-only (as in "make distcheck"). Instead, add a
638 hidden --themes-directory option to grub-mkrescue et al, and use it
639 in grub-shell.
640
e3046431
VS
6412013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
642
643 * conf/Makefile.common (CFLAGS_GNULIB): Remove -Wno-old-style-definition
644 as it's no longer necessarry.
645
bdb6090d
VS
6462013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
647
648 * configure.ac: Allow compilation with older GCC for ARM.
649
b73b70eb
VS
6502013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
651
652 * configure.ac: Add -no-integrated-as if {addme|ame} isn't supported.
653 * INSTALL: Note that GRUBwas successfully compiled with clang 3.2 for
654 ppc.
655
8a3f0a24
VS
6562013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
657
658 * grub-core/kern/emu/main.c: Ignore missing prototype for main.
659
6f07c4e4
VS
6602013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
661
662 Pass font config to config.h and not by TARGET_CFLAGS as adding
663 arguments doesn't work if TARGET_CFLAGS is specified on command
664 line.
665
60d5e9cb
VS
6662013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
667
668 * configure.ac: Add -Wvla if compiler supports it.
669
cd15c394
VS
6702013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
671
672 * grub-core/osdep/windows/emuconsole.c (grub_console_putchar):
673 Remove variable length arrays.
674 * grub-core/term/efi/console.c (grub_console_putchar): Likewise.
675
bb6e299c
VS
6762013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
677
678 * grub-core/kern/i386/qemu/init.c: Remove variable length arrays.
679
85eb579a
VS
6802013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
681
682 * include/grub/types.h: Declare all byteswaps as inline functions
683 except compile-time ones.
684
685 Solves variable shadowing in constructions like
686 cpu_to_le (le_to_cpu(x) + 1).
687
47f88cc9
VS
6882013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
689
690 * grub-core/kern/efi/efi.c: Remove variable length arrays.
691
40b5739f
VS
6922013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
693
694 * grub-core/kern/uboot/init.c (uboot_timer_ms): Fix overflow after 71
695 minutes.
696
234d9346
VS
6972013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
698
699 * grub-core/disk/ieee1275/ofdisk.c: Remove variable length arrays.
700 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
701
0c0eab52
CW
7022013-12-03 Colin Watson <cjwatson@ubuntu.com>
703
704 * grub-core/Makefile.core.def (setjmp): Distribute
705 lib/arm64/setjmp.S.
706
44d48847 7072013-12-03 Colin Watson <cjwatson@ubuntu.com>
8f236c14
CW
708
709 Add a new timeout_style environment variable and a corresponding
710 GRUB_TIMEOUT_STYLE configuration key for grub-mkconfig. This
711 controls hidden-timeout handling more simply than the previous
712 arrangements, and pressing any hotkeys associated with menu entries
713 during the hidden timeout will now boot the corresponding menu entry
714 immediately.
715
716 GRUB_HIDDEN_TIMEOUT=<non-empty> + GRUB_TIMEOUT=<non-zero> now
717 generates a warning, and if it shows the menu it will do so as if
718 the second timeout were not present. Other combinations are
719 translated into reasonable equivalents.
720
10955cda
CW
721 Based loosely on work by Franz Hsieh. Fixes Ubuntu bug #1178618.
722
9e4e6ddf
VS
7232013-12-02 Vladimir Serbinenko <phcoder@gmail.com>
724
725 * util/config.c: Add missing pointer adjustment.
726 Reported by: qwertial
727
5037aa9a
AB
7282013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
729
730 * grub-core/kern/arm64/dl_helper.c: Include grub/arm64/reloc.h
731 directly, not via `cpu' link, to fix libgrub.pp generation.
732
8a952d20
VS
7332013-11-30 Leif Lindholm <leif.lindholm@linaro.org>
734
735 New port arm64-efi.
736
be0d4555
AB
7372013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
738
739 * docs/grub.texi (sleep): Document exit codes.
740
d74b9a1d
VS
7412013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
742
743 Ensure that -mno-unaligned-access or some equivalent option is used.
744
35de6d4b
VS
7452013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
746
747 * grub-core/lib/libgcrypt/mpi/longlong.h: Fix compilation error with
748 -march=armv3.
749
ce55ed03
VS
7502013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
751
752 Remove leftover GRUB_IA64_DL_TRAMP_SIZE.
753
8ddf84bf
CW
7542013-11-29 Colin Watson <cjwatson@ubuntu.com>
755
756 * docs/grub-dev.texi (Font Metrics): Exclude @image command from DVI
757 builds, since we don't have an EPS version of font_char_metrics.png.
758 Add leading dot to image extension per the Texinfo documentation.
759
fd0df6d0
CW
7602013-11-29 Colin Watson <cjwatson@ubuntu.com>
761
762 * util/grub-gen-asciih.c: Include FT_SYNTHESIS_H rather than
763 <freetype/ftsynth.h>, fixing build with FreeType 2.5.1.
764 * util/grub-gen-widthspec.c: Likewise.
765 * util/grub-mkfont.c: Likewise.
766
69ca97c8
AB
7672013-11-29 Andrey Borzenkov <arvidjaar@gmail.com>
768
769 * util/grub-setup.c (main): Move parsing of (hdX) syntax to ...
770 * util/setup.c (SETUP): ... here. Fixes regression: grub-install
771 failed to install on (hdX).
772 * util/grub-setup.c (get_device_name): Remove, not needed after
773 above change.
774
eec893ae
VS
7752013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
776
777 * grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.
778
621e167f
VS
7792013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
780
781 * util/grub-fstest.c: Remove variable length arrays.
782
d54f647a
VS
7832013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
784
785 * grub-core/osdep/linux/ofpath.c: Check return value of read.
786
c8a0f1b2
VS
7872013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
788
789 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
790 computing crc32 rather than handling with md fundtions directly.
791
726409a5
VS
7922013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
793
794 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
795 checking fwstart.img rather than md fundtions directly.
796
422e6e88
VS
7972013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
798
799 * util/grub-mkrescue.c (main): Check that fread succeeded.
800
af1faca3
VS
8012013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
802
803 * conf/Makefile.common: Remove -mexplicit-relocs and
804 -DUSE_ASCII_FALLBACK on yeeloong.
805
806 -DUSE_ASCII_FALLBACK is already added by font snippets.
807 -mexplicit-relocs isn't needed is compiler/assemblera are
808 configured properly.
809 If they're not we shouldn't attempt to fix it by ourselves.
810 Binary compare between before and after shows no difference.
811
469021b4
VS
8122013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
813
814 * grub-core/Makefile.core.def: Remove libgnulib.a and use its
815 sources in dependencies directly.
816
817 This was the only instance of "library" in core config. A bug was
818 reported that -fno-stack-protector wasn't passed to it. Instead of
819 figuring out why it failed just remove this construction used
820 needlessly.
821
83c256ba
VS
8222013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
823
824 * grub-core/osdep/unix/password.c (grub_password_get): Check that
825 fgets succeeded.
826
b67422d3
FL
8272013-11-27 Francesco Lavra <francescolavra.fl@gmail.com>
828
829 * docs/grub.texi (ls): Fix command description in case of a device name
830 passed as argument.
831
2d76b4d8
VS
8322013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
833
834 Eliminate variable length arrays in grub_vsnprintf_real.
835
836 A bit tricky because this function has to continue to work without
837 heap for short strings. Fixing prealloc to 32 arguments is reasonable
838 but make all stack references use 32-bit offset rather than 8-bit one.
839 So split va_args preparsing to separate function and put the prealloc
840 into the caller.
841
4f954122
VS
8422013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
843
844 Introduce grub_util_file_sync and use it instead of fsync(fileno(f)).
845 Fixes build for windows.
846
b1f742c1
VS
8472013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
848
849 * gentpl.py: Don't generate platform-dependent conditionals for
850 platform-independent targets.
851
16ef26fd
CW
8522013-11-27 Colin Watson <cjwatson@ubuntu.com>
853
854 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect): Remove
855 references to mdadm from otherwise generic code.
856 (grub_util_exec_pipe): Likewise.
857 (grub_util_exec_pipe_stderr): Likewise.
858 * grub-core/osdep/unix/getroot.c (grub_util_pull_lvm_by_command):
859 This function calls vgs, not mdadm; adjust variable names
860 accordingly.
861
cf8c80ff 8622013-11-27 Colin Watson <cjwatson@ubuntu.com>
ab4f1501
CW
863
864 Generate Makefile.*.am directly from gentpl.py, eliminating the use
865 of Autogen. The Autogen definitions files remain intact as they
866 offer a useful abstraction.
867
5c7206e4
CW
8682013-11-27 Colin Watson <cjwatson@ubuntu.com>
869
870 Add grub_util_disable_fd_syncs call to turn grub_util_fd_sync calls
871 into no-ops, and use it in programs that copy files but do not need
872 to take special care to sync writes (grub-mknetdir, grub-rescue,
873 grub-mkstandalone).
874
fc3f2b72
CW
8752013-11-26 Colin Watson <cjwatson@ubuntu.com>
876
877 * tests/util/grub-fs-tester.in: Execute xorriso from $PATH rather
878 than hardcoding /usr/local/bin/xorriso.
879
1e4b3587
VS
8802013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
881
882 Add PCI command activation to all PCI drivers as required for coreboot
883 and maybe some other firmwares.
884
9208367d
VS
8852013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
886
887 * grub-core/Makefile.am: Reduce gratuituous differences between Apple
888 and non-Apple variants of efiemu compile.
889
67b9b7af
AB
8902013-11-25 Andrey Borzenkov <arvidjaar@gmail.com>
891
892 * configure.ac: Add explicit check for linking format of
893 efiemu64; save it as EFIEMU64_LINK_FORMAT.
894 * grub-core/Makefile.am: Use EFIEMU64_LINK_FORMAT instead of
895 hardcoding linking format.
896
bee1b5ce
VS
8972013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
898
899 * util/grub-mknetdir.c: Look for platform directories under pkglibdir
900 and not pkgdatadir.
901
07e3b047
CW
9022013-11-25 Colin Watson <cjwatson@ubuntu.com>
9032013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
904
905 Add a --locale-directory option to grub-install and related tools.
906
907 * include/grub/util/install.h (GRUB_INSTALL_OPTIONS): Add
908 --locale-directory option.
909 (enum grub_install_options): Add
910 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
911 * util/grub-install-common.c (grub_install_help_filter): Handle
912 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
913 (grub_install_parse): Likewise.
914 (get_localedir): New function to check for a user-provided option
915 before trying grub_util_get_localedir.
916 (copy_locales): Use get_localedir rather than
917 grub_util_get_localedir. Handle differing locale directory layouts.
918 (grub_install_copy_files): Likewise.
919
61e1b9a4
VS
9202013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
921
922 * grub-core/osdep/unix/platform.c (get_ofpathname): Trim ending newline.
923 Don't rely on PATH_MAX.
924
c98dd165
VS
9252013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
926
927 * grub-core/genmoddep.awk: Use more portable && rather than and.
928
ff1c277e
VS
9292013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
930
931 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Create _edata by placing
932 an object after data. While it doesn't seem right solution, it
933 works well enough and OSX isn't main compilation platform.
934
c8f7614b
VS
9352013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
936
937 * gentpl.py: Add -ed2016 in order to make objconv accept our binary.
938 While it doesn't seem right solution, it works well enough and
939 OSX isn't main compilation platform.
940
246a434f
VS
9412013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
942
943 * configure.ac: Add -static to LDFLAGS when using apple linker to
944 prevent it from pulling in dynamic linker.
945
5c066a81
VS
9462013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
947
948 Apple assembly doesn't handle symbol arithmetic well. So define an
949 offset symbol in boot.S and use it.
950
78f961ef
VS
9512013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
952
953 Apple assembly doesn't handle symbol arithmetic well. So instead
954 of getting addres of kernel_sector + 4 define kernel_sector_high.
955 It also makes code more readable.
956
09bc0a57
VS
9572013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
958
959 With Apple assembly in .macro environvemnt you have to use $$ instead
960 of $. So introduce new preprocessor macro MACRO_DOLLAR(x) which expands
961 to $$x on Apple and to $x on everything else.
962
b700a427
VS
9632013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
964
965 * grub-core/Makefile.am: Use correct TARGET_OBJCONV rather than
966 OBJCONV.
967
4480b95d
VS
9682013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
969
970 * grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple
971 and non-Apple. This instruction is shorter and faster,
972 so no reason not to use it on both.
973
e77c81f6
VS
9742013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
975
976 * grub-core/lib/reed_solomon.c: Use section _text, _text rather than
977 .text when compiling for Apple.
978
971dbee5
VS
9792013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
980
981 * grub-core/term/arc/console.c: Add missing cast to silence warning.
982
6f2e82be
VS
9832013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
984
985 * grub-core/boot/i386/pc/boot.S: Fix floppy probe. Due to missing
986 %dx restore the probe worked on non-existant drive. Reorganize the
987 code a little bit to free 2 bytes necessary for push/pop.
988
9eec9699
VS
9892013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
990
991 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
992 Add missing cast to silence warning.
993
5ae5c54c
KPA
9942013-11-23 Keshav Padram Amburay <the.ridikulus.rat@gmail.com>
995
996 * util/grub-install.c (update_nvram): Support --no-nvram flag
997 for EFI targets.
998
7b04fe6c
VS
9992013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
1000
1001 * INSTALL: Add note about sparc64/ia64 with clang (unsupported).
1002
e67566ce
VS
10032013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
1004
1005 * util/garbage-gen.c: Add missing include of sys/time.h.
1006
f93ddcfd
VS
10072013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
1008
1009 Don't add -mflush-func if it's not supported by compiler.
1010
1bba40f5
VS
10112013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
1012
1013 Move common BIOS/coreboot memory map declarations to
1014 include/grub/i386/memory_raw.h and eliminate duplicate declarations.
1015
f65e14dc
AB
10162013-11-22 Andrey Borzenkov <arvidjaar@gmail.com>
1017
1018 * Makefile.am: Add util/garbage-gen.c to EXTRA_DIST.
1019
14a94bba
VS
10202013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1021
1022 * INSTALL: Document why older clang versions aren't appropriate.
1023
8109c5d4
VS
10242013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1025
1026 * INSTALL: Document about clang for mips.
1027
a92b5cb8
VS
10282013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1029
1030 * grub-core/lib/libgcrypt/mpi/longlong.h: Use C version with mips
1031 clang.
1032
4a23e2fe
VS
10332013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1034
1035 Add *-xen to the list of grub-install-common platforms.
1036
a3ba7410
VS
10372013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1038
1039 * configure.ac: Do not enforce -mcmodel=large. It's not necessarry with
1040 3 last commits.
1041
e1c22419
VS
10422013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1043
1044 * grub-core/kern/xen/init.c: Do not map more pages than we can address.
1045
189090ce
VS
10462013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1047
1048 * grub-core/kern/efi/mm.c: Limit allocations to 2GiB when not compiling
1049 with -mcmodel=large.
1050
1a5b7b40
VS
10512013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1052
1053 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Add
1054 range-checking for 32-bit quantities.
1055
9cf12b20
VS
10562013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1057
1058 * configure.ac: Compile with -fPIC when compiling with clang on
1059 mips.
1060
63a45330
VS
10612013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1062
1063 * configure.ac: Add -no-integrated-as on mips(el) to TARGET_CCASFLAGS
1064 when compiling with clang.
1065
4a0aaad0
VS
10662013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1067
1068 clang emits calls to abort () under some unknown conditions.
1069 Export abort () when compiling with clang.
1070
095bb1bf
VS
10712013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1072
1073 * docs/grub-dev.texi: Document stack and heap sizes.
1074
3937bd96
VS
10752013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1076
1077 * include/grub/i386/pc/memory.h: Decrease
1078 GRUB_MEMORY_MACHINE_SCRATCH_SIZE and increase
1079 GRUB_MEMORY_MACHINE_PROT_STACK_SIZE.
1080 The binary doesn't change (checked). It's more to better reflect actual
1081 usage.
1082
ddb3efc9
VS
10832013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1084
1085 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Ensure
1086 at compile time that enough of scratch size is available.
1087
4e42521d
VS
10882013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1089
1090 * grub-core/kern/x86_64/efi/callwrap.S: Fix stack alignment.
1091 Previously we misaligned stack by 8 in startup.S and compensated
1092 for it in callwrap.S. According to ABI docs (EFI and sysv amd64)
1093 right behaviour is to align stack in startup.S and keep it aligned
1094 in callwrap.S. startup.S part was committed few commits before. This
1095 takes care of callwrap.S.
1096 Reported by: Gary Lin.
1097
054efe54
VS
10982013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1099
1100 * grub-core/boot/mips/startup_raw.S: Handle the case of gap between
1101 .data and .bss. May happen if compiler and assembly use different
1102 alignment.
1103
a0e1befb
VS
11042013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1105
1106 On MIPS handle got16 relocations to local symbols in an ABI-compliant
1107 way.
1108
c36c73f6
VS
11092013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1110
1111 Add support for a new magic symbol _gp_disp on mips to handle PIC
1112 binaries.
1113
6f4a19f5
VS
11142013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1115
1116 Use $t9 for indirect calls from asm to C as PIC ABI requires.
1117
0d8f04cd
VS
11182013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1119
1120 Remove -march=mips3 from TARGET_CCASFLAGS as it creates linking problem
1121 when rest of GRUB is compiled for hisher stepping. Instead use
1122 .set mips3/.set mips1 around cache and sync opcodes.
1123
49060520
VS
11242013-11-21 Vladimir Serbinenko <phcoder@gmail.com>
1125
1126 Unify GOT/trampoline handling between PPC, MIPS and IA64 as they
1127 do essentially the same thing, do it in similar way.
1128
c6a823e2
CW
11292013-11-21 Colin Watson <cjwatson@ubuntu.com>
1130
1131 * util/grub-mkrescue.c (main): If a source directory is not
1132 specified, read platform-specific files from subdirectories of
1133 pkglibdir, not pkgdatadir.
1134
b7f9aedf
CW
11352013-11-21 Colin Watson <cjwatson@ubuntu.com>
1136
1137 * grub-core/normal/progress.c: Remove unused file.
1138
7dd0a303
VS
11392013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
1140
1141 * grub-core/lib/crypto.c (grub_crypto_hash): Remove variable length
1142 array.
1143
ca120e31
VS
11442013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
1145
1146 * util/grub-mkconfig.in: Say explicit "grub configuration" rather
1147 than grub.cfg.
1148
48eb35cd
VS
11492013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
1150
1151 * coreboot.cfg: Add missing file.
1152
7f20dbbc
VS
11532013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
1154
1155 * Makefile.am: Allow STRIP to be empty when creating windowszip.
1156
55e706c9
AK
11572013-11-19 Axel Kellermann <axel.kellermann@gmx.de>
1158
1159 * util/grub.d/30_os-prober.in: Add GRUB_OS_PROBER_SKIP_LIST to
1160 selectively skipping systems.
1161
4e7d433d
CW
11622013-11-19 Colin Watson <cjwatson@ubuntu.com>
1163
1164 * Makefile.util.def (grub-mkimage): Add
1165 grub-core/osdep/aros/config.c to extra_dist.
1166 * conf/Makefile.extra-dist (EXTRA_DIST): Add docs/autoiso.cfg,
1167 docs/osdetect.cfg, grub-core/gnulib-fix-null-deref.diff,
1168 grub-core/gnulib-fix-width.diff, grub-core/gnulib-no-abort.diff, and
1169 grub-core/gnulib-no-gets.diff.
1170
7d44ff7d
VS
11712013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
1172
1173 Add automated filesystem checking based on scripts I've used now for
1174 quite some time locally. Most of the test require root so they are
1175 skipped when run without necessarry privelegies.
1176
a8c3e5e3
CW
11772013-11-19 Colin Watson <cjwatson@ubuntu.com>
1178
1179 * util/grub-install.c (main): Adjust info messages to match
1180 installed paths of grub-bios-setup and grub-sparc64-setup.
1181
4402db3e
CW
11822013-11-19 Colin Watson <cjwatson@ubuntu.com>
1183
1184 * util/grub-install-common.c (copy_locales): Consistently use
1185 grub_util_get_localedir () rather than LOCALEDIR.
1186 (grub_install_copy_files): Likewise.
1187
7960d3e1
JT
11882013-11-19 Josh Triplett <josh@joshtriplett.org>
1189
1190 * grub-core/kern/x86_64/efi/startup.S (_start): Align the stack to a
1191 16-byte boundary, as required by the x86-64 ABI, before calling
1192 grub_main. In some cases, GCC emits code that assumes this
1193 alignment, which crashes if not aligned. The EFI firmware is also
1194 entitled to assume that stack alignment without checking.
1195
d53f4900
JT
11962013-11-18 Josh Triplett <josh@joshtriplett.org>
1197
1198 * grub-core/mmap/efi/mmap.c (grub_mmap_register): Round up/down to
1199 4k page boundaries as expected by firmware rather than 1k
1200 boundaries.
1201 (grub_mmap_malign_and_register): Likewise.
1202
bb2b275b
VS
12032013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1204
1205 * tests/grub_func_test.in: Decrease RAM size to 512M. With less
1206 fragmentation 512M is enough.
1207
45bf8b3a
VS
12082013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1209
1210 * grub-core/kern/mm.c (grub_real_malloc): Decrease cut-off of moving the
1211 pointer to 32K. This is the size of cache element which is the most
1212 common allocation >1K. This way the pointer is always around blocks
1213 of 32K and so we keep performance while decreasing fragmentation.
1214
39ff43c5
VS
12152013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1216
1217 * grub-core/kern/mm.c (grub_real_malloc): Don't update the pointer to
1218 current memory when allocating large chunks. This significantly
1219 decreases memory fragmentation.
1220
60870be8
CW
12212013-11-18 Colin Watson <cjwatson@ubuntu.com>
1222
1223 * tests/gzcompress_test.in: Skip if gzip is not installed (unlikely,
1224 but for symmetry).
1225 * tests/lzocompress_test.in: Skip if lzop is not installed.
1226 * tests/xzcompress_test.in: Skip if xz is not installed.
1227
a1f00cc5
CW
12282013-11-18 Colin Watson <cjwatson@ubuntu.com>
1229
1230 * util/grub-mkrescue.c (main): Fix typo.
1231
74e632fe
VS
12322013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1233
1234 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Update
1235 clock frequency to 200 MHz,
1236
efb8de49
VS
12372013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1238
1239 * tests/util/grub-shell.in: Increase console size to 1024x1024.
1240
b7526e78
VS
12412013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1242
1243 * Makefile.am (default_payload.elf): Add pata to loaded modules.
1244 Load config file from (cbfsdisk)/etc/grub.cfg.
1245
b40ce651
VS
12462013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1247
1248 * util/grub-install-common.c (grub_install_copy_files): Fix module
1249 destination directory.
1250
1e8e2e78
CW
12512013-11-18 Colin Watson <cjwatson@ubuntu.com>
1252
1253 * tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo
1254 files have not been built.
1255
3bf4088b
CW
12562013-11-18 Colin Watson <cjwatson@ubuntu.com>
1257
1258 * grub-core/osdep/unix/hostdisk.c (grub_util_make_temporary_file):
1259 Handle errors from mkstemp.
1260 (grub_util_make_temporary_dir): Handle errors from mkdtemp.
1261
35c2851c
VS
12622013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1263
1264 * tests/util/grub-shell.in: Use -cdrom and don't force cdrom
1265 on primary master on pseries.
1266
ea7c1a7d
VS
12672013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1268
1269 * grub-core/tests/videotest_checksum.c: Don't reload unifont if it's
1270 already loaded. This saves memory needed for tests,
1271
96adefdb
VS
12722013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1273
1274 * util/grub-mkrescue.c (main): Fix a typo to make yeeloong part
1275 work again.
1276
5e3cb8a7
VS
12772013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1278
1279 * grub-core/term/terminfo.c (grub_cmd_terminfo): Fix a typo to make -g
1280 work again.
1281
256ee7ac
VS
12822013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1283
1284 * tests/util/grub-shell.in: For powerpc tests put the CD-ROM as primary
1285 master since with some combinations of qemu and firmware only primary
1286 IDE channel is available.
1287
f8b4c3b6
VS
12882013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1289
1290 * grub-core/tests/gfxterm_menu.c: Skip high-resolution tests on
1291 low-memory platforms where we don't have enough memory for them.
1292 * grub-core/tests/videotest_checksum.c: Likewise.
1293
4bf70320
VS
12942013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1295
1296 * grub-core/tests/cmdline_cat_test.c: Don't reload unifont if it's
1297 already loaded. This saves memory needed for tests,
1298
a284320e
VS
12992013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1300
1301 Fix handling of install lists.
1302
2df8f43d
VS
13032013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1304
1305 * grub-core/lib/sparc64/setjmp.S: Force spilling of current window.
1306
6f1bc8bc
VS
13072013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1308
1309 On i386-ieee1275 we run in paged mode. So we need to explicitly map
1310 the devices before accessing them.
1311
04f39f6d
VS
13122013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1313
1314 * grub-core/lib/relocator.c (grub_mm_check_real): Accept const char *
1315 as file argument.
1316
35d4761c
VS
13172013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1318
1319 * grub-core/normal/cmdline.c (grub_cmdline_get): Plug memory leak.
1320
33d02a42
VS
13212013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1322
1323 * grub-core/kern/file.c (grub_file_open): Free file->name on failure.
1324 (grub_file_close): Free file->name.
1325
7bbb60cf
VS
13262013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1327
1328 * grub-core/commands/verify.c (free_pk): Plug memory leak.
1329 (grub_load_public_key): Likewise.
1330 (grub_verify_signature_real): Likewise.
1331 (grub_cmd_verify_signature): Likewise.
1332
da93d675
VS
13332013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1334
1335 * grub-core/commands/legacycfg.c (grub_legacy_check_md5_password): Plug
1336 memory leak.
1337
59c943ec
VS
13382013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1339
1340 * grub-core/lib/powerpc/setjmp.S (grub_setjmp): Save r31.
1341 (grub_longjmp): Restore r31.
1342 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Reserve space for r31.
1343
4336b5d8
VS
13442013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1345
1346 * util/grub-mkrescue.c (make_image_fwdisk_abs): Insert all partmap
1347 modules to be in line with make_image_abs.
1348
44ce3a93
VS
13492013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1350
1351 * include/grub/mips/setjmp.h (grub_jmp_buf): Fix buffer size.
1352
1353 setjmp.S uses 12 entries but buffer is declared with only 11 entries.
1354
7d400406
IC
13552013-11-17 Ian Campbell <ijc@hellion.org.uk>
1356
1357 * grub-core/disk/uboot/ubootdisk.c: Include SCSI disks.
1358
77dae919
VS
13592013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1360
1361 * tests/grub_func_test.in: Increase memory reservation as on EFI we need
1362 to leave some memory to firmware.
1363
0ab8e025
VS
13642013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1365
1366 * grub-core/tests/cmdline_cat_test.c (cmdline_cat_test): Ignore errors
1367 of loading gfxterm as gfxterm is embed in kernel on some platforms.
1368 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Likewise.
1369 Load gfxmenu.
1370
b80c2d6d
VS
13712013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1372
1373 * tests/core_compress_test.in: Use full arguments as grub-mkimage-extra
1374 now needs full arguments.
1375
6aa6077b
VS
13762013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1377
1378 * util/grub-mkrescue.c (main): Add trailing \n in
1379 .disk_label.contentDetails to be in line with previous shell script.
1380
66c00cb1
VS
13812013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1382
1383 * util/grub-mkrescue.c (main): Use right source file for bootinfo.txt.
1384
3a129dba
VS
13852013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1386
1387 * util/grub-install-common.c (grub_install_parse): Recognize
1388 --compress=none like shell script did.
1389
8df6eff6
VS
13902013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1391
1392 * include/grub/misc.h: Replace check for __sparc64__ with one for
1393 __sparc__ as __sparc64__ isn't actually defined.
1394
889ebe92
VS
13952013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1396
1397 * tests/util/grub-shell.in: Use escc-ch-b on powerpc. This is missing
1398 counterpart of fixing the naming of escc ports.
1399
d4d55b29
VS
14002013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1401
1402 * util/grub-install-common.c (platforms): Fix the order of entries and
1403 remove useless field val.
1404
55e2c84f
VS
14052013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1406
1407 * util/grub-install.c: Add new option --no-bootsector to skip
1408 installing of bootsector. Accept --grub-setup=/bin/true as
1409 backwards-compatible synonym.
1410
cd46aa6c
VS
14112013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
1412
1413 * util/grub-install.c (device_map_check_duplicates): Fix incorrect
1414 order of qsort arguments (number of elements vs. element size).
1415
14162013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1417
1418 Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir
1419 the function of these files exceeds what can be sanely handled in shell
1420 in posix-comaptible way. Also writing it in C extends the functionality
1421 to non-UNIX-like OS and minimal environments.
1422
9ef81064
VS
14232013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1424
1425 * grub-core/kern/arm/cache.S: Don't switch back to ARM mode when
1426 compiling to thumb2.
1427 * grub-core/kern/arm/cache_armv7.S: Likewise.
1428 * grub-core/lib/arm/setjmp.S: Likewise.
1429
11a77932
LL
14302013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
1431
1432 * grub-core/kern/arm/uboot/startup.S: delete superflouous save of r8
1433 in grub_uboot_syscall
1434
080603f0
VS
14352013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1436
1437 Decrease stack usage in lexer.
1438
1439 We have only 92K of stack and using over 4K per frame is wasteful
1440
1441 * grub-core/script/yylex.l (yyalloc), (yyfree), (yyrealloc): Declare
1442 as macros so that compiler would remove useless structure on stack.
1443 Better solution would be to fix flex not to put this structure on
1444 the stack but flex is external program.
1445
4f84ae0e
VS
14462013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1447
1448 Decrease stack usage in signature verification.
1449
1450 We have only 92K of stack and using over 4K per frame is wasteful
1451
1452 * grub-core/commands/verify.c (grub_load_public_key): Allocate on heap
1453 rather than stack.
1454 (grub_verify_signature_real): Likewise.
1455
e6a6182d
VS
14562013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1457
1458 Decrease stack usage in mdraid 0.9x.
1459
1460 We have only 92K of stack and using over 4K per frame is wasteful
1461
1462 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Allocate on heap
1463 rather than stack.
1464
1a454efe
VS
14652013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1466
1467 Decrease stack usage in BtrFS.
1468
1469 We have only 92K of stack and using over 4K per frame is wasteful
1470
1471 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Allocate on heap
1472 rather than stack.
1473
7b5d51d8
VS
14742013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1475
1476 Decrease stack usage in JFS.
1477
1478 We have only 92K of stack and using over 4K per frame is wasteful
1479
1480 * grub-core/fs/jfs.c (getblk): Allocate on heap rather than on
1481 stack. Note: this function is recursive.
1482 (grub_jfs_read_inode): Read only part we care about.
1483
593865b9
LL
14842013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
1485
1486 * grub-core/kern/arm/uboot/startup.S: fix grub_uboot_syscall va_arg
1487 handling
7b5d51d8 1488
31c0cd43
AB
14892013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
1490
1491 * configure.ac: Restore -nostdlib for libgcc symbols tests.
1492
c2fdb331
AB
14932013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
1494
1495 * docs/grub.texi (Environment): Document cmdpath.
1496
9e18dfe2
AB
14972013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
1498
1499 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
1500 Remove "unused" attribute from arguments, they are used.
1501
59ba9d14
CW
15022013-11-15 Colin Watson <cjwatson@debian.org>
1503
1504 * .gitignore: Only ignore grub-mk* at the top level.
1505
23012db9
CW
15062013-11-15 Colin Watson <cjwatson@ubuntu.com>
1507
1508 * util/grub-reboot.in (usage): Fix a typo.
1509
6fcec439
VS
15102013-11-15 Vladimir Serbinenko <phcoder@gmail.com>
1511
1512 Replace libgcc version of ctz with our own.
1513
1514 On upcoming arm64 port libgcc ctz* are not usable in standalone
1515 environment. Since we need ctz* for this case and implementation is
1516 in C we may as well use it on all concerned platforms.
1517
a9f25a08
VS
15182013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1519
1520 * configure.ac: Probe for linking format rather than guessing it based
1521 on target_os.
1522
c7995256
VS
15232013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1524
1525 * grub-core/disk/xen/xendisk.c (grub_xendisk_fini): Set state to
1526 "1" prior to handoff.
1527
1528 Reported by: M A Young.
1529
e1aa5b66
VS
15302013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1531
1532 * grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add
1533 \0 to all files.
1534
1535 Reported by: M A Young.
1536
da5ed5cf
VS
15372013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1538
1539 * grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
1540 compilation on NetBSD.
1541
5757a93e
VS
15422013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1543
1544 * acinclude.m4: Don't add -P on initial nm test.
1545
1546 Note: even though this patch postdates Andrey's it bears 14 Nov as
1547 date due to timezone difference.
1548
a5986276
AB
15492013-11-15 Andrey Borzenkov <arvidjaar@gmail.com>
1550
1551 * grub-core/Makefile.core.def (signature_test): Add missing
1552 tests/signatures.h.
1553
0de172a0
CW
15542013-11-14 Colin Watson <cjwatson@ubuntu.com>
1555
1556 * util/grub-install_header: Set localedir here, since this file is
1557 where it's used.
1558 * util/grub-install.in: Remove setting of localedir.
1559 * util/grub-mkrescue.in: Likewise.
1560
da45f43c
VS
15612013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1562
1563 * Makefile.am (default_payload.elf): Add uhci, ohci and usb_keyboard.
1564
20aea949
VS
15652013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1566
1567 * configure.ac: Move nm checks to the end.
1568 Call grub_PROG_NM_WORKS.
1569 * acinclude.m4: New check grub_PROG_NM_WORKS.
1570 Use $TARGET_CFLAGS -c when compiling test binary.
1571
1326b9ae
CW
15722013-11-14 Colin Watson <cjwatson@ubuntu.com>
1573
1574 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Remove
1575 unused variables.
1576
1fe26ab4
MG
15772013-11-14 Matthew Garrett <mjg@redhat.com>
1578
1579 * grub-core/kern/main.c (grub_set_prefix_and_root): Set variable
1580 cmdpath to firmware directory.
1581
83e9c273
VS
15822013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1583
1584 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Reset the pointer
1585 at the start of second iteration.
1586
ec525c18
VS
15872013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1588
1589 * grub-core/Makefile.am (efiemu64.o): Explicitly set link format.
1590
93fcc7ad
VS
15912013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1592
1593 * Makefile.am (default_payload.elf): New target for easier coreboot
1594 build.
1595
57ffe934
VS
15962013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1597
1598 * grub-core/kern/arm/cache_armv6.S: Remove special handling for
1599 clang (not necessarry with -no-integrated-as).
1600 * include/grub/symbol.h [__arm__]: Likewise.
1601
2312f06c
VS
16022013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1603
1604 * configure.ac: Use -no-integrated-as on arm with clang.
1605 * INSTALL: Mention ARM compilation with clang.
1606
2416415c
VS
16072013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1608
1609 * conf/Makefile.common (CCASFLAGS_PLATFORM) [COND_arm]: Add
1610 -mthumb-interwork.
1611
5da55172
CW
16122013-11-14 Colin Watson <cjwatson@ubuntu.com>
1613
1614 * grub-core/fs/ext2.c (grub_ext2_read_block): Factor out common
1615 code for indirect block handling.
1616
1617 Saves 185 bytes on compressed image.
1618
da770328
PFS
16192013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1620
1621 Fix make clean.
1622
1623 * Makefile.am: Remove build-grub-* in make clean.
1624
f02e6b56
PFS
16252013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1626
1627 New files to gitignore.
1628
1629 * .gitignore: Add build-grub-gen-asciih, build-grub-gen-widthspec,
1630 build-grub-mkfont, and grub-emu-lite. Remove .bzrignore.
1631
035a26c1
LL
16322013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
1633
1634 * grub-core/kern/arm/misc.S: Make thumb2-compatible.
1635
bc8a6137
LL
16362013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
1637
1638 * .gitignore: fix rules for .dep* and add *.a post git migration
1639
6fe506b0
CW
16402013-11-13 Colin Watson <cjwatson@ubuntu.com>
1641
1642 * configure.ac (AM_INIT_AUTOMAKE): Require at least version 1.10.1,
1643 to match INSTALL.
1644
81a2e438
CW
16452013-11-13 Colin Watson <cjwatson@ubuntu.com>
1646
1647 * grub-core/kern/misc.c: Don't redirect divisions in the
1648 GRUB_UTIL case.
1649 * include/grub/misc.h: Likewise.
1650
9b45c073
CW
16512013-11-13 Colin Watson <cjwatson@ubuntu.com>
1652
1653 * grub-core/osdep/unix/emuconsole.c (put): Pacify the compiler on
1654 systems that require checking the return value of write.
1655
11b2a9b7
CW
16562013-11-13 Colin Watson <cjwatson@ubuntu.com>
1657
1658 * util/grub-install.in (efi_quiet): Fix inverted logic: make
1659 efibootmgr quiet when --debug is not used, rather than when it is.
1660
d743d22d
CW
16612013-11-13 Colin Watson <cjwatson@ubuntu.com>
1662
1663 * gentpl.py (define_macro_for_platform_dependencies): Remove
1664 first (and thus unused) of two definitions for this function.
1665 (platform_dependencies): Likewise.
1666
11da14b5
CW
16672013-11-13 Colin Watson <cjwatson@ubuntu.com>
1668
1669 * acinclude.m4 (grub_apple_cc): Remove; since the removal of nested
1670 functions, we only need to check this for the target, not the host.
1671 * configure.ac (grub_apple_cc): Likewise.
1672
2bdd0719
VS
16732013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1674
1675 * grub-core/kern/arm/cache.c (probe_caches): Move asm part to ...
1676 * grub-core/kern/arm/cache_armv6.S: ... here. This allows this
1677 asm to stay in arm even if surrounding is thumb.
1678
5e77d9cf
VS
16792013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1680
1681 * grub-core/kern/arm/misc.S: Add __muldi3 and __aeabi_lmul. Those
1682 helper functions are needed for thumb.
1683
7d511625
VS
16842013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1685
1686 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
1687 level / 3 division explicitly unsigned. Saves few bytes.
1688
81023dbd
VS
16892013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1690
1691 * grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
1692
b2e9294f
VS
16932013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1694
1695 * grub-core/normal/datetime.c (grub_get_weekday): Use if rather than
1696 division.
1697
16a22c38
VS
16982013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1699
1700 * grub-core/kern/uboot/init.c: Move grub_uboot_machine_type and
1701 grub_uboot_boot_data to asm part.
1702
c9cd02c9
VS
17032013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1704
1705 * grub-core/kern/arm/uboot/startup.S: Remove = by replacing with
1706 literal load.
1707 (grub_uboot_syscall): Save/restore r9 and align stack.
1708
81498615
VS
17092013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1710
1711 * grub-core/kern/arm/cache.S: Replace = with explicit litteral load.
1712
ea57de18
VS
17132013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1714
1715 * include/grub/symbol.h (END) [__arm__]: New macros. Replace all .end
1716 occurencies with END.
1717
d0d1e3da
CW
17182013-11-13 Colin Watson <cjwatson@ubuntu.com>
1719
1720 * util/grub-editenv.c (help_filter, argp): Document how to delete
1721 the whole environment block.
1722 Reported by Dan Jacobson. Fixes Debian bug #726265.
1723
3809f016
CW
17242013-11-13 Colin Watson <cjwatson@ubuntu.com>
1725
1726 * docs/grub.texi (Internationalisation, Supported kernels): Fix
1727 sectioning.
1728
46d8a203
JT
17292013-11-13 Josh Triplett <josh@joshtriplett.org>
1730
1731 * grub-core/normal/term.c (grub_set_more): Use bool logic rather than
1732 increment/decrement.
1733
513eeb61
VS
17342013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1735
1736 * grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when
1737 compiling with clang.
1738
bc379c1a
VS
17392013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1740
1741 * grub-core/kern/arm/uboot/startup.S: Use .org rather than assigning
1742 ".".
1743
17442013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
286551b4 1745
16057d6b
VS
1746 Redirect all divisions to grub_divmod64.
1747
f649a6a8
VS
17482013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1749
1750 * grub-core/term/tparm.c (tparam_internal): Use unsigned divisions.
1751
ef28ee8b
VS
17522013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1753
1754 Add missing includes of loader.h.
1755
300f48c5
VS
17562013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1757
1758 * configure.ac: Allow disabling themes.
1759
2d357558
LS
17602013-11-12 Lukas Schwaighofer <lukas@schwaighofer.name>
1761
1762 * util/grub.d/20_linux_xen.in: Don't decompress initrd.
1763
0c62a5b2
VS
17642013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1765
1766 * grub-core/term/at_keyboard.c: Don't poll non-functional AT controller
1767 until it becomes operational.
1768
b0720b49
VS
17692013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1770
1771 * grub-core/Makefile.core.def (legacy_password_test): Disable
1772 on platforms where no legacycfg is compiled.
1773 * grub-core/tests/lib/functional_test.c: Tolerate failure to
1774 load legacy_password_test.
1775
d5bab2c0
VS
17762013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1777
1778 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
1779
3ea0ccb3
VS
17802013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1781
1782 * grub-core/efiemu/prepare.c: Remove variable length arrays.
1783
08772054
VS
17842013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1785
1786 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
1787 strict-aliasing warning.
1788 (fsync): Silence cast warning.
1789
1dcb2715
VS
17902013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1791
1792 * grub-core/commands/verify.c: Remove variable length arrays.
1793 Load gcry_dsa/gcry_rsa automatically.
1794
61c22fdf
VS
17952013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1796
1797 * grub-core/tests/signature_test.c: New test.
1798
431e57a7
VS
17992013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1800
1801 * grub-core/disk/cryptodisk.c (luks_script_get): Adapt to new procfs
1802 API.
1803
b521bb81
VS
18042013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1805
1806 * grub-core/tests/legacy_password_test.c (vectors): Make static.
1807 * grub-core/tests/pbkdf2_test.c (vectors): Likewise.
1808
7d06b24e
VS
18092013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1810
1811 * grub-core/tests/setjmp_test.c: Reset counter to 0 before starting.
1812
3bbeade4
VS
18132013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1814
1815 * grub-core/fs/proc.c: Allow \0 in proc files.
1816
ba82db7a
VS
18172013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1818
1819 * grub-core/tests/xnu_uuid_test.c: Fix assert message.
1820
801564c8
VS
18212013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1822
1823 * grub-core/tests/xnu_uuid_test.c: Fix copyright year.
1824
ac8cac1d
VS
18252013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1826
1827 * grub-core/fs/ext2.c: Remove variable length arrays.
1828
4b85f122
VS
18292013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1830
1831 * grub-core/lib/crypto.c (grub_crypto_cbc_decrypt): Remove variable
1832 length arrays.
1833
c35fcdc0
VS
18342013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1835
1836 * grub-core/disk/AFSplitter.c: Remove variable length arrays.
1837 * grub-core/disk/cryptodisk.c: Likewise.
1838 * grub-core/disk/geli.c: Likewise.
1839 * grub-core/disk/luks.c: Likewise.
1840
15decd26
VS
18412013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1842
1843 * grub-core/tests/legacy_password_test.c: New test.
1844 * grub-core/commands/legacycfg.c: Remove variable length arrays.
1845
9c6482b8
VS
18462013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1847
1848 * grub-core/lib/pbkdf2.c: Remove variable length arrays.
1849
41f26e0e
VS
18502013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1851
1852 * grub-core/tests/pbkdf2_test.c: New test.
1853
2def6616
VS
18542013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1855
1856 * grub-core/lib/xzembed/xz_dec_stream.c: Remove variable length arrays.
1857
9e34a34e
VS
18582013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1859
1860 * grub-core/io/lzopio.c: Remove variable length arrays.
1861
5ccaf904
VS
18622013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1863
1864 * include/grub/crypto.h: Add maximums on hash size and cipher block
1865 size.
1866
44a387e0
VS
18672013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1868
1869 * grub-core/commands/xnu_uuid.c: Remove variable length arrays.
1870
a388e255
VS
18712013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1872
1873 * grub-core/tests/xnu_uuid_test.c: New test.
1874
a1ef7718
VS
18752013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1876
1877 * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
1878 covers it).
1879
65ddb300
VS
18802013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1881
1882 * grub-core/commands/hashsum.c: Remove variable length arrays.
1883
31747dd5
VS
18842013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1885
1886 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
1887 condition.
1888 * tests/grub_func_test.in: Increase memory allocation.
1889
6a74c4df
VS
18902013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1891
1892 * grub-core/osdep/unix/getroot.c [HAVE_STRUCT_STATFS_F_FSTYPENAME
1893 && HAVE_STRUCT_STATFS_F_MNTFROMNAME]: Include sys/param.h and
1894 sys/mount.h.
1895
394c3e0a
VS
18962013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1897
1898 * grub-core/osdep/apple/hostdisk.c (grub_util_get_fd_size): Rename to ..
1899 (grub_util_get_fd_size_os): ...this.
1900 (grub_hostdisk_flush_initial_buffer): New empty function.
1901
60d31116
VS
19022013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1903
1904 * grub-core/gensyminfo.sh.in: Handle the case of portable output
1905 without --defined-only.
1906
8445b011
VS
19072013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1908
1909 * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
1910 rip-relative addressing in prologue.
1911
8506a641
VS
19122013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1913
1914 * include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
1915 * grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
1916
66acd9d6
VS
19172013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1918
1919 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
1920 Add missing semicolon.
1921
348d0535
VS
19222013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1923
1924 * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen.
1925
0d2d30bb
VS
19262013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1927
1928 * configure.ac: Check for lzma.h for enabling liblzma and allow
1929 manual disabling.
1930
631187be
VS
19312013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1932
1933 Add missing includes of loader.h.
1934
e756ec82
FZ
19352013-11-11 Fam Zheng <famcool@gmail.com>
1936
1937 * util/grub.d/30_os-prober.in: Add minix entry.
1938
87d62d7d
VS
19392013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1940
1941 * grub-core/loader/i386/coreboot/chainloader.c (load_segment): Use
1942 right buffer for temporary load.
1943
5460cfeb
VS
19442013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1945
1946 * grub-core/loader/i386/coreboot/chainloader.c: Support tianocore.
1947
89977306
VS
19482013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1949
1950 * grub-core/loader/i386/coreboot/chainloader.c: Support lzma-compressed
1951 payload.
1952
3617c59b
VS
19532013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1954
1955 * include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
1956 not Types.h.
1957 * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
1958 environment.
1959 (LzmaDec_InitDicAndState): Make static.
1960
881c6a10
VS
19612013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1962
1963 * util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
1964
2024ade2
VS
19652013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1966
1967 * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
1968
1969 Reported by: Aaro Koskinen <aaro.koskinen@iki.fi>
1970
674ad4f6
VS
19712013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1972
1973 * docs/grub-dev.texi: Replace bzr references with git ones.
1974
5b99970e
AB
19752013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
1976
1977 * docs/grub.texi (Simple configuration): Remove reference to
1978 grub-reboot from saved default entry description - grub-default
1979 does not use it anymore.
1980
3c2304d5
VS
19812013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1982
1983 * configure.ac: Make efiemu test cflags match the cflags efiemu is
1984 compiled with.
1985
80cfd940
AB
19862013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
1987
1988 * docs/grub.texi (Simple configuration): Document GRUB_DISABLE_SUBMENU.
1989
33690255
VS
19902013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1991
1992 Fix grub_machine_fini bitrot.
1993
1994 Reported by: Glenn Washburn.
1995
c61471fc
VS
19962013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1997
1998 * configure.ac: Remove leftover -fnested-funcions -Wl,-allow_execute.
1999
54da019f
VS
20002013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2001
2002 * grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and
2003 -DELF.
2004 * grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
2005 instead of ELF*.
2006
20072013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
28668d80
VS
2008
2009 * configure.ac: Restore CFLAGS to TARGET_CFLAGS before external tests.
2010 Add -march=core2 when testing compile of efiemu64.
2011
2012 Thanks Andrey Borzenkov for spotting this.
2013
9612ebc0
VS
20142013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
2015
2016 Add new ports: i386-xen and x86_64-xen. This allows running GRUB in
2017 XEN PV environment and load kernels.
2018
1a46a3a4
VS
20192013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
2020
2021 * grub-core/loader/i386/multiboot_mbi.c: Handle space in command line.
2022 * grub-core/loader/multiboot_mbi2.c: Likewise.
2023
2df12551
VS
20242013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
2025
2026 * grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
2027 handling.
2028
3c980381
VS
20292013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
2030
2031 * grub-core/commands/i386/cmostest.c: Add new command "cmosset".
2032
2033 Tested by: Denis 'GNUtoo' Carikli.
2034
800f63d3
VS
20352013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2036
2037 * grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
2038
9f8acdaa
VS
20392013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2040
5620eb53
VS
2041 * grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
2042 Use to get rounded angle rather than truncated.
2043
20442013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2045
2046 * grub-core/term/serial.c: Add option for enabling/disabling
9f8acdaa
VS
2047 RTS/CTS flow control.
2048
2dc1eb6c
VS
20492013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2050
2051 * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
2052 divisions.
2053
b9563c94
VS
20542013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2055
2056 * grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
2057 Use grub_fatal rather than divide by zero.
2058 * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
2059
d6d8e9a9
VS
20602013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2061
2062 * include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
2063 truncate.
2064 (grub_fixed_fsf_divide): Likewise.
2065
d06de6c8
VS
20662013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2067
2068 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Avoid
2069 division by-zero and senseless negative divisions.
2070
6af7d49b
VS
20712013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2072
2073 * grub-core/gfxmenu/gui_circular_progress.c (circprog_paint): Avoid
2074 division by-zero and senseless negative divisions.
2075 (circprog_set_property): Don't accept negative num_ticks.
2076
bcfa6d72
VS
20772013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2078
2079 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Avoid
2080 division by-zero and senseless negative divisions.
2081
dd7f792c
VS
20822013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2083
2084 * configure.ac: Use elf_*_fbsd on kfreebsd.
2085
d061fda7
VS
20862013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2087
2088 * grub-core/tests/div_test.c: New test.
2089
4db22500
VT
20902013-11-08 Vladimir Testov <vladimir.testov@rosalab.ru>
2091
2092 * grub-core/gfxmenu/gui_box.c: Updated to work with area status.
2093 * grub-core/gfxmenu/gui_canvas.c: Likewise.
2094 * grub-core/gfxmenu/view.c: Likewise.
2095 * grub-core/video/fb/video_fb.c: Introduce new functions:
2096 grub_video_set_area_status, grub_video_get_area_status,
2097 grub_video_set_region, grub_video_get_region.
2098 * grub-core/video/bochs.c: Likewise.
2099 * grub-core/video/capture.c: Likewise.
2100 * grub-core/video/video.c: Likewise.
2101 * grub-core/video/cirrus.c: Likewise.
2102 * grub-core/video/efi_gop.c: Likewise.
2103 * grub-core/video/efi_uga.c: Likewise.
2104 * grub-core/video/emu/sdl.c: Likewise.
2105 * grub-core/video/radeon_fuloong2e.c: Likewise.
2106 * grub-core/video/sis315pro.c: Likewise.
2107 * grub-core/video/sm712.c: Likewise.
2108 * grub-core/video/i386/pc/vbe.c: Likewise.
2109 * grub-core/video/i386/pc/vga.c: Likewise.
2110 * grub-core/video/ieee1275.c: Likewise.
2111 * grub-core/video/i386/coreboot/cbfb.c: Likewise.
2112 * include/grub/video.h: Likewise.
2113 * include/grub/video_fb.h: Likewise.
2114 * include/grub/fbfill.h: Updated render_target structure.
2115 grub_video_rect_t viewport, region, area
2116 int area_offset_x, area_offset_y, area_enabled
2117 * include/grub/gui.h: New helper function
2118 grub_video_bounds_inside_region.
2119 * docs/grub-dev.texi: Added information about new functions.
2120
c6b755df
VS
21212013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2122
2123 * grub-core/kern/mm.c (grub_real_malloc): Use AND rather than MOD
2124 for alignment.
2125
e2a68100
VS
21262013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2127
2128 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
2129 missing attribute.
2130 * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
2131
c4f11a2a
VS
21322013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2133
2134 * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
2135 simple division on arm and ia64.
2136
e0a7bffa
VS
21372013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2138
2139 * grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
2140 link with libgcc.
2141
38b864ea
VS
21422013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2143
2144 * include/grub/symbol.h (FUNCTION), (VARIABLE): Fix precedence logic.
2145
12359faf
VS
21462013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2147
2148 * include/grub/symbol.h (FUNCTION), (VARIABLE) [__arm__]: Use % as
2149 prefix symbol, not @.
2150
9fdc64a9
VS
21512013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2152
2153 * INSTALL: Add note about older gcc and clang.
2154
665c575b
VS
21552013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2156
2157 * tests/util/grub-shell.in: Boot as hdd on ppc by default.
2158
47dcf7b1
VS
21592013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2160
2161 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
2162 NULL pointer dereference.
2163
d59849b2
VS
21642013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2165
2166 * grub-core/Makefile.am: Do not include libgcc.h when compiling with
2167 clang.
2168
7a3f4a18
VS
21692013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2170
2171 * grub-core/kern/powerpc/dl.c: Add missing pragma to silence cast-align
2172 warnings.
2173
7f084087
VS
21742013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2175
2176 * grub-core/net/net.c (grub_net_route_unregister): Remove unused
2177 function.
2178 * grub-core/loader/i386/xnu.c (hextoval): Likewise.
2179 * grub-core/disk/geli.c (ascii2hex): Likewise.
2180
d5524ca8
VS
21812013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2182
2183 * configure.ac: Run linker tests without -Werror.
2184 Define TARGET_LDFLAGS_STATIC_LIBGCC and TARGET_LIBGCC.
2185 Change all occurences of -static-libgcc resp -lgcc to
2186 TARGET_LDFLAGS_STATIC_LIBGCC resp TARGET_LIBGCC.
2187
390cd7ca
VS
21882013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2189
2190 * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
2191
60375a88
VS
21922013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2193
2194 Allow compiling with clang (not really supported though).
2195
2196 * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
2197 unconditionally.
2198 * configure.ac: Add -no-integrated-as when using clangfor asm files.
2199 Add -mrtd -mregparm=3 on i386 when not using clang.
2200 * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
2201
dd07e0c4
VS
22022013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2203
2204 * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
2205 bindings.
2206 * grub-core/lib/reed_solomon.c: Likewise.
2207 * include/grub/i386/gdb.h: Likewise.
2208 * include/grub/i386/pc/int.h: Likewise.
2209 * include/grub/i386/pc/pxe.h: Likewise.
2210 * include/grub/ieee1275/ieee1275.h: Likewise.
2211
9d3ae8ec
VS
22122013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2213
2214 Import libgcrypt 1.5.3.
2215
c12936c5
VS
22162013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2217
2218 * configure.ac: Don't add -Wcast-align on x86.
2219
cdc17f60
VS
22202013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2221
2222 * configure.ac: Add -freg-struct-return on all platforms that
2223 support it.
2224
b35ec299
VS
22252013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2226
2227 * acinclude.m4: Use -Werror on parameter tests.
2228 * configure.ac: Likewise.
2229
05f3a0d7
VS
22302013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2231
2232 * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
2233
c966a489
VS
22342013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2235
2236 * configure.ac: Check that -malign-loops works rather than assuming that
2237 either -falign-loops or -malign-loops work.
2238
bb0c57ec
VS
22392013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2240
2241 * configure.ac: Remove -fnested-functions. We don't need it anymore.
2242
24f4e57c
VS
22432013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2244
2245 * configure.ac: Prevent cflags leaking to subsequent tests by always
2246 resetting cflags to target_cflags in target tests.
2247
ac319fbc
VS
22482013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2249
2250 * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
2251 function.
2252
4bfe934c
VS
22532013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2254
2255 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
2256
40a5bfde
VS
22572013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2258
2259 * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
2260
a67c755e
VS
22612013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2262
2263 * grub-core/normal/cmdline.c (grub_cmdline_get):
2264 Remove nested functions.
2265
87a04a2d
VS
22662013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2267
2268 * tests/test_sha512sum.in: Make it work on emu.
2269
c03995d2
VS
22702013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2271
2272 * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
2273 functions.
2274 (grub_bidi_line_logical_to_visual): Likewise.
2275
ec0ebb3f
VS
22762013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2277
2278 Remove vestiges of -Wunsafe-loop-optimisations.
2279
2280 * conf/Makefile.common (CFLAGS_GNULIB): Remove
2281 -Wno-unsafe-loop-optimisations.
2282 * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
2283 pragma.
2284 * grub-core/io/gzio.c: Likewise.
2285 * grub-core/script/parser.y: Likewise.
2286 * grub-core/script/yylex.l: Likewise.
2287 * util/grub-mkfont.c: Likewise.
2288
6ab537e3
VS
22892013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2290
2291 * util/grub-mkfont.c (process_cursive): Remove nested function.
2292
e6c368d4
VS
22932013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2294
2295 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
2296 (grub_boot_time): Likewise.
2297
4f1cfd22
VS
22982013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2299
2300 * include/grub/symbol.h (FUNCTION): Use @function rather than
2301 "function".
2302 (VARIABLE): Likewise.
2303
6d5a4cee
VS
23042013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2305
2306 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
2307
f06c2172
VS
23082013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2309
2310 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
2311 (parse_dhcp_vendor): Likewise.
2312
7cb24eb5
VS
23132013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2314
2315 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
2316
f30c692c
VS
23172013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2318
2319 * grub-core/gettext/gettext.c (main_context), (secondary_context):
2320 Define after defining type and not before.
2321
8b66bb5d
VS
23222013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2323
2324 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
2325 type.
2326 (grub_gcm_decrypt): Likewise.
2327 (algo_decrypt): Likewise.
2328 (grub_zfs_decrypt_real): Transform error type.
2329
5d17fd0f
VS
23302013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2331
2332 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
2333
ac35a0f7
VS
23342013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2335
2336 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
2337 (grub_usbms_cbi_reset): Likewise.
2338 (grub_usbms_bo_reset): Likewise.
2339 (grub_usbms_reset): Likewise.
2340 (grub_usbms_attach): Likewise.
2341 (grub_usbms_transfer_cbi): Likewise.
2342
3ee08697
VS
23432013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2344
2345 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
2346 "checksum = checksum;".
2347
70bb6c85
VS
23482013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2349
2350 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
2351 entry_type.
2352
c7f34744
VS
23532013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2354
2355 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
2356 BIOS disk check.
2357
3f63b4d8
VS
23582013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2359
2360 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
2361 type.
2362 (grub_ehci_fini_hw): Likewise.
2363 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
2364
dac6ce73
VS
23652013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2366
2367 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
2368 return grub_usb_err_t for cosistency. All users updated.
2369
5701750c
VS
23702013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2371
2372 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
2373 assigning to itself.
2374
9e236169
GLD
23752013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
23762013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2377
2378 Issue separate DNS queries for ipv4 and ipv6
2379
2380 Adding multiple questions on a single DNS query is not supportted by
2381 most DNS servers. This patch issues two separate DNS queries
2382 sequentially for ipv4 and then for ipv6.
2383
2384 Fixes: https://savannah.gnu.org/bugs/?39710
2385
2386 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
2387 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
2388 * (grub_net_dns_lookup): Now using separated dns packages.
2389 * (grub_cmd_nslookup): Add error condition.
2390 * (grub_cmd_list_dns): Print DNS option.
2391 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
2392 --prefer-ipv4, and --prefer-ipv6.
2393 * include/grub/net.h (grub_dns_option_t): New enum.
2394 * (grub_net_network_level_address): option added.
2395
339eacce
VT
23962013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
2397
2398 * grub-core/video/fb/video_fb.c: Merge two blit functions
2399 into one.
2400
810f991b
VS
24012013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
2402
2403 * grub-core/term/terminfo.c: Add sequences for home and end.
2404
386571a2
VS
24052013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
2406
2407 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
2408 graphics console.
2409
3fe63754
VS
24102013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
2411
2412 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
2413 add mode 0x12.
2414
76681e71
VS
24152013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2416
2417 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
2418 e-mail by Per Öberg.
2419
46522fb7
VS
24202013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2421
2422 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
2423 name.
2424
e7d09ac4
AB
24252013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
2426
2427 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
2428 emu platforms.
2429 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
2430
67508925
VS
24312013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2432
2433 * docs/grub.texi: Document usage of menuentry id.
2434
0c62124e
VS
24352013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2436
2437 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
2438
9b5d4eed
PL
24392013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
2440
2441 * grub-core/commands/i386/nthibr.c: New command.
2442
79054c1d
VS
24432013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2444
2445 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
2446
44d47bbe
VS
24472013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2448
2449 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
2450 coordinate.
2451
323de05b
VS
24522013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2453
2454 Support GRUB_DISABLE_SUBMENU config.
2455
2456 Inspired by patch from Prarit Bhargava.
2457
5a01722e
VS
24582013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2459
2460 * docs/grub.texi: Mention RSA support.
2461
1106c3f0
VS
24622013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2463
2464 * grub-core/commands/verify.c: Add RSA support.
2465
a1dcc2cb
VS
24662013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2467
2468 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
2469 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
2470 device is known to be ATAPI.
2471
ee7fb780
MF
24722013-11-03 Mike Frysinger <vapier>
2473
2474 * configure.ac: Don't add target-prefix.
2475
5ade4a42
VS
24762013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2477
2478 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
2479 variables.
2480
6cd66043
VS
24812013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2482
2483 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
2484 if language is English.
2485
090d7c81
VS
24862013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2487
2488 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
2489
dd614590
VS
24902013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2491
2492 * configure.ac: Don't add -m32/-m64 on emu.
2493
a8686589 24942013-11-02 neil
2495
2496 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
2497 broken linux headers.
2498
fb9f12a0
VS
24992013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2500
2501 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
2502
e25f8e1f
VS
25032013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2504
2505 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
2506 Reed-Solomon recovery if more than half of redundancy info is 0.
2507
4685200f
VS
25082013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2509
2510 * util/grub-mount.c: Handle symlinks to directories.
2511
1397f0b5
VS
25122013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2513
2514 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
2515 find_file recursively for symlink.
2516
8b3e6eb6
VS
25172013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2518
2519 * tests/util/grub-shell.in: Copy themes.
2520
a0c9d5c6
VS
25212013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2522
2523 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
2524
5cf9459c
VS
25252013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2526
2527 * configure.ac: Use 0x8000 for address instead of 8000.
2528
e7b66a28
VS
25292013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2530
2531 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
2532 signature.
2533
203f53fb
VS
25342013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2535
2536 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
2537 variable.
2538
02663ee9
VS
25392013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2540
2541 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
2542
f169f65e
VS
25432013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2544
2545 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
2546 file_progress_read_hook.
2547 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
2548
2855a0fc
VS
25492013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2550
2551 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
2552 and double.
2553
bf0f3a8c
VS
25542013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
2555
2556 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
2557
cb72aa18
VS
25582013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
2559
2560 Rewrite blocklist functions in order to get progress when
2561 reading large extents and decrease amount of blocklist hook calls.
2562
896f9135
VS
25632013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
2564
2565 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
2566 of SI suffixes.
2567
89295a06
VS
25682013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
2569
2570 Support --base-clock for serial command to handle weird cards with
2571 non-standard base clock.
2572
eb03ede0
VS
25732013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
2574
2575 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
2576 strncpy.
2577 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
2578 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
2579 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
2580 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
2581 + strcpy rather than strncpy.
2582
8fbe5c7d
VS
25832013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
2584
2585 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
2586 (check_pool_label): Likewise. Fixes overflow.
2587 (nvlist_find_value): Fix comparison.
2588
e54b8f53
VS
25892013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
2590
2591 * include/grub/misc.h (grub_strcat): Removed. All users changed to
2592 more appropriate functions.
2593
fa9b3dca
VS
25942013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
2595
2596 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
2597 realloc.
2598
9a021c55
VS
25992013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
2600
2601 * util/grub-mkrescue.in: Do not use UUID search on EFI.
2602
80e8b13a
VS
26032013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
2604
2605 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
2606 on core size.
2607
b61599ac
VS
26082013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2609
2610 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
2611
a602dc54
VS
26122013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2613
2614 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
2615 (initialize_tables): reset tl and td to NULL after freeing.
2616
93c12075
VS
26172013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2618
2619 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
2620
1ca4b75e
VS
26212013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2622
2623 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
2624 of supported tags.
2625
329550c4
VS
26262013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2627
2628 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
2629
00bfa988
VS
26302013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2631
2632 * grub-core/loader/multiboot.c: Add support for multiboot kernels
2633 quirks.
2634
81afc5cc
VS
26352013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2636
2637 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
2638 a page in protected space.
2639
cb3c4a47
VS
26402013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2641
2642 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
2643 allocate space for zero-sized modules.
2644
954f7bf5
VS
26452013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2646
2647 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
2648
526d3d25
FL
26492013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
2650
2651 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
2652
74124c34
VS
26532013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2654
2655 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
2656 safeguards. Fixes a crash with i386/pc/console.c.
2657
5177391e
VS
26582013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2659
2660 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
2661 and grub_hostfs_init.
2662
64db14b0
VS
26632013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2664
2665 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
2666 windows method on other platforms without good stat as well.
2667
effe2036
VS
26682013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2669
2670 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
2671
82591fa6 26722013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
e11cb726 2673
82591fa6
VS
2674 Make / in btrfs refer to real root, not the default volume.
2675 Modify mkrelpath to work even if device is mounted with subvolid option.
2676
26772013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
2678
2679 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
e11cb726
AB
2680 extra_dist.
2681 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
2682 extra_dist.
2683
30fd7198
VS
26842013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
2685
2686 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
2687 fails.
2688
8d179dae
BC
26892013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
2690
2691 * docs/autoiso.cfg: New file.
2692
3bc9c8cf
VS
26932013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
2694
2695 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
2696 COND_GRUB_PE2ELF conditions.
2697
8b46b0ea
VS
26982013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
2699
2700 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
2701 "vnd", "rd" and "fd" disks.
2702
442b86de
VS
27032013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
2704
2705 Move grub_disk_write out of kernel into disk.mod.
2706
04dea7e6
VS
27072013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
2708
2709 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
2710 handling.
2711
27122013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
a8f15bce
VS
2713
2714 * grub-core/kern/misc.c (grub_abort): Make static
2715
04dea7e6 27162013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
a60dae7e
VS
2717
2718 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
2719 transform invalid unicode codepoints.
2720
04dea7e6 27212013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
891b713b
VS
2722
2723 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
2724 \0 checking.
2725
03dcac7f
VS
27262013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
2727
2728 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
2729
c81acb7f
VS
27302013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2731
2732 Consolidate cpuid code.
2733
c1bee646
VS
27342013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2735
2736 Move cpuid code to cpuid.h and TSC code to tsc.c.
2737
f37bf9c7
GS
27382013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
2739
2740 * util/grub.d/00_header.in: Don't use LANG if it's not set.
2741
4021132b
GS
27422013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
2743
2744 * util/grub-mkconfig.in: Replace $0 with $self.
2745 * util/grub-reboot.in: Likewise.
2746 * util/grub-set-default.in: Likewise.
2747
3ace8d75
BC
27482013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
2749
2750 * docs/osdetect.cfg: New file.
2751
1e6ad6a6
BC
27522013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
2753
2754 * tests/util/grub-shell.in: Add new --debug option.
2755
188929eb
BC
27562013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
2757
2758 * tests/test_unset.in: New test.
2759
7994a09a
BC
27602013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
2761
2762 * tests/test_sha512sum.in: New test.
2763
2a8a7585
VS
27642013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2765
2766 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
2767 * include/grub/misc.h: Remove strncat.
2768 * grub-core/lib/posix_wrap/string.h: Likewise.
2769
cf8d6bbd
VS
27702013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2771
2772 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
2773 Try to handle more than 0xFFFF packets.
2774 Reported by: Bernhard Übelacker <bernhardu>.
2775 He also spotted few overflows in first version of this patch.
2776
6d1fc99a
VS
27772013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2778
2779 * tests/date_unit_test.c: New test.
2780
10bafa1c
VS
27812013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2782
2783 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
2784 of first three years after start of validity of unixtime.
2785
b1c6d037
VS
27862013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2787
2788 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
2789 division as the one making more sense.
2790 (update_screen): Likewise.
2791 (complete): Likewise.
2792
5f4028d4
VS
27932013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2794
2795 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
2796
a2856736
VS
27972013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2798
2799 Make char and string width grub_size_t rather than grub_ssize_t.
2800
0a7e52b2
VS
28012013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2802
2803 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
2804 unsigned.
2805 (grub_history_replace): Likewise.
2806
42829573
VS
28072013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2808
2809 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
2810 appropriate.
2811
3523b8d8
VS
28122013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2813
2814 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
2815 appropriate.
2816
d43c6489
VS
28172013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2818
2819 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
2820 Use unsigned divisions rather than signed variants.
2821
f690f8b0
VS
28222013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2823
2824 * grub-core/video/readers/png.c (grub_png_convert_image): Use
2825 unsigned arithmetics.
2826 Add missing break.
2827
74ff2c05
VS
28282013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2829
2830 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
2831
fb56391e
VS
28322013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2833
2834 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
2835 rather than signed one.
2836 (recovery): Likewise.
2837
40f29060
VS
28382013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2839
2840 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
2841
c64577a5
VS
28422013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2843
2844 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
2845 than signed.
2846
c16535a8
JM
28472013-10-25 Jon McCune <jonmccune@google.com>
2848
2849 * docs/grub.texi: Cleanup security documentation around signatures.
2850
6673d8e7
VS
28512013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2852
2853 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
2854
a105d375
VS
28552013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2856
2857 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
2858 than int.
2859
af81ed88
VS
28602013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2861
2862 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
2863 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
2864 functions when compiling for kernel.
2865
ea899a57
VS
28662013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2867
2868 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
2869 unsigned long long when using %llu.
2870
c6dc6fa1
VS
28712013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2872
2873 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
2874 terminal after updating progress.
2875
ad2dc003
VS
28762013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2877
2878 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
2879 argument. We don't disable Gate A20 in this code.
2880
b46684ae
VS
28812013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2882
2883 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
2884 Conceptually based on change in branch "vbe-on-coreboot".
2885
f70d5c07
RM
28862013-10-24 Robert Millan <rmh@gnu.org>
2887
2888 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
2889 numeric constants with their symbolic equivalent.
2890 Taken from branch "vbe-on-coreboot".
2891
bca274b4
VS
28922013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
2893
2894 * docs/grub.texi: Fix ordering and use pxref rather than xref.
2895
238f0489
VS
28962013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
2897
2898 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
2899 divmod64 for offset division.
2900
863c590b
PFS
29012013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2902
2903 Rename .bzrignore to .gitignore. Add "*.o" rule.
2904
2905 * .bzrignore: Renamed to...
2906 * .gitignore: ...this.
2907
84a0e969
PFS
29082013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2909
2910 Add new progress module that displays the load progress of files.
2911
2912 * grub-core/lib/progress.c: New file.
2913 * grub-core/Makefile.core.def (progress): New module.
2914 * grub-core/kern/file.c (grub_file_open): File name added.
2915 * (grub_file_read): Progress hook added.
2916 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
2917 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
2918 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
2919 * include/grub/file.h (struct grub_file): Add progress module members.
2920 * include/grub/term.h (struct grub_term_output): Likewise.
2921 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
2922 Terminal velocity added.
2923 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
2924 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
2925 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
2926 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
2927 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
2928 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
2929 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
2930 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
2931 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
2932 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
2933 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
2934 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
2935
0d711431
VS
29362013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
2937
2938 Verify signatures of signatures unless --skip-sig is specified.
2939
f8401f76
VS
29402013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
2941
2942 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
2943 \0 checking.
2944
2945 Saves 70 bytes on compressed image.
2946
ac1feb61
VS
29472013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
2948
2949 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
2950 check.
2951
2952 Saves 10 bytes on compressed image.
2953
00f72e89
VS
29542013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
2955
2956 * grub-core/kern/misc.c (grub_isprint): Move to ...
2957 * include/grub/misc.h (grub_isprint): ... here. Make inline.
2958
2959 Saves 20 bytes on compressed image due to remving exporting.
2960
067e6ae7
VS
29612013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
2962
2963 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
2964
2965 Saves 5 bytes on compressed image.
2966
64a6c791
VS
29672013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
2968
2969 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
2970 function get_utf8.
2971
2972 Saves 379 bytes on compressed image.
2973
979d9f52
VS
29742013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
2975
2976 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
2977
1437da54
VS
29782013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
2979
2980 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
2981
2982 Saves 40 bytes on compressed image.
2983
d9ee2269
VS
29842013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
2985
2986 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
2987 mask rather than 64-bit type.
2988
2989 Saves 20 bytes on compressed image.
2990
63efa602
VS
29912013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
2992
2993 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
2994 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
2995
47601ffe
VS
2996 Saves 273 bytes on compressed image.
2997
2cc679ad
VS
29982013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
2999
3000 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
3001 variable length arrays.
3002
3003 Saves 50 bytes on compressed image.
3004
2e4659b8
VS
30052013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3006
3007 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
3008
2a40badf
VS
30092013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3010
3011 * grub-core/fs/ufs.c: Remove variable length arrays.
3012
1ba6b9b9
VS
30132013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3014
3015 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
3016
f3e39341
VS
30172013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3018
3019 * grub-core/fs/zfs.c: Remove variable length arrays.
3020 Reduces zfs.mod by 160 bytes (208 compressed).
3021
71523935
VS
30222013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3023
3024 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
3025
28153eb8
VS
30262013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3027
3028 * grub-core/net/arp.c: Remove variable length arrays.
3029 * grub-core/net/bootp.c: Likewise.
3030 * grub-core/net/dns.c: Likewise.
3031 * grub-core/net/icmp6.c: Likewise.
3032 * grub-core/net/net.c: Likewise.
3033
88ce4cd7
VS
30342013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3035
3036 * grub-core/fs/ntfs.c: Remove variable length arrays.
3037 Increases ntfs.mod by 64 bytes (but decreases by 3 when
3038 compressed).
3039
66123940
VS
30402013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3041
3042 * grub-core/fs/hfs.c: Remove variable length arrays.
3043 Reduces hfs.mod by 8 bytes (52 compressed).
3044
0927e5bd
VS
30452013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3046
3047 * grub-core/fs/udf.c: Remove variable length arrays.
88ce4cd7 3048 Increases udf.mod by 128 bytes (but decreases by 13 when
0927e5bd
VS
3049 compressed).
3050
9c12ac97
VS
30512013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3052
3053 * grub-core/fs/iso9660.c: Remove variable length arrays.
88ce4cd7 3054 Increases iso9660.mod by 200 bytes (but decreases by 79 when
9c12ac97
VS
3055 compressed).
3056
97ec2d71
VS
30572013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3058
3059 * grub-core/fs/nilfs2.c: Remove variable length arrays.
88ce4cd7 3060 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
97ec2d71
VS
3061 compressed).
3062
156e4ea0
VS
30632013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3064
3065 * grub-core/fs/xfs.c: Remove variable length arrays.
3066 Reduces xfs.mod by 40 bytes (43 compressed).
3067
3b502c29
VS
30682013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3069
3070 * grub-core/fs/fshelp.c: Remove variable length arrays.
3071 Reduces fshelp.mod by 116 bytes (23 compressed).
3072
c7037f1d
VS
30732013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3074
3075 * grub-core/normal/completion.c: Remove variable length arrays.
3076 * grub-core/normal/menu_entry.c: Likewise.
3077
3078 Reduces normal.mod by 496 bytes.
3079
a07e6ad0
VS
30802013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3081
3082 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
3083 by 356 bytes (158 compressed).
3084
2359bf88
VS
30852013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3086
3087 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
3088 by 364 bytes (169 compressed).
3089
d28e1163
VS
30902013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3091
3092 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
3093 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
3094 * include/grub/types.h (grub_unaligned_uint64_t): New type.
3095
e89c2d48
VS
30962013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3097
3098 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
3099 bitmasks to small structures of size chosen to fit in registers.
3100
7abdac8e
VS
31012013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3102
3103 * conf/Makefile.common: Use -freg-struct-return on i386. This
3104 decreases code size and improves performance.
3105
518864c0
VS
31062013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3107
3108 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
3109
bbd2b539
VS
31102013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3111
3112 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
3113 "(null)" string.
3114 Simplify expressions to save around 256 bytes in kernel.img.
3115 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
3116
99519c15
VS
31172013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3118
3119 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
3120 Use GRUB_UTIL_FD_O_* rather than O_*.
3121
20285765
VS
31222013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3123
3124 Add haiku-specific functions.
3125
887c0bb6
VS
31262013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3127
3128 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
3129
cd78a56f
VS
31302013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3131
3132 Move stat () and device mode checking into OS-dependent files as
3133 long as performance doesn't suffer.
3134
a4012f07
VS
31352013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3136
3137 Split make_system_path_relative_to_its_root into separate file
3138 relpath.c from getroot.c as it's common between unix and haiku
3139 but otherwise haiku doesn't use any functions from unix getroot.c.
3140
31de274d
VS
31412013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3142
3143 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
3144 New function.
3145 (grub_util_is_special_file): Likewise.
3146
40346de6
VS
31472013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3148
3149 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
3150 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
3151
d3923ab9
VS
31522013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3153
3154 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
3155 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
3156
663f6eb1
VS
31572013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3158
3159 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
3160 (load_image): Likewise.
3161
44d1c20a
VS
31622013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3163
3164 * util/grub-render-label.c: Move backend part to ...
3165 * util/render-label.c: ... here.
3166
d0a116ee
VS
31672013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3168
3169 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
3170 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
3171
b47fcae6
VS
31722013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3173
3174 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
3175
0f7c00c1
VS
31762013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3177
3178 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
3179 CD-ROM in case when it's declared as having subpartitions.
3180
29013cba
VS
31812013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3182
3183 Don't add -lm on haiku.
3184
3185 * configure.ac: Define BUILD_LIBM to -lm on most platforms
3186 and empty on haiku.
3187 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
3188 -lm.
3189
e8559d24
VS
31902013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3191
3192 * configure.ac: Use -melf_*_haiku as target on haiku.
3193
8104063c
VS
31942013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3195
3196 * Makefile.util.def: Add util/setup.c to extra_dist.
3197
fc3182c7
VS
31982013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3199
3200 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
3201 unknown types through.
3202
f90a3cc0
VS
32032013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3204
3205 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
3206 (grub_util_check_char_device): Likewise.
3207 * include/grub/emu/getroot.h: Likewise.
3208
1e3e7419
VS
32092013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3210
3211 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
3212 memset rather than inline static function.
3213
92c88fc8
VS
32142013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3215
3216 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
3217 not doing embedded decompressor.
3218
3cd910a2
VS
32192013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3220
3221 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
3222 shadowing.
3223 * grub-core/kern/disk.c: Likewise.
3224 * grub-core/kern/misc.c: Likewise.
3225 * include/grub/parser.h: Likewise.
3226 * include/grub/script_sh.h: Likewise.
3227 * include/grub/zfs/zfs.h: Likewise.
3228
7b3aca00
VS
32292013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3230
3231 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
3232
97dfe7e4
VS
32332013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3234
3235 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
3236 defined before trying to use it.
3237
bf919aa9
VS
32382013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3239
3240 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
3241 warning.
3242
f4ccf29d
VS
32432013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3244
3245 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
3246 Use __unused__ rather than __used__ on gcc < 3.2.
3247
0d3a6f85
VS
32482013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3249
3250 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
3251 gcc < 4.0.
3252 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
3253
757e3eb7
VS
32542013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3255
3256 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
3257
fb320faf
VS
32582013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3259
3260 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
3261 * include/grub/emu/misc.h: Likewise.
3262
ea73acd2
VS
32632013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3264
3265 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
3266 cur_color.
3267
71237a6f
VT
32682013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
3269
3270 * grub-core/tests/checksums.h: Regenerated due to progress bar
3271 get_minimal_size changes.
3272
3d46c22f
BC
32732013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
3274
3275 Added `tr' command support.
3276
3277 * grub-core/commands/tr.c: New file.
3278 * grub-core/Makefile.core.def: Build rules for new module.
3279
3280 * tests/grub_cmd_tr.in: New test.
3281 * Makefile.util.def: Build rules for new test.
3282
47e0a61f
VT
32832013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
3284
3285 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
3286
946fd073
VT
32872013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
3288
3289 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
3290 * docs/gurb.texi: Likewise.
3291
9c13c576
VT
32922013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
3293
3294 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
3295 Pixmap highlighted section with east and west slices was displayed
3296 incorrectly due to negative width of the central slice.
3297
ad543f12
VT
32982013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
3299
3300 * docs/grub.texi: Graphical options information update.
3301 Removed outdated. Updated current. Inserted missed.
3302
6176a0cd
VS
33032013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3304
3305 * docs/grub.texi: Mention few new platform-specific commands.
3306
9688cae2
VS
33072013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3308
3309 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
3310 currently used so this doesn't really have any effect.
3311 Reported by: Douglas Ray <dougray>
3312
f7b69a3f
VS
33132013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3314
3315 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
3316 compilation but prevents gcc from displaying messages in non-Latin
3317 alphabets.
3318 * conf/Makefile.common: Likewise.
3319
ceca6ddf
HY
33202013-10-16 Hiroyuki YAMAMORI
3321
3322 Handle Japanese special keys.
3323 Reported by: Hiroyuki YAMAMORI.
3324 Codes supplied by: Hiroyuki YAMAMORI.
3325
ac48d334
VT
33262013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
3327
3328 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
3329
b2b71bff
VT
33302013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
3331
3332 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
3333 * docs/grub.texi: Likewise.
3334
669fc449
VS
33352013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3336
3337 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
3338 value in case of incomplete read.
3339 (grub_util_fd_write): Likewise.
3340
59381678
VS
33412013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3342
3343 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
3344
bacfefbb
VS
33452013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3346
3347 * util/grub-editenv.c (create_envblk_file): More from here ...
3348 * util/editenv.c (grub_util_create_envblk_file): ... to here.
3349
f7c49570
VS
33502013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3351
3352 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
3353 canonicalize file name before doing the rest.
3354
7b83ca44
VS
33552013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3356
3357 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
3358 mingw32.
3359
df1e64c9
VS
33602013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3361
3362 Define grub_util_is_directory/regular/special_file and
3363 use OS-dependent versions rather than to rely on stat().
3364
ec16e026
VS
33652013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3366
3367 * util/grub-mkimage.c: Move backend part to ...
3368 * util/mkimage.c: ... here.
3369
4b4eeb3c
VS
33702013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3371
3372 Allow compilation with mingw64 albeit with warnings due to lack of
3373 %llx/%llu.
3374
3375 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
3376 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
3377 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
3378 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
3379 on mingw64.
3380 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
3381
f4e0adc0
VS
33822013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3383
3384 Remove leftover references to some of the system headers.
3385
e0127364
VS
33862013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3387
3388 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
3389 read.
3390
20d53541
VS
33912013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3392
3393 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
3394 of strerror.
3395
5a869940
VS
33962013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3397
3398 Split out blocklist retrieving from setup.c to
3399 grub-core/osdep/blocklist.c and add windows implementation since
3400 generic version doesn't work on NTFS on Windows due to aggressive
3401 unflushable cache.
3402
c06c7520
VS
34032013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3404
3405 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
3406 files.
3407
8f53bb3f
VS
34082013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3409
3410 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
3411 Cut tailing newline. Remove arbitrary limitation. Always use
3412 grub_util_tchar_to_utf8.
3413
148f1007
VS
34142013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3415
3416 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
3417 * tests/printf_unit_test.c (printf_test): Add %% tests.
3418 Reported by: Paulo Flabiano Smorigo.
3419
af3b06be
VS
34202013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3421
3422 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
3423 implement fsync.
3424
27f9d02e
VS
34252013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3426
3427 * configure.ac: Check for nvlist_lookup_string in nvpair since we
3428 use nvlist_lookup_string and don't use nvlist_print.
3429
f6a81f0a
VS
34302013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3431
3432 Add wrappers around rename, unlink, mkdir, opendir, readdir and
3433 closedir to handle filename charset translation.
3434
d7750b32
VS
34352013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3436
3437 * include/grub/emu/hostdisk.h: Move file operations to
3438 * include/grub/emu/hostfile.h: ... here.
3439
2859196e
VS
34402013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3441
3442 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
3443 unicode path.
3444
c018c968
VS
34452013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3446
3447 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
3448
7e45abce
VS
34492013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3450
3451 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
3452 and remove export.h.
3453
23934da2
VS
34542013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3455
3456 * grub-core/kern/emu/error.c: Removed.
3457 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
3458 explicitly as it's already in libgnu.a.
3459
c11ebcc8
VS
34602013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3461
3462 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
3463 config-util.h include.
3464
70671037
VS
34652013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3466
3467 Split emunet into platform-dependent and GRUB-binding parts. Keep
3468 platform-dependent part in kernel for easy access to OS functions.
3469
25ac643a
VS
34702013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3471
3472 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
3473 open/read/write.
3474
69ca5876
VS
34752013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3476
3477 * grub-core/osdep/windows/emuconsole.c: New file.
3478
d9d68ef0
AB
34792013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
3480
3481 * conf/Makefile.extra-dist: Add osdep/*/init.c
3482
58e211cc
VS
34832013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3484
3485 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
3486
588744d0
VS
34872013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3488
3489 * util/grub-probe.c (probe): Separate different drives in hint-str
3490 by spaces and not newlines.
3491 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
3492
44016e52
AB
34932013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
3494
3495 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
3496 Handle CD-ROMs.
3497
6de9ee86
VS
34982013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3499
3500 Pass-through unknown E820 types. It required reorganisation of mmap
3501 module.
3502
f8f3f155
AB
35032013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
3504
3505 * Makefile.util.def: Add osdep/init.c to grub-mount files.
3506
b73249d2
VS
35072013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3508
3509 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
3510 fseeko.
3511
dac86b18 35122013-10-14 qwertial <qwertial>
3513
3514 * grub-core/gdb_grub.in: Fix overflow and wrong field.
3515
17614b84
JM
35162013-10-14 Jon McCune <jonmccune@google.com>
3517
3518 * docs/grub.texi: Document new signatures possibility.
3519
6de292cb
VS
35202013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3521
3522 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
3523
84379b61
VS
35242013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3525
3526 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
3527 missing prototype.
3528 (grub_util_tchar_to_utf8): Likewise.
3529
21d85db1
VS
35302013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3531
3532 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
3533 * grub-core/kern/emu/main.c: Add missing include.
3534 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
3535 Don't call grub_util_init_nls.
3536 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
3537 Likewise.
3538
66a1b3ee
VS
35392013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
3540
3541 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
3542 stat.
3543
e19bec17
VS
35442013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
3545
3546 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
3547
ee8c1b29
VS
35482013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
3549
3550 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
3551
bb338aaf
VS
35522013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
3553
3554 Add a wrapper for fopen. On unix-like systems just pass-through. On
3555 windows use unicode version.
3556
ae5540d3
VS
35572013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
3558
3559 Move set_program_name and init_nls to host_init. On windows
3560 fix in this fuction console and argument charset as well.
3561
4cd3c4fe
AB
35622013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
3563
3564 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
3565 GRUB_ENABLE_CRYPTODISK.
3566
3567 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
3568 GRUB_ENABLE_CRYPTODISK.
3569 * util/grub-mkconfig_lib.in: Likewise.
3570
78170f3e
CCZ
35712013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
3572
3573 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
3574
3414b6c0
MC
35752013-10-12 Melki Christian <Christian.melki@saabgroup.com>
3576
3577 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
3578 error when enabling debug.
3579
6d0740e8
IB
35802013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
3581
3582 * configure.ac: Use -melf_*_obsd on openbsd.
3583
ff2d4dc4
VS
35842013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
3585
3586 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
3587
eac6ae82
VS
35882013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
3589
3590 * include/grub/misc.h: Use gnu_printf rather than printf as format
3591 template since our functions are independent of libc.
3592
ba9baabe
VS
35932013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
3594
3595 * util/grub-setup.c (setup): Move copying of partition table as
3596 futher up as possible to avoid possible overwrite by floppy routines.
3597
35982013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
60d4f0bb
VS
3599
3600 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
3601
145e2369
VT
36022013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
3603
3604 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
3605 * docs/grub.texi: Likewise.
3606
3530bc9d
VS
36072013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
3608
3609 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
3610 it's mostly unused. Move vestiges to the callers.
3611
fb9f59c3
VS
36122013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
3613
3614 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
3615 version of salt and hash. Use grub_snprintf rather than snprintf.
3616
9be1c255
VS
36172013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
3618
3619 * docs/grub.texi: Fix problem with braces.
3620
ed8c0887
VS
36212013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
3622
3623 * conf/Makefile.extra-dist: Fix extra-dist list.
3624 * grub-core/Makefile.core.def: Likewise.
3625
f72ab14e
VS
36262013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
3627
3628 * docs/grub.texi: Document disk names used on Windows and AROS.
3629
2fe53a22
VS
36302013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
3631
3632 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
3633 with AROS devs.
3634 * grub-core/osdep/aros/hostdisk.c: Likewise.
3635
71c1d67a
VS
36362013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
3637
3638 Avoid including hostfile.h when not necessarry as it pulls
3639 in OS-specific headers which may redefine generic names
3640 like "far".
3641
ad297ec7
VT
36422013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
3643
3644 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
3645 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
3646 scrollbar_bottom_pad
3647 * docs/grub.texi: Likewise.
3648
6e9e5dc9
VT
36492013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
3650
3651 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
3652
761c718b
VS
36532013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
3654
3655 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
3656
37149a2f
VS
36572013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
3658
3659 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
3660 Removed.
3661 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
3662 Made static.
3663
3837a151
VS
36642013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
3665
3666 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
3667 leftover.
3668
caca1c70
VS
36692013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
3670
3671 Move OS-specific driver configuration to grub_util_fd_open. This
3672 moves OS-dependent parts from kern/emu/hostdisk.c to
3673 grub-core/osdep/*/hostdisk.c.
3674
f7676b70
VS
36752013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
3676
3677 * util/grub-mkimage.c (generate_image): Use size_t instead of
3678 grub_size_t.
3679 * util/grub-mkimagexx.c (locate_sections): Likewise.
3680 (load_image): Likewise.
3681
22f98db2
VS
36822013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
3683
3684 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
3685 size_t.
3686 (grub_util_write_image): Likewise.
3687
b102ce69
VS
36882013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3689
3690 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
3691 get random when no RNG is available.
3692 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
3693
acbbe5cb
VS
36942013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3695
3696 * include/grub/util/lvm.h: Removed.
3697
2112fb3f
VS
36982013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3699
3700 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
3701 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
3702
79f78fbf
VS
37032013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3704
3705 * grub-core/osdep/windows/sleep.c: Add missing config.h.
3706
c2e6f705
VS
37072013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3708
3709 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
3710
aabe433a
VS
37112013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3712
3713 * grub-core/net/drivers/emu/emunet.c: Move to ..
3714 * grub-core/osdep/linux/emunet.c: ..here.
3715
9a2c903f
VS
37162013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3717
3718 * util/ieee1275/ofpath.c: Move to ...
3719 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
3720 * grub-core/osdep/basic/ofpath.c: ..here.
3721
4a445f58
VS
37222013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3723
3724 Move password-querying (util-version) routines to grub-core/osdep.
3725
c1ca4244
VS
37262013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3727
3728 Move sleep routines to grub-core/osdep.
3729
672fa55e
VS
37302013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3731
3732 Move OS-dependent files to grub-core/osdep and document it.
3733
a5b0365a
VS
37342013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3735
3736 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
3737 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
3738
29072e99
VS
37392013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3740
3741 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
3742
f8772ea7
VS
37432013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3744
3745 * util/misc.c: Remove leftover inclusion of malloc.h.
3746
a1a315e7
VS
37472013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3748
3749 * include/grub/setjmp.h: Remove leftover GRUBOF.
3750
cef86fef
VS
37512013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3752
3753 * util/raid.c: Fold into ...
3754 * util/getroot_linux.c: ... here. Make all functions static.
3755
c4cf25ee
VS
37562013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3757
3758 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
3759 macros to GRUB ones.
3760
53a5f5c2
VT
37612013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3762
3763 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
3764 occasional bug. If there are too many boot entries or too low
3765 scrollbar height then we need to use another formula to calculate
3766 the position and size of the scrollbar thumb.
3767
de300af2
VS
37682013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3769
c4cf25ee 3770 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
de300af2 3771
c5827364
VT
37722013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3773
3774 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
3775 * docs/grub.texi: Likewise.
3776
dd2ed8b0
VT
37772013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3778
3779 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
3780 viewport.
3781
7286c384
VT
37822013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3783
ffdfc1f3
VT
3784 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
3785 minimal width calculations.
7286c384 3786
ea547e14
VS
37872013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
3788
3789 * docs/grub.texi: Update note on colors on emu console.
3790
b726be76
VS
37912013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
3792
3793 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
3794 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
3795 it's FS and not GRUB limitation.
3796
a5f6ade6
VS
37972013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
3798
3799 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
3800
3b0f3aa2
VS
38012013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
3802
3803 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
3804
1db38304
ST
38052013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
3806
3807 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
3808 kernels by version order.
3809
fb295fc0
VS
38102013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
3811
3812 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
3813
47345010
VS
38142013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
3815
3816 Add AROS hostdisk and getroot routines.
3817
bf25f879
VS
38182013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
3819
3820 Make cryptodisk and diskfilter probe data retrievable programmatically
3821 and not just printable.
3822
24ca4512
VS
38232013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
3824
3825 Split random retrieving code into separate files.
3826
c7c177f0
VS
38272013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
3828
3829 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
3830 R_ARM_V4BX.
3831
d71b45ae
VS
38322013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
3833
3834 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
3835 condition.
3836 * grub-core/tests/fake_input.c: Likewise.
3837 * grub-core/tests/cmdline_cat_test.c: Likewise.
3838
e44b9a83
VS
38392013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
3840
3841 * grub-core/video/capture.c: Do not do finalization when .fini
3842 is called as there is explicit capture_end.
3843
4fa60739
VS
38442013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
3845
3846 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
3847 changing windows to avoid crash.
3848
17c8bc37
VS
38492013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
3850
3851 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
3852
9d4d7977
VS
38532013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
3854
3855 * po/exclude.pot: Add several strings to exclude.
3856
0caa407c
VS
38572013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
3858
3859 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
3860
9ae393da
VS
38612013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
3862
3863 * autogen.sh: Add ./util/grub-gen-widthspec.c and
3864 ./util/grub-gen-asciih.c to exclude list.
3865
498d5033
VS
38662013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
3867
3868 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
3869 and don't mark error strings for translation.
3870
7d93298f
VS
38712013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
3872
3873 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
3874 properly in case of missing block size.
3875
b2cae20c
VS
38762013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
3877
3878 * grub-core/lib/arm/setjmp.S: Add missing license section.
3879
3896d6b4
VS
38802013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
3881
3882 * po/swiss.sed: Add replacement for key names and for term computer.
3883
ebc1da55
VT
38842013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
3885
3886 * grub-core/gfxmenu/theme_loader.c: New global options for the
3887 theme background image handling. desktop-image-scale-method,
3888 desktop-image-h-align, desktop-image-v-align.
3889 * grub-core/gfxmenu/view.c: Likewise.
3890 * include/gfxmenu_view.h: Likewise.
3891 * include/bitmap_scale.h: Proportional scale functions introduced.
3892 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
3893 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
3894 cases of unexpected input variables for scale functions.
3895 * docs/grub.texi: Updated documentation for new options.
3896
c5739143
VS
38972013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
3898
3899 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
3900
be74aeb3
VT
39012013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
3902
3903 * grub-core/tests/checksums.h: Corrected due to changes in
3904 bilinear interpolation function.
3905
d999ac72
VT
39062013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
3907
3908 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
3909 to eliminate artefacts in bilinear interpolation.
3910
2b131610
VS
39112013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
3912
3913 * grub-core/video/readers/tga.c: Support paletted tga.
3914
de6e5ff8
VS
39152013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
3916
3917 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
3918 incorrect cbcr setting when in color mode.
3919
fa31ee9c
VS
39202013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
3921
3922 * grub-core/video/readers/png.c: Support paletted images and clean up
3923 greyscale support.
3924
e84f8188
VS
39252013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
3926
3927 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
3928 usage of wrong table which resulted in mishandling of 4-byte
3929 sequences.
3930
39312013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
2237daf2
VS
3932
3933 * grub-core/term/terminfo.c: Add Home and End key sequences.
3934
d72bff09
VS
39352013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
3936
3937 * grub-core/video/readers/png.c (grub_png_decode_image_header):
3938 Fix formula for computing total number of bytes.
3939
29648c5d
VS
39402013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
3941
3942 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
3943 image processing, fix big-endian and support grayscale.
3944
4a876492
VS
39452013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
3946
3947 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
3948 Correctly will with maximum transparency when using index color.
3949
3ccf16df
VS
39502013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
3951
3952 * grub-core/video/readers/png.c: Support grayscale
3953
39542013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
e9c492a0
VS
3955
3956 * grub-core/video/readers/jpeg.c: Support grayscale.
3957
3ccf16df 39582013-09-26 Jon McCune <jonmccune@google.com>
0340bdbc
JM
3959
3960 * grub-core/commands/loadenv.c: Support skipping signature check
3961 and variable names filtering.
3962
30b7f58f
VS
39632013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
3964
3965 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
3966 * grub-core/kern/emu/hostfs.c: Likewise.
3967 * util/getroot_unix.c: Likewise.
3968
bab7b1eb
VS
39692013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
3970
3971 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
3972 Migrate all explicit defines to this new one.
3973
43b1c99d
VS
39742013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
3975
3976 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
3977 grub_util_fd_strerror when using grub_util_fd_*.
3978 (grub_util_fd_open_device): Likewise.
3979 (grub_util_biosdisk_read): Likewise.
3980 (grub_util_biosdisk_write): Likewise.
3981 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
3982 (grub_util_fd_strerror): Likewise.
3983 (grub_util_fd_sync): Likewise.
3984 (grub_util_fd_close): Likewise.
3985 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
3986 (grub_util_fd_close): Likewise.
3987 (grub_util_fd_strerror): Likewise.
3988 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
3989 function proto rather than macro.
3990 (grub_util_fd_sync): Likewise.
3991 (grub_util_fd_open): Likewise.
3992 (grub_util_fd_strerror): New proto.
3993
e8fd80bc
VS
39942013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
3995
3996 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
3997 platforms on which it doesn't work.
3998
bf645fda
VS
39992013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
4000
4001 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
4002 stat immediately to where it's used.
4003
5177ba14
VS
40042013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
4005
4006 * util/getroot.c (grub_util_check_block_device): Move to ...
4007 * util/getroot_unix.c (grub_util_check_block_device): ... here.
4008 * util/getroot.c (grub_util_check_char_device): Move to ...
4009 * util/getroot_unix.c (grub_util_check_char_device): ... here.
4010
9db826e1
VS
40112013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
4012
4013 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
4014 disk closing logic.
4015
49120085
AB
40162013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
4017
4018 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
4019
b3328b68
AB
40202013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
4021
4022 * docs/grub.texi (File name syntax): Document ZFS filenames
4023 (/volume@snapshot/...).
4024
3fff48ab
VS
40252013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4026
4027 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
4028 Always return full path. Fixes a problem with mkrelpath.
4029
39cfdaa9
PFS
40302013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4031
4032 * util/grub-install.in: Add GPT PReP support.
4033 * util/grub-probe.c (probe): Support GPT partition type.
4034 (main): Support -t gpt_parttype.
4035
7c680e1f 40362013-09-23 Aleš Nesrsta <starous@volny.cz>
4037
4038 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
4039
890bdabe
MM
40402013-09-23 Massimo Maggi <me@massimo-maggi.eu>
4041
4042 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
4043
9c262ff9
TH
40442013-09-23 Tim Hardeck <thardeck>
4045
4046 * util/grub.d/10_hurd.in: Filter out character for the class.
4047 * util/grub.d/10_kfreebsd.in: Likewise.
4048 * util/grub.d/10_linux.in: Likewise.
4049 * util/grub.d/20_linux_xen.in: Likewise.
4050
d755342a
MC
40512013-09-23 Melki Christian <Christian.melki@saabgroup.com>
4052
4053 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
4054 "changed".
4055
68b77707
JT
40562013-09-23 Josh Triplett <josh@joshtriplett.org>
4057
4058 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
4059 boot partition.
4060
efa68bfa
VS
40612013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4062
4063 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
4064 doesn't use posix_wrap. Keep literal -fno-builtin however.
4065
d9104204
VS
40662013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4067
4068 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
4069
c248781a 40702013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
40712013-09-23 neil
4072
5830df88 4073 * configure.ac: Do not enable -Wmissing-noreturn as its
4074 usefulness is limited and creates problems on some OS notably with
4075 code generated by bison.
4076
40772013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
40782013-09-23 neil
4079
4080 * configure.ac: Do not explicitly enable -Waddress as it's not
c248781a 4081 supported by all gcc and when it is, it's already enabled by -Wall.
4082
621bed69
VS
40832013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4084
4085 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
4086 desactivated use of EDID at all.
4087
71764dc8 40882013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
40892013-09-23 neil
4090
4091 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
4092 video if no text is available.
4093
affce7d4 40942013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1bd73025
VS
40952013-09-23 neil
4096
4097 * configure.ac: Substitute TARGET_RANLIB.
4098
40992013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
41002013-09-23 neil
affce7d4
VS
4101
4102 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
4103
4104 Based on patches from AROS.
4105
0e8daad0 41062013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1bd73025 41072013-09-23 neil
0e8daad0
VS
4108
4109 * grub-core/Makefile.am: Override STRIP and RANLIB.
4110 * configure.ac: compute TARGET_RANLIB.
4111 * INSTALL: Document TARGET_RANLIB
4112
4113 Based on patches from AROS.
4114
3f7d9c82
VS
41152013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4116
4117 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
4118 that floppies are unpartitioned.
4119
bca8873a
VS
41202013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4121
4122 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
4123 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
4124
41252013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4126
4127 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
4128 less nice but more portable.
4129 * grub-core/lib/posix_wrap/wchar.h: Likewise.
4130
a47a78be
VS
41312013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4132
4133 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
4134 for cheat_fd.
4135 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
4136 functions.
4137 (grub_cryptodisk_cheat_insert): Likewise.
4138 (grub_cryptodisk_close): Likewise.
4139
e85a5d5c
VS
41402013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4141
4142 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
4143 Use windows path for DEFAULT_DIRECTORY.
4144
dad9fa6b
VS
41452013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4146
4147 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
4148 difference was likely just gcc version, not anything mingw-related.
4149
7e518ca8
VS
41502013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4151
4152 Use Winapi on both cygwin and mingw32 to share more code between both.
4153
d68d0157
AB
41542013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
4155
4156 * util/grub-install.in: Add --grub-editenv option.
4157 * util/grub-install_header (grub_compress_file): Explicitly check for
4158 plain file to avoid cp error.
4159
775b284d
AB
41602013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
4161
4162 * docs/grub.texi (Device syntax): Document new LVM UUID based device
4163 names; fix LVM driver name (lvm, not lv).
4164 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
4165 names.
4166
3ff4063d
VS
41672013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
4168
4169 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
4170 files rather than one file with loads of #if's.
4171 * util/getroot.c: Likewise.
4172
287faafe
VS
41732013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
4174
4175 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
4176
d1983764
VS
41772013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
4178
4179 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
4180 GNU/Hurd to the list of checked PRNG.
4181
15ce95c4
VS
41822013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
4183
4184 * configure.ac: On FreeBSD use -melf_*_fbsd format.
4185
207862dd 41862013-09-21 Ales Nesrsta <starous@volny.cz>
4187
7c680e1f 4188 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
207862dd 4189
63653cfd
VS
41902013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4191
4192 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
4193 * grub-core/disk/lvm.c: Add LVM UUIDs.
4194 * util/getroot.c: Use LVM UUIDs whenever possible.
4195
f5d3e7ef
AB
41962013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
4197
4198 * docs/grub.texi (Networking commands): Add documentation for
4199 network related commands.
4200
53c6b7d6
VS
42012013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
4202
4203 * util/getroot.c (grub_util_open_dm): Check major rather than the name
4204 to determine if device is handled by devmapper.
4205 (convert_system_partition_to_system_disk): Likewise.
4206 (get_dm_uuid): Don't check explicitly if device is mapped, it's
4207 already done in grub_util_open_dm.
4208
e70d6736
LL
42092013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
4210
4211 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
4212 Clean up stack manipulation (sync_caches_armv*)
4213
90379808
VS
42142013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
4215
4216 * util/lvm.c: Remove since unused. Remove remaining references.
4217
386701a8
VS
42182013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
4219
4220 Handle the case of partitioned LVM properly.
4221
4222 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
4223 Stop on meeting LVM, mpath or DMRAID.
4224 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
4225 (read_device_map): Likewise.
4226 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
4227 device is full disk rather than erroring out on LVM and similar cases.
4228
53070787
VS
42292013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
4230
4231 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
4232
1bc783bd
VS
42332013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
4234
4235 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
4236 4K before the end.
4237 Reported by: Leif Lindholm
4238
436ad5c3
PW
42392013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
42402013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
4241
4242 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
4243 codes.
4244
607319c9
CW
42452013-09-18 Colin Watson <cjwatson@ubuntu.com>
4246
4247 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
4248 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
4249
d404d154
DR
42502013-09-18 Douglas Ray <dougray@cpan.org>
4251
4252 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
4253 as secure.
4254
28851ef6
AN
42552013-09-18 Aleš Nesrsta <starous@volny.cz>
4256
4257 * docs/grub.texi: Fix broken link.
4258
897c3bc6
MC
42592013-09-18 Melki Christian <Christian.melki@saabgroup.com>
4260
4261 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
4262 to break endless loop.
4263
f1630459
VS
42642013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
4265
4266 * util/grub-fstest.c: Fix several printf formats.
4267 * util/grub-mkimage.c: Likewise.
4268 * util/grub-mkimagexx.c: Likewise.
4269 * util/grub-script-check.c: Likewise.
4270
64463dfd
VS
42712013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
4272
4273 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
4274 error.
4275
48972495
VS
42762013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
4277
4278 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
4279
5dd5e64b
VS
42802013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
4281
4282 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
4283 removed in current versions cygwin_conv_*.
4284
1c1f31e5
VS
42852013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
4286
4287 * configure.ac: Disable efiemu runtime on cygwin.
4288
c546a259
VS
42892013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
4290
4291 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
4292 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
4293
81690478
VS
42942013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4295
4296 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
4297 error message.
4298
6b87c10a
VS
42992013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4300
4301 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
4302 windows variant.
4303 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
4304 data.
4305
8f0baaac
VS
43062013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4307
4308 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
4309 when on x86 and not cygwin.
4310 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
4311 -Wl,-melf_x86_64.
4312
b224c266
VS
43132013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4314
4315 * configure.ac: Set CPP to build one when checkoing for freetype for
4316 build.
4317
506b336b
VS
43182013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4319
4320 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
4321 [!GRUB_BUILD]: Remove has_argument.
4322
8c8c87b7
VS
43232013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4324
4325 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
4326 Replace with a dummy.
4327
7dc5ca13
VS
43282013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4329
4330 * configure.ac: Don't change host_os from mingw to cygwin.
4331
c3302aa5
VS
43322013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4333
4334 * configure.ac: Change target_os from windows to cygwin.
4335
7b780018
VS
43362013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4337
4338 Handle grub-pe2elf and grub-mkfont for cases when build != host.
4339
4340 * Makefile.am (build-grub-mkfont): Don't include gnulib.
4341 (build-grub-gen-asciih): Likewise.
4342 (build-grub-gen-widthspec): Likewise.
4343 * Makefile.util.def (grub-pe2elf): Remove.
4344 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
4345 * configure.ac: Separate tests for build.
4346 Move ./build-grub-pe2elf to grub-core.
4347 Fix typo.
4348 * grub-core/Makefile.am (build-grub-pe2elf): New target.
4349 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
4350 defined.
4351 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
4352 constants.
4353 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
4354 * util/grub-pe2elf.c: Simplify not to rely on getopt.
4355 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
4356
984cfd8a
VS
43572013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4358
4359 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
4360 mingw32 as well based on grub_util_get_disk_size.
4361 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
4362 grub_util_get_fd_size.
4363 (sync): Removed.
4364 (fsync): Moved to ...
4365 * grub-core/kern/emu/misc.c (fsync): ... here.
4366
f82d79c9
VS
43672013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4368
4369 * include/grub/mm.h (grub_extend_alloc): Remove.
4370 * grub-core/loader/i386/pc/plan9.c: Use own version of
4371 grub_extend_alloc with appropriate types.
4372
fd7dd66d
VS
43732013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4374
4375 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
4376
43ffba7c
VS
43772013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4378
4379 * util/getroot.c: Include sys/wait.h only when we need waitpid.
4380
3c7eac44
VS
43812013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4382
4383 Fix dependencies on cygwin.
4384
4385 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
4386 dependencies when used and defined.
4387 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
4388
bdb5ba47
VS
43892013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4390
4391 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
4392 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
4393
ed7fbf43
VS
43942013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4395
4396 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
4397 implementation available to cause compile-time rather than runtime
4398 error.
4399
fc46e9fc
VS
44002013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4401
4402 * util/grub-fstest.c: Don't check for symlinks on windows.
4403
7f68269a
VS
44042013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4405
4406 * INSTALL: Mention unavailability of man pages when cross-compiling.
4407
8ed358e0
VS
44082013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4409
4410 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
4411 and gcry_log_bug.
4412 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
4413
fc97214f
VS
44142013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4415
4416 * INSTALL: Document cross-compilation.
4417 * acinclude.m4: Determine whether nm support -P and --defined-only.
4418 * configure.ac: Add TARGET_ to all variables pertaining to target
4419 that don't have it yet.
4420 * gentpl.py: Likewise.
4421 * grub-core/Makefile.am: Likewise.
4422 * grub-core/genmod.sh.in: Likewise.
4423 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
4424 as well.
4425
ca1fb563
IB
44262013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
4427
4428 * configure.ac: Remove -Wempty-body. It's not essential and needs
4429 recent gcc.
4430
0031b229
IB
44312013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
4432
4433 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
4434 * util/getroot.c: Likewise.
4435
54ea2f44
VS
44362013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4437
4438 * grub-core/disk/ahci.c: Add needed explicit cast.
4439 * grub-core/lib/backtrace.c: Likewise.
4440 * grub-core/net/ip.c: Likewise.
4441 * grub-core/net/tcp.c: Likewise.
4442 * grub-core/net/udp.c: Likewise.
4443
3c601f8c
VS
44442013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4445
4446 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
4447
1d679dda
VS
44482013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4449
4450 * util/import_gcry.py: Add final newline in visibility.h.
4451
00c28dd9
VS
44522013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4453
4454 * conf/Makefile.common: Fix typo.
4455
32af299a
VS
44562013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4457
4458 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
4459
e733cf52
VS
44602013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4461
4462 * Makefile.am (widthspec.h): Fix typo.
4463 * util/grub-gen-widthspec.c: Likewise.
4464
c6b066f2
VS
44652013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4466
4467 Move ascii.h and widthspec.h generation to a separate build-time-only
4468 tool.
4469
ad1fe3f9 44702013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
4471
4472 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
4473 Always fill bootdisk info and improve check for NetBSD disklabel.
4474
92a52dd4
VS
44752013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
4476
4477 * conf/Makefile.extra-dist: Add util/bin2h.c.
4478 Reported by: floppym.
4479
b2e9d276
VS
44802013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
4481
4482 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
4483
7b966834
VS
44842013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
4485
4486 * configure.ac: Disable unifont and starfield if no freetype was found.
4487
d5c1eef1
VS
44882013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
4489
4490 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
4491 on NetBSD and OpenBSD.
4492
66345b50 44932013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
03dafa17
VT
4494
4495 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
4496
66345b50 44972013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
224a55bb
VT
4498
4499 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
4500 reduced. Inheritant options are processed during the theme loading.
4501
66345b50 45022013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
58ec39c6
VT
4503
4504 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
4505
369508b3
AS
45062013-08-14 Avik Sil <aviksil@in.ibm.com>
4507
4508 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
4509
45102013-08-14 Avik Sil <aviksil@in.ibm.com>
412ce916
AS
4511
4512 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
4513 using qemu.
4514
6f27a3f6
PFS
45152013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4516
4517 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
4518 remove-potcdate.sed.
4519
c6ed362a
AB
45202013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
4521
4522 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
4523 unused attribute from pull argument.
4524
5e7d9464
AB
45252013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
4526
4527 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
4528 memory leak.
4529
dea55e2a
AB
45302013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
4531
4532 * util/getroot.c (pull_lvm_by_command): add --separator option
4533 to vgs call to disable padding of output to 10 characters.
4534
f0b94ded
VS
45352013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
4536
4537 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
4538 here ...
4539 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
4540 here.
4541
b828fb5d
VS
45422013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
4543
4544 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
4545 length.
4546
7c9d0c39
VS
45472013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
4548
4549 Fix handling of build-time grub-bin2h and grub-mkfont when doing
4550 full Canadian cross. Tested with build=x86_64, host=arm,
4551 target=ppc-ieee1275.
4552
816719c8
VS
45532013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
4554
4555 * configure.ac: Error if no $BUILD_CC could be found.
4556 Reported by: DevHC.
4557
2af2353b
VS
45582013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
4559
4560 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
4561 i386-multiboot.
4562
797abd0a
VS
45632013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
4564
4565 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
4566 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
4567
36e87d25
CW
45682013-08-13 Colin Watson <cjwatson@ubuntu.com>
4569
4570 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
4571 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
4572 falling back to the partition device, otherwise a later call to this
4573 function may fail spuriously.
4574 Reported by Axel Beckert. Fixes Debian bug #708614.
4575
273349fe
GS
45762013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
4577
4578 * autogen.sh: Replace find -not by the POSIX-compliant find !.
4579
418f86c6
GS
45802013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
4581
4582 Prevent shadowing of stdlib's devname(3) on BSD.
4583
4584 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
4585 and devlast to diskname and disklast, respectively.
4586
c137aea0
CW
45872013-08-11 Colin Watson <cjwatson@ubuntu.com>
4588
4589 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
4590
272dc8df 45912013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
b4743461
VT
4592
4593 * docs/grub.texi: Introduce terminal window position options:
4594 terminal-left: terminal window's left position
4595 terminal-top: terminal window's top position
4596 terminal-width: terminal window's width
4597 terminal-height: terminal window's height
4598 terminal-border: terminal window's border width
4599 * grub-core/gfxmenu/theme-loader.c: Likewise.
4600 * include/grub/gfxmenu_view.h: Likewise.
4601 * po/exlude.pot: Likewise.
4602 * grub-core/gfxmenu/view.c: Likewise.
4603 Also updated minimal window size.
4604 Also terminal_sanity_check function has been introduced.
272dc8df
VT
4605 * grub-core/tests/checksums.h: Update (terminal window height
4606 is adjusted now for low resolution screen)
b4743461 4607
748a4533
VS
46082013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
4609
4610 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
4611 position).
4612
fca5f944
VS
46132013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
4614
4615 * po/exclude.pot: Add few recent exceptions.
4616
4f47d809
VS
46172013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
4618
4619 * tests/grub_func_test.in: Add unicode.pf2.
4620
a62ae90c
VS
46212013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
4622
4623 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
4624 standard rather than noral color, in line with other terminals.
4625
4ed41392
VS
46262013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
4627
4628 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
4629 analysis.
4630
3719fbc5
VS
46312013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
4632
4633 * grub-core/loader/arm/linux.c: Change printf to dprintf.
4634
459b1d91
VS
46352013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
4636
4637 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
4638 inappropriate printf.
4639
f4e1ab9d
AB
46402013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
4641
4642 * .bzrignore: Remove grub-core/lib/dtc-grub,
4643 grub-core/Makefile.libfdt.def
4644 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
4645
fa471bfa
VS
46462013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
4647
4648 * include/grub/video.h (grub_video_register): Keep double-linked as
4649 well as single-linked invariants.
4650 Reported by: qwertial.
4651
d65be02b
VS
46522013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
4653
4654 * grub-core/commands/nativedisk.c (get_uuid): Handle
4655 GRUB_DISK_DEVICE_UBOOTDISK_ID.
4656
ba8bc620
VT
46572013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
4658
4659 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
4660 maximum of NW, N, NE heights instead of N's height and maximum of
4661 NW, W, SW widths instead of W's width. (So the box will be always
4662 correctly drawn)
4663
4f0ad029
GS
46642013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
4665
4666 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
4667 Fix misuse of variable count.
4668
43d53b72
LL
46692013-07-18 Leif Lindholm <leif.lindholm@arm.com>
46702013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
46712013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
5bac5d9a 4672
43d53b72
LL
4673 New ports to arm-uboot and arm-efi.
4674 Mostly by Leif Lindholm with some additions from
4675 Francesco Lavra and cleanup by Vladimir Serbinenko.
141430a2 4676
88f8d146
VS
46772013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
4678
4679 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
4680 and not before.
4681 Reported by: Leon Drugi.
4682
3f42504c
VS
46832013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
4684
4685 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
4686 Reported by: Paulo Flabiano Smorigo.
4687
d110499b
VT
46882013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
4689
4690 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
4691
a8674ad3
VT
46922013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
4693
4694 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
4695
286fe4b3
VS
46962013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
4697
4698 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
4699
1bd57aa3
VS
47002013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
4701
4702 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
4703
7a87d69f
AB
47042013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
4705
4706 * grub-core/net/bootp.c: Export net_* variables.
4707 * grub-core/net/net.c: Likewise.
4708
b2182299
VS
47092013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
4710
4711 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
4712
795b3dc0
VS
47132013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
4714
4715 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
4716
68714c43
VS
47172013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
4718
4719 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
4720
af211bab
VS
47212013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
4722
4723 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
4724
0036f02d
MM
47252013-07-14 Massimo Maggi <me@massimo-maggi.eu>
4726
4727 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
4728 <= 0.
4729
6d0ddff3
MM
47302013-07-14 Massimo Maggi <me@massimo-maggi.eu>
4731
4732 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
4733 functions.
4734
038016f4
MM
47352013-07-14 Massimo Maggi <me@massimo-maggi.eu>
4736
4737 * grub-core/fs/zfs/zfs_lz4.c: New file.
4738 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
4739
776bdce2
MM
47402013-07-14 Massimo Maggi <me@massimo-maggi.eu>
4741
4742 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
4743
c71dbd40
MM
47442013-07-14 Massimo Maggi <me@massimo-maggi.eu>
4745
4746 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
4747 (check_pool_label): Likewise.
4748 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
4749
47502013-07-14 Massimo Maggi <me@massimo-maggi.eu>
53618046
MM
4751
4752 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
4753
8e67b50f
AB
47542013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
4755
4756 * docs/grub.texi (Commands): Document postition parameters
4757 for menuentry command.
4758
f5ae3717
AB
47592013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
4760
4761 * util/grub-mknetdir.in: Remove stray line from help output.
4762
9c28da2a
VS
47632013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
4764
4765 Remove early sm712 init as there is no reason for it (the "watchdog"
4766 effect was due to wrong GPIO map).
4767
139072b8
VS
47682013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
4769
4770 * grub-core/commands/pcidump.c: Remove static variables.
4771
c6a61bda
VS
47722013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
4773
4774 * grub-core/commands/sleep.c: Refresh screen before sleeping.
4775
51369614
VS
47762013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
4777
4778 * configure.ac: Move delimiter after the infos.
4779
efa8640a
VS
47802013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
4781
4782 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
4783
6f80a7b2
VS
47842013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
4785
4786 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
4787 not filling whole 8x16 space.
4788
a2371e19
VS
47892013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
4790
4791 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
4792
64fce2d8
VS
47932013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
4794
4795 * configure.ac: Indicate which liblzma is used if any.
4796
eb272d84
PW
47972013-06-21 Paul Wise <pabs3@bonedaddy.net>
47982013-06-21 Craig Sanders <savannah@taz.net.au>
4799
4800 * util/grub-reboot.in: Document submenu usage.
4801
a9e5abee
CW
48022013-06-25 Colin Watson <cjwatson@ubuntu.com>
4803
4804 * .bzrignore: Update with a number of new test-related files.
4805
e639c204
CW
48062013-06-25 Colin Watson <cjwatson@ubuntu.com>
4807
4808 * util/grub-script-check.c: Fail on scripts containing no
4809 commands, to guard against corrupted grub-mkconfig setups that
4810 produce no useful output.
4811 * tests/grub_script_no_commands.in: New test.
4812 * Makefile.util.def (grub_script_no_commands): Add.
4813 Reported by Hans Putter. Fixes Debian bug #713886.
4814
a4c89b17
AB
48152013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
4816
4817 * grub-core/disk/diskfilter.c: Forgot to remove comment
4818 from previous commit.
4819
5b06b53c
AB
48202013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
4821
4822 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
4823 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
4824
702da5c9
AB
48252013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
4826
4827 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
4828
aa62a5b7
AB
48292013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
4830
4831 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
4832 rescan diskfilter devices until nothing new is found.
4833
4aa237c8
VS
48342013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
4835
4836 Fix casts when compiling coreboot-specific code for 64-bit EFI.
4837
93d8479b
VS
48382013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
4839
4840 Don't try to detect cbfs on *-emu.
4841
837222cc
VS
48422013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
4843
4844 * grub-core/term/gfxterm.c: USe right background color when scrolling.
4845
99c971af
VS
48462013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
4847
4848 Add support for processed coreboot payload chainloading.
4849
e6930a45
VS
48502013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
4851
4852 Enable coreboot information commands even when not loaded as
4853 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
4854
5027af38
VS
48552013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
4856
4857 Support for cbfs. Also factor out the part which is common
4858 for all archives to a separate module. This splits tar from cpio
4859 as they are very different but keeps cpio, cpio_be, odc and newc
4860 together since they're very similar.
4861
a5b55c4b
DM
48622013-06-15 David Michael <fedora.dm0@gmail.com>
4863
4864 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
4865 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
4866
0301a8b3
VS
48672013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
4868
4869 * tests/grub_script_eval.in: Really add the eval test.
4870
3d84cb17
VS
48712013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
4872
4873 Move flavour-specific parts out of common cpio.c file and
4874 rename remaining to cpio_common.c
4875
593e430c
AB
48762013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
4877
4878 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
4879 off new function grub_script_execute_new_scope. Change callers to use
4880 either of them as appropriate.
4881 * grub-core/commands/eval.c: New command eval.
4882 * docs/grub.texi (Commands): Document it.
4883
63c29849
AB
48842013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
4885
4886 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
4887 to fetch values when listing.
4888
cc284112
AB
48892013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
4890
4891 Fix make dist on non-pc.
4892
48932013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
b8578da6
FL
4894
4895 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
4896 without a device name.
4897
69544d1e
VS
48982013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4899
4900 Remove enable_executable_check as it's not needed anymore.
4901 Reported by: dougray.
4902
96dbe648
VS
49032013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4904
4905 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
4906 ambigouos RAID before discovering RAIDs on top of it.
4907 Reported by: bodom.
4908
ccfc0bdb
VS
49092013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4910
4911 Fix typo (failback vs fallback).
4912
f2587088
AB
49132013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
4914
4915 * util/grub.d/30_os-prober.in: Add support for probing EFI
4916 System Partition (as of os-prober 1.58).
4917
cec5cf0c
VS
49182013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
4919
4920 * configure.ac: Add yet another path to unifont. For parabola.
4921
e40b4596
JT
49222013-05-30 Josh Triplett <josh@joshtriplett.org>
4923
4924 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
4925 handling to copy the killed characters to the kill buffer as
4926 UCS4 stored as grub_uint32_t rather than as 8-bit characters
4927 stored as char. Eliminates UCS4 truncation and corruption
4928 observed when killing characters with Ctrl-u and yanking them
4929 back with Ctrl-y.
4930
fc4c4fdd
VS
49312013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
4932
4933 Detach optional parts of gfxterm and integrate in with coreboot init.
4934
6570b205
VS
49352013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
4936
4937 Move blit and fill dispatcher to appropriate files to decrease export
4938 and relocation overhead.
4939
b8323067
VS
49402013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
4941
4942 * grub-core/font/font.c, include/grub/font.h: Inline simple font
4943 functions.
4944
3cc1878f
VS
49452013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
4946
4947 * grub-core/Makefile.am: Fix compilation problem with some
4948 automake versions.
4949
4b80e43c
VS
49502013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
4951
4952 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
4953
57e0c20c
VS
49542013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
4955
4956 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
4957 automake versions.
4958
4fd42c53
VS
49592013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
4960
4961 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
4962 SSDT.
4963
1e908b34
RS
49642013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
4965
4966 * grub-core/partmap/dfly.c: New partition map.
4967
1359e474
VS
49682013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
4969
4970 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
4971 checking.
4972 Reported by: Francesco Lavra.
4973
17806392
AB
49742013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
4975
4976 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
4977 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
4978 false conditions.
4979 * conf/Makefile.common: define dist_grubconf_DATA
4980
cdce14fa
VS
49812013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4982
4983 Progressively skip menu elements on small terminals rather
4984 than crashing.
4985
c8d6cc3c
VS
49862013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4987
4988 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
4989 to avoid losing last column.
4990
a73b31ce
VS
49912013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4992
4993 * po/exclude.pot: Add missing string "%C".
4994
1202c764
VS
49952013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4996
4997 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
4998 after the test.
4999
50268344
VS
50002013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
5001
5002 * util/grub-install.in: Gettextize "Not found" message.
5003
62b15edf
VS
50042013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
5005
5006 Fix distfiles list.
5007 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
5008
50092013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
a9c0b699
PFS
5010
5011 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
5012 present.
5013 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
5014
709ad61b
VS
50152013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
5016
5017 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
5018
d128901a
VS
50192013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
5020
5021 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
5022 attribute since structure is not necessarily aligned.
5023
34b22f5c
AB
50242013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
5025
5026 * docs/grub.texi (Device syntax): Clarify description of network
5027 drives.
5028
0f7e980b
VS
50292013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5030
5031 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
5032 for vasprintf presence.
5033
30b03dc2
VS
50342013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5035
5036 * util/grub-install.in: Handle efibootmgr presence check.
5037 Reported by: Leif Lindholm.
5038
0dc11c08
VS
50392013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5040
5041 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
5042 new strings to translate.
5043
f8024c3f
VS
50442013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5045
5046 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
5047 yet another string (pun intended) to translate.
5048
b4c1da62
VS
50492013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5050
5051 * po/POTFILES-shell.in: Autogenerate it.
5052
0ef7478b
VS
50532013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5054
5055 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
5056
8200fa15
VS
50572013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5058
5059 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
5060 misnomer.
5061
091945b2
AB
50622013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
5063
5064 * docs/grub.texi (Network): Add description of net_default_interface,
5065 net_default_ip and net_default_mac. Rewrite variables description
5066 to emphasize that they are per-interface.
5067
0e7b2e32
VS
50682013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
5069
5070 New test: cmdline and cat.
5071
16f7c8f6
VS
50722013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
5073
5074 * grub-core/commands/cat.c: Show UTF-8 characters.
5075
3e912fda
VS
50762013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
5077
5078 * conf/Makefile.common: Poison float and double on non-emu.
5079
ee0220bc
VS
50802013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
5081
5082 * configure.ac: Don't disable extended registers on emu.
5083
89e0240c
VS
50842013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5085
5086 * configure.ac: Don't use extended registers on x86_64.
5087 Reported by: Peter Jones.
5088
e56d9637
VS
50892013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5090
5091 * grub-core/term/efi/console.c: Fix compile error.
5092
8098f655
VS
50932013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5094
5095 Compressed HFS+ support.
5096
16940e07
VS
50972013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5098
5099 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
5100 pixel".
5101
c5dbc13d
VS
51022013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5103
5104 Menu color test.
5105
011f8ae8
VS
51062013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5107
5108 * grub-core/tests/setjmp_test.c: New test.
5109
2aa072d7
VS
51102013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5111
5112 New variables 'net_default_*' to determine MAC/IP of default interface.
5113
43fe02cb
VS
51142013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5115
5116 * tests/gettext_strings_test.in: A test to check for strings not
5117 marked for translation.
5118
bed06142
VS
51192013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5120
5121 * autogen.sh: Exclude unused libgcrypt files from translation.
5122
fb2666b5
VS
51232013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5124
5125 Simplify few strings.
5126
d22840ec
VS
51272013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5128
5129 Mark few forgotten strings for translation.
5130
e34092fd
VS
51312013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5132
5133 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
5134 rather than printf.
5135
47cf82b4
VS
51362013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5137
5138 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
5139 rather than printf.
5140 * grub-core/video/readers/tga.c: Likewise.
5141
1eed0e6e
VS
51422013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5143
5144 * tests/priority_queue_unit_test.cc: New test.
5145
c5b7697b
VS
51462013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5147
5148 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
5149 than printf.
5150
5945c2f8
AB
51512013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
5152
5153 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
5154 variable for one time boot menu entry.
5155
fa292343
B
51562013-05-05 Bean <bean123ch@gmail.com>
5157
5158 * grub-core/commands/testspeed.c: New command testspeed.
5159
310d4214
VS
51602013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5161
5162 Factor-out human-size printing.
5163
85002bf3
VS
51642013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5165
5166 Agglomerate more mallocs to speed-up gfxterm.
5167
22b06e96
VS
51682013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5169
5170 Speed-up gfxterm by slightly agglomerating mallocs.
5171
b7c036bc
VS
51722013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5173
5174 More video checks.
5175
92323d1f
VS
51762013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5177
5178 Speed-up gfxterm by saving intermediate results in index+alpha
5179 format.
5180
0fb356a3
VS
51812013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5182
5183 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
5184 test.
5185
44dea3f9
VS
51862013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5187
5188 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
5189 line of timeout as it may contain the rest of long line.
5190
14af86e4
VS
51912013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5192
5193 * grub-core/normal/main.c: Fix freed memory dereference.
5194
03f7c8c3
VS
51952013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5196
5197 Fix several memory leaks.
5198
c686014c
VS
51992013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5200
5201 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
5202
0788a695
VS
52032013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5204
5205 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
5206
daf01d61
VS
52072013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5208
5209 Fix test -a and -o precedence.
5210 Reported by: adrian15.
5211
82ae74d7
VS
52122013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5213
5214 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
5215
8cec7bd4
AB
52162013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
5217
5218 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
5219 and add it as source to functional_test module.
5220
aa73d688
VS
52212013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5222
5223 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
5224
c104b6f9
VS
52252013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5226
5227 New series of tests for gfxterm and gfxmenu.
5228
7391c4d5
VS
52292013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5230
5231 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
5232 the theme path relative to $prefix/themes.
5233
cff50118
VS
52342013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5235
5236 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
5237 Fix order bug.
5238 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
5239
7c332bdc
VS
52402013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5241
5242 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
5243 descriptor.
5244
a4f9a5ff
VS
52452013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5246
5247 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
5248 grub_gfxmenu_timeout_notifications.
5249 (grub_gfxmenu_view_destroy): Likewise.
5250
b5a2114d
VS
52512013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5252
5253 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
5254
a8905e8a
VS
52552013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5256
5257 Several fixes to ieee1275 and big-endian video.
5258
813c1622
VS
52592013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5260
5261 Add missing exports on mips.
5262
3f3e7326
VS
52632013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5264
5265 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
5266 if no unifont is found.
5267 Restore original keyboard.
5268
095accd1
VS
52692013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5270
5271 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
5272 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
5273
50361660
VS
52742013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5275
5276 First automated video test (running videotest and comparing results)
5277
cd0f6eec
VS
52782013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5279
5280 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
5281 instead of 2 to have full RGB/CMY test pattern.
5282
3f9634e5
VS
52832013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
5284
5285 Add few more tests.
5286
583e5b64
VS
52872013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
5288
5289 * include/grub/arc/arc.h: Account for missing "other" peripheral on
5290 ARCS. All users updated.
5291
aa7bcb99
VS
52922013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
5293
5294 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
5295
95ef1a54
VS
52962013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
5297
5298 * grub-core/partmap/amiga.c: Fix size of checksummed block.
5299
46546fc5
VS
53002013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5301
5302 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
5303 Reported by: qwertial.
5304
3476e0ef
VT
53052013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
5306
5307 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
5308 with syntax "XXX deg"/"XXX °".
5309
96f33fed
VS
53102013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5311
5312 Make PCI init in i386-qemu port more robust.
5313
53142013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
dc5a311a
VT
5315
5316 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
5317 cached view is reused.
5318 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
5319 open boot menus.
5320
c53b4e67
VS
53212013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5322
5323 Unify more code in grub-install_header.
5324
f7457fb2
VS
53252013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5326
5327 Add few new tests.
5328
e2f27a8c
VS
53292013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5330
5331 Enforce disabling of firmware disk drivers when native drivers kick in.
5332
ef9d8cd5
VS
53332013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5334
5335 * grub-core/commands/nativedisk.c: Customize the list of modules on
5336 platform. Don't try to search for disks already using native drivers.
5337
f7bf6c31
VS
53382013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5339
5340 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
5341 platforms.
5342
bdc4add8
VS
53432013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5344
5345 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
5346 handling of variables containing backslash.
5347
e9e46c9a
VS
53482013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5349
5350 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
5351 dereference.
5352 Reported by: qwertial.
5353
0e90dee8
VS
53542013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5355
5356 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
5357
e0aacf24
VS
53582013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5359
5360 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
5361 dereference.
5362 Reported by: qwertial.
5363
3c0003c3
VS
53642013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5365
5366 * docs/grub.texi: Add a comment about usefullness of nativedisk.
5367
adb7d667
VS
53682013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5369
5370 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
5371
7cd0df84
VS
53722013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5373
5374 New command `nativedisk'.
5375
02adbb93
VS
53762013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5377
5378 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
5379 * grub-core/loader/i386/bsd.c: Likewise.
5380
9fb0fd4f
VS
53812013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5382
5383 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
5384
bd69257a
VS
53852013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5386
5387 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
5388 grub_get_unaligned16 rather than shifts.
5389
178c2764
VS
53902013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5391
5392 * grub-core/kern/file.c: Use const char * rather than casting to
5393 non-const.
5394
eadfad24
VS
53952013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5396
5397 * grub-core/commands/probe.c: Add missing grub_device_close.
5398
9f73ebd4
VS
53992013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5400
5401 * INSTALL: Document linguas.sh.
5402
965fa829
VS
54032013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5404
5405 Remove POTFILES.in and regenerate it in autogen.sh.
5406
d417ddc4
VS
54072013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5408
5409 Move --directory/--override-directorry to grub-install_header and unify.
5410
f97ec546
VS
54112013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5412
5413 * grub-core/term/morse.c: Macroify dih and dah.
5414
b2d7470c
PFS
54152013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5416
5417 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
5418
141e2a78
VS
54192013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
5420
5421 * grub-core/term/ns8250.c: Systematically probe ports by writing
5422 to SR before using them.
5423
1dd70ebd
PFS
54242013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5425
5426 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
5427 disks.
5428 (check_sas): Get sas_adress info.
5429
c796a107
VS
54302013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
5431
5432 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
5433 ports.
5434
43168646
LD
54352013-04-27 Leon Drugi <eyak>
5436
5437 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
5438 BSS clearing.
5439
e7b8fd08
VS
54402013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
5441
5442 Core compression test.
5443
17f9fd29
VS
54442013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
5445
5446 Implement grub_machine_get_bootlocation for ARC.
5447
dc2a6c8b
VS
54482013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
5449
5450 Improve AHCI detection and command issuing.
5451
f25a2ba6
VS
54522013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5453
5454 Fix pseries test.
5455
a6393224
VS
54562013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5457
5458 Make 'make check' work on emu.
5459
db99fbe8
VS
54602013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5461
5462 Replace libcurses with our own vt100 handling for the ease of testing
5463 and decreasing prerequisites.
5464
b24ca7cd
VS
54652013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5466
5467 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
5468
63314aa4
VS
54692013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5470
5471 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
5472 compile when not needed.
5473
c1b00fff
VS
54742013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5475
5476 * tests/pseries_test.in: New test.
5477
f93e89ef
VS
54782013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5479
5480 Add test to check that different boot mediums work.
5481
c4b456d3
VS
54822013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5483
5484 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
5485 ofw limited ISO support.
5486
5fe67f39
VS
54872013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5488
5489 * configure.ac: Fix loongson conditional.
5490
7f63a64f
VS
54912013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5492
5493 Enable mipsel-arc.
5494
b04b5990
VS
54952013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5496
5497 Add serial on ARC platform.
5498
88d2f302
VS
54992013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5500
5501 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
5502 commit.
5503
86eb23bc
VS
55042013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5505
5506 * tests/partmap_test.in: Add missing double semicolon.
5507
eec3bb75
VS
55082013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5509
5510 * util/grub-mkrescue.in: Fix loongson filename.
5511
e0810df3
VS
55122013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5513
5514 * util/grub-mkrescue.in: Move all files that don't have a location
5515 set in stone under /boot/grub. Use ISO hard links rather than copies
5516 to save some space.
5517
65a6b30b
VS
55182013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5519
5520 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
5521 bogus SLOF values.
5522
6aff0107
VS
55232013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5524
5525 Make check work on mips-arc.
5526
5e013e56
VS
55272013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5528
5529 * util/grub-mkrescue.in: Alias sashARCS as sash.
5530
d1989e2e
VS
55312013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5532
5533 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
5534 it's serial.
5535
1a25e72c
VS
55362013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5537
5538 * util/grub-install.in: Fix target fo qemu_mips.
5539 Fix extension on EFI.
5540
a59a9826
VS
55412013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5542
5543 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
5544 in front of chosen entry to mark it even if highlighting is lost.
5545
1a40f80c
VS
55462013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5547
5548 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
5549 gfxpayload=keep if cbfb is active.
5550
e343549c
VS
55512013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5552
5553 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
5554
45fbd9a2
VS
55552013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5556
5557 Add missing video ids to coreboot and ieee1275 video.
5558
ab1440bd
VS
55592013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5560
5561 * util/grub-mkrescue.in: Add mips-arc support.
5562
cdeb8324
VS
55632013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5564
5565 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
5566
8528c879
VS
55672013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5568
5569 Move mips-arc link address. Previous link address was chosen
5570 in belief that RAM on SGI platforms grows down while in fact it
5571 grows up from an unusual base.
5572
17fca573
VS
55732013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
5574
5575 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
5576 Fix a type which prevented CD-ROM and floppy boot.
5577
d178788e
VS
55782013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
5579
5580 Support coreboot framebuffer.
5581
5582 * grub-core/video/i386/coreboot/cbfb.c: New file.
5583
fe4c3e7e
VS
55842013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
5585
5586 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
5587 detecting too small regions.
5588
ec2dd179
VS
55892013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
5590
5591 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
5592
872dac83
VS
55932013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
5594
5595 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
5596 Remove dprintf.
5597 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
5598
90ec4b7f
VS
55992013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
5600
5601 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
5602 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
5603 * grub-core/loader/powerpc/ieee1275/linux.c
5604 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
5605
f32555dd
VS
56062013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
5607
5608 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
5609 Look for /boot-rom as well as /rom/boot-rom.
5610
38649799
VS
56112013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
5612
5613 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
5614 handling when creating text_layer failed.
5615 * grub-core/video/video.c (grub_video_create_render_target):
5616 Set result to 0 on error.
5617 (grub_video_delete_render_target): Do not dereference NULL.
5618
aeace7f7
VS
56192013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
5620
5621 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
5622 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
5623 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
5624 (grub_linux_load64): Mask out 2 high bits.
5625
4eafa175
AB
56262013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
5627
5628 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
5629 more place.
5630
daaa64bd
VS
56312013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
5632
5633 Add support for pseries and other bootinfo machines to grub-mkrescue.
5634
5635 Tested by: Paulo Flabiano Smorigo.
5636
d0d2daa6
VS
56372013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
5638
5639 * util/grub-mkrescue.in: Add GPT for EFI boot.
5640
b193e100
VS
56412013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
5642
5643 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
5644 It improves performance in qemu.
5645
a0f8f3ac
VS
56462013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
5647
5648 * build-aux/snippet: Add missing gnulib files.
5649
284df0e2
AB
56502013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
5651
5652 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
5653
740201f3
AB
56542013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
5655
5656 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
5657
a7e03923
PJ
56582013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
56592013-04-15 Peter Jones <pjones@redhat.com>
5660
5661 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
5662 sectors.
5663 Based on patch by Peter Jones.
5664
25fc51a8
VS
56652013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5666
5667 Fix DMRAID partition handling.
5668
88017d47
VS
56692013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5670
5671 * tests/grub_cmd_date.in: Skip on sparc64.
5672
fa7d914e
VS
56732013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5674
5675 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
5676 firmware error messages.
5677
cbe57a48
VS
56782013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5679
5680 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
5681 source and destination differ.
5682
21aecce0
VS
56832013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5684
5685 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
5686 detection.
5687
25092d29
VS
56882013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
5689
5690 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
5691 match config-util.h to avoid warnings and increase compatibility.
5692
79451522 56932013-04-14 Szymon Janc <szymon@janc.net.pl>
25092d29 56942013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
79451522
VS
5695
5696 Add option to compress files on install/image creation.
5697
78b7d77b
VS
56982013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
5699
5700 * docs/grub-dev.texi: Rearrange menu to match the section order.
5701 Reported by: Bryan Hundven.
5702
cc2fa5ec
VS
57032013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
5704
5705 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
5706
b49fe879
VS
57072013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
5708
5709 Move GRUB out of system area when using xorriso 1.2.9 or later.
5710
5351da81
VS
57112013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
5712
5713 * tests/grub_cmd_date.in: Add missing exit 1.
5714
c9d586ea
VS
57152013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
5716
5717 * tests/partmap_test.in: Skip on sparc64.
5718
3f729741
VS
57192013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
5720
5721 Support grub-shell on sparc64.
5722
8ca86b3a
VS
57232013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
5724
5725 Support mkrescue on sparc64.
5726
aa1af9bb
VS
57272013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
5728
5729 Allow IEEE1275 ports on path even if it wasn't detected automatically.
5730 Needed on OpenBIOS due to incomplete device tree.
5731
ac4fea79
VS
57322013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
5733
5734 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
5735 would be otherwise excluded.
5736
57372013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
87206f2c
VS
5738
5739 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
5740 Inline name defines used only once.
5741
fe22b071
VS
57422013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
5743
5744 Fix memory leaks in ofnet.
5745 Reported by: Francesco Lavra.
5746
9d21381b
VS
57472013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5748
5749 * docs/man/grub-glue-efi.h2m: Add missing file.
5750
07aec23c
VS
57512013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5752
5753 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
5754
67ab8353
VS
57552013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5756
5757 Better support Apple Intel Macs on CD.
5758
ba44ca6d
VS
57592013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5760
5761 Replace stpcpy with grub_stpcpy in tools.
5762
bbdd6305
VS
57632013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5764
5765 Handle Japanese special keys.
5766 Reported by: Hiroyuki YAMAMORI.
5767 Codes supplied by: Hiroyuki YAMAMORI.
5768
8573d302
VS
57692013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5770
5771 * util/grub-mkimage.c: Document memdisk implying --prefix.
5772
d70dbab7
VS
57732013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5774
5775 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
5776 much we can do about it anyway.
5777
51a4c3e3
AN
57782013-04-12 Aleš Nesrsta <starous@volny.cz>
5779
5780 Fix handling of split transfers.
5781
92c8f58d
VS
57822013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5783
5784 * grub-core/net/http.c: Fix bad free.
5785
b7d17a49
VS
57862013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5787
5788 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
5789 than buffer size.
5790
a3d566d4
VS
57912013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5792
5793 Disable partmap check on i386-ieee1275 due to openfirmware issues.
5794
a936af56
VS
57952013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5796
5797 * tests/util/grub-shell.in: Fix it on powerpc.
5798
51212234
VS
57992013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5800
5801 Turn off QEMU ACPI-way since new releases don't have shutdown port
5802 anymore.
5803
a21eec9e
VS
58042013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5805
5806 * docs/grub.texi: Update coreboot status info.
5807
e3734b84
VS
58082013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5809
5810 * tests/grub_cmd_date.in: New test for datetime.
5811
f9d40055
VS
58122013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5813
5814 * tests/partmap_test.in: Fix missing qemudisk setting.
5815
dbc56d8f
VS
58162013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5817
5818 Support i386-ieee1275 grub-mkrescue and make check on it.
5819
a79b8a15
VS
58202013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5821
5822 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
5823 feature for it.
5824
48f39bb4
VS
58252013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5826
5827 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
5828 GRUB_CMDLINE_XEN_DEFAULT.
5829 Reported by: Marc Warne (GigaTux) <gigatux>
5830
053cfcdd
VS
58312013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5832
5833 Import new gnulib.
5834
93cd84df
VS
58352013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5836
5837 Use ACPI shutdown intests as traditional port was removed.
5838
f4b1fa4f
AB
58392013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
5840
5841 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
5842 distinction.
5843
49818a59
VS
58442013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5845
5846 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
5847 Fix few warining messages and leaks while on it.
5848
9277a306
AB
58492013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
5850
5851 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
5852 links under grub-core/lib/libgcrypt-grub/mpi.
5853
d5e2a158
VS
58542013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5855
5856 Fix ia64-efi image generation on big-endian machines. Deduplicate
5857 some code while on it.
5858 Reported by: Leif Lindholm.
5859
18866643
AB
58602013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
5861
5862 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
5863 as extra_dist.
5864
ca53deb8
AB
58652013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
5866
5867 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
5868
d4c4b8e1
BH
58692013-04-08 Bryan Hundven <bryanhundven@gmail.com>
5870
5871 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
5872 texinfo-5.1.
5873
47043f95
VS
58742013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5875
5876 * grub-core/normal/term.c: Few more fixes for menu entry editor
5877 rendering.
5878 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
5879
a3216068
VS
58802013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
5881
5882 * grub-core/normal/term.c: Few more fixes for menu entry editor
5883 rendering.
5884 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
5885
21026747
AB
58862013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
5887
5888 * conf/Makefile.extra-dist (EXTRA_DIST): Add
5889 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
5890
59624ca8
AB
58912013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
5892
5893 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
5894 instead of hardcoding grub.mo.
5895
1f44478c
FN
58962013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
5897
5898 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
5899
eeada7b1
VS
59002013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5901
5902 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
5903 grub-core/disk/geli.c.
5904
132867de
VS
59052013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5906
5907 * util/grub-mkfont.c: Prefer enum to #define.
5908
de73de17
VS
59092013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5910
5911 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
5912
1865baa7
VS
59132013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5914
5915 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
5916
ce7d92a9
VS
59172013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5918
5919 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
5920
52eab656
VS
59212013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5922
5923 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
5924
98b23b95
VS
59252013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5926
5927 * include/grub/bsdlabel.h: Use enums.
5928
0467a5dd
VS
59292013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5930
5931 Move GRUB_CHAR_BIT to types.h.
5932
16cc9f03
AB
59332013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
5934
5935 * docs/grub.texi: Document more user commands.
5936
3152aecb
AB
59372013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
5938
5939 * docs/grub.texi: Document menuentry --id option.
5940
c506fc30
FL
59412013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
5942
5943 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
5944
aa428238
VS
59452013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5946
5947 Unify file copying setup across different install scripts. Add
5948 options for performing partial install.
5949
efe0cdda
PJ
59502013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
59512013-04-04 Peter Jones <pjones@redhat.com>
5952
5953 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
5954
f75835bd
VS
59552013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5956
5957 Use TSC as a possible time source on i386-ieee1275.
5958
2cd5ce6c
VS
59592013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5960
5961 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
5962 Init err.
5963
c9625630
VS
59642013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5965
5966 * util/grub-setup.c (setup): Handle some corner cases.
5967
be008941
VS
59682013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5969
5970 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
5971
1a78d573
VS
59722013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
5973
5974 * grub-core/commands/verify.c: Save verified file to avoid it being
5975 tampered with after verification was done.
5976
db8ff59f
VS
59772013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
5978
5979 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
5980 reported width by one to compensate for curesor algorithm problem.
5981
91bf46b1
VS
59822013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
5983
5984 Fix screen corruption in menu entry editor and simplify the code
5985 flow while on it.
5986
a7b1d693
AB
59872013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
5988
5989 * util/grub-mount.c (fuse_init): Return error if fuse_main
5990 failed.
5991
31df9ad8
FL
59922013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
5993
5994 * include/grub/elf.h: Add missing ARM relocation codes and fix
5995 existing ones.
5996
07f392eb
VT
59972013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
5998
5999 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
6000
9efd73ec 60012013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
c3578acf
VT
60022013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
6003
6004 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
6005 into account when calculating radius.
6006
60072013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
9efd73ec
VT
6008
6009 * grub-core/gfxmenu/view.c: Fix off-by-one error.
6010
4985ddaa
VT
60112013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
6012
6013 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
6014
8c3635ff
RS
60152013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
6016
6017 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
6018 missing closing bracket.
6019
74a35e69
RS
60202013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
6021
6022 * INSTALL: Mention xorriso requirement.
6023
40f1c000
AB
60242013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
6025
6026 * grub-core/commands/verify.c: Fix hash algorithms values for
6027 the first three hashes - they start with 1, not with 0.
6028
e75fdee4
VS
60292013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
6030
6031 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
6032 Try terminating EFI services several times due to quirks in some
6033 implementations.
6034
33028f4c
CW
60352013-03-26 Colin Watson <cjwatson@ubuntu.com>
6036
6037 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
6038 skipping Event, Device, Processor, PowerRes, ThermalZone, and
6039 BankField extended opcodes.
6040 (get_sleep_type): Add minimal scope handling (just enough to
6041 handle setting the scope to the root path).
6042 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
6043 * include/grub/acpi.h: Add enumeration values for Event, Device,
6044 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
6045
33871a10
VT
60462013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
6047
6048 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
6049 memory leak.
6050
8990963a
VS
60512013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
6052
6053 * grub-core/disk/ahci.c: Give more time for AHCI request.
6054
daae8f9e
VS
60552013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
6056
6057 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
6058 command.
6059
6a7fb94b
VS
60602013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
6061
6062 Replace the region at 0 from coreboot tables to available in BSD
6063 memory map.
6064
ff99babd
VS
60652013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6066
6067 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
6068 non-BIOS platforms.
6069
30d6b1b2
VS
60702013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6071
6072 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
6073 platforms.
6074
6ccd0b31
VS
60752013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6076
6077 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
6078 handling of multi-device filesystems.
6079
23c9cc04
VS
60802013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6081
6082 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
6083 platforms.
6084
ce50dbd7
VS
60852013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6086
6087 Add new 'proc' filesystem framework and put luks_script into it.
6088
d975e8d5
VS
60892013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6090
6091 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
6092 and qemu.
6093
e73ba5e8
VS
60942013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
6095
6096 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
6097
92750e4c
VS
60982013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
6099
6100 Add ability to generate newc additions on runtime.
6101
0ec45a68
VS
61022013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
6103
6104 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
6105 description.
6106
320abd43
VS
61072013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
6108
6109 * po/POTFILES.in: Regenerate.
6110
d7a6506e
VS
61112013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
6112
6113 * grub-core/commands/verify.c (hashes): Add several hashes
6114 from the spec.
6115
8fe05def
VS
61162013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
6117
6118 Slight improve in USB-related boot-time checkpoints.
6119
524e2766
VS
61202013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
6121
6122 * grub-core/commands/boottime.c: Fix copyright header.
6123
cc19857a
VS
61242013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
6125
6126 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
6127 coreboot tables content. Support for cbmemc.
6128
ef8810e9
VS
61292013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
6130
6131 Fix a conflict between ports structures with 2 controllers of
6132 same kind.
6133
e9dabdfa
VS
61342013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
6135
6136 * include/grub/boottime.h: Add missing file.
6137
f6df57d2
VS
61382013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
6139
6140 Initialize USB ports in parallel to speed-up boot.
6141
d745dda7
VS
61422013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
6143
6144 Fix USB devices not being detected when requested
6145 due to delayed attach.
6146
e5a2dd7b
VS
61472013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
6148
e744219b
VS
6149 Implement boot time analysis framework.
6150
61512013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
6152
6153 Remove get_endpoint_descriptor and change all functions needing
e5a2dd7b
VS
6154 descriptor to just receive it as argument rather than endpoint
6155 address.
6156
5dd6f587
VS
61572013-03-19 Aleš Nesrsta <starous@volny.cz>
6158
6159 Better estimate the maximum USB transfer size.
6160
2f1071d5
VS
61612013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
6162
6163 Resend a packet if we got the wrong buffer in status.
6164
46ecfc49
VS
61652013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6166
6167 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
6168 multiplication rather than division.
6169
ea811130
VS
61702013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6171
6172 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
6173 than divisions.
6174
d2789cf0
VS
61752013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6176
6177 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
6178 operations to have intended shifts and not divisions.
6179
a9c94590
VS
61802013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6181
6182 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
6183 intended shifts rather than division.
6184
84cfe81b
VS
61852013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6186
6187 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
6188 computation for some years before epoch. Avode confusing division
6189 while on it.
6190
21344ef6
VS
61912013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6192
6193 * grub-core/video/i386/pc/vbe.c
6194 (grub_video_vbe_print_adapter_specific_info): Replace division by
6195 shifts.
6196
3f2b4d1a
VS
61972013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6198
6199 Adjust types in gdb module to have intended unsigned shifts rather than
6200 signed divisions.
6201
3dac5878
VS
62022013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6203
6204 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
6205 maximum size is 4G - 1 on hfs
6206
5341c0fb
VS
62072013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6208
6209 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
6210
fc3ff2a2
VS
62112013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6212
6213 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
6214 function.
6215
81455e8e
AB
62162013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
6217
6218 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
6219 causing gcc error with gcc 4.7.1.
6220
efd4f117
NZ
62212013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
6222
6223 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
6224 dereference null pointer. While the code is technically correct, gcc
6225 may eliminate a null check if pointer is already dereferenced.
6226
e11645f4
NZ
62272013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
6228
6229 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
6230 OOM check.
6231 * grub-core/normal/term.c (read_terminal_list): Likewise.
6232
77468368
VS
62332013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
6234
6235 Lift up core size limits on some platforms. Fix potential memory
6236 corruption with big core on small memory systems. Document remaining
6237 limits.
6238
f6b58fe5
VS
62392013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
6240
6241 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
6242 gotoxy to 0,0.
6243
19ce697d
VS
62442013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6245
6246 Remove all trampoline support. Add -Wtrampolines when
6247 present. Remove symbols used for trampolines to make
6248 link fail if trampolines are present.
6249
73b5d90f
VS
62502013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6251
6252 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
6253 append out of its parent.
6254
cb758e96
VS
62552013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6256
6257 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
6258 parent.
6259
3188131f
VS
62602013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6261
6262 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
6263 all vars to a macro. All users updated.
6264
e42b2514
VS
62652013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6266
6267 * grub-core/disk/ieee1275/nand.c: Fix compilation on
6268 i386-ieee1275.
6269
83e1a1a1
VS
62702013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6271
6272 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
6273
1d5a880f
VS
62742013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6275
6276 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
6277
6e4146c4
VS
62782013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6279
6280 Move to more hookless approach in IEEE1275 devices handling.
6281
99fcda8a
VS
62822013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6283
6284 * grub-core/kern/term.c (grub_term_normal_color),
6285 (grub_term_highlight_color): Add back lost defaults.
6286
73bf57e2
VS
62872013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6288
6289 Make elfload not use hooks. Opt for flags and iterators instead.
6290
7f8c105f
VS
62912013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6292
6293 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
6294 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
6295
396d4091
VS
62962013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6297
6298 * grub-core/script/execute.c (gettext_append): Remove nested functions.
6299
63002013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6301
6302 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
6303 hook pass-through parameter. All users updated and unnested.
6304
74a27421
VS
63052013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6306
6307 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
6308 out of its parent.
6309
b46d4213
VS
63102013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6311
6312 * grub-core/fs/hfs.c: Remove nested functions.
6313
e114c3cc
VS
63142013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6315
6316 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
6317 the context through.
6318 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
6319
f9b7d780
VS
63202013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6321
6322 * util/grub-editenv.c (list_variables): Move print_var out of its
6323 parent.
6324
ca9c2608
VS
63252013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6326
6327 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
6328 function.
6329
5d983f5f
VS
63302013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6331
6332 * grub-core/gentrigtables.c: Make tables const.
6333
3056d3e7
VS
63342013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6335
6336 Remove nested functions from videoinfo iterators.
6337
e2303774
VS
63382013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6339
6340 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
6341 for 64-bit platforms.
6342
f42e3a2f
VS
63432013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6344
6345 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
6346 a FOR_CHILDREN macro.
6347
be174e5e
VS
63482013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6349
6350 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
6351 platform from firmware path.
6352
0789b672
VS
63532013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6354
6355 Enable linux16 on non-BIOS systems for i.a. memtest.
6356
6357 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
6358 correctly.
6359 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
6360
005a9c32
VS
63612013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6362
6363 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
6364 Fix end of table condition.
6365
ff2b3cd9
VS
63662013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6367
6368 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
6369 out of its parent.
6370
4fc40ff8
VS
63712013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6372
6373 * grub-core/fs/jfs.c: Remove nested functions.
6374
be42d97a
VS
63752013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6376
6377 * grub-core/fs/minix.c: Remove nested functions.
6378
99373ce4
VS
63792013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6380
6381 * grub-core/fs/iso9660.c: Remove nested functions.
6382
5aec2afe
VS
63832013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6384
6385 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
6386 of parent function.
6387
6c69e691
VS
63882013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6389
6390 * util/grub-fstest.c: Remove nested functions.
6391
43c91882
VS
63922013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6393
6394 * grub-core/loader/machoXX.c: Remove nested functions.
6395
4eb8b756
CW
63962013-02-27 Colin Watson <cjwatson@ubuntu.com>
6397
6398 Remove nested functions from disk and file read hooks.
6399
6400 * include/grub/disk.h (grub_disk_read_hook_t): New type.
6401 (struct grub_disk): Add read_hook_data member.
6402 * include/grub/file.h (struct grub_file): Likewise.
6403 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
6404 argument.
6405
6406 Update all callers.
6407
df6da5a5
AB
64082012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
6409
6410 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
6411 Fix off by one error in enumerating extended partitions.
6412
21aecde5
AB
64132013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
6414
6415 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
6416 memory leak if device name is not found.
6417
f1a19118
AB
64182013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
6419
6420 * grub-core/normal/menu_entry.c (update_screen): remove
6421 unused variable `off' which caused scroll down arrow to be always shown.
6422
958bfd20
AB
64232013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
6424
6425 * grub-core/normal/menu_entry.c (insert_string): fix off by one
6426 access to unallocated memory.
6427
b7b78edb
AB
64282013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
6429
6430 * Makefile.util.def: Add partmap/msdos.c to common library.
6431 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
6432 * grub-core/disk/ldm.c: Check for existence of
6433 GRUB_PC_PARTITION_TYPE_LDM.
6434
28d468d6
VS
64352013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
6436
6437 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
6438 sizes and display sector size.
6439
d55ffb02
VS
64402013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
6441
6442 Implement new command cmosdump.
6443
b5ea6ce0
VS
64442013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6445
6446 Support Openfirmware disks with non-512B sectors.
6447
6448 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
6449 size of the disk.
6450 * (grub_ofdisk_get_block_size): New function.
6451 * (grub_ofdisk_prepare): Use the correct block size.
6452 * (grub_ofdisk_read): Likewise.
6453 * (grub_ofdisk_write): Likewise.
6454 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
6455 New proto.
6456
cc0e476f
VS
64572013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
6458
6459 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
6460
c5dbdc33
VS
64612013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6462
6463 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
6464 on first error.
6465
3f078c0f
VS
64662013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6467
6468 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
6469 freeing it.
6470
66a93674
VS
64712013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6472
6473 Implement USBDebug (full USB stack variant).
6474
c9f0c134
VS
64752013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6476
6477 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
6478 unless they have unexpected values.
6479
cfe1288b
VS
64802013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6481
6482 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
6483 grub_print_error.
6484
e42b9969
VS
64852013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6486
6487 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
6488 zero-out of port structure.
6489
cf94fd62
VS
64902013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
6491
6492 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
6493 of extended attributes.
6494
f81ef4b5
AB
64952013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
6496
6497 * util/grub-install.in: change misleading comment about
6498 device.map creation
6499
af18fdb4
VS
65002013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
6501
6502 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
6503 when menu highlight color isn't set.
6504
08bcec50
M
65052013-01-27 C. Masloch <pushbx@38.de>
6506
6507 Improve FreeDOS direct loading support compatibility.
6508
6509 * include/grub/i386/relocator.h (grub_relocator16_state):
6510 New member ebp.
6511 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
6512 variable.
6513 (grub_relocator16_boot): Handle %ebp.
6514 * grub-core/lib/i386/relocator16.S: Likewise.
6515 * grub-core/loader/i386/pc/freedos.c:
6516 Load BPB to pass kernel which partition to load from.
6517 Check that kernel file is not too large.
6518 Set register dl to BIOS unit number as well.
6519
7782b8a6
CW
65202013-01-22 Colin Watson <cjwatson@ubuntu.com>
6521
6522 * util/grub-reboot.in (usage): Document the need for
6523 GRUB_DEFAULT=saved.
6524 * util/grub-set-default.in (usage): Likewise.
6525 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
6526
e661c180
VS
65272013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
6528
6529 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
6530 than defining WORDS_BIGENDIAN manually.
6531
1c22ca9a
VS
65322013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
6533
6534 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
6535 invariants.
6536
d44892fe
CW
65372013-01-21 Colin Watson <cjwatson@ubuntu.com>
6538
6539 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
6540 nested.
6541 (blit_comb: add_device_width): Likewise.
6542
5fdbaed1
CW
65432013-01-21 Colin Watson <cjwatson@ubuntu.com>
6544
6545 Remove nested functions from USB iterators.
6546
6547 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
6548 (grub_usb_controller_iterate_hook_t): Likewise.
6549 (grub_usb_iterate): Add hook_data argument.
6550 (grub_usb_controller_iterate): Likewise.
6551 (struct grub_usb_controller_dev.iterate): Likewise.
6552
6553 Update all implementations and callers.
6554
4250985a
VS
65552013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
6556
6557 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
6558 margin when not needed.
6559
7d8848f3
VS
65602013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
6561
bc136973 6562 Make color variables global instead of it being per-terminal.
7d8848f3
VS
6563
65642013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
6565
bc136973
VS
6566 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
6567 asterisk.
7d8848f3 6568
ed12a003
CW
65692013-01-21 Colin Watson <cjwatson@ubuntu.com>
6570
6571 Fix powerpc and sparc64 build failures caused by un-nesting memory
6572 map iterators.
6573
6a0db449
CW
65742013-01-21 Colin Watson <cjwatson@ubuntu.com>
6575
6576 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
6577 parameter declarations.
6578
ccd86b21
VS
65792013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
6580
6581 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
6582
822b726b
VS
65832013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
6584
6585 Improve spkmomdem reliability by adding a separator between bytes.
6586
115c2cc1
CW
65872013-01-21 Colin Watson <cjwatson@ubuntu.com>
6588
6589 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
6590 an Acer registration utility with several sightings in the wild.
6591 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
6592
fc524edf
CW
65932013-01-21 Colin Watson <cjwatson@ubuntu.com>
6594
6595 Remove nested functions from filesystem directory iterators.
6596
6597 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
6598 (struct grub_fs.dir): Add hook_data argument.
6599
6600 Update all implementations and callers.
6601
53d3e4e3
CW
66022013-01-21 Colin Watson <cjwatson@ubuntu.com>
6603
6604 * docs/grub.texi (Multi-boot manual config): Fix typo for
6605 "recommended".
6606
c821711f
LL
66072013-01-20 Leif Lindholm <leif.lindholm@arm.com>
6608
6609 * util/grub-mkimage.c (main): Postpone freeing arguments.output
6610 until after its use in generate_image.
6611
6a0debbd
CW
66122013-01-20 Colin Watson <cjwatson@ubuntu.com>
6613
6614 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
6615 initrd size to addr_min, since the initrd will be allocated after
6616 this address.
6617
f41e08db
AB
66182013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
6619
6620 * conf/Makefile.common: Fix autogen rules to pass definition
6621 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
6622
77529e0f
LL
66232013-01-20 Leif Lindholm <leif.lindholm@arm.com>
6624
6625 * include/grub/elf.h: Update ARM definitions based on binutils.
6626
b879aa7b
VS
66272013-01-20 Aleš Nesrsta <starous@volny.cz>
6628
6629 Split long USB transfers into short ones.
6630
8eb8284d
AB
66312013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
6632
6633 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
6634 is interrupted by ESC.
6635
08dad2dc
VS
66362013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
6637
6638 * util/grub-script-check.c (main): Uniform the error message.
6639
6c724b85
CW
66402013-01-20 Colin Watson <cjwatson@ubuntu.com>
6641
6642 Remove nested functions from ELF iterators.
6643
25239370
CW
66442013-01-20 Colin Watson <cjwatson@ubuntu.com>
6645
6646 Remove nested functions from device iterators.
6647
6648 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
6649 (grub_arc_iterate_devs): Add hook_data argument.
6650 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
6651 (struct grub_ata_dev.iterate): Add hook_data argument.
6652 * include/grub/device.h (grub_device_iterate_hook_t): New type.
6653 (grub_device_iterate): Add hook_data argument.
6654 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
6655 (struct grub_disk_dev.iterate): Add hook_data argument.
6656 (grub_disk_dev_iterate): Likewise.
6657 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
6658 Likewise.
6659 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
6660 Likewise.
6661 * include/grub/partition.h (grub_partition_iterate_hook_t): New
6662 type.
6663 (struct grub_partition_map.iterate): Add hook_data argument.
6664 (grub_partition_iterate): Likewise.
6665 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
6666 (struct grub_scsi_dev.iterate): Add hook_data argument.
6667
6668 Update all callers.
6669
6c0314d6
CW
66702013-01-20 Colin Watson <cjwatson@ubuntu.com>
6671
6672 Fix typos for "developer" and "development".
6673
600dc5f1
VS
66742013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
6675
6676 Add license header to spkmodem-recv.c.
6677
17334a6b
VS
66782013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
6679
6680 Rewrite spkmodem to use PIT for timing. Double the speed.
6681
7d462559
VS
66822013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
6683
6684 Add new command pcidump.
6685
b78d6c32
VS
66862013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
6687
6688 New terminal outputs using serial: morse and spkmodem.
6689
34f71cb8
VS
66902013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
6691
6692 Improve bidi handling in entry editor.
6693
4542e71b
VS
66942013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
6695
6696 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
6697 argument to prevent name collision.
6698
09fd6d82
CW
66992013-01-15 Colin Watson <cjwatson@ubuntu.com>
6700
6701 Remove nested functions from script reading and parsing.
6702
6703 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
6704 getline_data argument, passed to getline.
6705 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
6706 getline_data argument, passed to grub_parser_split_cmdline.
6707 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
6708 lexerstate->getline_data to lexerstate->getline.
6709 (grub_script_lexer_init): Add getline_data argument, saved in
6710 lexerstate->getline_data.
6711 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
6712 argument, passed to grub_script_parse.
6713 * grub-core/script/script.c (grub_script_parse): Add getline_data
6714 argument, passed to grub_script_lexer_init.
6715 * include/grub/parser.h (grub_parser_split_cmdline): Update
6716 prototype. Update all callers to pass appropriate getline data.
6717 (struct grub_parser.parse_line): Likewise.
6718 (grub_rescue_parse_line): Likewise.
6719 * include/grub/reader.h (grub_reader_getline_t): Add void *
6720 argument.
6721 * include/grub/script_sh.h (struct grub_lexer_param): Add
6722 getline_data member.
6723 (grub_script_parse): Update prototype. Update all callers to pass
6724 appropriate getline data.
6725 (grub_script_lexer_init): Likewise.
6726 (grub_normal_parse_line): Likewise.
6727
6728 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
6729 data argument.
6730 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
6731 static instead of nested. Rename to ...
6732 (grub_parser_execute_getline): ... this.
6733 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
6734 data argument.
6735 * grub-core/normal/main.c (read_config_file: getline): Make static
6736 instead of nested. Rename to ...
6737 (read_config_file_getline): ... this.
6738 (grub_normal_read_line): Add unused data argument.
6739 * grub-core/script/execute.c (grub_script_execute_sourcecode:
6740 getline): Make static instead of nested. Rename to ...
6741 (grub_script_execute_sourcecode_getline): ... this.
6742 * util/grub-script-check.c (main: get_config_line): Make static
6743 instead of nested.
6744
d0d4b8a0
CW
67452013-01-15 Colin Watson <cjwatson@ubuntu.com>
6746
6747 Remove nested functions from memory map iterators.
6748
6749 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
6750 argument, passed to hook.
6751 * grub-core/kern/i386/coreboot/mmap.c
6752 (grub_linuxbios_table_iterate): Likewise.
6753 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
6754 instead of nested.
6755 (grub_machine_mmap_iterate): Add hook_data argument.
6756 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
6757 Add hook_data argument, passed to hook.
6758 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
6759 Likewise.
6760 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
6761 Likewise.
6762 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
6763 Likewise.
6764 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
6765 Likewise.
6766 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
6767 Likewise.
6768 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
6769 Likewise.
6770 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
6771 (grub_machine_mmap_iterate): Likewise.
6772 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
6773 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
6774 prototype.
6775 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
6776 Remove NESTED_FUNC_ATTR from here and from all users.
6777 (grub_mmap_iterate): Update prototype.
6778 (grub_efi_mmap_iterate): Update prototype. Update all callers to
6779 pass appropriate hook data.
6780 (grub_machine_mmap_iterate): Likewise.
6781
6782 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
6783 static instead of nested.
6784 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
6785 Rename to ...
6786 (lsmmap_hook): ... this.
6787 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
6788 Likewise.
6789 (grub_efiemu_mmap_fill: fill_hook): Likewise.
6790 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
6791 heap_init): Likewise.
6792 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
6793 Rename to ...
6794 (mmap_iterate_hook): ... this.
6795 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
6796 Likewise.
6797 * grub-core/lib/ieee1275/relocator.c
6798 (grub_relocator_firmware_get_max_events: count): Likewise.
6799 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
6800 to ...
6801 (grub_relocator_firmware_fill_events_iter): ... this.
6802 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
6803 hook): Likewise. Rename to ...
6804 (grub_relocator_alloc_chunk_align_iter): ... this.
6805 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
6806 Rename to ...
6807 (generate_e820_mmap_iter): ... this.
6808 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
6809 Rename to ...
6810 (count_hook): ... this.
6811 (grub_linux_boot: hook): Likewise. Rename to ...
6812 (grub_linux_boot_mmap_find): ... this.
6813 (grub_linux_boot: hook_fill): Likewise. Rename to ...
6814 (grub_linux_boot_mmap_fill): ... this.
6815 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
6816 hook): Likewise. Rename to ...
6817 (grub_fill_multiboot_mmap_iter): ... this.
6818 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
6819 hook): Likewise. Rename to ...
6820 (count_hook): ... this.
6821 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
6822 hook): Likewise. Rename to ...
6823 (grub_fill_multiboot_mmap_iter): ... this.
6824 * grub-core/loader/powerpc/ieee1275/linux.c
6825 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
6826 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
6827 Likewise. Rename to ...
6828 (alloc_phys_choose): ... this.
6829 (determine_phys_base: get_physbase): Likewise.
6830 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
6831 find_hook): Likewise.
6832 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
6833 (malloc_hook: count_hook): Likewise.
6834 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
6835 Likewise. Rename to ...
6836 (lower_hook): ... this.
6837 (grub_mmap_get_upper: hook): Likewise. Rename to ...
6838 (upper_hook): ... this.
6839 (grub_mmap_get_post64: hook): Likewise. Rename to ...
6840 (post64_hook): ... this.
6841 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
6842 Likewise. Rename to ...
6843 (lower_hook): ... this.
6844 (grub_mmap_get_upper: hook): Likewise. Rename to ...
6845 (upper_hook): ... this.
6846 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
6847 (grub_mmap_iterate: fill_hook): Likewise.
6848 (fill_mask): Pass addr and mask within a single struct.
6849 (grub_cmd_badram: hook): Make static instead of nested. Rename
6850 to ...
6851 (badram_iter): ... this.
6852 (grub_cmd_cutmem: hook): Likewise. Rename to ...
6853 (cutmem_iter): ... this.
6854
22099030
VS
68552013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
6856
6857 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
6858 delimit path in strings using quotes.
6859 * util/getroot.c (grub_guess_root_devices): Likewise.
6860 (grub_make_system_path_relative_to_its_root): Likewise.
6861 * util/grub-probe.c (probe): Likewise.
6862 * util/ieee1275/ofpath.c (find_obppath): Likewise.
6863 (xrealpath): Likewise.
6864
4a9950ec
VS
68652013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
6866
6867 Fix compilation with older compilers.
6868
6869 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
6870 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
6871 declarations.
6872 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
6873 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
6874 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
6875 identifier with b.
6876 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
6877 * include/grub/crypto.h: Add type defines.
6878 * util/import_gcrypth.sed: Remove duplicate type defines.
6879
adcc6020
VS
68802013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
6881
6882 New command list_trusted.
6883
6884 * grub-core/commands/verify.c (grub_cmd_list): New function.
6885
a4528937
CW
68862013-01-13 Colin Watson <cjwatson@ubuntu.com>
6887
6888 * util/grub-mkimage.c (generate_image): Fix "size of public key"
6889 info message.
6890
ca3a7446
CW
68912013-01-13 Colin Watson <cjwatson@ubuntu.com>
6892
6893 Remove nested functions from PCI iterators.
6894
6895 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
6896 passed to hook. Update all callers to pass appropriate hook data.
6897 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
6898 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
6899 Remove NESTED_FUNC_ATTR from here and from all users.
6900 (grub_pci_iterate): Update prototype.
6901 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
6902 instead of nested. Rename to ...
6903 (grub_cs5536_find_iter): ... this.
6904 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
6905 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
6906 Likewise.
6907 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
6908 Likewise.
6909 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
6910 Likewise.
6911 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
6912 Likewise.
6913 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
6914 * grub-core/video/radeon_fuloong2e.c
6915 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
6916 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
6917 find_card): Likewise.
6918 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
6919 Likewise.
6920
f8e98fee
VS
69212013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6922
6923 * grub-core/commands/verify.c: Mark messages for translating.
6924
055b36b6
VS
69252013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6926
6927 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
6928 fatal.
6929
f7ff879b
VS
69302013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6931
6932 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
6933 fatal.
6934
69352013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4d7219f9
VS
6936
6937 * autogen.sh: Do not try to delete nonexistant files.
6938 * util/import_gcrypth.sed: Add some missing header removals.
6939
01323d49
CW
69402013-01-12 Colin Watson <cjwatson@ubuntu.com>
6941
6942 Clean up dangling references to grub-setup.
6943 Fixes Ubuntu bug #1082045.
6944
6945 * docs/grub.texi (Images): Refer generally to grub-install rather
6946 than directly to grub-setup.
6947 (Installing GRUB using grub-install): Remove direct reference to
6948 grub-setup.
6949 (Device map) Likewise.
6950 (Invoking grub-install): Likewise.
6951 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
6952 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
6953 * util/grub-install.in (usage): Likewise.
6954
6955 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
6956 Apply to grub-bios-setup and grub-sparc64-setup rather than to
6957 grub-setup.
6958 * configure.ac: Remove grub_setup output variable.
6959
6960 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
6961 to grub-bios-setup.
6962 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
6963 grub-setup to grub-sparc64-setup.
6964
5e3b8dcb
VS
69652013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
6966
6967 Import gcrypt public-key cryptography and implement signature checking.
6968
535714bd
VS
69692013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6970
6971 * grub-core/fs/ntfs.c: Ue more appropriate types.
6972 * grub-core/fs/ntfscomp.c: Likewise.
6973 * include/grub/ntfs.h: Likewise.
6974
3e4f3566
VS
69752013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6976
6977 Support Apple FAT binaries on non-Apple platforms.
6978
6979 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
6980 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
6981 Likewise.
6982 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
6983 Apple FAT binaries.
6984
4dedb13f
VS
69852013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6986
6987 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
6988 sector devices.
6989
f8861eaf
CW
69902013-01-07 Colin Watson <cjwatson@ubuntu.com>
6991
6992 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
6993 explicitly zeroing elements.
6994 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
6995 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
6996 of elements in a structure already allocated using grub_zalloc.
6997 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
6998
86065b0a
CW
69992013-01-07 Colin Watson <cjwatson@ubuntu.com>
7000
7001 * docs/grub.texi (grub_cpu): New subsection.
7002 (grub_platform): Likewise.
7003
c6f1e92f
VS
70042013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
7005
7006 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
7007
f797ec85
VS
70082013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
7009
7010 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
7011 divisions.
7012
033d0b4b
VS
70132013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
7014
7015 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
7016 * grub-core/fs/ntfscomp.c: Likewise.
7017 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
7018 (grub_ntfs_comp): Likewise.
7019
21d1b9a0
VS
70202013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
7021
7022 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
7023 Rename to ...
7024 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
7025 of groups_per_block. All users updated.
7026
10ca8645
VS
70272013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
7028
7029 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
7030 grub_error properly.
7031 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
7032 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
7033
a4c3ed4c
VS
70342013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
7035
7036 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
7037 always in /boot/zfs.
7038 Reported by: Yuta Satoh.
7039
0b716507
YS
70402013-01-03 Yuta Satoh <nigoro>
7041
7042 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
7043 ${grub_probe}
7044
00c05e22
VS
70452013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
7046
7047 * configure.ac: Extend -Wno-trampolines to host.
7048
dadddb76
VS
70492013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
7050
7051 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
7052 entry->len = 0.
7053
54ce53ca
CW
70542013-01-03 Colin Watson <cjwatson@ubuntu.com>
7055
7056 * docs/grub.texi (Invoking grub-mkrelpath): New section.
7057 (Invoking grub-script-check): Likewise.
7058
8912efca
CW
70592013-01-03 Colin Watson <cjwatson@ubuntu.com>
7060
7061 * docs/grub.texi (Invoking grub-mount): New section.
7062 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
7063
c3fc8394
CW
70642013-01-02 Colin Watson <cjwatson@ubuntu.com>
7065
7066 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
7067 test failures, so that a failing unit test correctly causes 'make
7068 check' to fail.
7069
45d26abb
CW
70702013-01-02 Colin Watson <cjwatson@ubuntu.com>
7071
7072 Fix failing printf test.
7073
7074 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
7075 '$' in the correct order when collecting type information.
7076
971dd2c6
CW
70772013-01-02 Colin Watson <cjwatson@ubuntu.com>
7078
7079 * docs/grub.texi (configfile): Explain environment variable
7080 handling.
7081 (source): New section.
7082 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
7083
5c67ea6c
CW
70842012-12-31 Colin Watson <cjwatson@ubuntu.com>
7085
7086 Remove several trivially-unnecessary uses of nested functions.
7087
7088 * grub-core/commands/i386/pc/sendkey.c
7089 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
7090 instead of nested.
7091 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
7092 Rename to ...
7093 (legacy_file_getline): ... this.
7094 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
7095 Likewise.
7096 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
7097 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
7098 to ...
7099 (probe_dummy_iter): ... this.
7100 * grub-core/kern/i386/coreboot/mmap.c
7101 (grub_linuxbios_table_iterate: check_signature): Likewise.
7102 * grub-core/kern/parser.c (grub_parser_split_cmdline:
7103 check_varstate): Likewise. Mark inline.
7104 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
7105 an additional parameter.
7106 (find_long: fnd_long): Likewise. Pass two additional parameters.
7107 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
7108 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
7109 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
7110 Likewise. Rename to ...
7111 (grub_cmos_find_port_iter): ... this.
7112 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
7113 Rename to ...
7114 (find_rtc_iter): ... this.
7115
7116 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
7117 function directly into the function body, since it is only called
7118 once.
7119
33a68ac6
CW
71202012-12-30 Colin Watson <cjwatson@ubuntu.com>
7121
7122 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
7123 __attribute__ ((unused)).
7124 * grub-core/video/bochs.c (find_card): Likewise.
7125 * grub-core/video/cirrus.c (find_card): Likewise.
7126 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
7127 * grub-core/video/sis315pro.c (find_card): Likewise.
7128 * grub-core/video/sm712.c (find_card): Likewise.
7129
608b647a
CW
71302012-12-28 Colin Watson <cjwatson@ubuntu.com>
7131
7132 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
7133 Fixes Savannah bug #37821.
7134
fd49ceb3
CW
71352012-12-28 Colin Watson <cjwatson@ubuntu.com>
7136
7137 Apply program name transformations at build-time rather than at
7138 run-time. Fixes Debian bug #696465.
7139
7140 * acinclude.m4 (grub_TRANSFORM): New macro.
7141 * configure.ac: Create output variables with transformed names for
7142 most programs.
7143 * util/bash-completion.d/grub-completion.bash.in: Use
7144 pre-transformed variables for program names.
7145 * util/grub-install.in: Likewise.
7146 * util/grub-kbdcomp.in: Likewise.
7147 * util/grub-mkconfig.in: Likewise.
7148 * util/grub-mkconfig_lib.in: Likewise.
7149 * util/grub-mknetdir.in: Likewise.
7150 * util/grub-mkrescue.in: Likewise.
7151 * util/grub-mkstandalone.in: Likewise.
7152 * util/grub-reboot.in: Likewise.
7153 * util/grub-set-default.in: Likewise.
7154 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
7155 * tests/util/grub-shell-tester.in: Remove unused assignment.
7156 * tests/util/grub-shell.in: Likewise.
7157 * util/grub.d/00_header.in: Likewise.
7158
7024b3c0
CW
71592012-12-28 Colin Watson <cjwatson@ubuntu.com>
7160
7161 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
7162
7163 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
7164 HAVE_RAW_DECL_GETS.
7165 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
7166
e3501b13
VS
71672012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
7168
7169 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
7170 Reported by: Eriks Latosheks <foresterlv>.
7171
b40c88a9
VS
71722012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7173
7174 * docs/grub.texi (Network): Update instructions on generating netboot
7175 image.
7176
ce96d01c
VS
71772012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7178
7179 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
7180 around device name if necessarry.
7181
0f596201
PFS
71822012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7183
7184 * util/grub-install.in: Follow the symbolic link parameter added
7185 to the file command.
7186
600d5bdb
AB
71872012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
7188
7189 * util/grub-install.in: Remove stale TODO.
7190
64ebd2f4
PFS
71912012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7192
7193 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
7194 dynamic allocation for the bootpath buffer.
7195
74b2fe3e
DTB
71962012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
7197
7198 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
7199 window too small.
7200
969b804f
VS
72012012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7202
7203 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
7204 argument rather than font name. All users updated.
7205 (grub_gfxterm_set_window): Likewise.
7206
b9f5ebd6
VT
72072012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
7208
7209 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
7210 from working.
7211
258f43b7
VS
72122012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7213
7214 * util/getroot.c (convert_system_partition_to_system_disk): Support
7215 nbd disks.
7216
cc1ce5f9
VS
72172012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7218
7219 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
7220 infinite loop on corrupted FS.
7221
e77a16ca
VS
72222012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
7223
7224 Fix big-endian mtime.
7225
7226 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
7227 together sec and usec.
7228 (grub_ufs_dir): Use correct byteswapping for UFS time.
7229
d9c48c7b
VS
72302012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
7231
7232 Support big-endian UFS1.
7233
7234 * Makefile.util.def (libgrubmods): Add ufs_be.c
7235 * grub-core/Makefile.core.def (ufs1_be): New module.
7236 * grub-core/fs/ufs_be.c: New file.
7237 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
7238 the file.
7239
2f9f40ba
LL
72402012-11-28 Leif Lindholm <leif.lindholm@arm.com>
7241
7242 * include/grub/types.h: Fix functionality unaffecting typo in
7243 GRUB_TARGET_WORDSIZE conditional macro.
7244
48ff0889
PFS
72452012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7246
7247 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
7248
03711240
GS
72492012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
7250
7251 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
7252 that /netbsd appears first (when it exists).
7253
a31b11bd
CJ
72542012-10-12 Christoph Junghans <ottxor@gentoo.org>
7255
7256 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
7257 Fixes Savannah bug #37558.
7258
e8a5d5d4
CW
72592012-10-12 Colin Watson <cjwatson@ubuntu.com>
7260
7261 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
7262 description of extract_entries_configfile.
7263
72642012-10-05 Colin Watson <cjwatson@ubuntu.com>
39525c22
CW
7265
7266 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
7267 preferred_address.
7268 (grub_cmd_linux): Likewise.
7269 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
7270 preferred_lifetime. Update all users.
7271
288c757d
CW
72722012-09-26 Colin Watson <cjwatson@ubuntu.com>
7273
7274 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
7275 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
7276
0d35da3f
CW
72772012-09-26 Colin Watson <cjwatson@ubuntu.com>
7278
7279 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
7280 errors from grub-probe to /dev/null, not stdout.
7281
b78c3127
VS
72822012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
7283
7284 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
7285 sector 1.
7286
473959f0
CW
72872012-09-24 Colin Watson <cjwatson@ubuntu.com>
7288
7289 * util/grub-install.in: Make the error message if $source_dir
7290 doesn't exist more useful.
7291
794c8c33
CW
72922012-09-22 Colin Watson <cjwatson@ubuntu.com>
7293
7294 Fix grub-emu build on FreeBSD.
7295
7296 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
7297 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
7298 headers on Linux.
7299 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
7300 implementation is currently Linux-specific.
7301 * util/getroot.c (exec_pipe): Define only on Linux or when either
7302 libzfs or libnvpair is unavailable.
7303 (find_root_devices_from_poolname): Remove unused path variable.
7304
86d08fdb
CW
73052012-09-19 Colin Watson <cjwatson@ubuntu.com>
7306
7307 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
7308 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
7309 should fit before end == 63.
7310
735abf54
CW
73112012-09-19 Colin Watson <cjwatson@ubuntu.com>
7312
7313 * util/grub-setup.c (write_rootdev): Remove unused core_img
7314 parameter. Update all callers.
7315 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
7316 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
7317 GRUB_SETUP_BIOS.
7318
140acd3c
VS
73192012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
7320
7321 * util/grub-mkconfig_lib.in (grub_tab): New variable.
7322 (grub_add_tab): New function.
7323 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
7324 * util/grub.d/10_illumos.in: Likewise.
7325 * util/grub.d/10_kfreebsd.in: Likewise.
7326 * util/grub.d/10_linux.in: Likewise.
7327 * util/grub.d/10_netbsd.in: Likewise.
7328 * util/grub.d/10_windows.in: Likewise.
7329 * util/grub.d/10_xnu.in: Likewise.
7330 * util/grub.d/20_linux_xen.in: Likewise.
7331 * util/grub.d/30_os-prober.in: Likewise.
7332
7ddffdad
VS
73332012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
7334
7335 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
7336 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
7337 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
7338 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
7339 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
7340 ieee1275-nocursor.
7341 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
7342 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
7343
4e092454
VS
73442012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
7345
7346 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
7347 le-conversion.
7348 Reported by: BURETTE, Bernard.
7349
735abf54 73502012-09-17 Colin Watson <cjwatson@ubuntu.com>
a2fc3924
CW
7351
7352 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
7353 from comment.
7354
dfd39dbd
CW
73552012-09-14 Colin Watson <cjwatson@ubuntu.com>
7356
7357 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
7358 IEEE1275 machines. Fixes powerpc-emu compilation.
7359 * include/grub/terminfo.h: Likewise.
7360
3bfa763c
VS
73612012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
7362
7363 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
7364 a const pointer.
7365 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
7366 const pointer.
7367 (efiemu_set_variable): Make vendor_guid a const pointer.
7368
250e475b
VS
73692012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
7370
7371 Don't require grub-mkconfig_lib to generate manpages for programs.
7372
7373 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
7374 dependencies, don't add grub-mkconfig_lib.
7375 (program): Pass empty adddeps.
7376 (script): Pass grub-mkconfig_lib as adddeps.
7377
592fd0e4
VS
73782012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
7379
7380 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
7381 * util/getroot.c (grub_find_device): Likewise.
7382 (get_mdadm_uuid): Likewise.
7383 (grub_util_is_imsm): Likewise.
7384 (grub_util_pull_device): Likewise.
7385 * util/grub-probe.c (probe): Likewise.
7386
801a3027
BG
73872012-09-10 Benoit Gschwind <gschwind>
7388
7389 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
7390 (devs): Add devpath_8.
7391
c5052c81
PJ
73922012-09-08 Peter Jones <pjones@redhat.com>
7393
7394 * grub-core/Makefile.core.def (efifwsetup): New module.
7395 * grub-core/commands/efi/efifwsetup.c: New file.
7396 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
7397 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
7398 New define.
7399 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
7400
8e832f71
JS
74012012-09-05 Jiri Slaby <jslaby@suse.cz>
7402
7403 * configure.ac: Add SuSe path.
7404
f0f55752
CW
74052012-09-05 Colin Watson <cjwatson@ubuntu.com>
7406
7407 * NEWS: Fix typo.
7408
ecadc4c2
CW
74092012-09-05 Colin Watson <cjwatson@ubuntu.com>
7410
7411 * util/import_gcry.py: Sort cipher_files, to make build system
7412 generation more deterministic.
7413
64498f25
VS
74142012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7415
7416 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
7417 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
7418 (grub_set_datetime): Likewise.
7419
9cc836a2
VS
74202012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7421
7422 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
7423 warnings.
7424
bcfcea01
VS
74252012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7426
7427 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
7428
a4099485
VS
74292012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7430
7431 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
7432
265c162a
CW
74332012-09-04 Colin Watson <cjwatson@ubuntu.com>
7434
7435 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
7436 required for checkouts from bzr, but it may be useful for users or
7437 distributors wishing to update translations against a tarball
7438 distribution, and it can be helpful for the tarball to be a superset
7439 of what's in bzr.
7440
3d171e95
CW
74412012-09-04 Colin Watson <cjwatson@ubuntu.com>
7442
7443 * Makefile.am (EXTRA_DIST): Add
7444 grub-core/tests/boot/linux.init-mips.S,
7445 grub-core/tests/boot/linux.init-ppc.S, and
7446 grub-core/tests/boot/linux-ppc.cfg.
7447
f2c2503e
CW
74482012-09-04 Colin Watson <cjwatson@ubuntu.com>
7449
7450 * grub-core/mmap/mips/loongson: Remove empty directory.
7451
74522012-09-04 Colin Watson <cjwatson@ubuntu.com>
dd77d2be
CW
7453
7454 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
7455 gone.
7456
ab2163d5
CW
74572012-09-04 Colin Watson <cjwatson@ubuntu.com>
7458
7459 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
7460 grub-sparc64-setup.
7461
ce938140
GS
74622012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
7463
7464 * configure.ac: Strengthen the test for working -nostdinc -isystem.
7465
529f58a5
GS
74662012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
7467
7468 * po/POTFILES.in: Regenerated.
7469
16cf79e9
GS
74702012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
7471
7472 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
7473 (NetBSD): New subsection.
7474
39b27f1e 74752012-07-22 Ales Nesrsta <starous@volny.cz>
7476
7477 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
7478 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
7479
a885261b
VS
74802012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
7481
7482 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
7483 * util/grub.d/10_hurd.in: Add missing quoting.
7484 * util/grub.d/10_illumos.in: Likewise.
7485 * util/grub.d/10_kfreebsd.in: Likewise.
7486 * util/grub.d/10_linux.in: Likewise.
7487 * util/grub.d/20_linux_xen.in: Likewise.
7488
7bd29c01
VS
74892012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
7490
7491 New command `lsefi'.
7492
7493 * grub-core/Makefile.core.def (lsefi): New module.
7494 * grub-core/commands/efi/lsefi.c: New file.
7495 * include/grub/efi/api.h: Add more GUIDs.
7496
ac625d8f
VS
74972012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
7498
7499 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
7500 (grub_bsd_elf32_hook): Likewise.
7501 (grub_bsd_elf64_size_hook): Likewise.
7502 (grub_bsd_elf64_hook): Likewise.
7503 (grub_bsd_load_elf): Likewise.
7504
e73bb801
VS
75052012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
7506
7507 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
7508 if hash function is unavailable.
7509 (dec_stream_header): Likewise.
7510
e81db8b5
VS
75112012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
7512
7513 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
7514 filter state.
7515
d187a1c3
VS
75162012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
7517
7518 Fix coreboot compilation.
7519
7520 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
7521 (grub_vga_text_init_real): ... this.
7522 (grub_vga_text_fini): Rename to ...
7523 (grub_vga_text_fini_real): ... this.
7524
91a05f64
VS
75252012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
7526
7527 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
7528
6af96df7
VS
75292012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7530
7531 * grub-core/lib/legacy_parse.c: Support clear and testload.
7532
4d569e12
VS
75332012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7534
7535 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
7536
073b57bb
VS
75372012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7538
7539 * grub-core/fs/ext2.c: Experimental support for 64-bit.
7540
a706f4cc
VS
75412012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7542
7543 * grub-core/net/tftp.c (ack): Fix endianness problem.
7544 (tftp_receive): Likewise.
7545 Reported by: Michael Davidsaver.
7546
e7850aa9
VS
75472012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7548
7549 * gentpl.py: Make mans depend on grub-mkconfig_lib.
7550
75512012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7552
7553 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
7554 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
7555 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
7556
35692881
VS
75572012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7558
7559 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
7560 efi_mmap_size.
7561 Reported by: Stuart Hayes.
7562
c35fc5bd
VS
75632012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
7564
7565 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
7566
7567 * grub-core/Makefile.core.def (mda_text): New module.
7568 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
7569 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
7570 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
7571 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
7572 here.
7573 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
7574 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
7575 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
7576 here.
7577 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
7578 to ..
7579 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
7580 ... here
7581 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
7582 here.
7583 * grub-core/term/i386/vga_common.c: Removed.
7584 * include/grub/i386/vga_common.h: Likewise.
7585 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
7586 (grub_vga_cr_bw_read): Likewise.
7587 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
7588 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
7589 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
7590 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
7591 grub_vga_cr_read/grub_vga_cr_write.
7592 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
7593
5f91f701
VS
75942012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
7595
7596 * configure.ac: Bump version to 2.00.
7597 * grub-core/normal/main.c (features): Add feature_200_final.
7598
0c4f85f6
VS
75992012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
76002012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
7601
7602 * NEWS: Fix unclarity and language mistakes.
7603
f923ad22
VS
76042012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
7605
7606 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
7607 additional size to 3 pages.
7608 Reported by: Stuart Hayes.
7609
d22029ba
VS
76102012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
7611
7612 * NEWS: Add 2.00 entry.
7613
58eee08f
VS
76142012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
7615
7616 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
7617 put explicit "/" for empty path.
7618 (wildcard_expand): Improve dprintf.
7619
c59bdff7
VS
76202012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
7621
7622 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
7623 it's equal to currnode. This can happen with "" symlink.
7624
5e6a440a
YB
76252012-06-27 Yves Blusseau <blusseau@zetam.org>
7626
7627 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
7628 echo shell command by printf command.
7629
73a68bcb
VS
76302012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
7631
7632 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
7633 the value returned by firmware is the maximal position, not diumension.
7634 (grub_terminfo_output_state): Use a more sane fallback.
7635
392a603b
VS
76362012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
7637
7638 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
7639
42d0867f
VS
76402012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
7641
7642 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
7643 frequency to 150 MHz.
7644
489509f4
VS
76452012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
7646
7647 Apple fixes.
7648
7649 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
7650 __APPLE_
7651 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
7652 definition.
7653 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
7654
9f3fc883
VS
76552012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
7656
7657 Handle slash in HFS label.
7658
7659 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
7660 (grub_hfs_dir): Tanslate slash.
7661 (grub_hfs_label): Don't translate slash.
7662
54853fd7
VS
76632012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
7664
7665 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
7666 network protocol listing since it introduces problematic dependency on
7667 net module.
7668
4dc02ddf
VS
76692012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
7670
7671 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
7672
c50c867d
VS
76732012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
7674
7675 Init video early on yeeloong to avoid being rebooted by watchdog.
7676
7677 * grub-core/Makefile.am (gensm712): New target.
7678 (sm712_start.S): Likewise.
7679 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
7680 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
7681 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
7682 description.
7683 * include/grub/vga.h: Move registry definitions to...
7684 * include/grub/vgaregs.h: ... here.
7685
5f92c8a1
VS
76862012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
7687
7688 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
7689 signedness.
7690
e9e6f111
VS
76912012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
7692
7693 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
7694 platforms with firmware disk drivers in the core.
7695
754ad9eb
VS
76962012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
7697
7698 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
7699 informative verbose message.
7700 (read_lv): Handle 64-bit segment size.
7701
315654c2
VS
77022012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
7703
7704 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
7705
fb022c79
VS
77062012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
7707
7708 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
7709 character but still remove trainling spaces.
7710 (grub_fat_label): Ignore archive flag.
7711
8645f72c
VS
77122012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
7713
7714 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
7715 cast between linux_kernel_header and linux_kernel_params.
7716
36498496
VS
77172012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
7718
7719 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
7720 type for size.
7721 (grub_raid6_recover_func_t): Likewise.
7722 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
7723 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
7724
0b5ea6b8
VS
77252012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
7726
7727 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
7728
650cfcfe
GS
77292012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
7730
7731 Fix overflow.
7732
7733 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
7734 [__NetBSD__]: Add explicit cast before bitshift.
7735
8a4d6a44
VS
77362012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
7737
7738 * configure.ac: Bump to 2.00~rc1.
7739
2fb97ed3
VS
77402012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
7741
7742 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
7743 half of $a0.
7744
1fa097dc
VS
77452012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
77462012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
7747
7748 * docs/grub.texi: Fix search syntax.
7749 (Multi-boot manual config): Put msdos rather than GPT example.
7750 Grammar corrections.
7751
c890ba78
VS
77522012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
7753
7754 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
7755
0f92dca7
VS
77562012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
7757
7758 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
7759
3988c4a0
VS
77602012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
7761
7762 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
7763 message on double free. Put the value of magic in case of mismatch.
7764
9e86d4c5
VS
77652012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
7766
7767 Speed-up video on yeeloong.
7768
7769 * grub-core/video/sm712.c (framebuffer): Remove render_target and
7770 add cached_ptr.
7771 (grub_video_sm712_video_fini): Unmap cached_ptr.
7772 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
7773 (grub_video_sm712_set_active_render_target): Removed.
7774 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
7775 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
7776 sync caches.
7777
ed24c312
VS
77782012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
7779
7780 Avoid flushing the same line multiple times on loongson.
7781
7782 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
7783 Step in 32 bytes and not 1 byte.
7784 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
7785 Likewise.
7786
d1718e7d
VS
77872012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
7788
7789 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
7790 subvolumes.
7791
982f1909
VS
77922012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
7793
7794 Implement flow control for http.
7795
7796 * grub-core/net/http.c (parse_line): Handle response 206.
7797 (http_receive): Stall if too many packets are in the queue.
7798 (http_establish): Fix range header.
7799 (http_seek): Fix double free.
7800 (http_close): Likewise.
7801 (http_packets_pulled): New function.
7802 (grub_http_protocol): Set http_seek
7803 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
7804 (ack_real): Set window depending on i_stall.
7805 (grub_net_send_tcp_packet): Likewise.
7806 (grub_net_tcp_stall): New function.
7807 (grub_net_tcp_unstall): Likewise.
7808 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
7809 (grub_net_tcp_unstall): Likewise.
7810
bd407d6e
VS
78112012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
7812
7813 * grub-core/net/tftp.c: Decrease stall to 50 packets.
7814
c7564b8e
VS
78152012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
7816
7817 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
7818
a3706162
VS
78192012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
7820
7821 * tests/util/grub-shell.in: Fix a typo.
7822
b27069e0
VS
78232012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
7824
7825 Implement flow control for tftp.
7826
7827 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
7828 packets but stop only if stop condition is satisfied.
7829 (grub_net_fs_read_real): Call packets_pulled after real read. Use
7830 `stall' instead of `eof' as stop condition.
7831 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
7832 (http_err): Likewise.
7833 * grub-core/net/tftp.c (ack): Replace the first argument with data
7834 instead of socket.
7835 (tftp_receive): Stall if too many packets are in wait queue.
7836 (tftp_packets_pulled): New function.
7837 (grub_tftp_protocol): Set packets_pulled.
7838 * include/grub/net.h (grub_net_packets): New field count.
7839 (grub_net_put_packet): Increment count.
7840 (grub_net_remove_packet): Likewise.
7841 (grub_net_app_protocol): New field `packets_pulled'.
7842 (grub_net): New field `stall'.
7843
6b9cfac6
VS
78442012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
7845
7846 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
7847 sync part to handle them.
7848
f35abd81
VS
78492012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
7850
7851 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
7852 * grub-core/net/drivers/ieee1275/ofnet.c
7853 (grub_ieee1275_net_config_real): Likewise.
7854
0e7ec820
VS
78552012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
7856
7857 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
7858 the direct route for server/gateway.
7859
9d611a31
VS
78602012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
7861
7862 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
7863 IP address to server name since we may not hame the DNS.
7864
418f45ab
VS
78652012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
7866
7867 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
7868 freeing random buffer on failure.
7869 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
7870
44a0efc1
VS
78712012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
7872
7873 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
7874
531e2241
VS
78752012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
7876
7877 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
7878 reserved bytes.
7879 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
7880 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
7881 Handle malloc error correctly.
7882
cde393c9
VS
78832012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
7884
7885 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
7886 blocks.
7887
538478d0
VS
78882012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
7889
7890 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
7891 increment.
7892
9b55efe0
VS
78932012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
7894
7895 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
7896 none is explicitly specified.
7897
9eb832c3
VS
78982012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
7899
7900 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
7901 while reallocating.
7902
d6b7c7c9
VS
79032012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
7904
7905 Respect netmask from bootp/dhcp.
7906
7907 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
7908 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
7909 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
7910 into ...
7911 (grub_net_add_ipv4_local): ... this.
7912 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
7913 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
7914 (grub_net_add_ipv4_local): New proto.
7915
67caf9eb
VS
79162012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
7917
7918 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
7919 determining EFI memory map size.
7920
43657558
VS
79212012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
7922
7923 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
7924
eb6d0dd3
VS
79252012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
7926
7927 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
7928 when looking for partition separator.
7929
31230544
VS
79302012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
7931
7932 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
7933 Escape commas.
7934
918a2517
VS
79352012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
7936
7937 Restructure FAT driver to avoid hook in label reading as it hits a
7938 GCC bug.
7939
7940 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
7941 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
7942 (grub_fat_iterate_dir): Split into ...
7943 (grub_fat_iterate_init): ... this, ...
7944 (grub_fat_iterate_fini): ... this, ...
7945 (grub_fat_iterate_dir_next): ... and this. All users updated.
7946
9f1d654e
VS
79472012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
7948
7949 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
7950 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
7951 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
7952 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
7953 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
7954 New fields last_key and last_key_time.
7955 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
7956 extended key-esc into extended key-extended key.
7957
52f0f643
VS
79582012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
7959
7960 Avoid unnecessary memcpy of whole video buffer.
7961
7962 * grub-core/video/fb/video_fb.c (dirty): New struct.
7963 (framebuffer): Add members current_dirty and previous_dirty.
7964 (dirty): New function.
7965 (grub_video_fb_fill_rect): Update dirty.
7966 (common_blitter): Likewise.
7967 (grub_video_fb_scroll): Likewise.
7968 (doublebuf_blit_update_screen): Copy only dirty part.
7969 (doublebuf_pageflipping_update_screen): Likewise.
7970 (grub_video_fb_doublebuf_blit_init): Init dirty.
7971 (doublebuf_pageflipping_init): Likewise.
7972 (grub_video_fb_setup): Likewise.
7973
e169a180
VS
79742012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
7975
7976 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
7977 poll rate.
7978
48556879
VS
79792012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
7980
7981 Fix wildcard regexp dot and other special characters handling.
7982 Reported by: Robert Mabee.
7983
7984 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
7985 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
7986 (split_path): Trigger expansion on '?'.
7987 (unescape): New function.
7988 (wildcard_expand): Unescape parts copied without globbing.
7989 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
7990 (grub_script_arglist_to_argv): Don't unescape expansions.
7991
0494408e
VS
79922012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
7993
7994 * include/grub/net.h (grub_net_card): New member txbufsize.
7995 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
7996 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
7997 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
7998 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
7999 txbufsize.
8000 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
8001 compatible property to check for macs. Set
8002 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
8003 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
8004 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
8005 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
8006 (send_card_buffer): Use txbuf.
8007 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
8008 nested function out of the parent while on it.
8009
cc35fe8f
VS
80102012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
8011
8012 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
8013 presence check.
8014 (grub_ieee1275_net_config_real): Fix config pointer.
8015
970a0a09
VS
80162012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
8017
8018 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
8019 filename parsing to non-block devices.
8020
3e19bf87
VS
80212012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
8022
8023 * grub-core/kern/device.c (grub_device_open): Remove dead code.
8024
c62d1a0c
VS
80252012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
8026
8027 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
8028 All users updated.
8029
ef76bec3
VS
80302012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
8031
8032 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
8033 UUID search command even if hints probing failed.
8034
80352012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
555c786d
VS
8036
8037 * po/POTFILES.in: Regenerated.
8038
70aaf305
VS
80392012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
8040
8041 Speed-up video on fuloong.
8042
8043 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
8044 New function.
8045 (grub_pci_device_unmap_range): Handle non-cached address.
8046 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
8047 add direct_ptr.
8048 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
8049 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
8050 (grub_video_sis315pro_set_active_render_target): Removed.
8051 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
8052 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
8053 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
8054 sync caches.
8055 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
8056 New proto.
8057
10400f0b
VS
80582012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
8059
8060 * docs/grub.texi (Multi-boot manual config): New section.
8061
ba67e2c6
VS
80622012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
8063
8064 Avoid slow read-back from VRAM.
8065
8066 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
8067 Move from here ...
8068 * grub-core/video/fb/video_fb.c
8069 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
8070 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
8071 (front_target): Remove front_target. Add pages.
8072 (grub_video_fb_init): Skip setting front_pages.
8073 (grub_video_fb_fini): Likewise.
8074 (doublebuf_blit_update_screen): Use pages.
8075 (grub_video_fb_doublebuf_blit_init): Likewise.
8076 (doublebuf_pageflipping_init): Allocate offscreen buffer.
8077 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
8078 (grub_video_fb_setup): Prefer doublebuffing.
8079
377c98cb
VS
80802012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
8081
8082 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
8083 gzio.
8084
eac49cff
VS
80852012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
8086
8087 Add loongson tests.
8088
8089 * tests/util/grub-shell.in: Handle loongson.
8090 * tests/partmap_test.in: Add loongson to the list of platform using ATA
8091 drivers.
8092 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
8093 Reboot instead of shutdown if REBOOT is defined.
8094
0321415e
VS
80952012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
8096
8097 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
8098 sized ports since unlike on real hardware qemu supports only 32-bit
8099 regs.
8100
3f2bdd8f
VS
81012012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
8102
8103 * Makefile.util.def (grub-mkrescue): Enable on loongson.
8104 * util/grub-mkrescue.in: Handle loongson.
8105
29a049c9
VS
81062012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
8107
8108 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
8109 Set is_part appropriately.
8110 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
8111 names. Canonicalize partition without full disk.
8112
4abde346
VS
81132012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
8114
8115 Revert usb-quiesce since it's wrong.
8116
8117 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
8118 (grub_ofdisk_init): Don't do quiesce.
8119
61f1d93b
VS
81202012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
8121
8122 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
8123 PowerMac workaround to Xserves as well.
8124 Information supplied by: Benjamin Herrenschmidt.
8125
a09eb541
VS
81262012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
8127
8128 Don't assume that beginning address is also the entry point on ppc.
8129
8130 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
8131 (grub_linux_boot): Use linux_entry.
8132 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
8133 (grub_linux_load64): Likewise.
8134
505b3c9b
VS
81352012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
8136
8137 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
8138
cbe0b4ef
VS
81392012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
8140
8141 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
8142 needlessly lose the console.
8143
3006e981
VS
81442012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
8145
8146 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
8147 space.
8148
4e5a96b0
VS
81492012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
8150
7da036bb
VS
8151 Remove non-functional EFI grub_get_rtc. Put a better fatal message
8152 than current grub_get_rtc() not implemented when booted with
8153 coreboot without TSC.
8154
8155 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
8156 Add machine/time.h to kernel headers on loongson.
8157 * grub-core/Makefile.core.def (kernel): Remove
8158 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
8159 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
8160 (grub_get_rtc): Likewise.
8161 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
8162 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
8163 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
8164 * grub-core/kern/i386/tsc.c (grub_tsc_init)
8165 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
8166 rather than installing known non-working time source.
8167 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
8168 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
8169 * include/grub/time.h: Don't include machine/time.h.
8170 * include/grub/efi/time.h: Removed.
8171 * include/grub/i386/efi/time.h: Likewise.
8172 * include/grub/i386/ieee1275/time.h: Likewise.
8173 * include/grub/powerpc/ieee1275/time.h: Likewise.
8174 * include/grub/sparc64/ieee1275/time.h: Likewise.
8175 * include/grub/x86_64/efi/time.h: Likewise.
8176
81772012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
8178
8179 Remove dot on i and j when combining with above diacritics.
4e5a96b0
VS
8180
8181 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
8182 value.
8183 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
8184 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
8185 with dotless variants when any combining above is present.
8186
5561c22d
VS
81872012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
8188
8189 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
8190 text and not binary.
8191
96f7e60e
VS
81922012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
8193
8194 Stop polling as soon as we have the packet we were waiting for.
8195
8196 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
8197 All users updated.
8198 * grub-core/net/arp.c (have_pending): New var.
8199 (pending_req): Likewise.
8200 (grub_net_arp_send_request): Fill pending_req and use have_pending as
8201 stop indicator.
8202 (grub_net_arp_receive): Set have_pending.
8203 * grub-core/net/dns.c (recv_data): New field stop.
8204 (recv_hook): Set stop.
8205 (grub_net_dns_lookup): Init stop and use as stop condition.
8206 * grub-core/net/http.c (http_establish): Use headers_recv as stop
8207 condition.
8208 * grub-core/net/net.c (grub_net_poll_cards): New argument
8209 stop_condition. Stop when it goes true.
8210 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
8211 indicator.
8212 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
8213
3e747239
VS
82142012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
8215
8216 Keep TX and RX buffers on EFI rather than always allocate new ones.
8217
8218 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
8219 card. All users updated.
8220 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
8221 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
8222 (get_card_packet): Likewise.
8223 (grub_efinet_findcards): Init new fields.
8224
f695e99a
VS
82252012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
8226
8227 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
8228 compilation error on sparc64.
8229
9e5e66d1
VS
82302012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
8231
8232 Use ITC on IA64 rather than broken routine based on daytime.
8233
8234 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
8235 ia64.
8236 (grub_get_rtc) [__ia64__]: Likewise.
8237 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
8238 (get_itc): New function.
8239 (grub_rtc_get_time_ms): Likewise.
8240 (grub_machine_init): Calibrate ITC.
8241 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
8242 Keep only on non-ia64. Don't export since it's broken and used only
8243 if TSC is unavailable.
8244
a1767404
VS
82452012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
8246
8247 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
8248 even if it's used.
8249 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
8250 Skip if parent is unused.
8251
34b2bced
VS
82522012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8253
8254 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
8255
5e619f40
VS
82562012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8257
8258 Fix wildcard escaping.
8259
8260 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
8261 * grub-core/script/execute.c (wildcard_escape): .. to here.
8262 Don't escape dot.
8263 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
8264 * grub-core/script/execute.c (wildcard_unescape): .. to here.
8265 Don't escape dot.
8266 * grub-core/script/execute.c (gettext_append): Always escape.
8267 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
8268 * grub-core/script/yylex.l: Don't cut away the escaping.
8269 * tests/grub_script_echo1.in: Add tests with wildcard.
8270
c8ca5855
VS
82712012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8272
8273 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
8274 (ftdi_hw_configure): Likewise.
8275 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
8276 define.
8277 (real_config): Handle 1.5 stop bits.
8278 (pl2303_hw_configure): Likewise.
8279
7183452c
VS
82802012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8281
8282 * Makefile.am: Add ppc linux bootcheck.
8283 * grub-core/tests/boot/linux-ppc.cfg: New file.
8284 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
8285
f57c84cd
VS
82862012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8287
8288 * tests/grub_script_expansion.in: Skip network protocols.
8289
ecfc6207
VS
82902012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8291
8292 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
8293
8d03d284
VS
82942012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8295
8296 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
8297 --rom-directory.
8298 Add -graft-points.
8299
61c42af0
VS
83002012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8301
8302 ESCC serial driver for conducting sautomated tests in qemu.
8303 Not tested on real hardware.
8304
8305 * include/grub/serial.h (grub_serial_port): New field escc_desc.
8306 * grub-core/term/ieee1275/escc.c: New file.
8307 * grub-core/Makefile.core.def (escc): New module.
8308
08fd1291
VS
83092012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8310
8311 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
8312 invalid on error.
8313 (serial_hw_fetch): Don't read invalid handle.
8314 (serial_hw_put): Don't write into invalid handle.
8315
08dafeea
VS
83162012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8317
8318 Add a 1.5 stop bits value.
8319
8320 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
8321 * include/grub/serial.h (grub_serial_stop_bits_t): Add
8322 GRUB_SERIAL_STOP_BITS_1_5.
8323
9068fdcf
VS
83242012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8325
8326 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
8327 value rather than let it uninited.
8328
f4d5820f
VS
83292012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8330
8331 * grub-core/commands/wildcard.c (+check_file): New function.
8332 (wildcard_expand): Don't expand to non-existing files, expand with
8333 suffix and not attempt to expand if not needed.
8334
3d2de9a7
VS
83352012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8336
8337 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
8338 out of partitions containing other partitions.
8339
c5c81ff9
VS
83402012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8341
8342 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
8343 on some qemu versions with GRUB.
8344
8345 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
8346 define.
8347 (grub_openbsd_bootarg_pcibios): New struct.
8348 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
8349 Add PCIINFO.
8350
08a14e0b
VS
83512012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8352
8353 * tests/util/grub-shell.in: Trim firmware output on EFI.
8354
cede3ca3
VS
83552012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8356
8357 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
8358 and coreboot since it's already in kernel.
8359
558d3a60
VS
83602012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8361
8362 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
8363 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
8364 to here. New return value start. All users updated.
8365 Recursively scan linear mappings.
8366 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
8367 proto.
8368 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
8369 Use grub_util_get_dm_node_linear_info.
8370 * util/getroot.c (convert_system_partition_to_system_disk): Use
8371 grub_util_info rather than grub_dprintf.
8372 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
8373
60fde14d
VS
83742012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8375
8376 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
8377
8378 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
8379 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
8380
24bd8838
VS
83812012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8382
8383 * include/grub/types.h (grub_set_unaligned64): New function.
8384 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
8385 (setup): Likewise.
8386
7bc06a49
VS
83872012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8388
8389 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
8390 (grub_ofdisk_fini): Quiesce USB devices.
8391
49cea015
VS
83922012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8393
8394 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
8395 caches.
8396
8dcbe03b
VS
83972012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8398
8399 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
8400
5b258735
VS
84012012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8402
8403 * grub-core/disk/pata.c (grub_pata_pio_read)
8404 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
8405 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
8406
37ba07eb
VS
84072012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8408
8409 Extend automated tests to qemu-mips.
8410
8411 * Makefile.am: reorganise tests and enable qemu-mips.
8412 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
8413 * grub-core/tests/boot/linux.init-mips.S: New file.
8414 * tests/partmap_test.in: Handle ata0 disks.
8415 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
8416 non-pc i386.
8417
070038f8
VS
84182012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8419
8420 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
8421 ia64.
8422 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
8423 quotes while on it.
8424
004be2cd
VS
84252012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8426
8427 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
8428 (grub_halt): Likewise.
8429 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
8430
b1622487
VS
84312012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8432
8433 * grub-core/term/serial.c (grub_serial_register)
8434 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
8435 the behaviour in line with x86 platforms.
8436
b7b4ab33
VS
84372012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8438
8439 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
8440 (grub_ata_strncpy): Likewise.
8441 (grub_ata_identify): Add missing byteswaps.
8442
5e3535ae
VS
84432012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8444
8445 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
8446 byte-swap.
8447 (screen_read_char): Likewise.
8448 (grub_vga_text_cls): Likewise.
8449
c21b17e6
VS
84502012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8451
8452 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
8453 filenames.
8454 (make_file_path): Likewise.
8455
bf293dec
VS
84562012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8457
8458 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
8459 machines.
8460 Tested by: Paulo Flabiano Smorigo.
8461 Crucial information about API supplied by: Coleen <Last name unknown>.
8462 Reviewed by: Coleen <Last name unknown>.
8463
81f6ef0e
VS
84642012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
8465
8466 * util/grub-mkimage.c: Disable -Wcast-align.
8467
7284143a
VS
84682012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
8469
8470 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
8471 as they are fatal.
8472
b99f3e00
VS
84732012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
8474
8475 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
8476
944f752d
VS
84772012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
8478
8479 * util/grub-probe.c (escape_of_path): Fix double free.
8480
6cce6f38
VS
84812012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
8482
8483 * grub-core/commands/videoinfo.c (hook): Show pitch.
8484
1e1eb50e
VS
84852012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
8486
8487 * util/grub.d/20_linux_xen.in: Skip xen-syms.
8488
1c715b5a
VS
84892012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
8490
8491 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
8492 (probe): Add ieee1275 to OFW devices.
8493
007ae52d
VS
84942012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
8495
8496 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
8497
4557a36d
VS
84982012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
8499
8500 Handle IBM OFW path.
8501
8502 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
8503 available.
8504 (of_path_of_scsi): Handle vdevice.
8505
efbeefe9
VS
85062012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
8507
8508 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
8509 Allocate in multiples of 16 to avoid adding a few bytes free region the
8510 windows bugs upon.
8511
15a940bb
VS
85122012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
8513
8514 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
8515 Allocate in multiples of 16 to avoid adding a few bytes free region the
8516 windows bugs upon.
8517 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
8518
6e5efd60
VS
85192012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
8520
8521 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
8522 resolutions.
8523 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
8524 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
8525
0d3d137e
IS
85262012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
8527
8528 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
8529
45dbe300
VS
85302012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
8531
8532 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
8533 resulted in \\ at the end of the line.
8534
6d8db947
VS
85352012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
8536
8537 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
8538 (grub_parser_cmdline_state): Likewise.
8539 (grub_parser_split_cmdline): Likewise.
8540
de89d338
VS
85412012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
8542
8543 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
8544 /dev/root and /dev/dm-*.
8545
00d41dee
VS
85462012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
8547
8548 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
8549 fix partially stale display.
8550
f95d1f11
VS
85512012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
8552
8553 * grub-core/normal/menu_entry.c (backward_char): Use right line for
8554 substraction.
8555
6297e197
VS
85562012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
8557
8558 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
8559 Fix MBR remapping workaround.
8560 (grub_util_biosdisk_read) [__linux__]: Likewise.
8561
8a7ecad3
VS
85622012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
8563
8564 * util/grub-install.in: Check for ieee1275 and not ieee1276.
8565
2b34f944
VS
85662012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
8567
8568 * configure.ac: Bump to beta6.
8569
684aef11
CW
85702012-05-31 Christer Weinigel <christer@weinigel.se>
8571
8572 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
8573
05b0bb91
VS
85742012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
8575
8576 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
8577 (grub_cmd_linux): Likewise.
8578
bda36bfa
CW
85792012-05-31 Christer Weinigel <christer@weinigel.se>
8580
8581 Fix EHCI low-speed.
8582
8583 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
8584 (GRUB_EHCI_MULT_TWO): Likewise.
8585 (GRUB_EHCI_MULT_THREE): Likewise.
8586 (GRUB_EHCI_CMASK_MASK): New enum value.
8587 (GRUB_EHCI_SMASK_MASK): Likewise.
8588 (GRUB_EHCI_CMASK_OFF): Likewise.
8589 (GRUB_EHCI_SMASK_OFF): Likewise.
8590 (grub_ehci_pci_iter): Enable periodic schedule.
8591 (grub_ehci_parse_notrun): Likewise.
8592 (grub_ehci_restore_hw): Likewise.
8593 (grub_ehci_setup_qh): Set flags for low speed transfers.
8594 (grub_ehci_find_qh): Use periodic list for low speed.
8595 (grub_ehci_setup_transfer): Check periodic queue as well.
8596 (grub_ehci_check_transfer): Likewise.
8597 (grub_ehci_cancel_transfer): Cancel periodic transfer.
8598
e12bcb1c
PFS
85992012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8600
8601 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
8602 parameter is used.
8603
bcc75fb3
PJ
86042012-05-31 Peter Jones <pjones@redhat.com>
8605
8606 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
8607 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
8608 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
8609
f19cb95e
VS
86102012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
8611
8612 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
8613 uninited variable. Allocate at least setup_sects.
8614
a4e5ca80
VS
86152012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
8616
8617 Fix handling of EFI with big memory maps.
8618
8619 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
8620 (real_mode_mem): Likewise.
8621 (real_mode_target): Likewise.
8622 (real_mode_pages): Likewise.
8623 (prot_mode_pages): Likewise.
8624 (linux_params): New var.
8625 (linux_cmdline): Likewise.
8626 (free_pages): Don't set real mode variables.
8627 (allocate_pages): Don't allocate real mode memory.
8628 (grub_e820_add_region): Remove the limit.
8629 (grub_linux_boot): Allocate and copy real mode memory.
8630 (grub_linux_unload): Free linux_cmdline.
8631 (grub_cmd_linux): Use temporary storage for parameters.
8632 (grub_cmd_initrd): Likewise.
8633 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
8634 (linux_kernel_params): Make it 1K big.
8635
ddb73558
VS
86362012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
8637
8638 * Makefile.util.def: Remove -Wno-format.
8639 * grub-core/Makefile.core.def: Likewise.
8640
1c4afb60
VS
86412012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
8642
8643 * tests/cmp_unit_test.c: Add missing failure message.
8644 * tests/example_unit_test.c: Likewise.
8645 * tests/printf_unit_test.c: Likewise.
8646
941e3a6d
VS
86472012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
8648
8649 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
8650 relaxation of protective MBR requirements.
8651
b105df76
VS
86522012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
8653
8654 * configure.ac: Add condition for COND_HOST_XNU.
8655 * Makefile.util.def (10_xnu): New script.
8656 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
8657
84e1569e
VS
86582012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
8659
8660 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
8661 objconv bug.
8662
130c0f77
VS
86632012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
8664
8665 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
8666 Binary on other platforms stays identical.
8667
6fd0b143
VS
86682012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
8669
8670 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
8671 Apple.
8672
0af1751d
VS
86732012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
8674
8675 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
8676
176d5f7d
VS
86772012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
8678
8679 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
8680 rather than defining size_t ourselves to avoid conflict.
8681
7de5e20a
VS
86822012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
8683
8684 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
8685 initialisation to avoid __bzero reference.
8686
f7143efe
VS
86872012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
8688
8689 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
8690 version.
8691 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
8692 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
8693 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
8694 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
8695 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
8696
e6ad0555
VS
86972012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
8698
8699 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
8700 * grub-core/kern/misc.c: Likewise.
8701 * grub-core/loader/i386/xnu.c: Likewise.
8702 * include/grub/i386/tsc.h: Likewise.
8703 * include/grub/symbol.h: Likewise.
8704
4a5a3c4a
VS
87052012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
8706
8707 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
8708 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
8709 on older compiler.
8710
037f6d90
VS
87112012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
8712
8713 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
8714 Implement Apple flavour.
8715 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
8716
f7194551
VS
87172012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
8718
8719 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
8720 (memmove) [__APPLE__]: Likewise.
8721 (memcpy) [__APPLE__]: Likewise.
8722 (memset) [__APPLE__]: Likewise.
8723 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
8724 (memmove) [__APPLE__]: Likewise.
8725 (memcpy) [__APPLE__]: Likewise.
8726 (memset) [__APPLE__]: Likewise.
8727
85a730ca
VS
87282012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
8729
8730 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
8731 dependency discard.
8732
40e80b94
VS
87332012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8734
8735 * grub-core/normal/main.c (read_config_file): Provide config_file and
8736 config_directory.
8737 * util/grub.d/41_custom.in: Use config_directoy when available.
8738
9da59c32
VS
87392012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8740
8741 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
8742 (grub_bfs_dir): Likewise.
8743
2787ae53
PJ
87442012-05-27 Peter Jones <pjones@redhat.com>
8745
8746 The old code gives arguments to a printf function which can't work
8747 correctly, and the compiler complains.
8748
8749 * grub-core/tests/example_functional_test.c (example_test): Add
8750 missing text.
8751 * grub-core/tests/lib/test.c (add_failure): Rewrite.
8752 * include/grub/test.h (grub_test_assert_helper): New declaration.
8753 (grub_test_assert): Use grub_test_assert_helper.
8754
526ef13d
VS
87552012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8756
8757 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
8758 (exfctest): ... this to avoid overlong filenames.
8759 All users updated.
8760
20dd511c
VS
87612012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8762
8763 Handle "." and ".." on squashfs.
8764
8765 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
8766 Make inode numbers into stack.
8767 (grub_squash_read_symlink): Use stack.
8768 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
8769 (make_root_node): Fill stack.
8770 (grub_squash_open): Use stack.
8771
1d80c62a
VS
87722012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8773
8774 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
8775 freeing.
8776
d336f652
VS
87772012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8778
8779 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
8780 stderr on test calls.
8781
8b43f587
VS
87822012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8783
8784 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
8785
80a3dc3f
VS
87862012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8787
8788 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
8789
47e297d4
VS
87902012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8791
8792 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
8793 "..".
8794
df042ccb
VS
87952012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8796
8797 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
8798 (grub_hfsplus_iterate_dir): Add "." and "..".
8799
fc977f48
VS
88002012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8801
8802 * grub-core/fs/cpio.c (canonicalize): Handle "..".
8803 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
8804
f3250e5f
VS
88052012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8806
8807 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
8808 (find_path): Handle "." and "..".
8809
fd8ed4c5
VS
88102012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8811
8812 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
8813 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
8814 (grub_affs_iterate_dir): Handle hardlinks.
8815
4ce776d2
MG
88162012-05-26 Matthew Garrett <mjg@redhat.com>
8817
8818 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
8819 (grub_efi_console_fini): Likewise.
8820 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
8821 (grub_video_gop_fill_mode_info): Rename to ...
8822 (grub_video_gop_fill_real_mode_info): ... this.
8823 (grub_video_gop_fill_mode_info): New function.
8824 (grub_video_gop_setup): Setup double framebuffer.
8825 (grub_video_gop_get_info_and_fini): Use original framebuffer.
8826 Free offscreen.
8827 (grub_video_gop_swap_buffers): Copy framebuffer.
8828 (grub_video_gop_fini): Free offscreen buffer.
8829 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
8830 New enum.
8831 (grub_efi_gop_blt_pixel): New struct.
8832
683031ba
VS
88332012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
8834
8835 * gentpl.py: Remove error disabling for objconv.
8836
c2deb798
VS
88372012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
8838
8839 * configure.ac: Remove -Wunitialized as it's not available on older
8840 compilers.
8841
88422012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
77ceedb6
VS
8843
8844 Fix extent overflow comparator.
8845
8846 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
8847 (grub_hfsplus_read_block): Set type.
8848 (grub_hfsplus_cmp_extkey): Compare type.
8849
d6b1fd36
VS
88502012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
8851
8852 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
8853
0a9aa0f6
VS
88542012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
8855
8856 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
8857 than 0.
8858
8360e159
VS
88592012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
8860
8861 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
8862 (dejavu_bold_14.pf2): New target.
8863
501b9e4b
VS
88642012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
8865
8866 * configure.ac: Fix djvu font detection.
8867
7026b0e2
VS
88682012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
8869
8870 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
8871 ext* instead of ext2.
8872
c2a51ade
VS
88732012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
8874
8875 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
8876 name with \0.
8877
8f803a5d
JU
88782012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
8879
8880 * docs/grub-dev.texi: Remove dot from .png.
8881
13c6353f
VS
88822012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
8883
8884 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
8885 protective entry in any slot.
8886 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
8887 if protective entry is found in any slot.
8888
8889 Protective entry in non-first slot make no sense but is a widespread
8890 brain damage.
8891
4cf6be1b
VS
88922012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
8893
8894 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
8895
937d1c44
VS
88962012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
8897
8898 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
8899 with old reiserfs.
8900 (grub_reiserfs_open): Don't free root.
8901
021d90ec
VS
89022012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
8903
8904 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
8905 after freeing for safety.
8906
967b2b64
VS
89072012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
8908
8909 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
8910 Reported by: Jordan Uggla.
8911
34274d02
JU
89122012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
8913
967b2b64
VS
8914 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
8915 actual implementation. Specifically, clarify that the grub menu will
8916 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
8917 passed.
34274d02 8918
dcaaae9d
BH
89192012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
8920
8921 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
8922 of r0.
8923
7086ad52
VS
89242012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
8925
8926 Remove unjustified hard dependency of normal.mod on gfxterm.
8927
8928 * include/grub/term.h (grub_term_output): New member fullscreen.
8929 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
8930 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
8931 (grub_gfxterm): Set .fullscreen.
8932 * grub-core/normal/menu.c (menu_init): Use fullscreen.
8933 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
8934
37ed2c9b
VS
89352012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
8936
8937 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
8938 mentioning possible problems with non-ASCII (non-compliant) ISOs.
7086ad52 8939 Mention case-insensitive AFFS, SFS and JFS.
37ed2c9b 8940
a4469c88
VS
89412012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
8942
8943 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
8944
4e461486
VS
89452012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
8946
8947 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
8948 a bad FS.
8949
aa78f5c4
VS
89502012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
8951
8952 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
8953 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
8954
197626b5
VS
89552012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
8956
8957 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
8958 (grub_jfs_mount): Fill caseins.
8959 (grub_jfs_find_file): Respect caseins.
8960
8ad3f28c
VS
89612012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
8962
8963 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
8964 through UTF-16.
8965
0c6c324e
VS
89662012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
8967
8968 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
8969 New argument origpath. All users updated.
8970
c6666ba6
VS
89712012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
8972
8973 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
8974 (read_attr): Ensure that we read start of possibly compressed block.
8975
e28e5fe5
VS
89762012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
8977
8978 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
8979 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
8980 All users updated.
8981
5fc23ab2
VS
89822012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
8983
8984 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
8985 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
8986 (dejavu.pf2): Replace with ...
8987 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
8988 this.
8989
79dbc21c
VS
89902012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
8991
8992 * util/grub.d/20_linux_xen.in: Add missing line.
8993
d2fcfb0c
VS
89942012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
8995
8996 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
8997 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
8998 (grub_utf16_to_utf8): Likewise.
8999
5560e9d6
VS
90002012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
9001
9002 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
9003 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
9004 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
9005 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
9006 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
9007 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
9008
90092012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
bfb320c6
VS
9010
9011 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
9012 a bad FS.
9013
5560e9d6 90142012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
def3df75
VS
9015
9016 * grub-core/fs/udf.c (read_string): Bail out on size=0.
9017 (grub_udf_read_symlink): Handle read_string failure.
9018
5eae3175
VS
90192012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
9020
9021 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
9022 comment.
9023
c1ad82db
VS
90242012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
9025
9026 Fix handling of UDF symlinks.
9027
9028 * grub-core/fs/udf.c (read_string): New argument outbuf.
9029 All users updated.
9030 (grub_ufs_read_symlink): Rename to ...
9031 (grub_udf_read_symlink): ... this. All users updated.
9032 Handle symlinks with more than one component.
9033
33eca6e0
VS
90342012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
9035
9036 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
9037 symlinks. Replace leading colon with a slash.
9038
57f4a70b
VS
90392012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
9040
9041 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
9042 filename.
9043
38c8ee20
VS
90442012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
9045
9046 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
9047 match in inner node.
9048
2e57f28f
VS
90492012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
9050
9051 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
9052 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
9053 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
9054 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
9055 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
9056 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
9057 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
9058 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
9059 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
9060
fe8c2f11
VS
90612012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
9062
9063 Use grub-probe and not cmp to check that disk is empty.
9064
9065 * util/grub-install.in: Use grub-probe for zero-check.
9066 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
9067 (probe): Handle PRINT_ZERO_CHECK.
9068 (argp_parser): Handle -t zero_check.
9069
90702012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
f1a6254c
VS
9071
9072 Flush block cache on adding disk to device map.
9073
9074 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
9075 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
9076 adding.
9077 (read_device_map): Likewise.
9078 (open_device): Flush on opening.
9079
690434e8
VS
90802012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
9081
9082 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
9083 (handle_symlink): Fix off-by-one error.
9084 Canonicalize the target.
9085 (grub_cpio_dir): Canonicalize the name.
9086 Fix memory leak.
9087 Set directory.
9088 (grub_cpio_open): Canonicalize the name.
9089
742d2be6
VS
90902012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
9091
9092 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
9093 handling.
9094
3244fe96
VS
90952012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
9096
9097 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
9098 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
9099
8aeb1837
VS
91002012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
9101
9102 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
9103 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
3244fe96 9104 All users updated.
8aeb1837 9105
9133fd05
VS
91062012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
9107
9108 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
9109 counterpart.
9110
6d521c5b
VS
91112012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
9112
9113 Fix UFS1 big file support.
9114
9115 * grub-core/fs/ufs.c (INODE): Removed.
9116 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
9117 64-bit.
9118 (INODE_MODE): Simplify.
9119 (grub_ufs_inode): Use uint64_t for size and not int64_t.
9120 (grub_ufs_lookup_symlink): Don't use INODE.
9121
21b82e17
VS
91222012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
9123
9124 Fix minixfs with non-power-of-two blocks since it's supported by minix.
9125
9126 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
9127 (grub_minix_data): Replace log_block_size with block_size.
9128 (grub_minix_read_file): Use block_size but avoid 64-bit division.
9129 (grub_minix_mount): Fill block_size.
9130
91312012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
319621d0
VS
9132
9133 * configure.ac: Bump to beta5.
9134
f417ed04
VS
91352012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
9136
9137 Fix wrapped HFS+ handling.
9138
9139 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
9140 blocks_start. All users updated.
9141 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
9142 wrapping offset.
9143 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
9144
607d282b
VS
91452012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
9146
9147 Fix long symlinks on reiserfs.
9148
9149 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
9150 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
9151 (grub_reiserfs_iterate_dir): Save size for non-directories.
9152 (grub_reiserfs_open): Don't reread stat block as we already know the
9153 size.
9154 (grub_reiserfs_read): Split into...
9155 (grub_reiserfs_read_real): ... and ...
9156 (grub_reiserfs_read): ...this.
9157
ae16024d
VS
91582012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
9159
9160 Fix non-indexed JFS.
9161
9162 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
9163 (grub_jfs_data): New field namecomponentlen.
9164 (grub_jfs_mount): Fill namecomponentlen.
9165 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
9166
eea1e26e
VS
91672012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
9168
9169 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
9170 * tests/grub_script_echo1.in: Add tests.
9171
df760f77
VS
91722012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
9173
9174 * util/grub-install.in: Ignore empty devicetree directory.
9175
5efb817d
B
91762012-05-08 Bean <bean123ch@gmail.com>
9177
9178 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
9179 All users updated.
9180 (free_rsm): Free header as well.
9181 (free_old_fragments): Fix memory leak.
9182 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
9183 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
9184 (destroy_pq): Likewise.
9185 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
9186
668ea6d2
VS
91872012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
9188
9189 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
9190 resulting hash as a precaution.
9191
1739b1fe
VS
91922012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
9193
9194 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
9195 '_' in variable names.
9196 * grub-core/net/net.c (grub_net_network_level_interface_register):
9197 Likewise.
9198
6ae485aa
VS
91992012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
9200
9201 Fix AFFS with non-512B blocks.
9202
9203 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
9204 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
9205 (grub_affs_data): Replace blocksize with log_blocksize.
9206 (grub_affs_read_block): Fix non-512B blocks.
9207 (grub_affs_read_symlink): Likewise.
9208 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
9209 (grub_affs_read): Fix non-512B blocks.
9210 (grub_affs_label): Likewise.
9211 (grub_affs_mtime): Likewise.
9212 (grub_affs_mount): Fix block detection routine.
9213
d20fab84
VS
92142012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
9215
9216 Add filesystem mtime to AFFS.
9217
9218 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
9219 (aftime2ctime): New function.
9220 (grub_affs_dir): Use aftime2ctime.
9221 (grub_affs_label): Fix return value.
9222 (grub_affs_mtime): New function.
9223 (grub_affs_fs): Add mtime.
9224
e87b10f5
VS
92252012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
9226
9227 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
9228 UTF-8.
9229
7dceec9b
VS
92302012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
9231
9232 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
9233 UTF-8.
9234
2f48221f
VS
92352012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
9236
9237 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
9238
dacd85cf
VS
92392012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
9240
9241 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
9242 flags.
9243 (FLAGS_CASE_SENSITIVE): New enum value.
9244 (cache_entry): New struct.
9245 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
9246 cache_size and cache.
9247 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
9248 Add log_blocksize and fshelp_flags.
9249 (grub_sfs_read_extent): Handle non-512 blocks.
9250 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
9251 (grub_sfs_read_file): Handle non-512 blocks.
9252 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
9253 fshelp_flags.
9254 (grub_sfs_read_symlink): Handle non-512 blocks.
9255 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
9256 (grub_sfs_dir): Free cache.
9257 (grub_sfs_close): Likewise.
9258
24e9a854
VS
92592012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
9260
9261 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
9262 filesystems.
9263
62ace64d
VS
92642012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
9265
9266 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
9267
83b2e89c
VS
92682012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
9269
9270 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
9271
75ccaea3
VS
92722012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
9273
9274 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
9275 (grub_sfs_read_extent): Likewise.
9276 (grub_sfs_read_block): Likewise.
9277 (grub_sfs_mount): Likewise.
9278 (grub_sfs_iterate_dir): Likewise.
9279 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
9280 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
9281
1b8463f2
VS
92822012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9283
9284 Fix errors on compressed NTFS with 512B clusters.
9285
9286 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
9287 types.
9288 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
9289 not 0.
9290 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
9291 Relax check for inline extents.
9292 (ntfscomp): Return correct -1 on error and not 0.
9293
4f8e368f
VS
92942012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9295
9296 * util/grub-install.in: Fix handling of prefix containing spaces.
9297
6f5d5ee8
VS
92982012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9299
9300 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
9301 (grub_squash_read_data): Fix offset byte-swapping.
9302
ce41ab7a
VS
93032012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9304
9305 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
9306 per common usage and preffered in several parts of code.
9307 (grub_memcmp): Likewise.
9308 (grub_strncmp): Likewise.
9309 * include/grub/misc.h (grub_strcasecmp): Likewise.
9310 (grub_strncasecmp): Likewise.
9311 * Makefile.util.def (cmp_test): New test.
9312 (grub_script_strcmp): Likewise.
9313 * tests/cmp_unit_test.c: New file.
9314 * tests/grub_script_strcmp.in: Likewise.
9315 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
9316
49717bf4
VS
93172012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9318
9319 * include/grub/pci.h: Move enums into no-asm part.
9320
0a308f64
VS
93212012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9322
9323 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
9324
1796965f
ST
93252012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
9326
9327 * util/getroot.c (find_hurd_root_device): Try to make error message
9328 and comments to translators clearer.
9329
4e9b2819
VS
93302012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9331
9332 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
9333
076aeb50
VS
93342012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9335
9336 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
9337 btrfs.
9338
19424d94
VS
93392012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9340
9341 * docs/grub.cfg: Update.
9342
ebb73076
VS
93432012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9344
9345 * docs/grub.texi (PXE): Remove not present variables.
9346
9a1b669c
VS
93472012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9348
9349 * grub-core/net/net.c (defserver_set_env): New function.
9350 (defserver_get_env): Likewise.
9351 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
9352
d38bf7d3
VS
93532012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9354
9355 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
9356 entries.
9357
93582012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
11858300
VS
9359
9360 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
9361 * grub-core/kern/emu/hostdisk.c: Likewise.
9362
e5e4ca48
ST
93632012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
9364
9365 Handle hurd userspace partitions.
9366
9367 * util/getroot.c (find_hurd_root_device): New function.
9368 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
9369
56bb5dd5
VS
93702012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9371
9372 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
9373 names.
9374 Reported by: Bastian Blank.
9375
9e8bc27a
VS
93762012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9377
9378 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
9379 crossing page boundary.
9380
aa01499d
VS
93812012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9382
9383 Fix B-tree search in BFS, especially in presence of non-ASCII
9384 characters.
9385
9386 * grub-core/fs/bfs.c (bfs_strcmp): New function.
9387 (find_in_b_tree): Use standard bsearch + btree algorithm.
9388
57006035
VS
93892012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9390
9391 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
9392 and so on.
9393
9d34bb85
MG
93942012-05-03 Matthew Garrett <mjg@redhat.com>
93952012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9396
9397 Suspend broadcom cards in order to stop their DMA.
9398
9399 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
9400 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
9401 (pci): Don't build on x86 EFI.
9402 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
9403 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
9404 New function.
9405 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
9406 stop_broadcom if running on EFI.
9407 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
9408 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
9409 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
9410 (grub_pci_find_capability): New proto.
9411
01aab997
VS
94122012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9413
9414 * docs/grub.texi: Remove dot from the extension as it apparently
9415 doesn't work with some makeinfo versions.
9416
fbd8dca6
VS
94172012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9418
9419 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
9420 with GRUB expectance.
9421
dab797f4
VS
94222012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9423
9424 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
9425
1516bfb4
VS
94262012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9427
9428 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
9429 zero after directory block since last entry may be not 0-terminated if
9430 it ends on block boundary. Use continue instead of if spanning whole
9431 loop.
9432
a3a0eace
VS
94332012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9434
9435 Support 4K sectors UDF inline files.
9436
9437 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
9438 (grub_udf_extended_file_entry): Likewise.
9439 (grub_fshelp_node): Name the anonymous union. Put block at the end.
9440 All users updated.
9441 (get_fshelp_size): New function.
9442 (grub_udf_read_icb): Read whole block.
9443 (grub_udf_iterate_dir): Likewise.
9444 (grub_udf_dir): Likewise.
9445 (grub_udf_open): Likewise.
9446
c82f16c1
VS
94472012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9448
9449 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
9450
59fd2aac
VS
94512012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9452
9453 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
9454 inline symlinks in addition to workaround.
9455
3b4afb4d
VS
94562012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9457
9458 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
9459
f45c794a
VS
94602012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9461
9462 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
9463
f25cecbd
VS
94642012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9465
9466 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
9467
bb9a34e8
VS
94682012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
9469
9470 Fix reiserfs big seek times.
9471
9472 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
9473 exact. All users updated.
9474 (grub_reiserfs_read): Use nearest btree search for seeking.
9475 Fix return value on error.
9476
dc478aea
VS
94772012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
9478
9479 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
9480 entries.
9481 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
9482 * docs/grub.texi: Update menuentry description.
9483
8db10f47
VS
94842012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
9485
9486 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
9487 crash when embedding onto filesystem.
9488
bcb288ed
VS
94892012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
9490
9491 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
9492 name.
9493
a626fdd7
VS
94942012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9495
9496 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
9497
b2f68477
VS
94982012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9499
9500 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
9501 commit.
9502
ba15b2af
B
95032012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
95042012-05-01 Bean <bean123ch@gmail.com>
9505
9506 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
9507
a188012e
VS
95082012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9509
9510 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
9511 Special behaviour for len = 0 to read whole file isn't used anywhere and
9512 can cause buffer ovewrflows in several places.
9513
f0a53ed2
VS
95142012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9515
9516 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
9517
5ed554f0
VS
95182012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9519
9520 Handle RAIDZ on non-512B sectors.
9521
9522 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
9523 max_children_ashift.
9524 (fill_vdev_info_real): Fill max_children_ashift.
9525 (read_device): Use max_children_ashift.
9526
ddc58357
VS
95272012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9528
9529 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
9530
e3282399
VS
95312012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9532
9533 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
9534 disk names.
9535 * docs/grub.texi: Update device.map parts.
9536
ee618bd4
VS
95372012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9538
9539 Don't scan into non-diskfilter devices having diskfilter names.
9540
9541 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
9542 (scan_disk): New argument accept_diskfilter. Fix recursion depth
9543 handling.
9544 (scan_disk_hook): New function.
9545
bdf88864
B
95462012-04-29 Bean <bean123ch@gmail.com>
9547
9548 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
9549 allocation.
9550
32745f51
MK
95512012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
9552
9553 * configure.ac: Detect starfield theme font path
9554 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
9555
bc95c8c0
VS
95562012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
9557
9558 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
9559 geometry on serial consoles.
9560
147fbcab
VS
95612012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
9562
9563 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
9564 because of network consoles.
9565
0f42c889
VS
95662012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
9567
9568 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
9569 handling.
9570
4a3594c9
VS
95712012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
9572
9573 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
9574 falls on Q syndrom.
9575
5cb53879
VS
95762012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
9577
9578 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
9579 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
9580
b282dfe5
VS
95812012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
9582
9583 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
9584 Allocate at lest 8192 for temporary buffer as required for lzo.
9585
daa59f47
VS
95862012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
9587
9588 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
9589 to cluster_bits, since it's already added in.
9590 (grub_fat_read_data): Likewise.
9591
986748ce
VS
95922012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
9593
9594 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
9595 as long as cluster size is multiple of 512 bytes.
9596
a20f6ad0
VS
95972012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
9598
9599 * util/grub-mkrescue.in: Fix locale directory.
9600
385f9abb
VS
96012012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
9602
9603 * grub-core/kern/emu/hostdisk.c (map): Make static.
9604
1c557d30
B
96052012-04-23 Bean <bean123ch@gmail.com>
9606
9607 * util/grub-fstest.c (fstest): Add missing break.
9608
524b5d3a
ST
96092012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
9610
9611 Fix hurd build.
9612
9613 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
9614 not define nr variable.
fe4824e9 9615 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
9616 find_root_devices_from_poolname, find_root_devices_from_libzfs,
9617 grub_find_device): Do not define.
524b5d3a 9618
9a06490c
VS
96192012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
9620
9621 Fix kfreebsd compile and behaviour.
9622
9623 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
9624 format-security.
9625 * util/getroot.c: Fix wait.h include.
9626 (grub_guess_root_devices): Error if grub_find_device fails.
9627 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
9628 (grub_util_get_dev_abstraction): Likewise.
9629 (grub_util_pull_device): Likewise.
9630 (grub_util_get_grub_dev): Likewise.
9631 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
9632
48143d96
VS
96332012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
9634
9635 Fix and unify wholedisk detection.
9636
9637 * util/getroot.c (convert_system_partition_to_system_disk): New argument
9638 is_part. All users updated.
9639 (device_is_wholedisk): Removed.
9640 (grub_util_biosdisk_get_grub_dev): Use is_part.
9641
ebbd24f3
VS
96422012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
9643
9644 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
9645 mode.
9646
56f7aa1e
VS
96472012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
9648
9649 * configure.ac: Bump to beta4.
9650
9c815e01
VS
96512012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
9652
9653 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
9654 --fs-uuid --set UUID syntax.
9655
59e2651a
VS
96562012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
9657
9658 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
9659 disunification.
9660
54e03cfc
VS
96612012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
9662
9663 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
9664
81092a75
MK
96652012-04-18 Mads Kiilerich <mads@kiilerich.com>
9666
9667 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
9668
f8315e14
MG
96692012-04-18 Mike Gilbert <floppym@gentoo.org>
9670
9671 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
9672
1501ac21
B
96732012-04-18 Bean <bean123ch@gmail.com>
9674
9675 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
9676 place.
9677
cb7f944e
VS
96782012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
9679
9680 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
9681 users updated.
9682 (grub_util_biosdisk_read): Handle Linux partitions not exactly
9683 corresponding to GRUB partitions.
9684 (grub_util_biosdisk_write): Likewise.
9685
b72d44a1
VS
96862012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
9687
9688 Scan mdraid before LVM.
9689
9690 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
9691 (grub_diskfilter_register_front): ... this.
9692 (grub_diskfilter_register_back): New function.
9693 All users of grub_diskfilter_register updated.
9694
33d918b8
VS
96952012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
9696
9697 * util/grub-install.in: Fix an automatic target detection bug.
9698
c6ca973d
VS
96992012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
9700
9701 * util/grub-install.in: New option --efi-directory.
9702
b41be562
VS
97032012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
9704
9705 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
9706 boot services if we have no other choice.
9707
97082012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
9709
9710 * util/grub-mknetdir.in: Rename --override-directory to --directory and
9711 document it.
9712 * tests/util/grub-shell.in: Update to --directory.
9713
e0595a73
VS
97142012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
9715
9716 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
9717
4ed80652
VS
97182012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
9719
9720 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
9721 (grub_minix_read_file): Likewise.
9722 (grub_minix_read_inode): Likewise.
9723 (grub_minix_find_file): Likewise.
9724 (grub_minix_dir): Likewise.
9725
56008077
VS
97262012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
9727
9728 * util/grub-setup.c (setup): Fix partition handling and blocklist
9729 check.
9730
ee520775
VS
97312012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
9732
9733 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
9734 redundant buggy overlap check.
9735
16fc9293
VS
97362012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
9737
9738 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
9739 and grub-mknetdir.
9740
9bab65c4
VS
97412012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
9742
9743 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
9744 kh.loadflags on pre-2.00 kernels.
9745
3c491b47
VS
97462012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
9747
9748 Terminate UNDI and PXE before launching the payload to avoid problems
9749 with DMA.
9750
9751 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
9752 (grub_loader_flags): ... this. All users updated.
9753 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
9754 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
9755 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
9756 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
9757 function.
9758 (grub_pxe_restore): Likewise.
9759 (fini_hnd): New var.
9760 (GRUB_MOD_INIT): Register shutdown hook.
9761 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
9762 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
9763 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
9764 (grub_loader_set): Rename second argument to flags.
9765
851ffada
VS
97662012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
9767
9768 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
9769 written bytes.
9770 (grub_get_num_of_utf8_bytes): New function.
9771 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
9772 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
9773 executing it.
9774 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
9775 (grub_ucs4_to_utf8): Change return type.
9776
491c57a8
VS
97772012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
9778
9779 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
9780 warning.
851ffada
VS
9781 * grub-core/fs/bfs.c (hop_level): Likewise.
9782 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
491c57a8 9783
756773df
VS
97842012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
9785
9786 * grub-core/lib/adler32.c: Recode due to license unclearness.
9787
fd556a96
VS
97882012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
9789
9790 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
9791 (test_header): Likewise.
9792
9f9d3f69
VS
97932012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
9794
9795 Fix --help formatting.
9796
9797 * util/grub-mkconfig_lib.in (print_option_help): New function.
9798 (grub_fmt): Likewise.
9799 * util/grub-install.in: Use print_option_help and grub_fmt.
9800 * util/grub-kbdcomp.in: Likewise.
9801 * util/grub-mkconfig.in: Likewise.
9802 * util/grub-mknetdir.in: Likewise.
9803 * util/grub-mkrescue.in: Likewise.
9804 * util/grub-mkstandalone.in: Likewise.
9805 * util/grub-reboot.in: Likewise.
9806 * util/grub-set-default.in: Likewise.
9807 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
9808
561ec77e
VS
98092012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
9810
9811 * linguas.sh: Remove autogenerated *.po.
9812
7ec2b021
VS
98132012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
9814
9815 * po/README: Move language fetcing to ...
9816 * linguas.sh: ... here.
9817 * po/README: Point to linguas.sh.
9818
a88f3270
VS
98192012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
9820
9821 * po/README: Exclude ko.po due to disclaimer problems.
9822
d61357ce
VS
98232012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
9824
9825 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
9826 len = 0.
9827 (grub_gettext_translate_real): Handle 0th string.
9828 (grub_gettext_translate): Ensure that "" isn't translated.
9829
505e41dc
VS
98302012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
9831
9832 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
9833 TRANSLATORS comment.
9834 (grub_diskfilter_print_partmap): Propagate changing of error into
9835 warning.
9836
e44092db
VS
98372012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
9838
9839 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
9840 to uint64_t to prevent overflow.
9841 (grub_diskfilter_lv): Increase start_extent and extent_count
9842 to uint64_t to prevent overflow.
9843
9b83956a
VS
98442012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
9845
9846 * configure.ac: Increase version.
9847
da0d5b3f
VS
98482012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
9849
9850 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
9851
9852 * po/Rules-translit: New file.
9853 * po/arabic.sed: Likewise.
9854 * po/cyrillic.sed: Likewise.
9855 * po/greek.sed: Likewise.
9856 * po/hebrew.sed: Likewise.
9857 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
9858 * po/Makefile.in.in: Add extra_dist4.
9859
ac66b453
VS
98602012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
9861
9862 Handle big-endian minixfs (fixes minixfs tests on bigendian).
9863
9864 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
9865 modify names. Introduce MODE_BIGENDIAN.
9866 * grub-core/fs/minix_be.c: New file.
9867 * grub-core/fs/minix2_be.c: Likewise
9868 * grub-core/fs/minix3_be.c: Likewise.
9869 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
9870 minix3_be.
9871 * grub-core/Makefile.core.def (minix_be): New module.
9872 (minix2_be): Likewise.
9873 (minix3_be): Likewise.
9874
98752012-04-01 Felix <email@hamburg.de>
9876
9877 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
9878 (devs): Add MBP 2011.
9879
0a2d5a82
VS
98802012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
9881
9882 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
9883
d1625889
VS
98842012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
9885
9886 * grub-core/normal/cmdline.c (print_completion): New field
9887 prompt_len.
9888 (grub_cmdline_get): Handle width properly.
9889
6d36a236
VS
98902012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
9891
9892 * grub-core/commands/lsacpi.c (options): Add missing terminator.
9893
9576977e
VS
98942012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
9895
9896 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
6d36a236 9897 after 29th of February.
9576977e 9898
d73ff15d
VS
98992012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
9900
9901 Fix exfat endianness handling.
9902
9903 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
9904 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
9905 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
9906 Byte-swap utf16 when necessary.
9907 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
9908
bbb39a45
AB
99092012-03-31 Anton Blanchard <anton@samba.org>
99102012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
9911
9912 Fix btrfs endianness handling.
9913
9914 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
9915 (lower_bound): Make root uint64_t. Use root in le.
9916 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
9917 (find_path): Fix template key init.
9918 (grub_btrfs_dir): Fix mtime byteswap.
9919 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
9920
354e0af7
VS
99212012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
9922
9923 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
9924 recursion_depth. Break infinite resursions. All users updated.
9925
4e75f21c
VS
99262012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
9927
9928 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
9929 after free.
9930 Reported by: Peter Jones.
9931
25581802
AB
99322012-03-31 Anton Blanchard <anton@samba.org>
9933
9934 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
9935 8 bit values.
9936
08fbf92e
VS
99372012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
9938
9939 * util/grub-install.in: Fix nvram call for PreP.
9940
5d1182a6
VS
99412012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
9942
9943 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
9944 the error when some elements are missing into a warning.
9945
3f8cdd90
VS
99462012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
9947
9948 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
9949
51006716
CW
99502012-03-28 Colin Watson <cjwatson@ubuntu.com>
9951
9952 * docs/grub.texi (Invoking grub-probe): New section.
9953 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
9954
e1bd676b
VS
99552012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
9956
9957 Fix tab and wide character handling in editor and menu.
9958
9959 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
9960 agglomerate control characters with combining marks.
9961 (bidi_line_wrap): Allow break on tab.
9962 (grub_unicode_get_comb_start): New function.
9963 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
9964 and tab correctly.
9965 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
9966 with a space.
9967 * grub-core/normal/term.c (print_ucs4_terminal): New argument
9968 fixed_tab_size. All users updated.
9969 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
9970 (grub_term_getcharwidth): Handle \t.
9971 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
9972 and copy.
9973
22e6a774
VS
99742012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
9975
9976 Handle big-endian mdraid.
9977
9978 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
9979 * grub-core/Makefile.core.def (mdraid09_be): New module.
9980 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
9981 rather than grub_le_to_cpu* and grub_cpu_to_le*.
9982 * grub-core/disk/mdraid_linux_be.c: New file.
9983
3c0eae66
VS
99842012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
9985
9986 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
9987
b6cf74c9
VS
99882012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
9989
9990 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
9991 missing quotes which caused confusion among translators.
9992
83c93b9c
VS
99932012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
9994
9995 * util/grub-mkconfig_lib.in: Fix typo.
9996
ac6fd218
VS
99972012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
9998
9999 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
10000 spaces.
10001 * tests/grub_script_leading_whitespace.in: New file.
10002 * Makefile.util.def (grub_script_leading_whitespace): New test.
10003
ba287dd8
VS
100042012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
10005
10006 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
10007 to work.
10008
d2d58d0a
VS
100092012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
10010
10011 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
10012 starts with control character.
10013
0382d9bb
VS
100142012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
10015
10016 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
10017 overflow.
10018 (grub_gdb_outbuf): Likewise.
10019
d83ff9f9
VS
100202012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
10021
10022 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
10023 zero terminator. Fixes a crash.
10024
2282da4a
VS
100252012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
10026
10027 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
10028 beyond 4 GiB.
10029 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
10030 images independently of preffered adderss field.
10031
0ae4f0bd
VS
100322012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
10033
10034 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
10035 * grub-core/commands/regexp.c: Likewise.
10036 * grub-core/loader/i386/linux.c: Likewise.
10037 * grub-core/partmap/msdos.c: Likewise.
10038 * grub-core/script/execute.c: Likewise.
10039 * grub-core/term/gfxterm.c: Likewise.
10040
546fbe9b
VS
100412012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
10042
10043 Add variable parsing in $"..." and fix several mismatches with bash.
10044
10045 * Makefile.util.def (grub_script_gettext): New test.
10046 * grub-core/script/execute.c (parse_string): New function.
10047 (gettext_append): Likewise.
10048 (grub_script_arglist_to_argv): Use gettext_append.
10049 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
10050 * tests/grub_script_gettext.in: New file.
10051
9fdb2d7b
VS
100522012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
10053
10054 Fix handling of leading spaces in scripts.
10055
10056 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
10057 spaces.
10058 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
10059 other than skipping \r. All users updated.
10060 * tests/grub_script_echo1.in: Add space-related tests.
10061 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
10062
1a1ac4f6
VS
100632012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
10064
10065 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
10066
b63d89b6
VS
100672012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10068
10069 * configure.ac: Bump up the version to beta2.
10070
17f38c0f
VS
100712012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10072
10073 Fix gettext reload bugs (e.g. inability to disable gettext
10074 once enabled).
10075
10076 * grub-core/gettext/gettext.c: Encapsulate all static variables in
10077 main_context and secondary_context. All functions updated.
10078 (grub_gettext_translate): Rename to ...
10079 (grub_gettext_translate_real): ... this. Return NULL on failed
10080 translate.
10081 (grub_gettext_translate): Handle secondary context.
10082 (grub_gettext_delete_list): Close file and zero-out the context.
10083 (grub_mofile_open): Don't call grub_gettext_delete_list.
10084 Don't close file.
10085 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
10086 if locale="" to avoid pointless error message.
10087 (grub_gettext_env_write_lang): Update lang even if load fails.
10088 Handle secondary context.
10089 (grub_gettext_reread_prefix): New function.
10090 (read_main): Likewise.
10091 (read_secondary): Likewise.
10092 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
10093 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
10094 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
10095 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
10096
8e56f870
VS
100972012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10098
10099 * configure.ac: Decrease warning level to avoid spurious warnings and
10100 to be able to compile with GCC 4.2.
10101 * Makefile.util.def: Remove -Wno-error=logical-op.
10102
82f6d455
WB
101032012-03-10 William Bittner <william.bittner@gmail.com>
10104
10105 * util/import_unicode.py: Add missing brackets around string for
10106 python 3 support.
10107
1ecd61a4
VS
101082012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10109
10110 Fix efi chainloader on network root.
10111
10112 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
10113 network devices.
10114 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
10115 New function.
10116
14361ee8
VS
101172012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10118
10119 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
10120 unused show_text member.
10121 * docs/grub.texi: Document "text" property.
10122
922aabf3
VS
101232012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10124
10125 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
10126 in dprintf.
10127
ec316771
VS
101282012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10129
10130 Fix IMSM handling on Fedora.
10131
10132 * util/getroot.c (grub_util_is_imsm): New function.
10133 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
10134
0f021838
VS
101352012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10136
10137 * Makefile.am: Strip gold section.
10138 * conf/Makefile.common: Likewise.
10139 * gentpl.py: Likewise.
10140 * grub-core/Makefile.core.def: Likewise.
10141 * grub-core/genmod.sh.in: Likewise.
10142
1039c8eb
VS
101432012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10144
10145 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
10146 * util/grub.d/20_linux_xen.in: Likewise.
10147 Based on Debian patch.
10148
6dd412cd
VS
101492012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10150
10151 * util/grub.d/10_linux.in: Fix syntax error resulting in
10152 Richard Laager's patch.
10153 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
10154
3fd8bae5
VS
101552012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10156
10157 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
10158 dependencies.
10159
7eea1671
RL
101602012-03-10 Richard Laager <rlaager@wiktel.com>
10161
10162 * util/grub.d/10_linux.in: Fix ZFS root passing.
10163
e8e0566b
VS
101642012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10165
10166 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
10167 * grub-core/commands/xnu_uuid.c: Likewise.
10168 * grub-core/loader/efi/appleloader.c: Likewise.
10169 * grub-core/script/execute.c: Likewise.
10170 * grub-core/script/main.c: Likewise.
10171 * util/grub-mkfont.c: Likewise.
10172
1acc5b1f
VS
101732012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10174
10175 * util/grub-mkfont.c (options): Use more appropriate "select" that
10176 "set" for face index.
10177
35d70620
VS
101782012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10179
10180 * util/grub-editenv.c (options): Gettextize command summaries.
10181
c9eb96b5
VS
101822012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10183
10184 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
10185 "out of memory" error messagge.
10186
1f493136
VS
101872012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10188
10189 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
10190 of diskfilter for diskfilter on diskfilter support.
10191
6d790129
VS
101922012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10193
10194 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
10195
005f46c9
VS
101962012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10197
10198 * util/grub-install.in: Check for themes/starfield/theme.txt and not
10199 themes/starfield.
10200
c8f778a0
VS
102012012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10202
10203 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
10204
de1e64eb
VS
102052012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10206
10207 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
10208
c6d54211
VS
102092012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10210
10211 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
10212 of error message.
10213
dd390777
VS
102142012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
10215
10216 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
10217
5fd1c522
VS
102182012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
10219
10220 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
10221 message.
c6d54211 10222 * util/grub-install.in: Fix and gettextize error message.
5fd1c522 10223
fae01f6c
VS
102242012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
10225
10226 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
10227 Gettextize.
10228 * util/grub-mount.c (options): Likewise.
10229
292fdaff
VS
102302012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
10231
10232 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
10233 gettextize.
10234 * grub-core/commands/search_wrap.c (options): Likewise.
10235
ecdbae77
VS
102362012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
10237
10238 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
10239
52bfedfa
VS
102402012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
10241
10242 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
10243 size calculation.
10244 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
10245 none is known.
10246
55b20e58
VS
102472012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
10248
10249 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
10250 "temporary" since it's used in identifier and is limited in space.
10251
fda9d101
VS
102522012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
10253
10254 * po/POTFILES.in: Regenerate. Include *.h since they contain
10255 translatable strings as well.
10256
6a0295e2
VS
102572012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
10258
10259 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
10260 byte-swap on big-endian.
10261 Reported by: Lennart Sorensen
10262
807fb77c
VS
102632012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
10264
10265 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
10266 (allocate_pages): Improve dprintf.
10267 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
10268 code32_start. Fill code32_start and kernel_alignment in params.
10269 (grub_cmd_initrd): Use prot_init_space.
10270
61ac50ba
VS
102712012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10272
10273 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
10274
abdd26dd
VS
102752012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10276
10277 * util/grub-install.in: Add missing dot at the end of sentence.
10278
6e69da9c
VS
102792012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10280
10281 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
10282 * grub-core/commands/videotest.c: Likewise.
10283 * grub-core/loader/i386/linux.c: Likewise.
10284
4a929343
VS
102852012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10286
10287 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
10288 sentence.
10289 Reported by: Milo Casagrande.
10290
bb51c6c6
VS
102912012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10292
10293 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
10294 * grub-core/commands/gptsync.c: Likewise.
10295 * grub-core/commands/hashsum.c: Likewise.
10296 * grub-core/commands/i386/pc/sendkey.c: Likewise.
10297 * grub-core/commands/legacycfg.c: Likewise.
10298 * grub-core/io/gzio.c: Likewise.
10299 * grub-core/net/net.c: Likewise.
10300 * grub-core/term/gfxterm.c: Likewise.
10301 * grub-core/term/terminfo.c: Likewise.
10302 * grub-core/tests/test_blockarg.c: Likewise.
10303 * grub-core/video/video.c: Likewise.
10304 * util/grub-install.in: Likewise.
10305 * util/grub-mkfont.c: Likewise.
10306
b2b149cb
VS
103072012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10308
10309 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
10310
c7c080ad
VS
103112012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10312
10313 * grub-core/commands/search_wrap.c (options): Fix a typo.
bb51c6c6 10314 Reported by: David Prévot.
c7c080ad 10315
f2e243c0
VS
103162012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10317
10318 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
10319 description.
10320
09963c76
VS
103212012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10322
10323 * util/grub-script-check.c (main): Fix a syntax error message which was
10324 unclear.
10325
a50514a8
VS
103262012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10327
10328 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
10329
4650daec
VS
103302012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10331
10332 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
10333 messages.
10334
103352012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
97ebda9b
VS
10336
10337 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
10338 without argument.
10339 * util/grub-mount.c (options): Likewise.
10340
bbc5a342
VS
103412012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
10342
10343 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
10344
ef292a87
VS
103452012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
10346
10347 * grub-core/net/http.c: Add TRANSLATORS comments.
10348 * grub-core/normal/cmdline.c: Likewise.
10349 * grub-core/normal/misc.c: Likewise.
10350 * grub-core/partmap/msdos.c: Likewise.
10351 * grub-core/parttool/msdospart.c: Likewise.
10352 * grub-core/script/execute.c: Likewise.
10353 * grub-core/script/main.c: Likewise.
10354 * grub-core/term/terminfo.c: Likewise.
10355 * grub-core/video/bitmap.c: Likewise.
10356 * util/grub-install.in: Likewise.
10357 * util/grub-mkimage.c: Likewise.
10358 * util/grub-mklayout.c: Likewise.
10359 * util/grub-setup.c: Likewise.
10360
0fc19bd0
VS
103612012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
10362
10363 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
10364 with similar messages in grub-fstest.
10365
d95862ef
VS
103662012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
10367
10368 * util/grub-install.in: Unify "option requires an argument" message
10369 with similar messages in other files.
10370 * util/grub-mkconfig.in: Likewise.
10371
b7308f90
VS
103722012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
10373
10374 * util/grub-set-default.in: Replace printf with gettext_printf (the
10375 string in in question is already translated from grub-reboot)
10376
559dc587
VS
103772012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
10378
10379 * configure.ac: Bump up the version to beta1.
10380
1a11761f
VS
103812012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10382
10383 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
10384 case when min_align = 0.
10385
24539abd
VS
103862012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10387
10388 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
10389 and fix a case when line_start overflows.
10390
32bd735b
VS
103912012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10392
10393 * util/grub-reboot.in (usage): Mention id posibility.
10394 * util/grub-set-default.in (usage): Likewise.
10395
1a2fd1e6
VS
103962012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10397
10398 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
10399 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
10400 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
10401 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
10402 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
10403 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
10404 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
10405
90eeab76
VS
104062012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10407
10408 * grub-core/commands/menuentry.c (options): Remove
10409 GRUB_ARG_OPTION_REPEATABLE.
10410 Reported by: Andreas Vogel
10411
5ad1be82
AV
104122012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
10413
10414 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
10415
cb055286
HE
104162012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
10417
10418 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
10419 error.
10420
93b1cd79
VS
104212012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10422
10423 Use sort -V by the idea of Georgi Georgiev.
10424
10425 * util/grub-mkconfig_lib.in (version_sort): New function.
10426 (version_test_numeric): Use version_sort.
10427
0cdc126c
VS
104282012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10429
10430 Use submenus in grub-mkconfig.
10431
10432 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
10433 * util/grub-mkconfig_lib.in (grub_quote): New function.
10434 (gettext_printf): Use gettext and not gettext_quoted to fix several
10435 messages.
10436 * util/grub.d/10_hurd.in: Use submenus.
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/20_linux_xen.in: Likewise.
10441 * util/grub.d/30_os-prober.in: Likewise.
10442 * util/grub.d/10_illumos.in: Add missing quoting.
10443 * util/grub.d/10_windows.in: Likewise.
10444
d9bef9bc
VS
104452012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10446
10447 Fix menu title instability bug.
10448
10449 * grub-core/commands/menuentry.c (options): New option --id.
10450 (grub_normal_add_menu_entry): New argument id. All users updated.
10451 (grub_cmd_menuentry): Handle --id.
10452 (grub_menu_init): Accept unknown arguments.
10453 * grub-core/normal/main.c (features): Add feature_menuentry_id and
10454 feature_menuentry_options.
10455 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
10456 saved_entry.
10457 (get_entry_number): Match with id as well.
10458 * include/grub/menu.h (grub_menu_entry): New member id.
10459 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
10460 * util/grub.d/00_header.in: Define menuentry_id_option.
10461 * util/grub.d/10_hurd.in: Define id.
10462 * util/grub.d/10_illumos.in: Likewise.
10463 * util/grub.d/10_kfreebsd.in: Likewise.
10464 * util/grub.d/10_linux.in: Likewise.
10465 * util/grub.d/10_netbsd.in: Likewise.
10466 * util/grub.d/10_windows.in: Likewise.
10467 * util/grub.d/20_linux_xen.in: Likewise.
10468 * util/grub.d/30_os-prober.in: Likewise.
10469
104702012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
0d31b7df
VS
10471
10472 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
10473 "scope" with "body".
10474
7c8d0ce7
VS
104752012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
10476
10477 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
10478 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
10479 prot_size and prot_file_size.
10480
49de079b
VS
104812012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
10482
10483 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
10484 All users updated. If easily=1 require raid-5/-6 to be full.
10485 (is_node_readable): Likewise.
10486 (scan_devices): Scan incomplete but readable LVs at the end.
10487 (grub_diskfilter_memberlist): Pull missing devices.
10488 (insert_array): Skip scanning until device is complete or scan is
10489 done otherwise.
10490 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
10491 check.
10492 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
10493 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
10494
aff05d45
MG
104952012-03-03 Matthew Garrett <mjg@redhat.com>
104962012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
10497
10498 Avoid EFI boot services when loading Linux.
10499
10500 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
10501 avoid_efi_bootservices. All users updated.
10502 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
10503 argument avoid_efi_bootservices. All users updated.
10504 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
10505 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
10506 align, min_align, relocatable, prefered_address. All users updated.
10507 Allocate avoiding boot services if kernel is relocatable.
10508 (grub_cmd_linux): Check if kernel is relocatable.
10509 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
10510 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
10511 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
10512 avoid_efi_boot_services.
10513 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
10514 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
10515 (linux_kernel_params): Likewise.
10516
3935dde2
MG
105172012-03-03 Matthew Garrett <mjg@redhat.com>
105182012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
10519
10520 Use EDID on EFI.
10521
10522 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
10523 datasize_out.
10524 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
10525 modes. Set gop_handle.
10526 (grub_video_gop_get_edid): New function.
10527 (grub_gop_get_preferred_mode): Likewise.
10528 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
10529 (grub_video_efi_gop_adapter): Set .get_edid.
10530 * include/grub/efi/edid.h: New file.
10531 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
10532
32107ec0
VS
105332012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
10534
10535 * util/grub-install.in: Load efivars unconditionally.
10536
e70a2c50
VS
105372012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
10538
10539 * po/Rules-piglatin: Change suffix from .po-update-en to
10540 .po-update-en-piglatin.
10541
8f9cace1
VS
105422012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
10543
10544 Add a pig farm.
10545
10546 * po/piglatin.sed: New file.
10547 * po/en@piglatin.header: Likewise.
10548 * po/Rules-piglatin: Likewise.
10549 * po/README: Add en@piglatin to autogenerated languages.
10550
8f95d002
VS
105512012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
10552
10553 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
10554 "Command for ...".
10555 * grub-core/commands/hdparm.c (options): Use "Display" rather than
10556 "Check" since we don't check anything.
10557 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
10558 is 64-bit one.
10559 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
10560 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
10561 (grub_md_sha512_real): Likewise.
10562
805a8dcc
VS
105632012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
10564
10565 * grub-core/commands/gptsync.c: Fix typographic quoting.
10566 * grub-core/commands/ieee1275/suspend.c: Likewise.
10567 * grub-core/commands/parttool.c: Likewise.
10568 * grub-core/commands/search_wrap.c: Likewise.
10569 * grub-core/commands/videoinfo.c: Likewise.
10570 * grub-core/gfxmenu/gui_label.c: Likewise.
10571 * grub-core/hello/hello.c: Likewise.
10572 * grub-core/kern/emu/main.c: Likewise.
10573 * grub-core/net/net.c: Likewise.
10574 * grub-core/normal/menu.c: Likewise.
10575 * grub-core/normal/menu_text.c: Likewise.
10576 * grub-core/normal/misc.c: Likewise.
10577 * util/grub-editenv.c: Likewise.
10578 * util/grub-install.in: Likewise.
10579 * util/grub-kbdcomp.in: Likewise.
10580 * util/grub-mkconfig.in: Likewise.
10581 * util/grub-mknetdir.in: Likewise.
10582 * util/grub-mkrescue.in: Likewise.
10583 * util/grub-mkstandalone.in: Likewise.
10584 * util/grub-reboot.in: Likewise.
10585 * util/grub-set-default.in: Likewise.
10586 * util/grub-setup.c: Likewise.
10587 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
10588
40211ab8
VS
105892012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10590
10591 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
10592 * grub-core/commands/keystatus.c: Likewise.
10593 * grub-core/commands/loadenv.c: Likewise.
10594 * grub-core/commands/probe.c: Likewise.
10595 * grub-core/commands/regexp.c: Likewise.
10596 * grub-core/commands/true.c: Likewise.
10597 * grub-core/commands/videoinfo.c: Likewise.
10598 * grub-core/disk/cryptodisk.c: Likewise.
10599 * grub-core/disk/ldm.c: Likewise.
10600 * grub-core/disk/loopback.c: Likewise.
10601 * grub-core/disk/luks.c: Likewise.
10602 * grub-core/fs/zfs/zfsinfo.c: Likewise.
10603 * grub-core/kern/disk.c: Likewise.
10604 * grub-core/kern/emu/hostdisk.c: Likewise.
10605
0c7d99c7
VS
106062012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10607
10608 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
10609 * util/grub-install.in: Add missing quote in the comment.
10610
e7d2559b
VS
106112012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10612
10613 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
10614 * grub-core/commands/lsmmap.c: Likewise.
10615 * grub-core/commands/minicmd.c: Likewise.
10616 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
10617 * grub-core/commands/regexp.c: Likewise.
10618 * grub-core/gdb/gdb.c: Likewise.
10619 * grub-core/term/gfxterm.c: Likewise.
10620 * util/grub-mkconfig.in: Likewise.
10621 * util/grub-mkfont.c: Likewise.
10622 * util/grub-mklayout.c: Likewise.
10623 * util/grub-mknetdir.in: Likewise.
10624 * util/grub-mkrescue.in: Likewise.
10625 * util/grub.d/30_os-prober.in: Likewise.
10626
49ce9e50
VS
106272012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10628
10629 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
10630 with "Direct color" and "Packed" with "Packed pixel".
10631 (grub_cmd_videoinfo): Simplify legend.
10632
e4b791fa
VS
106332012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10634
10635 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
10636 absolutely unclear error message.
10637
fd1265cb
VS
106382012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10639
10640 * util/grub-mkstandalone.in: Remove confusing leftover print.
10641
8822a8a0
VS
106422012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10643
10644 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
10645 comments.
10646 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
10647 (GRUB_MOD_INIT): Likewise.
10648 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
10649 VGA mode.
10650 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
10651 comments.
10652 * util/grub-install.in (usage): Likewise.
10653 Spell ID in whole letters.
10654 Add missing ending dot.
10655 Quote variables.
10656 * util/grub-reboot.in: Fix capitalisation.
10657 * util/grub-set-default.in: Likewise.
10658
937fd0cc
VS
106592012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10660
10661 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
10662 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
10663 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
10664 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
10665 Disable -Werror for -Wdeprecated-declarations.
10666 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
10667 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
10668 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
10669 (grub_util_get_grub_dev): Make luks handling dependent on
10670 HAVE_DEVICE_MAPPER and not __linux__.
10671 (get_win32_path): Fix format security.
10672 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
10673 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
10674 Don't try grub_find_zpool_from_dir.
10675 (grub_make_system_path_relative_to_its_root) [!__linux__]:
10676 #ifdef-out paresdir.
10677
1bab1ae3
VS
106782012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10679
10680 * util/grub-pe2elf.c (usage): Add missing noreturn.
10681 (write_section_data): Rename name to shname to avoid shadowing.
10682 (write_symbol_table): Rename name to symname to avoid shadowing.
10683 Fix write_reloc_section call.
10684
ef023e42
VS
106852012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10686
10687 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
10688 to ensure that it's after the last byte of .text.
10689
48afcb75
VS
106902012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10691
10692 * util/ieee1275/ofpath.c (my_isdigit): New function.
10693 (trailing_digits): Use my_isdigit.
10694 (strip_trailing_digits): Likewise.
10695
88d51eff
VS
106962012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10697
10698 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
10699 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
10700
17edc2ba
VS
107012012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10702
10703 * grub-core/kern/i386/pc/startup.S: Define __start.
10704
ad5518d7
VS
107052012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10706
10707 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
10708 strip already transforms he format.
10709
9e95e1bf
VS
107102012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10711
10712 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
10713
9cc3ee5c
VS
107142012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10715
10716 * util/grub-install.in: Add missing gettext init.
10717 * util/grub-kbdcomp.in: Likewise.
10718 * util/grub-mkconfig.in: Likewise.
10719 * util/grub-mknetdir.in: Likewise.
10720 * util/grub-mkrescue.in: Likewise.
10721 * util/grub-mkstandalone.in: Likewise.
10722 * util/grub-reboot.in: Likewise.
10723 * util/grub-set-default.in: Likewise.
10724 * util/grub.d/00_header.in: Likewise.
10725 * util/grub.d/10_hurd.in: Likewise.
10726 * util/grub.d/10_windows.in: Likewise.
10727 * util/grub.d/30_os-prober.in: Likewise.
10728 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
10729
49e08a06
VS
107302012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10731
10732 * po/Rules-swiss: Fix header comment.
10733
3809cb41
AV
107342012-02-29 Andreas Vogel <anvoit>
10735
10736 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
10737 resulted in leak of arguments.
10738
fa6ec573
VS
107392012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10740
10741 * grub-core/boot/i386/pc/startup_raw.S: Use separate
10742 reed_solomon_size const definition instead of computing it since
10743 Apple assembler doesn't support the later.
10744
22899b9c
VS
107452012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10746
10747 * gentpl.py (kernel): Rewrite Apple part.
10748
a132afc3
VS
107492012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10750
10751 * include/grub/kernel.h (FOR_MODULES): Check module magic.
10752
9d742bd4
VS
107532012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10754
10755 * util/grub-mkimagexx.c (locate_sections): Support non-standard
10756 ELF section gap.
10757 (load_image): Likewise.
10758
f04a9a21
VS
107592012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10760
10761 * configure.ac: Fix a typo in previous commit.
10762
46cf439c
VS
107632012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10764
10765 Don't add -Wl,-N on Apple platform.
10766
10767 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
10768 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
10769
c4c48c54
VS
107702012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10771
10772 * grub-core/Makefile.core.def (lzma_decompress): Use
10773 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
10774
31a12124
VS
107752012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10776
10777 * grub-core/genmod.sh.in: Rewrite the Apple part.
10778
4f3aa1af
VS
107792012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10780
10781 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
10782 comparison.
10783
7bd8b0c7
VS
107842012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10785
10786 * acinclude.m4 (grub_CHECK_PIC): New test.
10787 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
10788
97304d7c
VS
107892012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10790
10791 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
10792 to avoid the warning.
10793
fb883812
VS
107942012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10795
10796 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
10797 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
10798 after. All users updated.
10799
a121c964
VS
108002012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10801
10802 Use the common size routine in hostfs so we can read disks as well.
10803
10804 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
10805 (grub_util_get_fd_size): ... this. Return size in bytes.
10806 All users updated.
10807 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
10808 grub_util_get_fd_size.
10809
c66d6410
VS
108102012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10811
10812 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
10813 Add blocksize retrieval.
10814
dfc8aeb0
VS
108152012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10816
10817 * configure.ac: Restore CFLAGS after efiemu check.
10818
403e25a5
VS
108192012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10820
10821 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
10822 Apple bug.
10823
382775d1
VS
108242012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10825
10826 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
10827
6fd4e6e4
VS
108282012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10829
10830 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
10831 (grub_cmd_halt): Likewise.
10832
bea359d6
VS
108332012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10834
10835 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
10836 for local arithmetics.
10837 Break %sp init into 2 instructions.
10838 Add 0 byte at the end.
10839
32eb6ee1
VS
108402012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10841
10842 * grub-core/disk/diskfilter.c (read_segment): Initialise err
10843 before loops.
10844
e8377389
VS
108452012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10846
10847 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
10848 for context.
10849
8cb17de7
VS
108502012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10851
10852 * grub-core/disk/ldm.c (make_vg): Init part.name.
10853 (grub_ldm_detect): Silence spurious warning.
10854 (grub_util_is_ldm): Likewise.
10855
595717e6
VS
108562012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10857
10858 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
10859 sane value to avoid a spurious warning.
10860
c4b7e588
VS
108612012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10862
10863 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
10864 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
10865
59824957
VS
108662012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10867
10868 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
10869 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
10870
70115b99
VS
108712012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10872
10873 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
10874 hardcoding the relevant info.
10875
56733740
VS
108762012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10877
10878 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
10879 missing const qualifiers.
10880 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
10881
43481481
VS
108822012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10883
10884 * util/getroot.c [__APPLE__]: Add missing includes.
10885 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
10886
3cb38f01
VS
108872012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10888
10889 * util/grub-mkimage.c (generate_image): Silence spurious warning.
10890
d9dbf11e
VS
108912012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10892
10893 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
10894 avoid conflicts.
10895
0c42a45d
VS
108962012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10897
10898 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
10899
46c34eb0
VS
109002012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10901
10902 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
10903 and grub_file_close call.
10904
99ce1597
VS
109052012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10906
10907 Add LZSS Mach-O support (needed for new xnu kernelcache).
10908
10909 * grub-core/Makefile.core.def (xnu): Add file lzss.c
10910 * grub-core/loader/lzss.c: New file.
10911 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
10912 on Mach-O open failure.
10913 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
10914 Don't free cmdsXX in uncompressedXX is set.
10915 (grub_macho_file): Init new fields.
10916 New argument is_64bit. All users updated.
10917 Handle compressed. Error out if no suitable architecture is found.
10918 Don't close file.
10919 (grub_macho_open): New argument is_64bit. All users updated.
10920 * grub-core/loader/macho32.c: Add defines for new fields.
10921 * grub-core/loader/macho64.c: Likewise.
10922 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
10923 (grub_macho_parse): Handle compressed.
10924 Defer actual processing if compressed.
10925 (grub_macho_cmds_iterate): Decompress if compressed. New argument
10926 "filename". All users updated.
10927 (grub_macho_size): New argument "filename". All users updated.
10928 (grub_macho_get_entry_point): Likewise.
10929 (grub_macho_load): Handle compressed.
10930 * include/grub/macho.h (grub_macho_lzss_header): New struct.
10931 (GRUB_MACHO_LZSS_OFFSET): New define.
10932 (grub_decompress_lzss): New proto.
10933 * include/grub/machoload.h (grub_macho_file): New fields to handle
10934 compressed.
10935 (grub_macho_contains_macho64): Remove proto.
10936 (grub_macho_contains_macho32): Likewise.
10937 * util/grub.d/30_os-prober.in: Use kernel cache if available.
10938
ebd17d6f
VS
109392012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10940
10941 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
10942
2702b4e4
VS
109432012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
10944
10945 Fix make dist.
10946
10947 * Makefile.am (starfield_theme_files): New var.
10948 (starfield_DATA): Use starfield_theme_files.
10949 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
10950 Add bootcheck-related files.
10951 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
10952 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
10953 and font_char_metrics.txt.
10954 * grub-core/Makefile.core.def (kernel): Update extra_dist.
10955 (setjmp): Add lib/ia64/longjmp.S.
10956 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
10957 * po/POTFILES.in: Regenerate.
10958 * po/Rules-swiss: use DISTFILES.common.extra2 and not
10959 DISTFILES.common.extra1.
10960 * util/devicemap.c: Removed.
10961 * grub-core/lib/i386/relocator_backward.S: Likewise.
10962 * util/import_gcry.py: Remove unused files. Add extra_dist for
10963 ChangeLog.
10964
cf1adfdf
VS
109652012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
10966
10967 * grub-core/gettext/gettext.c (grub_mofile_open): Call
10968 grub_gettext_delete_list before changing grub_gettext_max to avoid
10969 running out of array bounds.
10970
109712012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7acd2ae1
VS
10972
10973 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
10974 grub_vga_text_init/grub_vga_text_fini.
10975
cf1adfdf 109762012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
629e6a33
VS
10977
10978 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
10979
541d92e9
VS
109802012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10981
10982 * configure.ac: Bump to 2.00~beta0.
10983
7931dddf
VS
109842012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10985
10986 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
10987 missing initialisation.
10988
f1b16fa3
VS
109892012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10990
10991 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
10992
83ddae23
VS
109932012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10994
10995 Support v2 xnu boot arguments.
10996
10997 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
10998 New argument fsbfreq_out.
10999 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
11000 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
11001 be used.
11002 * grub-core/loader/machoXX.c (grub_macho_load): New argument
11003 darwin_version.
11004 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
11005 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
11006 (grub_xnu_boot_params): Rename to ...
11007 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
11008 (grub_xnu_boot_params_v2): New struct.
11009
dc693fe6
VS
110102012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11011
11012 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
11013 zeroing of CRC field before computing CRC.
11014
5a6e39c2
VS
110152012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11016
11017 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
11018 Change order of allocations to decrease fragmentation.
11019
6c21f5d7
VS
110202012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11021
11022 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
11023
cfe456dc
CW
110242012-02-27 Colin Watson <cjwatson@ubuntu.com>
11025
11026 Use write-combining MTRR to speed up video with buggy BIOSes.
11027
11028 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
11029 (cpuid): New define.
11030 (rdmsr): Likewise.
11031 (wrmsr): Likewise.
11032 (mtrr_base): Likewise.
11033 (mtrr_mask): Likewise.
11034 (grub_vbe_enable_mtrr_entry): New function.
11035 (grub_vbe_enable_mtrr): Likewise.
11036 (grub_vbe_disable_mtrr): Likewise.
11037 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
11038 control off to BIOS.
11039 (grub_video_vbe_init): Fill mtrr.
11040 (grub_video_vbe_fini): Disable mtrr.
11041 (grub_video_vbe_get_info_and_fini): Likewise.
11042 (grub_video_vbe_setup): Enable mtrr.
11043
e3c78337
CW
110442012-02-27 Colin Watson <cjwatson@ubuntu.com>
11045
11046 * include/grub/partition.h (grub_partition_map): Change prototype of
11047 embed to take a maximum value for nsectors.
11048 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
11049 * include/grub/fs.h (grub_fs): Likewise.
11050 * grub-core/partmap/msdos.c (embed_signatures): New array.
11051 (pc_partition_map_embed): Check for and avoid sectors matching any
11052 of the signatures in embed_signatures, up to max_nsectors.
11053 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
11054 returned sector map to max_nsectors.
11055 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
11056 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
11057 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
11058 * util/grub-setup.c (setup): Allow for the embedding area being
11059 split into multiple blocklists. Tell dest_partmap->embed the
11060 maximum number of sectors we care about.
11061
110622012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11063
11064 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
11065 Specify blocklist_install and reserver_first_sector for all fs.
11066 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
11067 blocklists.
11068
984b973f
VS
110692012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11070
11071 * util/grub-install.in: Clarify strings.
11072 Fix source dir check.
11073
f122e0d6
RL
110742012-02-27 Richard Laager <rlaager@wiktel.com>
11075
11076 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
11077 "zfs" and "fuse.zfs" as synonyms.
11078
071114bb
VS
110792012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11080
11081 * configure.ac: Put platform and target_cpu substitutions back since
11082 they are used for directories.
11083
817e6abc
RL
110842012-02-27 Richard Laager <rlaager@wiktel.com>
110852012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11086
11087 * util/grub.d/10_linux.in: Add ZFS-related arguments.
11088 * util/grub.d/20_linux_xen.in: Likewise.
11089
897b7419
RL
110902012-02-27 Richard Laager <rlaager@wiktel.com>
11091
11092 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
11093 with full paths.
11094
a414bd15
RL
110952012-02-27 Richard Laager <rlaager@wiktel.com>
11096
11097 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
11098 unescape.
11099
30ac48c4
VS
111002012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11101
11102 Don't use insecure popen in getroot.
11103
11104 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
11105 (exec_pipe): ... here.
11106 (find_root_devices_from_poolname): Use exec_pipe.
11107
53f13848
VS
111082012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11109
11110 Remove platform and target_cpu replacement.
11111
11112 * configure.ac: Remove platform and target_cpu substitutions.
11113 * tests/util/grub-shell.in: Use modinfo.
11114 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
11115 explicitly.
11116
90cb2803
VS
111172012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11118
11119 Autodetect platform in grub-install but allow override.
11120
11121 * util/grub-install.in: Autodetect platform. Support --target and
11122 --directory. Read platform from modinfo.sh.
11123
b9136427
VS
111242012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11125
11126 Support btrfs multi-volume probe.
11127
11128 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
11129 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
11130 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
11131 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
11132 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
11133 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
11134 grub_find_root_devices_from_btrfs if on btrfs.
11135
c36e5cd1
VS
111362012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11137
11138 Remove any awareness of *.c util files about target.
11139
11140 * Makefile.util.def (grub-setup): Split to ...
11141 (grub-bios-setup): ... and this.
11142 (grub-sparc64-setup): ... and this.
11143 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
11144 * docs/man/grub-setup.h2m: Split into ...
11145 * docs/man/grub-sparc64-setup.h2m: ... this.
11146 * docs/man/grub-bios-setup.h2m: ... and this.
11147 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
11148 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
11149 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
11150 (grub_target_addr_t): Remove.
11151 (grub_target_size_t): Remove.
11152 (grub_target_ssize_t): Remove.
11153 * util/grub-install.in: Use new grub-*-setup.
11154 * util/grub-mkimagexx.c (Elf_Word): New define.
11155 (Elf_Half): Likewise.
11156 (Elf_Section): Likewise.
11157 (ELF_ST_TYPE): Likewise.
11158 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
11159 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
11160
584b2f8a
VS
111612012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11162
11163 Replace grub_target_addr with more appropriate types.
11164
11165 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
11166 grub_target_addr with grub_addr.
11167 * grub-core/commands/iorw.c (grub_cmd_read): Replace
11168 grub_target_addr with grub_port.
11169 (grub_cmd_write): Likewise.
11170 * grub-core/commands/memrw.c (grub_cmd_read): Replace
11171 grub_target_addr with grub_addr.
11172 (grub_cmd_write): Likewise.
11173 * grub-core/video/efi_uga.c (find_line_len): Likewise.
11174
5a0dc6fb
VS
111752012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11176
11177 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
11178 const qualifier for vendor_guid.
11179
786aff6e
VS
111802012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11181
11182 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
11183 const qualifier.
11184 (efiemu_memequal): Likewise.
11185 (find_variable): Likewise.
11186
49017b17
VS
111872012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11188
11189 Fix missing console prototype on qemu-mips.
11190
11191 * include/grub/mips/qemu_mips/console.h: New file.
11192
c5988629
MG
111932012-02-27 Matthew Garrett <mjg@redhat.com>
111942012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11195
11196 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
11197 * include/grub/efi/efi.h: Likewise.
11198 * include/grub/efi/api.h: Add guid for EFI-specified variables.
11199 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
11200 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
11201 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
11202 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
11203 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
11204
e33f8d69
MG
112052012-02-27 Matthew Garrett <mjg@redhat.com>
11206
11207 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
11208
fb312cd9
VS
112092012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11210
11211 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
11212 error.
11213
7134247c
VS
112142012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11215
11216 * configure.ac: Remove inappropriate use of program_transform_name
11217 on grubdir and bootdir but allow explicit specification of those
11218 variables.
11219
6a313124
VS
112202012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11221
11222 * util/grub-mknetdir.in (grub_prefix): Removed.
11223 (subdir): Use @bootdirname@ and @grubdirname@.
11224
2311c5ca
VS
112252012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11226
11227 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
11228
7d5d60f7
VS
112292012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11230
11231 * po/POTFILES.in: Regenerated.
11232
8151bc82
VS
112332012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11234
11235 Remove improper use of program_transform_name on pkglibrootdir.
11236
11237 * configure.ac (pkglibrootdir): Removed.
11238 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
11239 * util/grub-mkimage.c: Likewise.
11240
b4a6a533
VS
112412012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11242
11243 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
11244 warning.
11245
668f304f
VS
112462012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11247
11248 * util/grub-install.in: Use file identifier if no UUID is available
11249 or user explicitly prompted for it.
11250
665f2341
NP
112512012-02-27 Navdeep Parhar <nparhar@gmail.com>
11252
11253 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
11254 (freebsd_get_zfs): New function.
11255 (grub_freebsd_boot): Pass zfs UUID.
11256 (grub_cmd_freebsd): Set zfs UUID.
11257
8151bc82 112582012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
1240a58a
VS
11259
11260 * conf/Makefile.common (platformdir): Base on pkglibdir and not
11261 pkglibrootdir.
11262
e4c498a1
MG
112632012-02-27 Mike Gilbert <floppym@gentoo.org>
11264
11265 Add configure flag to control libzfs integration.
11266
11267 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
11268
1e9a9a3f
VS
112692012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11270
11271 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
11272 device.
11273 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
11274 small devices.
11275
036985b8
VS
112762012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11277
11278 Remove grub_{modname}_init and grub_{modname}_fini. They should never
11279 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
11280 be used on non-modules.
11281
11282 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
11283 Rename to grub_boot_init.
11284 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
11285 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
11286 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
11287 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
11288 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
11289 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
11290 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
11291 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
11292 includes.
11293 (grub_machine_init): Remove empty inits.
11294 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
11295 includes.
11296 (grub_machine_init): Remove empty inits.
11297 * grub-core/term/arc/console.c: Remove explicit proto.
11298 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
11299 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
11300 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
11301 grub_at_keyboard_fini.
11302 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
11303 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
11304 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
11305 grub_gfxterm_fini.
11306 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
11307 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
11308 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
11309 grub_vgatext_fini.
11310 * grub-core/term/ieee1275/console.c: Remove explicit proto.
11311 * grub-core/term/serial.c (GRUB_MOD_INIT)
11312 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
11313 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
11314 grub_serial_fini.
11315 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
11316 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
11317 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
11318 grub_terminfo_fini.
11319 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
11320 (GRUB_MOD_FINI): Likewise.
11321 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
11322 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
11323 (GRUB_MOD_FINI) [LOONGSON]: Rename to
11324 grub_video_radeon_fuloong2e_fini.
11325 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
11326 [LOONGSON]: Rename to grub_video_sis315pro_init.
11327 (GRUB_MOD_FINI) [LOONGSON]: Rename to
11328 grub_video_sis315pro_fini.
11329 * grub-core/video/sm712.c (GRUB_MOD_INIT)
11330 [LOONGSON]: Rename to grub_video_sm712_init.
11331 (GRUB_MOD_FINI) [LOONGSON]: Rename to
11332 grub_video_sm712_fini.
11333 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
11334 (grub_at_keyboard_fini): Likewise.
11335 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
11336 Don't declare grub_{modname}_init.
11337 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
11338 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
11339 New proto.
11340 (grub_keylayouts_fini) [!EMU]: Likewise.
11341 * include/grub/serial.h (grub_serial_init) [!EMU]:
11342 New proto.
11343 (grub_serial_fini) [!EMU]: Likewise.
11344 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
11345 New proto.
11346 (grub_terminfo_fini) [!EMU]: Likewise.
11347 * include/grub/video.h (grub_font_init) [!EMU]:
11348 New proto.
11349 (grub_font_fini) [!EMU]: Likewise.
11350 (grub_gfxterm_init) [!EMU]: Likewise.
11351 (grub_gfxterm_fini) [!EMU]: Likewise.
11352 (grub_video_sm712_init) [!EMU]: Likewise.
11353 (grub_video_sm712_fini) [!EMU]: Likewise.
11354 (grub_video_sis315pro_init) [!EMU]: Likewise.
11355 (grub_video_sis315pro_fini) [!EMU]: Likewise.
11356 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
11357 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
11358
d5534665
VS
113592012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11360
11361 Make nand a prefix for nand devices.
11362
11363 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
11364
10133b5f
VS
113652012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11366
11367 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
11368 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
11369
8e307a62
VS
113702012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11371
11372 * include/grub/env.h (grub_env_find): Remove prototype.
11373 * grub-core/kern/env.c (grub_env_find): Make static.
11374 (grub_env_set): Remove useless set.
11375
a4c65f34
VS
113762012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11377
11378 * grub-core/kern/i386/realmode.S: Remove useless align.
11379
d87893d5
VS
113802012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11381
11382 * include/grub/dl.h (grub_dl_load_file): Don't export.
11383
50159add
VS
113842012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11385
11386 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
11387 grub_dprintf.
11388
b2582b84
VS
113892012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11390
11391 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
11392 grub_errors.
11393 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
11394 not reloading whole superblock but only the part which is really needed.
11395 Remove useless grub_errors.
11396 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
11397 grub_errors.
11398
e2a83395
VS
113992012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11400
11401 Don't export grub_get_rtc.
11402
11403 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
11404 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
11405
e7d2a906
VS
114062012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11407
11408 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
11409
6cf1363b
VS
114102012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11411
11412 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
e7d2a906 11413 argument since it can be deduced from diskfilter. All users updated.
6cf1363b 11414
eece3349
VS
114152012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11416
11417 Remove prio_list.
11418
11419 * include/grub/list.h (grub_prio_list): Removed.
11420 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
11421 GRUB_COMMAND_PRIO_MASK.
11422 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
11423 GRUB_COMMAND_FLAG_ACTIVE.
11424 (grub_prio_list_insert): Removed.
11425 (grub_prio_list_remove): Likewise.
11426 (GRUB_AS_PRIO_LIST): Likewise.
11427 (GRUB_AS_PRIO_LIST_P): Likewise.
11428 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
11429 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
11430 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
11431 * grub-core/kern/command.c (grub_register_command_prio): Inline
11432 the prio_list code.
11433 (grub_unregister_command): Likewise.
11434
94f064b4
VS
114352012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11436
11437 Fix interrupt mixup from previous commit.
11438
11439 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
11440 (grub_realidt): New var.
11441 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
11442 Load idt.
11443 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
11444 New declaration.
11445 (grub_relocator16_boot): Set grub_relocator16_idt.
11446 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
11447 (LOCAL(realidt)): ... this.
11448 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
11449 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
11450 (grub_realidt): New variable.
11451
27317084
VS
114522012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11453
11454 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
11455 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
11456 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
11457 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
11458 Gettextize.
11459 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
11460 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
11461 * po/POTFILES.in: Regenerate.
11462
47b40053
VS
114632012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11464
11465 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
11466 errors.
11467
2b343101
VS
114682012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11469
11470 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
11471 \0.
11472 (add_length): Likewise.
11473
ff27c3dd
LK
114742012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
114752012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
11476
11477 GDB serial and backtrace support.
11478
11479 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
11480 (prot_to_real): Likewise.
11481 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
11482 * grub-core/Makefile.core.def (backtrace): New module.
11483 (gdb): Likewise.
11484 * grub-core/gdb/cstub.c: New file.
11485 * grub-core/gdb/gdb.c: Likewise.
11486 * grub-core/gdb/i386/idt.c: Likewise.
11487 * grub-core/gdb/i386/machdep.S: Likewise.
11488 * grub-core/gdb/i386/signal.c: Likewise.
11489 * grub-core/lib/i386/backtrace.c: Likewise.
4cebfa1a 11490 * grub-core/lib/backtrace.c: Likewise.
ff27c3dd
LK
11491 * include/grub/backtrace.h: Likewise.
11492 * include/grub/gdb.h: Likewise.
11493 * include/grub/i386/gdb.h: Likewise.
11494
114952012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
585031cb
VS
11496
11497 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
11498 New function.
11499 (add_length): Likewise.
11500 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
11501 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
11502 proto.
11503 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
11504 __argp_get_display_len.
11505
ff27c3dd 115062012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7e8fac16
VS
11507
11508 $"..." support in scripts.
11509
11510 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
11511 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
11512 * grub-core/script/yylex.l: Likewise.
11513 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
11514 value.
11515
ff27c3dd 115162012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
15eff5d9
VS
11517
11518 * gentpl.py: Remove obsolete pkglib_DATA handling.
11519
ff27c3dd 115202012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
fc847818
VS
11521
11522 Don't transform PACKAGE_TARNAME following a discussion on autoconf
11523 mailing list.
11524
11525 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
11526 * util/grub-kbdcomp.in: Likewise.
11527 * util/grub-mkconfig.in: Likewise.
11528 * util/grub-mkconfig_lib.in: Likewise.
11529 * util/grub-mknetdir.in: Likewise.
11530 * util/grub-mkrescue.in: Likewise.
11531 * util/grub-mkstandalone.in: Likewise.
11532 * util/grub-reboot.in: Likewise.
11533 * util/grub-set-default.in: Likewise.
11534 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11535
ff27c3dd 115362012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
47454da5
VS
11537
11538 Remove GRUB_PREFIX.
11539
11540 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
11541 * util/grub.d/00_header.in: Compute prefix in the only place it's still
11542 used for backward compatibility.
11543
ff27c3dd 115442012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
22c7ce85
VS
11545
11546 Add new all_video module.
11547
11548 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
11549 * grub-core/Makefile.core.def (all_video): New module.
11550 * grub-core/genmoddep.awk: Generate dependency of all_video from
11551 video.lst.
11552 * grub-core/lib/fake_module.c: New file.
11553 * grub-core/normal/main.c (features): Add feature_all_video_module.
11554 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
11555 don't do explicit search again.
47454da5 11556 insmod all_video in load_video if available.
22c7ce85 11557
ff27c3dd 115582012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
67093bc0
VS
11559
11560 Another round of string clarification and adding TRANSLATORS comments.
11561
ff27c3dd 115622012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
ad7b7b85
VS
11563
11564 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
11565
ff27c3dd 115662012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8b282ad2
VS
11567
11568 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
11569 to grub_ssize_t.
11570 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
11571 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
11572
ff27c3dd 115732012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
d43ad754
VS
11574
11575 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
11576 trailing newline implicitly. All users updated.
11577
ff27c3dd 115782012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
a9c7fd1c
VS
11579
11580 Implement serial on IEEE1275 and EFI.
11581
11582 * docs/grub.texi (Platform-specific limitations): Fix the columen video
11583 on emu. Mention arc and emu as the only platforms without serial
11584 support.
11585 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
11586 ieee1275 platforms.
11587 * grub-core/term/efi/serial.c: New file.
11588 * grub-core/term/ieee1275/serial.c: Likewise.
11589 * grub-core/term/serial.c (grub_serial_find): Disable direct port
11590 specification if no ns8250 driver is available.
11591 (grub_cmd_serial): Likewise.
11592 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
11593 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
11594 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
11595 (grub_efi_parity_type_t): New type.
11596 (grub_efi_stop_bits_t): Likewise.
11597 (grub_efi_serial_io_interface): New struct.
11598 * include/grub/serial.h (grub_serial_port): Make 'broken' field
11599 available for all interfaces.
11600 Add EFI and IEEE1275 fields.
11601 (grub_ofserial_init): New proto.
11602 (grub_efiserial_init): Likeiwse.
11603 * util/grub.d/00_header.in: Don't check for the presence of serial
11604 module.
11605
ff27c3dd 116062012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
0ec82090
VS
11607
11608 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
11609 name as if it was an alias.
11610
114076ef
VS
116112012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
11612
11613 * grub-core/commands/lsacpi.c (options): Fix typo.
11614
6a656b0e
VS
116152012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
11616
11617 Convert grub-emu to argp.
11618
11619 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
11620 emu.
11621 * util/argp_common.c: Rename to ...
11622 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
11623 Add missing includes.
11624 * grub-core/kern/emu/main.c: Convert to argp.
11625 * po/POTFILES.in: Regenerate.
11626 * util/grub-install.in (usage): Make first letter lowcase in messages
11627 for uniformity.
11628 * util/grub-setup.c (options): Likewise.
11629
1e3f8ae8
VS
116302012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
11631
11632 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
11633 Put back accidently commented-out code.
11634
ed167a80
VS
116352012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
11636
11637 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
11638 loop check using Brent algorithm.
11639 (grub_hfsplus_btree_search): Likewise.
11640
6753c0ec
VS
116412012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
11642
11643 * util/grub-install.in: Fix usage of wrong device for PreP install.
11644
4e27343f
VS
116452012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
11646
11647 * conf/Makefile.common (CFLAGS_GNULIB): Add
11648 -Wno-unsafe-loop-optimizations.
11649 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
11650 on tools.
11651 * grub-core/commands/legacycfg.c: Add pragma to skip
11652 -Wunsafe-loop-optimizations.
11653 (check_password_md5_real): Fix loop counter type.
11654 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
11655 reading.
11656 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
11657 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
11658 loop condition.
11659 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
11660 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
11661 * grub-core/net/net.c (grub_net_route_address): Add safety loop
11662 condition.
11663 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
11664 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
11665 avoid possible infinite loops.
11666 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
11667 and -Wunsafe-loop-optimizations.
11668 * grub-core/script/yylex.l: Likewise.
11669 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
11670 (print_glyphs): Avoid infinite loops.
11671 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
11672
697f18b0
GS
116732012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
11674
11675 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
11676 to avoid infinite loop.
11677 (disp_acpi_rsdt_table): Likewise.
11678
274416e8
VS
116792012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
11680
11681 * grub-core/font/font.c (grub_font_load): Add support for default
11682 path for fonts ($prefix/fonts).
11683 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
11684 for checking if string is a path.
11685 * grub-core/normal/main.c (features): Add feature_default_font_path.
11686 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
11687 * util/grub.d/00_header.in: Use default directory if possible.
11688 * util/grub-install.in: Install unicode.pf2.
11689
b3e08622
VS
116902012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
11691
11692 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
11693 * po/Rules-swiss: New file.
11694 * po/swiss.sed: Likewise.
11695
fe42ce09
VS
116962012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
11697
11698 * grub-core/fs/btrfs.c (find_device): Fix typos.
11699 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
11700 * util/grub-mkrelpath.c (argp_parser): Likewise.
11701 Reported by: Yuri Chornoivan.
11702
72f1d065
DO
117032012-02-23 Dalet Omega <daletomega@gmail.com>
11704
11705 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
11706 for usual informative messages.
11707
c5884973
DO
117082012-02-23 Dalet Omega <daletomega@gmail.com>
11709
11710 Starfield theme.
11711
11712 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
11713 * conf/Makefile.common: Define starfielddir.
11714 * configure.ac: Configure starfield.
11715 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
11716 * themes/starfield/README: Likewise.
11717 * themes/starfield/blob_w.png: Likewise.
11718 * themes/starfield/boot_menu_c.png: Likewise.
11719 * themes/starfield/boot_menu_e.png: Likewise.
11720 * themes/starfield/boot_menu_n.png: Likewise.
11721 * themes/starfield/boot_menu_ne.png: Likewise.
11722 * themes/starfield/boot_menu_nw.png: Likewise.
11723 * themes/starfield/boot_menu_s.png: Likewise.
11724 * themes/starfield/boot_menu_se.png: Likewise.
11725 * themes/starfield/boot_menu_sw.png: Likewise.
11726 * themes/starfield/boot_menu_w.png: Likewise.
11727 * themes/starfield/slider_c.png: Likewise.
11728 * themes/starfield/slider_n.png: Likewise.
11729 * themes/starfield/slider_s.png: Likewise.
11730 * themes/starfield/src/blob_nw.xcf: Likewise.
11731 * themes/starfield/src/bootmenu/: Likewise.
11732 * themes/starfield/src/bootmenu/center.xcf: Likewise.
11733 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
11734 * themes/starfield/src/bootmenu/side.xcf: Likewise.
11735 * themes/starfield/src/slider_c.xcf: Likewise.
11736 * themes/starfield/src/slider_n.xcf: Likewise.
11737 * themes/starfield/src/slider_s.xcf: Likewise.
11738 * themes/starfield/src/terminalbox/: Likewise.
11739 * themes/starfield/src/terminalbox/center.xcf: Likewise.
11740 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
11741 * themes/starfield/src/terminalbox/side.xcf: Likewise.
11742 * themes/starfield/starfield.png: Likewise.
11743 * themes/starfield/terminal_box_c.png: Likewise.
11744 * themes/starfield/terminal_box_e.png: Likewise.
11745 * themes/starfield/terminal_box_n.png: Likewise.
11746 * themes/starfield/terminal_box_ne.png: Likewise.
11747 * themes/starfield/terminal_box_nw.png: Likewise.
11748 * themes/starfield/terminal_box_s.png: Likewise.
11749 * themes/starfield/terminal_box_se.png: Likewise.
11750 * themes/starfield/terminal_box_sw.png: Likewise.
11751 * themes/starfield/terminal_box_w.png: Likewise.
11752 * themes/starfield/theme.txt: Likewise.
11753
17d73325
VS
117542012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
11755
11756 * util/grub.d/00_header.in: Add missing export theme.
11757
dbebaf92
VS
117582012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11759
11760 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
11761 already included.
11762 Reported by: Eren D.
11763
3d68bffb
VS
117642012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11765
11766 * conf/Makefile.common (grubdatadir): Removed.
11767 (Makefile.am): Move eveything grubdata to pkgdata.
11768
4b59234d
VS
117692012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11770
11771 * grub-core/commands/acpihalt.c (get_sleep_type):
11772 Remove unused variable.
11773
463dcadc
VS
117742012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11775
11776 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
11777 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
11778 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
11779 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
11780 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
11781 i18n with gettext no-op.
11782 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
11783 GRUB_ACPI_OPCODE_STRING_CONST.
11784 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
11785 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
11786
e5b90c82
VS
117872012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11788
11789 * po/POTFILES.in: Regenerate.
11790
2a704ca9
VS
117912012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11792
11793 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
11794 -Wno-error=missing-noreturn.
11795
84f9d341
VS
117962012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11797
11798 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
11799 condition to avoid possibly infinite loops.
11800 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
11801 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
11802
d46683f9
VS
118032012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11804
11805 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
11806 condition to avoid possibly infinite loops.
11807
c44866b2
VS
118082012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11809
11810 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
11811 on show_error.
11812
96790539
VS
118132012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11814
11815 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
11816
1ba7e295
VS
118172012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11818
11819 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
11820
21ffe8f1
VS
118212012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11822
11823 * util/bin2h.c (usage): Add missing attribute noreturn.
11824
0ccb6b3c
VS
118252012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11826
11827 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
11828 if the size isn't divisible by 512.
11829
b00d7fb6
VS
118302012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11831
11832 Make list_push and list_remove functions rather than inline functions
11833 to decrease size and avoid aliasing violations.
11834
11835 * include/grub/list.h (grub_list_push): Move to ...
11836 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
11837 * include/grub/list.h (grub_list_remove): Move to ...
11838 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
11839
9d369087
VS
118402012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11841
11842 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
11843 and -Wunused-result.
11844
af0250d9
VS
118452012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
11846
11847 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
11848 Reported by: Seth Goldberg
11849
aad32b14
VS
118502012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
11851
11852 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
11853
ac96441c
ST
118542012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
11855
11856 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
11857 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
11858 command line.
11859 * docs/grub.texi (Simple configuration): Document
11860 GRUB_CMDLINE_GNUMACH.
11861
118622012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
80a71213
VS
11863
11864 * conf/Makefile.common (platform_SCRIPTS): New variable.
11865 (platform_PROGRAMS): Likewise.
11866 * gentpl.py: Mark *,module and *.image for install.
11867 * grub-core/gdb_grub.in: Add a notice of expected environment.
11868 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
11869 (gmodule.pl): Likewise.
11870
ac96441c 118712012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
a8f16eab
VS
11872
11873 Replace grub_checkkey with grub_getkey_noblock.
11874
11875 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
11876 (grub_getkey_noblock): ... this. All users updated.
11877
ac96441c 118782012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
b500bcfe
VS
11879
11880 * grub-core/kern/emu/console.c: Move to ...
11881 * grub-core/term/emu/console.c: ...here.
11882 (grub_ncurses_getkey): Fix return value if no key is detected.
11883
e51b5666
VS
118842012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11885
11886 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
11887 (grub_unit_test_fini): Likewise.
11888 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
11889
118902012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11891
11892 * include/grub/test.h (GRUB_UNIT_TEST)
11893
d9a62292
VS
118942012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11895
11896 * grub-core/script/execute.c (grub_script_break): Clarify logic.
11897 Better error handling.
11898 (grub_script_return): Likewise.
11899 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
11900
77c9182f
VS
119012012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11902
11903 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
11904 rimplicit redifinition.
11905
edb13cf9
VS
119062012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11907
11908 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
11909 GRUB.
11910
a9e9dc7c
VS
119112012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11912
11913 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
11914 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
11915 prompt here.
11916
b4ba8e02
VS
119172012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11918
11919 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
11920 as GRUB_ERR_BUG. Don't malloc if no device is available.
11921
dded5540
VS
119222012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11923
11924 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
11925 Mark calling with invalid term as GRUB_ERR_BUG.
11926
0cf69874
VS
119272012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11928
11929 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
11930 packets rather than raising an error.
11931
59bfe502
VS
119322012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11933
11934 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
11935 in if.
11936
db5fc596
VS
119372012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11938
11939 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
11940 diagnostic to dprintf.
11941 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
11942
e4b7f404
VS
119432012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11944
11945 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
11946 device name.
11947
e7b02f9e
VS
119482012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11949
11950 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
11951 (grub_ntfs_iterate_dir): Likewise.
11952
0331e102
VS
119532012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11954
11955 Efiemu stylistic fixes and gettext.
11956
11957 * grub-core/efiemu/i386/loadcore32.c
11958 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
11959 * grub-core/efiemu/i386/loadcore64.c
11960 (grub_arch_efiemu_relocate_symbols64): Likewise.
11961 * grub-core/efiemu/i386/pc/cfgtables.c
11962 (grub_machine_efiemu_init_tables): Likewise.
11963 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
11964 (grub_efiemu_loadcore_initXX): Add a filename argument.
11965 All users updated.
11966 Improved error message.
11967 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
11968 Add a filename argument.
11969 All users updated.
11970 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
11971 Reclassify double relocation as GRUB_ERR_BUG.
11972
306fc074
VS
119732012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11974
11975 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
11976 handling.
11977
794d8ef2
VS
119782012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11979
11980 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
11981 on partition.
11982
119832012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
f991dd3c
VS
11984
11985 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
11986
794d8ef2 119872012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
d61386e2
VS
11988
11989 Improve string. Gettextize.
11990
78dde88e
VS
119912012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
11992
11993 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
11994 utils.
11995 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
11996
4786a90f
VS
119972012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
11998
11999 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
12000 [GRUB_UTIL]: New function.
12001 (insert_array) [GRUB_UTIL]: Store partmaps.
12002 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
12003 partmaps.
12004 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
12005 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
12006 (probe_abstraction): Print diskfilter and not raid.
12007 Reported by: Lennart Sorensen
12008
0b6225bd
VS
120092012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
12010
12011 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
12012 * util/grub-mkimagexx.c (MASK3): New define.
12013 (add_value_to_slot_20b): Use MASK3.
12014 (add_value_to_slot_21): Likewise.
12015 (relocate_addresses): Fix format specification.
12016 (load_image): Explicitly init symtab_section.
12017
b055f8f6
VS
120182012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
12019
12020 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
12021 (grub_util_biosdisk_get_grub_dev): Fix format specification.
12022
b77c2fb7
VS
120232012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
12024
12025 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
12026 on powerpc.
12027 Reported by: Lennart Sorensen
12028
e3ec28ab
VS
120292012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
12030
12031 * gentpl.py: Add missing license header.
12032 * docs/grub.texi: Update copyright year.
12033
c8d9ead6
GS
120342012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
12035
12036 Source grub-mkconfig_lib from the build directory at build time.
12037 Suggested by: Vladimir Serbinenko.
12038
12039 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
12040 * util/grub-install.in: Define pkgdatadir if not already set, and source
12041 grub-mkconfig_lib from there.
12042 * util/grub-kbdcomp.in: Likewise.
12043 * util/grub-mkconfig.in: Likewise.
12044 * util/grub-mknetdir.in: Likewise.
12045 * util/grub-mkrescue.in: Likewise.
12046 * util/grub-mkstandalone.in: Likewise.
12047 * util/grub-reboot.in: Likewise.
12048 * util/grub-set-default.in: Likewise.
12049 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12050
ebcecdf1
VS
120512012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12052
12053 Increase warning level.
12054
12055 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
12056 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
12057 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
12058 (TARGET_CFLAGS): Likewise.
12059 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
12060 * grub-core/Makefile.core.def (decompressor_xz): Add
12061 -Wno-unreachable-code.
12062 (normal): Add -Wno-redundant-decls.
12063 (xzio): Add -Wno-unreachable-code.
12064 (lzopio): Add -Wno-redundant-decls -Wno-error.
12065 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
12066 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
12067 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
12068 * grub-core/kern/dl.c: Add exception to -Wcast-align.
12069 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
12070 * grub-core/kern/i386/coreboot/init.c: Add exception to
12071 -Wsuggest-attribute=noreturn.
12072 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
12073 * grub-core/kern/ia64/dl_helper.c: Likewise.
12074 * grub-core/kern/mips/dl.c: Likewise.
12075 * grub-core/kern/sparc64/dl.c: Likewise.
12076 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
12077 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
12078 (memcmp): Likewise.
12079 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
12080 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
12081 * grub-core/loader/mips/linux.c: Likewise.
12082 * grub-core/loader/multiboot_elfxx.c: Likewise.
12083 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
12084 * grub-core/video/sm712.c: Add exception to -Wcast-align.
12085 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
12086 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
12087 fixme.
12088 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
12089 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
12090 Fix prototype.
12091
37bb97fe
VS
120922012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12093
12094 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
12095 address.
12096
29a3550b
VS
120972012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12098
12099 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
12100 Avoid improper use of strings.
12101 (grub_cmd_legacy_initrdnounzip): Likewise.
12102
dfdffd0d
VS
121032012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12104
12105 * include/grub/emu/misc.h (grub_util_warn): Add missing format
12106 attribute.
12107 (grub_util_info): Likewise.
12108 (grub_util_error): Likewise.
12109
102fae4a
VS
121102012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12111
12112 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
12113 * util/grub-fstest.c (fstest): Likewise.
12114
7e94d044
VS
121152012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12116
12117 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
12118 (grub_md_sha512_real): Likewise.
12119 (grub_util_get_geli_uuid): Likewise.
12120 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
12121 (grub_util_biosdisk_open): Fix format specification.
12122 Respect format security.
12123 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
12124 (xrealloc): Likewise.
12125 (xasprintf): Likewise.
12126
5ebd9769
VS
121272012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12128
12129 * util/import_gcry.py: Include grub/crypto.h in init.c.
12130
495fc8c1
VS
121312012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12132
12133 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
12134 (generate_image): Make prefix a const char *.
12135 Fix format specifications. Respect format security.
12136 Avoid void * arithmetics.
12137 Avoid shadowing.
12138 (argp_parser): Remove unused variable. Respect format security.
12139 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
12140 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
12141 (count_funcs): Remove unused variable.
12142 (relocate_addresses): Fix format specification.
12143 Disable x86-64 with elf32. Remove unused variables.
12144 (add_fixup_entry): Avoid shadowing.
12145 (make_reloc_section): Fix format specification.
12146 Use assert.
12147 (locate_sections): Fix format specifications.
12148 (load_image): Avoid shadowing.
12149
043c2ea3
VS
121502012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12151
12152 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
12153 Fix format specifications. Respect format security.
12154 Don't translate already translated grub_errmsg.
12155 (argp_parser): Remove unused variable
12156
3ec65a81
VS
121572012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12158
12159 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
12160
a4d9fe4a
VS
121612012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12162
12163 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
12164 (main): Likewise. Use xmalloc. Respect format security.
12165
15b81d49
VS
121662012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12167
12168 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
12169 a const char *.
12170 (argp_parser): Remove unused variable.
12171
31731fc0
VS
121722012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12173
12174 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
12175 (add_pixel): Make static.
12176 (add_font): Likewise.
12177 (write_string_section): Make name and str a const char *.
12178 (write_be16_section): Make name a const char *.
12179 (print_glyphs): Make static.
12180 (write_font_ascii_bitmap): Likewise.
12181 (write_font_width_spec): Likewise.
12182 (write_font_pf2): Likewise.
12183 (argp_parser): Remove unused variable.
12184 Respect format security.
12185 (main): Avoid shadowing. Respect format security.
12186
0809527b
VS
121872012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12188
12189 * util/grub-editenv.c (argp_parser): Make static.
12190 (create_envblk_file): Use xmalloc.
12191 (open_envblk_file): Likewise.
12192 Resepect format security.
12193 (set_variables): Respect format security.
12194
45b0c8b7
VS
121952012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12196
12197 * util/getroot.c (grub_find_device): Respect format security.
12198 (get_mdadm_uuid): Remove unused variable.
12199 (grub_util_pull_device): Dont call gettext on already translated
12200 grub_errmsg.
12201 (find_system_device): Remove unused variable.
12202 (grub_util_get_grub_dev): Likewise.
12203 (grub_make_system_path_relative_to_its_root): Respect format security.
12204
1b024b4e
VS
122052012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12206
12207 * util/grub-fstest.c (execute_command): Make first argument
12208 a const char *.
12209 (read_file): Avoid shadowing.
12210 Reuse underlying error message if device open fails.
12211 (cmd_cmp): Respect format security.
12212 (root): Make const char *.
12213 (fstest): Remove args argument and use global copy.
12214 Respect format security.
12215 (argp_parser): Make static.
12216 (main): Make default_root const char *.
12217
5d1d4e28
VS
122182012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12219
12220 * util/grub-mount.c (root): Make const char *.
12221 (execute_command): Make first argument a const char *.
12222 (fuse_init): Respect format security.
12223 (argp_parser): Make static. Remove unused variable.
12224 (main): Make default_root a const char *.
12225 Respect format security.
12226
36eb7379
VS
122272012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12228
12229 * util/grub-probe.c (probe): Don't call gettext on already translated
12230 grub_errmsg.
12231 Remove unused variables.
12232 (argp_parser): Remove unused variable.
12233
76fb2ea9
VS
122342012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12235
12236 * util/grub-script-check.c (argp_parser): Remove unused variable.
12237 (main): Rename read to curread to avoid shadowing.
12238
56c98584
VS
122392012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12240
12241 * util/misc.c (grub_util_write_image_at): Fix format specification.
12242 (grub_util_write_image): Likewise.
12243 (grub_script_execute_argument_to_string): Removed (unused).
12244 (grub_script_execute_menuentry): Likewise.
12245 (grub_putchar): Likewise.
12246
164ebb48
VS
122472012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12248
12249 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
12250 (FUNCTION) [GRUB_UTIL]: Likewise.
12251 (VARIABLE) [GRUB_UTIL]: Likewise.
12252
44318d61
VS
122532012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12254
12255 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
12256 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
12257
31a26002
VS
122582012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12259
12260 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
12261 buffer.
12262
122632012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12264
12265 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
12266 (LzmaEnc_SaveState): Removed (unused).
12267 (LzmaEnc_RestoreState): Likewise.
12268 (LzmaEnc_InitPriceTables): Made static.
12269 (LzmaEnc_Construct): Likewise.
12270 (LzmaEnc_FreeLits): Likewise.
12271 (LzmaEnc_Destruct): Likewise.
12272 (LzmaEnc_Init): Likewise.
12273 (LzmaEnc_InitPrices): Likewise.
12274 (LzmaEnc_Finish): Likewise.
12275 (LzmaEnc_PrepareForLzma2): Removed (unused).
12276 (LzmaEnc_MemPrepare): Likewise.
12277 (LzmaEnc_GetNumAvailableBytes): Likewise.
12278 (LzmaEnc_GetCurBuf): Likewise.
12279 (LzmaEnc_CodeOneMemBlock): Likewise.
12280
6fa67967
VS
122812012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12282
12283 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
12284 (grub_util_ldm_embed): Likewise.
12285
9a7428e6
VS
122862012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12287
12288 * util/grub-editenv.c (print_var): Rename name to varname to
12289 avoid shadowing.
12290 (main): Rename index to curindex to avoid shadowing.
31a26002 12291 Make filename a const char *.
9a7428e6 12292
4f96abd1
VS
122932012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12294
12295 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
12296 to arg_getline to avoid shadowing.
12297
44d10dad
VS
122982012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12299
12300 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
12301 disk_ to avoid shadowing.
12302
340ba63e
VS
123032012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12304
12305 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
12306 curindex to avoid shadowing.
12307 Make static.
12308 (MatchFinder_GetNumAvailableBytes): Make static.
12309
22965bce
VS
123102012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12311
12312 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
12313 avoid shadowing.
12314
7b5784d4
VS
123152012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12316
12317 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
12318 argument from encrypt to do_encrypt to avoid shadowing.
12319
6f48ca01
VS
123202012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12321
12322 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
12323 incorrect nesting of #if's.
12324
a4ea2dff
VS
123252012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12326
12327 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
12328 checks which are always false on some platforms.
12329 (grub_cmd_lsacpi): Likewise.
12330 * grub-core/kern/misc.c (grub_strtoul): Likewise.
12331 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
12332 Likewise.
12333
def9fc1b
VS
123342012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12335
12336 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
12337 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
12338
a67b2a04
VS
123392012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12340
12341 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
12342 re_dfa_t to avoid breaking alignment invariants.
12343 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
12344 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
12345
44c6828d
VS
123462012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12347
12348 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
12349 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
12350
bebe0dd0
VS
123512012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12352
12353 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
12354 Fix declaration.
12355
a9cdb3cf
VS
123562012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12357
12358 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
12359 conserve alignment invariants.
12360 (grub_ehci_ehcc_read16): Likewise.
12361 (grub_ehci_oper_read32): Likewise.
12362 (grub_ehci_oper_write32): Likewise.
12363 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
12364 Conserve alignment invariants.
12365
ccc3b1b8
VS
123662012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12367
12368 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
12369 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
12370 declarations.
12371
987fbd95
VS
123722012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12373
12374 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
12375 Remove unused variable.
12376
0df363f3
VS
123772012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12378
12379 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
12380 Remove set in if.
12381
b2c0c4a6
VS
123822012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12383
12384 * include/grub/net.h: Remove double declarations.
12385
690c531f
VS
123862012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12387
12388 Remove "payload" command in ia64 Linux loader since I couldn't
12389 find any evidence of it being used for anything.
12390 Replace "relocate" command with an environment variable
12391
12392 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
12393 fields.
12394 (ia64_boot_payload): Removed.
12395 (last_payload): Likewise.
12396 (RELOCATE_OFF): Likewise.
12397 (RELOCATE_ON): Likewise.
12398 (RELOCATE_FORCE): Likewise.
12399 (relocate): Likewise.
12400 (free_pages): Don't free payloads.
12401 (grub_load_elf64): Use common error messages.
12402 Use "linux_relocate" variable.
12403 Increase the space after boot_params.
12404 (grub_cmd_payload): Removed.
12405 (grub_cmd_relocate): Likewise.
12406 (grub_cmd_fpswa): Improve messages.
12407 (cmd_payload): Removed.
12408 (cmd_relocate): Likewise.
12409 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
12410 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
12411
01783768
VS
124122012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12413
12414 Convert UHCI to DMA framework.
12415
12416 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
12417 (grub_uhci_pci_iter): Fill new members
12418 (grub_alloc_td): Use P2V and V2P functions.
12419 (grub_free_queue): Likewise.
12420 (grub_alloc_qh): Likewise.
12421 (grub_uhci_setup_transfer): Likewise.
12422 (grub_uhci_check_transfer): Likewise.
12423
43206939
VS
124242012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12425
12426 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
12427 Remove assignment in if while on it.
12428
571e140e
VS
124292012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12430
12431 * util/grub-mkstandalone.in: Fix modules directory.
12432
a9d96eeb
VS
124332012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12434
12435 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
12436 on i386-pc target.
12437 (argp_parser): Accept "auto" as compression specification.
12438
e4e37e8d
VS
124392012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12440
12441 Fix `help' with unloaded modules.
12442
12443 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
12444 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
12445 (grub_dyncmd_dispatcher): Small stylistic fix.
12446 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
12447 explicit help is requested.
12448
e1ea3ade
VS
124492012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12450
12451 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
12452 Explicitly init restart while on it.
12453
27556881
VS
124542012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12455
12456 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
12457 uninited variable.
12458
d65f6b36
VS
124592012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
12460
12461 * util/grub-mknetdir.in: Use . rather than source for POSIX
12462 compatibility.
12463
0a1e473c
VS
124642012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
12465
12466 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
12467
ce6647c8
VS
124682012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
12469
12470 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
12471 variable.
12472
66747894
VS
124732012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
12474
12475 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
12476 without quotes.
12477
71645f6e
VS
124782012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
12479
12480 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
12481
0e1c1f61
VS
124822012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
12483
12484 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
12485 iteration of partitions.
12486
9c4b5c13
VS
124872012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
12488
12489 Improve gettext support. Stylistic fixes and error handling fixes while
12490 on it.
12491
215c90cb
VS
124922012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
12493
12494 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
12495 part. Instead setup the correct stack in RM.
12496 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
12497 for stack.
12498 * include/grub/i386/relocator_private.h: New file.
12499
b5c1f9bf
VS
125002012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
12501
12502 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
12503 argument.
12504 * util/grub-fstest.c (options): Add missing DEVICE part.
12505
b525fd83
VS
125062012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
12507
12508 Clarify and unify messages.
12509
12510 * grub-core/commands/hashsum.c (options): Unify messages.
12511 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
12512 literal-only message as translatable.
12513 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
12514 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
12515 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
12516 commands.
12517 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
12518 key, not the key used to unlock. Clarify what it's used for.
12519 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
12520 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
12521 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
12522 * util/grub-editenv.c (options): Unify "verbose" message.
12523 * util/grub-fstest.c (read_file): Unify error message.
12524 (fstest): Add quotes around commands.
12525 (options): Unify "verbose" message.
12526 * util/grub-install.in: Add quotes around variable name.
12527 * util/grub-kbdcomp.in: Unify error message.
12528 * util/grub-mkfont.c (main): Likewise.
12529 * util/grub-mkrescue.in: Likewise.
12530 * util/grub-mklayout.c (options): Unify "verbose" message.
12531 * util/grub-mkstandalone.in: Unify help and verbose messages.
12532 * util/grub-mount.c (options): Unify "verbose" message.
12533 * util/grub-probe.c (options): Likewise.
12534 * util/grub-script-check.c (options): Likewise.
12535 * util/grub-setup.c (setup): Unify no-terminator message.
12536 (options): Use DEVICE and not DEV.
12537 Unify "verbose" message.
12538 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
12539
0ae70393
VS
125402012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
12541
12542 Improve and unify messages.
12543
12544 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
12545 name. All users updated.
12546 Print filename in error.
12547 (read_device_map): Print filename in error.
12548 * util/getroot.c (grub_guess_root_devices): Print filename in error.
12549 (grub_util_get_os_disk): Likewise.
12550 (grub_util_biosdisk_get_grub_dev): Likewise.
12551 (grub_util_check_block_device): Likewise.
12552 (grub_util_check_char_device): Likewise.
12553 (grub_make_system_path_relative_to_its_root): Likewise.
12554 * util/grub-editenv.c (create_envblk_file): Likewise.
12555 (open_envblk_file): Likewise.
12556 (write_envblk): Likewise.
12557 * util/grub-fstest.c (cmd_cp): Likewise.
12558 (cmd_cat): Likewise.
12559 (cmd_cmp): Likewise.
12560 * util/grub-menulst2cfg.c (main): Likewise.
12561 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
12562 (write_font_width_spec): Likewise.
12563 (write_font_pf2): Likewise.
12564 * util/grub-mkimage.c (generate_image): New argument outname.
12565 All users updated.
12566 Remove unreacheable message.
12567 (options): Unify messages.
12568 (help_filter): Likewise.
12569 * util/grub-mklayout.c (usage): Removed (unused).
12570 (main): Print filename in error.
12571 * util/grub-mkrescue.in: Fix wrong quoting.
12572 * util/grub-setup.c (setup): Print filename in error.
12573 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
12574 (check_sas): Likewise.
12575 * util/misc.c (grub_util_get_fp_size): Removed.
12576 (grub_util_get_image_size): Print filename in error.
12577 (grub_util_read_at): Removed.
12578 (grub_util_read_image): Print filename in error.
12579 (grub_util_load_image): Likewise.
12580 (grub_util_write_image_at): New argument filename. All users updated.
12581 Print filename in error.
12582 (grub_util_write_image): New argument filename. All users updated.
12583 Print filename in error.
12584 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
12585 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
12586
0a96117d
VS
125872012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
12588
12589 * grub-core/Makefile.core.def (pxechain): New module.
12590 * grub-core/loader/i386/pc/pxechainloader.c: New file.
12591 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
12592 function.
12593 (grub_pc_net_config_real): Use grub_pxe_get_cached.
12594 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
12595
aca002f7
VS
125962012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
12597
12598 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
12599 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
12600 * include/grub/err.h (grub_error_saved): New struct.
12601 (grub_errmsg): Make array size explicit.
12602 * include/grub/misc.h (grub_error_save): New function.
12603 (grub_error_load): Likewise.
12604 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
12605 (grub_error_push): Update `errno' member name.
12606 (grub_error_pop): Likewise
12607 * grub-core/net/tftp.c (tftp_data): New member save_err.
12608 (tftp_receive): Save error.
12609 (tftp_open): Restore error.
12610
a51dab13
VS
126112012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
12612
12613 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
12614 to real mode down to execute A20-related code in protected mode as
12615 intended.
12616
eb6e6649
GS
126172012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
12618
12619 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
12620 NULL when the argument `level' has an unexpected value.
12621
92cd0f6e
VS
126222012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
12623
12624 Move platform-dependent files from $prefix to $prefix/$platform.
12625
12626 * config.h.in (GRUB_TARGET_CPU): New definition.
12627 (GRUB_PLATFORM): Likewise.
12628 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
12629 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
12630 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
12631 * grub-core/kern/dl.c (grub_dl_load): Likewise.
12632 * grub-core/normal/autofs.c (read_fs_list): Likewise.
12633 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
12634 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
12635 * grub-core/normal/term.c (read_terminal_list): Likewise.
12636 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
12637 $prefix/locale.
12638 (grub_gettext_init_ext): Likewise.
12639 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
12640 grub_platform.
12641 * util/grub-install.in: Update directories.
12642 * util/grub-mknetdir.in: Likewise.
12643 * util/grub-mkrescue.in: Likewise.
12644
db606889
VS
126452012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
12646
12647 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
12648 grub_error framework. All users updated.
12649
c39992a4
VS
126502012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
12651
12652 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
12653 lists (by always binsearching), improve caching (cache strings
12654 used for binsearch, not only results), improve
12655 maintainability (by using more structured binary search) and correct
12656 error handling.
12657
1e5ec32f
VS
126582012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
12659
12660 * grub-core/script/execute.c (grub_script_return): Fix warning.
12661
ac576cde
VS
126622012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
12663
12664 * grub-core/script/execute.c (grub_script_return): Fix potential
12665 NULL-dereference.
12666 Reported by: Jim Meyering.
12667
498453f6
VS
126682012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12669
12670 * po/POTFILES.in: Regenerate.
12671 * util/grub-install.in: Gettextize the strings missed in first pass.
12672
8be63f2e
VS
126732012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12674
12675 * Makefile.util.def (grub-mkdevicemap): Removed.
12676 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
12677 * include/grub/util/deviceiter.h: Removed.
12678 * util/deviceiter.c: Likewise.
12679 * util/getroot.c (grub_util_get_os_disk): New function.
12680 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
12681 replacement for EFI.
12682 * util/grub-mkdevicemap.c: Removed.
12683 * util/grub-probe.c (probe): Handle PRINT_DISK.
12684 (argp_parser): Handle -t disk.
12685
8e1e4e39
VS
126862012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12687
12688 * util/grub-mkfont.c: Migrate to argp.
12689 * util/grub-mklayout.c: Likewise.
12690 * util/grub-mkpasswd-pbkdf2.c: Likewise.
12691 * util/grub-mkrelpath.c: Likewise.
12692 * util/grub-probe.c: Likewise.
12693 * util/grub-script-check.c: Likewise.
12694
4459819a
VS
126952012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12696
12697 * util/grub-reboot.in: Add missing datarootdir.
12698 Add missing newline.
12699 * util/grub-set-default.in: Add missing datarootdir.
12700 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
12701 * util/grub-mkrescue.in: Likewise.
12702
f65741c7
VS
127032012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12704
12705 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
12706
c1a33466
VS
127072012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12708
12709 * util/grub-kbdcomp.in: Add decent help and gettextize.
12710 * docs/man/grub-kbdcomp.h2m: New file.
12711
c76899a0
VS
127122012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12713
12714 Migrate grub-mkimage.c to argp.
12715
12716 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
12717 (grub-setup): Likewise.
12718 * util/grub-setup.c (print_version): Move to ...
12719 * util/argp_common.c (print_version): ... here.
12720 * util/grub-setup.c (argp_program_version_hook): Move to ...
12721 * util/argp_common.c (argp_program_version_hook): ... here.
12722 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
12723 safety.
12724 * util/grub-mkimage.c (main): Migrate to argp.
12725
57db0757
VS
127262012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12727
12728 * util/grub-mkrescue.in: Use same message as
12729 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
12730 for better translations.
12731
18534ad9
VS
127322012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12733
12734 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
12735 options with generic grub-mkrescue.in with the goal of future
12736 merge.
12737
c84ba308
VS
127382012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12739
12740 * grub-core/kern/mm.c: Add missing include of i18n.h
12741 * grub-core/lib/relocator.c: Likewise.
12742
347998c2
VS
127432012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12744
12745 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
12746 error.
12747 (allocate_pages): Check return value.
12748 Replace fatal with error.
12749 (grub_linux_boot): Replace printf with dprintf.
12750 Check find_mmap_size return value.
12751 Replace fatal with error.
12752 Don't call grub_machine_fini.
12753 (grub_load_elf64): Replace printf with dprintf.
12754 (grub_cmd_linux): Likewise.
12755 (grub_cmd_initrd): Likewise.
12756 (grub_cmd_payload): Likewise.
12757
c779226e
VS
127582012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12759
12760 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
12761 message.
12762 * grub-core/video/radeon_fuloong2e.c
12763 (grub_video_radeon_fuloong2e_setup): Likewise.
12764 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
12765 * grub-core/video/video.c (grub_video_set_mode): Don't override
12766 standard out of memory message.
12767
dc87d45a
GS
127682012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
12769
12770 NetBSD disk wedge support.
12771
12772 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
12773 [__NetBSD__]: Handle NetBSD disk wedges.
12774 * util/getroot.c (convert_system_partition_to_system_disk)
12775 [__NetBSD__]: Likewise.
12776
055f856f
MW
127772012-02-03 Mark Wooding <mdw@distorted.org.uk>
12778
12779 * util/grub-mkconfig.in: Use umask rather than chmod to create
12780 grub.cfg.new to avoid insecure grub.cfg.
12781
4a9f8346
VS
127822012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12783
12784 * grub-core/commands/ls.c: Gettextize.
12785 * grub-core/commands/setpci.c: Likewise.
12786 * grub-core/commands/videotest.c: Likewise.
12787 * grub-core/disk/geli.c: Likewise.
12788 * grub-core/kern/mm.c: Likewise.
12789 * grub-core/lib/relocator.c: Likewise.
12790 * grub-core/loader/efi/appleloader.c: Likewise.
12791 * grub-core/loader/i386/xnu.c: Likewise.
12792 * grub-core/loader/ia64/efi/linux.c: Likewise.
12793 * grub-core/loader/xnu.c: Likewise.
12794 * grub-core/net/dns.c: Likewise.
12795 * grub-core/net/net.c: Likewise.
12796 * grub-core/script/lexer.c: Likewise.
12797 * grub-core/script/parser.y: Likewise.
12798 * grub-core/script/yylex.l: Likewise.
12799 * util/getroot.c: Likewise.
12800 * util/grub-setup.c: Likewise.
12801
a646a366
VS
128022012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12803
12804 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
12805 number.
12806
54e2be26
VS
128072012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12808
12809 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
12810
f7c71e68
VS
128112012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12812
12813 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
12814 macro.
12815 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
12816 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
12817
a32d5c71
VS
128182012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12819
12820 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
12821 * util/grub-install.in: Gettextize.
12822 * util/grub-mkconfig.in: Likewise.
12823 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
12824 if not available.
12825 (grub_warn): Gettextize.
12826 * util/grub-mknetdir.in: Gettextize.
12827 * util/grub-mkrescue.in: Likewise.
12828 * util/grub-mkstandalone.in: Likewise.
12829 * util/grub-reboot.in: Likewise.
12830 * util/grub-set-default.in: Likewise.
12831 * util/grub.d/00_header.in: Likewise.
12832 * util/grub.d/10_hurd.in: Likewise.
12833 * util/grub.d/10_kfreebsd.in: Likewise.
12834 * util/grub.d/10_linux.in: Likewise.
12835 * util/grub.d/10_netbsd.in: Likewise.
12836 * util/grub.d/10_windows.in: Likewise.
12837 * util/grub.d/20_linux_xen.in: Likewise.
12838 * util/grub.d/30_os-prober.in: Likewise.
12839 * po/POTFILES-shell.in: Regenerate.
12840
69edd81a
RL
128412012-02-03 Richard Laager <rlaager@wiktel.com>
12842
12843 * util/grub-mkimage.c (main): Fix format-security warning.
12844 * util/grub-mkrelpath.c (main): Likewise.
12845 * util/grub-probe.c (main): Likewise.
12846
65f08dbf
RL
128472012-02-03 Richard Laager <rlaager@wiktel.com>
12848
12849 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
12850 failure.
12851 Put back lost PRINT_DRIVE.
12852
e9084abe
RL
128532012-02-03 Richard Laager <rlaager@wiktel.com>
12854
12855 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
12856 (grub_guess_root_devices): Replace strlen with sizeof.
12857 Avoid crash.
12858 (find_root_devices_from_poolname): Remove unused variable.
12859 Handle raidzN.
12860
cf5f7ee7
VS
128612012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12862
12863 Support install on multi-device filesystems.
12864
12865 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
12866 (grub_guess_root_devices): ...this. Return char **. All users updated.
12867 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
12868 Removed.
12869 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
12870 (find_root_devices_from_poolname): ... here.
12871 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
12872 Support zfs-fuse.
12873 (grub_guess_root_device): Rename to ...
12874 (grub_guess_root_devices): ... this. Return char **. All users updated.
12875 * util/grub-install.in: Handle multi-device filesystems.
12876 * util/grub-probe.c (probe). Make device_names a char **. Add delim
12877 argument. All users updated.
12878 Handle multi-device filesystems.
12879 Use 'delim' as separator.
12880 Remove device check to allow filesystems on file.
12881 (main): Support -0 argument. Handle multi-device.
12882 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
12883 Fix a cross-device check while on it.
12884 (arguments): Remove root_dev.
12885 (argp_parser): Remove -r.
12886 (main): Remove root_dev.
12887
2f53a9ed
VS
128882012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
12889
12890 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
12891
17e1d934
VS
128922012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
12893
12894 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
12895 symbol.
12896 Reported by: NODA, Kai <nodakai>.
12897
d3e3fab5
VS
128982012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
12899
12900 Fix ehci on amd64.
12901
12902 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
12903 pointers.
12904 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
12905 (grub_ehci_setup_qh): Likewise.
12906 (grub_ehci_find_qh): Likewise.
12907 (grub_ehci_transaction): Likewise.
12908 (grub_ehci_setup_transfer): Likewise.
12909 (grub_ehci_check_transfer): Likewise.
12910 (grub_ehci_portstatus): Likewise.
12911 (grub_ehci_detect_dev): Likewise.
12912 (grub_ehci_transfer_controller_data): New field td_last_phys.
12913 (grub_ehci_setup_transfer): Fill td_last_phys.
12914 (grub_ehci_check_transfer): Use td_last_phys.
12915
3008675b
SG
129162012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
12917
12918 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
12919 if no submenu is present.
12920
fc9b5652
AN
129212012-02-01 Aleš Nesrsta <starous@volny.cz>
12922
12923 CBI support.
12924
12925 * include/grub/usb.h (grub_usbms_protocol_t): New values
12926 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
12927 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
12928 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
12929 (grub_usbms_dev): Add subclass, protocol and intrpt.
12930 Remove in_maxsz and out_maxsz.
12931 (grub_usbms_reset): Rename to ...
12932 (grub_usbms_bo_reset): .. this.
12933 (grub_usbms_cbi_cmd): New function.
12934 (grub_usbms_cbi_reset): Likewise.
12935 (grub_usbms_reset): Likewise.
12936 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
12937 (grub_usbms_transfer): Rename to ...
12938 (grub_usbms_transfer_bo): ... this.
12939 (grub_usbms_transfer_cbi): Likewise.
12940 (grub_usbms_transfer): Likewise.
12941
a2b81d53
AN
129422012-02-01 Aleš Nesrsta <starous@volny.cz>
129432012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
12944
12945 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
12946 the support for the CS5536 modification thereos and few bugfixes.
12947
12948 * grub-core/Makefile.core.def (ehci): New module.
12949 * grub-core/bus/usb/ehci.c: New file.
12950 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
12951 port and hubaddr. All users updated.
12952 Save port and hubaddr into dev structure.
12953 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
12954 define.
12955 * include/grub/pci.h (grub_dma_phys2virt): New function.
12956 (grub_dma_virt2phys): Likewise.
12957 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
12958
b1d51f02
VS
129592012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
12960
12961 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
12962 check as some mkfs implementations omit it.
12963
fc694106
VS
129642012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
12965
12966 * docs/grub.texi (Unicode): Mention identifier and space limitations.
12967
6c0920e3
VS
129682012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
12969
12970 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
12971 Add new member volname2.
12972 (grub_jfs_label): Use volname2 if available.
12973
d1a46f9a
VS
129742012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
12975
12976 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
12977 over last_mounted as seen in image generated by mkfs.nilfs2.
12978 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
12979
dec8ed14
VS
129802012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
12981
12982 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
12983 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
12984 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
12985
7397c69b
VS
129862012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
12987
12988 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
12989 over the sector.
12990
b3fe42ad
VS
129912012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
12992
12993 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
12994 subvolume name (by removing a bogus and useless check).
12995
10476bb0
VS
129962012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
12997
12998 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
12999 sizeof while on it.
13000
9c08ad87
VS
130012012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
13002
13003 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
13004 (grub_scsi_read_capacity10): ... this.
13005 (grub_scsi_read_capacity16): New function.
13006 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
13007 0xffffffff.
13008 Fix off-by-one error.
13009 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
13010 64-bit unsigned.
13011 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
13012 (grub_scsi_read_capacity10): ... this.
13013 (grub_scsi_read_capacity_data): Rename to ...
13014 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
13015 (grub_scsi_read_capacity16): New struct.
13016 (grub_scsi_read_capacity16_data): Likewise.
13017 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
13018 grub_scsi_cmd_read_capacity10.
13019 New command grub_scsi_cmd_read_capacity16.
13020
bc8d0f45
VS
130212012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
13022
13023 SCSI >2TiB support.
13024
13025 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
13026 (grub_scsi_write16): Likewise.
13027 (grub_scsi_read): Use read16 when necessary.
13028 (grub_scsi_write): Likewise.
13029 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
13030 (grub_scsi_write16): Likewise.
13031 (grub_scsi_cmd_t): Add READ16 and WRITE16.
13032
cc774926
VS
130332012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
13034
13035 SCSI write support (for usbms mainly).
13036
13037 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
13038 a const pointer.
13039 (grub_scsi_write): Implement.
13040 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
13041
67639fd7
VS
130422012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
13043
13044 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
13045 variable.
13046
9079d3ed
VS
130472012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13048
13049 * grub-core/lib/posix_wrap/string.h (memchr): New function.
13050
c6a6f204
VS
130512012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13052
13053 * po/POTFILES.in: Regenerate.
13054
ecbf8cd1
VS
130552012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13056
13057 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
13058 with grub_printf to avoid unnecessary fatal failure.
13059
0b3b3b38
VS
130602012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13061
13062 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
13063 (INT_MAX): Likewise.
13064 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
13065 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
13066 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
13067 (strcpy): Likewise.
13068 (strstr): Likewise.
13069 (strchr): Likewise.
13070 (strncpy): Likewise.
13071 (strcat): Likewise.
13072 (strncat): Likewise.
13073 (strcoll): Likewise.
13074 * include/grub/types.h (GRUB_SHRT_MAX): New define.
13075 (GRUB_INT_MAX): Likewise.
13076
db7337a3
VS
130772012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13078
13079 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
13080 unexpected error.
13081 (optimize_utf8): Likewise.
13082 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
13083
f37c87e1
VS
130842012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13085
13086 * grub-core/boot/i386/pc/lnxboot.S: Use
13087 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
13088 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
13089 location.
13090 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
13091 definition.
13092 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
13093
63fe43f3
VS
130942012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13095
13096 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
13097 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
13098 now to avoid double free.
13099 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
13100 hostdisk.
13101 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
13102 * util/grub-probe.c (escape_of_path): Always return a new copy.
13103 (print_full_name): Escape path.
13104 (probe): Don't call grub_util_devname_to_ofpath on NULL.
13105 Fix hints on abstractions.
13106
ebe2c961
VS
131072012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13108
13109 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
13110 Don't add "root" line if no compatibility hont is available.
13111 Suggested by: Seth Goldberg.
13112
2b5336a2
VS
131132012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13114
13115 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
13116 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
13117 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
13118 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
13119
74310bd8
VS
131202012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13121
13122 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
13123
c30582ba
VS
131242012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13125
13126 * util/grub-pe2elf.c (ehdr): Make static.
13127 (shdr): Likewise.
13128 (num_sections): Likewise.
13129 (offset): Likewise.
13130
5f47782c
VS
131312012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13132
13133 Eliminate ofpath limits and possible overflows.
13134
13135 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
13136 (OF_PATH_MAX): Removed.
13137 (MAX_DISK_CAT): New const.
13138 (find_obppath): Use allocated rather than preallocated buffer.
13139 Return result. Argument of_path removed. All users updated.
13140 Add missing fdstat.
13141 (xrealpath): New function.
13142 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
13143 Allocate rather than use preallocated buffer. All users updated.
13144 (__of_path_common): Use allocated rather than preallocatecd buffer.
13145 Return result. Argument of_path removed. All users updated.
13146 (vendor_is_ATA): Read only needed part form the file.
13147 (check_sas): Allocate depending on contents rather than fixed.
13148 (main) [STANDALONE]: Handle NULL result.
13149
f990cbf9
VS
131502012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13151
13152 * grub-core/normal/completion.c (iterate_dev): Close the disk.
13153
9c6e84b8
VS
131542012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13155
13156 Cryptodisk write support.
13157
13158 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
13159 (grub_cryptodisk_decrypt): Moved logic to ...
13160 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
13161 (grub_cryptodisk_write): Implement.
13162 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
13163 (grub_util_fd_write): ... this. Make global.
13164 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
13165
87cf9744
VS
131662012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13167
13168 * include/grub/list.h (grub_list_remove): Don't crash if element is
13169 removed twice.
13170
ca8c0baf
VS
131712012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13172
13173 Rename ofconsole to console.
13174
13175 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
13176 as sysnonym to console.
13177 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
13178 * grub-core/term/ieee1275/console.c: ... this. All users updated.
13179 Rename grub_ofconsole_ to grub_console_. All users updated
13180 (grub_console_term_output): Rename "ofconsole" to "console".
13181 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
13182 as "console".
13183
64c8b8f6
VS
131842012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13185
13186 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
13187 handling.
13188 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
13189 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
13190 GRUB_DISK_DEVICE_FILE_ID.
13191
f6c434d5
VS
131922012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13193
13194 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
13195 and improve performance.
13196
5858b42d
VS
131972012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13198
13199 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
13200 missing ieee1275/ prefix on whole disk.
13201
4ed3c26b
VS
132022012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13203
13204 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
13205 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
13206
df71143e
VS
132072012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13208
13209 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
13210
076e7c0f
VS
132112012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13212
13213 Merge common RAID and LVM logic to an abstract diskfilter.
13214 Add LDM support using the same framework.
13215
13216 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
13217 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
13218 (libgrubmods): Remove grub-core/disk/raid.c and
13219 grub-core/partmap/gpt.c.
13220 * grub-core/Makefile.core.def (ldm): New module.
13221 (raid): Renamed to diskfilter. All users updated.
13222 * grub-core/disk/raid.c: Moved to ...
13223 * grub-core/disk/diskfilter.c: ... here.
13224 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
13225 (lv_num): New var.
13226 (find_array): Renamed to ...
13227 (find_lv): ... this. Support multi-LV. Skip nameless LVs
13228 (grub_is_array_readable): Renamed to ...
13229 (grub_is_lv_readable): ... this. Support multinode hierarchy.
13230 (insert_array): New argument id.
13231 (is_node_readable): New function.
13232 (scan_device): Rename to ...
13233 (scan_disk): .. this. Restrict to one disk.
13234 (scan_devices): New function.
13235 (grub_diskfilter_iterate): Support multi-LV.
13236 Skip invisible and nameless LVs.
13237 (grub_diskfilter_memberlist): Support multi-LV.
13238 (grub_diskfilter_read_node): New function.
13239 (grub_raid_read): Most of logic moved to ...
13240 (read_segment): ... here
13241 (read_lv): New function.
13242 (grub_diskfilter_get_vg_by_uuid): New function.
13243 (grub_diskfilter_make_raid): Likewise.
13244 * grub-core/disk/ldm.c: New file.
13245 * grub-core/disk/lvm.c (vg_list): Removed.
13246 (lv_count): Likewise.
13247 (scan_depth): Likewise.
13248 (is_lv_readable): Likewise.
13249 (grub_lvm_getvalue): Advance pointer past the number.
13250 (find_lv): Removed.
13251 (do_lvm_scan): Refactored into ...
13252 (grub_lvm_detect): ... this. Support raid.
13253 (grub_lvm_iterate): Removed.
13254 (grub_lvm_memberlist): Likewise.
13255 (grub_lvm_open): Likewise.
13256 (grub_lvm_close): Likewise.
13257 (read_lv): Likewise.
13258 (read_node): Likewise.
13259 (is_node_readable): Likewise.
13260 (is_lv_readable): Likewise.
13261 (grub_lvm_read): Likewise.
13262 (grub_lvm_write): Likewise.
13263 (grub_lvm_dev): Use diskfilter
13264 (GRUB_MOD_INIT): Likewise.
13265 (GRUB_MOD_FINI): Likewise.
13266 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
13267 new interface.
13268 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
13269 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
13270 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
13271 grub_diskfilter_read_node.
13272 Fix a bug with xor.
13273 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
13274 grub_diskfilter_read_node.
13275 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
13276 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
13277 (grub_disk_dev_iterate): Move from here...
13278 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
13279 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
13280 Make global.
13281 (grub_hostdisk_find_partition_start): Likewise.
13282 (grub_hostdisk_os_dev_to_grub_drive): New function.
13283 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
13284 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
13285 * util/getroot.c (make_device_name): ... here.
13286 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
13287 Move to ...
13288 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
13289 * grub-core/kern/emu/hostdisk.c
13290 (convert_system_partition_to_system_disk): Move to ...
13291 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
13292 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
13293 * util/getroot.c (device_is_wholedisk): ... here.
13294 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
13295 * util/getroot.c (find_system_device): ... here.
13296 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
13297 Move to ...
13298 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
13299 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
13300 Move to ...
13301 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
13302 Handle LDM.
13303 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
13304 Move to ...
13305 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
13306 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
13307 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
13308 DISKFILTER.
13309 * include/grub/raid.h: Renamed to ...
13310 * include/grub/diskfilter.h: ... this.
13311 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
13312 (GRUB_RAID_LAYOUT_*): Make into array.
13313 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
13314 (grub_diskfilter_vg): New struct.
13315 (grub_diskfilter_pv_id): Likewise.
13316 (grub_raid_member): Removed.
13317 (grub_raid_array): Likewise.
13318 (grub_diskfilter_pv): New struct.
13319 (grub_diskfilter_lv): Likewise.
13320 (grub_diskfilter_segment): Likewise.
13321 (grub_diskfilter_node): Likewise.
13322 (grub_diskfilter_get_vg_by_uuid): New proto.
13323 (grub_raid_register): Inline.
13324 (grub_diskfilter_unregister): Likewise.
13325 (grub_diskfilter_make_raid): New proto.
13326 (grub_diskfilter_vg_register): Likewise.
13327 (grub_diskfilter_read_node): Likewise.
13328 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
13329 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
13330 (grub_util_is_ldm): Likewise.
13331 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
13332 (grub_hostdisk_find_partition_start): Likewise.
13333 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
13334 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
13335 New definition.
13336 (grub_gpt_partition_map_iterate): New proto.
13337 * include/grub/lvm.h (grub_lvm_vg): Removed.
13338 (grub_lvm_pv): Likewise.
13339 (grub_lvm_lv): Likewise.
13340 (grub_lvm_segment): Likewise.
13341 (grub_lvm_node): Likewise.
13342 * util/getroot.c [...]
13343 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
13344 (probe_abstraction): Likewise.
13345 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
13346 (main): Remove dead logic.
13347
8a7f9b9c
VS
133482012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
13349
13350 Simplify root device discover and don't fail when trying to open
13351 incorrect devices.
13352
13353 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
13354 function.
13355 (get_diskname_from_path): Likewise.
13356 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
13357 of iterating.
13358
30545b85
VS
133592012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
13360
13361 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
13362
28ea58cf
VS
133632012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
13364
13365 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
13366 pastthe end.
13367
692dabca
VS
133682012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
13369
13370 * util/grub-install.in: Add missing \.
13371 Reported by: gentoofan
13372
f6e4ea70
VS
133732012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
13374
13375 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
13376 (direct_read): Use correct compressed size.
13377 (grub_squash_read_data): Likewise.
13378
133792012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
ca1dacea
VS
13380
13381 * docs/grub.texi (Platform limitations): New section.
13382 (Platform-specific operations): Likewise.
13383 * docs/grub-dev.texi (Porting): Likewise.
13384
76261110
VS
133852012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
13386
13387 IEEE1275 disk write support.
13388
13389 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
13390 const void *.
13391 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
13392 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
13393 and seek loginc to ...
13394 (grub_ofdisk_prepare): ... here.
13395 (grub_ofdisk_write): Implement.
13396
fc36d603
VS
133972012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
13398
13399 ARC disk write support.
13400
13401 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
13402 (reopen): New argument writable. All users updated.
13403 Handle required access mode.
13404 (grub_arcdisk_write): Implement.
13405 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
13406 (grub_arc_firmware_vector): Make buffer to write a const buffer.
13407
e06c2e7a
VS
134082012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
13409
13410 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
13411 (read_sblock): Don't attempt to read superblocks outside the disk size.
13412
ff447958
VS
134132012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
13414
13415 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
13416 first superblock to find the second one when possible.
13417
9e88df39
VS
134182012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
13419
13420 * util/grub-install.in: Fix an ARC bug.
13421 Print a warning if no platform-specific setup is available.
13422
bb26e4ff
VS
134232012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
13424
13425 Use static allocation rather than scratch pointer in reed_solomon.
13426 It decreases its size significantly and avoids a variable in .text.
13427
13428 * grub-core/lib/reed_solomon.c (scratch): Removed.
13429 (chosenstat): New const or static array.
13430 (sigma): Likewise.
13431 (errpot): Likewise.
13432 (errpos): Likewise.
13433 (sy): Likewise.
13434 (mstat): Likewise.
13435 (errvals): Likewise.
13436 (eqstat): Likewise.
13437 (pol_evaluate): Replace x with log_x argument. All users updated.
13438 (syndroms): Removed.
13439 (gauss_solve): Use statically allocated arrays.
13440 (rs_recover): Likewise.
13441 Calculate syndroms directly.
13442 (decode_block): Use statically allocated arrays.
13443 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
13444 (main) [TEST]: Allow -DTEST -DSTANDALONE.
13445
2e13ede5
VS
134462012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
13447
13448 Eliminate fixed limit on reed solomon decoder length.
13449
13450 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
13451 rather than hardcoding the address.
13452 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
13453 no_reed_solomon_length.
13454 Move gate_a20 to no-reed-solomon part.
13455 Don't force a particular size of no reed-solomon part.
13456 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
13457 Removed.
13458 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
13459 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
13460
f8a9ab12
VS
134612012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
13462
13463 * grub-core/commands/wildcard.c (match_files): Handle filenames
13464 without explicit device.
13465 (wildcard_expand): Don't add explicit device if not already present.
13466 * tests/grub_script_echo1.in: Add a new expansion test.
13467
87edb894
VS
134682012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
13469
13470 Replace single-linked with double-linked lists. It results in more
13471 compact and more efficient code.
13472
13473 * grub-core/kern/list.c (grub_list_push): Moved from here ...
13474 * include/grub/list.h (grub_list_push): ... to here. Set prev.
13475 (grub_list_remove): Moved from here ...
13476 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
13477 (grub_prio_list_insert): Set prev.
13478 * include/grub/list.h (grub_list): Add prev. All users updated.
13479
48b391e9
VS
134802012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
13481
13482 Handle newer autotools. Add some missing quotes while on it.
13483
13484 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
13485 (pkglib_DATA): Move grub-mkconfig_lib from here ...
13486 (pkgdata_DATA): ... here.
13487 * Makefile.util.def (update-grub_lib): Removed.
13488 * conf/Makefile.common (pkglib_DATA): Removed.
13489 (pkglib_SCRIPTS): Likewise.
13490 (pkgdata_DATA): New variable.
13491 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
13492 needed.
13493 Add missing quotes.
13494 Remove unused variable while on it.
13495 * tests/util/grub-shell.in: Likewise.
13496 * util/grub-install.in: Likewise.
13497 * util/grub-mkconfig.in: Likewise.
13498 * util/grub-mknetdir.in: Likewise.
13499 * util/grub-mkrescue.in: Likewise.
13500 * util/grub-mkstandalone.in: Likewise.
13501 * util/grub.d/00_header.in: Likewise.
13502 * util/grub.d/10_hurd.in: Likewise.
13503 * util/grub.d/10_illumos.in: Likewise.
13504 * util/grub.d/10_kfreebsd.in: Likewise.
13505 * util/grub.d/10_linux.in: Likewise.
13506 * util/grub.d/10_netbsd.in: Likewise.
13507 * util/grub.d/10_windows.in: Likewise.
13508 * util/grub.d/20_linux_xen.in: Likewise.
13509 * util/grub.d/30_os-prober.in: Likewise.
13510 * util/update-grub_lib.in: Removed.
13511
135122012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
e555f379
SG
13513
13514 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
13515 a workaround for intel problem.
13516
66832792
PRP
135172012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
135182012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
135192012-01-23 pfsmorigo
13520
13521 * util/grub-install.in: Support dd'in into PreP partition.
13522 * util/grub-probe.c (probe): Support discovering partition type.
13523 (main): Support -t msdos_parttype.
13524
7816a17e
VS
135252012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
13526
13527 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
13528 infinite recursion using counter.
13529 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
13530 init to skip it if the magic check fails.
13531 (dec_stream_header): Init s->crc32.
13532
8f9d3a8c
ZB
135332012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
135342012-01-22 Zachary Bedell <pendorbound@gmail.com>
135352012-01-22 Richard Laager <rlaager@wiktel.com>
13536
13537 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
13538 All users updated.
13539 (find_bestub): Determine correct size.
13540 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
13541 (scan_disk): Align the size down.
13542 Call check pool before find_bestub to have ashift.
13543
b055dd32
VS
135442012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13545
13546 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
13547 dprintf in no-malloc zone.
13548
d779e9bd
ML
135492012-01-22 Mario Limonciello <mario_limonciello@dell.com>
13550
13551 * configure.ac: Add back in test for limits.h.
13552
b508af69
VS
135532012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
13554
13555 Support 4K-sector NTFS.
13556
13557 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
13558 (grub_ntfs_data): Remove blocksize.
13559 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
13560 Remove data argument. All users updated.
13561
dad9c8b5
VS
135622012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
13563
13564 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
13565 being in .text to avoid dprel references.
13566 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
13567 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
13568 (grub_arch_highmemsize): Likewise.
13569 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
13570 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
13571 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
13572
d43a777e
VS
135732012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
13574
13575 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
13576
13577 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
13578 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
13579
34e4208f
VS
135802012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
13581
13582 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
13583 GRUB_UTIL.
13584 (grub_set_datetime_cmos): Likewise.
13585
3ec0fc1c
VS
135862012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
13587
13588 Make XZ compression parameters dependent on target and not host CPU.
13589
13590 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
13591 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
13592
22489834
VS
135932012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
13594
13595 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
13596 set but not used variable.
13597
8502fbca
VS
135982012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13599
13600 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
13601 created when no uuid support is compiled into mkfs.reiser.
13602
76df2068
VS
136032012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13604
13605 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
13606 (utf8_to_macroman): Do the opposite.
13607 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
13608
64e3f8f6
VS
136092012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13610
13611 * configure.ac: Refise build qemu_mips w/o unifont.
13612
9c271078
VS
136132012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13614
13615 Eliminate grub_min/grub_max prone to overflow usage.
13616
13617 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
13618 (poll_nonroot_hub): Likewise.
13619 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
13620 (grub_affs_label): Likewise.
13621 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
13622 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
13623 (grub_hfs_label): Likewise.
13624 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
13625 * grub-core/fs/zfs/zfs.c (MIN): Remove.
13626 (zap_leaf_array_equal): Use grub_size. Remove MIN.
13627 (zap_leaf_array_get): Likewise.
13628 (dnode_get_path): Likewise.
13629 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
13630 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
13631 * grub-core/script/execute.c (grub_script_break): Likewise.
13632 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
13633 grub_max.
13634 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
13635 * include/grub/misc.h (grub_min): Removed.
13636 (grub_max): Likewise.
13637
80662dbc
VS
136382012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
13639
13640 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
13641 direct.inode = 0.
13642
e6da1467
VS
136432012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13644
13645 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
13646
b1ac4cb1
VS
136472012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13648
13649 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
13650
b4bf7c3b
VS
136512012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13652
13653 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
13654 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
13655
8ee1101a
VS
136562012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13657
13658 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
13659 rather than a hack for grub_strncasemap.
13660
136612012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13662
13663 Support multiple initrds
13664 Note: part of this was accidently committed in r3739.
13665
13666 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
13667 initrd.
13668 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
13669 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
13670 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
13671 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
13672 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
13673
4d1e2bc9
VS
136742012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13675
13676 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
13677 disks with unknown size.
13678 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
13679
75b49ebe
VS
136802012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13681
13682 Remove defines pertaining to arbitrary limits not affecting GRUB
13683 anymore.
13684
13685 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
13686 (EXT2_MAX_SYMLINKCNT): Likewise.
13687 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
13688 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
13689 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
13690 (GRUB_PXE_MAX_BLKSIZE): Likewise.
13691 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
13692 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
13693 (DN_MAX_OBJECT_SHIFT): Likewise.
13694 (DN_MAX_OFFSET_SHIFT): Likewise.
13695 (DN_MAX_OBJECT): Likewise.
13696 (DNODES_PER_LEVEL_SHIFT): Likewise.
13697 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
13698 (SPA_MAXBLOCKSIZE): Likewise.
13699 (SPA_BLOCKSIZES): Likewise.
13700 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
13701 (MZAP_MAX_BLKSZ): Likewise.
13702
74a1dce7
VS
137032012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13704
13705 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
13706 handle NULL appropriately.
13707 Remove MIN.
13708
30c7d3ce
VS
137092012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
13710
13711 Fix efiemu.
13712
13713 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
13714 cpu/types.h.
13715 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
13716 * configure.ac: Fix efiemu check.
13717
3c76ea0c
VS
137182012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
13719
13720 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
13721 grub_probe.
13722 Reported by: adamwill
13723
7e532280
SG
137242012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
13725
13726 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
13727
30492374
VS
137282012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13729
13730 Fix handling of wide characters in gfxterm.
13731
13732 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
13733 (clear_char): Likewise.
13734 (paint_char): Skip code == NULL chars.
13735 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
13736
e70cb72f
VS
137372012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13738
13739 * grub-core/normal/charset.c: Move comment to right place.
13740
5c827cf9
VS
137412012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
13742
13743 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
13744 (GRUB_AFFS_FLAG_FFS): Put back where it was.
13745 (grub_affs_mount): Revert the correct version checking.
13746
53603892
VS
137472012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
13748
13749 * docs/grub.texi (Unicode): Mention several other unsupported features.
13750
ff094b9b
VS
137512011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
13752
13753 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
13754 case statements as compile-time one.
13755 (direct_read): Prevent spurious warnings.
13756 (grub_squash_read_data): Likewise.
13757
c029da8a
VS
137582011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
13759
13760 Various squash4 fixes and LZO and XZ support.
13761
13762 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
13763 Add xzembed source files.
13764 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
13765 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
13766 (grub_squash_inode): New subtype long_dir.
13767 (SQUASH_TYPE_LONG_DIR): New inode type.
13768 (COMPRESSION): New enum.
13769 (XZBUFSIZ): New const.
13770 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
13771 (read_chunk): Use data->decompress.
13772 (zlib_decompress): New function.
13773 (lzo_decompress): Likewise.
13774 (xz_decompress): Likewise.
13775 (squash_mount): Set new data fields.
13776 (grub_squash_iterate_dir): Handle long dir.
13777 (squash_unmount): Free xzdec and xzbuf.
13778 (grub_squash_open): Check ino type.
13779 (direct_read): Stylistic fixes. Use data->decompress.
13780 (grub_squash_read_data): Likewise.
13781 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
13782 (get_byte): Likewise.
13783 (grub_zlib_disk_read): Removed.
13784 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
13785 (GRUB_POSIX_BOOL_DEFINED): New define.
13786 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
13787 * grub-core/lib/xzembed/xz.h: Addmissing includes.
13788 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
13789 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
13790
7a45a539
VS
137912011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
13792
13793 Don't override more informative errors.
13794
13795 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
13796 * grub-core/font/font.c (open_section): Likewise.
13797 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
13798 filename. Don't override errors.
13799 (grub_cmd_openbsd_ramdisk): Don't override errors.
13800 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
13801 (grub_cmd_initrd): Likewise.
13802 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
13803 (grub_cmd_initrd): Likewise.
13804 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
13805 (grub_cmd_linux): Likewise.
13806 (grub_cmd_initrd): Likewise.
13807 (grub_cmd_payload): Likewise.
13808 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
13809 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
13810 (grub_cmd_module): Likewise.
13811 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
13812 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
13813 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
13814 (grub_cmd_xnu_mkext): Likewise.
13815 (grub_cmd_xnu_ramdisk): Likewise.
13816 (grub_xnu_check_os_bundle_required): Likewise.
13817 (grub_xnu_load_kext_from_dir): Likewise.
13818 (grub_cmd_xnu_kextdir): Likewise.
13819 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
13820
b2d004db
VS
138212011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13822
13823 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
13824 as 1024 in block size field. Found on one of my test images.
13825 Small optimisation while on it.
13826
ec000eac
VS
138272011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13828
13829 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
13830 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
13831 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
13832 performance fixes while on it.
13833 (grub_sfs_close): Fix memory leak while on it.
13834 (grub_sfs_label): Convert Latin1 to UTF-8.
13835
f50e1165
VS
138362011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13837
13838 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
13839 space to avoid overflows.
13840 (grub_hfs_label): Convert from macroman to UTF-8.
13841
2ae254de
VS
138422011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13843
13844 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
13845
0108f491
VS
138462011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13847
13848 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
13849
f45f5f89
VS
138502011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13851
13852 * unicode: Import Unicode 6.0 data.
13853
4d8c4765
VS
138542011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13855
63fa8ef9
VS
13856 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
13857 outside of range.
13858
138592011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13860
13861 Avoid cutting in the middle of UTF-8 character.
4d8c4765
VS
13862
13863 * include/grub/charset.h (grub_getend): New function.
13864 * grub-core/script/function.c (grub_script_function_find): Use
13865 grub_getend.
13866 * grub-core/normal/completion.c (add_completion): Likewise.
13867
f3cb4a4e
VS
138682011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13869
13870 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
13871 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
13872 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
13873 (GRUB_UNICODE_TAG_END): Likewise.
13874 (GRUB_UNICODE_LAST_VALID): Likewise.
13875
5da8dbc5
VS
138762011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13877
13878 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
13879 len and make it smaller. All users updated.
13880 * util/import_unicode.py: Put length and not end character.
13881 Check length.
13882
8569f13d
VS
138832011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13884
13885 Make better Unicode-compliant and unify some UTF-8 code pathes.
13886
13887 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
13888 valid character.
13889 (grub_is_valid_utf8): Use grub_utf8_process.
13890 Check resulting code range.
13891 (grub_utf8_to_ucs4): Use grub_utf8_process.
13892 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
13893 valid character.
13894
cc4fddf5
VS
138952011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13896
13897 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
13898
bbc47747
VS
138992011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13900
13901 * docs/grub.texi (Filesystems): Mention AFS.
13902
f63d6bf4
VS
139032011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13904
13905 * docs/grub.texi (Filesystems): Clarify restrictions.
13906 (Regexp): Mention non-Unicode regexp behaviour.
13907 (Other): Mention non-Unicode matching behaviour.
13908
74bbf0db
VS
139092011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
13910
f63d6bf4 13911 Make HFS implementation use MacRoman.
74bbf0db
VS
13912
13913 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
13914 (macroman): New const array.
13915 (macroman_to_utf8): New function.
13916 (utf8_to_macroman): Likewise.
13917 (grub_hfs_find_dir): Use utf8_to_macroman.
13918 (grub_hfs_dir): Use macroman_to_utf8.
13919 Set case_insensitive.
13920
4ea0316e
VS
139212011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
13922
13923 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
13924
d3c13cbd
VS
139252011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
13926
13927 Integrate hints into autogeneration scripts.
13928
13929 * docs/grub.texi (Filesystems): Add a hostdisk example.
13930 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
13931 (grub-probe): Add ofpath.
13932 * gentpl.py: Remove group nosparc64.
13933 * grub-core/commands/search.c (cache_entry): New struct.
13934 (cache): New var.
13935 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
13936 * grub-core/commands/search_wrap.c (options): Add platform-specific
13937 hint options.
13938 (grub_cmd_search): Handle platform-specific hints.
13939 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
13940 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
13941 (grub_util_biosdisk_data): Likewise.
13942 (grub_util_biosdisk_open): Set device_map.
13943 (read_device_map): Handle "" as indication of no map.
13944 Set device_map.
13945 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
13946 (grub_util_biosdisk_get_compatibility_hint): New function.
13947 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
13948 * include/grub/emu/hostdisk.h
13949 (grub_util_biosdisk_get_compatibility_hint): New proto.
13950 * util/grub-install.in: Don't call grub-mkdevicemap.
13951 Add platform-specific hint to load.cfg.
13952 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
13953 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
13954 hints. Set root preliminary to compatibility hint, not to OS name.
13955 * util/grub-probe.c (PRINT_*): Add hints.
13956 (print): Make static.
13957 (escape_of_path): New function.
13958 (guess_bios_drive): Likewise.
13959 (guess_efi_drive): Likewise.
13960 (guess_baremetal_drive): Likewise.
13961 (print_full_name): Likewise.
13962 (probe): Handle hints.
13963 (main): Likewise.
13964 * util/ieee1275/devicemap.c: Removed.
13965 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
13966 updated.
13967 (grub_util_devname_to_ofpath): Return NULL on failure.
13968
13969 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
13970 resource leak.
13971 * util/getroot.c (grub_util_pull_device): Fix memory leak.
13972
13973 * po/POTFILES.in: Regenerated.
13974
13975 Allow purely long options
13976
13977 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
13978 (SHORT_ARG_USAGE): Likewise.
13979 (grub_arg_show_help): Compare opt with help_options.
13980 (parse_option): Receive opt as argument. If makes big simplificatons.
13981 All users updated
13982
00ce2df3
VS
139832011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
13984
13985 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
13986 Restructure to avoid warning.
13987
e77e325f
VS
139882011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
13989
13990 * util/grub-install.in: Account for possible escaped comma in device
13991 name.
13992
165099ea
VS
139932011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
13994
13995 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
13996 channel.
13997
ce4a999d
VS
139982011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
13999
14000 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
14001 allocation and zero-setting.
14002 (grub_ieee1275_get_devname): Check that alias is complete.
14003
379586ad
VS
140042011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14005
14006 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
14007 unaligned segments.
14008
9197b0ad
VS
140092011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14010
14011 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
14012 prefix.
14013 (grub_ofdisk_open): Check and discard ieee1275 prefix.
14014 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
14015 Add ieee1275 prefix.
14016
edddb7f9
VS
140172011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
14018
14019 * docs/grub.texi (Filesystems): Update.
14020
a1a8b1b9
VS
140212011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
14022
14023 Support odc, newc and bigendian cpio formats.
14024
14025 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
14026 * grub-core/Makefile.core.def (newc): New module.
14027 (odc): Likewise.
14028 (cpio_be): Likewise.
14029 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
14030 (MAGIC): Likewise.
14031 (MAGIC2): Likewise.
14032 (head) [MODE_ODC]: Adapt for the format.
14033 (head) [MODE_NEWC]: Likewise.
14034 (head) [!MODE_*]: Write fields of interest as arrays.
14035 (MAGIC_USTAR): Removed.
14036 (read_number) [MODE_NEWC]: Change to hex.
14037 (read_number) [!MODE_*]: Parse binary arrays.
14038 (grub_cpio_find_file): Factor out the code for better structure and
14039 always use read_number.
14040 (grub_cpio_mount): Use MAGIC and MAGIC2.
14041 (grub_cpio_dir): Exit on first hook non-0 return.
14042 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
14043 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
14044 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
14045 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
14046 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
14047 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
14048 * grub-core/fs/newc.c: New file.
14049 * grub-core/fs/odc.c: Likewise.
14050 * grub-core/fs/cpio_be.c: Likewise.
14051
58eba9ee
VS
140522011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
14053
14054 Fix handling of tar numbers occupying the whole field.
14055
14056 * grub-core/fs/cpio.c (read_number): New function.
14057 (grub_cpio_find_file): Use read_number instead of strtoull.
14058
a54a0e12
VS
140592011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
14060
14061 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
14062 occupying the whole field size.
14063
a6120aca
LA
140642011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
14065
14066 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
14067
a93964ce
VS
140682011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
14069
14070 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
14071
3ea1ca46
SG
140722011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
14073
14074 * grub-core/Makefile.core.def (lzma_decompress): Add missing
14075 TARGET_IMG_LDFLAGS.
14076
b87f7ef2
VS
140772011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
14078
14079 * util/getroot.c (ESCAPED_PATH_MAX): New define.
14080 (mountinfo_entry): Increase the field size to take escaping into
14081 account.
14082 (find_root_device_from_libzfs): Add one byte to size of strings for
14083 security.
14084
62092395
VS
140852011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
14086
14087 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
14088 an assert.
14089 * util/grub-setup.c (setup): Likewise.
14090
1f0b1a77
VS
140912011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
14092
14093 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
14094 _LzmaDecodeA.
14095
8eba9997
VS
140962011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
14097
14098 * docs/grub.texi (Internationalisation): New section.
14099
dd0c91e9
VS
141002011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
14101
14102 * docs/grub.texi (Loopback booting): New section.
14103
141042011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
86717cbe
K
14105
14106 * util/grub-mkstandalone.in: Fix minor typo errors.
14107
198e150a
VS
141082011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
14109
14110 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
14111
14112 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
14113 net/icmp.c and net/icmp6.c.
14114 (http): New module.
14115 (priority_queue): Likewise.
14116 * grub-core/io/bufio.c: Rewritten.
14117 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
14118 TYPE_WITH_CONFIGFILE_OPTION.
14119 (legacy_commands): Add bootp and dhcp.
14120 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
14121 (grub_legacy_parse): Likewise.
14122 * grub-core/lib/priority_queue.c: New file.
14123 * grub-core/net/arp.c: Add missing license header.
14124 (arp_find_entry): Removed.
14125 (arp_find_entry): Likewise.
14126 (grub_net_arp_resolve): Rename to ...
14127 (grub_net_arp_send_request): ...this.
14128 (grub_net_arp_receive): New card argument.
14129 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
14130 Set router and DNS server.
14131 (grub_net_configure_by_dhcp_ack): Handle routing information.
14132 (grub_cmd_bootp): Set checksum.
14133 (grub_bootp_init): Remove net_dhcp.
14134 * grub-core/net/dns.c: New file.
14135 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
14136 completion.
14137 (get_card_packet): Handle allocation.
14138 (grub_efinet_findcards): Set mtu.
14139 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
14140 (get_card_packet): Handle allocation.
14141 (emucard): Set mtu.
14142 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
14143 (GRUB_MOD_INIT): Set mtu.
14144 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
14145 mtu.
14146 (get_card_packet): Handle allocation.
14147 (grub_ofnet_findcards): Set mtu.
14148 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
14149 assert.
14150 (grub_net_recv_ethernet_packet): Handle IPv6.
14151 * grub-core/net/http.c: New file.
14152 * grub-core/net/icmp.c: Likewise.
14153 * grub-core/net/icmp6.c: Likewise.
14154 * grub-core/net/ip.c (ip6addr): New type.
14155 (ip6hdr): Likewise.
14156 (reassemble): Likewise.
14157 (cmp): New function.
14158 (reassembles): New variable.
14159 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
14160 (id): New variable.
14161 (send_fragmented): New function.
14162 (grub_net_send_ip_packet): Rename to ...
14163 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
14164 Handle non-UDP.
14165 (grub_net_recv_ip_packets): Rename to ...
14166 (handle_dgram): ... this. Check checksum. Handle non-UDP.
14167 (free_rsm): New function.
14168 (free_old_fragments): Likewise.
14169 (grub_net_recv_ip4_packets): New function.
14170 (grub_net_send_ip6_packet): Likewise.
14171 (grub_net_send_ip_packet): Likewise.
14172 (grub_net_recv_ip6_packets): Likewise.
14173 (grub_net_recv_ip_packets): Likewise.
14174 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
14175 (LINK_LAYER_CACHE_SIZE): New const.
14176 (link_layer_find_entry): New function.
14177 (grub_net_link_layer_add_address): Likewise.
14178 (grub_net_link_layer_resolve_check): Likewise.
14179 (grub_net_link_layer_resolve): Likewise.
14180 (grub_net_ipv6_get_slaac): Likewise.
14181 (grub_net_ipv6_get_link_local): Likewise.
14182 (grub_cmd_ipv6_autoconf): Likewise.
14183 (parse_ip): Handle one number representation.
14184 (parse_ip6): New functoion.
14185 (match_net): Handle IPv6.
14186 (grub_net_resolve_address): Handle IPv6 and DNS.
14187 (grub_net_resolve_net_address): Handle IPv6.
14188 (route_cmp): New function.
14189 (grub_net_route_address): Find best route.
14190 (grub_net_addr_to_str): Handle IPv6.
14191 (grub_net_addr_cmp): New function.
14192 (grub_net_add_addr): Register local route.
14193 (print_net_address): Handle net address.
14194 (grub_net_poll_cards): Retransmit TCP.
14195 (grub_net_poll_cards_idle_real): Likewise.
14196 (have_ahead): New function.
14197 (grub_net_seek_real): Use underlying seek.
14198 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
14199 * grub-core/net/tcp.c: New file.
14200 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
14201 (cmp): New function.
14202 (ack): Likewise.
14203 (tftp_receive): Handle unordered input.
14204 (destroy_pq): New function.
14205 (tftp_close): Close pq.
14206 * grub-core/net/udp.c: Put missing license header.
14207 (grub_net_udp_socket): New function.
14208 (udp_socket_register): Likewise.
14209 (grub_net_udp_close): Likewise.
14210 (grub_net_recv_udp_packet): Check checksum.
14211 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
14212 * include/grub/misc.h (grub_memchr): New function.
14213 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
14214 (grub_net_card_driver): Return buf in recv.
14215 (grub_net_slaac_mac_list): New struct.
14216 (grub_network_level_protocol_id): Add ipv6.
14217 (grub_net_network_level_addr): Likewise.
14218 (grub_net_network_level_net_addr): Likewise.
14219 (grub_net_app_protocol): Add seek.
14220 (grub_net_socket): Removed.
14221 (grub_net_sockets): Likewise.
14222 (grub_net_socket_register): Likewise.
14223 (grub_net_socket_unregister): Likewise.
14224 (FOR_NET_SOCKETS): Likewise.
14225 (grub_net_add_addr): Add const.
14226 (GRUB_NET_BOOTP_*): New enum.
14227 (grub_net_addr_cmp): New proto.
14228 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
14229 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
14230 (grub_net_hwaddr_to_str): NEw proto.
14231 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
14232 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
14233 (grub_dns_init): New proto.
14234 (grub_dns_fini): Likewise.
14235 (grub_net_tcp_retransmit): Likewise.
14236 (grub_net_link_layer_add_address): Likewise.
14237 (grub_net_link_layer_resolve_check): Likewise.
14238 (grub_net_link_layer_resolve): Likewise.
14239 (grub_net_dns_lookup): Likewise.
14240 (grub_net_add_dns_server): Likewise.
14241 (grub_net_remove_dns_server): Likewise.
14242 (GRUB_NET_TRIES): New const.
14243 (GRUB_NET_INTERVAL): Likewise.
14244 * include/grub/net/arp.h: Mostly rewritten.
14245 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
14246 * include/grub/net/ip.h: Mostly rewritten.
14247 * include/grub/net/netbuff.h: Indent.
14248 * include/grub/net/tcp.h: New file.
14249 * include/grub/net/udp.h: Mostly rewritten.
14250 * include/grub/priority_queue.h: New file.
14251 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
14252 (grub_swap_bytes64_compile_time): Likewise.
14253 (grub_cpu_to_be16_compile_time): Likewise.
14254 (grub_cpu_to_be32_compile_time): Likewise.
14255 (grub_cpu_to_be64_compile_time): Likewise.
14256 (grub_be_to_cpu64_compile_time): Likewise.
14257
215c1800
VS
142582011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
14259
14260 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
14261 UINT_TO_PTR with cast.
14262
c17e546c
VS
142632011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14264
14265 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
14266 don't use them.
14267
ff6b18b6
VS
142682011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14269
14270 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
14271 already there.
14272
70ffcc93
VS
142732011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14274
14275 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
14276 confusing ipxe.
14277
e5f4d260
VS
142782011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14279
14280 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
14281 Add missing const attribute.
14282 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
14283 Likewise.
14284 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
14285 Likewise.
14286
8e54b4b7
VS
142872011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14288
14289 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
14290 misaligned access.
14291 (serpent_setkey): Likewise.
14292 (serpent_encrypt_internal): Likewise.
14293 (serpent_decrypt_internal): Likewise.
14294 (serpent_encrypt): Don't put an alignment-increasing cast.
14295 (serpent_decrypt): Likewise.
14296 (serpent_test): Likewise.
14297
813c0a2b
VS
142982011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14299
14300 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
14301
f2b60fbd
VS
143022011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14303
14304 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
14305
14306 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
14307 grub_addr_t casts.
14308 (PTR_TO_UINT64): Likewise.
14309 (PTR_TO_UINT32): Likewise.
14310
5ef5c511
VS
143112011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14312
14313 * util/grub-mkimage.c (generate_image): Decrease the higher limit
14314 because of stack.
14315 * util/grub-setup.c (setup): Don't add redundancy past the higher load
14316 limit.
14317
c476e6df
VS
143182011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14319
14320 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
14321 text_width > available width a bit more gracefully.
14322
384ad7cc
VS
143232011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14324
14325 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
14326 current address calculation.
14327
96f8caf8
VS
143282011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14329
14330 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
14331 stack.
14332 (encode_block): Likewise.
14333
276b7a8b
VS
143342011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14335
14336 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
14337 certainety.
14338
e3fd394a
VS
143392011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14340
14341 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
14342 non-RS part to avoid RS messing with GDT.
14343 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
14344 Increase to suit in realmode routines.
14345
143462011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14347
14348 * grub-core/kern/i386/realmode.S: Increase alignment.
14349 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
14350
ee9c2e7a
VS
143512011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14352
14353 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
14354 be deterministic.
14355 (syndroms): Compute 0 syndrom.
14356 (rs_recover): Use 0 syndrom.
14357
7a7f7cc9
VS
143582011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14359
14360 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
14361
a14b16d1
VS
143622011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14363
14364 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
14365 brackets.
14366
9f59e9fc
VS
143672011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14368
ca1b552c
VS
14369 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
14370 account.
14371 (get_top_pad): Likewise.
14372 (get_right_pad): Likewise.
14373 (get_bottom_pad): Likewise.
14374
143752011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14376
14377 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
9f59e9fc 14378
e739d698
VS
143792011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14380
14381 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
14382 attribute as the structure isn't guaranteed to be properly aligned.
14383 (grub_efi_pci_device_path): Likewise.
14384 (grub_efi_pccard_device_path): Likewise.
14385 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
14386 specify the size of `memory_type'.
14387 (grub_efi_vendor_device_path): Likewise.
14388 (grub_efi_controller_device_path): Likewise.
14389 (grub_efi_acpi_device_path): Likewise.
14390 (grub_efi_expanded_acpi_device_path): Likewise.
14391 (grub_efi_atapi_device_path): Likewise.
14392 (grub_efi_scsi_device_path): Likewise.
14393 (grub_efi_fibre_channel_device_path): Likewise.
14394 (grub_efi_1394_device_path): Likewise.
14395 (grub_efi_usb_device_path): Likewise.
14396 (grub_efi_usb_class_device_path): Likewise.
14397 (grub_efi_i2o_device_path): Likewise.
14398 (grub_efi_mac_address_device_path): Likewise.
14399 (grub_efi_ipv4_device_path): Likewise.
14400 (grub_efi_ipv6_device_path): Likewise.
14401 (grub_efi_infiniband_device_path): Likewise.
14402 (grub_efi_uart_device_path): Likewise.
14403 (grub_efi_vendor_messaging_device_path): Likewise.
14404 (grub_efi_hard_drive_device_path): Likewise.
14405 (grub_efi_cdrom_device_path): Likewise.
14406 (grub_efi_vendor_media_device_path): Likewise.
14407 (grub_efi_file_path_device_path): Likewise.
14408 (grub_efi_protocol_device_path): Likewise.
14409 (grub_efi_piwg_device_path): Likewise.
14410 (grub_efi_bios_device_path): Likewise.
14411
cb8f88ea
VS
144122011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14413
14414 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
14415 (grub_ucs4_to_utf8_alloc): Likewise.
14416 (grub_ucs4_to_utf8): Likewise.
14417 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
14418 (grub_ucs4_to_utf8_alloc): Likewise.
14419
309e5352
VS
144202011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14421
14422 AFFS never uses unicode.
14423
14424 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
14425 (grub_latin1_to_utf8): New inline function.
14426 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
14427
e7987e1b
VS
144282011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14429
14430 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
14431 overflow.
14432
efc2616e
VS
144332011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14434
14435 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
14436 (grub_squash_dirent_header): Likewise.
14437 (read_chunk): Don't double swap.
14438 (grub_squash_iterate_dir): Fix swap sizes.
14439
3c349f5a
VS
144402011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14441
14442 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
14443
b453412d
VS
144442011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14445
14446 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
14447 (grub_hfs_iterate_dir): Likewise.
14448
12e9d4d1
VS
144492011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14450
14451 Fix video on platforms where unaligned access is forbidden.
14452 Make several optimisations while on it.
14453
14454 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
14455 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
14456 (grub_video_fbblit_replace_32bit_1bit): Likewise.
14457 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
14458 Disable.
14459 (grub_video_fbblit_replace_16bit_1bit):
14460 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
14461 (grub_video_fbblit_replace_8bit_1bit): Likewise.
14462 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
14463 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
14464 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
14465 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
14466 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
14467 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
14468 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
14469 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
14470 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
14471 (grub_video_fbblit_replace_index_RGB888): Likewise.
14472 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
14473 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
14474 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
14475 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
14476 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
14477 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
14478 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
14479 Disable.
14480 (grub_video_fbblit_blend_XXX565_1bit):
14481 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
14482 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
14483 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
14484 void *.
14485 * grub-core/video/fb/video_fb.c (common_blitter)
14486 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
14487 (grub_video_fb_create_render_target_from_pointer)
14488 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
14489 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
14490 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
14491 definition.
14492 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
14493
ace96609
VS
144942011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14495
14496 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
14497 HH22 and HM10 relocations.
14498
fd261d73
VS
144992011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14500
14501 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
14502
e59b7857
VS
145032011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14504
14505 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
14506 allocation succeeded.
14507
9b4baaa4
VS
145082011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14509
14510 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
14511 argument a u8 pointer. All users updated.
14512 Handle unaligned buffers.
14513
dc713193
VS
145142011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14515
14516 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
14517 add_part to workaround compiler bug.
14518
30dd48c2
VS
145192011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14520
14521 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
14522
0c6087a8
VS
145232011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14524
14525 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
14526 Reserve alignment invariants.
14527 (grub_multiboot_load): Likewise.
14528 (retrieve_video_parameters): Likewise.
14529 (grub_multiboot_make_mbi): Likewise.
14530
c2e77777
VS
145312011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14532
14533 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
14534 incorrect pointer.
14535
b70b6d11
VS
145362011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14537
14538 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
14539 (grub_pata_pio_write): Likewise.
14540
02a2bf83
VS
145412011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14542
14543 Add noreturn attributes and remove unreachable code.
14544
14545 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
14546 code.
14547 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
14548 code. Mark as noreturn.
14549 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
14550 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
14551 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
14552 unreachable code.
14553 * grub-core/kern/main.c (grub_main): Mark as noreturn.
14554 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
14555 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
14556 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
14557 * include/grub/kernel.h (grub_main): Mark as noreturn.
14558 * include/grub/reader.h (grub_rescue_run): Likewise.
14559
2019d09e
VS
145602011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14561
14562 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
14563 redundant declaration.
14564
d1c501ee
VS
145652011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14566
14567 * include/grub/net.h (grub_net_network_level_interfaces): Remove
14568 redundant declaration.
14569 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
14570
61664420
VS
145712011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14572
14573 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
14574 to ensure alignment.
14575 (grub_hdparm_print_identify): Make argument uint16 * to ensure
14576 alignment. Ensure tmp alignment.
14577 (grub_cmd_hdparm): Ensure buf alignment.
14578 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
14579 to ensure alignment.
14580 (grub_ata_dumpinfo): Ensure text alignment.
14581 (grub_atapi_identify): Preserve alignment invariant.
14582 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
14583
0d51ee20
VS
145842011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14585
14586 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
14587 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
14588 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
14589 * include/grub/misc.h (grub_reboot)
14590 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
14591 (grub_halt) [__mips__]: Likewise.
14592
753ef8c1
VS
145932011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14594
14595 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
14596 Remove redundant declaration.
14597 (grub_mmap_get_post64): Likewise.
14598 (grub_mmap_get_upper): Likewise.
14599 (grub_mmap_get_lower): Likewise.
14600
85c85365
VS
146012011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14602
14603 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
14604 uint32_t * to ensure alignment.
14605 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
14606
a23f2cc4
VS
146072011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14608
93018f64
VS
14609 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
14610 uint16_t * to ensure alignment.
14611 (sun_pc_partition_map_iterate): Make `block' a union to ensure
14612 alignment.
14613
146142011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14615
14616 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
a23f2cc4
VS
14617 to ensure alignment.
14618 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
14619
58acccd6
VS
146202011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14621
14622 * grub-core/fs/ntfs.c (u16at): Make into inline function.
14623 Handle unaligned pointers.
14624 (u32at): Likewise.
14625 (u64at): Likewise.
14626 (fixup): Use byte access instead of v16at.
14627 (find_attr): Fix imporper usage of v32at.
14628 (read_data): Likewise.
14629 (list_file): Handle byte-swapping and unaligned strings.
14630 (grub_ntfs_label): Likewise.
14631
9b05cad7
VS
146322011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14633
14634 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
14635 as it's not necessarily aligned.
14636
b3950b84
VS
146372011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14638
14639 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
14640 redundant declaration.
14641 (grub_serial_init): Likewise.
14642 (grub_terminfo_init): Likewise.
14643
fcd232b7
VS
146442011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14645
14646 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
14647 function.
14648 (ZAP_HASH_IDX): Likewise.
14649 (ZAP_LEAF_HASH_SHIFT): Likewise.
14650 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
14651 (LEAF_HASH): Likewise.
14652 (ZAP_LEAF_NUMCHUNKS): Likewise.
14653 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
14654 alignment invariants. Return pointer. All users updated.
14655 (ZAP_LEAF_ENTRY): Make into inline function.
14656 (NBBY): Removed.
14657 (xor): LIkewise.
14658 (xor_out): Use grub_crypto_xor.
14659 (dnode_get_path): Use grub_get_unaligned.
14660 (nvlist_find_value): Likewise.
14661 (grub_zfs_nvlist_lookup_uint64): Likewise.
14662 (grub_zfs_nvlist_lookup_string): Likewise.
14663 (get_nvlist_size): Likewise.
14664 (grub_zfs_open): Likewise.
14665 (fill_fs_info): Likewise.
14666 (grub_zfs_dir): Likewise.
14667 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
14668 alignment invariants.
14669 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
14670 necessarily aligned.
14671
f138623a
VS
146722011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14673
14674 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
14675
564840dc
VS
146762011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14677
14678 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
14679 arithmetic to conserve alignment invariants.
14680
9b40df20
VS
146812011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14682
14683 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
14684 redundant declaration.
14685 (grub_efiemu_mm_obtain_request): Likewise.
14686 (grub_efiemu_prepare): Likewise.
14687
d1c930f9
VS
146882011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14689
14690 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
14691 to match types.
14692
4c5f3056
VS
146932011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14694
14695 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
14696 case of aunaligned recptr.
14697 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
14698 alignment.
14699 (grub_hfsplus_btree_search): Handle unaligned index.
14700
728cba91
VS
147012011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14702
14703 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
14704 to get freetag and skip.
14705
eb561f31
VS
147062011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14707
14708 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
14709 array.
14710 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
14711 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
14712
20993fbb
VS
147132011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14714
14715 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
14716 name for checksum and fix allocation algorithm.
14717
1f313b94
VS
147182011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14719
14720 * include/grub/types.h (grub_properly_aligned_t): New type.
14721 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
14722 (grub_get_unaligned16): Add explicit casts.
14723 (grub_get_unaligned32): Likewise.
14724 (grub_get_unaligned64): Likewise.
14725 (grub_set_unaligned16): New function.
14726 (grub_set_unaligned32): Likewise.
14727
47ae27ec
VS
147282011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14729
14730 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
14731
78c2cd1c
VS
147322011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14733
14734 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
14735 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
14736 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
14737
53072f9b
VS
147382011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14739
14740 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
14741 conditionals.
14742
055dc239
VS
147432011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14744
14745 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
14746 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
14747
496bd074
VS
147482011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14749
14750 Unify and improve RAID and crypto xor.
14751
14752 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
14753 changed to grub_crypto_xor
14754 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
14755 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
14756 Use bigger types when possible.
14757
ef6e4335
VS
147582011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14759
14760 * grub-core/disk/raid.c (scan_devices): Fix condition.
14761
5d048bf2
VS
147622011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14763
14764 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
14765 Make name a const ptr.
14766
ee533335
VS
147672011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14768
14769 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
14770 first argument a const pointer.
14771 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
14772 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
14773 proto.
14774 (grub_children_iterate): Likewise.
14775 (grub_machine_mmap_iterate): Remove redundant declaration.
14776
cc8f3668
VS
147772011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14778
14779 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
14780 (grub_cmd_acpi) [!x86]: Disable EBDA.
14781
c5fc563a
VS
147822011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14783
14784 Enable UTF8 in gnulib regexp.
14785
14786 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
14787 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
14788 (isupper): Use grub_isupper.
14789 (isascii): New inline function.
14790 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
14791 * grub-core/lib/posix_wrap/wctype.h: Likewise.
14792 * grub-core/normal/charset.c (grub_utf8_process): New function.
14793 (grub_utf8_to_utf16): Use grub_utf8_process.
14794 (grub_encode_utf8_character): New function.
14795 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
14796 * include/grub/charset.h (grub_utf8_process): New declaration.
14797 (grub_encode_utf8_character): Likewise.
14798 * include/grub/misc.h (grub_islower): New inline function.
14799 (grub_isupper): Likewise.
14800 (grub_strchrsub): Moved down to fix the definitions.
14801
0af2346f
VS
148022011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14803
14804 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
14805 specification.
14806
74dbd244
VS
148072011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14808
14809 * include/grub/loader.h (grub_loader_register_preboot_hook):
14810 Use struct preboot * and not void * for handle. All users updated.
14811 (grub_loader_unregister_preboot_hook): Likewise.
14812
1bc8f60d
VS
148132011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
14814
14815 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
14816 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
14817 UTF-16-BE. All users updated.
14818 (grub_hfsplus_cmp_catkey): Fix unicode handling.
14819 (grub_hfsplus_iterate_dir): Likewise.
14820 (grub_hfsplus_label): Likewise.
14821
48d6e456
VS
148222011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
14823
14824 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
14825
bf3a3857
VS
148262011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
14827
14828 Add missing const qualifiers.
14829
14830 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
14831 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
14832 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
14833 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
14834 (grub_lvm_check_flag): Likewise.
14835 * grub-core/efiemu/i386/coredetect.c
14836 (grub_efiemu_get_default_core_name): Likewise
14837 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
14838 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
14839 * grub-core/fs/ntfs.c (fixup): Likewise.
14840 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
14841 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
14842 (fzap_lookup): Likewise.
14843 (zap_lookup): Likewise.
14844 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
14845 * grub-core/lib/legacy_parse.c (check_option): Likewise.
14846 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
14847 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
14848 (grub_freebsd_add_meta_module): Likewise.
14849 (grub_cmd_freebsd_module): Likewise.
14850 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
14851 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
14852 (grub_xnu_writetree_get_size): Likewise.
14853 (grub_xnu_writetree_toheap_real): Likewise.
14854 (grub_xnu_find_key): Likewise.
14855 (grub_xnu_create_key): Likewise.
14856 (grub_xnu_create_value): Likewise.
14857 (grub_xnu_register_memory): Likewise.
14858 (grub_xnu_check_os_bundle_required): Likewise.
14859 (grub_xnu_scan_dir_for_kexts): Likewise.
14860 (grub_xnu_load_kext_from_dir): Likewise.
14861 * grub-core/normal/color.c (color_list): Likewise.
14862 * grub-core/normal/completion.c (current_word): Likewise.
14863 * grub-core/normal/menu_entry.c (insert_string): Likewise.
14864 * grub-core/term/serial.c (grub_serial_find): Likewise.
14865 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
14866 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
14867 Likewise.
14868 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
14869 (grub_freebsd_add_meta_module): Likewise.
14870 * include/grub/lib/arg.h (grub_arg_option): Likewise.
14871 * include/grub/net.h (grub_net_card_driver): Likewise.
14872 (grub_net_card): Likewise.
14873 (grub_net_app_protocol): Likewise.
14874 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
14875 * include/grub/serial.h (grub_serial_find): Likewise.
14876 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
14877 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
14878 (grub_xnu_create_value): Likewise.
14879 (grub_xnu_find_key): Likewise.
14880 (grub_xnu_scan_dir_for_kexts): Likewise.
14881 (grub_xnu_load_kext_from_dir): Likewise.
14882
14883 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
14884 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
14885 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
14886 Moved from here ...
14887 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
14888
112b4837
CW
148892011-11-28 Colin Watson <cjwatson@ubuntu.com>
14890
14891 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
14892
49e891ac
VS
148932011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
14894
14895 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
14896 (read_device): Fix size calculation.
14897
fd258e5c
RM
148982011-11-25 Robert Millan <rmh@gnu.org>
14899
14900 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
14901 (find_root_device_from_libzfs): Add zpool output parser to be used
14902 as fallback when libzfs isn't available.
14903
78845dc2
SG
149042011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
14905
14906 * po/Makefile.in.in: Add missing escape-continuation.
14907
adac5211
VS
149082011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
14909
14910 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
14911
10b64f1c
VS
149122011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
14913
14914 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
14915
bb416954
VS
149162011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
14917
14918 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
14919
bdfe9eeb
VS
149202011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
14921
14922 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
14923
581ffa8a
VS
149242011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14925
14926 * grub-core/lib/adler32.c: Add missing license specification.
14927 * grub-core/lib/crc64.c: Likewise.
14928 * grub-core/loader/i386/pc/plan9.c: Likewise.
14929 * grub-core/partmap/plan.c: Likewise.
14930
2536cf64
LK
149312011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
14932
14933 Add facility to debug GRUB with gdb under qemu.
14934
14935 * grub-core/gdb_grub.in: New file.
14936 * grub-core/gmodule.pl.in: Likewise.
14937 * grub-core/Makefile.core.def (gmodule.pl): New script.
14938 (gdb_grub): Likewise.
14939
bc108a4a
VS
149402011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14941
14942 * util/grub-mount.c (argp_parser): Accept relative pathes.
14943 * util/grub-fstest.c (argp_parser): Likewise.
14944
111c1778
VS
149452011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14946
14947 Plan9 support.
14948
14949 * Makefile.util.def (libgrubmods): Add
14950 grub-core/partmap/plan.c.
14951 * docs/grub.texi: Notice Plan9 support.
14952 * grub-core/Makefile.core.def (plan9): New module.
14953 (part_plan): Likewise.
14954 * grub-core/loader/i386/pc/plan9.c: New file.
14955 * grub-core/partmap/plan.c: Likewise.
14956 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
14957 define.
14958 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
14959 * include/grub/mm.h (grub_extend_alloc): New inline function.
14960
c30be3b6
VS
149612011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14962
14963 Make Reed-Solomon faster by using power of generator representation of
14964 GF(256)*.
14965
14966 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
14967 (gf_double_t): Likewise.
14968 (gf_invert): Removed.
14969 (gf_powx): New array.
14970 (gf_powx_inv): Likewise.
14971 (scratch): Move higher.
14972 (gf_reduce): Removed.
14973 (gf_mul): Use powx.
14974 (gf_invert): Likewise.
14975 (init_inverts): Replaced with ...
14976 (init_powx): ...this. All users updated.
14977 (pol_evaluate): Replace multiplications with additions.
14978 (rs_encode): Likewise.
14979 (gauss_eliminate): Call gf_invert.
14980 (grub_reed_solomon_add_redundancy): Call init_powx.
14981 (grub_reed_solomon_recover): Call init_powx unconditionally.
14982
fa5aeffc
VS
149832011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
14984
14985 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
14986
a346b81c
VS
149872011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
14988
14989 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
14990 disk->partiton for safety.
14991
d89ee414
VS
149922011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
14993
14994 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
14995 Fix a memory leak.
14996 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
14997
91ee7b6d
VS
149982011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
14999
15000 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
15001
91e5a33d
VS
150022011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15003
15004 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
15005
9edd7be2
VS
150062011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15007
15008 Fix spaces handling in proc/self/mountinfo.
15009
15010 * util/getroot.c (unescape): New function.
15011 (grub_find_root_device_from_mountinfo): Use unescape.
15012
ba102053
VS
150132011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15014
15015 Support ZFS embedding.
15016
15017 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
15018 (grub_zfs_fs): Register grub_zfs_embed.
15019
aa94b870
VS
150202011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15021
15022 Fix MIPS compilation.
15023
15024 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
15025 * include/grub/offsets.h: Rename decompressor fields from
15026 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
15027 * util/grub-mkimage.c (image_targets): Use new names.
15028
5fbdac14
VS
150292011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15030
15031 Defer multiboot device parsing until we're in compressed part.
15032
15033 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
15034 bsd_part. setdevice has fallen into disuse.
15035 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
15036 (bsd_part): Likewise.
15037 (boot_dev): New variable.
15038 (multiboot_trampoline): Don't parse multiboot device.
15039 Pass multiboot device in %edx.
15040 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
15041 grub_boot_device.
15042 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
15043 Likewise.
15044 * grub-core/kern/i386/pc/startup.S: Save edx.
15045 (grub_boot_drive): Removed.
15046 (grub_install_dos_part): Likewise.
15047 (grub_install_bsd_part): Likewise.
15048 (grub_boot_device): New variable.
15049 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
15050 (grub_install_bsd_part): Likewise.
15051 (grub_boot_drive): Likewise.
15052 (grub_boot_device): New variable.
15053 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
15054 Removed.
15055 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
15056 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
15057 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
15058 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
15059 * util/grub-install.in: Remove redundant condition.
15060
691cbb58
VS
150612011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15062
15063 Fix bug introduced by previous commit.
15064
15065 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
15066
60240b8b
VS
150672011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15068
15069 Use decompressors framework on i386-pc. It increases core size
15070 by 46 bytes but improves compatibility and maintainability.
15071
15072 * grub-core/Makefile.core.def (lzma_decompress): New image.
15073 (kernel): Add i386_pc_ldflags.
15074 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
15075 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
15076 to real_to_prot, prot_to_real and device info.
15077 * include/grub/offsets.h: Renamed decompressor offsets.
15078 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
15079 (image_target_desc): Remove raw_size and rename decompressor fields.
15080 (compress_kernel): Handle lzma.
15081 (generate_image): Handle decompressors on i386-pc.
15082
e9d3421c
VS
150832011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15084
15085 * configure.ac: Add -fno-asynchronous-unwind-tables.
15086
2b23074a
VS
150872011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15088
15089 Move assembly code to C by using intwrap. It increases core size
15090 by 88 bytes but improves compatibility and maintainability.
15091
15092 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
15093 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
15094 ... here. Translated to C.
15095 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
15096 * grub-core/term/i386/pc/console.c (grub_console_getkey):
15097 ... here. Translated to C.
15098 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
15099 * grub-core/term/i386/pc/console.c (grub_console_getxy):
15100 ... here. Translated to C.
15101 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
15102 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
15103 ... here. Translated to C.
15104 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
15105 * grub-core/term/i386/pc/console.c (grub_console_cls):
15106 ... here. Translated to C.
15107 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
15108 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
15109 ... here. Translated to C.
15110 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
15111 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
15112 Translated to C.
15113 * grub-core/term/i386/pc/console.c (int10_9): New function.
15114 (grub_console_putchar): Likewise.
15115 * include/grub/i386/pc/console.h: Removed the not anymore shared
15116 functions.
15117
678f4b67
VS
151182011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15119
15120 Move grub_chainloader_real_boot out of the kernel.
15121
15122 * grub-core/Makefile.am: Remove machine/loader.h.
15123 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
15124 Removed.
15125 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
15126 variable.
15127 (grub_relocator16_keep_a20_enabled): Likewise.
15128 (grub_relocator16_boot): Fill new variables.
15129 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
15130 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
15131 relocator.
15132 (grub_chainloader_unload): Likewise.
15133 (grub_chainloader_cmd): Likewise.
15134 * include/grub/i386/pc/loader.h: Removed.
15135 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
15136 and esi. All initialisers updated.
15137
4626edf6
VS
151382011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
151392011-11-12 Colin Watson <cjwatson@ubuntu.com>
15140
15141 * Makefile.util.def (grub-mount): New util.
15142 * .bzrignore: Add grub-mount.
15143 * configure.ac: Check for fuse and enable grub-mount if available.
15144 * docs/man/grub-mount.h2m: New file.
15145 * util/grub-mount.c: Likewise.
15146
10f0117b
VS
151472011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15148
15149 * grub-core/commands/efi/fixvideo.c: Gettextize.
15150 * grub-core/commands/hashsum.c: Likewise.
15151 * grub-core/commands/i386/cmostest.c: Likewise.
15152 * grub-core/commands/i386/pc/drivemap.c: Likewise.
15153 * grub-core/commands/i386/pc/lsapm.c: Likewise.
15154 * grub-core/commands/i386/pc/sendkey.c: Likewise.
15155 * grub-core/commands/lsmmap.c: Likewise.
15156 * grub-core/commands/menuentry.c: Likewise.
15157 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
15158 * grub-core/commands/setpci.c: Likewise.
15159 * grub-core/loader/i386/bsd.c: Likewise.
15160 * grub-core/loader/i386/linux.c: Likewise.
15161 * util/getroot.c: Likewise.
15162 * util/grub-editenv.c: Likewise.
15163 * util/grub-fstest.c: Likewise.
15164 * util/grub-mkfont.c: Likewise.
15165 * util/grub-mkimage.c: Likewise.
15166 * util/grub-mkpasswd-pbkdf2.c: Likewise.
15167 * util/grub-pe2elf.c: Likewise.
15168 * util/grub-probe.c: Likewise.
15169 * util/grub-setup.c: Likewise.
15170 * util/ieee1275/ofpath.c: Likewise.
15171 * util/misc.c: Likewise.
15172 * util/raid.c: Likewise.
15173
566f779b
RM
151742011-11-11 Robert Millan <rmh@gnu.org>
15175
15176 * util/getroot.c (grub_util_get_geom_abstraction): Remove
15177 __attribute__((unused)) from `os_dev', which *is* being used.
15178
b50787de
VS
151792011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15180
15181 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
15182 forgotten define.
15183 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
15184 GRUB_IA64_DL_GOT_ALIGN.
15185 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
15186 GRUB_IA64_DL_TRAMP_ALIGN.
15187
119d11c8
VS
151882011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15189
15190 Replace grub_fatal with normal errors in i386 linux loader.
15191
15192 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
15193 (allocate_pages): Check find_efi_mmap_size return value.
15194 (grub_e820_add_region): Return error.
15195 (grub_linux_boot): Check mmap return value.
15196
6e0632e2
VS
151972011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15198
15199 * grub-core/commands/acpihalt.c: Gettextized.
15200 * grub-core/commands/cacheinfo.c: Likewise.
15201 * grub-core/commands/cmp.c: Likewise.
15202 * grub-core/commands/efi/loadbios.c: Likewise.
15203 * grub-core/commands/gptsync.c: Likewise.
15204 * grub-core/commands/ieee1275/suspend.c: Likewise.
15205 * grub-core/commands/legacycfg.c: Likewise.
15206 * grub-core/commands/memrw.c: Likewise.
15207 * grub-core/commands/minicmd.c: Likewise.
15208 * grub-core/commands/parttool.c: Likewise.
15209 * grub-core/commands/time.c: Likewise.
15210 * grub-core/commands/videoinfo.c: Likewise.
15211 * grub-core/disk/geli.c: Likewise.
15212 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
15213 * grub-core/disk/luks.c: Likewise.
15214 * grub-core/disk/lvm.c: Likewise.
15215 * grub-core/font/font_cmd.c: Likewise.
15216 * grub-core/fs/zfs/zfscrypt.c: Likewise.
15217 * grub-core/fs/zfs/zfsinfo.c: Likewise.
15218 * grub-core/gfxmenu/view.c: Likewise.
15219 * grub-core/kern/emu/hostdisk.c: Likewise.
15220 * grub-core/kern/emu/main.c: Likewise.
15221 * grub-core/kern/emu/misc.c: Likewise.
15222 * grub-core/kern/emu/mm.c: Likewise.
15223 * grub-core/kern/mips/arc/init.c: Likewise.
15224 * grub-core/kern/mips/loongson/init.c: Likewise.
15225 * grub-core/kern/partition.c: Likewise.
15226 * grub-core/lib/i386/halt.c: Likewise.
15227 * grub-core/lib/mips/arc/reboot.c: Likewise.
15228 * grub-core/lib/mips/loongson/reboot.c: Likewise.
15229 * grub-core/loader/i386/pc/chainloader.c: Likewise.
15230 * grub-core/loader/i386/xnu.c: Likewise.
15231 * grub-core/loader/multiboot.c: Likewise.
15232 * grub-core/net/bootp.c: Likewise.
15233 * grub-core/net/net.c: Likewise.
15234 * grub-core/normal/term.c: Likewise.
15235 * grub-core/partmap/bsdlabel.c: Likewise.
15236 * grub-core/parttool/msdospart.c: Likewise.
15237 * grub-core/term/gfxterm.c: Likewise.
15238 * grub-core/term/terminfo.c: Likewise.
15239 * grub-core/video/i386/pc/vbe.c: Likewise.
15240 * util/grub-menulst2cfg.c: Likewise.
15241 * util/grub-mkdevicemap.c: Likewise.
15242 * util/grub-mklayout.c: Likewise.
15243 * util/grub-mkrelpath.c: Likewise.
15244 * util/grub-script-check.c: Likewise.
15245 * util/ieee1275/grub-ofpathname.c: Likewise.
15246 * util/resolve.c: Likewise.
15247
073aa7a9
VS
152482011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15249
15250 Support %1$d syntax.
15251
15252 * tests/printf_unit_test.c: New file.
15253 * Makefile.util.def (printf_test): New test.
15254 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
15255
c76b5417
VS
152562011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15257
15258 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
15259 fix.
15260
df067ad1
VS
152612011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15262
15263 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
15264 dprintf.
15265 * grub-core/font/font.c (grub_font_load): Likewise.
15266
5b289bc5
VS
152672011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15268
15269 * util/grub-macho2img.c: Add comment concerning gettext.
15270 * grub-core/lib/legacy_parse.c: Likewise.
15271
c1860f87
VS
152722011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15273
15274 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
15275 (grub_xvasprintf): Likewise.
15276
d35d0d37
VS
152772011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15278
15279 Add const keyword to grub_env_get and gettextize week days.
15280
15281 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
15282 (grub_read_hook_datetime): Return const char *.
15283 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
15284 updated.
15285 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
15286 Mark for gettext.
15287 (grub_get_weekday_name): Return const char *. Call gettext.
15288 * grub-core/script/argv.c (grub_script_argv_append): Receive const
15289 char * and len as the argument. All users updated.
15290 (grub_script_argv_split_append): Receive const char *.
15291 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
15292 * include/grub/env.h (grub_env_get): Likewise.
15293 (grub_env_read_hook_t): Return const char *.
15294 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
15295 (grub_script_argv_split_append): Likewise.
15296
9aed8a71
VS
152972011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15298
15299 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
15300
067fdf00
VS
153012011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15302
15303 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
15304 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
15305
a8bd9d39
VS
153062011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15307
15308 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
15309 Fix prototype.
15310
f7ce5baf
VS
153112011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15312
15313 Fix mips compilation.
15314
15315 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
15316 normal decoder.
15317 (hashes): Use in embed decoder as well (for sizes).
15318 (dec_stream_header): Fix embed decompressor logic.
15319 (dec_stream_footer): Likewise.
15320
9bb182f3
VS
153212011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15322
15323 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
15324 an error and not a fatal on unrecognised relocation types.
15325
63a9e6f6
VS
153262011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15327
15328 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
15329 Issue error rather than printf on unknown arguments.
15330
4c458569
VS
153312011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15332
15333 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
15334 Make buf a const.
15335
e2d22baf
VS
153362011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15337
15338 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
15339 Fix module name.
15340
53dc8590
VS
153412011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15342
15343 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
15344 leftover debug printf.
15345
6c189294
VS
153462011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15347
15348 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
15349
f7688369
VS
153502011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15351
15352 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
15353 A stylistic fix.
15354
11a775a3
VS
153552011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15356
15357 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
15358
33f784e8
SL
153592011-11-10 Shea Levy <slevy@tieronedesign.com>
15360
15361 Allow all modules to perform serial IO
15362
15363 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
15364 * include/grub/serial.h (grub_serial_port_configure): New inline
15365 function.
15366 (grub_serial_port_fetch): Likewise.
15367 (grub_serial_port_put): Likewise.
15368 (grub_serial_port_fini): Likewise.
15369 (grub_serial_find): New proto.
15370
f6276525
VS
153712011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
15372
15373 Put symlink at the end of the node and fix a potential
15374 memory corruption.
15375
15376 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
15377 Make symlink into an array.
15378 (set_rockridge): Set have_symlink and alloc_dirents.
15379 (grub_iso9660_read_symlink): Use new layout.
15380 (grub_iso9660_iterate_dir): Fix memory corruption.
15381 Use new layout.
15382 (grub_iso9660_dir): Set have_symlink.
15383 (grub_iso9660_open): Likewise.
15384
c3591189
VS
153852011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
15386
15387 Remove local keyword.
15388
15389 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
15390 (version_test_gt): Likewise.
15391 (version_find_latest): Likewise.
15392 (gettext_printf): Likewise.
15393 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
15394
cb544caa
VS
153952011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
15396
15397 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
15398
45bd824d
VS
153992011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
15400
15401 Fix ZFS memory and resource leaks.
15402
15403 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
15404 All users updated.
15405 Free type on exit.
15406 (fill_vdev_info): New parameter inserted. All users updated.
15407 (check_pool_label): Likewise.
15408 (scan_disk): Likewise.
15409 (scan_devices): Close non-inserted disks.
15410 (fzap_iterate): Free l.
15411 (unmount_device): Free children descripto memory.
15412
ad9a2f44
VS
154132011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
15414
15415 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
15416 argument (access out of bounds).
15417
6b68db81
VS
154182011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
15419
15420 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
15421 >= 6 drives.
15422
28840fda
VS
154232011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
15424
15425 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
15426 Fix declaration.
15427
8a5a3a5b
VS
154282011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
15429
15430 Fix several memory leaks.
15431
15432 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
15433 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
15434 (grub_cpio_dir): Likewise.
15435 * grub-core/fs/fat.c (grub_fat_label): Likewise.
15436 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
15437 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
15438 (grub_romfs_label): Likewise.
15439 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
15440 (squash_unmount): New function.
15441 (grub_squash_dir): Fix memory leak.
15442 (grub_squash_open): Likewise.
15443 (grub_squash_read): Likewise.
15444 (grub_squash_mtime): Likewise.
15445 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
15446 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
15447 * util/grub-fstest.c (fstest): Likewise.
15448
57b01250
VS
154492011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
15450
15451 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
15452 avoid accessing beyond the array.
15453
19e81ba7
VS
154542011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
15455
15456 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
15457
52b656c0
VS
154582011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
15459
15460 Several AFFS fixes.
15461
15462 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
15463 (GRUB_AFFS_FLAG_FFS): Removed.
15464 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
15465 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
15466 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
15467 (grub_fshelp_node): Make block 32-bit.
15468 Add block_cache and last_block_cache.
15469 (grub_affs_read_block): Fill and use block cache.
15470 (grub_affs_read_file): Removed.
15471 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
15472 boot block.
15473 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
15474 safety.
15475 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
15476 space.
15477 (grub_affs_close): Free block cache.
15478 (grub_affs_read): Use grub_fshelp_read_file directly.
15479
438a746a
VS
154802011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15481
15482 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
15483 with no error set.
15484
49a45021
VS
154852011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15486
15487 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
15488 used variable.
15489 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
15490 Likewise.
15491
3ae17eb8
VS
154922011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15493
15494 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
15495
15496 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
15497 byteswap when needed.
15498
27610c38
VS
154992011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15500
15501 Fix FreeBSD compilation.
15502
15503 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
15504 to avoid circular dependency.
15505 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
15506 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
15507 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
15508
4a19b601
VS
155092011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15510
15511 Fix ZFS crypto error types.
15512
15513 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
15514 (grub_gcm_decrypt): Likewise.
15515 (grub_zfs_load_key_real): Fix error code type. Handle possible error
15516 from PBKDF2.
15517
958ee221
VS
155182011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15519
15520 Illumos support.
15521
15522 * Makefile.util.def (10_illumos): New script.
15523 * configure.ac: Set COND_HOST_ILLUMOS.
15524 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
15525 Support Illumos calls.
15526 (find_partition_start) [__sun__]: Likewise.
15527 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
15528 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
15529 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
15530 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
15531 device.
15532 * util/grub-probe.c (probe) [__sun__]: Do character check.
15533 * util/grub.d/10_illumos.in: New file.
15534
cac14fb6
VS
155352011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15536
15537 Support escaped commas in hostdisk.
15538
15539 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
15540 (find_grub_drive): Use unescape_cmp.
15541 (make_device_name): Escape commas.
15542
78e08dc3
VS
155432011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15544
15545 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
15546
9f421dd1
VS
155472011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15548
15549 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
15550 variable.
15551
ed64e9e2
VS
155522011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15553
15554 Support trampoline jumps on powerpc.
15555
15556 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
15557 __ia64__ path.
15558 (grub_dl_load_segments): Set mod->sz.
15559 (grub_dl_flush_cache): Flush whole space occupied by module, not just
15560 segments.
15561 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
15562 (jump): Likewise.
15563 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
15564 function.
15565 (trampoline): New struct.
15566 (trampoline_template): New const.
15567 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
15568 * include/grub/dl.h (grub_dl): Add sz element.
15569 [__powerpc__]: Follow __ia64__.
15570 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
15571 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
15572 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
15573 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
15574
3084ede4
VS
155752011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15576
15577 ZFS crypto support.
15578
15579 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
15580 * grub-core/Makefile.core.def (zfscrypt): New module.
15581 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
15582 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
15583 it. All users updated.
15584 (grub_zfs_decrypt): New var.
15585 (grub_zfs_load_key): Likewise.
15586 (zio_checksum_functions): Add SHA256+MAC.
15587 (zio_checksum_verify): Handle incomplete comparison due to MAC.
15588 (zio_read): Handle encrypted blocks.
15589 (zap_verify): Remove incorrect check.
15590 (fzap_iterate): Handle non-standard fzap.
15591 (zap_iterate): Likewise.
15592 (zap_iterate_u64): New function.
15593 (dnode_get_fullpath): Load keys.
15594 * grub-core/fs/zfs/zfscrypt.c: New file.
15595 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
15596 (grub_crypto_ecb_encrypt): Make input const.
15597 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
15598 (grub_crypto_ecb_encrypt): Make input const.
15599 (GRUB_CIPHER_AES): New macro.
15600 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
15601 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
15602 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
15603 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
15604 prefix. All users updated.
15605 (grub_zfs_add_key): New proto.
15606 (grub_zfs_decrypt): Likewise.
15607 (grub_zfs_load_key): Likewise.
15608 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
15609 * util/grub-fstest.c (options): Add -K option.
15610 (argp_parser): Likewise.
15611
b632b404
VS
156122011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
15613
15614 Support zle compression on ZFS.
15615
15616 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
15617 (decomp_table): Add zle.
15618 * include/grub/zfs/zio.h (zio_compress): Add zle.
15619
c7ba4f69
VS
156202011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
15621
15622 Support BtrFS embedding.
15623
15624 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
15625 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
15626 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
15627 * util/grub-setup.c (setup): Use fs embedding if available.
15628 Add additional sanity check.
15629
455377d9
VS
156302011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
15631
15632 * util/grub-install.in: Fix condition for config_opt.
15633
c2fd16ca
VS
156342011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
15635
15636 Support third redundancy strip on raidz3.
15637
15638 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
15639 Return error on singularity. All users updated.
15640 (read_device): Don't stop on 3rd failure on raidz3.
15641
8622923b
VS
156422011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
15643
15644 Support case-insensitive ZFS subvolumes.
15645
15646 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
15647 All users updated.
15648 (zap_hash): Likewise.
15649 (name_cmp): New function.
15650 (zap_leaf_array_equal): New parameter case_insensitive.
15651 All users updated.
15652 (zap_leaf_lookup): Likewise.
15653 (fzap_lookup): Likewise.
15654 (zap_lookup): Likewise.
15655 (dnode_get_path): New parameter case_insensitive. Retrieve case
15656 sensitiviness of a volume. All users updated.
15657 (dnode_get_fullpath): New parameter case_insensitive.
15658 All users updated.
15659 (grub_zfs_dir): Set info.case_insensitiveness.
15660
95f2e860
VS
156612011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
15662
15663 Support second redundancy strip on raidz(2,3).
15664
15665 * grub-core/fs/zfs/zfs.c (powx): New array.
15666 (powx_inv): Likewise.
15667 (poly): New const.
15668 (xor_out): New function.
15669 (gf_mul): Likewise.
15670 (recovery): Likewise.
15671 (read_device): Use second redundancy strip.
15672
11ee4389
VS
156732011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
15674
15675 Use a power of generator representation of GF(256) multiplication group
15676 to save space time and complexity.
15677
15678 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
15679 (raid6_table2): Likewise.
15680 (powx): New array.
15681 (powx_inv): Likewise.
15682 (poly): New const.
15683 (grub_raid_block_mul): Replace with ...
15684 (grub_raid_block_mulx): ...this.
15685 (grub_raid6_init_table): Rewritten.
15686 (grub_raid6_recover): Use power of generator representation.
15687
09e2763f
VS
156882011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
15689
15690 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
15691 for the right device.
15692
8bec9a28
VS
156932011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
15694
15695 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
15696 expected by grub-mkimage and it's more clear since there is no implicit
15697 padding.
15698
dbd3a32e
VS
156992011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
15700
15701 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
15702 disk.
15703 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
15704
182c872a
PMH
157052011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
15706
15707 * util/grub-mkrescue.in: Fix handling xorriso option.
15708
1e51cabd
VS
157092011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
15710
15711 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
15712 NULL.
15713
9cc3581d 157142011-11-03 crocket <crockabiscuit@gmail.com>
15715
15716 * util/grub.d/10_linux.in: Add Slackware initrd naming.
15717
158dc1ea
VS
157182011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
15719
15720 XZ CRC64 and SHA256 support.
15721
15722 * Makefile.util.def (libgrubmods): Add crc64.c.
15723 * grub-core/Makefile.core.def (crc64): New module.
15724 * grub-core/lib/crc64.c: New file.
15725 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
15726 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
15727 Fix the type.
15728 (MAX_HASH_SIZE): New define.
15729 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
15730 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
15731 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
15732 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
15733 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
15734 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
15735 Handle non-crc32 hashes.
15736 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
15737 (dec_stream_header): Handle non-crc32 hashes.
15738 (dec_stream_footer): Likewise.
15739 (dec_block_header): Likewise.
15740 (dec_main): Likewise.
15741 (xz_dec_init): Likewise.
15742 (xz_dec_reset): Likewise.
15743 (xz_dec_end): Likewise.
15744 * util/import_gcry.py: Add CRC64 line.
15745
9d9b3d2f
VS
157462011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
15747
15748 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
15749 as well.
15750
7d0ac931
VS
157512011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
15752
15753 Make reiserfs label retrieval similar to other *_label functions.
15754
15755 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
15756 (REISERFS_MAX_LABEL_LENGTH): Removed.
15757 (REISERFS_LABEL_OFFSET): Likewise.
15758 (grub_reiserfs_label): Rewritten.
15759
157602011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
15761
15762 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
15763 field.
15764
cf5ba824
VS
157652011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
15766
15767 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
15768
17744004
VS
157692011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
15770
15771 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
15772 drive failure on both raidz and raidz2.
15773
aca5aefc
VS
157742011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
15775
15776 Fix RAIDZ(2) for >= 5 devices.
15777
15778 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
15779 asize argument. All users updated.
15780
ce8ca56e
VS
157812011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15782
15783 Fix RAIDZ(2).
15784
15785 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
15786 (fill_vdev_info_real): Set ashift.
15787 (read_device): Rewrite RAIDZ part based on reverse engineering.
15788
7c01e783
VS
157892011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
15790
15791 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
15792 don't report potentially unavialiable fields in debug output.
15793 (find_path): Fix double-free and memory leak.
15794
ce109e84
VS
157952011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
15796
15797 Read label on UFS1.
15798
15799 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
15800 (grub_ufs_fs): Always set .label.
15801
87661123
VS
158022011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
15803
15804 Use shifts in UFS.
15805
15806 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
15807 (grub_ufs_data): New field log2_blksz.
15808 (grub_ufs_read_file): Use shifts.
15809 (grub_ufs_mount): Check block size and logarithm it.
15810
46bc1dc2
VS
158112011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
15812
15813 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
15814 long symlinks.
15815
19ee2987
VS
158162011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
15817
15818 Handle symlinks and long names on tar and cpio.
15819
15820 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
15821 (ATTR_FILE): Likewise.
15822 (ATTR_DIR): Likewise.
15823 (ATTR_LNK): Likewise.
15824 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
15825 (grub_cpio_find_file): Fill mode, handle linkname field as well as
15826 L and K entries.
15827 (grub_cpio_mount): Zero-fill data.
15828 (handle_symlink): New function.
46bc1dc2
VS
15829 (grub_cpio_dir): Handle symlinks.
15830 (grub_cpio_open): Likewise.
15831 (grub_cpio_close) [MODE_USTAR]: Free linkname.
19ee2987 15832
c83a08d8
VS
158332011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
15834
15835 Fix iso9660 filename limitations and fix memory leaks.
15836
15837 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
15838 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
15839
45cdd3ea
VS
158402011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
15841
15842 Fix JFS file name length limitations.
15843
15844 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
15845 (grub_jfs_diropen): Fix maximum filename length.
15846 (grub_jfs_getent): Fix filename length.
15847 (grub_jfs_lookup_symlink): Fix size checks.
15848
94ef05c2
VS
158492011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
15850
15851 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
15852 string.
15853
785ab8c7
VS
158542011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
15855
eb0b6b45
VS
15856 Leverage BFS implementation to read AFS.
15857
15858 * Makefile.util.def (libgrubmods): Add afs.c.
15859 * grub-core/Makefile.core.def (afs): New module
15860 * grub-core/fs/afs.c: New file.
15861 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
15862
158632011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
15864
15865 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
785ab8c7 15866
c4a1628f
VS
158672011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
15868
15869 * grub-core/fs/bfs.c: Run indent.
15870
5825b379
VS
158712011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
15872
15873 BFS implementation based on the specification.
15874
15875 * grub-core/fs/bfs.c: New file.
15876 * Makefile.util.def (libgrubmods): Add bfs.c.
15877 * grub-core/Makefile.core.def (bfs): New module.
15878
42b2a706
VS
158792011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
15880
15881 * util/grub-fstest.c (cmd_cp): Clarify error message.
15882 (cmd_cmp): Likewise.
15883
61b99bfc
YB
158842011-10-30 Yves Blusseau <blusseau@zetam.org>
15885
15886 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
15887 and befs_be.
15888
faba3d16
VS
158892011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
15890
15891 Remove afs and befs because of copyright problem.
15892
15893 * grub-core/fs/afs.c: Removed.
15894 * grub-core/fs/afs_be.c: Removed.
15895 * grub-core/fs/befs.c: Removed.
15896 * grub-core/fs/befs_be.c: Removed.
15897 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
15898 * grub-core/Makefile.core.def (afs): Removed.
15899 (afs_be): Likewise.
15900 (befs): Likewise.
15901 (befs_be): Likewise.
15902
c39224b0
VS
159032011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
15904
15905 Prefer rockridge over Joliet.
15906
15907 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
15908 to ...
15909 (set_rockridge): ... here.
15910 (grub_iso9660_mount): Check rockridge on the primary label when
15911 discovering. Ignore Joliet if Rockridge is present.
15912
e551115a
VS
159132011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
15914
15915 Use shifts in nilfs2.
15916
15917 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
15918 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
15919 (grub_nilfs2_palloc_entries_per_group): Replace with ...
15920 (grub_nilfs2_log_palloc_entries_per_group): ... this.
15921 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
15922 (grub_nilfs2_entries_per_block): Replaced with ...
15923 (grub_nilfs2_log_entries_per_block_log): ... this.
15924 (grub_nilfs2_blocks_per_group): Replaced with ...
15925 (grub_nilfs2_blocks_per_group_log): ... this.
15926 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
15927 (grub_nilfs2_blocks_per_desc_block_log): ... this.
15928 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
15929 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
15930 (grub_nilfs2_palloc_entry_offset): Replaced ...
15931 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
15932 (grub_nilfs2_dat_translate): Use shifts.
15933 (grub_nilfs2_read_inode): Likewise.
15934 (GRUB_MOD_INIT): Ensure that logs are correct.
15935
564dd58c
VS
159362011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
15937
15938 Use shifts in minix filesystem.
15939
15940 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
15941 (GRUB_MINIX_ZONE2SECT): Likewise.
15942 (grub_minix_data): Replace block_size with log_block_size.
15943 (grub_minix_read_file): Use shifts.
15944 (grub_minix_mount): Check block size and take a logarithm.
15945
ed9ba06d
VS
159462011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
15947
15948 Use shifts in squash4.
15949
15950 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
15951 (squash_mount): Check block size and take logarithm.
15952 (direct_read): Use shifts.
15953
ad03fe76
VS
159542011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
15955
15956 Correct befs block counting logic.
15957
15958 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
15959 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
15960 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
15961 (grub_afs_read_inode): Use block_shift.
15962 (RANGE_SHIFT): New definition.
15963 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
15964 unexpected conditions, use shifts and appropriate types.
15965 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
15966
6563f63d
VS
159672011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
15968
15969 * grub-core/disk/raid.c (scan_devices): Check partition.
15970 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
15971
5b1ae25f
VS
159722011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
15973
15974 Support BFS (befs) UUID.
15975
15976 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
15977 (grub_afs_small_data_element_header): New struct.
15978 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
15979 (grub_afs_read_attribute) [MODE_BFS]: New function.
15980 (grub_afs_iterate_dir): Allocate for complete inode.
15981 (grub_afs_mount): Likewise.
15982 (grub_afs_uuid) [MODE_BFS]: New function.
15983 (grub_afs_fs) [MODE_BFS]: Add .uuid.
15984
f8d82408
VS
159852011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
15986
15987 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
15988 (zfs_unmount): Fix memory leak.
15989
5773fb64
VS
159902011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15991
15992 Support NTFS reparse points.
15993
15994 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
15995 (symlink_descriptor): New struct.
15996 (grub_ntfs_read_symlink): New function.
15997 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
15998 (grub_ntfs_open): Likewise.
15999
91c3fdde
VS
160002011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16001
16002 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
16003
3be82e10
VS
160042011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16005
16006 fstest xnu_uuid subcommand.
16007
16008 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
16009 grub-core/commands/xnu_uuid.c.
16010 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
16011 (fstest): Handle xnu_uuid.
16012 (options): Document xnu_uuid.
16013 (argp_parser): Parse xnu_uuid.
16014
8e32442e
VS
160152011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16016
16017 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
16018 -l argument. Add newline at the end if printing.
16019 (GRUB_MOD_INIT): Document -l.
16020
52a05075
VS
160212011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16022
16023 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
16024
1869edb5
VS
160252011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16026
16027 ZFS multi-device and version 33 support.
16028
16029 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
16030 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
16031 (grub_zfs_data): Add multidev-ice-related fields.
16032 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
16033 (dva_get_offset): Make dva const.
16034 (zfs_fetch_nvlist): New function.
16035 (fill_vdev_info_real): Likewise.
16036 (fill_vdev_info): Likewise.
16037 (check_pool_label): Likewise.
16038 (scan_disk): Likewise.
16039 (scan_devices): Likewise.
16040 (read_device): Likewise.
16041 (read_dva): Likewise.
16042 (zio_read_gang): Use read_dva.
16043 (zio_read_data): Likewise.
16044 (zap_leaf_lookup): Add missing endian conversion.
16045 (zap_verify): Add missing endian conversion. All users updated.
16046 (fzap_lookup): Likewise.
16047 (fzap_iterate): Likewise.
16048 (dnode_get_path): Handle SA bonus.
16049 (nvlist_find_value): Make input const. All users updated.
16050 (unmount_device): New function.
16051 (zfs_unmount): Use unmount_device.
16052 (zfs_mount): Use scan_disk.
16053 (zfs_mtime): New function.
16054 (grub_zfs_open): Handle system attributes.
16055 (fill_fs_info): Likewise.
16056 (grub_zfs_dir): Likewise.
16057 (grub_zfs_fs): Add mtime.
16058 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
16059 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
16060 (SA_MTIME_OFFSET): Likewise.
16061 (SA_SYMLINK_OFFSET): Likewise.
16062 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
16063 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
16064 (fstest): Support zfsinfo.
16065 (argp_parser): Likewise.
16066
186b4028
VS
160672011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16068
16069 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
16070 error.
16071
160722011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5587329c
VS
16073
16074 ZFS fixes.
16075
16076 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
16077 sharing the same block. Iterate over correct number of indices.
16078 (dnode_get_path): Handle symlinks correctly.
16079
c0584900
VS
160802011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16081
16082 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
16083
67e2bd71
VS
160842011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16085
16086 Read label on HFS+.
16087
16088 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
16089 (grub_hfsplus_btree_search): Fix types.
16090 (grub_hfsplus_label): Implement.
16091
e9cc6b7b
VS
160922011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16093
16094 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
16095
19832ddb
VS
160962011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16097
16098 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
16099
66b40850
VS
161002011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16101
16102 Fix symlink handling on iso9660.
16103
16104 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
16105 All users updated.
16106 (grub_iso9660_susp_iterate): Accept zero-size iterate.
16107 (grub_iso9660_read_symlink): Moved most of code ...
16108 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
16109
db821363
VS
161102011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16111
16112 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
16113 Use union to avoid breaking strict-aliasing rules.
16114
e1211949
VS
161152011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16116
16117 Support multi-extent iso files.
16118
16119 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
16120 Add node.
16121 (grub_fshelp_node): Revamp. All users updated.
16122 (FLAG_*): New enum.
16123 (read_node): New function.
16124 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
16125 All users updated.
16126 (grub_iso9660_mount): Don't attempt to read sua when there is none.
16127 (get_node_size): New function.
16128 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
16129 entries.
16130 Fix memory leak on . and ..
16131 (grub_iso9660_read): Use read_node.
16132 (grub_iso9660_close): Free node.
16133
d4888031
VS
161342011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16135
16136 Fix tar 4G limit and handle paths containing dot.
16137
16138 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
16139 (canonicalize): New function.
16140 (grub_cpio_find_file): Use canonicalize. Store offs in
16141 grub_disk_addr_t.
16142 (grub_cpio_dir): Use grub_disk_addr_t.
16143 (grub_cpio_open): Likewise.
16144
9f12e664
VS
161452011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16146
16147 Fix handling of uncompressed blocks on squashfs and break 4G limit.
16148
16149 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
16150 unused flags.
16151 (grub_squash_inode): Add long_file and block_size.
16152 (grub_squash_cache_inode): New struct.
16153 (grub_squash_dirent): Make types into enum.
16154 (SQUASH_TYPE_LONG_REGULAR): New type.
16155 (grub_squash_frag_desc): Add field size.
16156 (SQUASH_BLOCK_FLAGS): New enum.
16157 (grub_squash_data): Use grub_squash_cache_inode.
16158 (grub_fshelp_node): Make ino_chunk 64-bit.
16159 (read_chunk): Minor argument change. All users updated.
16160 (squash_mount): Use correct le_to_cpu.
16161 (grub_squash_open): Handle LONG_REGULAR.
16162 (direct_read): New function.
16163 (grub_squash_read_data): Handle blocks correctly.
16164
9f326fba
VS
161652011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16166
16167 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
16168
f4d9b64b
VS
161692011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16170
16171 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
16172
5bbd28b8
VS
161732011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
16174
16175 Fix 2G limit on ZFS.
16176
16177 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
16178 types.
16179 (uberblock_verify): Likewise.
16180 (dmu_read): Likewise.
16181 (grub_zfs_read): Likewise. Remove invalid cast.
16182
68c72069
VS
161832011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
16184
16185 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
16186 (grub_jfs_blkno): Fix incorrect shift.
16187 (grub_jfs_read_file): Use more appropriate types.
16188
6e536dc8
VS
161892011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
16190
16191 Support triple indirect on minix2 and minix3.
16192
16193 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
16194 Declare triple_indir_zone.
16195 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
16196 indirect.
16197
e0864e7a
VS
161982011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
16199
16200 Minix FS fixes.
16201
16202 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
16203 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
16204 Rename ctime to mtime. All users updated.
16205 (grub_minix_get_file_block): Fix types and double indirect computations.
16206
89481cab
VS
162072011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16208
16209 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
16210 if no label is found.
16211 (grub_fat_iterate_dir): Fix file size type.
16212 (grub_fat_iterate_dir): Likewise.
16213
f646e143
VS
162142011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16215
16216 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
16217 save some space.
16218 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
16219 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
16220
534d769e
VS
162212011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16222
16223 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
16224
e084ba18
VS
162252011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16226
16227 * util/import_gcry.py: Accept space between # and include.
16228
3471ecdf
VS
162292011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16230
16231 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
16232
124df5f6
VS
162332011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16234
16235 Fine grainely disable warnings on lexer. Remove Wno-error on it.
16236
16237 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
16238 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
16239 yylex_strncpy.
16240 * grub-core/script/yylex.l: Add fine-grained #pragma.
16241
4defb8d5
VS
162422011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16243
16244 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
16245 New inline function.
16246 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
16247 Likewise.
16248 (memset) [GRUB_UTIL]: Likewise.
16249 (memcmp) [GRUB_UTIL]: Likewise.
16250
4e94ae65
VS
162512011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16252
16253 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
16254 inline function rather than a define.
16255
18c575e5
VS
162562011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16257
16258 * util/grub-setup.c: Add missing include.
16259
f8bc22a8
VS
162602011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16261
16262 * util/ieee1275/grub-ofpathname.c: Add missing include.
16263
3ce69fc9
VS
162642011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16265
16266 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
16267 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
16268 Likewise.
16269
d1e293bb
VS
162702011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16271
16272 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
16273 grub_memcmp usage.
16274
7a5c54a4
VS
162752011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16276
16277 * util/grub-install.in: Add datarootdir as per automake manual
16278 suggestion.
16279 * util/grub-mknetdir.in: Likewise.
16280
162812011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
7bec1053
VS
16282
16283 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
16284 suggestion.
16285 * util/grub.d/10_kfreebsd.in: Likewise.
16286 * util/grub.d/10_linux.in: Likewise.
16287 * util/grub.d/10_netbsd.in: Likewise.
16288 * util/grub.d/10_windows.in: Likewise.
16289 * util/grub.d/20_linux_xen.in: Likewise.
16290
766f7d08
VS
162912011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
16292
16293 Remove redundant grub_kernel_image_size.
16294
16295 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
16296 _edata and _start.
16297 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
16298 the small code. It moves it only by few bytes but simplifies the code.
16299 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
16300 _start.
16301 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
16302 (grub_kernel_image_size): Removed.
16303 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
16304 (grub_kernel_image_size): Removed.
16305 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
16306 compiled with Apple toolchain.
16307 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
16308 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
16309 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
16310 (grub_total_module_size): Likewise.
16311 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
16312 Removed.
16313 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
16314 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
16315 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
16316 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
16317 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
16318 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
16319 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
16320 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
16321 Removed.
16322 (grub_total_module_size): Removed.
16323 * util/grub-mkimage.c (image_target_desc): Remove image_size.
16324 (image_targets): Likewise.
16325 Set .compressed_size to no field on sparc.
16326 (generate_image): Remove kernel_image_size handling.
16327
fcf1d672
SJ
163282011-10-19 Szymon Janc <szymon@janc.net.pl>
16329
16330 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
16331 NULL pointer dereference.
16332
de9c615e
VS
163332011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
16334
16335 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
16336 done with a dedicated section.
16337
16338 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
16339 Ensure the correct position of boot_path.
16340 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
16341 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
16342 other fields.
16343 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
16344 * include/grub/boot.h: Removed. All references removed.
16345 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
16346 Removed.
16347 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
16348
e55599dc
VS
163492011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
16350
16351 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
16352 name.
16353
36dd20ad
VS
163542011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
16355
16356 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
16357
f8f72eb8
VS
163582011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
16359
16360 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
16361 Don't add the bogus brackets.
16362
a374751b
VS
163632011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
16364
16365 ExFAT support.
16366
16367 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
16368 * grub-core/Makefile.core.def (exfat): New module.
16369 * grub-core/fs/exfat.c: New file.
16370 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
16371 (GRUB_FAT_ATTR_*): Make into an enum.
16372 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
16373 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
16374 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
16375 (GRUB_FAT_MAXFILE): Removed.
16376 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
16377 (grub_current_fat_bpb_t): New type.
16378 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
16379 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
16380 (grub_fat_dir_node_t): New type.
16381 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
16382 (fat_log2) [MODE_EXFAT]: Removed.
16383 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
16384 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
16385 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
16386 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
16387 (grub_fat_label) [MODE_EXFAT]: New function.
16388 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
16389 reserved_first_sector to 0.
16390
544c2487
VS
163912011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
16392
16393 Move grub_reboot out of the kernel.
16394
16395 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
16396 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
16397 * grub-core/lib/efi/reboot.c: ... here.
16398 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
16399 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
16400 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
16401 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
16402 * grub-core/lib/i386/reboot_trampoline.S: ... here.
16403 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
16404 * grub-core/lib/ieee1275/reboot.c: ... here.
16405 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
16406 * grub-core/lib/mips/arc/reboot.c: ... here.
16407 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
16408 * grub-core/lib/mips/loongson/reboot.c: ...here.
16409 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
16410 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
16411 * include/grub/emu/misc.h (grub_reboot): New function declaration.
16412 * include/grub/i386/reboot.h: New file.
16413 * include/grub/mips/loongson/ec.h: Fix includes.
16414 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
16415 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
16416 * grub-core/lib/i386/reboot.c: New file.
16417
a97501d2
VS
164182011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
16419
16420 Make grub_prefix into module to fix the arbitrary limit and save
16421 some space.
16422
16423 * grub-core/kern/emu/main.c (grub_prefix): Removed.
16424 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
16425 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
16426 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
16427 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
16428 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
16429 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
16430 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
16431 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
16432 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
16433 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
16434 * include/grub/ia64/efi/kernel.h: Removed.
16435 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
16436 (grub_prefix): Removed.
16437 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
16438 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
16439 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
16440 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
16441 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
16442 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
16443 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
16444 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
16445 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
16446 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
16447 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
16448 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
16449 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
16450 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
16451 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
16452 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
16453 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
16454 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
16455 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
16456 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
16457 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
16458 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
16459 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
16460 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
16461 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
16462 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
16463 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
16464 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
16465 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
16466 from module.
16467 * util/grub-mkimage.c (image_target_desc): Removed prefix and
16468 prefix_end.
16469 (image_targets): Likewise.
16470 (generate_image): Put prefix as a module.
16471
39705fad
VS
164722011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16473
16474 Replace grub_module_iterate with FOR_MODULES.
16475
16476 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
16477 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
16478 (grub_efi_modules_addr): ...this.
16479 * grub-core/kern/efi/init.c (grub_modbase): New variable.
16480 (grub_efi_init): Set grub_modbase.
16481 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
16482 (grub_modbase): New variable.
16483 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
16484 (grub_modbase): New variable.
16485 (grub_machine_init): Set grub_modbase.
16486 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
16487 (grub_modbase): New variable.
16488 (grub_machine_init): Set grub_modbase.
16489 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
16490 (grub_modbase): New variable.
16491 (grub_machine_init): Set grub_modbase.
16492 * grub-core/kern/main.c (grub_module_iterate): Remove.
16493 (grub_modules_get_end): Use grub_modbase.
16494 (grub_load_modules): Use FOR_MODULES.
16495 (grub_load_config): Likewise.
16496 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
16497 (grub_modbase): New variable.
16498 (grub_machine_init): Set grub_modbase.
16499 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
16500 (grub_modbase): New variable.
16501 (grub_machine_init): Set grub_modbase.
16502 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
16503 Removed.
16504 (grub_modbase): New variable.
16505 (grub_machine_init): Set grub_modbase.
16506 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
16507 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
16508 (grub_module_iterate): Likewise.
16509 (grub_modbase): New variable declaration.
16510 (FOR_MODULES): New macro.
16511
2afb7f6c
VS
165122011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16513
16514 * configure.ac: Check for __ctzdi2 and __ctzsi2.
16515 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
16516
366e34fa
VS
165172011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16518
16519 Fix few obvious type discrepancies.
16520
16521 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
16522 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
16523 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
16524 variable.
16525 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
16526 and connected types.
16527 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
16528 offset.
16529 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
16530 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
16531 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
16532 and connected types.
16533
177b960e
VS
165342011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16535
16536 Fix python 3.x incompatibilities.
16537
16538 * gentpl.py: Put brackets around print strings.
16539 * util/import_gcry.py: Open explicitly as utf-8.
16540 Use in instead of has_key.
16541
3b619ae1
VS
165422011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16543
16544 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
16545 (GRUB_XFS_INO_AGBITS): Make into inline function.
16546 (GRUB_XFS_INO_INOINAG): Likewise.
16547 (GRUB_XFS_INO_AG): Likewise.
16548 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
16549 (GRUB_XFS_EXTENT_OFFSET): Likewise.
16550 (GRUB_XFS_EXTENT_BLOCK): Likewise.
16551 (GRUB_XFS_EXTENT_SIZE): Likewise.
16552 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
16553 (GRUB_XFS_NEXT_DIRENT): Likewise.
16554 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
16555 (grub_xfs_read_file): Fix offset type.
16556
8bcebcb8
RM
165572011-10-15 Robert Millan <rmh@gnu.org>
16558
16559 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
16560
0017e5ef
RM
165612011-10-15 Robert Millan <rmh@gnu.org>
16562
16563 Fix build problem on FreeBSD and GNU/kFreeBSD.
16564
16565 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
16566
d8919552
VS
165672011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
16568
16569 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
16570
16571 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
16572 types.
16573 (grub_hfsplus_btree_recoffset): Likewise.
16574 (grub_hfsplus_btree_recptr): Likewise.
16575 (grub_hfsplus_find_block): Likewise.
16576 (grub_hfsplus_btree_search): Likewise.
16577 (grub_hfsplus_read_block): Likewise.
16578 (grub_hfsplus_read_file): Likewise.
16579 (grub_hfsplus_mount): Likewise.
16580 (grub_hfsplus_btree_iterate_node): Likewise.
16581 (grub_hfsplus_btree_search): Likewise.
16582 (grub_hfsplus_iterate_dir): Likewise.
16583 (grub_hfsplus_read): A small code simplification.
16584
c81296b6
VS
165852011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
16586
16587 * grub-core/kern/emu/hostdisk.c
16588 (convert_system_partition_to_system_disk): Don't assume that children
16589 of mapper nodes are mapper nodes.
16590
0eb8ffb1
VS
165912011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
16592
16593 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
16594 * include/grub/misc.h (grub_isxdigit): New function.
16595 * grub-core/video/colors.c (my_isxdigit): Removed. All users
16596 switched to grub_isxdigit.
16597 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
16598 number starting with a letter.
16599
a98f4a08
RM
166002011-10-09 Robert Millan <rmh@gnu.org>
16601
16602 LVM support for FreeBSD and GNU/kFreeBSD.
16603
16604 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
16605 GNU/kFreeBSD.
16606 (LVM_DEV_MAPPER_STRING): Move from here ...
16607 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
16608 * util/getroot.c: Include `<grub/util/lvm.h>'.
16609 (grub_util_get_dev_abstraction): Enable
16610 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
16611 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
16612 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
16613 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
16614 support it.
16615 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
16616 GNU/kFreeBSD.
16617 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
16618 when LVM abstraction is required for ${GRUB_DEVICE}.
16619
050e8e90
SJ
166202011-10-06 Szymon Janc <szymon@janc.net.pl>
16621
16622 Add support for LZO compression in GRUB:
16623 - import of minilzo library,
16624 - LZO decompression for btrfs,
16625 - lzop files decompression.
16626
16627 * grub-core/io/lzopio.c: New file.
16628 * grub-core/lib/adler32.c: Likewise.
16629 * grub-core/lib/minilzo/lzoconf.h: Likewise.
16630 * grub-core/lib/minilzo/lzodefs.h: Likewise.
16631 * grub-core/lib/minilzo/minilzo.c: Likewise.
16632 * grub-core/lib/minilzo/minilzo.h: Likewise.
16633 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
16634 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
16635 grub-core/lib/minilzo/minilzo.c to common.
16636 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
16637 cflags in cppflags.
16638 * grub-core/Makefile.core.def (btrfs): Likewise.
16639 * grub-core/Makefile.core.def (lzopio): New module.
16640 (adler32): Likewise.
16641 * grub-core/fs/btrfs.c: Include minilzo.h.
16642 (GRUB_BTRFS_COMPRESSION_LZO): New define.
16643 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
16644 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
16645 (grub_btrfs_lzo_decompress): New function.
16646 (grub_btrfs_extent_read): Add support for LZO compression type.
16647 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
16648 (GRUB_USHRT_MAX): Likewise.
16649 (GRUB_UINT_MAX): Likewise.
16650 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
16651 (UINT_MAX): Likewise.
16652 (CHAR_BIT): Likewise.
16653 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
16654 grub-core/lib/posix_wrap/limits.h
16655 (UCHAR_MAX): Likewise.
16656 * include/grub/file.h (grub_file_filter_id): New compression filter
16657 GRUB_FILE_FILTER_LZOPIO.
16658 * include/grub/file.h (grub_file_filter_id): Set
16659 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
16660 * include/grub/types.h (grub_get_unaligned16): New function.
16661 (grub_get_unaligned32): Likewise.
16662 (grub_get_unaligned64): Likewise.
16663 * util/import_gcry.py (cryptolist): Add adler32.
16664
0eb8ffb1
VS
166652011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
16666
16667 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
16668 in perspective decreases the complexity of build system and fixes
16669 compilation right now.
16670
ce79cc99 166712011-10-01 Ales Nesrsta <starous@volny.cz>
16672
16673 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
16674 (fixed problem related to using UHCI with coreboot).
16675
8667a314
BC
166762011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
16677
16678 * gentpl.py: Use Autogen macros so that the output template file
16679 (Makefile.tpl) size is reduced.
16680
fc5efcc0
MK
166812011-09-29 Mads Kiilerich <mads@kiilerich.com>
16682
16683 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
16684 extra_dist.
16685
d1ab689d
ML
166862011-09-29 Mario Limonciello <mario_limonciello@dell.com>
16687
16688 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
16689 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
16690
c05de032
ML
166912011-09-29 Mario Limonciello <mario_limonciello@dell.com>
16692
16693 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
16694 _fullpath.
16695
cca7ccd8
ML
166962011-09-29 Mario Limonciello <mario_limonciello@dell.com>
16697
16698 Remove extra declaration of sleep for mingw32.
16699
16700 * util/misc.c (sleep) [__MINGW32__]: Removed.
16701 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
16702
e0b0dc83
GS
167032011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
16704
16705 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
16706 type and packname.
16707 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
16708 Resurrected.
16709 (NETBSD_BTINFO_BOOTWEDGE): New definition.
16710 (grub_netbsd_btinfo_bootwedge): New struct.
16711 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
16712 New function.
16713 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
16714
91a1a164
TH
167152011-09-28 Thomas Haller <thomas.haller@fen-net.de>
16716
16717 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
16718 loader.
16719
2ded951e
AB
167202011-09-28 Andreas Born <futur.andy@googlemail.com>
16721
16722 Fix incorrect identifiers in bash-completion.
16723
16724 * util/bash-completion.d/grub-completion.bash.in
16725 (_grub_mkpasswd-pbkdf2): Rename to ...
16726 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
16727 (_grub_script-check): Rename to ...
16728 (_grub_script_check): ... this. All users updated.
16729
69915030
VS
167302011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
16731
16732 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
16733 Return 0 if disk isn't biosdisk.
16734
20fd15f9
GS
167352011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
16736
16737 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
16738 on NetBSD.
16739 * Makefile.util.def (grub-fstest): Likewise.
16740
1a7d7db9
GS
167412011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
16742
16743 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
16744 Get sector size from disk label.
16745
2221ab6c
CW
167462011-09-05 Colin Watson <cjwatson@ubuntu.com>
16747
16748 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
16749 */README* as well as README*.
16750 Reported by: Axel Beckert.
16751
ca51c4a0
VS
167522011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
16753
16754 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
16755 case of less than 256 MiB of RAM.
16756
ab80f326
VS
167572011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
16758
16759 * grub-core/commands/wildcard.c (make_regex): Handle @.
16760
4155e697
VS
167612011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
16762
16763 * util/grub-install.in: Move cryptodisk logic to appropriate place.
16764
ab178c08
SJ
167652011-08-21 Szymon Janc <szymon@janc.net.pl>
16766
16767 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
16768 AC_LANG_CONFTEST macros.
16769
7dc3c686
SJ
167702011-08-20 Szymon Janc <szymon@janc.net.pl>
16771
16772 Add grub-fstest option to uncompress data for commands.
16773
16774 * util/grub-fstest.c (uncompress): New var.
16775 (options): New option -u.
16776
fe8d4a7b
SJ
167772011-08-20 Szymon Janc <szymon@janc.net.pl>
16778
16779 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
16780 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
16781
a5219af1
SJ
167822011-08-20 Szymon Janc <szymon@janc.net.pl>
16783
16784 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
16785 file type was not recognized correctly (not gzip or corrupted).
16786
f87abff5
VS
167872011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
16788
16789 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
16790 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
16791
d94497ea
VS
167922011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
16793
16794 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
16795 loongson.
16796 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
16797 video_radeon_fuloong2e.
16798 * grub-core/video/radeon_fuloong2e.c: New file.
16799 * include/grub/video.h (grub_video_id_t): Add new ID
16800 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
16801
0d1fd011
VS
168022011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
16803
16804 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
16805 define.
16806 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
16807 that PRID matches the detected subplatform and reset the subplatform
16808 if it doesn't.
16809
84beb0ee
VS
168102011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
16811
16812 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
16813
1227c133
VS
168142011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
16815
16816 Fix PCI iterating on functions >= 4.
16817
16818 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
16819 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
16820 Removed.
16821 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
16822 (grub_pci_read): Fix bitmask.
16823 (grub_pci_read_word): Likewise.
16824 (grub_pci_read_byte): Likewise.
16825 (grub_pci_write): Likewise.
16826 (grub_pci_write_word): Likewise.
16827 (grub_pci_write_byte): Likewise.
16828
9594c689
VS
168292011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
16830
16831 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
16832 can still be specified in TARGET_CFLAGS)
16833
14a2562c
VS
168342011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
16835
16836 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
16837
16838 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
16839 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
16840 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
16841 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
16842 (FULOONG): Rename to ...
16843 (FULOONG2F): ... this. All users updated.
16844 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
16845 (machtype_fuloong2f_str): ... this.
16846 (machtype_fuloong2e_str): New string.
16847 Check for machtype_fuloong2e_str.
16848 * grub-core/loader/mips/linux.c (loongson_machtypes)
16849 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
16850 * grub-core/term/serial.c (loongson_defserial)
16851 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
16852 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
16853 loongson_defserial.
16854 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
16855 Rename to ...
16856 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
16857 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
16858 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
16859 to IMAGE_FULOONG2F_FLASH. All users updated.
16860 (image_targets): Rename images.
16861 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
16862
b526cbb6
SJ
168632011-08-19 Szymon Janc <szymon@janc.net.pl>
16864
16865 Make enable of disk cache statistics code configurable.
16866
16867 * configure.ac: --enable-cache-stats added.
16868 * config.h.in (DISK_CACHE_STATS): New define.
16869 * grub-core/Makefile.core.def (cacheinfo): New command.
16870 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
16871 * grub-core/commands/cacheinfo.c: New file.
16872 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
16873 moved to cacheinfo.c.
16874 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
16875 debug code.
16876 * include/grub/disk.h: Likewise.
16877
fb739ccd
SJ
168782011-08-19 Szymon Janc <szymon@janc.net.pl>
16879
16880 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
16881 * grub-core/Makefile.am: Likewise.
16882
2bba8cfd
VS
168832011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
16884
16885 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
16886 non-zero pull.
16887
43526629
VS
168882011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
16889
16890 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
16891 All users updated.
16892 (grub_jfs_lookup_symlink): Use correct starting inode.
16893
5c144cc8
VS
168942011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
16895
16896 * util/grub-setup.c (main): Add missing gcry initialisation.
16897
b1257f65
VS
168982011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
16899
16900 Don't accept text modes on EFI when booting Linux.
16901
16902 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
16903 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
16904
828bc390
ML
169052011-08-15 Mario Limonciello <mario_limonciello@dell.com>
169062011-08-15 Colin Watson <cjwatson@ubuntu.com>
16907
16908 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
16909 use of "/path/.." as in grub-install for EFI as well as handling
16910 symlinks correctly.
16911 Fixes Debian bug #637768.
16912
5f60ccac
CW
169132011-08-15 Colin Watson <cjwatson@ubuntu.com>
16914
16915 * util/grub-probe.c: Remove duplicate #include.
16916
6dc212f9
RM
169172011-08-10 Robert Millan <rmh@gnu.org>
16918
16919 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
16920
16921 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
16922 function.
16923 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
16924 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
16925
66816d85
RM
169262011-08-03 Robert Millan <rmh@gnu.org>
16927
16928 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
16929 la_array as packed.
16930 Reported by: Zachary Bedell
16931
20168fca
CW
169322011-07-26 Colin Watson <cjwatson@ubuntu.com>
16933
16934 * configure.ac: The Loongson port requires grub-mkfont due to its
16935 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
16936 be built.
16937
303b6246
CW
169382011-07-26 Colin Watson <cjwatson@ubuntu.com>
16939
16940 * util/grub-install.in: Don't source grub-mkconfig_lib until after
16941 processing arguments (otherwise help2man fails when GRUB has not yet
16942 been installed).
16943
6795300e
VS
169442011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
16945
41aa28ea
VS
16946 New script grub-mkstandalone.
16947
16948 * Makefile.util.def (grub-mkstandalone): New script.
16949 * docs/man/grub-mkstandalone.h2m: New file.
16950 * util/grub-mkstandalone.in: Likewise.
16951
169522011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
16953
16954 Support ATA disks with 4K sectors.
6795300e
VS
16955
16956 * include/grub/ata.h (grub_ata): New member log_sector_size.
16957 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
16958 (grub_ata_identify): Read sector size.
16959 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
16960
92227597
VS
169612011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
16962
16963 * util/grub-install.in: Don't use uhci outside of x86.
16964
c77069f5
VS
169652011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
16966
16967 * util/grub-mkrescue.in: Add missing quotes.
16968
169692011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
b70e4cb0
VS
16970
16971 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
16972 dereference.
16973
583168a2
VS
169742011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
16975
16976 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
16977
6be1c01f
VS
169782011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
16979
16980 * include/grub/video.h: add missing EXPORT_FUND on
16981 grub_video_edid_checksum and grub_video_edid_preferred_mode.
16982
a1167439
VS
169832011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
16984
16985 * include/grub/mips/kernel.h: Fix define conflict.
16986
bf66054f
VS
169872011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
16988
16989 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
16990 all four ways.
16991
8fc4fa45
CW
169922011-07-21 Colin Watson <cjwatson@ubuntu.com>
16993
16994 Preferred resolution detection for VBE.
16995
16996 * grub-core/video/video.c (grub_video_edid_checksum): New function.
16997 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
16998 the Flat Panel extension, in line with the X.org VESA driver.
16999 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
17000 New function.
17001 (grub_vbe_bios_get_ddc_capabilities): Likewise.
17002 (grub_vbe_bios_read_edid): Likewise.
17003 (grub_vbe_get_preferred_mode): Likewise.
17004 (grub_video_vbe_setup): When the mode is "auto", try to get the
17005 preferred mode from VBE, and use the largest mode that is no larger
17006 than the preferred mode (some BIOSes expose a preferred mode that is
17007 not in their mode list!). If this fails, fall back to 640x480 as a
17008 safe conservative choice.
17009 (grub_video_vbe_get_edid): New function.
17010 (grub_video_vbe_adapter): Add get_edid.
17011 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
17012 (struct grub_video_adapter): Add get_edid.
17013 (grub_video_edid_checksum): Add prototype.
17014 (grub_video_edid_preferred_mode): Likewise.
17015 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
17016 structure.
17017
17018 * grub-core/commands/videoinfo.c (print_edid): New function.
17019 (grub_cmd_videoinfo): Print EDID if available.
17020
17021 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
17022 is more appropriate on a wider range of platforms than 640x480.
17023 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
17024 documentation.
17025
ca5572a9
VS
170262011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
17027
17028 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
17029
e4bcf625
VS
170302011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
17031
17032 * po/POTFILES.in: Regenerate.
17033
c4edd548
VS
170342011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
17035
17036 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
17037 incorrect memory usage.
17038
16a2bab0
VS
170392011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
17040
17041 * util/grub-install.in: Source grub-mkconfig_lib.
17042
2e418de6
VS
170432011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
17044
17045 Remove getroot.c from core on emu platform.
17046
17047 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
17048 kern/emu/raid.c.
17049 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
17050 useless.
17051 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
17052 * util/getroot.c (get_win32_path): ... here.
17053 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
17054 * util/getroot.c (fini_libzfs): ... here.
17055 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
17056 * util/getroot.c (grub_get_libzfs_handle): ... here.
17057 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
17058 Moved from here...
17059 * util/getroot.c (grub_find_zpool_from_dir): ... here.
17060 * grub-core/kern/emu/misc.c
17061 (grub_make_system_path_relative_to_its_root): Moved from here...
17062 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
17063 * grub-core/kern/emu/getroot.c: Moved from here ...
17064 * util/getroot.c: ... here. All users updated.
17065 * grub-core/kern/emu/raid.c: Moved from here ...
17066 * util/raid.c: ... here. All users updated.
17067
def9832a
VS
170682011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
17069
17070 * po/POTFILES.in: Regenerate.
17071
cd8fe79a
VS
170722011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
17073
17074 Fix compilation on GNU/Linux.
17075
17076 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
17077 Disable geli.
17078 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
17079 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
17080 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
17081
a251b719
VS
170822011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
170832011-07-07 Michael Gorven <michael@gorven.za.net>
170842011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
17085
17086 LUKS and GELI support.
17087
17088 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
17089 grub-core/disk/luks.c, grub-core/disk/geli.c,
17090 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
17091 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
17092 grub-core/lib/arg.c.
17093 (libgrubmods.a): Remove gcrypts cflags and cppflags.
17094 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
17095 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
17096 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
17097 (grub-bin2h): Add libgcry.a.
17098 (grub-mkimage): Likewise.
17099 (grub-mkrelpath): Likewise.
17100 (grub-script-check): Likewise.
17101 (grub-editenv): Likewise.
17102 (grub-mkpasswd-pbkdf2): Likewise.
17103 (grub-pe2elf): Likewise.
17104 (grub-fstest): Likewise.
17105 (grub-mkfont): Likewise.
17106 (grub-mkdevicemap): Likewise.
17107 (grub-probe): Likewise.
17108 (grub-ofpath): Likewise.
17109 (grub-mklayout): Likewise.
17110 (example_unit_test): Likewise.
17111 (grub-menulst2cfg): Likewise.
17112 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
17113 * grub-core/Makefile.core.def (cryptodisk): New module.
17114 (luks): Likewise.
17115 (geli): Likewise.
17116 * grub-core/disk/AFSplitter.c: New file.
17117 * grub-core/disk/cryptodisk.c: Likewise.
17118 * grub-core/disk/geli.c: Likewise.
17119 * grub-core/disk/luks.c: Likewise.
17120 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
17121 grub_util_is_lvm.
17122 (grub_util_get_dm_abstraction): New function.
17123 (grub_util_follow_gpart_up): Likewise.
17124 (grub_util_get_geom_abstraction): Likewise.
17125 (grub_util_get_dev_abstraction): Use new functions.
17126 (grub_util_pull_device): Pull GELI and LUKS.
17127 (grub_util_get_grub_dev): Handle LUKS and GELI.
17128 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
17129 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
17130 (follow_geom_up): Removed.
17131 (grub_util_fd_seek): New function.
17132 (open_device): Use grub_util_fd_seek.
17133 (nread): Rename to ..
17134 (grub_util_fd_read): ... this. All users updated.
17135 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
17136 (grub_crypto_cbc_decrypt): Likewise.
17137 (grub_crypto_hmac_write): Likewise.
17138 (grub_crypto_hmac_buffer): Likewise.
17139 (grub_password_get): Extend to util.
17140 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
17141 New member modname.
17142 (gcry_md_spec) [GRUB_UTIL]: Likewise.
17143 * include/grub/cryptodisk.h: New file.
17144 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
17145 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
17146 LUKS and GELI.
17147 (grub_util_follow_gpart_up): New proto.
17148 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
17149 (grub_util_fd_read): Likewise.
17150 (grub_cryptodisk_cheat_mount): Likewise.
17151 (grub_util_cryptodisk_print_uuid): Likewise.
17152 (grub_util_get_fd_sectors): Likewise.
17153 * util/grub-fstest.c (mount_crypt): New var.
17154 (fstest): Mount crypto if requested.
17155 (options): New option -C.
17156 (argp_parser): Parse -C.
17157 (main): Init and fini gcry.
17158 * util/grub-install.in: Support cryptodisk install.
17159 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
17160 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
17161 cryptodisk.
17162 (prepare_grub_to_access_device): Likewise.
17163 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
17164 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
17165 (probe_cryptodisk_uuid): New function.
17166 (probe_abstraction): Likewise.
17167 (probe): Use new functions.
17168 * util/import_gcry.py: Create Makefile.utilgcry.def.
17169 Add modname member.
17170
9bfdcbbc
VS
171712011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
17172
17173 Lazy device scanning.
17174
17175 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
17176 (grub-setup): Remove util/raid.c.
17177 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
17178 * grub-core/disk/lvm.c (scan_depth): New variable.
17179 (grub_lvm_iterate): Rescan if necessary.
17180 (find_lv): New function based on grub_lvm_open.
17181 (grub_lvm_open): Use find_lv. Rescan on error.
17182 (is_node_readable): New function.
17183 (is_lv_readable): Likewise.
17184 (grub_lvm_scan_device): Skip already found disks.
17185 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
17186 Stop if searched device is found and readable.
17187 * grub-core/disk/raid.c (inscnt): New variable.
17188 (scan_depth): Likewise.
17189 (scan_devices): New function based on grub_raid_register. Abort if
17190 looked for device is found.
17191 (grub_raid_iterate): Rescan if needed.
17192 (find_array): NEw function based on -grub_raid_open.
17193 (grub_raid_open): Use find_array and rescan.
17194 (insert_array): Set became_readable_at.
17195 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
17196 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
17197 New function.
17198 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
17199 (grub_util_pull_device): New function.
17200 (grub_util_get_grub_dev): Call grub_util_pull_device.
17201 * util/raid.c: Moved to ..
17202 * grub-core/kern/emu/raid.c: ... here.
17203 (grub_util_raid_getmembers): New parameter "bootable".
17204 All users updated. Support 1.x.
17205 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
17206 All users updated.
17207 * include/grub/disk.h (grub_disk_pull_t): New enum.
17208 (grub_disk_dev): Change iterate prototype.
17209 All users updated.
17210 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
17211 New proto.
17212 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
17213 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
17214 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
17215 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
17216 All users updated.
17217 * include/grub/util/raid.h: Removed.
17218
1c358e59
VS
172192011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
17220
17221 * po/POTFILES.in: Regenerate.
17222
abee94ed
VS
172232011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
17224
17225 Unify sparc init with other ieee1275.
17226
17227 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
17228 instead of kern/sparc64/ieee1275/init.c.
17229 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
17230 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
17231 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
17232 grub/machine/kernel.h.
17233 (grub_ieee1275_original_stack) [__sparc__]: New variable.
17234 (grub_claim_heap) [__sparc__]: Use sparc version.
17235 (grub_machine_init): Moved args parsing to
17236 (grub_parse_cmdline): ...this.
17237 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
17238 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
17239 New definition.
17240 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
17241
17242 Move BOOTP to separate file.
17243
17244 * grub-core/Makefile.core.def (net): Add net/bootp.c.
17245 * grub-core/net/net.c: Move all BOOTP functions to
17246 * grub-core/net/bootp.c: ... here.
17247
17248 Use frame interface on PXE.
17249
17250 * grub-core/Makefile.core.def (pxecmd): Removed.
17251 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
17252 * grub-core/commands/i386/pc/pxecmd.c: Removed.
17253 * grub-core/i386/pc/pxe.c: Moved from here ...
17254 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
17255 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
17256 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
17257
17258 EFI network support.
17259
17260 * grub-core/Makefile.core.def (efinet): New module.
17261 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
17262 here...
17263 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
17264 All users updated.
17265 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
17266 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
17267 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
17268 * grub-core/net/drivers/efi/efinet.c: New file.
17269 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
17270 (grub_efi_net_config): New extern var.
17271
17272 Various cleanups and bugfixes.
17273
17274 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
17275 error.
17276 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
17277 disk declared as partition.
17278 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
17279 leak on failure.
17280 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
17281 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
17282 (grub_debug_zalloc): Likewise.
17283 (grub_debug_realloc): Likewise.
17284 (grub_debug_memalign): Likewise.
17285 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
17286 Check that target is IPv4.
17287 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
17288 local-mac-address as fallback.
17289 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
17290 memory leak.
17291 * grub-core/net/ip.c (ipchksum): Rename to ...
17292 (grub_net_ip_chksum): ... this. All users updated.
17293 (grub_net_recv_ip_packets): Special handling for DHCP.
17294 * util/grub-mkimage.c (generate_image): Zero-out aout header.
17295
17296 Unify prefix handling
17297
17298 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
17299 (grub_machine_get_bootlocation): ... this.
17300 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
17301 (grub_machine_get_bootlocation): ... this.
17302 (grub_prefix): New variable.
17303 (prefix): Removed.
17304 (root_dev): New variable.
17305 (dir): Likewise.
17306 (main): Use new variables.
17307 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
17308 Revamped into ...
17309 (grub_machine_get_bootlocation): ... this.
17310 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
17311 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
17312 (grub_machine_get_bootlocation): ... this.
17313 (grub_machine_set_prefix): Removed.
17314 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
17315 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
17316 Revamped into ...
17317 (grub_machine_get_bootlocation): ... this.
17318 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
17319 (grub_set_prefix_and_root): ... this. All users updated.
17320 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
17321 Revamped into ...
17322 (grub_machine_get_bootlocation): ... this.
17323 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
17324 (grub_machine_get_bootlocation): New proto.
17325 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
17326
17327 Less intrusive and more reliable seek on network implementation.
17328
17329 * grub-core/kern/file.c (grub_file_net_seek): Removed.
17330 (grub_file_seek): Don't call grub_file_net_seek.
17331 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
17332 (grub_net_fs_read_real): .. this.
17333 (grub_net_seek_real): Use net->offset.
17334 (grub_net_fs_read): Seek if necessary.
17335
17336 Unify IEEE1275 netwotk config with the other platforms.
17337
17338 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
17339 New variable.
17340 (grub_machine_get_bootlocation): Support network.
17341 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
17342 Support type and device parsing.
17343 (grub_ieee1275_get_device_type): New function.
17344 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
17345 into ...
17346 (grub_ieee1275_net_config_real): ... this.
17347 (grub_ofnet_probecards): Removed.
17348 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
17349 * include/grub/ieee1275/ofnet.h: Removed.
17350 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
17351 extern var.
17352 (grub_ieee1275_get_device_type): New function.
17353
17354 Unify network device closing across platforms and make more robust.
17355
17356 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
17357 grub_grubnet_fini.
17358 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
17359 already.
17360 * grub-core/net/net.c (grub_net_network_level_interface_register):
17361 Update num_ifaces.
17362 (grub_net_card_unregister): Close all interfaces.
17363 (receive_packets): Don't poll if no iterfaces are registered.
17364 Open if necessary.
17365 (grub_net_fini_hw): New function.
17366 (grub_net_restore_hw): Likewise.
17367 (fini_hnd): New variable.
17368 (GRUB_MOD_INIT): Register preboot hook.
17369 (GRUB_MOD_FINI): Run and unregister preboot hook.
17370
17371 Poll network cards when idle.
17372
17373 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
17374 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
17375 * grub-core/net/net.c (receive_packets): Save last poll time.
17376 (grub_net_poll_cards_idle_real): New function.
17377 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
17378 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
17379 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
17380
17381 Rename ofnet interfaces.
17382
17383 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
17384 (grub_ofnet_findcards): Use ofnet_%s names.
17385
17386 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
17387
17388 Cleanup socket opening.
17389
17390 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
17391 (grub_net_fs_close): Likewise.
17392 (grub_net_fs_read_real): Use eof member.
17393 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
17394 (+grub_net_udp_close): New inline function.
17395
17396 * include/grub/net/tftp.h: Moved to the top of ...
17397 * grub-core/net/tftp.c: ... here.
17398 * include/grub/net/ip.h: Moved mostly to the top of ...
17399 * grub-core/net/ip.c: ... here.
17400 * include/grub/net/ethernet.h: Moved mostly to the top of ...
17401 * grub-core/net/ethernet.c: ... here.
17402
17403 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
17404
17405 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
17406 FS name.
17407
17408 * include/grub/net/ip.h (ipv4_ini): Removed.
17409 (ipv4_fini): Likewise.
17410
17411 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
17412 (grub_net_send_ip_packets): Likewise.
17413
cf1337aa
VS
174142011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
17415
17416 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
17417 grub_read_cmos prototype.
17418
93c06ff9
VS
174192011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
17420
17421 VGA text support in qemu-mips
17422
17423 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
17424 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
17425 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
17426 text.
17427 * grub-core/kern/i386/qemu/init.c: Renamed to ...
17428 * grub-core/kern/vga_init.c: ... this.
17429 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
17430 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
17431 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
17432 Adjust.
17433 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
17434 GRUB_MACHINE_PCI_IO_BASE.
17435
748ccabe
VS
174362011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
17437
17438 MIPS qemu flash support.
17439
17440 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
17441 magic.
17442 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
17443 (grub_machine_init): Probe memory if its size isn't known.
17444 * util/grub-mkimage.c (image_targets): Add flash targets.
17445 (generate_image): Handle flash targets.
17446
d7345994
VS
174472011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
17448
17449 MIPS qemu at_keyboard support.
17450
17451 * gentpl.py (videoinkernel): Add qemu-mips.
17452 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
17453 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
17454 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
17455 modules.
17456 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
17457 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
17458 * grub-core/term/serial.c (grub_serial_register)
17459 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
17460
a07a81b3
VS
174612011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
17462
17463 CMOS support on sparc.
17464
17465 * gentpl.py (cmos): Add powerpc and sparc.
17466 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
17467 powerpc and sparc.
17468 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
17469 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
17470 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
17471 grub_set_datetime_cmos.
17472 * grub-core/lib/ieee1275/cmos.c: New file.
17473 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
17474 (find_rtc): Set no_ieee1275_rtc on error.
17475 (grub_get_datetime): Call grub_get_datetime_cmos on error.
17476 (grub_set_datetime): Call grub_set_datetime_cmos on error.
17477 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
17478 fail. Move value to argument. All users updated
17479 (grub_cmos_write): Likewise.
17480 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
17481 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
17482 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
17483 grub_get_datetime_cmos and grub_set_datetime_cmos.
17484
77546584
GS
174852011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
17486
17487 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
17488 sourcing grub-mkconfig_lib.
17489 * util/update-grub_lib.in: Likewise.
17490 * util/grub.d/00_header.in: Likewise.
17491 * util/grub.d/10_hurd.in: Likewise.
17492 * util/grub.d/10_kfreebsd.in: Likewise.
17493 * util/grub.d/10_linux.in: Likewise.
17494 * util/grub.d/10_netbsd.in: Likewise.
17495 * util/grub.d/10_windows.in: Likewise.
17496 * util/grub.d/20_linux_xen.in: Likewise.
17497 * util/grub.d/30_os-prober.in: Likewise.
17498
54894791
CW
174992011-06-28 Colin Watson <cjwatson@ubuntu.com>
17500
17501 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
17502 default_bg_color rather than black.
17503 (grub_gfxterm_fullscreen): Likewise.
17504 (grub_gfxterm_background_color_cmd): Save new background color in
17505 default_bg_color.
17506
8d5d8444
VS
175072011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17508
17509 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
17510
5afeb5bd
VS
175112011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17512
17513 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
17514 mismerge.
17515
ba7df45e
VS
175162011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17517
17518 Chainloading on coreboot support.
17519
17520 * grub-core/Makefile.core.def (chain): Add coreboot.
17521 * grub-core/loader/i386/coreboot/chainloader.c: New file.
17522
d0b526b2
VS
175232011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17524
17525 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
17526 if it happens.
17527
5ff1d945
VS
175282011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17529
17530 Implement time command.
17531
17532 * grub-core/Makefile.core.def (time): New module.
17533 * grub-core/commands/time.c: New file.
17534 * grub-core/script/parser.y: Remove "time" keyword.
17535 * grub-core/script/yylex.l: Likewise.
17536
5ebaad7e
VS
175372011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17538
17539 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
17540
bdea3798
VS
175412011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17542
17543 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
17544 when handling leftovers.
17545
b28c5655
VS
175462011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17547
17548 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
17549 so that help2man doesn't fail.
17550
b6f945dc
VS
175512011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17552
17553 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
17554 type in pointers on sparc64.
17555 (get_card_packet): Likewise.
17556
f9b75e8a
CW
175572011-06-27 Colin Watson <cjwatson@ubuntu.com>
17558
17559 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
17560 with `*'.
17561 (grub_cmd_videoinfo): Fetch current video mode.
17562
1e3d9b86
VS
175632011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17564
17565 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
17566 because of underlying system restrictions.
17567
efff4b1c
VS
175682011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17569
17570 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
17571 necessary.
17572
9fc9ce37
VS
175732011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17574
17575 Coreboot video support.
17576
17577 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
17578 (vbe): Likewise.
17579 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
17580 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
17581 here ...
17582 * grub-core/kern/i386/int.S: ... here.
17583 * grub-core/video/i386/pc/vbe.c: Updated includes.
17584 * grub-core/video/i386/pc/vga.c: Likewise.
17585 * include/grub/i386/coreboot/memory.h
17586 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
17587 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
17588 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
17589 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
17590 Disable interrupts.
17591 * include/grub/i386/pc/vga.h: Removed. All users updated.
17592
41bec7fe
VS
175932011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17594
17595 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
17596 definitions for dprintf.
17597 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
17598
ca80309d
VS
175992011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17600
17601 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
17602 prototype.
17603 (get_card_packet): Likewise.
17604
9e322ce8
YB
176052011-06-26 Yves Blusseau <blusseau@zetam.org>
17606
17607 Display the path of the file when file is not found
17608
17609 * grub-core/fs/fat.c: Display the filename when file is not found.
17610 * grub-core/fs/fshelp.c: Likewise.
17611 * grub-core/fs/hfs.c: Likewise.
17612 * grub-core/fs/jfs.c: Likewise.
17613 * grub-core/fs/minix.c: Likewise.
17614 * grub-core/fs/ufs.c: Likewise.
17615 * grub-core/fs/btrfs.c: Likewise.
17616 * grub-core/commands/i386/pc/play.c: Likewise.
17617
cbf597af
SJ
176182011-06-26 Szymon Janc <szymon@janc.net.pl>
17619
17620 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
17621 pointer checks before calling grub_free().
17622 * grub-core/commands/wildcard.c (match_devices): Likewise.
17623 * grub-core/commands/wildcard.c (match_files): Likewise.
17624 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
17625 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
17626 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
17627 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
17628 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
17629 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
17630 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
17631 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
17632 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
17633
6295b32f
P
176342011-06-25 Patrick <p55@mailinator.com>
17635
17636 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
17637
77c0840b
VS
176382011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
17639
17640 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
17641 (grub_pxe_send): Likewise.
17642 (GRUB_MOD_INIT): Fix types.
17643
40ea05de
SJ
176442011-06-24 Szymon Janc <szymon@janc.net.pl>
17645
17646 * grub-core/io/xzio.c: Fix code style issues
17647
90162423
MRA
176482011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
176492011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
423a1849
MRA
17650
17651 Network infrastructure.
17652 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
17653
17654 * include/grub/net/arp.h: New file.
90162423
MRA
17655 * include/grub/net/device.h: Likewise.
17656 * include/grub/net/ethernet.h: Likewise.
17657 * include/grub/net/ip.h: Likewise.
17658 * include/grub/net/netbuff.h: Likewise.
17659 * include/grub/net/tftp.h: Likewise.
17660 * include/grub/net/udp.h: Likewise.
17661 * include/grub/ieee1275/ofnet.h: Likewise.
17662 * include/grub/emu/export.h: Likewise.
17663 * include/grub/net.h: Likewise.
17664 * grub-core/net/arp.c: Likewise.
17665 * grub-core/net/ethernet.c: Likewise.
17666 * grub-core/net/ip.c: Likewise.
17667 * grub-core/net/udp.c: Likewise.
17668 * grub-core/net/tftp.c: Likewise.
17669 * grub-core/net/netbuff.c: Likewise.
17670 * grub-core/net/net.c: Likewise.
17671 * grub-core/net/drivers/emu/emunet.c: Likewise.
17672 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
17673 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
17674 export.h.
17675 * grub-core/Makefile.core.def (net): New module.
17676 (tftp): Likewise.
17677 (ofnet): Likewise.
17678 (emunet): Likewise.
17679 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
17680 network protocols.
17681 * grub-core/kern/device.c (grub_net_open) : New variable.
17682 (grub_device_open): Handle network device.
17683 (grub_device_close): Likewise.
17684 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
17685 (grub_grubnet_fini): Likewise.
17686 (grub_file_seek): Seek in network device.
17687 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
17688 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
17689 network root.
17690 (grub_machine_fini): Call grub_grubnet_fini.
17691 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
17692 network.
17693 (grub_ieee1275_get_aliasdevname): New function.
17694 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
17695 Add unofficial Solaris network info.
17696 (grub_multiboot_make_mbi): Likewise.
17697 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
17698 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
17699 * include/grub/device.h (grub_fs): Removed.
17700 * include/grub/err.h (grub_err_t): Add network-related values.
17701 * include/grub/i386/pc/pxe.h: Removed bootp parts.
17702 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
17703 (grub_ieee1275_get_aliasdevname): New proto.
17704 * include/grub/net.h: Rewritten.
423a1849 17705
031f22a0
VS
177062011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
17707
17708 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
17709 names.
17710
4388ca72
VS
177112011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
17712
17713 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
17714 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
17715 it truncates the output.
17716 Reported by: Ximin Luo.
17717
98e2f506
VS
177182011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
17719
17720 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
17721
2a5e94d8
VS
177222011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
17723
17724 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
17725 partmap before abstraction.
17726
535c1910
AK
177272011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
17728
17729 * util/grub-mkconfig_lib.in: Add missing quotes.
17730
bc09e1a2
VS
177312011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
17732
17733 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
17734 old method if mountinfo would return /dev/root and /dev/root doesn't
17735 exist.
17736
290766fb
VS
177372011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
17738
17739 ZFS zlib support
17740
17741 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
17742 (decomp_table): Add zlib entries.
17743 (zio_read): USe 8 bits for compression function rather than 3.
17744 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
17745
177462011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
17747
17748 * grub-core/disk/ahci.c: Add missing license statements.
17749 * grub-core/fs/romfs.c: Likewise.
17750 * grub-core/lib/ia64/setjmp.S: Likewise.
17751 * grub-core/loader/i386/pc/freedos.c: Likewise.
17752 * grub-core/loader/ia64/efi/linux.c: Likewise.
17753 * grub-core/video/colors.c: Likewise.
17754 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
17755
5ab3f48a
VS
177562011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
17757
17758 AHCI support.
17759
17760 * grub-core/Makefile.core.def (ata_pthru): Removed.
17761 (ahci): New module.
17762 (pata): Likewise.
17763 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
17764 on unload.
17765 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
17766 readwrite.
17767 (grub_hdparm_do_check_powermode_cmd): Likewise.
17768 (grub_hdparm_do_smart_cmd): Likewise.
17769 (grub_hdparm_set_val_cmd): Likewise.
17770 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
17771 * grub-core/disk/ahci.c: New file.
17772 * grub-core/disk/ata.c: Factor out the low-level part into ...
17773 * grub-core/disk/pata.c: ... here.
17774 * grub-core/disk/ata_pthru.c: Contents moved to ...
17775 * grub-core/disk/pata.c: ... here.
17776 * grub-core/disk/scsi.c (grub_scsi_names): New array.
17777 (grub_scsi_iterate): Use grub_scsi_names.
17778 (grub_scsi_open): Likewise.
17779 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
17780 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
17781 (grub_ata_regs_t): New struct.
17782 (grub_disk_ata_pass_through_parms): Likewise.
17783 (grub_ata_device): Renamed to ...
17784 (grub_ata): ... this.
17785 (grub_ata_dev): New struct.
17786 Removed all low-level inline functions.
17787 * include/grub/scsi.h: Add PATA and AHCI subsystems.
17788 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
17789 iterate hooks and open. All users updated.
17790 * util/grub-install.in: Handle AHCI disk module.
17791
c31dc5f5
SJ
177922011-06-23 Szymon Janc <szymon@janc.net.pl>
17793
17794 Add support for DRI and RSTn markers in JPEG files.
17795
17796 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
17797 (JPEG_MARKER_RST0): Likewise.
17798 (JPEG_MARKER_RST1): Likewise.
17799 (JPEG_MARKER_RST2): Likewise.
17800 (JPEG_MARKER_RST3): Likewise.
17801 (JPEG_MARKER_RST4): Likewise.
17802 (JPEG_MARKER_RST5): Likewise.
17803 (JPEG_MARKER_RST6): Likewise.
17804 (JPEG_MARKER_RST7): Likewise.
17805 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
17806 (grub_jpeg_decode_dri): New function.
17807 (grub_jpeg_decode_sos): Move image data related part into
17808 grub_jpeg_decode_data function.
17809 (grub_jpeg_decode_data): New function.
17810 (grub_jpeg_reset): New function.
17811 (grub_jpeg_decode_jpeg): Handle new markers.
17812
fe12fd5b
VS
178132011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
17814
17815 * util/ieee1275/ofpath.c (check_sas): Close fd.
17816 (main): Free of_path.
17817 Reported by: David Volgyes <dvolgyes>.
17818
03147f46
VS
178192011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
17820
17821 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
17822 Reported by: David Volgyes <dvolgyes>.
17823
cad3237f
VS
178242011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
17825
17826 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
17827 file after stat.
17828 Reported by: David Volgyes <dvolgyes>.
17829
13548d26
VS
178302011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
17831
17832 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
17833
17834 Reported by: David Volgyes <dvolgyes>.
17835
e061a1b5
VS
178362011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
17837
17838 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
17839 Prevent memory leak.
17840
1abe47dc
VS
178412011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
17842
17843 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
17844 (main): Close file.
e061a1b5 17845 Reported by: David Volgyes <dvolgyes>.
1abe47dc 17846
fbc62666
VS
178472011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
17848
17849 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
17850 to continue if allocation is failed.
17851
17852 Reported by: David Volgyes <dvolgyes>.
17853
e98c83e9
DV
178542011-06-23 David Volgyes <dvolgyes>
17855
17856 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
17857 dereference.
17858
a199a8cd
VS
178592011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
17860
17861 Fix spurious warning.
17862
17863 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
17864 (acorn_partition_map_find): Use .bin member.
17865
e2d1dba0
VS
178662011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
17867
17868 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
17869 /dev/root as a valid device.
17870
8a5d6919
JM
178712011-06-23 Jim Meyering <meyering@redhat.com>
17872
e2d1dba0
VS
17873 Avoid NULL deref in grub_device_open.
17874
8a5d6919
JM
17875 * grub-core/kern/device.c (grub_device_open): Don't dereference
17876 a NULL pointer upon failed grub_env_get.
17877
f7db6f4a
VS
178782011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
17879
17880 Support non-512B sectors and agglomerate reads.
17881
17882 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
17883 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
17884 (disk_io_guid): Removed.
17885 (make_devices): Locate solely by BlockIO.
17886 (grub_efidisk_open): Fill log_sector_size and total_sectors.
17887 (grub_efidisk_read): Use read_blocks.
17888 (grub_efidisk_write): Use write_blocks.
17889 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
17890 log_sector_size.
17891 (get_safe_sectors): Handle non-512B sectors.
17892 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
17893 sectors.
17894 (grub_biosdisk_write): Handle non-512B sectors.
17895 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
17896 (grub_scsi_read): Remove special non-512B block handling (now handled
17897 one level up).
17898 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
17899 and do sanity checks.
17900 (grub_disk_adjust_range): Handle non-512B sectors.
17901 (transform_sector): New function.
17902 (grub_disk_read_small): Likewise.
17903 (grub_disk_read): Rewritten.
17904 (grub_disk_write): Handle non-512B sectors.
17905 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
17906 log_sector_size.
17907 (open_device): Use log_sector_size.
17908 (grub_util_biosdisk_read): Likewise.
17909 (grub_util_biosdisk_write): Likewise.
17910 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
17911 non-512B sectors.
17912 (pc_partition_map_embed): Likewise.
17913 * include/grub/disk.h (grub_disk): New field log_sector_size.
17914 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
17915 (GRUB_DISK_CACHE_BITS): Increased to 6.
17916 * util/grub-fstest.c (fstest): New command testload.
17917 (argp_parser): Likewise.
17918
881ac815
RM
179192011-06-16 Robert Millan <rmh@gnu.org>
17920
17921 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
17922 `ata' driver on kernel of FreeBSD 9.
17923
17924 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
17925 (get_ataraid_disk_name): New functions.
17926 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
17927 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
17928 get_ataraid_disk_name() and get_ada_disk_name().
17929
1e9aef7d
CW
179302011-06-13 Colin Watson <cjwatson@ubuntu.com>
17931
17932 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
17933 input format.
17934
351c7c8a
CW
179352011-05-29 Colin Watson <cjwatson@ubuntu.com>
17936
17937 * docs/grub.texi (Obtaining and Building GRUB): Substitute
17938 `ftp.gnu.org' for `alpha.gnu.org'.
17939
6b4e6430
CW
179402011-05-27 Colin Watson <cjwatson@ubuntu.com>
17941
17942 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
17943 partitions under /dev/disk/by-id/.
17944
c64db050
CW
179452011-05-27 Colin Watson <cjwatson@ubuntu.com>
17946
17947 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
17948 after ten consecutive open failures. Scanning all the way up to
17949 10000 is excessive and can cause serious performance problems in
17950 some configurations.
17951 Fixes Ubuntu bug #787461.
17952
245f4aba
VS
179532011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
17954
17955 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
17956 opening new one.
17957
f767c929
VS
179582011-05-21 Colin Watson <cjwatson@ubuntu.com>
179592011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
17960
17961 Don't stat devices unless we have to.
17962
17963 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
17964 dir == /dev/mapper.
17965 (grub_guess_root_device): Use already known os_dev if possible.
17966 * grub-core/kern/emu/hostdisk.c
17967 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
17968 if device is known to be a dm one.
17969
f35fa3a6
CW
179702011-05-20 Colin Watson <cjwatson@ubuntu.com>
17971
17972 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
17973 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
17974 Reported by: Pawel Tecza.
17975
9a79fcf2
VS
179762011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
17977
17978 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
17979 (lsefisystab): Likewise.
17980 (lssal): Likewise.
17981 (lsefimmap): Likewise.
17982 (hdparm): Enable on qemu-mips.
17983 (setjmp): Add ia64 nodist.
17984 (serial): Simplify tags.
17985
63e3eea9
CW
179862011-05-18 Colin Watson <cjwatson@ubuntu.com>
17987
17988 * Makefile.util.def (grub-ofpathname): Install manual page.
17989
09728256
CW
179902011-05-18 Colin Watson <cjwatson@ubuntu.com>
17991
17992 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
17993
8b63a142
CW
179942011-05-18 Colin Watson <cjwatson@ubuntu.com>
17995
17996 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
17997
e775d8ed
VS
179982011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
17999
18000 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
18001 into dprintf.
18002
bf947d36
VS
180032011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
18004
18005 Use full 64-bit division.
18006
18007 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
18008 (grub_divmod64): ... this.
18009 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
18010 version.
18011
b84f26c5
CW
180122011-05-18 Colin Watson <cjwatson@ubuntu.com>
18013
18014 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
18015 `source'.
18016
5626056f
CW
180172011-05-18 Colin Watson <cjwatson@ubuntu.com>
18018
18019 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
18020 to avoid accidents when debugging with 'sh -x'.
18021 * grub-core/gensyminfo.sh.in: Likewise.
18022 * tests/example_scripted_test.in: Likewise.
18023 * tests/grub_cmd_regexp.in: Likewise.
18024 * tests/grub_script_blanklines.in: Likewise.
18025 * tests/grub_script_dollar.in: Likewise.
18026 * tests/grub_script_expansion.in: Likewise.
18027 * tests/grub_script_final_semicolon.in: Likewise.
18028 * tests/partmap_test.in: Likewise.
18029 * tests/util/grub-shell-tester.in: Likewise.
18030 * tests/util/grub-shell.in: Likewise.
18031
e2965f4a
CW
180322011-05-18 Colin Watson <cjwatson@ubuntu.com>
18033
18034 Move gfxmenu color handling to video, so that gfxterm can use it
18035 too.
18036
18037 * grub-core/gfxmenu/named_colors.c: Move to ...
18038 * grub-core/video/colors.c: ... here. Rename
18039 grub_gui_get_named_color to grub_video_get_named_color.
18040 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
18041 * grub-core/video/colors.c (my_isxdigit): ... here.
18042 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
18043 Move to ...
18044 * grub-core/video/colors.c (parse_hex_color_component): ... here.
18045 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
18046 to ...
18047 * grub-core/video/colors.c (grub_video_parse_color): ... here.
18048
18049 * include/grub/gui.h (grub_gui_color_t): Move to ...
18050 * include/grub/video.h (grub_video_rgba_color_t): ... here.
18051 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
18052 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
18053 * include/grub/gui.h (grub_gui_map_color): Move to ...
18054 * include/grub/video.h (grub_video_map_rgba_color): ... here.
18055 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
18056 to ...
18057 * include/grub/video.h (grub_video_get_named_color): ... here.
18058 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
18059 * include/grub/video.h (grub_video_parse_color): ... here.
18060
18061 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
18062 video/colors.c.
18063 (gfxmenu): Remove gfxmenu/named_colors.c.
18064 (video) [videomodules]: Add video/colors.c.
18065
18066 Add a background_color command.
18067
18068 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
18069 function.
18070 (GRUB_MOD_INIT): Register background_color command.
18071 (GRUB_MOD_FINI): Unregister background_color command.
18072 (redraw_screen_rect): Allow blend/replace of text layer to be
18073 controlled independently from whether there is a background bitmap.
18074 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
18075 changing bitmap.
18076
1e4b4390
VS
180772011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
18078
26618ff0
VS
18079 Patch BPB in ntldr and chainloader --bpb.
18080
1e4b4390
VS
18081 * grub-core/fs/fat.c: Include grub/fat.h.
18082 (grub_fat_bpb): Moved to ...
18083 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
18084 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
18085 grub/ntfs.h.
18086 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
18087 Moved from here...
18088 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
18089 here.
18090 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
18091 New function.
18092 (grub_chainloader_cmd): Patch BPB if --bpb is given.
18093 (GRUB_MOD_INIT): Show --bpb.
18094 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
18095 * grub-core/normal/main.c (features): New variable.
18096 (GRUB_MOD_INIT): Set feature_* variables.
18097 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
18098 proto.
18099 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
18100
cf02731e
VS
181012011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
18102
18103 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
18104 for cleanness.
18105
e3a1073f
VS
181062011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
18107
18108 FreeDOS direct loading support.
18109
18110 * docs/grub.texi (Supported OS): Add FreeDOS.
18111 * grub-core/Makefile.core.def (freedos): New module.
18112 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
18113 variable.
18114 (grub_relocator16_boot): Handle %ebx.
18115 * grub-core/lib/i386/relocator16.S: Likewise.
18116 * grub-core/loader/i386/pc/freedos.c: New file.
18117
05caa461
VS
181182011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
18119
18120 Long Linux command line support.
18121
18122 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
18123 (maximal_cmdline_size): New variable.
18124 (allocate_pages): Use maximal_cmdline_size.
18125 (grub_cmd_linux): Set and use maximal_cmdline_size.
18126 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
18127 (allocate_pages): Use maximal_cmdline_size.
18128 (grub_cmd_linux): Set and use maximal_cmdline_size.
18129 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
18130 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
18131 and cmdline_size.
18132
a2491e23
VS
181332011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
181342011-05-18 Colin Watson <cjwatson@ubuntu.com>
18135
18136 Improve devmapper support
18137
18138 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
18139 (grub_util_is_lvm): New function.
18140 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
18141 than lvm if not dmraid.
18142 Handle mapped md nodes.
18143 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
18144 (grub_util_device_is_mapped): ... this. Make always available. All users
18145 updated.
18146 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
18147 (convert_system_partition_to_system_disk): Handle lvm, mpath and
18148 dmraid nodes.
18149 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
18150
6ad6223e
VS
181512011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
18152
18153 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
18154
18155 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
18156 * grub-core/modinfo.sh.in: New file.
18157 * grub-core/Makefile.core.def (modinfo.sh): New script.
18158 * util/grub-mknetdir.in: Use modinfo.sh.
18159 * util/grub-mkrescue.in: Likewise.
18160
543a8f6e
VS
181612011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
18162
18163 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
18164 Fix potential usage of Elf32 instead of Elf64 when compiling on
18165 32-bit architecture. Add endianness macros while on it.
18166
4959e111
VS
181672011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
18168
18169 Use mipsel- rather than mips- in directories involving mipsel ports to
18170 allow both endiannesses coexist.
18171
18172 * configure.ac: proparate target_cpu=mipsel rather than resetting to
18173 mips. All conditions adjusted.
18174 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
18175 variable.
18176 * util/grub-install.in: Adjust conditions to take renaming into account.
18177 * util/grub-mkimage.c (image_targets): Likewise. New target
18178 mips-qemu_mips-elf for bigendian mips.
18179
35341bbc
VS
181802011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
18181
18182 Avoid unnecessary copying on MIPS.
18183
18184 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
18185 early if src == dest.
18186 * util/grub-mkimage.c (generate_image): Arange for src == dest if
18187 compression is none.
18188
b772baed
VS
181892011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
18190
18191 Reduce memory footprint on SGI by putting modules before the kernel
18192 as opposed to after.
18193
18194 * grub-core/Makefile.core.def (kernel): Increase linking address.
18195 (none_decompress): Likewise.
18196 (xz_decompress): Likewise.
18197 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
18198 address.
18199 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
18200 layout change.
18201 (grub_arch_modules_addr): New function.
18202 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
18203 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
18204 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
18205 here.
18206 * grub-core/kern/mips/startup.S (total_size): Rename to ...
18207 (grub_total_modules_size): ... this. Make global.
18208 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
18209 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
18210 New definition.
18211 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
18212 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
18213 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
18214 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
18215 * util/grub-mkimage.c (image_target_desc): New flag
18216 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
18217 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
18218 (generate_image): Handle images with modules before kernel.
18219
566a1917
VS
182202011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
18221
18222 Prevent potential loss of memory map by overwrite on qemu-mips.
18223
18224 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
18225 Save ram size in $s4.
18226 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
18227 All users changed to grub_arch_memsize.
18228 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
18229 Loongson.
18230 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
18231 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
18232 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
18233 external variable.
18234
5d420cd9
CW
182352011-05-17 Colin Watson <cjwatson@ubuntu.com>
18236
18237 * .bzrignore: Remove grub-dumpbios.
18238
d064b830
CW
182392011-05-17 Colin Watson <cjwatson@ubuntu.com>
18240
18241 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
18242 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
18243 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
18244 existing options which append).
18245 * docs/grub.texi (Simple configuration): Document new options.
18246 Reported by: Ian Jackson. Fixes Debian bug #617538.
18247
3ca2b466
CW
182482011-05-17 Colin Watson <cjwatson@ubuntu.com>
18249
18250 * util/grub-fstest.c (cmd_cat): New function.
18251 (fstest): Handle CMD_CAT.
18252 (options): Add cat.
18253 (argp_parser): Handle cat.
18254
24c9143a
CW
182552011-05-17 Colin Watson <cjwatson@ubuntu.com>
18256
18257 * Makefile.util.def (grub-bin2h): Don't install.
18258 * docs/man/grub-bin2h.h2m: Remove.
18259
90f7ac19
VS
182602011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
18261
18262 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
18263 place.
18264
8d4a5178
VS
182652011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
18266
18267 Reenable qemu-mips port.
18268
18269 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
18270 Fix small arc bug while on it.
18271 * gentpl.py: Handle qemu_mips.
18272 * grub-core/Makefile.am: Likewise.
18273 * grub-core/Makefile.core.def: Likewise.
18274 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
18275 inappropriate includes.
18276 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
18277 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
18278 * grub-core/kern/main.c (grub_modules_get_end)
18279 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
18280 * grub-core/kern/mips/qemu-mips: Moved to ..
18281 * grub-core/kern/mips/qemu_mips: ... this.
18282 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
18283 (grub_machine_init): Call terminfo_init and serial_init.
18284 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
18285 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
18286 New variable.
18287 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
18288 parameter passing.
18289 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
18290 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
18291 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
18292 * include/grub/mips/qemu_mips/cmos.h: New file.
18293 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
18294 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
18295 Removed.
18296 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
18297 Use correct mips-style address.
18298 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
18299 (GRUB_TICKS_PER_SECOND): Removed.
18300 (grub_get_rtc): Likewise.
18301 (grub_cpu_idle): Likewise.
18302 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
18303 New definition.
18304 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
18305 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
18306 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
18307 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
18308 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
18309 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
18310 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
18311 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
18312
400b9371
VS
183132011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
18314
18315 SGI ARCS port.
18316
18317 * Makefile.util.def (libgrubmods.a): Add dvh.c.
18318 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
18319 platforms.
18320 * configure.ac: New target mips-arc.
18321 * gentpl.py: Likewise.
18322 * grub-core/Makefile.am: Likewise.
18323 * grub-core/Makefile.core.def: Likewise.
18324 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
18325 (none_decompress): Likewise.
18326 (lsdev): New module.
18327 (datetime): Use lib/arc/datetime.c on ARC.
18328 (part_dvh): New module.
18329 * grub-core/commands/arc/lsdev.c: New file.
18330 * grub-core/disk/arc/arcdisk.c: Likewise.
18331 * grub-core/kern/mips/arc/init.c: Likewise.
18332 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
18333 aligned addresses.
18334 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
18335 support.
18336 (grub_arch_dl_relocate_symbols): Likewise.
18337 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
18338 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
18339 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
18340 platforms.
18341 * grub-core/lib/arc/datetime.c: New file.
18342 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
18343 pci.h on non-loongson.
18344 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
18345 (grub_linux_boot): Set unused registers to 0.
18346 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
18347 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
18348 * grub-core/mmap/mips/uppermem.c: ...here.
18349 * grub-core/partmap/dvh.c: New file.
18350 * grub-core/term/arc/console.c: Likewise.
18351 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
18352 (grub_terminfo_set_current): Add terminal "arc".
18353 (grub_terminfo_readkey): Support ARC sequences.
18354 * include/grub/arc/arc.h: New file.
18355 * include/grub/arc/console.h: Likewise.
18356 * include/grub/disk.h (grub_disk_dev_id): Add
18357 GRUB_DISK_DEVICE_ARCDISK_ID.
18358 * include/grub/mips/arc/kernel.h: New file.
18359 * include/grub/mips/arc/memory.h: Likewise.
18360 * include/grub/mips/arc/time.h: Likewise.
18361 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
18362 * include/grub/mips/kernel.h (grub_halt): ... here.
18363 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
18364 here...
18365 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
18366 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
18367 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
18368 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
18369 proto.
18370 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
18371 from here ...
18372 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
18373 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
18374 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
18375 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
18376 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
18377 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
18378 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
18379 (grub_phys_addr_t): Moved from here ...
18380 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
18381 (grub_vtop): Moved from here ...
18382 * include/grub/mips/memory.h (grub_vtop): ... here.
18383 (grub_map_memory): Moved from here ...
18384 * include/grub/mips/memory.h (grub_map_memory): ... here.
18385 (grub_unmap_memory): Moved from here ...
18386 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
18387 (grub_machine_mmap_iterate): Moved from here ...
18388 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
18389 (grub_mmap_get_lower): Moved from here ...
18390 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
18391 (grub_mmap_get_upper): Moved from here ...
18392 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
18393 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
18394 here ...
18395 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
18396 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
18397 here ...
18398 * include/grub/mips/time.h (grub_get_rtc): ... here.
18399 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
18400 here ...
18401 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
18402 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
18403 here ...
18404 * include/grub/mips/time.h (grub_cpu_idle): ... here.
18405 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
18406 definition.
18407 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
18408 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
18409 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
18410 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
18411 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
18412 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
18413 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
18414 (GRUB_MACHINE_LINK_ADDR): Likewise.
18415 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
18416 to 6.
18417 * util/grub-install.in: Run dvhtool on ARC.
18418 * util/grub-mkimage.c (image_targets): Add mips-arc.
b6296b3f 18419 (generate_image): Handle ECOFF output for mips-arc.
400b9371 18420
c8ecc840
VS
184212011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
18422
18423 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
18424 blocks.
18425
153a4b55
VS
184262011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
18427
18428 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
18429 after enabling port.
18430
ff44d107
VS
184312011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
18432
18433 Skip incorrect USB devices.
18434
18435 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
18436 configcnt == 0.
18437 * include/grub/usb.h (grub_usb_err_t): New enum value
18438 GRUB_USB_ERR_BADDEVICE.
18439
638dbe4f
VS
184402011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
18441
18442 Fuloong video init support.
18443
18444 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
18445 well.
18446 (grub_vga_read_arx): New function.
18447 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
18448 definition.
18449 (framebuffer): New members io, mmioptr and mmiobase.
18450 (read_sis_cmd): New function.
18451 (write_sis_cmd): Likewise.
18452 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
18453 rather than 640x400.
18454 * grub-core/video/sis315_init.c: New file.
18455
c3fc520c
VS
184562011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
18457
18458 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
18459 non-loongson.
18460 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
18461 to grub_dl_register_symbol.
18462
67b1e5c9
VS
184632011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
18464
18465 Fix compilation errors.
18466
18467 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
18468 potentially unused.
18469 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
18470 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
18471 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
18472 to loongson machines.
18473
b756f75f
VS
184742011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
18475
18476 Several FS mtime support.
18477
18478 * grub-core/fs/affs.c (grub_affs_time): New struct.
18479 (grub_affs_file): New field mtime.
18480 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
18481 type. Removed 'size'. New field 'di'. All users updated.
18482 (grub_affs_mount): Simplify checsum checking.
18483 (grub_affs_iterate_dir): New helper grub_affs_create_node.
18484 (grub_affs_dir): Handle mtime.
18485 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
18486 (grub_cpio_dir): Likewise.
18487 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
18488 (grub_hfs_filerec): New field mtime.
18489 (grub_hfs_dir): Handle mtime.
18490 (grub_hfs_mtime): New function.
18491 (grub_hfs_fs): Register grub_hfs_mtime.
18492 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
18493 (grub_iso9660_dir): New field mtime.
18494 (grub_fshelp_node): New field dirent.
18495 (iso9660_to_unixtime): New function.
18496 (iso9660_to_unixtime2): Likewise.
18497 (grub_iso9660_read_symlink): Use node->dirent.
18498 (grub_iso9660_iterate_dir): Likewise.
18499 (grub_iso9660_dir): Set mtime.
18500 (grub_iso9660_mtime): New function.
18501 (grub_iso9660_fs): Register grub_iso9660_mtime.
18502 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
18503 (grub_jfs_inode): New fields atime, ctime and mtime.
18504 (grub_jfs_dir): Set mtime.
18505 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
18506 * grub-core/fs/ntfs.c (list_file): Set mtime.
18507 (grub_ntfs_dir): Likewise.
18508 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
18509 (grub_reiserfs_iterate_dir): Set mtime.
18510 (grub_reiserfs_dir): Likewise.
18511 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
18512 (grub_fshelp_node): Likewise.
18513 (grub_sfs_iterate_dir): Set mtime.
18514 (grub_sfs_dir): Likewise.
18515 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
18516 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
18517 (grub_xfs_inode): New fields atime, mtime, ctime.
18518 (grub_xfs_dir): Set mtime.
18519 * include/grub/datetime.h (grub_datetime2unixtime): New function.
18520 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
18521 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
18522
18523 Support UDF symlinks.
18524
18525 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
18526 (grub_ufs_read_symlink): New function. All users updated.
18527
18528 Check amiga partmap checksum.
18529
18530 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
18531 (grub_amiga_partition): Likewise.
18532 (amiga_partition_map_checksum): New function.
18533 (amiga_partition_map_iterate): Check checksum.
18534
5470225d
VS
185352011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
18536
18537 ROMFS support.
18538
18539 * Makefile.util.def (libgrubmods.a): Add romfs.
18540 * grub-core/Makefile.core.def (romfs): New module.
18541 * grub-core/fs/romfs.c: New file.
18542
d4680a35
VS
185432011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
18544
18545 Squashfs v4 support.
18546
18547 * Makefile.util.def (libgrubmods.a): Add squash4.
18548 * grub-core/Makefile.core.def (squash4): New module.
18549 * grub-core/fs/squash4.c: New file.
18550 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
18551 disk_input_start, disk_input.
18552 (get_byte): Handle disk_input.
18553 (grub_zlib_disk_read): New function.
18554 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
18555
bcb18e74
FZ
185562011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
185572011-05-15 Feiran Zheng <famcool@gmail.com>
18558
18559 * Makefile.util.def (libgrubmods.a): Add minix3.
18560 * grub-core/Makefile.core.def (minix3): New module.
18561 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
18562 (GRUB_MINIX_BSIZE): Removed.
18563 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
18564 (grub_minix_ino_t): New type.
18565 (grub_minix_le_to_cpu_ino): New macro.
18566 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
18567 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
18568 (grub_minix_data): New field block_size.
18569 (grub_minix_read_file): Handle 64-bit correctly.
18570 * grub-core/fs/minix3.c: New file.
18571
32297d5f
TG
185722011-05-15 Tristan Gingold <gingold@free.fr>
185732011-05-15 Robert Millan <rmh.grub@aybabtu.com>
185742011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
18575
18576 IA64 support.
18577
18578 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
18579 * configure.ac: Add ia64-efi target.
18580 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
18581 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
18582 * gentpl.py: Add ia64_efi platform.
18583 Rename x86_efi to efi and Add ia64-efi. All users updated.
18584 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
18585 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
18586 Remove kern/generic/rtc_get_time_ms.c on EFI.
18587 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
18588 kern/ia64/dl_helper.c on ia64-efi.
18589 Add kern/emu/cache.c on emu.
18590 (linux): Use on loader/ia64/efi/linux.c on ia64.
18591 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
18592 whether symbol is a function.
18593 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
18594 (grub_symbol): New field 'isfunc'.
18595 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
18596 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
18597 (grub_dl_load_segments): Place all sections into the same region.
18598 [__ia64__]: Create trampolines and got.
18599 [GRUB_MACHINE_EMU]: Call mprotect.
18600 (grub_dl_resolve_symbols): Resolve symbol type as well.
18601 [__ia64__]: Create function descriptors.
18602 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
18603 (grub_rtc_get_time_ms): ... this. Expressions simplified.
18604 (grub_get_rtc): New function.
18605 * grub-core/kern/emu/cache.c [__ia64__]: New file.
18606 * grub-core/kern/emu/cache.S: Renamed to ...
18607 * grub-core/kern/emu/cache_s.S: ... this.
18608 [__ia64__]: Add a nop.
18609 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
18610 [__ia64__]: New function.
18611 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
18612 * grub-core/kern/ia64/dl.c: New file.
18613 * grub-core/kern/ia64/dl_helper.c: Likewise.
18614 * grub-core/kern/ia64/efi/init.c: New file.
18615 * grub-core/kern/ia64/efi/startup.S: Likewise.
18616 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
18617 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
18618 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
18619 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
18620 * grub-core/loader/ia64/efi/linux.c: New file.
18621 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
18622 (GRUB_MOD_DEP): Likewise.
18623 (grub_dl) [__ia64__]: New fields got and tramp.
18624 (grub_dl): New field 'base'.
18625 (grub_dl_register_symbol): New argument isfunc. All users updated.
18626 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
18627 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
18628 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
18629 (grub_ia64_dl_get_tramp_got_size): New proto.
18630 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
18631 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
18632 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
18633 * include/grub/efi/api.h: Skip call wrappers on ia64.
18634 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
18635 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
18636 * include/grub/elf.h (ELF_ST_INFO): New definition.
18637 * include/grub/ia64/efi/kernel.h: New file.
18638 * include/grub/ia64/efi/memory.h: Likewise.
18639 * include/grub/ia64/efi/time.h: Likewise.
18640 * include/grub/ia64/kernel.h: Likewise.
18641 * include/grub/ia64/setjmp.h: Likewise (from glibc).
18642 * include/grub/ia64/time.h: New file.
18643 * include/grub/ia64/types.h: Likewise.
18644 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
18645 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
18646 New protos.
18647 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
18648 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
18649 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
18650 * util/grub-mkimage.c (image_target_desc): New field pe_target.
18651 All users updated.
18652 (EFI64_HEADER_SIZE): New definition. All users updated.
18653 (image_targets): Add ia64-efi.
18654 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
18655 jumpers_addr. All users updated.
18656 Create function descriptors.
18657 (count_funcs): New function.
18658 (unaligned_uint32): New struct.
18659 (MASK20): New definition.
18660 (MASK19): Likewise.
18661 (MASKF21): Likewise.
18662 (add_value_to_slot_20b): New function.
18663 (add_value_to_slot_21_real): Likewise.
18664 (add_value_to_slot_21): Likewise.
18665 (ia64_kernel_trampoline): New struct.
18666 (nopm): New variable.
18667 (jump): Likewise.
18668 (make_trampoline): New function.
18669 (relocate_addresses): Handle ia64.
18670 (make_reloc_section): Likewise.
18671 (load_image): Likewise.
18672
983b414d
VS
186732011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
18674
18675 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
18676 warning. Move variables before code while on it.
18677
5d063cdc
VS
186782011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
18679
18680 Fuloong support.
18681
18682 * configure.ac: Rename yeeloong platform to loongson. All users updated.
18683 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
18684 * grub-core/boot/mips/loongson/fuloong.S: New file.
18685 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
18686 Explicitly init CS5536.
18687 [FULOONG]: Don't use serial until CS5536 is available.
18688 Set GPIO based on dumps.
18689 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
18690 [FULOONG]: Handle GPIO and memory controller differences.
18691 Parse machine type in $a2.
18692 * grub-core/boot/mips/startup_raw.S: Determine and save the
18693 architecture.
18694 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
18695 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
18696 init on architecture type.
18697 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
18698 SIS315E. Don't init at_keyboard on fuloong.
18699 (grub_halt): Support Fuloong.
18700 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
18701 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
18702 (loongson_machtypes): New array.
18703 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
18704 type.
18705 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
18706 config. All users updated. Handle CS5536 serial.
18707 * grub-core/term/serial.c (grub_serial_register): Conditionalise
18708 default port on machine type. Register serial as inactive.
18709 * grub-core/video/sis315pro.c: New file.
18710 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
18711 definition.
18712 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
18713 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
18714 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
18715 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
18716 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
18717 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
18718 to ...
18719 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
18720 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
18721 definition.
18722 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
18723 (grub_arch_machine): New extern var.
18724 * include/grub/mips/loongson/serial.h
18725 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
18726 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
18727 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
18728 (GRUB_MACHINE_SERIAL_PORT0): ... this.
18729 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
18730 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
18731 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
18732 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
18733 * include/grub/term.h (grub_term_register_input_inactive): New inline
18734 function.
18735 (grub_term_register_output_inactive): Likewise.
18736 * include/grub/video.h (grub_video_driver_id): New value
18737 GRUB_VIDEO_DRIVER_SIS315PRO.
18738 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
18739 New field "names". All users updated.
18740 New field value IMAGE_FULOONG_FLASH.
18741 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
18742
6ada82d1
JU
187432011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
18744
18745 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
18746 and add some clarification.
18747
90c571a4
VS
187482011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
18749
18750 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
18751 platforms if kernel is compressed.
18752
de04eecf
VS
187532011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
18754
18755 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
18756 unused modules since currently referrence counter isn't reliable and
18757 there isn't much memory to recover there anyway.
18758
57688121
VS
187592011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
18760
18761 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
18762 rather than resetting it to allow modules to reference themselves
18763 in init.
18764
3d2c7e35
VS
187652011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
18766
18767 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
18768 counter on dependencies since grub_dl_unref already handles this.
18769
b25db218
VS
187702011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
18771
18772 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
18773 on error if not already done.
18774
25a45338
VS
187752011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
18776
18777 Fix few potential memory misusage.
18778
18779 * grub-core/font/font.c (load_font_index): Don't free char_index to
18780 avoid double free.
b25db218
VS
18781 (grub_font_load): Zero-fill font at alloc for safety.
18782 Close file on error.
18783 (free_font): Free bmp_idx.
25a45338 18784
0cac83df
VS
187852011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
18786
18787 * docs/grub.texi (Installation): Fix several outdated claims.
18788
2217a143
VS
187892011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
18790
18791 Handle module_license on windows.
18792
18793 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
18794 sections shifted.
18795 (insert_string): Make argument const char * instead of char *.
18796 (write_section_data): Handle long section names.
18797 Handle module_license.
18798
d4de6b01
VS
187992011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
18800
18801 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
18802 handle class-free menuentries.
18803 (grub_normal_add_menu_entry): Add a check to be sure.
18804
4c2a3b43
VS
188052011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
18806
18807 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
18808 PgUp and PgDown.
18809
85c6210f
VS
188102011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
18811
18812 * configure.ac: Bump version to 1.99.
18813
36084912
VS
188142011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
18815
18816 Give ATA device a bit more time on first try in order to allow disks
18817 to spin up.
18818
18819 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
18820 if dev->present is 1. Reset dev->present on failure.
18821 (grub_ata_device_initialize): Set dev->present to 1.
18822 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
18823 (grub_ata_device): New member 'present'.
18824
bda0e219
VS
188252011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
18826
18827 * util/grub-mkimage.c (generate_image): Update hash.
18828
19e1c41b
VS
188292011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
18830
18831 Flush caches on DMA memory.
18832
18833 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
18834 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
18835 (grub_dma_free): Likewise.
18836 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
18837
91bbcc0c
VS
188382011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
18839
18840 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
18841 to avoid asm treating ld and sd as macros.
18842
60ddfad3
VS
188432011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
18844
18845 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
18846 decompressor.
18847
a298aa04
VS
188482011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
18849
18850 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
18851 grub_decompress_core since later would fail if grub_decompress_core
18852 is too far.
18853
9b44feca
VS
188542011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
18855
18856 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
18857 R_MIPS_JALR since it's used by newer compiler.
18858
56dbe7b4
VS
188592011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
18860
18861 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
18862
52856af2
VS
188632011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
18864
18865 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
18866 file_path to 0 for surety.
18867 (grub_chainloader_boot): Set exit_data to NULL.
18868 Unset the loader once done.
18869 (grub_cmd_chainloader): Fix confusing error message if file is empty.
18870
9c9bfc6d
VS
188712011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
18872
18873 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
18874 unknown key into a dprintf.
18875
dd94a3df
VS
188762011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
18877
18878 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
18879 on first non-existant partition.
18880
fa68d99c
VS
188812011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
18882
18883 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
18884 openning fails.
18885 Reported by: Mark Korenberg.
18886
157effb7
VS
188872011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
18888
18889 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
18890 overflow.
18891
ea75312f
VS
188922011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
18893
18894 * util/grub-mkimage.c (main): Explicitely flush and sync the output
18895 before closing to ensure that it will be readable by grub-setup.
18896
072b5d31
VS
188972011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
18898
18899 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
18900 (devpath_1): Use MAKE_PIWG_PATH.
18901 (devpath_2): Likewise.
18902 (devpath_3): Likewise.
18903 (devpath_4): Likewise.
18904 (devpath_5): Likewise.
18905 (devpath_6): Likewise.
18906
18907 The appleldr.mod was checked that to be binary identical to previous
18908 version.
18909
7fae0051
Z
189102011-05-05 Zach <mikezackles>
18911
18912 Support 2010 Macbooks.
18913
18914 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
18915 (devs): Add devpath_6.
18916
7c515bee
VS
189172011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
18918
18919 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
18920 /dev/random. /dev/urandom is good enough for our purposes (salting).
18921
ed660bd8
VS
189222011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
18923
18924 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
18925
ee5614b7
VS
189262011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
18927
18928 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
18929 hexadecimal.
18930
664889a6
VS
189312011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
18932
18933 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
18934 and not 0 on failure.
18935
bd405bbc
CW
189362011-05-03 Colin Watson <cjwatson@ubuntu.com>
18937
18938 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
18939 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
18940 disk; otherwise grub_fs_probe will not fall back to the next
18941 filesystem.
18942 (grub_pxefs_open): Likewise, for consistency.
18943 Reported and tested by: Ezekiel Grave.
18944
4ebff753
CW
189452011-05-03 Colin Watson <cjwatson@ubuntu.com>
18946
18947 * tests/partmap_test.in: Don't hardcode path to parted.
18948 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
18949
8f942553
CW
189502011-05-01 Colin Watson <cjwatson@ubuntu.com>
18951
18952 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
18953 of `ls' to find out which devices are available.
18954
3c62402d
VS
189552011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
18956
18957 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
18958 than source address for efi mmap buffer.
18959
723f63f2
VS
189602011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
18961
18962 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
18963 wrong action on non-detecting the magic.
18964
68797f92
VS
189652011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
18966
18967 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
18968 already supplied by another part of the module (fixes compilation on
18969 FreeBSD).
18970
6be8715d
VS
189712011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
18972
18973 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
18974 match the one used by mdadm.
18975
e91dba5b
CW
189762011-04-21 Colin Watson <cjwatson@ubuntu.com>
18977
18978 * po/README: Add instructions for creating po/LINGUAS.
18979
c85140b3
CW
189802011-04-21 Colin Watson <cjwatson@ubuntu.com>
18981
18982 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
18983 #551428.
18984
18985 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
18986 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
18987 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
18988 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
18989 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
18990 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
18991 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
18992 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
18993 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
18994 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
18995 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
18996 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
18997 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
18998 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
18999 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
19000 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
19001 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
19002 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
19003 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
19004 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
19005 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
19006 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
19007
92051871
CW
190082011-04-21 Colin Watson <cjwatson@ubuntu.com>
19009
19010 * grub-core/kern/emu/getroot.c
19011 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
19012 test that was incorrectly reintroduced in r3214.
19013 Reported by: Ian Dall. Fixes Savannah bug #33133.
19014
b13f79a4
CW
190152011-04-21 Colin Watson <cjwatson@ubuntu.com>
19016
19017 Fix stack pointer handling in 16-bit relocator.
19018
19019 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
19020 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
19021 Fixes Ubuntu bug #683904.
19022
9b710a88
VS
190232011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
19024
19025 * configure.ac: Bump version to 1.99~rc2.
19026
d97e7b59
VS
190272011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
19028
19029 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
19030 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
19031 * grub-core/lib/x86_64/setjmp.S: Likewise.
19032 * grub-core/lib/mips/setjmp.S: Likewise.
19033 * grub-core/lib/powerpc/setjmp.S: Likewise.
19034 * grub-core/lib/sparc64/setjmp.S: Likewise.
19035
0624551c
VS
190362011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
19037
19038 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
19039 * grub-core/lib/efi/datetime.c: Likewise.
19040
e8f28d4c
VS
190412011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
19042
19043 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
19044 New function.
19045 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
19046 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
19047 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
19048
bba79a15
VS
190492011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
19050
19051 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
19052 bitmap.
19053 (grub_gfxterm_term_init): Likewise.
19054
abc474ef
VS
190552011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
19056
19057 Take into account the decorations the computing menu entry width.
19058
19059 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
19060 (grub_gfxmenu_create_box): Register get_border_width.
19061 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
19062 if available.
19063 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
19064 get_border_width.
19065
e74b3947
EP
190662011-04-18 Endres Puschner <code@e7p.de>
19067
19068 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
19069 Don't skip first class.
19070
34faa595
VS
190712011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
19072
19073 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
19074 chunks.
19075 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
19076
93a777e3
VS
190772011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
19078
19079 Complete 64-bit division support.
19080
19081 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
19082 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
19083 * include/grub/misc.h (grub_divmod64): Rename to ...
19084 (grub_divmod64_full): ... this.
19085 (grub_divmod64): New inline function.
19086
a5102d94
VS
190872011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
19088
19089 * util/grub-mkimage.c (generate_image): Add forgotten comma.
19090
f3fb7b36
VS
190912011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
19092
19093 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
19094 performing the necessary test.
19095
9ac718b0
VS
190962011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
19097
19098 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
19099 (kfreebsd.elf): Likewise.
19100 (pc-chainloader.elf): Likewise.
19101 (ntldr.elf): Likewise.
19102
50d2cc5a
VS
191032011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
19104
19105 Identify RAID by its UUID rather than (guessed) name.
19106
19107 * grub-core/disk/raid.c (ascii2hex): New function.
19108 (grub_raid_open): Accept mduuid/%s specification.
19109 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
19110 (get_mdadm_uuid): ... this.
19111 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
19112
e03f7bea
VS
191132011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
19114
19115 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
19116 to negative size.
19117
e74c3112
CW
191182011-04-13 Colin Watson <cjwatson@ubuntu.com>
19119
19120 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
19121 btrfs subvolume.
19122 * util/grub.d/20_linux_xen.in: Likewise.
19123
78fa584f
CW
191242011-04-13 Colin Watson <cjwatson@ubuntu.com>
19125
19126 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
19127 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
19128
19129 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
19130 Build a list of relevant visible mounts using the mnt_id and
19131 parent_mnt_id fields, and then scan that list at the end.
19132
9d5f8162
CW
191332011-04-12 Colin Watson <cjwatson@ubuntu.com>
19134
19135 * docs/grub.texi (normal): New section.
19136 (normal_exit): New section.
19137 (Embedded configuration): Add reference to normal.
19138 (GRUB only offers a rescue shell): Likewise.
19139 * docs/grub-dev.texi (Error Handling): Fix typo.
19140
09a9d66f
CW
191412011-04-12 Colin Watson <cjwatson@ubuntu.com>
19142
19143 * NEWS: Drop obsolete entry about probe-only btrfs support.
19144
0c676933
CW
191452011-04-12 Colin Watson <cjwatson@ubuntu.com>
19146
19147 * util/import_gcry.py: Fix typo.
19148
ec9f5e0d
VS
191492011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
19150
19151 * NEWS: Add btrfs support.
19152
fe6b2cba
VS
191532011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
191542011-04-11 Colin Watson <cjwatson@ubuntu.com>
19155
19156 BtrFS support. Written by me (Vladimir) with important bugfixes and
19157 even more important testing by Colin.
19158
19159 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
19160 * grub-core/Makefile.core.def (btrfs): Add crc.c.
19161 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
19162 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
19163 mem_input_off and mem_input. All users updated to accept in-RAM input.
19164 (gzio_seek): New function.
19165 (test_zlib_header): Likewise.
19166 (grub_gzio_read): Likewise.
19167 (grub_zlib_decompress): Likewise.
19168 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
19169 Accept partial and non-virtual mounts.
19170 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
19171 avoid receiving /dev/dm-X as device.
19172 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
19173 Handle bind and partial mounts.
19174 * grub-core/lib/crc.c: New file.
19175 * include/grub/deflate.h: Likewise.
19176 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
19177 proto.
19178 * include/grub/lib/crc.h: New file.
19179
e745cf0c
VS
191802011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
19181
19182 Implement automatic module license checking according to new GNU
19183 guidelines.
19184
19185 * grub-core/kern/dl.c (grub_dl_check_license): New function.
19186 (grub_dl_load_core): Use grub_dl_check_license.
19187 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
19188 (GRUB_MOD_LICENSE): Likewise.
19189 (GRUB_MOD_DUAL_LICENSE): Likewise.
19190 All modules updated.
19191
2a9bc016
CW
191922011-04-11 Colin Watson <cjwatson@ubuntu.com>
19193
19194 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
19195 reserved_first_sector to 1. btrfs reserves plenty of space for boot
19196 loaders.
19197 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
19198
8a3bc88e
VS
191992011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
19200
19201 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
19202
af869a4a
VS
192032011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
19204
19205 * util/grub-fstest.c (read_file): Report GRUB error if file opening
19206 failed.
19207
9ee8d94f
VS
192082011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
19209
19210 * grub-core/kern/file.c (grub_file_open): Don't take into account the
19211 parenthesis in the middle of the filename.
19212
b01abe3e
VS
192132011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
19214
19215 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
19216 rather than trying to put initrd way too high.
19217 Reported by: Ryan Lortie <desrt@desrt.ca>
19218
335bda1e
VS
192192011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
19220
19221 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
19222 improperly removed string.
19223
5ca1a64d
VS
192242011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
19225
19226 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
19227 is_disk.
19228 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
19229 (open_device) Likewise.
19230 (grub_util_biosdisk_close): Likewise.
d8ce9995 19231 Reported by: Mark Korenberg.
5ca1a64d 19232
cbac5b1e
AK
192332011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
19234
19235 * util/grub-mkconfig_lib.in: Add missing quotes.
19236
088cdb65
CW
192372011-04-10 Colin Watson <cjwatson@ubuntu.com>
19238
19239 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
19240 is NULL.
19241
8b8a81fa
VS
192422011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
19243
19244 Dynamically count the number of lines for the lower banner.
19245
19246 * grub-core/normal/menu_entry.c (per_term_screen): New member
19247 num_entries.
19248 (print_down): Use num_entries.
19249 (update_screen): Likewise.
19250 (grub_menu_entry_run): Set num_entries.
19251 * grub-core/normal/menu_text.c (menu_viewer_data): New member
19252 num_entries.
19253 (grub_print_message_indented): Move real part to ...
19254 (grub_print_message_indented_real): ... here. Additional argument
19255 dry_run.
19256 (draw_border): Additional argument num_entries.
19257 (print_message): Additional argument dry_run.
19258 (print_entries): Receive menu viewer data.
19259 (grub_menu_init_page): New argment num_entries.
19260 (menu_text_set_chosen_entry): Use num_entries.
19261 (grub_menu_try_text): Likewise.
19262 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
19263 All users updated.
19264 (grub_ucs4_count_lines): New function.
19265 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
19266 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
19267 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
19268 (grub_term_border_height): Likewise.
19269 (grub_term_num_entries): Likewise.
19270
277f955b
VS
192712011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
19272
19273 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
19274 Remove now unused string.
19275
536ce85a
CW
192762011-04-09 Colin Watson <cjwatson@ubuntu.com>
19277
19278 * docs/grub-dev.texi (Finding your way around): Update for 1.99
19279 build system.
19280 (Getting started): GRUB is developed in Bazaar now, not Subversion.
19281
19282 (Comment): Fix typo.
19283 (Getting started): General copy-editing.
19284 (Typical Development Experience): Likewise.
19285 (Error Handling): Likewise.
19286 (Video API): Likewise.
19287
2cf09e32
CW
192882011-04-09 Colin Watson <cjwatson@ubuntu.com>
19289
19290 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
19291 throughout.
19292
1ec652f4
VS
192932011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19294
19295 * util/grub-mkimage.c (main): Handle special naming of yeeloong
19296 directory.
19297
2c583728
CW
192982011-04-08 Colin Watson <cjwatson@ubuntu.com>
19299
19300 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
19301 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
19302 "development".
19303
d7a565e9
VS
193042011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19305
19306 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
19307 grub_strcpy since the lines aren't necessarily 0-terminated.
19308
7c2e4909
VS
193092011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19310
19311 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
19312 root on legacy.
19313
34c09785
VS
193142011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19315
19316 * grub-core/commands/probe.c (options): Argument to set isn't optional.
19317 (GRUB_MOD_INIT): DEVICE isn't optional.
19318
6a6f8058
VS
193192011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19320
19321 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
19322 word on new line if it's too long anyway. Fixes a hang.
19323
2e335e90
VS
193242011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19325
19326 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
19327 const.
19328 * util/grub-setup.c (main): Reuse md device name if available.
19329 * util/raid.c (grub_util_raid_getmembers): Receive device name and
19330 not GRUB name as argument.
19331 Based on patch by: Florian Wagner <fwagner>.
19332
10a7a867
VS
193332011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19334
19335 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
19336 Place mbi on low memory for better compatibility.
19337
7a3d6cd9
VS
193382011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19339
19340 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
19341
18dd6b47
VS
193422011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
193432011-04-08 Colin Watson <cjwatson@ubuntu.com>
19344
19345 * autogen.sh: Ensure that collate and ctype locale is C.
4ed4ce58 19346 * conf/Makefile.common: Likewise.
18dd6b47 19347
3c0e3f14
VS
193482011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19349
f7148863
VS
19350 * grub-core/normal/menu.c: Add missing include.
19351
193522011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19353
19354 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
3c0e3f14 19355
6d1fa41f
MZ
193562011-04-08 Martin Zuther <mzuther@mzuther.de>
19357
19358 * util/grub-mkconfig.in: Ignore emacsen backup.
19359
478182a8
VS
193602011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19361
19362 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
19363 on open.
19364 (grub_util_biosdisk_close): Likewise.
19365
72a89a54
VS
193662011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19367
19368 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
19369 const attribute and use grub_isdigit.
19370
b5ebecfa
A
193712011-04-06 Andrey <dev_null@ukr.net>
19372
19373 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
19374 gcc warning.
19375
7755f66e
VS
193762011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
19377
19378 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
19379 useful grub_dprintf's.
19380
461121ff
VS
193812011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
19382
19383 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
19384
2a961775
VS
193852011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
19386
19387 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
19388
adf594cc
VS
193892011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
19390
19391 Output errors if theme loading failed.
19392
19393 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
19394 grub_gfxterm_fullscreen on error paths to ...
19395 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
19396 theme loading error.
19397
665900a3
VS
193982011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
19399
19400 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
19401 space for older compilers.
19402 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
19403
a562b479
VS
194042011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
19405
19406 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
19407 and report them as not RAID members since they are useless for GRUB.
19408 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
19409
850e9373
VS
194102011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
19411
19412 Increase LVM implementation robustness in order not to crash on
19413 configurations like pvmove. Previously code assumed that in some places
19414 only lvs or only pvs are used whereas it seems that they are used
19415 interchangeably.
19416
19417 * grub-core/disk/lvm.c (read_node): New function.
19418 (read_lv): Use read_node.
19419 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
19420 Match volumes only at the end when all lvs are found. Take both
19421 pvs (first) and lvs (second) into account.
19422 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
19423 mirror_* into node_*. All users updated.
19424 (grub_lvm_stripe): Merge this ...
19425 (grub_lvm_mirror): ... and this ...
19426 (grub_lvm_node): ... into this. All users updated.
19427
6f332153
VS
194282011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
19429
19430 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
19431 of function to allow further scanning for LVMs.
19432
829ea451
VS
194332011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
19434
19435 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
19436 on failed seek as it breaks open fd reusage.
19437
09ceb9a5
VS
194382011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
19439
19440 * util/grub-install.in: Add a recommendation to use --recheck before
19441 reporting bugs.
19442
67e11623
VS
194432011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
19444
19445 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
19446 are obtained.
19447
caee5efd
VS
194482011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
19449
19450 GRUB developper manual based on existing Internals section and
19451 contributions by the various authors with active copyright assignment.
19452
19453 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
19454 * docs/font_char_metrics.png: New file.
19455 * docs/font_char_metrics.txt: Likewise.
19456 * docs/grub-dev.texi: Likewise.
19457 * docs/grub.texi (Internals): Move from here ...
19458 * docs/grub-dev.texi: ... here.
19459
2cccc747
CW
194602011-04-01 Colin Watson <cjwatson@ubuntu.com>
19461
19462 Store the loopback device as data on loopback grub_disk structures,
19463 rather than the file it points to. This fixes use of freed memory
19464 if an existing loopback device is replaced.
19465
19466 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
19467 disk->data, not dev->file.
19468 (grub_loopback_read): Adjust file assignment to match.
19469 Fixes Ubuntu bug #742967.
19470
186ae367
CW
194712011-04-01 Colin Watson <cjwatson@ubuntu.com>
19472
19473 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
19474 when replacing an existing device.
19475
cfed2ad0
VS
194762011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
19477
19478 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
19479 memory corruptions.
19480
19481 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
19482 unsigned.
19483 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
19484 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
19485 (grub_jfs_read_inode): Likewise.
19486 (grub_jfs_opendir): Likewise. Remove now useless casts.
19487 (grub_jfs_getent): Likewise.
19488 Make ino a grub_uint32_t rather than int.
19489 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
19490 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
19491 division and module with bit operations.
19492 (grub_jfs_find_file): Make ino a grub_uint32_t.
19493 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
19494
05d2ed32
CW
194952011-04-01 Colin Watson <cjwatson@ubuntu.com>
19496
19497 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
19498 warning. (This was in fact always initialised before use, but GCC
19499 wasn't smart enough to prove that.)
19500 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
19501
91dc6073
VS
195022011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
19503
19504 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
19505 stack alignment.
19506 (efi_wrap_1): Likewise.
19507 (efi_wrap_2): Likewise.
19508 (efi_wrap_3): Likewise.
19509 (efi_wrap_4): Likewise.
19510 (efi_wrap_5): Likewise.
19511 (efi_wrap_6): Likewise.
19512 (efi_wrap_10): Likewise.
19513 Based on information by: Red Hat/Peter Jones.
19514
a8afc1d1
CW
195152011-03-31 Colin Watson <cjwatson@ubuntu.com>
19516
19517 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
19518 set-but-not-used variable.
19519
a826cc7d
CW
195202011-03-31 Colin Watson <cjwatson@ubuntu.com>
19521
19522 * docs/grub.texi (Simple configuration): Be more explicit about
19523 GRUB_DEFAULT, and add an example.
19524 Reported by: Leslie Rhorer.
19525
875b67ba
CW
195262011-03-30 Colin Watson <cjwatson@ubuntu.com>
19527
19528 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
19529 shell".
19530
fd7cd914
AS
195312011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
19532
19533 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
19534 * util/grub.d/20_linux_xen.in: Likewise.
19535
090b1b6a
VS
195362011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
19537
19538 * util/grub.d/10_linux.in: Try alternative config filenames where
19539 we parse config file.
19540 * util/grub.d/20_linux_xen.in: Likewise.
19541
baad885c
AS
195422011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
19543
19544 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
19545 * util/grub.d/20_linux_xen.in: Likewise.
19546
241e41f5
VS
195472011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
19548
19549 * grub-core/disk/raid.c (insert_array): Add few potentially
19550 useful grub_util_info.
19551 (grub_raid_register): Likewise.
19552
56445fb2
VS
195532011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
19554
19555 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
19556 Preserve partition number in mdadm code path.
19557
c871b1c6
VS
195582011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
19559
19560 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
19561 few potentially useful grub_util_info.
19562
5e631b4f
CW
195632011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
19564
19565 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
19566
2d5d0333
CW
195672011-03-30 Colin Watson <cjwatson@ubuntu.com>
19568
19569 * docs/grub.texi (default): Use @example rather than nested
19570 itemized lists to avoid breaking gendocs.
19571
3d7ed04e
CW
195722011-03-30 Colin Watson <cjwatson@ubuntu.com>
19573
19574 * docs/grub.texi (Future): Update.
19575
abf04200 195762011-03-30 Colin Watson <cjwatson@ubuntu.com>
19577
19578 * docs/grub.texi (Environment): New chapter.
19579 (Changes from GRUB Legacy): Link to "Environment block" section for
19580 details of limitations.
19581 (Simple configuration): Likewise. Link to documentation of gfxmode
19582 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
19583 respectively.
19584 (Shell-like scripting): Note that normal variables are stored in the
19585 environment.
19586 (gettext): Link to documentation of lang and locale_dir.
19587 (list_env): New section.
19588 (load_env): New section.
19589 (save_env): New section.
19590
19591 (Reporting bugs): Fix typo.
19592
e1ad0edd
VS
195932011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
19594
19595 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
19596 the example.
19597
5d803174
VS
195982011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
19599
19600 * grub-core/term/at_keyboard.c (set_scancodes)
19601 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
19602
2a2da1d0
CW
196032011-03-30 Colin Watson <cjwatson@ubuntu.com>
19604
19605 * docs/grub.texi (Menu-specific commands): Remove some semantics
19606 that were true in GRUB Legacy but not in GRUB 2.
19607 (submenu): New section.
19608 (false): New section.
19609 (read): New section.
19610 (true): New section.
19611
a7527639
CW
196122011-03-30 Colin Watson <cjwatson@ubuntu.com>
19613
19614 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
19615
196162011-03-30 Colin Watson <cjwatson@ubuntu.com>
e30af029
CW
19617
19618 * docs/grub.texi (Simple configuration): Explain some of the
19619 current limitations of grub-mkconfig.
8a748df2 19620 Reported by: Leslie Rhorer.
e30af029 19621
fc858482
VS
196222011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
19623
19624 Old macs search for boot.efi rather than for bootia32.efi.
19625
19626 * util/grub-install.in: Copy bootia32.efi to boot.efi.
19627 * util/grub-mkrescue.in: Likewise.
19628 Suggested by: Peter Jones.
19629
e1eb511d
VS
196302011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
19631
19632 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
19633
70e75364
VS
196342011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
19635
19636 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
19637 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
19638 (grub_lvm_mirror): New struct.
19639 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
19640 (grub_lvm_iterate): Iterate only visible volumes.
19641 (grub_lvm_read): Factor out to ..
19642 (read_lv): ... this. Support mirrors.
19643 (grub_lvm_read): New wrapper function.
19644 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
19645 stripped or mirrored.
19646
fc18f6a3
VS
196472011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
19648
19649 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
19650
5c650f4c
CW
196512011-03-29 Colin Watson <cjwatson@ubuntu.com>
19652
19653 * docs/grub.texi (loopback): New section.
19654
61d7156b
CW
196552011-03-29 Colin Watson <cjwatson@ubuntu.com>
19656
19657 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
19658 removed -p option.
19659
994b8264
CW
196602011-03-29 Colin Watson <cjwatson@ubuntu.com>
19661
19662 * docs/grub.texi (BIOS installation): New section, partly based on
19663 previous text in other sections.
19664 (Installing GRUB using grub-install): Replace BIOS discussion with a
19665 cross-reference.
19666 (Images): Likewise.
19667
9e4d19e0
VS
196682011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
19669
19670 * grub-core/kern/emu/hostdisk.c (find_partition_start)
19671 [HAVE_DIOCGDINFO]: Add safety checks.
19672
a307c0b2
VS
196732011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
19674
19675 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
19676 per default compiled in kernel and prior to 8.0 isn't shipped at all.
19677
b4db4f39
CW
196782011-03-29 Colin Watson <cjwatson@ubuntu.com>
19679
19680 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
19681 real_sb->size is zero (e.g. RAID-0), get the disk size from
19682 real_sb->data_size instead.
19683 Fixes Ubuntu bug #743136.
19684
35e5f84c
VS
196852011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
19686
19687 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
19688 printf clauses for printing size and start.
19689
d2e29d81
VS
196902011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
19691
19692 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
19693 Reported and tested by: Timothy Nikkel.
19694
ed5587af
VS
196952011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
19696
19697 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
19698 (dirty_region_add_real): ... this.
19699 (dirty_region_add): Don't discard margin refresh when performing
19700 scheduled repaint.
19701
a1dc717c
VS
197022011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
19703
19704 * grub-core/lib/relocator.c (allocate_regstart)
19705 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
19706 terminals are capabple of malloc-free operation.
19707 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
19708 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
19709
9f3677d3
VS
197102011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
19711
19712 * util/grub-setup.c: Copy the partition table zone if floppy support
19713 is disabled, even if no partition table is found.
19714
19715 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
19716 during POST if an invalid partition table is contained in the PBR
19717 of the active partition when GRUB is installed to a partition.
19718
24148725
CW
197192011-03-28 Colin Watson <cjwatson@debian.org>
19720
19721 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
19722 comment.
19723
f329eda7
CW
197242011-03-28 Colin Watson <cjwatson@debian.org>
19725
19726 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
19727 to be specific about what kind of RAID device we're scanning for.
19728
c482ad98
SG
197292011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
19730
19731 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
19732 return freed string.
19733
5ee04984
VS
197342011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
19735
19736 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
19737
f4727da9
VS
197382011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
19739
19740 Use libgeom on FreeBSD to detect partitions.
19741
19742 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
19743 (grub-mkrelpath): Likewise.
19744 (grub-script-check): Likewise.
19745 (grub-editenv): Likewise.
19746 (grub-mkpasswd-pbkdf2): Likewise.
19747 (grub-fstest): Likewise.
19748 (grub-mkfont): Likewise.
19749 (grub-mkdevicemap): Likewise.
19750 (grub-probe): Likewise.
19751 (grub-setup): Likewise.
19752 (grub-ofpathname): Likewise.
19753 (grub-mklayout): Likewise.
19754 (example_unit_test): Likewise.
19755 (grub-menulst2cfg): Likewise.
19756 * grub-core/Makefile.core.def (grub-emu): Likewise.
19757 (grub-emu-lite): Likewise.
19758 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
19759 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
19760 define HAVE_DIOCGDINFO.
19761 (follow_geom_up) [FreeBSD]: New function.
19762 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
19763 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
19764 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
19765 unconditionally of HAVE_DIOCGDINFO.
19766
82fe6c75
VS
197672011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
19768
19769 Fix FreeBSD compilation problem.
19770
19771 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
19772 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
19773
4c6c9431
CW
197742011-03-24 Colin Watson <cjwatson@ubuntu.com>
19775
19776 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
19777 Switch back to page zero before loading a kernel, since some kernel
19778 drivers expect that.
19779 Thanks to: Felix Kuehling.
19780
c7064d94
VS
197812011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
19782
19783 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
19784 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
19785 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
19786
3f71cded
VS
197872011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
19788
19789 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
19790 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
19791
ef6de21a
VS
197922011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
19793
19794 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
19795 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
19796 malloc is disabled.
19797
8bc66a2c
VS
197982011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
19799
19800 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
19801 for modules headers when counting the needed allocation size.
19802
5657722c
VS
198032011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
19804
19805 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
19806 if no ASCII character is found to prevent crash.
19807
41a85f55
AK
198082011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
19809
19810 * grub-core/video/bitmap.c (match_extension): Ignore case.
19811
59e1e5f1
VS
198122011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
19813
19814 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
19815
bd4d051a
VS
198162011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
19817
19818 * grub-core/script/parser.y: Declare "time" as valid argument.
19819
bae7fcc1
PJ
198202011-03-23 Peter Jones <pjones@redhat.com>
19821
19822 Fix incorrect assert failure reporting.
19823
19824 * grub-core/tests/example_functional_test.c (example_test): Add
19825 a failure comment.
19826 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
19827 (failure_start): ...this. Check that malloc succeeded.
19828 Don't call xvasprintf. Return failure struct.
19829 (failure_append_vtext): New function.
19830 (failure_append_text): Likewise.
19831 (add_failure): Likewise.
19832 (grub_test_assert_helper): Likewise.
19833 * include/grub/test.h (grub_test_assert_helper): New declaration.
19834 (grub_test_assert): Macro rewritten.
19835
537dc9be
VS
198362011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
19837
19838 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
19839
fa3e01bf
VS
198402011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
19841
19842 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
19843
b1d28404
VS
198442011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
19845
19846 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
19847 into GRUB-style one.
19848
2e3e2e09
VS
198492011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
19850
19851 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
19852 error and not grub_errno.
19853 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
19854
ed57e557
VS
198552011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
19856
19857 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
19858 GRUB_USB_SPEED_NONE in case of failure and not the error code.
19859
d1611f01
VS
198602011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
19861
19862 * grub-core/efiemu/i386/pc/cfgtables.c
19863 (grub_machine_efiemu_init_tables): Make declaration a prototype.
19864 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
19865 (grub_xnu_unlock): Likewise.
19866 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
19867
7d4e39d6
VS
198682011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
19869
19870 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
19871 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
19872 * grub-core/commands/hashsum.c (aliases): Likewise.
19873 * grub-core/commands/setpci.c (pci_registers): Likewise.
19874 * grub-core/disk/usbms.c (attach_hook): Likewise.
19875 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
19876 (zio_checksum_table): Likewise.
19877 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
19878 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
19879 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
19880 * grub-core/lib/relocator.c (leftovers): Likewise.
19881 (extra_blocks): Likewise.
19882 * grub-core/loader/i386/bsd.c (relocator): Likewise.
19883 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
19884 (modules_last): Likewise.
19885 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
19886 (devices): Likewise.
19887 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
19888 (modules_last): Likewise.
19889 * grub-core/normal/auth.c (users): Likewise.
19890 * grub-core/normal/context.c (initial_menu): Likewise.
19891 (current_menu): Likewise.
19892 * grub-core/normal/crypto.c (crypto_specs): Likewise.
19893 * grub-core/term/serial.c (grub_serial_ports): Likewise.
19894 (grub_serial_terminfo_input_template): Likewise.
19895 (grub_serial_terminfo_output_template): Likewise.
19896 (grub_serial_terminfo_input): Likewise.
19897 (grub_serial_terminfo_output): Likewise.
19898 (registered): Likewise.
19899 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
19900
40fc4659
VS
199012011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
19902
19903 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
19904 grub_video_mode_type_t.
19905 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
19906 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
19907 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
19908
2da48d28
VS
199092011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
19910
19911 * util/grub-install.in: Correct the x86-64 name as x86_64.
19912
9b43bf39
CW
199132011-03-11 Colin Watson <cjwatson@ubuntu.com>
19914
19915 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
19916 initial chunk read from the kernel always includes GRUB's multiboot
19917 header, which is now outside the first sector.
19918
be1a7ce0
CW
199192011-03-09 Colin Watson <cjwatson@ubuntu.com>
19920
19921 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
19922 cached mmap_size, so that this works correctly when called multiple
19923 times.
19924 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
19925
83a3c48d
CW
199262011-03-09 Colin Watson <cjwatson@ubuntu.com>
19927
19928 * docs/grub.texi (Simple configuration): Tidy up formatting.
19929
57d75699
SJ
199302011-03-07 Szymon Janc <szymon@janc.net.pl>
19931
19932 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
19933 Set-but-not-used variable removed.
19934
028501a0
VS
199352011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
19936
19937 Workaround yet another IEEE1275 bug.
19938
19939 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
19940 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
19941 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
19942 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
19943 is set.
19944 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
19945 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
19946
d998657d
VS
199472011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
19948
19949 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
19950 error.
19951
fee7cdd4
CW
199522011-02-11 Colin Watson <cjwatson@ubuntu.com>
19953
19954 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
19955 empty, since in that case we can only generate either nothing or a
19956 syntactically invalid configuration file.
19957 Reported by: Michal Suchanek. Fixes Debian bug #612898.
19958
97286eb5
CW
199592011-02-09 Colin Watson <cjwatson@ubuntu.com>
19960
19961 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
19962 (Making a GRUB bootable CD-ROM): Likewise.
19963 (Invoking grub-mkrescue): New section.
19964 Reported by: Yann Dirson. Fixes Debian bug #612585.
19965
22b28eb3
CW
199662011-02-09 Colin Watson <cjwatson@ubuntu.com>
19967
19968 * util/grub-install.in: Remove unnecessary brackets from tr
19969 arguments.
19970 * util/grub.d/10_hurd.in: Likewise.
19971 * util/grub.d/10_kfreebsd.in: Likewise.
19972 * util/grub.d/10_linux.in: Likewise.
19973 * util/grub.d/20_linux_xen.in: Likewise.
19974 Reported by: Jamie Heilman. Fixes Debian bug #612564.
19975
7e735e43
CW
199762011-02-08 Colin Watson <cjwatson@ubuntu.com>
19977
19978 * include/grub/file.h (not_easly_seekable): Rename to ...
19979 (not_easily_seekable): ... this. Update all users.
19980
800f1881
CW
199812011-01-28 Colin Watson <cjwatson@ubuntu.com>
19982
19983 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
19984 grub-mkrescue.
19985
3281d3d6
VS
199862011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
19987
19988 * util/grub-mkimage.c (generate_image): Refuse to create the images
19989 bigger than the actual flash (512K) in Loongson machines. 512K is also
19990 the biggest chip supported by them.
19991
3533413c
VS
199922011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
19993
19994 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
19995
73ae4f4f
VS
199962011-01-22 Anthony DeRobertis <anthony@derobert.net>
19997
19998 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
19999 super_offset field.
20000
37f4f608
VS
200012011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
20002
20003 * util/grub-install.in: Ignore install device on platforms
20004 where it doesn't make sense. Always use UUIDs except on pc, efi and
20005 sparc64.
20006 Reported by: Daniel Kahn Gillmor.
20007
03a4ccb5
VS
200082011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
20009
20010 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
20011
ffc8f4d8
VS
200122011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
20013
20014 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
20015 (iterate_real): Don't rely on partition being non-NULL.
20016
80f23be7
VS
200172011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
20018
20019 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
20020 supported platforms. Put a compile time assert for this rather than
20021 generate a warning with 32-bit shift.
20022
5d4f4dd5
VS
200232011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
20024
20025 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
20026 logical expression more readable.
20027
e489601a
VS
200282011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
20029
20030 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
20031 even if some elements have a name.
20032 Reported by: Alexander GQ Gerasiov.
20033
96e0a6ea
CW
200342011-01-22 Colin Watson <cjwatson@ubuntu.com>
20035
20036 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
20037 path unreadable if `grub-probe -t abstraction' fails, for example if
20038 memberlist fails on an LVM volume group.
20039 Reported by: Darius Jahandarie.
20040
81431e2b
CW
200412011-01-22 Colin Watson <cjwatson@ubuntu.com>
20042
20043 * docs/grub.texi (Simple configuration): Document
20044 GRUB_PRELOAD_MODULES.
20045
5e79d66a
CW
200462011-01-17 Colin Watson <cjwatson@ubuntu.com>
20047
20048 * .bzrignore: Remove nonexistent grub-pbkdf2.
20049
646ada34
VS
200502011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
20051
20052 * configure.ac: Bump version to 1.99~rc1.
20053
04360337
VS
200542011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
20055
20056 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
20057 for safety.
20058
46c9db88
VS
200592011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
20060
20061 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
20062 module.
20063
200642011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
1d955d00
VS
20065
20066 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
20067
4fbf1852
VS
200682011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
20069
20070 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
20071 diskdevid.
20072
f1632d4d
VS
200732011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
20074
20075 Fix compilation on cygwin.
20076
20077 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
20078 -R .drectve on cygwin.
20079 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
20080 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
20081 (COND_CYGWIN): New condition.
20082 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
20083 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
20084 not @TARGET_OBJ2ELF@.
20085 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
20086 type to determine whether aux is to be used.
20087
0b5e127b
VS
200882011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
20089
20090 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
20091 realpath'ed device string.
20092 Handle floppy (somewhat).
20093 Issue error in unknown case rather than garbage.
20094 Reported by: Axel Beckert.
20095
173b71e9
VS
200962011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
20097
20098 * util/grub.d/00_header.in (load_video): Handle the case when no video
20099 drivers available.
20100 Thanks to: Axel Beckert.
20101
f8f479db
VS
201022011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
20103
20104 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
20105 variable. Fixes problem on big endian platforms.
20106
8fc0a245
VS
201072011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
20108
20109 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
20110 It doesn't work well there.
20111
b8494fbe
VS
201122011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
20113
20114 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
20115 warning.
20116 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
20117 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
20118 counter.
20119
b44a558c
VS
201202011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
20121
20122 Use alias->path rather than buggy "canon".
20123
20124 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
20125 (ofdisk_hash_add): New argument curcan. All users updated.
20126
51fa856c
CW
201272011-01-11 Colin Watson <cjwatson@ubuntu.com>
20128
20129 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
20130
9da068a5
VS
201312011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
20132
20133 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
20134 loadmask before doing any calculations. Use correct type for offset.
20135 (grub_linux_load64): Likewise.
20136
86205c94
CW
201372011-01-11 Colin Watson <cjwatson@ubuntu.com>
20138
20139 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
20140 with NULL.
20141 (console_grub_equivalences_unshift): Likewise.
20142 Reported by: Daniel Dehennin.
20143
4531a206
VS
201442011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
20145
20146 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
20147 (set_env_limn_ro): Likewise.
20148 (GRUB_MOD_INIT): Likewise.
20149 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
20150 ARRAY_SIZE while on it.
20151 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
20152 * grub-core/normal/context.c (grub_env_export): Move from here ...
20153 * grub-core/kern/env.c (grub_env_export): ... here.
20154 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
20155 prefix.
20156 * grub-core/kern/main.c (grub_main): Export root and prefix.
20157 * include/grub/env.h (grub_env_export): Export.
20158 Reported by: Seth Goldberg.
20159
45146057
VS
201602011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
20161
20162 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
20163 Take into account space used by ELF sections and multiboot palette.
20164 Reported by: Grégoire Sutre.
20165
f093110b
VS
201662011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
20167
20168 * BUGS: New file.
20169
3395fe52
VS
201702011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20171
20172 Pass more appropriate video id to Linux.
20173
20174 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
20175 grub_video_get_driver_id and variable gfxpayloadforcelfb to
20176 fill have_vga.
20177 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
20178 shift params->lfb_size.
20179 * include/grub/i386/linux.h: Make an enume out of have_vga values.
20180
c2fa6cbb
VS
201812011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20182
20183 * util/grub-menulst2cfg.c: Add missing include of misc.h.
20184
b3ff6ff0
VS
201852011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20186
20187 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
20188 separator and pass bootpath/devid even if only one of them is available.
20189 Reported by: Seth Goldberg.
20190
ae67942e
VS
201912011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20192
20193 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
20194 implementations bug on them.
20195
20196 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
20197 memory.
20198 (filter_memory_map): Likewise.
20199
d570097a
VS
202002011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20201
20202 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
20203 Reported by: nebuchadnezzar.
20204
a508e776
VS
202052011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20206
20207 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
20208 Reported by: nebuchadnezzar.
20209
dcb883b1
VS
202102011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20211
20212 Submenu default support.
20213
20214 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
20215 auto_boot. All users updated.
20216 Declared static.
20217 Handle chosen and default with submenus.
20218 (grub_menu_execute_with_fallback): Declared static.
20219 Don't notify failure if autobooted. Upper level does it.
20220 (menuentry_eq): New function.
20221 (get_entry_number): Use menuentry_eq.
20222 (show_menu): New parameter "autobooted". All users updated.
20223 (grub_show_menu): Likewise.
20224 * include/grub/normal.h (grub_show_menu): Likewise.
20225 * include/grub/menu.h (grub_menu_execute_entry): Removed.
20226 (grub_menu_execute_with_fallback): Likewise.
20227
6fef99b4
VS
202282011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20229
20230 * util/grub-mklayout.c (usage): Update help text.
20231
47a77af5
VS
202322011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20233
20234 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
20235
ce6bb3ee
VS
202362011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20237
20238 * util/grub-menulst2cfg.c (main): Trim the line.
20239
db87be2a
VS
202402011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20241
20242 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
20243 (grub_machine_init): Don't check amount of low memory as reportedly
20244 INT 12h can be broken and if low memory is too low we wouldn't have
20245 gotten into grub_machine_init anyway.
20246
c49849cc
VS
202472011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20248
20249 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
20250 (grub_machine_mmap_iterate): Take low memory into account
20251
b1969b30
VS
202522011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20253
20254 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
20255 badfs.
20256 Reported by: TiCPU.
20257
cf0eaf13
VS
202582011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20259
20260 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
20261 members errors.
20262
1f060f39
GS
202632011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
20264
20265 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
20266 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
20267
a21e5672
GS
202682011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
20269
20270 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
20271 openbsd and netbsd types being in part_bsd module.
20272
c88172fa
VS
202732011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
20274
20275 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
20276 (_FILE_OFFSET_BITS): Likewise.
20277 Reported by: Seth Goldberg.
20278
53798c4b
GS
202792011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20280
20281 * configure.ac: Check for libdevmapper header.
20282
e7121b69
VS
202832011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
20284
20285 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
20286 avoid aliasing.
20287 (fzap_lookup): Likewise.
20288 (dnode_get): Likewise.
20289 (make_mdn): Likewise.
20290 (zfs_mount): Likewise.
20291 (fzap_iterate): Use temporary pointer to avoid aliasing.
20292 (grub_zfs_read): Likewise.
20293 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
20294 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
20295 pointers to avoid aliasing.
20296 (grub_cmd_xnu_kernel64): Likewise.
20297 (grub_xnu_load_driver): Likewise.
20298
fc836af9
VS
202992011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
20300
20301 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
20302 aliasing warning.
20303 (grub_cmd_terminal_output): Likewise.
20304 Reported and tested by: Grégoire Sutre.
20305
f9f37648
VS
203062011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
20307
20308 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
20309 warning.
20310 Reported and tested by: Grégoire Sutre.
20311
ec1dfd63
VS
203122011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
20313
20314 * configure.ac: Do CPU substitution even if it's specified explicitly.
20315 Reported and tested by: Alain Greppin.
20316
9462775a
VS
203172011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
20318
20319 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
20320 Reported and tested by: Alain Greppin.
20321
0fd48e35
VS
203222011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
20323
20324 Satisfy some bison versions need for inttypes.h.
20325
20326 * grub-core/lib/posix_wrap/inttypes.h: New file.
20327 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
20328 (int16_t): Likewise.
20329 (int32_t): Likewise.
20330 (int64_t): Likewise.
20331 Reported and tested by: Alain Greppin.
20332
43f1bc83
VS
203332011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
20334
20335 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
20336 Silence spurious warning.
20337 Reported and tested by: Alain Greppin.
20338
64d1f041
SJ
203392011-01-07 Szymon Janc <szymon@janc.net.pl>
20340
20341 * docs/grub.texi (Support automatic decompression): Update with xz
20342 decompression support.
20343
25953e10
SJ
203442011-01-07 Szymon Janc <szymon@janc.net.pl>
20345
20346 Improve loaders' kernel command line handling.
20347
20348 * grub-core/lib/cmdline.c: New file.
20349 * include/grub/lib/cmdline.h: Likewise.
20350 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
20351 grub_create_loader_cmdline to create kernel command line.
20352 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
20353 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
20354 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
20355 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
20356 (linux): Add lib/cmdline.c on common.
20357
e72d259f
VS
203582011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
20359
20360 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
20361 inopos might be unaligned.
20362
c0cf26da
VS
203632011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
20364
20365 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
20366 endian transformations.
20367 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20368 Based on report by: Doug Nazar.
20369
0ca09e6c
DN
203702011-01-07 Doug Nazar <nazard.michi@gmail.com>
20371
20372 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
20373 array->members[i].start_sector.
20374 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
20375
014b6806
VS
203762011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
20377
20378 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
20379 Reported and tested by: Grégoire Sutre.
20380
415502c2
CW
203812011-01-06 Colin Watson <cjwatson@ubuntu.com>
20382
20383 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
20384 avoid causing test failures by clearing the screen.
20385
71b6a2b7
CW
203862011-01-06 Colin Watson <cjwatson@ubuntu.com>
20387
20388 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
20389 Fix prefix check to handle the case where dir ends with a slash
20390 (most significantly, "/" itself).
20391 Reported by: Michael Vogt.
20392
b3f8d28a
VS
203932011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
20394
20395 Run terminfo_cls on initing terminfo output to clear the screen and
20396 move the cursor to (0,0).
20397
20398 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
20399 Call grub_terminfo_output_init.
20400 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
20401 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
20402 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
20403
4c3e4f37
VS
204042011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
20405
20406 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
20407 only when needed.
20408
488f71f1
VS
204092011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
20410
20411 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
20412 CTRL.
20413
18a38098
VS
204142011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
20415
20416 The E820 type 5 is BADRAM, not EXEC_CODE.
20417
20418 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
20419 (GRUB_E820_BADRAM): New define.
20420 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
20421 into reserved. Propagate BADRAM.
20422 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
20423 (GRUB_E820_BADRAM): New define.
20424
9eae2084
VS
204252011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
20426
20427 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
20428 Ignore the memory post-4G.
20429 (grub_relocator_firmware_alloc_region): Additional debug statement.
20430
ebc71d28
VS
204312011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
20432
20433 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
20434 names.
20435 Reported by: David Pravec.
20436
446fa400
VS
204372011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
20438
20439 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
20440 BIOSes.
20441
a0159f37
VS
204422011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
20443
20444 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
20445 Prevent overflow.
20446 (grub_reed_solomon_recover): Likewise.
20447
e5146ca1
VS
204482011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
20449
20450 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
20451
204522011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
95638499
VS
20453
20454 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
20455 variable.
20456
5b1bdf12
CW
204572011-01-04 Colin Watson <cjwatson@ubuntu.com>
20458
20459 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
20460 descriptions of extract_legacy_entries_source and
20461 extract_legacy_entries_configfile.
20462 Reported by: Seung Soo, Ha.
20463
99d925aa
CW
204642011-01-03 Colin Watson <cjwatson@ubuntu.com>
20465
20466 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
20467 on devices that do not implement function 0.
20468
4af0504b
DV
204692011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
20470
20471 * grub-core/fs/hfsplus.c: Make parent unsigned.
20472 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
20473 overflows.
20474 (grub_hfsplus_cmp_extkey): Likewise
20475
469ee10a
VS
204762011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
20477
20478 * util/grub-install.in: Correctly use bootloader_id and not
20479 GRUB_DISTRIBUTOR on efibootmgr line.
20480
323a8e9c
VS
204812011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
20482
20483 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
20484
1b394975
IC
204852010-12-31 Ian Campbell <ijc@hellion.org.uk>
20486
20487 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
20488 Xen and reorder menu item wording to make it clearer that this entry
20489 will launch Xen. Print separate messages when loading Xen and
20490 Linux.
20491
275bff5f
VS
204922010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
20493
20494 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
20495 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
20496 loop in case of incorrect amiga partmap.
20497
307806cb
VS
204982010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
20499
20500 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
20501 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
20502 Reported by:EHeM.
20503
b12b923e
VS
205042010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
20505
20506 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
20507 spurious warning.
20508 Reported by: crocket
20509
14b48a19
VS
205102010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
20511
20512 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
20513 Preload EFIemu.
20514 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
20515
693db2df
VS
205162010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
20517
20518 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
20519 is loaded
20520 (grub_cmd_xnu_kextdir): Likewise.
20521 (grub_cmd_xnu_splash): Likewise.
20522
c7638645
VS
205232010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
20524
20525 Avoid using Reed-Solomon with 0 redundancy.
20526
20527 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
20528 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
20529 or 0 redundancy.
20530 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
20531 (grub_reed_solomon_recover): Likewise.
20532
25dd4780
VS
205332010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
20534
20535 Don't use disk subsystem in freebsd_boot.
20536
20537 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
20538 (freebsd_biosdev): Likewise.
20539 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
20540 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
20541
0b2db943
VS
205422010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
20543
20544 Handling of files of unknown size is currently limited. They can't be
20545 used e.g. for initrd or modules. Moreover gzip handling of not
20546 easily seekable files is buggy. Disable unknown file size for now. May
20547 be inefficient but works.
20548
20549 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
20550 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
20551
5c408d0f
MP
205522010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
20553
20554 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
20555 floppy probe.
20556
190a011a
JD
205572010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
20558
20559 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
20560
022d01b8
SL
205612010-12-25 Shea Levy <shlevy>
20562
20563 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
20564
c4855fdc
VS
205652010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
20566
20567 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
20568 Windows Server 2008.
20569 Reported by: Devin Giddings.
20570
0354b867
VS
205712010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
20572
20573 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
20574 writing an error message because of async power management.
20575 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
20576 (grub_reboot): Likewise.
20577
ab66c69f
JU
205782010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
20579
20580 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
20581 keep unit tests from failing when they shouldn't.
20582
1426ef35
CW
205832010-12-21 Colin Watson <cjwatson@ubuntu.com>
20584
20585 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
20586 previous patch increased the size of the RS code by 20 bytes (at
20587 least with gcc-4.4), so increase this by 20 bytes to match.
20588 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
20589
20641b6b
CW
205902010-12-21 Colin Watson <cjwatson@ubuntu.com>
20591
20592 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
20593 scratch area. Make sure to initialise chosen in standalone mode as
20594 well as non-standalone.
20595 Reported by: Robert Hooker and Andy Whitcroft.
20596 Tested by: Andy Whitcroft.
20597
d060ad60
CW
205982010-12-21 Colin Watson <cjwatson@ubuntu.com>
20599
20600 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
20601 constructing a new unescaped string and passing it to grub_xputs in
20602 one go, rather than passing characters to grub_printf one at a time.
20603
b889cfad
CW
206042010-12-21 Colin Watson <cjwatson@ubuntu.com>
20605
20606 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
20607 initialising utf16.
20608
4e01b6c8
CW
206092010-12-21 Colin Watson <cjwatson@ubuntu.com>
20610
20611 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
20612 comment. Add an extra layer of quotation, requiring the output of
20613 this function to be used in a printf format string.
20614 (gettext_printf): New function.
20615 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
20616 Extract translatable strings from here-documents and use a temporary
20617 variable instead, so that xgettext can find them.
20618 * util/grub.d/10_kfreebsd.in: Likewise.
20619 * util/grub.d/10_linux.in: Likewise.
20620 * util/grub.d/20_linux_xen.in: Likewise.
20621
20622 * po/grub.d.sed: New file.
20623 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
20624 arguments. Set c-format flags on all strings extracted from
20625 util/grub.d/ (xgettext refuses to include these itself for strings
20626 it extracted from a shell file, but these really are c-format).
20627
5318fe98
VS
206282010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
20629
20630 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
20631 Avoid next pointing to nowhere.
20632
6c85b743
VS
206332010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
20634
20635 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
20636 rather than assuming than rootblock is exactly in the middle.
20637 (grub_affs_label): Likewise.
20638
a2a08a35
VS
206392010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
20640
20641 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
20642 reserved_first_sector to 0.
20643 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
20644 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
20645 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
20646
7059d1ec
VS
206472010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
20648
20649 Fix handling of UTF-16 UDF labels.
20650
20651 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
20652 (read_string): .. here.
20653 (grub_udf_label): Use read_string.
20654
30aff4cb
BC
206552010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
20656
20657 * grub-core/normal/menu_entry.c (run): Execute commands from menu
20658 editor under argument scope.
20659 Reported by: Jordan Uggla
20660
5cf86f4b
VS
206612010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
20662
20663 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
20664
32570200
CW
206652010-12-18 Colin Watson <cjwatson@ubuntu.com>
20666
20667 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
20668 line, and other keys scroll an entire page (previous handling was
20669 for \r and \n to scroll a page and other keys to scroll two lines).
20670
e1dffcf2
VS
206712010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
20672
20673 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
20674 Set ptrdest to correct get_physical_target_address rather than
20675 incorrect get_virtual_current_address.
20676
b04298cf 206772010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
20678
20679 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
20680 correct cat to grub_uint8_t * rather than grub_uint32_t *.
20681
5367ecd3
CW
206822010-12-10 Colin Watson <cjwatson@ubuntu.com>
20683
20684 * .bzrignore: Ignore grub-core/rs_decoder.S.
20685
1fb430f8
CW
206862010-12-10 Colin Watson <cjwatson@ubuntu.com>
20687
20688 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
20689 .mo/.mo.gz opening sequence to ...
20690 (grub_mofile_open_lang): ... here.
20691 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
20692 * util/grub.d/00_header.in (grub_lang): Include country part of
20693 locale.
20694 Reported by: Mario Limonciello.
20695
a94a6671
RM
206962010-12-09 Robert Millan <rmh@gnu.org>
20697
20698 * NEWS: Document addition of ZFS support.
20699
24b7938b
CW
207002010-12-04 Colin Watson <cjwatson@ubuntu.com>
20701
20702 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
20703 rather than `/ 2', as the latter requires -Wa,--divide which would
20704 require bumping our minimum binutils version.
20705
bddc3ef6
BC
207062010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
20707
20708 * util/grub-script-check.c (main): Print script line number on
20709 error.
20710
bf78d5b2
RM
207112010-12-01 Robert Millan <rmh@gnu.org>
20712
20713 * grub-core/fs/zfs/zfs.c: New file.
20714 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
20715 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
20716 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
20717 * grub-core/fs/zfs/zfsinfo.c: Likewise.
20718
20719 * include/grub/zfs/dmu.h: Likewise.
20720 * include/grub/zfs/dmu_objset.h: Likewise.
20721 * include/grub/zfs/dnode.h: Likewise.
20722 * include/grub/zfs/dsl_dataset.h: Likewise.
20723 * include/grub/zfs/dsl_dir.h: Likewise.
20724 * include/grub/zfs/sa_impl.h: Likewise.
20725 * include/grub/zfs/spa.h: Likewise.
20726 * include/grub/zfs/uberblock_impl.h: Likewise.
20727 * include/grub/zfs/vdev_impl.h: Likewise.
20728 * include/grub/zfs/zap_impl.h: Likewise.
20729 * include/grub/zfs/zap_leaf.h: Likewise.
20730 * include/grub/zfs/zfs.h: Likewise.
20731 * include/grub/zfs/zfs_acl.h: Likewise.
20732 * include/grub/zfs/zfs_znode.h: Likewise.
20733 * include/grub/zfs/zil.h: Likewise.
20734 * include/grub/zfs/zio.h: Likewise.
20735 * include/grub/zfs/zio_checksum.h: Likewise.
20736
20737 * Makefile.util.def: Build ZFS into libgrubmods.
20738 * grub-core/Makefile.core.def: Build zfs.mod.
20739
3f0f3831
SJ
207402010-11-30 Szymon Janc <szymon@janc.net.pl>
20741
20742 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
20743 variable.
20744 * grub-core/commands/wildcard.c (match_files): Likewise.
20745
3a4253b2
RM
207462010-11-30 Robert Millan <rmh@gnu.org>
20747
20748 * grub-core/loader/i386/bsd.c
20749 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
20750 whether kernel is loaded using grub_loader_is_loaded(), rather
20751 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
20752 certain error conditions.
20753
8c317b27
RM
207542010-11-30 Robert Millan <rmh@gnu.org>
20755
c5c9cd3e
RM
20756 * grub-core/commands/echo.c: Include `<grub/term.h>'.
20757 (grub_cmd_echo): Call grub_refresh() after printing a message.
8c317b27 20758
49d3ab46
VS
207592010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
20760
20761 Avoid using tricks for initialising endian variables.
20762
20763 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
20764 Make const.
20765 (GRUB_MOD_INIT): Don't byte-swap.
20766 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
20767 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
20768 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
20769 (grub_swap_bytes32_compile_time): Likewise.
20770 (grub_cpu_to_le32_compile_time): Likewise.
20771 (grub_cpu_to_le16_compile_time): Likewise.
20772
f420a804
VS
207732010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
20774
20775 * util/grub-setup.c (setup): Stop recommending --force. People who
20776 understand the dangers of blocklists are able to find this option
20777 anyway and the ones who don't shouldn't use it anyway.
20778
4e7db17b
RM
207792010-11-26 Robert Millan <rmh@gnu.org>
20780
20781 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
20782 Update all users.
20783
9be57a0d
CW
207842010-11-26 Colin Watson <cjwatson@ubuntu.com>
20785
20786 Fix LVM-on-RAID probing.
20787
20788 * util/grub-probe.c (probe): Remember which disk was detected as
20789 RAID (perhaps an LVM physical volume). Use that disk's raidname
20790 rather than that of the top-level disk.
20791
2c7859b3 207922010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
7e623b0d 20793
d7647bb6
BC
20794 Fix cmdline argument quotes for setparams command of menuentry
20795 definitions.
7e623b0d
BC
20796
20797 * grub-core/commands/menuentry.c (setparams_prefix): Use single
20798 quotes for arguments.
f866fe80 20799 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
7955bea0 20800 grub_strchrsub function instead.
f866fe80 20801
7955bea0 20802 * include/grub/misc.h (grub_strchrsub): New function.
7e623b0d 20803
74f72a64
CW
208042010-11-24 Colin Watson <cjwatson@ubuntu.com>
20805
20806 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
20807 effort by skipping "." and ".." entries up-front.
20808 Suggested by: Michael Lazarev.
20809
5a407278
CW
208102010-11-24 Colin Watson <cjwatson@ubuntu.com>
20811
20812 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
20813 ldflags to ldadd, to fix link line ordering.
20814 (none_decompress): Likewise.
20815
3030d8ec
CW
208162010-11-24 Colin Watson <cjwatson@ubuntu.com>
20817
20818 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
20819 platforms.
20820 (grub-emu-lite): Remove kern/emu/cache.S.
20821
b7fbac12
CW
208222010-11-23 Colin Watson <cjwatson@ubuntu.com>
20823
20824 * util/deviceiter.c (compare_devices): If the by-id link for a
20825 device couldn't be resolved, fall back to sorting by the by-id link
20826 rather than segfaulting.
20827 Reported and tested by: Daniel Mierswa.
20828
5225f328
CW
208292010-11-23 Colin Watson <cjwatson@ubuntu.com>
20830
20831 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
20832 ldflags, to fix link line ordering.
20833
038b3ce8
CW
208342010-11-23 Colin Watson <cjwatson@ubuntu.com>
20835
20836 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
20837 linkers are picky about this.
20838
bf16e98e
CW
208392010-11-23 Colin Watson <cjwatson@ubuntu.com>
20840
20841 * grub-core/Makefile.am (command.lst): Adjust sed expression
20842 ordering so that extended and priority commands aren't treated as
20843 ordinary commands.
20844
7242bab6
CW
208452010-11-23 Colin Watson <cjwatson@ubuntu.com>
20846
20847 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
20848 Remove byte-swapping function calls, which are not valid in
20849 structure initialisers.
20850 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
20851 non-const.
20852 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
20853 grub_gpt_partition_type_bios_boot.
20854
14e8b279
CW
208552010-11-22 Colin Watson <cjwatson@ubuntu.com>
20856
20857 Fix test program build on GNU/kFreeBSD.
20858
20859 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
20860 $(LIBNVPAIR)' library dependencies.
20861
e6f63338 208622010-11-22 Colin Watson <cjwatson@ubuntu.com>
03df09c7
CW
20863
20864 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
20865
cf8ffc38
CW
208662010-11-22 Colin Watson <cjwatson@ubuntu.com>
20867
20868 * util/grub-install.in: Remove excessive quoting that broke
20869 installations to RAID devices.
20870
7f8b0fd7
VS
208712010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
20872
20873 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
20874 bootloader version instead of 0.
20875
dfd240b1
VS
208762010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
20877
20878 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
20879 warning.
20880
7b61e609
VS
208812010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
20882
20883 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
20884 retrieve the metadat sector if size isn't known.
20885 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20886
9dfe92d0
RM
208872010-11-18 Robert Millan <rmh@gnu.org>
20888
20889 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
20890 with grub_memcmp().
20891
41cc919e
VS
208922010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
20893
20894 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
20895 arrow.
20896 Reported by: Jordan Uggla.
20897
1afcc914
VS
208982010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
20899
20900 Make better UTF compliant.
20901
20902 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
20903 sequences as incorrect.
20904 (grub_is_valid_utf8): Likewise.
20905 (grub_utf8_to_ucs4): Likewise.
20906 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
20907 (grub_ucs4_to_utf8_alloc): Likewise.
20908 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
20909
f1808884
VS
209102010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
20911
20912 Make legacy_source behave like source.
20913
20914 * grub-core/commands/legacycfg.c (legacy_file): Don't call
20915 grub_show_menu.
20916 (grub_cmd_legacy_source): Call grub_show_menu if needed.
20917
24ec575b
CW
209182010-11-16 Colin Watson <cjwatson@debian.org>
20919
20920 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
20921 (-Wunused implies -Wunused-parameter, but not vice versa).
20922
72b7c7aa
CW
209232010-11-16 Colin Watson <cjwatson@ubuntu.com>
20924
20925 * configure.ac: Make error messages less confusing by testing for
20926 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
20927 accepted, but produces a diagnostic if something else is wrong).
20928
e98937aa
VS
209292010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
20930
20931 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
20932 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
20933 (now unused).
20934 (grub_keyboard_controller_init)
20935 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
20936 read the initial state since controller isn't inited yet.
20937
f6bbabc3
VS
209382010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
20939
20940 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
20941 allocate_regbeg may need to create new chunk header.
20942
22e7dbb2
VS
209432010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
20944
20945 Fix quoting in legacy parser.
20946
20947 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
20948 single quotes.
20949 (grub_legacy_parse): Likewise.
20950 Reported by: Jordan Uggla.
20951 Tested by: Jordan Uggla.
20952
03f80960
VS
209532010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
20954
20955 Don't add -lgcc on i386 and x86_64.
20956
20957 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
20958 * conf/Makefile.common (LDADD_KERNEL): Likewise.
20959 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
20960
779dc15b
VS
209612010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
20962
20963 * configure.ac: Add -Wno-trampolines when supported.
20964
d20a3b37
MV
209652010-11-14 Modestas Vainius <modax@debian.org>
20966
20967 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
20968 fakeraid.
20969
e5360933
GC
209702010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
20971
20972 Add generic logical block size support for UDF.
20973
20974 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
20975 (GRUB_UDF_BLKSZ): Removed.
20976 (struct grub_udf_data): New field "lbshift" to hold the logical block
20977 size of the file system in log2 format. All users updated.
20978 (sblocklist): Change type to unsigned.
20979 (grub_udf_mount): Change type of "sblklist" to unsigned.
20980 Move AVDP search before VRS recognition, because the latter requires
20981 knowledge of the logical block size, which is detected during the
20982 former.
20983 Detect and validate logical block size during AVDP search, adding
20984 support for block sizes 512, 1024 and 4096.
20985 Make VRS recognition independent of block size.
20986
cb0229c5
GC
209872010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
20988
20989 Properly handle deleted files on UDF.
20990
20991 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
20992 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
20993 set.
20994
406858a8
GC
209952010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
20996
20997 Support reading files larger than 2 GiB.
20998
20999 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
21000 "offset" to grub_off_t.
21001 (grub_udf_read_file): Likewise for parameter "pos".
21002
130da6a7
VS
210032010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21004
21005 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
21006 unavailable.
21007 (Simple configuration): Refer to Changes from GRUB Legacy about
21008 save_env availability.
21009
65e93f6b
VS
210102010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21011
21012 * util/grub-install.in: Ignore empty partition table detection
21013 instead of trying to include part_ module.
21014
1fd08bf1
VS
210152010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21016
21017 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
21018 LVM on RAID support.
21019
de1a024f
VS
210202010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21021
21022 Properly define WORDS_BIGENDIAN in wrapped environments.
21023
21024 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
21025 definition.
21026 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
21027
21028 Reported by: Manoel Rebelo Abranches.
21029 Tested by: Manoel Rebelo Abranches.
21030
bc5dd0b9
VS
210312010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
21032
21033 * util/grub-mkconfig.in: Fix quoting.
21034
58c184be
VS
210352010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
21036
21037 Support big ext2 files.
21038
21039 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
21040 (grub_ext2_read_block): Support triple indirect blocks.
21041 (grub_ext2_read_file): Use 64-bit types and read size_high.
21042 (grub_ext2_open): Read size_high.
21043 Reported by: Ximin Luo.
21044 Tested by: Manoel Rebelo Abranches.
21045
5f0c02b3
VS
210462010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
21047
21048 * util/grub-install.in: Handle filenames containing spaces.
21049 Reported by: Jordan Uggla.
21050 Tested by: Jordan Uggla.
21051
4417aae6
VS
210522010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
21053
21054 * util/grub-mkconfig.in (grub_script_check): New variable.
21055 Use grub_script_check instead of grub-script-check.
21056 Reported by: Barry Jackson.
21057
7625a68e
VS
210582010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
21059
21060 * docs/grub.texi (menu): Correct the order.
21061 Reported by: D. Hugh Redelmeier.
21062
10001ac5
VS
210632010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
21064
21065 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
21066 jump.
21067
9c4cf53b
MRA
210682010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
21069
10001ac5
VS
21070 * include/grub/elfload.h (grub_elf32_size): New parameter.
21071 All users updated.
9c4cf53b
MRA
21072 Return maximum segments alignment.
21073 (grub_elf64_size): Likewise.
21074 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
21075 Return maximum segments alignment.
21076 (grub_elf64_size): Likewise.
21077 * grub-core/loader/powerpc/ieee1275/linux.c:
10001ac5
VS
21078 (grub_linux_claimmap_iterate): New function. Uses the
21079 "available" property in the "memory" node for memory allocation
21080 for kernel in the PowerPC loader.
9c4cf53b
MRA
21081 (grub_linux_load32): Correctly find linux entry point offset.
21082 (grub_linux_load64): Likewise.
21083
d2bf06bf
RM
210842010-11-07 Robert Millan <rmh@gnu.org>
21085
21086 On mips-yeeloong, build with -march=loongson2f when this flag is
21087 available (GCC >= 4.4).
21088 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
21089 `-march=mips3'.
21090 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
21091 or otherwise add -march=mips3.
21092
898c99a2
BC
210932010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
21094
87220a68
BC
21095 Suppress shell expansion on echo '*' and echo "*" like cases.
21096 Reported by: Jordan Uggla.
898c99a2
BC
21097
21098 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
21099 string arguments before shell expansion.
21100 * tests/grub_cmd_echo.in: New testcases.
21101
4f9b406a
RM
211022010-11-07 Robert Millan <rmh@gnu.org>
21103
21104 * conf/mips-qemu-mips.rmk: Remove stale file from previous
21105 transition.
21106
80c6d25e
VS
211072010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
21108
21109 * grub-core/kern/emu/hostdisk.c
21110 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
21111
4a1a0153
VS
211122010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
21113
21114 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
21115 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
21116 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
21117
34706ddc
VS
211182010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
21119
21120 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
21121
6972dea9
VS
211222010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
21123
21124 * util/grub-install.in: Replace useless recomendation to pass
21125 --modules with a recomendation to report a bug.
21126
9c693bd6
VS
211272010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
21128
21129 Properly register serial terminfo.
21130 Reported by: Jordan Uggla
21131
21132 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
21133 const.
21134 (grub_serial_terminfo_output_template): Likewise.
21135 (grub_cmd_serial): Register "serial" with terminfo.
21136 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
21137 grub_serial_terminfo_output.
21138
6c9e4c0c
RM
211392010-11-05 Robert Millan <rmh@gnu.org>
21140
21141 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
21142 needed).
21143
b9b3839f
RM
211442010-11-05 Robert Millan <rmh@gnu.org>
21145
21146 On Yeeloong, pass machine type information to Linux.
21147
21148 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
21149 (LOONGSON_MACHTYPE): New macro, set to
21150 "machtype=lemote-yeeloong-2f-8.9inches".
21151 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
21152 additional argument to Linux.
21153
1a3aaff4
RM
211542010-11-04 Robert Millan <rmh@gnu.org>
21155
21156 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
21157 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
21158 (its SATA disks are detected as slaveless IDE master drives on
21159 kFreeBSD).
21160 Reported by Carsten Aulbert.
21161
a75f4f62
CW
211622010-11-02 Colin Watson <cjwatson@ubuntu.com>
21163
21164 * util/bin2h.c (main): Fix spelling error in generated output.
21165
33b4b0c6
GS
211662010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
21167
21168 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
21169
2b36fbf4
VS
211702010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
21171
21172 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
21173 vga= option is supplied.
21174
74aaf558
VS
211752010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
21176
21177 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
21178 * util/grub.d/10_kfreebsd.in: Likewise.
21179 * util/grub.d/10_linux.in: Likewise.
21180 * util/grub.d/20_linux_xen.in: Likewise.
21181
6428dec3
VS
211822010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
21183
21184 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
21185 argument as an argument to no-argument option.
21186
f8729d98
VS
211872010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
21188
21189 * util/grub.d/10_linux.in: Add missing load_video with explicit
21190 GRUB_GFXPAYLOAD_LINUX.
21191
89d68fa6
VS
211922010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
21193
21194 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
21195
3a1197cd
VS
211962010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
21197
21198 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
21199 elements with invlid index.
21200 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21201 * grub-core/disk/raid.c (insert_array): Automatically reallocate
21202 members.
21203 * include/grub/raid.h (grub_raid_member): New struct.
21204 (grub_raid_array): Transform devices and start_sector into usage of
21205 grub_raid_member. All users updated
21206 (allocated_devs): New member.
21207
71574288
VS
212082010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
21209
21210 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
21211 is modified
21212
8d40ec65
BC
212132010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
21214
21215 NetBSD build fix for getline function conflict from gnulib.
21216
21217 * Makefile.util.def (libgrubkern.a): New library for grub kernel
21218 components that depend on gnulib headers.
21219 (libgrubmods.a): Renamed from earlier libgrub.a.
21220 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
21221
95b9257e
VS
212222010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
21223
21224 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
21225 install rather than creating a broken install.
21226
26c53dc6
VS
212272010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
21228
21229 * util/grub-setup.c (argp): Remove misleading example of installing to
21230 a partition.
21231
4171b3c5
VS
212322010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
21233
21234 * util/grub-setup.c (setup): Clarify the error message.
21235
18568d18
VS
212362010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
21237
21238 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
21239
4f6a2e21
VS
212402010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
21241
21242 * grub-core/kern/emu/misc.c
21243 (grub_make_system_path_relative_to_its_root)
21244 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
21245
212462010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5c81f8b3
VS
21247
21248 * grub-core/kern/emu/misc.c
21249 (grub_make_system_path_relative_to_its_root): Revert r2882.
21250
e138c458
VS
212512010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
21252
21253 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
21254 useless field head. All users updated.
21255 (free_subchunk): Correct handling of IN_REGION subchunk.
21256
0cbcdf0e
CW
212572010-10-22 Colin Watson <cjwatson@ubuntu.com>
21258
21259 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
21260 (Supported kernels): Likewise.
21261
b65ea155
GS
212622010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
21263
21264 Make mktemp invocations portable.
21265
21266 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
21267 exit if mktemp fails.
21268 * tests/grub_script_blockarg.in: Likewise.
21269 * tests/partmap_test.in: Likewise.
21270 * tests/util/grub-shell-tester.in: Likewise.
21271 * tests/util/grub-shell.in: Likewise.
21272 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
21273 * Makefile.am: Likewise, and chain shell commands with `&&'
21274 instead of ';'.
21275 * util/grub-mkrescue.in: Use the same explicit template as above, and
21276 exit if mktemp fails.
21277
05f43cdd
BC
212782010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
21279
21280 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
21281 Linux kernel, reported by Dennis Schridde.
21282
800e6a9b
SJ
212832010-10-17 Szymon Janc <szymon@janc.net.pl>
21284
21285 * grub-core/normal/auth.c (grub_auth_check_authentication):
21286 Set-but-not-used variable removed.
21287
d82df574
VS
212882010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
21289
21290 * docs/grub.texi (GNU/Linux): Document APM unavailability with
21291 32-bit linux protocol.
21292
7bced458
VS
212932010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
21294
21295 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
21296 cursor shape for sanity.
21297
5b027690
VS
212982010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
21299
21300 * docs/grub.texi (Installation): Document buggy BIOS install.
21301
ba5f65cf
VS
213022010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
21303
21304 * docs/grub.texi (Installation): Indent.
21305
fdf2ec9c
VS
213062010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
21307
21308 * util/grub-setup.c (setup): New parameter allow_floppy.
21309 (arguments): New member allow_floppy.
21310 (argp_parser): Handle --allow-floppy.
21311 (main): Pass allow_floppy.
21312 * util/grub-install.in: New option --allow-floppy passed though to
21313 grub-setup.
21314
861dfd4c
VS
213152010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
21316
21317 * util/grub-install.in: Handle partitionless disks.
21318
f77a8c24
VS
213192010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
21320
21321 * util/grub-setup.c (setup): Don't clean blocklists before readability
21322 verfification.
21323
27d9ee32
VS
213242010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
21325
21326 * docs/grub.texi (Installation): Document embedding zone. Remove
21327 obsolete grub-install example.
21328
6bdda8f8
SJ
213292010-10-16 Szymon Janc <szymon@janc.net.pl>
21330
21331 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
21332 Set-but-not-used variable ifdef'ed.
21333 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
21334 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
21335 variable removed.
21336 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
21337 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
21338 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
21339 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
21340 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
21341 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
21342 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
21343 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
21344 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
21345 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
21346 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
21347 Likewise.
21348
e19b016b
VS
213492010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
21350
21351 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
21352 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
21353 enum value.
21354
6c8d3002
VS
213552010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
21356
21357 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
21358 synonym to _S5_. Needed for some DSDTs.
21359
c32b51c9
VS
213602010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
21361
21362 Userspace ACPI parser debugging.
21363
21364 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
21365 headers and add relevant defines. Don't include standard headers.
21366 (main) [GRUB_DSDT_TEST]: New function.
21367 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
21368 Don't declare functions.
21369
fbfbeb39
VS
213702010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
21371
21372 Remove dead grub_efi_mm_fini.
21373
21374 * grub-core/kern/efi/mm.c (allocated_page): Removed.
21375 (ALLOCATED_PAGES_SIZE): Likewise.
21376 (MAX_ALLOCATED_PAGES): Likewise.
21377 (allocated_pages): Likewise.
21378 (grub_efi_allocate_pages): Don't record allocated pages.
21379 (grub_efi_free_pages): Likewise.
21380 (grub_efi_mm_init): Likewise.
21381 (grub_efi_mm_fini): Removed.
21382
65f7ed7c
VS
213832010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
21384
21385 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
21386 (grub_efi_mm_init): Take into account the memory map size increase.
21387
24977b44
VS
213882010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
21389
21390 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
21391 (serial_hw_put): Wait based on real time rather than port reads. Don't
21392 roken ports.
21393 * include/grub/serial.h (grub_serial_port): New field broken.
21394
1eb01cd2
RM
213952010-10-16 Robert Millan <rmh@gnu.org>
21396
21397 * grub-core/kern/emu/misc.c
21398 (grub_make_system_path_relative_to_its_root): Fix premature return
21399 when processing non-root ZFS filesystems.
5f8b440b 21400 Reported by Sergio Talens-Oliag.
1eb01cd2 21401
2d5fed60
RM
214022010-10-15 Robert Millan <rmh@gnu.org>
21403
21404 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
21405 guarantee compressed ones are processed first.
21406
d0f4c1ea
VS
214072010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
21408
21409 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
21410 grub_efiemu_autocore.
21411
d87c681f
VS
214122010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
21413
21414 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
21415 rather than 0x1b.
21416 (grub_console_getkey): Use correct jae opcode rather than ja.
21417
219b3564
RM
214182010-10-12 Robert Millan <rmh@gnu.org>
21419
21420 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
21421 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
21422 variable. All references updated.
21423
21424 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
21425
20c6bb7e
VS
214262010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
21427
21428 Correctly distinguish mdraid flavours.
21429
21430 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
21431 (insert_array): New argument raid.
21432 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
21433 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
21434 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
21435
74baff84
VS
214362010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
21437
21438 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
21439 handling of special keys.
21440
3ef068df 214412010-10-02 Aleš Nesrsta <starous@volny.cz>
21442
c7980ad9
VS
21443 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
21444 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
3ef068df 21445
a9455194 214462010-10-02 Aleš Nesrsta <starous@volny.cz>
21447
c7980ad9
VS
21448 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
21449 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
21450 users updated.
a9455194 21451 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
c7980ad9 21452 Use right endpoint when querying descriptor.
a9455194 21453
441cfe65
VS
214542010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
21455
21456 Clear out 0x80 color bit on EFI.
21457 Tested by: decoder
21458 Reported by: decoder and meta tech.
21459
21460 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
21461 (grub_console_setcolorstate): Clear out 0x80 bit.
21462 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
21463 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
21464 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
21465
bf26bcc4
VS
214662010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
21467
21468 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
21469 Set to "auto".
21470
6e3c515d
VS
214712010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
21472
21473 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
21474 mo_file after freeing.
21475
e6d983ba
VS
214762010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
21477
21478 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
21479
74ccb5b5
VS
214802010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
21481
21482 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
21483 flags.
21484
17821956
VS
214852010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
21486
21487 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
21488 usage.
21489
ee74fa48
VS
214902010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
21491
21492 Put terminfo into core on ieee1275 and yeeloong (needed for console).
21493
21494 * gentpl.py: New groups terminfoinkernel and terminfomodule.
21495 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
21496 and terminfo.h when needed.
21497 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
21498 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
21499 (terminfo): Enable only on terminfokernel.
21500 (extcmd): Likewise.
21501 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
21502 * include/grub/lib/arg.h: Likewise.
21503 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
21504 incorrect usage of ->.
21505
aa438e68
VS
215062010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
21507
21508 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
21509 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
21510
57994012
VS
215112010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
21512
21513 Fix coreboot compilation.
21514
21515 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
21516 Take VBE info into account even if only text is supported.
21517 (fill_vbe_info): Take into account the case when only VGA text
21518 is supported.
21519 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
21520 on coreboot, multiboot and qemu.
21521
2a406611
VS
215222010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
21523
21524 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
21525 debug messages.
21526 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
21527
d33613fc
VS
215282010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
21529
21530 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
21531 parameters.
21532
44a1b432
VS
215332010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
21534
21535 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
21536 if they were BSD-style.
21537
edde54e6
VS
215382010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
21539
21540 * grub-core/boot/i386/pc/lnxboot.S: Replace
21541 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
21542 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
21543
b65830fa
VS
215442010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
21545
21546 Write embedding zone using Reed-Solomon.
21547
21548 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
21549 * grub-core/Makefile.am (rs_decoder.S): New target.
21550 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
21551 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
21552 (multiboot): Move to RS part.
21553 (post_reed_solomon): New label.
21554 (grub_boot_drive): Move to non-RS part since it's modified in memory
21555 on boot.
21556 Include rs_decoder.S.
21557 * grub-core/lib/reed_solomon.c: New file.
21558 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
21559 New definition.
21560 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
21561 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
21562 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
21563 * include/grub/partition.h (grub_partition_map): Change prototype of
21564 embed to allow returning additional sectors.
21565 * include/grub/reed_solomon.h: New file.
21566 * util/grub-setup.c (setup): Handle Reed-Solomon.
21567
0b4b227f
CW
215682010-09-28 Colin Watson <cjwatson@ubuntu.com>
21569
21570 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
21571 i386 and x86-64 definedness tests.
21572
f772623b
YB
215732010-09-27 Yves Blusseau <blusseau@zetam.org>
21574
21575 Fix generation of kernel_syms.lst
21576
21577 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
21578 ASM_PREFIX
21579
8e57a6ca
RM
215802010-09-26 Robert Millan <rmh@gnu.org>
21581
21582 Support degraded ZFS arrays in "grub-probe -t device" resolution.
21583
21584 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
21585 the pool is an array of devices, iterate through it and return the
21586 first device that passes a stat() test (instead of blindly returning
21587 the first one).
21588
f9130836
RM
215892010-09-26 Robert Millan <rmh@gnu.org>
21590
21591 Build fixes for GNU/kFreeBSD.
21592
21593 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
21594 to programs that require ZFS conversion.
21595 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
21596 kernels that don't have FLOPPY_MAJOR.
21597
96510faf
BC
215982010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
21599
21600 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
21601
449333eb
BC
216022010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
21603
21604 Fix grub-emu build.
21605
21606 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
21607 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
21608 mdraid09 and mdraid1x.
21609
e1fd1939
CW
216102010-09-24 Colin Watson <cjwatson@ubuntu.com>
21611
21612 Re-enable grub-extras.
21613
21614 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
21615 avoid confusing Automake. Run autogen only twice, once for the top
21616 level and once for grub-core. Add Makefile.util.def and
21617 Makefile.core.def from extra modules to the appropriate autogen
21618 invocations. If Makefile.common exists in an extra module, include
21619 it in both Makefile.util.am and grub-core/Makefile.core.am;
21620 similarly, include any Makefile.util.common file in Makefile.util.am
21621 and any Makefile.core.common file in grub-core/Makefile.core.am.
21622 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
21623 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
21624 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
21625 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
21626
21627 * gentpl.py (gvar_add): Turn GVARS into a set.
21628 (global_variable_initializers): Sort global variables on output.
21629 (vars_init): New function.
21630 (first_time): Likewise.
21631 (library): Ensure that non-global variable initialisations are
21632 emitted before the first time we emit code for a library block.
21633 Append to variables rather than setting them. Only emit
21634 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
21635 each conditional path.
21636 (program): installdir() emits an Autogen macro, so must be passed to
21637 var_add rather than gvar_add.
21638 (data): Likewise.
21639 (script): Likewise.
21640 (rules): New function, centralising handling for different target
21641 types. Set up Guile association lists for first_time and vars_init,
21642 and send most output to a diversion so that variable initialisations
21643 can be emitted first.
21644 (module_rules): Use new rules function.
21645 (kernel_rules): Likewise.
21646 (image_rules): Likewise.
21647 (library_rules): Likewise.
21648 (program_rules): Likewise.
21649 (script_rules): Likewise.
21650 (data_rules): Likewise.
21651
21652 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
21653
21654 * .bzrignore: Add contrib and grub-core/contrib. Remove
21655 grub-core/Makefile.gcry.am.
21656
1d12cf29
YB
216572010-09-24 Yves Blusseau <blusseau@zetam.org>
21658
21659 * grub-core/lib/LzFind.c: Add missing include.
21660 * grub-core/lib/LzmaEnc.c: Likewise.
21661 * grub-core/script/lexer.c: Likewise.
21662 * grub-core/script/yylex.l: Likewise.
21663 * util/grub-macho2img.c: Likewise.
21664 * util/grub-menulst2cfg.c: Likewise.
21665 * util/grub-mklayout.c: Likewise.
21666 * util/grub-mkpasswd-pbkdf2.c
21667 * util/grub-mkrelpath.c: Likewise.
21668 * util/resolve.c: Likewise.
21669
dd363028
BC
216702010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
21671
21672 * Makefile.util.def (example_unit_test): Add
21673 grub-core/gnulib/libgnu.a.
21674
f5a109e2
GS
216752010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
21676
21677 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
21678
6d0fa83c
VS
216792010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
21680
21681 Support xz compression on yeeloong.
21682
21683 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
21684 * configure.ac: Check for LZMA.
21685 * grub-core/Makefile.core.def (xz_decompress): New target.
21686 (none_decompress): Likewise.
21687 * grub-core/boot/decompressor/minilib.c: New file.
21688 * grub-core/boot/decompressor/none.c: Likewise.
21689 * grub-core/boot/decompressor/xz.c: Likewise.
21690 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
21691 * grub-core/kern/mips/cache_flush.S: Likewise.
21692 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
21693 * grub-core/kern/mips/startup.S: Move first stage to ...
21694 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
21695 nomacro.
21696 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
21697 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
21698 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
21699 Allocate statically.
21700 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
21701 Allocate statically or use scratch. Don't check CRC32.
21702 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
21703 Allocate statically. Don't check CRC32.
21704 * include/grub/decompressor.h: New file.
21705 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
21706 Removed.
21707 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
21708 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
21709 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
21710 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
21711 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
21712 * util/grub-mkimage.c (grub_compression_t): New type.
21713 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
21714 (image_target_desc): New field default_compression.
21715 (image_targets): Adjust yeeloong targets.
21716 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
21717 (compress_kernel): New parameter comp.
21718 (generate_image): Likewise. Handle new compression case.
21719 (options): New option --compression
21720 (help): Likewise.
21721 (main): Handle new option.
21722
1b655af6
GS
217232010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
21724
21725 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
21726
8f03f0b5
CW
217272010-09-22 Colin Watson <cjwatson@ubuntu.com>
21728
21729 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
21730 typo in __i386__ conditional.
21731
7835dfd3
VS
217322010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
21733
21734 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
21735 include.
21736
e255597e
VS
217372010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
21738
6d0fa83c 21739 Implement EFI and ACPI multiboot2 extensions.
e255597e
VS
21740
21741 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
21742 new tags as supported.
21743 (acpiv2_size): New function.
21744 (grub_multiboot_get_mbi_size): Take new tags into account.
21745 (grub_multiboot_make_mbi): Add new tags.
21746 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
6d0fa83c 21747
6cc14051 217482010-09-21 Aleš Nesrsta <starous@volny.cz>
21749
21750 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
21751 Added missing configuration of USB device.
21752
df7769d8
CW
217532010-09-21 Colin Watson <cjwatson@ubuntu.com>
21754
21755 * grub-core/normal/menu_entry.c (run): Make sure we always return
21756 a value.
21757
b031012d
CW
217582010-09-21 Colin Watson <cjwatson@ubuntu.com>
21759
21760 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
21761 NumberOfPages is UINT64 according to the UEFI specification, not
21762 UINTN. Fix printf format.
21763
174de8f3
CW
217642010-09-21 Colin Watson <cjwatson@ubuntu.com>
21765
21766 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
21767 `err' to grub_usb_err_t.
21768 Reported and tested by: KESHAV P.R.
21769
d7dbe923
CW
217702010-09-21 Colin Watson <cjwatson@ubuntu.com>
21771
21772 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
21773 tpart non-const, so that we can assign to it. (Since this is a
21774 typedef, the constness refers to the pointer rather than what it
21775 points to.)
21776
8d5e2af3
CW
217772010-09-21 Colin Watson <cjwatson@ubuntu.com>
21778
21779 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
21780 $(top_srcdir)/grub-core/gnulib as well as
21781 $(top_builddir)/grub-core/gnulib.
21782 Reported by: KESHAV P.R.
21783
5c527783
CW
217842010-09-21 Colin Watson <cjwatson@ubuntu.com>
21785
21786 * util/grub-install.in: Fix the bootloader ID option to be
21787 consistently --bootloader-id, not --bootloader_id.
21788 Reported by: KESHAV P.R.
21789
d309a16e
CW
217902010-09-21 Colin Watson <cjwatson@ubuntu.com>
21791
21792 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
21793 check hash checksum." consistently translatable.
21794
b830cd16
YB
217952010-09-21 Yves Blusseau <blusseau@zetam.org>
21796
21797 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
21798 $(top_builddir).
21799
c4fe27a8
CW
218002010-09-21 Colin Watson <cjwatson@ubuntu.com>
21801
21802 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
21803 (GRUB_MOD_INIT): Register sha1sum command.
21804 (GRUB_MOD_FINI): Unregister sha1sum command.
21805
a4c1d277
YB
218062010-09-21 Yves Blusseau <blusseau@zetam.org>
21807
21808 Keep boot and grub directory names in sync with utils scripts
21809
21810 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
21811 * config.h.in: Add previous macros.
21812 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
21813 * util/grub-install.in: Use $bootdir and $grubdir variables.
21814
4eff79d2
CW
218152010-09-21 Colin Watson <cjwatson@ubuntu.com>
21816
21817 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
21818 convert partition names to disk names if the new `convert' parameter
21819 is set.
21820 (grub_util_biosdisk_get_grub_dev): If opening the disk device
21821 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
21822 disk in its own right. This can happen with Xen disk images.
21823
934d7e44
YB
218242010-09-21 Yves Blusseau <blusseau@zetam.org>
21825
21826 * util/grub-editenv.c: Update strings to avoid warnings when generating
21827 grub.pot file.
21828 * util/grub-setup.c: Likewise.
934d7e44 21829
df3367cc
VS
218302010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
21831
21832 * configure.ac: Change version to 1.99~beta0.
21833
77a94e98
VS
218342010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
21835
21836 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
21837 Add BADRAM.
21838 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
21839 Likewise.
21840 * include/multiboot.h: Resynced with specification.
21841 * include/multiboot2.h: Likewise.
21842
269004c1
CW
218432010-09-21 Colin Watson <cjwatson@ubuntu.com>
21844
21845 Fix po directory handling.
21846
21847 * configure.ac: Create po/Makefile.in rather than po/Makefile.
21848 * grub-core/gnulib/Makefile.am: Import gettext module.
21849 * m4/gnulib-cache.m4: Likewise.
21850 * m4/gnulib-comp.m4: Likewise.
21851 * m4/gettext.m4: New file, from gnulib.
21852 * m4/glibc2.m4: Likewise.
21853 * m4/iconv.m4: Likewise.
21854 * m4/intdiv0.m4: Likewise.
21855 * m4/intl.m4: Likewise.
21856 * m4/intldir.m4: Likewise.
21857 * m4/intlmacosx.m4: Likewise.
21858 * m4/intmax.m4: Likewise.
21859 * m4/inttypes-pri.m4: Likewise.
21860 * m4/lcmessage.m4: Likewise.
21861 * m4/lib-ld.m4: Likewise.
21862 * m4/lib-link.m4: Likewise.
21863 * m4/lib-prefix.m4: Likewise.
21864 * m4/lock.m4: Likewise.
21865 * m4/nls.m4: Likewise.
21866 * m4/po.m4: Likewise.
21867 * m4/printf-posix.m4: Likewise.
21868 * m4/progtest.m4: Likewise.
21869 * m4/threadlib.m4: Likewise.
21870 * m4/uintmax_t.m4: Likewise.
21871 * m4/visibility.m4: Likewise.
21872 * po/Makefile.am: Remove.
21873 * po/Makefile.in.in: New file, from gettext.
21874 ($(DOMAIN).pot-update): Support POTFILES-shell.
21875 * po/Makevars: New file.
21876 * po/POTFILES-shell: Rename to ...
21877 * po/POTFILES-shell.in: ... this. Update.
21878 * po/POTFILES: Rename to ...
21879 * po/POTFILES.in: ... this. Update.
21880 * po/Rules-quot: New file, from gettext.
21881 * po/boldquot.sed: Likewise.
21882 * po/en@boldquot.header: Likewise.
21883 * po/en@quot.header: Likewise.
21884 * po/insert-header.sin: Likewise.
21885 * po/quot.sed: Likewise.
21886 * po/remove-potcdate.sin: Likewise.
21887
3e0fa5d0
VS
218882010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
21889
21890 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
21891
ade9bd66
VS
218922010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
21893
21894 * util/grub.d/20_linux_xen.in: Use submenus.
21895
fc55cc4c
VS
218962010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
21897
21898 Support submenus.
21899
21900 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
21901 parameter submenu. All users updated.
21902 * grub-core/normal/main.c (free_menu): Rename to ...
21903 (grub_normal_free_menu): ... this. Made global.
21904 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
21905 if requested.
21906 * grub-core/normal/menu_entry.c (screen): New field submenu.
21907 (make_screen): Set submenu.
21908 (run): Open new context if requested.
21909 * include/grub/menu.h (grub_menu_entry): New field submenu.
21910 * include/grub/normal.h (grub_normal_free_menu): New proto.
21911
600cedf7
VS
219122010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
21913
21914 Menu entries extractor.
21915
21916 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
21917 variants.
21918 (GRUB_MOD_INIT): Register new variants.
21919 (GRUB_MOD_FINI): Unregister new variants.
21920 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
21921 into grub_cmd_legacy_source.
21922 (grub_cmd_legacy_source): Implement extractor variants.
21923 (GRUB_MOD_INIT): Register new variants.
21924 (GRUB_MOD_FINI): Unregister new variants.
21925 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
21926 as an extractor.
21927 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
21928 search as an extractor.
21929 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
21930 test as an extractor.
21931 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
21932 as an extractor.
21933 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
21934 (grub_env_new_context): New function.
21935 (grub_env_context_open): Likewise.
21936 (grub_env_extractor_open): Likewise.
21937 (grub_env_extractor_close): Likewise.
21938 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
21939 grub_extractor_level.
21940 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
21941 * include/grub/env.h (grub_env_extractor_open): New proto.
21942 (grub_env_extractor_close): Likewise.
21943 * include/grub/normal.h (grub_extractor_level): New external variable.
21944
7bda3a87
VS
219452010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
21946
21947 Make cutmem accept a region specification.
21948 Suggested by: Samuel Thibault
21949
21950 * grub-core/mmap/mmap.c (parsemem): New function.
21951 (grub_cmd_cutmem): Handle new arguments.
21952
2ea57f88
VS
219532010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
21954
21955 New command cutmem.
21956
21957 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
21958 (GRUB_MOD_INIT): Register new command.
21959 (GRUB_MOD_FINI): Unregister new command.
21960
74342e31
VS
219612010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
21962
21963 Support some annoying BSD and Minix subpartitions.
21964
21965 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
21966 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
21967 Properly handle concatenation.
21968 * grub-core/kern/device.c (grub_device_iterate): Likewise.
21969 * grub-core/normal/completion.c (iterate_partition): Likewise.
21970 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
21971 contain partition. All users updated.
21972 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
21973 struct.
21974 (grub_openbsdlabel_partition_map): Likewise.
21975 (bsdlabel_partition_map_iterate): Rename to ..
21976 (iterate_real): ... this. New arguments sector, freebsd and pmap.
21977 (bsdlabel_partition_map_iterate): New function.
21978 (netopenbsdlabel_partition_map_iterate): Likewise.
21979 (netbsdlabel_partition_map_iterate): Likewise.
21980 (openbsdlabel_partition_map_iterate): Likewise.
21981 (GRUB_MOD_INIT): Register new partmaps.
21982 (GRUB_MOD_FINI): Unregister new partmaps.
21983 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
21984 (grub_partition_msdos_iterate): ... this. All users updated.
21985 Don't support embedding other than in a minix partition.
21986 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
21987 proto.
21988 * include/grub/partition.h (grub_partition): New field msdostype.
21989 * util/grub-install.in: Handle openbsd and netbsd types being in
21990 part_bsd module.
21991
1e8d555b
VS
219922010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
21993
21994 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
21995
21996 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
21997 * grub-core/Makefile.core.def (mdraid): Renamed to ...
21998 (mdraid09): ... this.
21999 (mdraid1x): New module.
22000 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
22001 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
22002
899d8af4
VS
220032010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22004
22005 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
22006 vsprintf.
22007
40901acd
CW
220082010-09-20 Colin Watson <cjwatson@ubuntu.com>
22009
22010 * grub-core/commands/efi/lsefimmap.c: Correct header.
22011 * NEWS: Update.
22012
dfe3b247
CW
220132010-09-20 Colin Watson <cjwatson@ubuntu.com>
22014
22015 * util/grub-editenv.c (argp_parser): Don't pass translated strings
22016 as printf format strings; the translations might contain '%' which
22017 could cause a crash.
22018 (main): Likewise.
22019 * util/grub-fstest.c (argp_parser): Likewise.
22020 * util/grub-setup.c (argp_parser): Likewise.
22021 (main): Likewise.
22022
3286a4b4
VS
220232010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22024
22025 Use argp in grub-fstest.
22026
22027 * util/grub-fstest.c: Don't include getopt.h.
22028 Include argp.h.
22029 (root): New variable.
22030 (args_count): Likewise.
22031 (nparm): Likewise.
22032 (num_disks): Likewise.
22033 (images): Likewise.
22034 (cmd): Likewise.
22035 (debug_str): Likewise.
22036 (args): Likewise.
22037 (options): Transformed to argp.
22038 (usage): Removed.
22039 (main): Split argument parsing into ...
22040 (argp_parser): ... this. Changed to argp format.
22041 (argp): New variable.
22042 (main): Use argp_parse.
22043
3dccbe4b
TG
220442010-09-20 Tristan Gingold <gingold@free.fr>
220452010-09-20 Robert Millan <rmh.grub@aybabtu.com>
220462010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22047
22048 * grub-core/commands/efi/lsefimmap.c: New file.
22049 * grub-core/Makefile.core.def (lsefimmap): New module.
22050 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
22051
38c259a7
VS
220522010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22053
22054 Pause the execution (10s max) if any errors are displayed so the user
22055 has a chance to see them.
22056
22057 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
22058 (grub_print_error): Increment grub_err_printed_errors.
22059 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
22060 execution if any errors were displayed.
22061 (show_menu): Remove old code for pause.
22062 * grub-core/normal/menu_entry.c (run): Likewise.
22063 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
22064 users updated.
22065 (grub_normal_get_char_counter): Likewise.
22066 * include/grub/err.h (grub_err_printed_errors): New external variable.
22067 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
22068
f218b09c
VS
220692010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22070
22071 Support multiboot VBE info.
22072
22073 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
22074 Take VBE info into account.
22075 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
22076 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
22077 Call fill_vbe_info when appropriate.
22078 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
22079 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
22080 as supported.
22081 (grub_multiboot_get_mbi_size): Take new tags into account.
22082 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
22083 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
22084 Call fill_vbe_tag when appropriate.
22085 (grub_multiboot_make_mbi): Properly align tags.
22086 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
22087 function.
22088 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
22089 proto.
22090 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
22091
a9cc5438
VS
220922010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22093
22094 Suport manual terminal geometry specification.
22095
22096 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
22097 Save state in grub_ofconsole_terminfo_output.
22098 (grub_ofconsole_term): Use grub_terminfo_getwh.
22099 (grub_ofconsole_getwh): Removed.
22100 * grub-core/term/serial.c (grub_serial_getwh): Removed.
22101 (grub_serial_term): Use grub_terminfo_getwh.
22102 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
22103 (options): New struct.
22104 (OPTION_*): New enum.
22105 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
22106 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
22107 width and height.
22108 (grub_terminfo_getwh): New proto.
22109 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
22110
1a8fed20
VS
221112010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22112
22113 Handle legacy "terminal" command.
22114
22115 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
22116 and FLAG_TERMINAL.
22117 (legacy_commands): Add terminal and title.
22118 (grub_legacy_parse): Handle terminal. Simplify title handling.
22119
41e9c57d
VS
221202010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22121
22122 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
22123 parameters overflow.
22124
61c874c5
CW
221252010-09-20 Colin Watson <cjwatson@ubuntu.com>
22126
22127 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
22128 widthspec.h.
22129
22130 * docs/grub.texi (Shell-like scripting): Document `!'.
22131 (Network): Simplify using new i386-pc-pxe format. Mention
22132 grub-mknetdir.
22133
22134 * NEWS: Update.
22135
943682b4
CW
221362010-09-20 Colin Watson <cjwatson@ubuntu.com>
22137
22138 * Makefile.am (SUBDIRS): Restore "."; it's important to force
22139 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
22140 when needed.
22141
6d3d698d
CW
221422010-09-20 Colin Watson <cjwatson@ubuntu.com>
22143
22144 * grub-core/commands/efi/lsefisystab.c: Correct header.
22145 * grub-core/commands/efi/lssal.c: Likewise.
22146 * grub-core/commands/testload.c: Likewise.
22147
c982589f
CW
221482010-09-20 Colin Watson <cjwatson@ubuntu.com>
22149
22150 * util/grub-mkrescue.in: Add explicit root argument to --set to
22151 prevent the UUID being interpreted as an argument to --set (matches
22152 previous change to prepare_grub_to_access_device).
22153
a63c31b6
CW
221542010-09-20 Colin Watson <cjwatson@ubuntu.com>
22155
22156 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
22157 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
22158 the verbosity of later #ifs.
22159 (find_partition_start): Define this function on FreeBSD too.
22160 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
22161 function.
22162 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
22163 on FreeBSD.
22164
6439b8ee
YB
221652010-09-20 Yves Blusseau <blusseau@zetam.org>
22166
22167 * util/grub-editenv.c: Use argp instead of getopt.
22168
c5930ec8
YB
221692010-09-20 Yves Blusseau <blusseau@zetam.org>
22170
22171 * util/grub-setup.c: Use argp instead of getopt.
22172
15c69261
YB
221732010-09-20 Yves Blusseau <blusseau@zetam.org>
22174
22175 Use gnulib-tool to create gnulib source files.
22176
22177 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
22178 grub-core/gnulib directories
22179 * .bzignore: Add **/.deps and autogenerated gnulib files
22180 * configure.ac: Assign auxiliary directory to build-aux, add invocation
22181 of gnulib macros, add grub-core/gnulib/Makefile
22182 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
22183 include m4 directory to aclocal.
22184 * Makefile.util.def: Remove direct compilation of gnulib source files
22185 and use the new grub-core/gnulib/libgnu.a.
22186 * build-aux/config.rpath: move config.rpath from top directory to
22187 build-aux
22188 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
22189 in gnulib headers
22190 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
22191 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
22192 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
22193 header.
22194 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
22195 string.
22196
e511c9f5
YB
221972010-09-20 Yves Blusseau <blusseau@zetam.org>
22198
22199 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
22200 grub-core/genmod.sh and grub-core/gensyminfo.sh
22201
c2dede05
BC
222022010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
22203
22204 Add a test for echo command options.
22205
22206 * tests/grub_cmd_echo.in: New test.
22207 * Makefile.util.def: Rules for new test.
22208
c55f5018
SJ
222092010-09-20 Szymon Janc <szymon@janc.net.pl>
22210
22211 Remove crc.mod and move crc command to hashsum.mod.
22212 Remove lib/crc.c - users updated to use gcrypt implementation.
22213
22214 * grub-core/commands/crc.c: Removed.
22215 * grub-core/Makefile.core.def (crc): Module removed.
22216 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
22217 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
22218 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
22219 * grub-core/lib/crc.c: Removed.
22220 * include/grub/lib/crc.h: Removed.
22221 * Makefile.util.def (crc): Remove lib/crc.c
22222 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
22223 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
22224 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
22225 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
22226 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
22227 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
22228
e0337366
VS
222292010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22230
22231 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
22232
742f9232
VS
222332010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
22234
22235 Split config.h for util and core.
22236
22237 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
22238 (ADDR32): Likewise.
22239 (DATA32): Likewise.
22240 (BSS_START_SYMBOL): Likewise.
22241 (END_SYMBOL): Likewise.
22242 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
22243 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
22244 * config.h.in: New file.
22245 * configure.ac: Use config-util.h as config define file.
22246 Rename MACHINE into GRUB_MACHINE. All users updated.
22247 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
22248 updated.
22249 (NESTED_FUNC_ATTR): Likewise.
22250 Substitue new variables.
22251 (COND_HAVE_ASM_USCORE): New conditional.
22252 * grub-core/Makefile.am (ASM_PREFIX): New variable.
22253 (kernel_syms.lst): Use ASM_PREFIX.
22254 * grub-core/kern/emu/console.c: Include config-util.h.
22255 * grub-core/kern/emu/misc.c: Likewise.
22256 * grub-core/kern/emu/mm.c: Likewise.
22257 * include/grub/emu/misc.h: Likewise.
22258 * include/grub/libgcc.h: Likewise.
22259
39feb0e8
VS
222602010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
22261
22262 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
22263 constants usage.
22264 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
22265 Fix GRUB_TERM_KEY_* constants usage.
22266 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
22267
9af6dac3
VS
222682010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
22269
22270 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
22271 print pointer.
22272 * grub-core/bus/usb/uhci.c: Remove empty define.
22273 (grub_uhci_check_transfer): Add missing cast.
22274 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
22275 print pointer.
22276 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
22277 PRIuGRUB_SIZE.
22278 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
22279
d6d94820
VS
222802010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
22281
22282 * grub-core/Makefile.core.def (legacycfg): Add
22283 lib/i386/pc/vesa_modes_table.c on emu.
22284
3572f2b6
BC
222852010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
22286
22287 Reduce number of temporary files generated by build system.
22288
22289 * grub-core/gencmdlist.sh: Removed.
22290 * grub-core/genfslist.sh: Removed.
22291 * grub-core/genhandlerlist.sh: Removed.
22292 * grub-core/genmodsrc.sh: Removed.
22293 * grub-core/genpartmaplist.sh: Removed.
22294 * grub-core/genparttoollist.sh: Removed.
22295 * grub-core/gentermiinallist.sh: Removed.
22296 * grub-core/genvideolist.sh: Removed.
22297
22298 * grub-core/genmod.sh.in: New file.
22299 * grub-core/gensyminfo.sh.in: New file.
22300
22301 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
22302 * conf/Makefile.extra-dist: Update with new files.
22303 * gentpl.py: Remove rules related to unnecessary temporary files.
22304 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
22305 and und-* files.
22306 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
22307 genmod.sh scripts.
22308 * grub-core/bus/usb/uhci.c: Remove empty #define.
22309 * grub-core/genmoddep.awk: Updated with new syminfo format.
22310 * util/bash-completion.d/Makefile.am: Add config.log to
22311 CLEANFILES.
22312
c836b030
YB
223132010-09-19 Yves Blusseau <blusseau@zetam.org>
22314
22315 * Makefile.util.def: Add forgotten $(LIBINTL) library.
22316
2f4e8053
BC
223172010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
22318
22319 * util/grub-mkconfig.in: Check the config script for syntax errors
22320 before saving.
22321
75831c34
CW
223222010-09-19 Colin Watson <cjwatson@ubuntu.com>
223232010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
22324
22325 * Makefile.util.def (grub-install): Use util/grub-install.in on all
22326 platforms.
22327 * util/grub-install.in: Add EFI and IEEE1275 support.
22328 * util/i386/efi/grub-install.in: Removed.
22329 * util/ieee1275/grub-install.in: Likewise.
22330
eaf41b25
VS
223312010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
22332
22333 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
22334 (grub_cmd_cmosclean): Likewise.
22335 (GRUB_MOD_INIT): Register command cmosclean.
22336 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
22337 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
22338
1a9130dd
CPE
223392010-09-18 Carles Pina i Estany <carles@pina.cat>
223402010-09-18 Aleš Nesrsta <starous@volny.cz>
223412010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
22342
22343 Add keyboard layouts support.
22344
22345 * Makefile.util.def (grub-mklayout): New file.
22346 (grub-kbdcomp): New script.
22347 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
22348 Add keyboard_layouts.h.
22349 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
22350 commands/boot.c on yeeloong.
22351 (keylayouts): New module.
22352 * grub-core/bus/usb/ohci.c
22353 * grub-core/bus/usb/uhci.c
22354 * grub-core/bus/usb/usbhub.c (rescan): New variable.
22355 (grub_usb_add_hub): Poll interrupt pipe for device handling.
22356 (attach_root_port): Likewise.
22357 (poll_nonroot_hub): Likewise.
22358 (grub_usb_poll_devices): Likewise.
22359 (detach_device): Close transfer.
22360 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
22361 function.
22362 (grub_usb_bulk_setup_readwrite): Likewise.
22363 (grub_usb_bulk_finish_readwrite): Likewise.
22364 * grub-core/commands/keylayouts.c: New file.
22365 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
22366 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
22367 aliases.
22368 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
22369 support scancode 2.
22370 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
22371 * include/grub/keyboard_layouts.h: New file.
22372 * util/grub-mklayout.c: New file.
22373 * util/grub-kbdcomp.in: Likewise.
22374
a1d84a5e
VS
223752010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
22376
22377 Unify memory types.
22378
22379 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
22380 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
22381 types.
22382 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
22383 (grub_upper_mem): Likewise.
22384 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
22385 * include/grub/memory.h (grub_memory_type_t): New enum.
22386 All users updated.
22387
9696382e
VS
223882010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
22389
22390 * grub-core/Makefile.core.def (lsapm): New module.
22391 * grub-core/commands/i386/pc/lsapm.c: New file.
22392 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
22393 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
22394 Likewise.
22395 * include/grub/i386/pc/apm.h: New file.
22396 * include/multiboot.h (multiboot_apm_info): New struct.
22397
223982010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
22399
22400 GRUB-legacy configuration file support.
22401
22402 * Makefile.util.def (grub-menulst2cfg): New util.
22403 * docs/man/grub-menulst2cfg.h2m: New file.
22404 * grub-core/Makefile.core.def (legacycfg): New module.
22405 * grub-core/commands/legacycfg.c: New file.
22406 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
22407 (grub_normal_add_menu_entry): ... this.
22408 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
22409 (grub_normal_set_password): ...this.
22410 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
22411 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
22412 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
22413 * grub-core/lib/legacy_parse.c: New file.
22414 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
22415 * include/grub/i386/pc/vesa_modes_table.h: New file.
22416 * include/grub/legacy_parse.h: Likewise.
22417 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
22418 * util/grub-menulst2cfg.c: New file.
22419
bf8d1338
CW
224202010-09-17 Colin Watson <cjwatson@ubuntu.com>
22421
22422 * grub-core/kern/emu/hostdisk.c
22423 (convert_system_partition_to_system_disk): Initialise node.
22424
9c0bad2e
CW
224252010-09-17 Colin Watson <cjwatson@ubuntu.com>
22426
22427 * grub-core/kern/emu/hostdisk.c
22428 (convert_system_partition_to_system_disk): Fix devmapper memory pool
22429 leak.
22430 Reported and based on patch by: Modestas Vainius.
22431
a939d135
CW
224322010-09-17 Colin Watson <cjwatson@ubuntu.com>
22433
22434 Fix DM-RAID probing with recent versions of device-mapper udev
22435 rules.
22436
22437 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
22438 canonicalise device paths under /dev/mapper/.
22439 (convert_system_partition_to_system_disk): Compare the
22440 uncanonicalised path to /dev/mapper/ rather than the canonicalised
22441 path, since device nodes under /dev/mapper/ are often symlinks.
22442
0f7ee3c9
YB
224432010-09-17 Yves Blusseau <blusseau@zetam.org>
22444
22445 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
22446
10854d0d
YB
224472010-09-16 Yves Blusseau <blusseau@zetam.org>
22448
22449 * configure.ac: Avoid some annoying error messages if freetype-config
22450 program is not found.
22451
108538d8
CW
224522010-09-16 Colin Watson <cjwatson@ubuntu.com>
22453
22454 Support RAID on virtio devices, and others.
22455
22456 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
22457 Rename to ...
22458 [__MINGW32__] (grub_find_device): ... this.
22459 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
22460 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
22461 reasonable default if dir is NULL.
22462 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
22463 ...
22464 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
22465 (grub_guess_root_device): Update callers.
22466 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
22467
22468 * util/raid.c (grub_util_getdiskname): Remove.
22469 (grub_util_raid_getmembers): Use grub_find_device rather than
22470 grub_util_getdiskname.
22471
e5bfc130
CW
224722010-09-16 Colin Watson <cjwatson@ubuntu.com>
22473
22474 * docs/grub.texi (serial): Remove obsolete comment about GRUB
22475 needing to be compiled with serial support.
22476 (ls): Indicate that multiple files are accepted.
22477 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
22478 indicate that multiple files are accepted.
22479
be458ae2
CW
224802010-09-16 Colin Watson <cjwatson@ubuntu.com>
22481
22482 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
22483 libgrub_a_init.c, and util/bash-completion.d/grub.
22484
cb731b5e
VS
224852010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
22486
22487 * util/grub-setup.c (setup): Fix incorrect container semantics.
22488
35139e8a
VS
224892010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
22490
22491 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
22492 misusage.
22493 Reported by: J. Nick Terry
22494
e50fca4a
VS
224952010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
22496
22497 Move embedding routines to partmap sources files.
22498
22499 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
22500 [GRUB_UTIL]: New variable.
22501 (gpt_partition_map_iterate): Set part.parent.
22502 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
22503 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
22504 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
22505 New function.
22506 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
22507 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
22508 (grub_partition_map) [GRUB_UTIL]: New field embed.
22509 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
22510 (setup): Use ->embed.
22511
f00478b7
VS
225122010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
22513
22514 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
22515 function.
22516 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
22517 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
22518
2b94e3ff
YB
225192010-09-15 Yves Blusseau <blusseau@zetam.org>
22520
22521 Add function to get completions from usage.
22522
22523 * util/bash-completion.d/grub-completion.bash.in: Add function to get
22524 completions from usage. Use LC_ALL=C to get options properly.
22525
2e04a006
VS
225262010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
22527
22528 * grub-core/gnulib/basename-lgpl.c: Imported.
22529 * grub-core/gnulib/basename.c: Likewise.
22530 * grub-core/gnulib/dirname-lgpl.c: Likewise.
22531 * grub-core/gnulib/dirname.c: Likewise.
22532 * grub-core/gnulib/dirname.h: Likewise.
22533 * grub-core/gnulib/stripslash.c: Likewise.
22534
5dcdf93a
VS
225352010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
22536
22537 * grub-core/gnulib/error.c: Resynced.
22538 * grub-core/gnulib/getopt.c: Likewise.
22539 * grub-core/gnulib/getopt_int.h: Likewise.
22540 * grub-core/gnulib/regex.h: Likewise.
22541 * grub-core/gnulib/regex_internal.c: Likewise.
22542 * grub-core/gnulib/regex_internal.h: Likewise.
22543
014f47b7
SJ
225442010-09-15 Szymon Janc <szymon@janc.net.pl>
22545
22546 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
22547 CRC calculations and validity checks.
22548 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
22549 calculations.
22550
dd521a4a
SJ
225512010-09-15 Szymon Janc <szymon@janc.net.pl>
22552
22553 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
22554
79c4eeb9
VS
225552010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
22556
22557 Fix incorrect echo options handling.
22558 Reported by: Yves Blusseau.
22559
22560 * include/grub/command.h (grub_command_flags_t): New flags
22561 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
22562 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
22563 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
22564
ed80f7d5
VS
225652010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
22566
22567 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
22568 users updated.
22569 (GRUB_COMMAND_FLAG_MENU): Likewise.
22570 (GRUB_COMMAND_FLAG_BOTH): Likewise.
22571 (GRUB_COMMAND_FLAG_TITLE): Removed.
22572 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
22573 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
22574 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
22575 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
22576 (grub_command_flags_t): New enum. All users updated.
22577
5fe7620a
SG
225782010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
22579
22580 Fix solaris compilation.
22581
22582 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
22583 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
22584 (grub-emu-list): Likewise.
22585
545b752f
VS
225862010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
22587
22588 Remove deprecated root command.
22589
22590 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
22591 updated.
22592
6c1a338c
VS
225932010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
22594
22595 * util/i386/pc/grub-setup.c: Merge this ...
22596 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
22597 * util/grub-setup.c: ... into this.
22598 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
22599 New struct.
22600
226012010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
22602
22603 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
22604 possible.
22605
d2ea4551
VS
226062010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
22607
22608 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
22609 allocate p.
22610
3c3b5040
VS
226112010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
22612
22613 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
22614 explicit root argument to set to prevent UUID to be interpreted as
22615 argument to set.
22616
b71c3fae
VS
226172010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
22618
22619 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
22620
275433e6
VS
226212010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
22622
22623 Don't export grub_gate_a20.
22624
22625 * grub-core/kern/i386/pc/init.c: Remove leftovers.
22626 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
22627 to ...
22628 (grub_gate_a20): ... this. All users updated.
22629 * include/grub/i386/pc/init.h: Removed. All users updated.
22630
a5dbb1f1
VS
226312010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
22632
22633 Create euro.pf2 which supports most European languages.
22634
22635 * Makefile.am (grubdata_DATA): Add euro.pf2.
22636 (euro.pf2): New target.
22637 (CLEANFILES): Add euro.pf2.
22638
62a747cb
VS
226392010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
22640
22641 * configure.ac: Disable emu-usb by default to prevent inadvertent
22642 device takeover.
22643
608e43b1
VS
226442010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22645
22646 Disable usbserial on grub-emu since our libusb code isn't good enough
22647 yet.
22648
22649 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
22650 (usbserial_pl2303): Likewise.
22651 (usbserial_ftdi): Likewise.
22652
94564f81
VS
226532010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22654
22655 * include/grub/disk.h (grub_disk): Remove has_partitions.
22656 All users updated.
22657 * disk/loopback.c (grub_loopback): Remove has_partitions.
22658 All users updated.
22659 (options): Remove partitions. All users updated.
22660 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
22661 * util/i386/pc/grub-setup.c (setup): copy partition table only when
22662 actual partition table is found.
22663
3352800b
VS
226642010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22665
22666 Remove readability checks (too many false negatives).
22667
22668 * util/grub-install.in: Remove readability checks.
22669 * util/grub-mkconfig.in: Likewise.
22670 * util/grub.d/10_hurd.in: Likewise.
22671 * util/grub.d/10_kfreebsd.in: Likewise.
22672 * util/grub.d/10_linux.in: Likewise.
22673 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
22674 way.
22675
2419f17a
VS
226762010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22677
22678 Enable acpi shutdown on all ACPI platforms.
22679
22680 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
22681 on coreboo, multiboot and EFI.
22682 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
22683 (grub_acpi_halt): Likewise.
22684 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
22685 (grub_cmd_halt): Don't call grub_acpi_halt directly.
22686 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
22687 * grub-core/lib/i386/halt.c (grub_halt)
22688 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
22689
0575c7c3
VS
226902010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22691
22692 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
22693 context.
22694
54ac3cd1
VS
226952010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22696
22697 * grub-core/video/efi_gop.c: Fix over-80-chars line.
22698 * grub-core/video/efi_uga.c: Likewise.
22699
b2a30ac5
VS
227002010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22701
22702 Filter devaliases and never open same device twice.
22703
22704 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
22705 (last_ihandle): Likewise.
22706 (ofdisk_hash_ent): New member shortest.
22707 (ofdisk_hash_add): Add canonical path too.
22708 (scan): New function.
22709 (grub_ofdisk_iterate): Iterate over hashed entries.
22710 (compute_dev_path): Don't add :0.
22711 (grub_ofdisk_open): Don't really open the disk.
22712 (grub_ofdisk_close): Avoid closing unrelated disk.
22713 (grub_ofdisk_read): Implement reopen logic.
22714 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
22715 New function.
22716 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
22717 New proto.
22718
fb53b340
VS
227192010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22720
22721 Fix sparc64.
22722
22723 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
22724 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
22725 right address. Add sparc64_ieee1275_ldflags.
22726 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
22727 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
22728 to grub_host_to_target_addr
22729 (load_image): Likewise.
22730
f452b040
VS
227312010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22732
22733 * grub-core/normal/completion.c (complete_file): Handle device
22734 containing slash.
22735 Fix based on patch by Doug Nazar.
22736
9b5b2541
VS
227372010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22738
22739 grub-mknetdir script.
22740
22741 * Makefile.util.def (grub-mknetdir): New module.
22742 * tests/util/grub-shell.in: Support boot=net
22743 * util/grub-mknetdir.in: New file.
22744
9d2be652
VS
227452010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22746
22747 videoinfo on non-vbe.
22748
22749 * grub-core/Makefile.core.def (vbeinfo): Removed.
22750 (vbetest): Removed.
22751 (videoinfo): New module.
22752 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
22753 * grub-core/commands/i386/pc/vbetest.c: Removed.
22754 * grub-core/commands/videoinfo.c: New file.
22755 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
22756 specification.
22757 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
22758 as vbetest.
22759 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
22760 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
22761 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
22762 mode_number. New parameter mode. All users updated.
22763 (grub_video_gop_iterate): New function.
22764 (grub_video_efi_gop): New member iterate.
22765 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
22766 (grub_vbe_set_video_mode): Remove setting useless fields.
22767 (vbe2videoinfo): New function.
22768 (grub_video_vbe_iterate): Likewise.
22769 (grub_video_vbe_setup): Use vbe2videoinfo.
22770 (grub_video_vbe_print_adapter_specific_info): New function.
22771 (grub_video_vbe_adapter): New fields iterate and
22772 print_adapter_specific_info.
22773 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
22774 All users updated.
22775 (grub_video_mode_info): New field mode_number.
22776 (grub_video_adapter): New fields iterate and
22777 print_adapter_specific_info.
22778
179503f5
TG
227792010-09-13 Tristan Gingold <gingold@free.fr>
227802010-09-13 Robert Millan <rmh.grub@aybabtu.com>
227812010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22782
22783 * grub-core/commands/efi/lsefisystab.c: New file.
22784 * grub-core/commands/efi/lssal.c: Likewise.
22785 * grub-core/Makefile.core.def (lsacpi): New module.
22786 (lsefisystab): Likewise.
22787 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
22788 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
22789 (grub_efi_sal_system_table): New struct.
22790 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
22791 (grub_efi_sal_system_table_memory_descriptor): Likewise.
22792 (grub_efi_sal_system_table_platform_features): Likewise.
22793 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
22794 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
22795 (grub_efi_sal_system_table_ap_wakeup): Likewise.
22796 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
22797
cf9827de
VS
227982010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22799
22800 Support explicit user claim that a device is BIOS-visible.
22801
22802 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
22803 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
22804 * grub-core/kern/emu/hostdisk.c
22805 (convert_system_partition_to_system_disk): Support mdX.
22806 (find_system_device): New parameter add. All users updated.
22807 (grub_util_biosdisk_is_present): New function.
22808 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
22809 proto.
22810
53f0eb1f
VS
228112010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22812
22813 Search hints support.
22814
22815 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
22816 All users updated.
22817
b23ffd70
YB
228182010-09-13 Yves Blusseau <blusseau@zetam.org>
22819
22820 Bash completion script for util commands
22821
22822 * Makefile.am: Add util/bash-completion.d directory
22823 * configure.ac: Likewise.
22824 * util/bash-completion.d/Makefile.am: New file.
22825 * util/bash-completion.d/grub-completion.bash.in: Likewise.
22826
d547dc28
VS
228272010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
22828
22829 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
22830 (print_backlog): set backlog_ucs4 and backlog_glyphs.
22831 Reported by: Yves Blusseau.
22832
2fc8ccb9
VS
228332010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
22834
22835 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
22836 partition size and offset.
22837
d8a84076
VS
228382010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
22839
22840 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
22841
84fb3b3d
VS
228422010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
22843
22844 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
22845
768ec2e2
VS
228462010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
22847
22848 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
22849 (grub_xvasprintf): Likewise.
22850
4870900f
VS
228512010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
22852
22853 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
22854
faca6bec
VS
228552010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
22856
22857 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
22858 args ending with NULL.
22859
228602010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
788f1f3a
VS
22861
22862 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
22863 pointer.
22864
3c70f225
SJ
228652010-09-11 Szymon Janc <szymon@janc.net.pl>
22866
22867 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
22868
4df7996d
VS
228692010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
22870
22871 Shutdown using ACPI.
22872
22873 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
22874 * grub-core/commands/acpihalt.c: New file.
22875 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
22876 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
22877 (grub_acpi_halt): New proto.
22878 (GRUB_ACPI_SLP_EN): New const.
22879 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
22880 (GRUB_ACPI_OPCODE_*): New enum.
22881 (GRUB_ACPI_EXTOPCODE_*): Likewise.
22882
126b4c32
TG
228832010-09-11 Tristan Gingold <gingold@free.fr>
228842010-09-11 Robert Millan <rmh.grub@aybabtu.com>
228852010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
22886
22887 * commands/lsacpi.c: New file.
22888 * grub-core/Makefile.core.def (lsacpi): New module.
22889 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
22890 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
22891 (grub_acpi_madt_entry_header): New struct.
22892 (grub_acpi_madt): Likewise.
22893 (grub_acpi_madt_entry_interrupt_override): Likewise.
22894 (grub_acpi_madt_entry_sapic): Likewise.
22895 (grub_acpi_madt_entry_lsapic): Likewise.
22896 (grub_acpi_madt_entry_platform_int_source): Likewise.
22897 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
22898 (PRIuGRUB_UINT32_T): Likewise.
22899 (PRIxGRUB_UINT64_T): Likewise.
22900
1aa4fe88
VS
229012010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
22902
22903 Implement loading palette on ieee1275_fb.
22904
22905 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
22906 (have_setcolors): Likewise.
22907 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
22908 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
22909 (grub_video_ieee1275_set_palette): Implement.
22910
25761e13
VS
229112010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
229122010-09-11 Colin Watson <cjwatson@ubuntu.com>
22913
22914 * util/grub-install.in (grub_partition): New variable.
22915 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
22916 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
22917 Fixes a bug reported by Yves Blusseau.
22918
050abaea
VS
229192010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
22920
22921 Fix emu on mipsel.
22922
22923 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
22924 =grub_cpu_flush_cache on all mips and not only yeeloong.
22925 * configure.ac (COND_mips): New conditional.
22926 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
22927 platforms.
22928 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
22929 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
22930 [GRUB_LINKER_HAVE_INIT]: New function.
22931 (grub_emu_post_init): Likewise.
22932 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
22933 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
22934 * include/grub/cache.h (_mips): Include mips/cache.h.
22935 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
22936 LVM and RAID prototypes.
22937 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
22938 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
22939 function.
22940
5ed7d816
CW
229412010-09-10 Colin Watson <cjwatson@ubuntu.com>
22942
22943 * util/grub-install.in: Don't try to verify core.img until after
22944 running grub-mkimage to create it.
22945
90367e04
RM
229462010-09-10 Robert Millan <rmh@gnu.org>
22947
22948 * util/grub.d/10_hurd.in: Add misc readability checks.
22949 * util/grub.d/10_kfreebsd.in: Likewise.
22950 * util/grub.d/10_linux.in: Likewise.
22951
c452fa66
CW
229522010-09-10 Colin Watson <cjwatson@ubuntu.com>
22953
22954 * util/grub-install.in: ${imgext} won't be defined here until the
22955 install branch is merged. For the meantime, only verify core.img on
22956 i386-pc and sparc64-ieee1275 platforms.
22957
c38fe9f4
RM
229582010-09-10 Robert Millan <rmh@gnu.org>
22959
22960 Solaris support in grub_find_zpool_from_dir(). Thanks
22961 Seth Goldberg for referring to getextmntent() facility.
22962
22963 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
22964 `sys/mkdev.h'.
22965 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
22966 `<sys/mnttab.h>'.
22967 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
22968 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
22969 method for finding zpool name.
22970
905f7773
CW
229712010-09-10 Colin Watson <cjwatson@ubuntu.com>
22972
22973 grub-fstest needs the host and hostfs modules while other utilities
22974 actively require those modules to be absent, so grub-fstest needs
22975 its own initialisation and finalisation code.
22976
22977 * Makefile.am (grub_fstest.pp): New target.
22978 (grub_fstest_init.lst): Likewise.
22979 (grub_fstest_init.c): Likewise.
22980 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
22981
fb90b546
RM
229822010-09-10 Robert Millan <rmh@gnu.org>
22983
22984 * configure.ac: Check for `struct statfs.f_fstypename' and
22985 `struct statfs.f_mntfromname'.
22986
22987 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
22988 kFreeBSD-specific code.
22989
66d4bea5
RM
229902010-09-10 Robert Millan <rmh@gnu.org>
22991
22992 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
22993 on ZFS. Now non-main filesystems are supported as / too.
22994
b6a690ee
CW
229952010-09-09 Colin Watson <cjwatson@ubuntu.com>
22996
22997 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
22998 and grub-core/disk/host.c to ...
22999 (grub-fstest): ... here. Having the host disk implementation
23000 present confuses grub-probe and other utility programs.
23001
23002 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
23003 when writing to a file, not when writing to stdout.
23004
8901b00c 230052010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
23006
23007 * tests/partmap_test.in: New test for partitions.
23008 * Makefile.util.def: Rules for new test.
23009
7bf45fdd
RM
230102010-09-09 Robert Millan <rmh@gnu.org>
23011
23012 * util/grub-probe.c (probe): Fix a pair of unhandled error
23013 conditions.
23014
4dfbc574
RM
230152010-09-09 Robert Millan <rmh@gnu.org>
23016
23017 Basic Btrfs support (detection and UUID).
23018
23019 * grub-core/fs/btrfs.c: New file.
23020 * Makefile.util.def (library): Register btrfs.c.
23021 * grub-core/Makefile.core.def: Likewise.
23022
6b8e78ae
RM
230232010-09-08 Robert Millan <rmh@gnu.org>
23024
23025 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
23026 with (optional) parameters to specify device and relative path.
23027 * util/grub-install.in: Use is_path_readable_by_grub() to
23028 verify readability of a few critical files.
23029 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
23030 verify readability of grub.cfg.new.
23031
27f21a8b
VS
230322010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
23033
23034 Split minix.mod into minix.mod and minix2.mod.
23035
23036 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
23037 * grub-core/Makefile.core.def (minix2): New module.
23038 * grub-core/fs/minix.c: Use definitions instead of runtime version
23039 checking.
23040 * grub-core/fs/minix2.c: New file.
23041
c0e53ea5
YB
230422010-09-08 Yves Blusseau <blusseau@zetam.org>
23043
23044 Add new --boot-directory option to replace --root-directory
23045
23046 * util/grub-install.in: Add new --boot-directory option
23047 * util/grub-reboot.in: Likewise.
23048 * util/grub-set-default.in: Likewise.
23049
b9fe6ea2
YB
230502010-09-08 Yves Blusseau <blusseau@zetam.org>
23051
23052 * util/grub-mkconfig.in: Use new variable.
23053
d87aedff
YB
230542010-09-08 Yves Blusseau <blusseau@zetam.org>
23055
23056 * configure.ac: Define some useful variables.
23057
e55e8495
VS
230582010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
23059
23060 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
23061 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
23062 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
23063 Use terminfo and don't use cursor-on/cursor-off unless it's known
23064 to work.
23065 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
23066 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
23067
6fa6d675
CW
230682010-09-08 Colin Watson <cjwatson@ubuntu.com>
23069
23070 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
23071 starts with "(,", fill the drive containing the loaded image in
23072 between those two characters, but expect that a full partition
23073 specification including partition map names will follow.
23074
92f2aef0
RM
230752010-09-08 Robert Millan <rmh@gnu.org>
23076
23077 * configure.ac: Remove `--enable-grub-fstest' option.
23078 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
23079
23080 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
23081 `grub-fstest' instead of `grub-probe' for readability verification.
23082 * util/grub-probe.c (probe): Remove readability verification kludge.
23083
99fd620d
RM
230842010-09-08 Robert Millan <rmh@gnu.org>
23085
23086 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
23087 initializing `GRUB_FS'.
23088
058e30ac 230892010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
23090
23091 Not command (!) support to GRUB script.
23092
23093 * tests/grub_script_not.in: New test.
23094 * Makefile.util.def: Rules for new test.
23095
23096 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
23097 ! command as a special case.
23098 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
23099
b61d05ed 231002010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
23101
058e30ac 23102 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
23103 grub_free.
b61d05ed 23104
4d69c786 231052010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
23106
23107 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
23108
aa3119c4 231092010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
23110
23111 * docs/grub.texi (Shell-like scripting): Documentation for break,
23112 continue, shift and return commands.
23113
db0f7e3d
VS
231142010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
23115
23116 Rename CD-ROM to cd on BIOS.
23117
23118 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
23119 "cd".
23120 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
23121
88b87c93
VS
231222010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23123
23124 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
23125 * util/grub-probe.c (main): Likewise.
23126 * util/i386/pc/grub-setup.c (main): Likewise.
23127 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
23128 Reported and debugged by: alexxy
23129
294f324d
VS
231302010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23131
23132 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
23133 diagnostic info.
23134
d7ee3441
JS
231352010-09-05 Jo Shields <directhex@apebox.org>
23136
23137 * util/grub.d/30_os-prober.in: Add missing classes.
23138
d7e06c1f
VS
231392010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23140
23141 * docs/grub.texi (Theme file format): Document new position format.
23142
fc157e53
VS
231432010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23144
23145 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
23146 a table. Use @code instead of @verbatim.
23147
506e9a1c
CB
231482010-09-05 Colin D Bennett <colin@gibibit.com>
23149
23150 Gfxmenu documentation.
23151
23152 * docs/grub.texi (Theme file format): New chapter.
23153
f0aff67c
SJ
231542010-09-05 Szymon Janc <szymon@janc.net.pl>
23155
23156 * grub-core/Makefile.core.def (xzio): New module.
23157 * grub-core/io/xzio.c: New file.
23158 * grub-core/lib/xzembed/xz.h: New file (from xembed).
23159 * grub-core/lib/xzembed/xz_config.h: Likewise.
23160 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
23161 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
23162 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
23163 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
23164 * grub-core/lib/xzembed/xz_private.h: Likewise.
23165 * grub-core/lib/xzembed/xz_stream.h: Likewise.
23166 * include/grub/file.h (grub_file_filter_id): New compression filter
23167 GRUB_FILE_FILTER_XZIO.
23168
82a85062
VS
231692010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23170
23171 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
23172 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
23173 size.
23174
3579415d
VS
231752010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23176
23177 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
23178 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
23179
5124ae6d
VS
231802010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23181
23182 Uncompressed checksum support.
23183
23184 * grub-core/commands/hashsum.c (options): Add option --uncompress.
23185 (check_list): New parameter uncompress.
23186 (grub_cmd_hashsum): Handle --uncompress.
23187
9aadb3d1
VS
231882010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23189
23190 Reintroduce testload.
23191
23192 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
23193 from here ...
23194 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
23195 (GRUB_MOD_INIT): New function.
23196 (GRUB_MOD_FINI): Likewise.
23197 * grub-core/Makefile.core.def (testload): New module.
23198
a17792c3
SJ
231992010-09-05 Szymon Janc <szymon@janc.net.pl>
23200
23201 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
23202 (uint8_t): New type.
23203 (uint16_t): Likewise.
23204 (uint32_t): Likewise.
23205 (uint64_t): Likewise.
23206
b81e40a3
SJ
232072010-09-05 Szymon Janc <szymon@janc.net.pl>
23208
23209 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
23210
fc2ef117
VS
232112010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23212
23213 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
23214 Made static.
23215 (grub_gzfile_open): Removed. All users updated.
23216 (GRUB_MOD_INIT): New function.
23217 (GRUB_MOD_FINI): Likewise.
23218 * grub-core/kern/file.c (grub_file_filters_all): New variable.
23219 (grub_file_filters_enabled): Likewise.
23220 (grub_file_open): Handle filters.
23221 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
23222 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
23223 * include/grub/file.h (grub_file_filter_id_t): New type.
23224 (grub_file_filter_t): Likewise.
23225 (grub_file_filters_all): New extern variable.
23226 (grub_file_filters_enabled): Likewise.
23227 (grub_file_filter_register): New inline function.
23228 (grub_file_filter_unregister): Likewise.
23229 (grub_file_filter_disable): Likewise.
23230 (grub_file_filter_disable_compression): Likewise.
23231 * include/grub/gzio.h: Removed.
23232
35ee15e0
BC
232332010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
23234
23235 Filename expansion support for wildcards in GRUB script.
23236
23237 * tests/grub_script_expansion.in: New test.
23238 * Makefile.util.def: Rule for new test.
23239
23240 * grub-core/commands/wildcard.c: New file, implements filename
23241 expansion support for GRUB script.
23242 * grub-core/Makefile.core.def: Rule update for regexp.mod.
23243 * grub-core/script/argv.c: Cosmetic changes.
23244 * grub-core/script/execute.c (grub_script_arglist_to_argv):
23245 Refactored to perform wildcard expansion on arguments.
23246 * include/grub/script_sh.h (grub_script_wildcard_translator): New
23247 struct.
23248
23249 * tests/util/grub-shell.in: Fix quoting for read input.
23250
5f0c4aca
BC
232512010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
23252
23253 Support for updating environment variables with matched substrings
23254 of regexp.
23255
23256 * tests/grub_cmd_regexp.in: New test.
23257 * Makefile.util.def: Rule for new test.
23258
23259 * grub-core/commands/regexp.c: New option -s to update environment
23260 variables with regexp matches.
23261
3759a35f
SJ
232622010-09-04 Szymon Janc <szymon@janc.net.pl>
23263
23264 * include/grub/file.h (grub_file): New member not_easly_seekable.
23265 (grub_file_seekable): New inline function.
23266 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
23267 easily seekable.
23268 (grub_gzio_open): Set not_easly_seekable.
23269 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
23270 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
23271
ed8c6dec
BC
232722010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
23273
23274 Support for options to appear multiple times on cmdline.
23275
23276 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
23277 * grub-core/commands/extcmd.c: Support for repeatable option.
23278 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
23279 repeatable option support.
23280
23281 Refactor menuentry into a regular command.
23282
23283 * grub-core/commands/menuentry.c: New file, menuentry command
23284 implementation.
23285 * grub-core/Makefile.core.def: Rule update for normal.mod.
23286 * grub-core/normal/main.c: Moved menuentry creation to
23287 grub-core/commands/menuentry.c.
23288 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
23289 (grub_menu_execute_entry_real): Removed.
23290 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
23291 function.
23292 (grub_script_execute_menuentry): Removed.
23293 * grub-core/script/parser.y (menuentry): Removed.
23294 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
23295 * grub-core/script/yylex.l (menuentry): Removed.
23296 * include/grub/menu.h (grub_menu_init): New prototype.
23297 (grub_menu_fini): New prototype.
23298 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
23299 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
23300 (grub_script_execute_sourcecode): New prototype.
23301
dacd0cf0
BC
233022010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
23303
23304 "return" command for GRUB script functions.
23305
23306 * tests/grub_script_return.in: New test.
23307 * Makefile.util.def: Rules for new test.
23308
23309 * grub-core/script/execute.c (grub_script_return): New function.
23310 * grub-core/script/main.c: Register/unregister return commaond.
23311 * include/grub/script_sh.h (grub_script_return): New prototype.
23312
52e72f9d
BC
233132010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
23314
23315 "setparams" command to update positional parameters.
23316
23317 * tests/grub_script_setparams.in: New test.
23318 * Makefile.util.def: Rules for new test.
23319
23320 * grub-core/script/argv.c (grub_script_argv_make): New function.
23321 * grub-core/script/execute.c (replace_scope): New function.
23322 (grub_script_setparams): New function.
23323 * grub-core/script/lexer.c: Remove unused variables.
23324 * grub-core/script/main.c: Register/unregister setparams command.
23325 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
23326 (grub_script_setparams): New prototype.
23327
25b60c91
BC
233282010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
23329
23330 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
23331 grub_free order.
23332
37e7bf68
BC
233332010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
23334
23335 Support for passing block of commands as an argument to extcmds.
23336
23337 * Makefile.util.def: Rules for new test.
23338 * tests/grub_script_blockarg.in: New test.
23339 * grub-core/tests/test_blockarg.c: New file, block argument
23340 command used in the test.
23341
23342 * include/grub/extcmd.h (grub_extcmd_context): New struct.
23343 (grub_register_extcmd_prio): New function prototype.
23344 (grub_extcmd_dispatcher): New function prototype.
23345 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
23346 type.
23347 * include/grub/script_sh.h (struct grub_script): New members
23348 `children', `next_siblings' and `refcnt' for block arguments and
23349 reference counting.
23350 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
23351 (grub_script_arg): New member `script' for block argument.
23352 (grub_script_argv): New member `script' for block argument.
23353 (grub_parser_param): New member `scripts' for block argument.
23354 (grub_script_mem_free): New extern function prototype.
23355 (grub_script_ref): New function prototype.
23356 (grub_script_unref): New function prototype.
23357
23358 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
23359 extcmd form to support block arguments.
23360 * grub-core/script/argv.c: Block arguments support.
23361 * grub-core/script/execute.c: Likewise.
23362 * grub-core/script/lexer.c: Likewise.
23363 * grub-core/script/main.c: Likewise.
23364 * grub-core/script/script.c: Likewise.
23365 * grub-core/script/parser.y: Likewise. New `block' and `block0'
23366 non-terminals.
23367
23368 * grub-core/commands/acpi.c: Update extcmd implementations with
23369 grub_extcmd_context_t.
23370 * grub-core/commands/cat.c: Likewise.
23371 * grub-core/commands/echo.c: Likewise.
23372 * grub-core/commands/extcmd.c: Likewise.
23373 * grub-core/commands/hashsum.c: Likewise.
23374 * grub-core/commands/hdparm.c: Likewise.
23375 * grub-core/commands/help.c: Likewise.
23376 * grub-core/commands/hexdump.c: Likewise.
23377 * grub-core/commands/i386/cpuid.c: Likewise.
23378 * grub-core/commands/i386/pc/drivemap.c: Likewise.
23379 * grub-core/commands/i386/pc/halt.c: Likewise.
23380 * grub-core/commands/i386/pc/sendkey.c: Likewise.
23381 * grub-core/commands/iorw.c: Likewise.
23382 * grub-core/commands/keystatus.c: Likewise.
23383 * grub-core/commands/loadenv.c: Likewise.
23384 * grub-core/commands/ls.c: Likewise.
23385 * grub-core/commands/lspci.c: Likewise.
23386 * grub-core/commands/memrw.c: Likewise.
23387 * grub-core/commands/probe.c: Likewise.
23388 * grub-core/commands/search_wrap.c: Likewise.
23389 * grub-core/commands/setpci.c: Likewise.
23390 * grub-core/commands/sleep.c: Likewise.
23391 * grub-core/disk/loopback.c: Likewise.
23392 * grub-core/hello/hello.c: Likewise.
23393 * grub-core/loader/i386/bsd.c: Likewise.
23394 * grub-core/loader/xnu.c: Likewise.
23395 * grub-core/term/gfxterm.c: Likewise.
23396 * grub-core/term/serial.c: Likewise.
23397 * grub-core/tests/lib/functional_test.c: Likewise.
23398
888d1500
BC
233992010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
23400
23401 Multi-line quoted strings support.
23402
23403 * grub-core/script/lexer.c (append_newline): Removed.
23404 (grub_script_lexer_yywrap): Refactored.
23405 (grub_script_lexer_init): Refactored.
23406 * grub-core/script/yylex.l (yywrap): New function.
23407 (grub_lexer_resplit): New function.
23408 (grub_lexer_unput): New function.
23409 * include/grub/script_sh.h (grub_lexer_param): New members, unput
23410 and resplit.
23411 * tests/grub_script_echo1.in: Added few more testcases.
23412
dda060dd
VS
234132010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
23414
23415 * grub-core/kern/misc.c: Don't add abort alias in utils.
23416 Reported by: echoline.
23417
6556eba9
BC
234182010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
23419
23420 Add missing files into "make dist" tarball for other platforms.
23421
23422 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
23423 * conf/Makefile.common (dist_noinst_DATA): New variable.
23424 * conf/Makefile.extra-dist: Added missing make dist files.
23425 * grub-core/Makefile.core.def: Likewise.
23426
c8e7bf5f
VS
234272010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
23428
23429 Compress grub_prefix.
23430
23431 * grub-core/boot/i386/pc/lnxboot.S: Use
23432 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
23433 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
23434 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
23435 GRUB_MACHINE_PREFIX_END. All users updated.
23436 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
23437 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
23438 + 0x40.
23439 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
23440 * util/grub-mkimage.c (image_target_desc): Change data_end to
23441 prefix_end. All users updated.
23442
a7c00cdb
VS
234432010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
23444
23445 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
23446 value.
23447 (grub_openbsd_boot): Likewise.
23448 (grub_netbsd_boot): Likewise.
23449 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
23450 (grub_xnu_boot): Likewise.
23451
9f915872
VS
234522010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
23453
23454 * configure.ac: Clean LIBS variable after tests.
23455
efa1bee7
CW
234562010-09-02 Colin Watson <cjwatson@ubuntu.com>
23457
23458 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
23459
61d720e5
VS
234602010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
23461
23462 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
23463 echo if libdevmapper will be used.
23464
ef8e0ec8
IT
234652010-09-02 Ian Turner <Ian.Turner@deshaw.com>
23466
23467 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
23468 constant for the same file.
23469
03e261d8
VS
234702010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
23471
23472 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
23473
c2a4eba6
CW
234742010-09-02 Colin Watson <cjwatson@ubuntu.com>
23475
23476 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
23477 grub-core/*.pp.
23478
9056cbf3
CW
234792010-09-02 Colin Watson <cjwatson@ubuntu.com>
23480
23481 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
23482 required by the boot protocol.
23483
23484 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
23485 ebp and edi members.
23486 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
23487 state.ebp and state.edi.
23488 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
23489 %ebp and %edi according to grub_relocator32_ebp and
23490 grub_relocator32_edi respectively.
23491 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
23492 and state.edi.
23493
529cc99a
VS
234942010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
23495
23496 Add i386-pc-pxe image target.
23497
23498 * util/grub-mkimage.c (image_target_desc): New enum value
23499 IMAGE_I386_PC_PXE.
23500 (image_targets): New target i386-pc-pxe.
23501 (generate_image): Handle i386-pc-pxe image.
23502
9a093920
VS
235032010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
23504
23505 Fix grub_pxe_scan.
23506
23507 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
23508 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
23509 All users updated.
23510 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
23511 (grub_pxe_pxenv): Correct type.
23512
f9cefc4e
CW
235132010-09-01 Colin Watson <cjwatson@ubuntu.com>
23514
23515 * NEWS: Document most of the important changes since 1.98.
23516
4066f57f
CW
235172010-09-01 Colin Watson <cjwatson@ubuntu.com>
23518
23519 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
23520 generated manual page) a little.
23521
da2891f9
CW
235222010-09-01 Colin Watson <cjwatson@ubuntu.com>
23523
23524 * docs/grub.texi: Add myself as an author.
23525
ad717fae
VS
235262010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
23527
23528 * Makefile.util.def (libgrub.a): Add missing sunpc.
23529 Reported by: Seth Goldberg.
23530
eefe8abd
VS
235312010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
23532
23533 Interrupt wrapping and code simplifications.
23534
9494ef9a
VS
23535 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
23536 x86_noieee1275 which are functionaly equivalent in this case.
23537 (grub-install): Make source on each platform explicit. Enable on
23538 all noemu.
23539 * gentpl.py (x86_efi_pc): Removed group.
23540 (x86_noefi): Likewise.
23541 (i386_noefi): Likewise.
23542 (x86_noieee1275): Likewise.
23543 (i386_noieee1275): Likewise.
23544 (i386_noefi_noieee1275): Likewise.
23545 (i386_pc_qemu_coreboot): Likewise.
23546 (i386_coreboot_multiboot): Likewise.
23547 (i386_pc_coreboot_multiboot_qemu): Likewise.
23548 (x86_noefi_mips): Likewise.
23549 (noieee1275): Likewise.
23550 (ieee1275_mips): Likewise.
23551 (noemu_noieee1275): Likewise.
23552 (cmos): New group.
23553 (usb): Likewise.
23554 (videoinkernel): Likewise.
23555 (videomodules): Likewise.
eefe8abd 23556 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
9494ef9a
VS
23557 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
23558 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
23559 include/grub/loader.h, include/grub/msdos_partition.h,
23560 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
23561 include/grub/machine/console.h, include/grub/machine/vga.h,
23562 include/grub/machine/vbe.h, include/grub/machine/init.h,
23563 include/grub/machine/kernel.h, include/grub/cpu/time.h,
23564 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
eefe8abd 23565 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
9494ef9a
VS
23566 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
23567 * grub-core/Makefile.core.def (kernel): Explicit the source for
23568 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
23569 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
23570 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
23571 Use videoinkernel tag.
23572 (usb): Enable on all usb.
23573 (usbserial_common): Likewise.
23574 (usbserial_pl2303): Likewise.
23575 (usbserial_ftdi): Likewise.
23576 (uhci): Enable on all x86.
23577 (ohci): Enable on all pci.
23578 (cmostest): Enable on all CMOS.
23579 (acpi): Include commands/acpi.c on all platforms.
23580 (halt): Add relevant lib/*/halt.c.
23581 (hdparm): Enable on all pci.
23582 (lspci): Likewise.
23583 (usbtest): Enable on all usb.
23584 (ata): Enable on all pci.
23585 (ata_pthru): Likewise.
23586 (usbms): Enable on all usb.
23587 (usb_keyboard): Likewise.
23588 (font): Use tag videomodules.
23589 (bufio): Likewise.
23590 (datetime): Use tag cmos. Enable on all noemu.
23591 (mmap): Use tags common and x86.
23592 (gfxterm): Use tag videomodules.
23593 (bitmap): Likewise.
23594 (bitmap_scale): Likewise.
23595 (video_fb): Likewise.
23596 (video): Likewise.
23597 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
23598 adjust padding accordingly. All users updated.
23599 (grub_ohci_transaction): Fix bad format specification.
23600 (GRUB_MOD_INIT): Add asserts for struct size.
23601 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
23602 (grub_alloc_td): Likewise.
23603 (grub_free_queue): Likewise.
23604 (grub_uhci_transfer): Likewise.
23605 (grub_uhci_transaction): Fix bad format specification.
23606 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
23607 (grub_usb_bulk_readwrite): Likewise.
23608 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
23609 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
23610 Made static.
23611 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
23612 Made static.
23613 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
23614 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
23615 Transformed into C.
23616 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
23617 Moved from here ...
23618 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
23619 ... here. Transformed into C. Made static.
23620 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
23621 Moved from here ...
23622 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
23623 ... here. Transformed into C. Made static.
23624 * grub-core/kern/i386/pc/startup.S
23625 (grub_biosdisk_check_int13_extensions): Moved from here ...
23626 * grub-core/disk/i386/pc/biosdisk.c
23627 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
23628 Made static.
23629 * grub-core/kern/i386/pc/startup.S
23630 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
23631 * grub-core/disk/i386/pc/biosdisk.c
23632 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
23633 Transformed into C. Made static.
23634 * grub-core/kern/i386/pc/startup.S
23635 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
23636 * grub-core/disk/i386/pc/biosdisk.c
23637 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
23638 Transformed into C. Made static.
23639 * grub-core/kern/i386/pc/startup.S
23640 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
23641 * grub-core/disk/i386/pc/biosdisk.c
23642 (grub_biosdisk_get_diskinfo_standard): ... here.
23643 Transformed into C. Made static.
23644 * grub-core/kern/i386/pc/startup.S
23645 (grub_biosdisk_get_num_floppies): Moved from here ...
23646 * grub-core/disk/i386/pc/biosdisk.c
23647 (grub_biosdisk_get_num_floppies): ... here.
23648 Transformed into C. Made static.
23649 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
23650 New function.
23651 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
23652 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
23653 Transformed into C. Made static.
23654 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
23655 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
23656 Transformed into C. Made static.
23657 * grub-core/kern/i386/ieee1275/init.c: Removed.
23658 * grub-core/kern/i386/misc.S: Likewise.
23659 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
23660 Splitted from here ...
23661 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
23662 Transformed into C. Made static. All users updated.
23663 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
23664 Transformed into C. Made static. All users updated.
23665 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
23666 Moved from here...
23667 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
23668 Transformed into C. Made static. All users updated.
23669 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
23670 Moved from here...
23671 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
23672 Transformed into C. Made static. All users updated.
23673 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
23674 Removed (replaced by C version).
23675 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
23676 Moved from here...
23677 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
23678 Transformed into C. Made static.
23679 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
23680 Moved from here...
23681 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
23682 ... here. Transformed into C.
23683 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
23684 Moved from here...
23685 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
23686 ... here. Transformed into C.
23687 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
23688 Moved from here...
23689 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
23690 ... here. Transformed into C. Made static.
23691 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
23692 Moved from here...
23693 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
23694 ... here. Transformed into C.
21ed554b
VS
23695 * grub-core/kern/i386/pc/startup.S
23696 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
23697 * grub-core/video/i386/pc/vbe.c
23698 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
9494ef9a
VS
23699 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
23700 Moved from here...
23701 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
23702 ... here. Transformed into C.
23703 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
23704 Moved from here...
23705 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
23706 ... here. Transformed into C.
23707 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
23708 Moved from here...
23709 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
23710 ... here. Transformed into C.
23711 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
23712 Moved from here...
23713 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
23714 ... here. Transformed into C.
23715 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
23716 Moved from here...
23717 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
23718 ... here. Transformed into C. Made static.
23719 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
23720 Moved from here...
23721 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
23722 ... here. Transformed into C. Made static.
23723 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
23724 Moved from here...
23725 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
23726 ... here. Transformed into C. Made static.
23727 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
23728 pxe_rm_entry as third argument.
23729 (grub_bios_interrupt): New function.
23730 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
23731 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
23732 of calling grub_stop.
23733 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
23734 * grub-core/lib/efi/halt.c (grub_halt): ...here.
23735 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
23736 * grub-core/lib/emu/halt.c (grub_halt): ... here.
23737 * grub-core/lib/i386/halt.c: Moved from here ...
23738 * grub-core/lib/i386/halt.c: ... here.
23739 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
23740 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
23741 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
23742 grub_stop_floppy.
23743 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
23744 * include/grub/i386/coreboot/init.h: Removed.
23745 * include/grub/i386/multiboot/init.h: Likewise.
23746 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
23747 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
23748 * include/grub/i386/pc/int.h: New file.
23749 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
23750 (grub_pxe_scan): Removed.
23751 (grub_pxe_call): Update prototype.
23752 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
23753 prototypes.
23754 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
23755 * include/grub/i386/qemu/init.h: Removed.
23756 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
23757 noreturn.
23758 (grub_halt): Likewise.
23759 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
23760 (grub_reboot): Likewise.
23761 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
23762 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
21ed554b
VS
23763 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
23764
215dd471
RM
237652010-08-30 Robert Millan <rmh@gnu.org>
23766
23767 * NEWS: Document addition of ZFS support in `grub-install' and
23768 `grub-mkconfig'.
23769
ebd65b82
BC
237702010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
23771
23772 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
23773 dprintf output.
23774
11721d19
VS
237752010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
23776
23777 Remove leftover embedding of font objects.
23778
23779 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
23780 * util/grub-install.in (font): Removed.
23781 * util/grub-mkimage.c (generate_image): Remove font support. All users
23782 updated.
23783
37837d4e
VS
237842010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
23785
23786 Remove leftover embedding of font objects.
23787
23788 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
23789 * util/grub-install.in (font): Removed.
23790 * util/grub-mkimage.c (generate_image): Remove font support. All users
23791 updated.
23792
b4c1aae0
VS
237932010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
23794
23795 * docs/grub.texi (Network): Fix reference to pxe_blksize.
e176a764 23796 Reported by: Ian Turner
b4c1aae0 23797
8920a08d
VS
237982010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
23799
23800 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
23801 timeout to avoid indefinite boot stalling.
23802
f21db033
VS
238032010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
23804
23805 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
23806 (grub_env_write_color_highlight): Likewise.
23807
9a9de209
VS
238082010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
23809
23810 * grub-core/normal/term.c (print_more): Return to normal and not
23811 to standard state after printing "---MORE---".
23812
3dca01d7
VS
238132010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
23814
23815 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
23816 Mask out the bit 0x80 since it has other meaning that specifiing color.
23817
0b986c40
VS
238182010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
23819
23820 New relocator. Allows for more kernel support and more straightforward
23821 loader writing.
23822
23823 * Makefile.am (BOOTTARGET): New variable.
23824 (QEMU32): Likewise.
23825 (linux.init.x86_64): New target.
23826 (linux.init.i386): Likewise.
23827 (multiboot.elf): Likewise.
23828 (kfreebsd.elf): Likewise.
23829 (kfreebsd.aout): Likewise.
23830 (pc-chainloader.elf): Likewise.
23831 (pc-chainloader.bin): Likewise.
23832 (ntldr.elf): Likewise.
23833 (ntldr.bin): Likewise.
23834 (multiboot2.elf): Likewise.
23835 (kfreebsd.init.x86_64): Likewise.
23836 (kfreebsd.init.i386): Likewise.
23837 (knetbsd.init.i386): Likewise.
23838 (kopenbsd.init.i386): Likewise.
23839 (knetbsd.init.x86_64): Likewise.
23840 (kopenbsd.init.x86_64): Likewise.
23841 (linux-initramfs.i386): Likewise.
23842 (linux-initramfs.x86_64): Likewise.
23843 (kfreebsd-mfsroot.i386.img): Likewise.
23844 (knetbsd.image.i386): Likewise.
23845 (kopenbsd.image.i386): Likewise.
23846 (kopenbsd.image.x86_64): Likewise.
23847 (knetbsd.miniroot-image.i386.img): Likewise.
23848 (kfreebsd-mfsroot.x86_64.img): Likewise.
23849 (knetbsd.image.x86_64): Likewise.
23850 (knetbsd.miniroot-image.x86_64.img): Likewise.
23851 (kfreebsd-mfsroot.i386.gz): Likewise.
23852 (bootcheck-kfreebsd-i386): Likewise.
23853 (kfreebsd-mfsroot.x86_64.gz): Likewise.
23854 (bootcheck-kfreebsd-x86_64): Likewise.
23855 (knetbsd.miniroot-image.i386.gz): Likewise.
23856 (bootcheck-knetbsd-i386): Likewise.
23857 (bootcheck-kopenbsd-i386): Likewise.
23858 (bootcheck-kopenbsd-x86_64): Likewise.
23859 (knetbsd.miniroot-image.x86_64.gz): Likewise.
23860 (bootcheck-knetbsd-x86_64): Likewise.
23861 (bootcheck-linux-i386): Likewise.
23862 (bootcheck-linux-x86_64): Likewise.
23863 (bootcheck-linux16-i386): Likewise.
23864 (bootcheck-linux16-x86_64): Likewise.
23865 (bootcheck-multiboot): Likewise.
23866 (bootcheck-multiboot2): Likewise.
23867 (bootcheck-kfreebsd-aout): Likewise.
23868 (bootcheck-pc-chainloader): Likewise.
23869 (bootcheck-ntldr): Likewise.
23870 (CLEANFILES): Add new targets.
23871 (BOOTCHECKS): New variable.
23872 (.PHONY): Add bootchecks.
23873 (SUCCESSFUL_BOOT_STRING): New variable.
23874 (BOOTCHECK_TIMEOUT): Likewise.
23875 (bootcheck): New target
23876 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
23877 * configure.ac: Correct efiemu excuse.
23878 * docs/grub.texi (Supported kernels): New chapter.
23879 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
23880 include/grub/mm_private.h. Simplify inclusion of
23881 include/grub/boot.h, include/grub/loader.h
23882 and include/grub/msdos_partition.h
23883 (KERNEL_HEADER_FILES) [i386_coreboot]:
23884 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
23885 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
23886 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
23887 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
23888 include/grub/machine/loader.h.
23889 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
23890 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
23891 extra_dist.
23892 (pci.mod): Enable on i386-multiboot.
23893 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
23894 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
23895 i386-qemu.
23896 (relocator.mod): Rewritten.
23897 (aout.mod): Enable on all x86.
23898 (bsd.mod): Likewise.
23899 (ntldr.mod): New module.
23900 (linux.mod): Use loader/i386/linux.c on all x86.
23901 (xnu.mod): Enable on all x86.
23902 (vga_text.mod): disable on EFI and QEMU.
23903 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
23904 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
23905 * grub-core/efiemu/loadcore.c: Likewise.
23906 * grub-core/efiemu/main.c: Likewise.
23907 (grub_efiemu_exit_boot_services): Removed.
23908 (grub_efiemu_finish_boot_services): Likewise.
23909 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
23910 function.
23911 * grub-core/efiemu/i386/nocfgtables.c: New file.
23912 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
23913 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
23914 (grub_efi_finish_boot_services): Moved from here ...
23915 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
23916 Fille finish memory map and related data.
23917 (finish_mmap_buf): New variable.
23918 (grub_efi_uintn_t finish_mmap_size): Likewise.
23919 (grub_efi_uintn_t finish_key): Likewise.
23920 (grub_efi_uintn_t finish_desc_size): Likewise.
23921 (grub_efi_uint32_t finish_desc_version): Likewise.
23922 (grub_efi_is_finished): Likewise.
23923 (grub_efi_get_memory_map): Use saved memory map if EFI is already
23924 finished.
23925 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
23926 (grub_elf64_phdr_iterate): Likewise.
23927 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
23928 (grub_os_area_size): Likewise.
23929 (grub_machine_init): Don't reserve os area.
23930 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
23931 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
23932 * grub-core/kern/i386/loader.S: Removed.
23933 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
23934 (grub_os_area_size): Likewise.
23935 (grub_machine_init): Don't reserve os area.
23936 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
23937 Don't call grub_dl_unload_all.
23938 Don't include loader.S.
23939 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
23940 Declare the memory after _end as available.
23941 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
1935c077 23942 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
0b986c40 23943 (GRUB_MM_ALLOC_MAGIC): Moved from here...
1935c077
VS
23944 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
23945 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
23946 * include/grub/mm_private.h (grub_mm_header): ... here.
23947 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
23948 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
0b986c40
VS
23949 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
23950 (grub_mm_region): ..here. Removed addr. Added pre_size.
23951 All users updated.
23952 * grub-core/kern/mm.c (base): Renamed to ...
23953 (grub_mm_base): ... this. Made global.
23954 (grub_real_malloc): Alloc from end of region.
23955 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
23956 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
23957 * grub-core/kern/powerpc/cache_flush.S: ... here.
23958 * grub-core/lib/efi/relocator.c: New file.
23959 * grub-core/lib/i386/relocator.c: Rewritten.
23960 * grub-core/lib/i386/relocator16.S: New file.
23961 * grub-core/lib/i386/relocator32.S: Likewise.
23962 * grub-core/lib/i386/relocator64.S: Likewise.
23963 * grub-core/lib/i386/relocator_asm.S: Rewritten.
23964 * grub-core/lib/i386/relocator_common.S: New file.
23965 * grub-core/lib/ieee1275/relocator.c: Likewise.
23966 * grub-core/lib/mips/relocator.c: Rewritten.
23967 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
23968 stylistic adjustments.
23969 * grub-core/lib/powerpc/relocator.c: New file.
23970 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
23971 * grub-core/lib/relocator.c: Rewritten.
23972 * grub-core/lib/x86_64/relocator_asm.S: New file.
23973 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
23974 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
23975 (bsd_tag): New struct.
23976 (tags): New variable.
23977 (tags_last): Likewise.
23978 (netbsd_module): New struct.
23979 (netbsd_mods): New variable.
23980 (netbsd_mods_last): Likewise.
23981 (openbsd_opts): New parameter "serial".
23982 (OPENBSD_SERIAL_ARG): New definition.
23983 (netbsd_opts): New parameter "serial".
23984 (NETBSD_SERIAL_ARG): New definition.
23985 (grub_freebsd_add_meta): Reorganised into ...
23986 (grub_bsd_add_meta): ...this. All users updated.
23987 (grub_freebsd_add_mmap): Reorganised into ...
23988 (generate_e820_mmap): ...this...
23989 (grub_bsd_add_mmap): ...and this. All users updated.
23990 (grub_freebsd_list_modules): Use tags.
23991 (grub_netbsd_add_meta_module): New function.
23992 (grub_netbsd_list_modules): Likewise.
23993 (grub_freebsd_boot): Use relocator and finish EFI.
23994 (grub_openbsd_boot): Likewise.
23995 (grub_netbsd_setup_video): New function.
23996 (grub_netbsd_add_modules): Likewise.
23997 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
23998 and finish EFI.
23999 (grub_bsd_unload): Unload tags.
24000 (grub_bsd_load_aout): Use relocator.
24001 (grub_bsd_elf32_size_hook): New function.
24002 (grub_bsd_elf32_hook): Use relocator.
24003 (grub_bsd_elf64_size_hook): New function.
24004 (grub_bsd_elf64_hook): Use relocator.
24005 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
24006 (grub_bsd_load): Zero-out openbsd_ramdisk.
24007 (grub_bsd_load): Use relocator.
24008 (grub_cmd_openbsd): Support serial.
24009 (grub_cmd_netbsd): Support modules.
24010 (grub_cmd_freebsd_module): Use relocator.
24011 (grub_netbsd_module_load): New function.
24012 (grub_cmd_netbsd_module): Likewise.
24013 (grub_cmd_openbsd_ramdisk): Likewise.
24014 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
24015 kopenbsd_ramdisk.
24016 (GRUB_MOD_FINI): Unregister new commands.
24017 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
24018 (grub_freebsd_load_elfmodule_obj): Use relocator.
24019 (grub_freebsd_load_elfmodule): Likewise.
24020 (grub_freebsd_load_elf_meta): Likewise.
24021 (grub_netbsd_load_elf_meta): New function.
24022 (grub_openbsd_find_ramdisk): Likewise.
24023 * grub-core/loader/i386/bsd_helper.S: Removed.
24024 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
24025 * grub-core/loader/i386/bsd_trampoline.S: Removed.
24026 * grub-core/loader/i386/efi/linux.c: Likewise.
24027 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
24028 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
24029 (DEFAULT_VIDEO_MODE): Likewise.
24030 (real_mode_target): New variable.
24031 (prot_mode_target): Likewise.
24032 (initrd_mem_target): Likewise.
24033 (relocator): Likewise.
24034 (efi_mmap_buf): Likewise.
24035 (efi_mmap_size): Likewise.
24036 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
24037 (free_pages): Use relocator.
24038 (allocate_pages): Account for efi_mmap and use relocator. Return error.
24039 (grub_linux_setup_video): Return error.
24040 (grub_linux_trampoline_start): Removed.
24041 (grub_linux_trampoline_end): Likewise.
24042 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
24043 andd video parameters depending on firmware.
24044 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
24045 [GRUB_MACHINE_EFI]: Pass EFI parameters.
24046 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
24047 (grub_cmd_initrd): Use relocator.
24048 * grub-core/loader/i386/linux_trampoline.S: Removed.
24049 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
24050 (elf_sec_entsize): Likewise.
24051 (elf_sec_shstrndx): Likewise.
24052 (elf_sections): Likewise.
24053 (grub_multiboot_load): Use relocator.
24054 (grub_multiboot_get_mbi_size): Account for sections.
24055 (grub_multiboot_make_mbi): Use relocator and support sections.
24056 (grub_multiboot_add_elfsyms): New function.
24057 (grub_multiboot_free_mbi): Free sections.
24058 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
24059 (grub_linux_real_target): Likewise.
24060 (grub_linux_real_chunk): Likewise.
24061 (grub_linux16_prot_size): Likewise.
24062 (grub_linux16_boot): Use relocator.
24063 (grub_linux_unload): Unload relocator.
24064 (grub_cmd_linux): Use relocator.
24065 (grub_cmd_initrd): Likewise.
24066 * grub-core/loader/i386/pc/ntldr.c: New file.
24067 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
24068 Don't try to guess CPU frequency.
24069 (grub_xnu_set_video): Stretch bitmap.
24070 (grub_xnu_boot): Use relocator.
24071 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
24072 (grub_linux_unload): Free relocator.
24073 (grub_linux_load32): Use relocator.
24074 (grub_linux_load64): Likewise.
24075 (grub_cmd_initrd): Likewise.
24076 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
24077 (grub_multiboot_unload): Unload relocator.
24078 (grub_cmd_multiboot): Use relocator.
24079 (grub_cmd_module): Likewise.
24080 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
24081 Use relocator and support sections.
24082 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
24083 (elf_sec_entsize): Likewise.
24084 (elf_sec_shstrndx): Likewise.
24085 (elf_sections): Likewise.
24086 (grub_multiboot_load): Use relocator.
24087 (grub_multiboot_get_mbi_size): Account for sections.
24088 (grub_multiboot_make_mbi): Use relocator and support sections.
24089 (grub_multiboot_add_elfsyms): New function.
24090 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
24091 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
24092 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
24093 Prototype changed. All users updated.
24094 (grub_xnu_align_heap): Simplified.
24095 (grub_xnu_writetree_toheap): Likewise.
24096 (grub_xnu_unload): Unload relocator.
24097 (grub_cmd_xnu_kernel): Use relocator.
24098 (grub_cmd_xnu_kernel64): Likewise.
24099 (grub_xnu_register_memory): Simplified.
24100 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
1935c077
VS
24101 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
24102 EFI is finished.
24103 (grub_console_checkkey): Likewise.
24104 (grub_console_getkey): Likewise.
24105 (grub_console_getwh): Likewise.
24106 (grub_console_getxy): Likewise.
24107 (grub_console_gotoxy): Likewise.
24108 (grub_console_cls): Likewise.
24109 (grub_console_setcolorstate): Likewise.
24110 (grub_console_setcursor): Likewise.
24111 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
24112 * grub-core/tests/boot/kbsd.init-i386.S: New file.
24113 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
24114 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
24115 * grub-core/tests/boot/kernel-8086.S: Likewise.
24116 * grub-core/tests/boot/kernel-i386.S: Likewise.
24117 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
24118 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
24119 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
24120 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
24121 * grub-core/tests/boot/knetbsd.cfg: Likewise.
24122 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
24123 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
24124 * grub-core/tests/boot/linux.cfg: Likewise.
24125 * grub-core/tests/boot/linux.init-i386.S: Likewise.
24126 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
24127 * grub-core/tests/boot/linux16.cfg: Likewise.
24128 * grub-core/tests/boot/multiboot.cfg: Likewise.
24129 * grub-core/tests/boot/multiboot2.cfg: Likewise.
24130 * grub-core/tests/boot/ntldr.cfg: Likewise.
24131 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
24132 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
24133 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
24134 New definition.
24135 * include/grub/dl.h (grub_dl_unload_all): Removed.
24136 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
24137 (grub_efi_finish_boot_services): Change prototype.
24138 (grub_efi_is_finished): New variable.
24139 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
24140 Changed prototype.
24141 (grub_efiemu_finish_boot_services): Removed.
24142 (grub_machine_efiemu_init_tables): New prototype.
24143 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
24144 (grub_elf64_phdr_iterate): Likewise.
24145 * include/grub/i386/bsd.h: Include relocator.h.
24146 (freebsd_tag_header): New struct.
24147 (grub_openbsd_bios_mmap): Removed.
24148 (grub_unix_real_boot): Removed.
24149 (grub_freebsd_load_elfmodule32): Changed prototype.
24150 (grub_freebsd_load_elfmodule_obj64): Likewise.
24151 (grub_freebsd_load_elf_meta32): Likewise.
24152 (grub_freebsd_load_elf_meta64): Likewise.
24153 (grub_freebsd_add_meta): Removed.
24154 (grub_netbsd_load_elf_meta32): New prototype.
24155 (grub_netbsd_load_elf_meta64): Likewise.
24156 (grub_bsd_add_meta): Likewise.
24157 (grub_openbsd_ramdisk_descriptor): New struct.
24158 (grub_openbsd_find_ramdisk32): New prototype.
24159 (grub_openbsd_find_ramdisk64): Likewise.
24160 * include/grub/i386/coreboot/loader.h: Removed.
24161 * include/grub/i386/efi/loader.h: Likewise.
24162 * include/grub/i386/ieee1275/loader.h: Likewise.
24163 * include/grub/i386/linux.h (linux_kernel_header): Change void *
24164 to grub_uint32_t.
24165 * include/grub/i386/loader.h: Removed.
24166 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
24167 value.
24168 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
24169 (grub_phys_addr_t): New type.
24170 (grub_vtop): New inline function.
24171 (grub_map_memory): Likewise.
24172 (grub_unmap_memory): Likewise.
24173 * include/grub/i386/multiboot/loader.h: Removed.
24174 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
24175 (NETBSD_BTINFO_CONSOLE): New definition.
24176 (NETBSD_BTINFO_SYMTAB): Likewise.
24177 (NETBSD_BTINFO_MODULES): Likewise.
24178 (NETBSD_BTINFO_FRAMEBUF): Likewise.
24179 (grub_netbsd_bootinfo): New struct.
24180 (grub_netbsd_btinfo_common): Use explicit bitsize.
24181 (grub_netbsd_btinfo_mmap_entry): Removed.
24182 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
24183 (grub_netbsd_btinfo_bootdisk): New struct.
24184 (grub_netbsd_btinfo_symtab): Likewise.
24185 (grub_netbsd_btinfo_serial): Likewise.
24186 (grub_netbsd_btinfo_modules): Likewise.
24187 (grub_netbsd_btinfo_framebuf): Likewise.
24188 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
24189 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
24190 Likewise.
24191 (grub_openbsd_bootargs): Use explicit bitsize.
24192 (grub_openbsd_bootarg_console): New struct.
24193 (GRUB_OPENBSD_COM_MAJOR): New definition.
24194 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
24195 * include/grub/i386/pc/efiemu.h: Removed.
24196 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
24197 * include/grub/i386/qemu/loader.h: Removed.
24198 * include/grub/i386/relocator.h: Rewritten.
24199 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
24200 * include/grub/mips/memory.h: New file.
24201 * include/grub/mips/multiboot.h: Rewritten.
24202 * include/grub/mips/relocator.h: Rewritten.
24203 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
24204 (grub_vtop): New function.
24205 (grub_map_memory): Likewise.
24206 (grub_unmap_memory): Likewise.
24207 * include/grub/misc.h (ALIGN_DOWN): New definition.
24208 * include/grub/mm.h (grub_mm_check_real): New proto.
24209 (GRUB_MM_CHECK): New definition.
24210 * include/grub/mm_private.h: New file.
24211 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
24212 (grub_multiboot_get_mbi_size): Removed.
24213 (grub_multiboot_make_mbi): Change prottype.
24214 (grub_multiboot_set_accepts_video): New proto.
24215 (grub_multiboot_add_elfsyms): Likewise.
24216 (grub_multiboot_payload_eip): New variable.
24217 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
24218 New prototype.
24219 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
24220 New definition.
24221 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
24222 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
24223 * include/grub/powerpc/ieee1275/loader.h: Removed.
24224 * include/grub/powerpc/memory.h: New file.
24225 * include/grub/powerpc/relocator.h: Likewise.
24226 * include/grub/relocator.h: Likewise.
24227 * include/grub/relocator_private.h: Likewise.
24228 * include/grub/sparc64/ieee1275/loader.h: Removed.
24229 * include/grub/x86_64/memory.h: New file.
24230 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
24231 (grub_xnu_heap_malloc): Likewise.
24232 (grub_xnu_heap_real_start): Removed.
24233 (grub_xnu_heap_start): Likewise.
24234 (grub_xnu_relocator): New variable.
24235 (grub_xnu_heap_target_start): Likewise.
24236 * tests/util/grub-shell.in: Support non-pc.
24237 * util/grub-mkimage.c (image_targets): Fix multiboot target.
0b986c40 24238
5303b85d
VS
242392010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24240
24241 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
24242 on malloc error.
24243 (grub_bidi_logical_to_visual): Check that malloc succeded.
24244 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
24245 puts.
24246 (grub_xputs_normal): Likewise.
24247
d768d159
VS
242482010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24249
24250 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
24251 extra_dist.
24252
242532010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24254
24255 * grub-core/efiemu/runtime/efiemu.sh: Removed.
24256
5bf84df4
VS
242572010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24258
24259 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
24260
3626810e
VS
242612010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24262
24263 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
24264 dprintf.
24265
a7363f53
BC
242662010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
24267
24268 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
24269
902f75f6
VS
242702010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
24271
24272 * grub-core/normal/term.c (print_more): Fix a memory leak.
24273 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
24274 (grub_xputs_normal): Likewise.
24275
3c707967
VS
242762010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
24277
24278 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
24279 the begining of the string
24280
2053cc07
VS
242812010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
24282
24283 * grub-core/script/script.c (grub_script_parse): Free parsed on
24284 failure.
24285
46422ebf
VS
242862010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
24287
24288 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
24289 on failure.
24290
9e0fa3f6
VS
242912010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
24292
24293 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
24294 return.
24295
3393cf16
VS
242962010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
24297
24298 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
24299 (scroll_up): Fix a memory leak.
24300
b17540cb
VS
243012010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
24302
24303 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
24304 errors.
24305
67140446
VS
243062010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
24307
24308 Handle USB pendrives exposed as floppies.
24309
24310 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
24311 floppy.
24312 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
24313 Check for partitions on all devices.
24314
e35e46fc
VS
243152010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
24316
24317 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
24318 (readkey): Likewise.
24319
d24c6190
BC
243202010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
24321
24322 Multiple variable names support to "export" command.
24323
24324 * normal/context.c (grub_cmd_export): "export" command supports
24325 multiple variable names.
24326
04ddcc6a
ST
243272010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
24328
24329 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
24330 --target=drive output to Mach device name.
24331
0c8b61d8
BC
243322010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
24333
24334 New Automake based build system for GRUB.
24335
24336 * ABOUT-NLS: New file.
24337 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
24338 in Makefile.util.def file.
24339 * Makefile.util.def: New file. Autogen build definitions file for
24340 GRUB host utils.
24341 * conf/Makefile.common: New file. Common variables for GRUB host
24342 utils and target modules.
24343 * conf/Makefile.extra-dist: New file. Extra files for make dist.
24344 * docs/Makefile.am: New file. Automake file for docs.
24345 * gentpl.py: New file. Python script to generate Autogen
24346 template.
24347 * grub-core/Makefile.am: New file. GRUB target modules' rules
24348 that doesn't fit in Makefile.core.def file.
24349 * grub-core/Makefile.core.def: New file. Autogen build
24350 definitions file for GRUB target modules.
24351 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
24352 specific setjmp.S file.
24353 * po/Makefile.am: New file.
24354
24355 * .bzrignore: New ignores.
24356 * INSTALL: New requirements, without Ruby.
24357 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
24358 * autogen.sh: Updated to invoke autogen as necessary.
24359 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
24360 and defines for Automake conditionals.
24361 * geninit.sh: Refactoring.
24362
24363 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
24364 necessary.
24365 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
24366 New prototype.
24367
24368 * include/grub/test.h: Fix functional test modules' naming.
24369 * grub-core/tests/example_functional_test.c: Fix test module name.
24370
24371 * util/misc.c: Hosted versions' of grub functions for libgrub.a
24372 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
24373 * util/grub-editenv.c: Likewise.
24374 * util/grub-fstest.c: Likewise.
24375 * util/grub-mkdevicemap.c: Likewise.
24376 * util/grub-mkfont.c: Likewise.
24377 * util/grub-mkimage.c: Likewise.
24378 * util/grub-mkpasswd-pbkdf2.c: Likewise.
24379 * util/grub-probe.c: Likewise.
24380 * util/grub-script-check.c: Likewise.
24381 * util/i386/pc/grub-setup.c: Likewise.
24382 * util/sparc64/ieee1275/grub-setup.c: Likewise.
24383
24384 * tests/util/grub-shell.in: Fix override directory path.
24385 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
24386 * util/import_gcry.py: Create Makefile.gcry.def file instead.
24387
24388 * util/lvm.c: Update #includes.
24389 * util/raid.c: Likewise.
24390 * util/resolve.c: Likewise.
24391 * grub-core/bus/emu/pci.c: Likewise.
24392 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
24393 * grub-core/lib/posix_wrap/string.h: Likewise.
24394 * grub-core/kern/emu/main.c: Likewise.
24395
24396 * grub-core/gensymlist.sh: New file. Script for generating kernel
24397 symbols file.
24398 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
24399
24400 * grub-core/gentrigtables.c: Fix unused variable warnings.
24401
24402 * Makefile.in: Removed.
24403 * conf/any-emu.rmk: Removed.
24404 * conf/common.rmk: Removed.
24405 * conf/i386-coreboot.rmk: Removed.
24406 * conf/i386-efi.rmk: Removed.
24407 * conf/i386-ieee1275.rmk: Removed.
24408 * conf/i386-multiboot.rmk: Removed.
24409 * conf/i386-pc.rmk: Removed.
24410 * conf/i386-qemu.rmk: Removed.
24411 * conf/i386.rmk: Removed.
24412 * conf/mips-yeeloong.rmk: Removed.
24413 * conf/mips.rmk: Removed.
24414 * conf/powerpc-ieee1275.rmk: Removed.
24415 * conf/sparc64-ieee1275.rmk: Removed.
24416 * conf/tests.rmk: Removed.
24417 * conf/x86-efi.rmk: Removed.
24418 * conf/x86_64-efi.rmk: Removed.
24419 * gendistlist.sh: Removed.
24420 * geninitheader.sh: Removed.
24421 * genkernsyms.sh.in: Removed.
24422 * genmk.rb: Removed.
24423 * gensymlist.sh.in: Removed.
24424 * mkinstalldirs: Removed.
24425 * boot: Moved ...
24426 * grub-core/boot: ... to here.
24427 * bus: Moved ...
24428 * grub-core/bus: ... to here.
24429 * commands: Moved ...
24430 * grub-core/commands: ... to here.
24431 * disk: Moved ...
24432 * grub-core/disk: ... to here.
24433 * efiemu: Moved ...
24434 * grub-core/efiemu: ... to here.
24435 * font: Moved ...
24436 * grub-core/font: ... to here.
24437 * fs: Moved ...
24438 * grub-core/fs: ... to here.
24439 * gencmdlist.sh: Moved ...
24440 * grub-core/gencmdlist.sh: ... to here.
24441 * genemuinit.sh: Moved ...
24442 * grub-core/genemuinit.sh: ... to here.
24443 * genemuinitheader.sh: Moved ...
24444 * grub-core/genemuinitheader.sh: ... to here.
24445 * genfslist.sh: Moved ...
24446 * grub-core/genfslist.sh: ... to here.
24447 * genhandlerlist.sh: Moved ...
24448 * grub-core/genhandlerlist.sh: ... to here.
24449 * genmoddep.awk: Moved ...
24450 * grub-core/genmoddep.awk: ... to here.
24451 * genmodsrc.sh: Moved ...
24452 * grub-core/genmodsrc.sh: ... to here.
24453 * genpartmaplist.sh: Moved ...
24454 * grub-core/genpartmaplist.sh: ... to here.
24455 * genparttoollist.sh: Moved ...
24456 * grub-core/genparttoollist.sh: ... to here.
24457 * genterminallist.sh: Moved ...
24458 * grub-core/genterminallist.sh: ... to here.
24459 * gentrigtables.c: Moved ...
24460 * grub-core/gentrigtables.c: ... to here.
24461 * genvideolist.sh: Moved ...
24462 * grub-core/genvideolist.sh: ... to here.
24463 * gettext: Moved ...
24464 * grub-core/gettext: ... to here.
24465 * gfxmenu: Moved ...
24466 * grub-core/gfxmenu: ... to here.
24467 * gnulib: Moved ...
24468 * grub-core/gnulib: ... to here.
24469 * hello: Moved ...
24470 * grub-core/hello: ... to here.
24471 * hook: Moved ...
24472 * grub-core/hook: ... to here.
24473 * io: Moved ...
24474 * grub-core/io: ... to here.
24475 * kern: Moved ...
24476 * grub-core/kern: ... to here.
24477 * lib: Moved ...
24478 * grub-core/lib: ... to here.
24479 * loader: Moved ...
24480 * grub-core/loader: ... to here.
24481 * mmap: Moved ...
24482 * grub-core/mmap: ... to here.
24483 * normal: Moved ...
24484 * grub-core/normal: ... to here.
24485 * partmap: Moved ...
24486 * grub-core/partmap: ... to here.
24487 * parttool: Moved ...
24488 * grub-core/parttool: ... to here.
24489 * script: Moved ...
24490 * grub-core/script: ... to here.
24491 * term: Moved ...
24492 * grub-core/term: ... to here
24493 * tests/example_functional_test.c: Moved ...
24494 * grub-core/tests/example_functional_test.c: ... to here.
24495 * tests/lib/functional_test.c: Moved ...
24496 * grub-core/tests/lib/functional_test.c: ... to here.
24497 * tests/lib/test.c: Moved ...
24498 * grub-core/tests/lib/test.c: ... to here.
24499 * video: Moved ...
24500 * grub-core/video: ... to here.
24501
645586e6
BC
245022010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
24503
24504 Replace --enable-grub-emu-modules with grub-emu-lite.
24505
24506 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
24507 cache.S.
24508
24509 * include/grub/emu/misc.h (grub_emu_init): New prototype.
24510 * kern/emu/full.c: New file. For grub-emu specific initialization.
24511 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
24512 * kern/emu/main.c: Call initialization function grub_emu_init.
24513
24514 * Makefile.in: Include grub-emu-lite in install.
24515 * commands/parttool.c: Use grub_no_autoload to differentiate
24516 between grub-emu and grub-emu-lite.
24517 * include/grub/misc.h: New variable grub_no_autoload.
24518
24519 * conf/any-emu.rmk: New rules for grub-emu-lite.
24520 * configure.ac: Remove --enable-grub-emu-modules.
24521 * genmk.rb: Cleanup unnecessary rules.
24522 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
24523
24524 * normal/main.c: Don't load list files on grub-emu-lite.
24525 * util/misc.c (grub_arch_sync_caches): Removed.
24526
f86a4030
CW
245272010-08-23 Colin Watson <cjwatson@ubuntu.com>
24528
24529 * kern/mips/startup.S (grub_prefix): Update comment to refer to
24530 grub-mkimage rather than grub-mkelfimage.
24531 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
24532
06776944
VS
245332010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
24534
24535 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
24536 a key after CapsLock or NumLock. It's just a qemu bug.
24537
df262419
VS
245382010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
24539
24540 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
24541 needed by libusb wrapper.
24542
b40ea81b
ST
245432010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
24544
24545 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
24546
dee50575
VS
245472010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
24548
24549 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
24550 --nounzip is passed.
24551
fb1d7b79
VS
245522010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
24553
24554 USB hotunplugging and USB serial support.
24555
24556 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
24557 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
24558 (grub_uhci_transfer): Respect timeout and set *actual.
24559 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
24560 non-standard length.
24561 (grub_usb_device_attach): Autoload modules.
24562 (GRUB_MOD_INIT): Set grub_term_poll_usb.
24563 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
24564 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
24565 users updated.
24566 (grub_usb_add_hub): Fill nports and children.
24567 (attach_root_port): Receive hub instead of controller.
24568 All users updated. Fill hub->devices.
24569 (grub_usb_root_hub): Allocate hub->devices.
24570 (detach_device): New function.
24571 (poll_nonroot_hub): Fill children and detach devices.
24572 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
24573 actual arguments. All users updated.
24574 (grub_usb_bulk_read_extended): New function.
24575 * bus/usb/serial/common.c: New file.
24576 * bus/usb/serial/ftdi.c: Likewise.
24577 * bus/usb/serial/pl2303.c: Likewise.
24578 * commands/terminal.c (handle_command): Support wildcard.
24579 * commands/usbtest.c: Output "Unknown" instead of empty string.
24580 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
24581 (usbserial_common_mod_SOURCES): New variable.
24582 (usbserial_common_mod_CFLAGS): Likewise.
24583 (usbserial_common_mod_LDFLAGS): Likewise.
24584 (pkglib_MODULES): Add usbserial_pl2303.mod.
24585 (usbserial_pl2303_mod_SOURCES): New variable.
24586 (usbserial_pl2303_mod_CFLAGS): Likewise.
24587 (usbserial_pl2303_mod_LDFLAGS): Likewise.
24588 (pkglib_MODULES): Add usbserial_ftdi.mod.
24589 (usbserial_ftdi_mod_SOURCES): New variable.
24590 (usbserial_ftdi_mod_CFLAGS): Likewise.
24591 (usbserial_ftdi_mod_LDFLAGS): Likewise.
24592 (pkglib_MODULES): Add serial.mod.
24593 (serial_mod_SOURCES): New variable.
24594 (serial_mod_CFLAGS): Likewise.
24595 (serial_mod_LDFLAGS): Likewise.
24596 * conf/i386-pc.rmk: Likewise.
24597 * conf/mips-yeeloong.rmk: Likewise.
24598 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
24599 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
24600 * disk/usbms.c (first_available_slot): New variable.
24601 (grub_usbms_attach): Don't reuse free slots due to potential cache
24602 problems.
24603 * include/grub/serial.h: Moved to ..
24604 * include/grub/ns8250.h: ...this.
24605 * include/grub/serial.h: New file.
24606 * include/grub/term.h (grub_term_poll_usb): New variable.
24607 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
24608 readkey. All users updated.
24609 (grub_terminfo_output_state): Pass term to put.
24610 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
24611 (grub_usb_controller_dev): Add timeout and actual arguments to
24612 transfer. All users updated.
24613 (grub_usb_interface): New field detach_data.
24614 (grub_usb_device): New fields children and nports.
24615 (grub_usb_ep_type_t): New type.
24616 (grub_usb_get_ep_type): New function.
24617 (grub_usb_bulk_read_extended): Likewise.
24618 * include/grub/usbdesc.h (grub_usb_desc): New type.
24619 * include/grub/usbserial.h: New file.
24620 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
24621 * kern/term.c (grub_term_poll_usb): New variable.
24622 (grub_getkey): Call grub_term_poll_usb if set.
24623 (grub_checkkey): Likewise.
24624 (grub_getkeystatus): Likewise.
24625 * term/serial.c: Moved controller-specific parts to ...
24626 * term/ns8250.c: ... here.
24627 * term/serial.c: Mostly rewritten.
24628 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
24629 according to spec.
24630
21a313de
RM
246312010-08-20 Robert Millan <rmh@gnu.org>
24632
24633 Make kFreeBSD code more generic to support ext2fs as root, ufs as
24634 a separate module and maybe other interesting combinations.
24635
24636 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
24637 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
24638 (kfreebsd_entry): Add generic filesystem module load routine.
24639 Map GRUB `ext2' to kFreeBSD `ext2fs'.
24640
63c734a6
CW
246412010-08-20 Colin Watson <cjwatson@ubuntu.com>
24642
24643 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
24644 "numcenter" (I misunderstood the purpose of this entry).
24645 * docs/grub.texi (sendkey): Likewise.
24646
c4d16542
CW
246472010-08-20 Colin Watson <cjwatson@ubuntu.com>
24648
24649 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
24650 status flag options; simply omitting the option is equivalent and
24651 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
24652 (keysym_table): Rename "num5numlock" to "numlock".
24653 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
24654 can uniformly say that only the last of multiple `sendkey'
24655 invocations has any effect.
24656 * docs/grub.texi (sendkey): New section.
24657
93541d66
CW
246582010-08-19 Colin Watson <cjwatson@ubuntu.com>
24659
24660 * commands/i386/pc/sendkey.c (options): Fix three typos.
24661
b4ece5e1
VS
246622010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
24663
24664 Implement sendkey support.
24665
24666 * commands/i386/pc/sendkey.c: New file.
24667 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
24668 (sendkey_mod_SOURCES): New variable.
24669 (sendkey_mod_CFLAGS): Likewise.
24670 (sendkey_mod_LDFLAGS): Likewise.
24671
51f1f5af
CW
246722010-08-18 Colin Watson <cjwatson@ubuntu.com>
24673
24674 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
24675 fix warnings from Autoconf.
24676
9da94e05
CW
246772010-08-18 Colin Watson <cjwatson@ubuntu.com>
24678
24679 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
24680 to avoid false positives with some assemblers that output things
24681 like "someprefix_func" as part of their output.
24682
729a0f2e
RM
246832010-08-15 Robert Millan <rmh@gnu.org>
24684
24685 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
24686 errors.
24687 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
24688 grub_get_libzfs_handle() errors.
24689
f3710e08
RM
246902010-08-14 Robert Millan <rmh@gnu.org>
24691
24692 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
24693 filesystem is not ZFS.
24694
7a3c13de
BC
246952010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
24696
24697 Fix for misspelled color names defaulting to black/black (bug
24698 reported by Doug Nazar)
24699
24700 * include/grub/normal.h (grub_parse_color_name_pair): Add return
24701 status to prototype.
24702 * normal/color.c (grub_parse_color_name_pair): Return failure
24703 status.
24704 (grub_env_write_color_normal): Ignore bad color names.
24705 (grub_env_write_color_highlight): Likewise.
24706 * normal/main.c (GRUB_MOD_INIT): Set default color names.
24707
ab8ba50d
BC
247082010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
24709
24710 "shift" command support to GRUB script.
24711
24712 * include/grub/script_sh.h (grub_script_shift): New prototype.
24713 * script/execute.c (grub_script_shift): New function.
24714 * script/main.c (grub_script_init): Register shift command.
24715 (grub_script_fini): Unregister shift command.
24716 * util/grub-script-check.c (grub_script_cmd_shift): New function.
24717
24718 * tests/grub_script_shift.in: New testcase.
24719 * conf/tests.rmk: Rules for new testcase.
24720
4d61999e
BC
247212010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
24722
24723 "continue" command support to GRUB script.
24724
24725 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
24726 (grub_script_break): Continue support.
24727 * script/main.c (grub_script_init): Register continue command.
24728 (grub_script_fini): Unregister continue command.
24729
24730 * tests/grub_script_continue.in: New testcase.
24731 * conf/tests.rmk: Rules for new testcase.
24732
4df51e00
BC
247332010-08-12 BVK Chaitanya <bvk@dbook>
24734
24735 "break" command support to GRUB script.
24736
24737 * conf/common.rmk: Rule updates to grub-script-check.
24738 * include/grub/misc.h (grub_min): New function.
24739 * include/grub/script_sh.h (grub_script_init): New prototype.
24740 (grub_script_fini): New prototype.
24741 (grub_script_break): New prototype.
24742 * script/main.c (grub_script_init): New function.
24743 (grub_script_fini): New function.
24744 * script/execute.c (grub_script_break): New function.
24745 * normal/main.c: Calls to grub_script_{init,fini}.
24746 * util/grub-script-check.c (grub_script_break): New function.
24747
24748 * tests/grub_script_break.in: New testcase.
24749 * conf/tests.rmk: Rules for new test case.
24750
f12c8420
BC
247512010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
24752
24753 Function parameters support to GRUB script.
24754
24755 * script/yylex.l (VARIABLE): Regular expression update.
24756 * script/function.c (grub_script_function_call): Moved ...
24757 * script/execute.c (grub_script_function_call): ... to here.
24758 (grub_script_execute_arglist_to_argv): Removed.
24759 (grub_script_arglist_to_argv): New function.
24760 * script/argv.c: New file.
24761 (grub_script_argv_free): New function.
24762 (grub_script_argv_next): Likewise.
24763 (grub_script_argv_append): Likewise.
24764 (grub_script_argv_split_append): Likewise.
24765 * include/grub/script_sh.h (grub_script_argv): New struct.
24766 (grub_script_argv_free): New function.
24767 (grub_script_argv_next): Likewise.
24768 (grub_script_argv_append): Likewise.
24769 (grub_script_argv_split_append): Likewise.
24770
24771 * conf/common.rmk (normal.mod): New source script/argv.c.
24772
24773 * tests/grub_script_echo1.in: More tests.
24774 * tests/grub_script_vars1.in: Likewise.
24775 * tests/grub_script_functions.in: New test case.
24776 * conf/tests.rmk: Rules for new testcase.
24777
8022b748
BC
247782010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
24779
24780 Remove grub_script_cmdblock struct.
24781
24782 * include/grub/script_sh.h: Remove grub_script_cmdblock.
24783 * script/parser.y: Likewise.
24784 * script/execute.c: Rename cmdblock suffix to cmdlist.
24785 * script/script.c: Likewise.
24786 * util/grub-script-check.c: Likewise.
24787
79a6ba61
YB
247882010-08-11 Yves Blusseau <blusseau@zetam.org>
24789
24790 * .bzrignore: add grub-macho2img
24791
d04b9414
VS
247922010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
24793
24794 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
24795
f947ab49
VS
247962010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
24797
24798 Remove the dump of sm712 initialisation sequence.
24799
24800 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
24801 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
24802 (GRUB_VGA_IO_MISC_WRITE): Likewise.
24803 (GRUB_VGA_CR_*): Added many registers.
24804 (GRUB_VGA_SR_*): Likewise.
24805 (GRUB_VGA_GR_*): Likewise.
24806 (grub_vga_write_arx): New function.
24807 (grub_video_hw_config): New struct.
24808 (grub_vga_set_geometry): New function.
24809 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
24810 GRUB_PCI_CLASS_SUBCLASS_VGA.
24811 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
24812 * video/sm712.c (grub_sm712_write_reg): New function
24813 (grub_sm712_read_reg): Likewise.
24814 (grub_sm712_sr_write): Likewise.
24815 (grub_sm712_gr_write): Likewise.
24816 (grub_sm712_cr_write): Likewise.
24817 (grub_sm712_write_arx): Likewise.
24818 (grub_sm712_cr_shadow_write): Likewise.
24819 (grub_sm712_write_dda_lookup): Likewise.
24820 (grub_video_sm712_setup): Initialise the video rather then
24821 blindly replay the dump.
24822 (main) [TEST]: Add a routine to be able to compile as standalone for
24823 tests.
24824 * video/sm712_init.c (sm712_init): Removed.
24825 (sm712_sr_seq1): New array.
24826 (sm712_sr_seq2): Likewise.
24827
f0206638
VS
248282010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
24829
24830 * include/grub/vga.h: Add missing grub/pci.h include.
24831
2764da3b
YB
248322010-08-10 Yves Blusseau <blusseau@zetam.org>
24833
24834 * util/grub-macho2img.c (main): fix typo
24835
cf0c775e
VS
248362010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
24837
24838 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
24839 (grub_vga_gr_read): Likewise.
24840 (grub_vga_cr_write): Likewise.
24841 (grub_vga_cr_read): Likewise.
24842 (grub_vga_sr_write): Likewise.
24843 (grub_vga_sr_read): Likewise.
24844 (grub_vga_palette_read): Likewise.
24845 (grub_vga_palette_write): Likewise.
24846 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
24847 (grub_sm712_sr_read): New function.
24848 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
24849 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
24850
07f360e9
RM
248512010-08-09 Robert Millan <rmh@gnu.org>
24852
24853 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
24854 out unused variables on non-ZFS build.
24855
346c2072
RM
248562010-08-08 Robert Millan <rmh@gnu.org>
24857
24858 Fix path generation for sub-filesystems in ZFS.
24859
24860 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
24861 missing slash.
24862
71175420
RM
248632010-08-08 Robert Millan <rmh@gnu.org>
24864
24865 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
24866
0d8286f3
RM
248672010-08-08 Robert Millan <rmh@gnu.org>
24868
24869 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
24870 exist, issue a proper error message (rely on `ls' for translated
24871 strings).
24872
55dd2924
RM
248732010-08-08 Robert Millan <rmh@gnu.org>
24874
24875 Fix grub-probe invocation.
24876
24877 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
24878
d3dd9e80
RM
248792010-08-04 Robert Millan <rmh@gnu.org>
24880
24881 * configure.ac: Remove checks for getfsstat() and getmntany().
24882 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
24883 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
24884 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
24885 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
24886 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
24887 function.
24888 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
24889 via find_mount_point_from_dir() and getfsstat() / getmntany().
24890
0de22aa9
RM
248912010-08-04 Robert Millan <rmh@gnu.org>
24892
24893 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
24894 (grub_find_zpool_from_mount_point): Merge into ...
24895 (grub_find_zpool_from_dir): ... this.
24896 * kern/emu/misc.c: Likewise.
24897
24898 * kern/emu/misc.c
24899 (grub_make_system_path_relative_to_its_root): Replace
24900 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
24901 with grub_find_zpool_from_dir().
24902 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
24903
62858144
RM
249042010-08-04 Robert Millan <rmh@gnu.org>
24905
24906 Support OpenSolaris in ZFS device resolution.
24907
24908 * configure.ac: Check for getmntany().
24909 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
24910 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
24911 support.
24912
9dd6fd50
RM
249132010-08-03 Robert Millan <rmh@gnu.org>
24914
24915 Fix grub-emu build.
24916
24917 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
24918 * include/grub/emu/misc.h: ... here.
24919
24920 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
24921 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
24922
24923 * util/misc.c: Remove `<grub/util/libzfs.h>'.
24924 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
24925 (grub_get_libzfs_handle): Move to ...
24926 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
24927 (grub_get_libzfs_handle): ... here.
24928
c9f7ff97
BC
249292010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
24930
24931 * script/execute.c (grub_script_execute_cmdline): Check for NULL
24932 as command name case.
24933
a870a783
CW
249342010-08-02 Colin Watson <cjwatson@ubuntu.com>
24935
24936 * disk/raid.c (insert_array): Select unique numbers for named arrays
24937 as well, for use as keys in the disk cache.
24938
c7db243b
RM
249392010-08-01 Robert Millan <rmh@gnu.org>
24940
24941 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
24942 kFreeBSD device name, except on ZFS where the filesystem label is
24943 used.
24944 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
24945 `/boot/zfs/zpool.cache'.
24946 Set mountfrom kernel variable using ${kfreebsd_device}.
24947
f7abdefb
RM
249482010-08-01 Robert Millan <rmh@gnu.org>
24949
24950 Make it even harder to use uninitialized `libzfs_handle' (and
24951 make the interface a bit simpler).
24952
24953 * include/grub/util/misc.h (grub_util_init_libzfs)
24954 (libzfs_handle): Remove.
24955 (grub_get_libzfs_handle): New prototype.
24956
24957 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
24958 attribute.
24959 (grub_util_init_libzfs): Remove.
24960 (grub_get_libzfs_handle): New function.
24961
24962 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
24963 grub_get_libzfs_handle() to obtain a libzfs handle instead of
24964 accessing `libzfs_handle' directly.
24965
c882acc0
RM
249662010-08-01 Robert Millan <rmh@gnu.org>
24967
24968 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
24969 (grub_find_zpool_from_mount_point): New function prototypes.
24970
24971 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
24972 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
24973
24974 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
24975 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
24976 `static' attribute.
24977
24978 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
24979 finding zpool from mount point into ...
24980 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
24981
24982 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
24983 requested path is part of a ZFS pool, use
24984 grub_find_zpool_from_mount_point() to detect its filesystem name,
24985 and generate a path with `/fsname@path' syntax.
24986
8bfe31d8
CW
249872010-08-01 Colin Watson <cjwatson@ubuntu.com>
24988
24989 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
24990 (void) rather than () so that this is a proper prototype.
24991
553df63d
VS
249922010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
24993
24994 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
24995
8687cf07
VS
249962010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
24997
24998 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
24999 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
25000
ea9be8ea
CW
250012010-08-01 Colin Watson <cjwatson@ubuntu.com>
25002
25003 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
25004
6eea041a
CW
250052010-08-01 Colin Watson <cjwatson@ubuntu.com>
25006
25007 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
25008
2cfb45df
CW
250092010-08-01 Colin Watson <cjwatson@ubuntu.com>
25010
25011 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
25012 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
25013 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
25014 disable gfxpayload.
25015 (Shell-like scripting): Add real content.
25016 (Serial terminal): Suggest `terminal_input serial; terminal_output
25017 serial' rather than putting the two commands on separate lines,
25018 since console input will be inoperative after the first command.
25019 (menuentry): Document --class, --users, and --hotkey options.
25020 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
25021 Vladimir Serbinenko).
25022
7decd202
VS
250232010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
250242010-08-01 Colin Watson <cjwatson@ubuntu.com>
25025
25026 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
25027
c882acc0
RM
250282010-08-01 Robert Millan <rmh@gnu.org>
25029
25030 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
25031 (grub_find_zpool_from_mount_point): New function prototypes.
25032
25033 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
25034 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
25035
25036 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
25037 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
25038 `static' attribute.
25039
25040 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
25041 finding zpool from mount point into ...
25042 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
25043
25044 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
25045 requested path is part of a ZFS pool, use
25046 grub_find_zpool_from_mount_point() to detect its filesystem name,
25047 and generate a path with `/fsname@path' syntax.
25048
deb0caa3
RM
250492010-08-01 Robert Millan <rmh@gnu.org>
25050
25051 Prevent accidental use of uninitialized libzfs_handle.
25052
25053 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
25054 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
25055 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
25056
ce04ef47
CW
250572010-08-01 Colin Watson <cjwatson@ubuntu.com>
25058
25059 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
25060 util/grub.d/10_linux.in). Fixes Debian bug #591093.
25061
ebf53056
RM
250622010-08-01 Robert Millan <rmh@gnu.org>
25063
25064 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
8687cf07 25065
3710bb6b
RM
250662010-07-31 Robert Millan <rmh@gnu.org>
25067
25068 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
25069
8072efeb
RM
250702010-07-31 Robert Millan <rmh@gnu.org>
25071
25072 * kern/emu/misc.c: Add missing license header.
25073
3169f4c7
RM
250742010-07-31 Robert Millan <rmh@gnu.org>
25075
25076 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
25077
25078 * include/grub/util/libnvpair.h: Include `<config.h>'.
25079 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
25080 declaring libnvpair prototypes ourselves.
25081 * include/grub/util/libzfs.h: Include `<config.h>'.
25082 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
25083 declaring libzfs prototypes ourselves.
25084
25085 (libzfs_handle): Moved to ...
25086 * include/grub/util/misc.h (libzfs_handle): ... here.
25087 Include `<grub/util/libzfs.h>'.
25088
c9a00aee
RM
250892010-07-30 Robert Millan <rmh@gnu.org>
25090
25091 * include/grub/emu/misc.h: Add missing license header.
25092
a184f9c8
RM
250932010-07-30 Robert Millan <rmh@gnu.org>
25094
25095 Enable `grub-probe -t device' resolution on ZFS.
25096
25097 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
25098 * include/grub/util/libnvpair.h: New file.
25099 * include/grub/util/libzfs.h: New file.
25100
25101 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
25102 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
25103 `<grub/util/libnvpair.h>'.
25104 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
25105
25106 (find_mount_point_from_dir): New static function.
25107 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
25108 function.
25109 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
25110 find_root_device_from_libzfs() before ressorting to find_root_device().
25111
25112 * include/grub/util/misc.h (grub_util_init_libzfs): New function
25113 prototype.
25114 * util/misc.c: Include `<grub/util/libzfs.h>'.
25115 (grub_util_init_libzfs): New function.
25116 [HAVE_LIBZFS] (libzfs_handle): New global variable.
25117 [HAVE_LIBZFS] (fini_libzfs): New static function.
25118 (grub_util_init_libzfs): New function.
25119 * util/grub-probe.c (main): Call grub_util_init_libzfs().
25120
f7790cdd
RM
251212010-07-30 Robert Millan <rmh@gnu.org>
25122
25123 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
25124 (xmalloc, xrealloc, xstrdup, xasprintf): Add
25125 `warn_unused_result' attribute.
25126 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
25127 (grub_xasprintf, grub_xvasprintf): Likewise.
25128 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
25129
0806b63c
RM
251302010-07-29 Robert Millan <rmh@gnu.org>
25131
25132 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
25133 (probe): Handle `PRINT_FS_LABEL'.
25134 (main): Handle `-t fs_label'.
25135
9f841f5c
RM
251362010-07-29 Robert Millan <rmh@gnu.org>
25137
25138 * configure.ac: Remove grub-mkisofs checks.
25139
46371121
VS
251402010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
25141
25142 * util/ieee1275/grub-install.in: Don't use empty grub_device.
25143 Reported by: Lennart Sorensen.
25144
251452010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
25146
25147 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
25148 prior to terminal_input/terminal_output separation. It's been over 1.5
25149 years and those versions weren't widely deployed.
25150
a9600892
CW
251512010-07-22 Colin Watson <cjwatson@ubuntu.com>
25152
25153 * disk/raid.c (insert_array): Don't count named arrays when looking
25154 for unused array numbers.
697e053c 25155 Reported and tested by: Michael Guntsche.
a9600892 25156
c03507df
CW
251572010-07-20 Colin Watson <cjwatson@ubuntu.com>
25158
25159 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
25160 implementation of this so that grub-emu links again, with a note
25161 that this should support hotplugging in the future.
25162
b26f1c11
CW
251632010-07-20 Colin Watson <cjwatson@ubuntu.com>
25164
25165 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
25166
efc9d7f1
CW
251672010-07-20 Colin Watson <cjwatson@ubuntu.com>
25168
25169 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
25170 handle on failure.
25171 (grub_loopback_close): Remove empty function.
25172 (grub_loopback_dev): Remove close method.
25173
dd8ff5c9
CW
251742010-07-20 Colin Watson <cjwatson@ubuntu.com>
25175
25176 Disable EFI cursor when the EFI console becomes inactive.
25177
25178 * term/efi/console.c (grub_efi_console_init): New function.
25179 (grub_efi_console_fini): New function.
25180 (grub_console_term_output): Register init and fini methods.
25181
5e3bec67
VS
251822010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
25183
25184 * tests/util/grub-shell-tester.in: Remove bashism and declare as
25185 sh script.
25186
afaec079
VS
251872010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
25188
25189 * disk/loopback.c (grub_loopback): Replace filename with file.
25190 (delete_loopback): Handle new semantics.
25191 (grub_cmd_loopback): Likewise.
25192 (grub_loopback_iterate): Likewise.
25193 (grub_loopback_close): Likewise.
25194
a6a11f3c
VS
251952010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
25196
25197 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
25198 with -p "".
25199 Reported by: Tito Keitel.
25200
64a638b0
VS
252012010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
25202
25203 * docs/grub.texi (Naming convention): Document new naming convention.
25204
ab8ba957
VS
252052010-07-20 Vadim Solomin <vadic052@gmail.com>
252062010-07-20 Colin Watson <cjwatson@ubuntu.com>
25207
25208 Generate device.map in something closer to the old ordering.
25209
25210 * util/deviceiter.c (struct device): New declaration.
25211 (compare_file_names): Rename to ...
25212 (compare_devices): ... this. Sort by kernel name in preference to
25213 the stable by-id name, but keep the latter as a fallback comparison.
25214 Update header comment.
25215 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
25216 of `struct device' rather than of plain file names.
25217
a29d6a4b
TF
252182010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
25219
25220 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
25221 on i386.
25222
39d824e8
VS
252232010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
25224
25225 * commands/acpi.c (setup_common_tables): Use sizeof instead of
25226 hardcoding size.
25227 (setv1table): Likewise.
25228
f058276b
FZ
252292010-07-20 Colin Watson <cjwatson@ubuntu.com>
25230
25231 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
25232 removing the homehost if present.
25233 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
25234 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
25235 removing the homehost if present.
25236 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
25237 if possible.
25238 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
25239
25240 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
25241 parameter. Set its pointer target to 0.
25242 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
25243 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
25244 `data_offset' value from the superblock for 1.x metadata.
25245 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
25246 data on the device.
25247 (insert_array): Record the start sector of data on the device.
25248 (grub_raid_register): Pass start_sector parameters to
25249 grub_raid_list->detect and insert_array.
25250 * include/grub/raid.h (struct grub_raid_array): Add start_sector
25251 member.
25252 (struct grub_raid): Add start_sector parameter to `detect'.
25253
25254 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
25255 __attribute__ ((packed)), leaving a comment.
25256 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
25257 (grub_mdraid_detect_09): ... here and ...
25258 (grub_mdraid_detect_1x): ... here.
25259
252602010-07-20 Peter Henn <peter.henn@web.de>
25261
25262 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
25263 chunk size and disk size, which are already given as sector counts
25264 as distinct from the 0.90 units. Fetch the correct device number
25265 from the role table instead of using the table index.
25266
252672010-07-20 Felix Zielcke <fzielcke@z-51.de>
25268
25269 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
25270 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
25271 (WriteMostly1): New macro.
25272 Set array->name to NULL for metadata format 0.90. Add support for
25273 metadata 1.x. Fix some comments.
25274 * disk/raid.c (): Add support for name based RAID arrays. Fix a
25275 few comments.
25276 * util/getroot.c (grub_util_get_grub_dev): Add support for
25277 /dev/md/name style devices.
25278
4b761da9
CW
252792010-07-20 Colin Watson <cjwatson@ubuntu.com>
25280
25281 * .bzrignore: Ignore 20_linux_xen.
25282
5771289a
CW
252832010-07-17 Colin Watson <cjwatson@ubuntu.com>
25284
25285 * util/import_unicode.py: Remove unnecessary imports.
25286
5dab68df
AN
252872010-07-17 Aleš Nesrsta <starous@volny.cz>
25288
25289 Hotplugging and USB hub support.
25290
25291 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
25292 (grub_ohci): Likewise.
25293 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
25294 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
25295 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
25296 (GRUB_OHCI_CTRL_EDS): Likewise.
25297 (GRUB_OHCI_BULK_EDS): Likewise.
25298 (GRUB_OHCI_TDS): Likewise.
25299 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
25300 (grub_ohci_ed_phys2virt): New function.
25301 (grub_ohci_virt_to_phys): Likewise.
25302 (grub_ohci_td_phys2virt): Likewise.
25303 (grub_ohci_td_virt2phys): Likewise.
25304 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
25305 attachment.
25306 (grub_ohci_find_ed): New function.
25307 (grub_ohci_alloc_td): Likewise.
25308 (grub_ohci_free_td): Likewise.
25309 (grub_ohci_free_tds): Likewise.
25310 (grub_ohci_transfer): Use previously allocated memory.
25311 (grub_ohci_portstatus): Reset status changed bit.
25312 (grub_ohci_detect_dev): Supply status changed.
25313 (grub_ohci_fini_hw): Free memory.
25314 (grub_ohci_restore_hw): Reallocate memory.
25315 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
25316 Reset status change.
25317 (grub_uhci_detect_dev): Supply status_change.
25318 * bus/usb/usb.c (attach_hooks): New var.
25319 (grub_usb_device_attach): New function.
25320 (grub_usb_register_attach_hook_class): Likewise.
25321 (grub_usb_unregister_attach_hook_class): Likewise.
25322 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
25323 (grub_usb_add_hub): Reset connection changed bit.
25324 (attach_root_port): New function.
25325 (grub_usb_root_hub): Likewise.
25326 (poll_nonroot_hub): Likewise.
25327 (grub_usb_poll_devices): Likewise.
25328 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
25329 * disk/usbms.c (grub_usbms_open): Use device hooks.
25330 (grub_usbms_iterate) :Poll devices.
25331 (grub_usbms_finddevs): Split into ...
25332 (grub_usbms_attach): ... this ...
25333 (grub_usbms_attach): ... and this.
25334 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
25335 in detect_dev.
25336 (grub_usb_interface): New fields attached and detach_hook.
25337 (grub_usb_attach_hook_class): New type.
25338 (grub_usb_attach_desc): New struct.
25339 (grub_usb_register_attach_hook_class): New function.
25340 (grub_usb_unregister_attach_hook_class): Likewise.
25341 (grub_usb_poll_devices): Likewise.
25342 (grub_usb_device_attach): Likewise.
25343 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
25344 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
25345
3222efaf
VS
253462010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
25347
25348 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
25349 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
25350 delta determination style. Works with most NetBSD partitions too.
25351
139b714a
VS
253522010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
25353
25354 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
25355 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
25356
986aad56
VS
253572010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
25358
25359 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
25360
99be513c
AB
253612010-07-14 Anton Blanchard <anton@samba.org>
25362
25363 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
25364 ET_DYN files.
25365
18075f62
GS
253662010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
25367
25368 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
25369
8d9a5b15
GS
253702010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
25371
25372 * kern/partition.c (grub_partition_check_containment): New function to
25373 check that a partition is physically contained in a parent. Since
25374 offsets are relative (and non-negative), this reduces to checking that
25375 the partition ends before its parent.
25376 (grub_partition_map_probe): Discard out-of-range sub-partitions.
25377 (grub_partition_iterate): Likewise.
25378 * include/grub/partition.h (grub_partition_map): Slightly more detailed
25379 comments.
25380 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
25381 partitions that start before their parent, and add debug printfs.
25382
19563c25
CW
253832010-07-13 Colin Watson <cjwatson@ubuntu.com>
25384
25385 * Makefile.in (.SUFFIX): Spell correctly, as ...
25386 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
25387 bare module name without `.mod', e.g. `test') tried to invoke a
25388 Modula-2 compiler.
25389
1a1f1e67
CW
253902010-07-13 Colin Watson <cjwatson@ubuntu.com>
25391
25392 * README: Point to the Info manual.
25393
811b0dca
JS
253942010-07-13 Jiro SEKIBA <jir@unicus.jp>
25395
25396 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
25397 2nd superblock position from partition size.
25398
e4f4eafc
CW
253992010-07-10 Colin Watson <cjwatson@ubuntu.com>
25400
25401 * Makefile.in (MAINTAINER_CLEANFILES): Remove
25402 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
25403 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
25404 outputs.
25405
4274c30f
VS
254062010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
25407
25408 Restructure SCSI .id handling.
25409 Reported and tested by: Aleš Nesrsta.
25410
25411 * disk/ata.c (grub_atapi_close): Removed. All users updated.
25412 (grub_atapi_dev): Changed .name to "ata". New field .id.
25413 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
25414 (grub_usbms_dev): New field .id.
25415 * disk/scsi.c (grub_scsi_iterate): Generate name.
25416 (grub_scsi_open): Parse name.
25417 * include/grub/scsi.h (grub_make_scsi_id): New function.
25418 (grub_scsi_dev): Change iterate and open to number instead of naming
25419 busses. All users updated.
25420 (grub_scsi): Remove name. Add .bus.
25421
5bc24388
VS
254222010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
25423
25424 * commands/help.c (grub_cmd_help): Fix a typo.
25425
249975ba
VS
254262010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
25427
25428 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
25429 Reported and tested by: Colin Watson.
25430
3eaac1a1
VS
254312010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
25432
25433 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
25434 in this context.
25435
becce1b1
VS
254362010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
25437
25438 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
25439
f7bf0918
CW
254402010-07-07 Colin Watson <cjwatson@ubuntu.com>
25441
25442 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
25443 indentation.
25444
0b0f9620
CW
254452010-07-06 Colin Watson <cjwatson@ubuntu.com>
25446
25447 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
25448 and disk/raid6_recover.c.
25449 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
25450 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
25451
1e545469
CW
254522010-07-06 Colin Watson <cjwatson@ubuntu.com>
25453
25454 * term/gfxterm.c (repaint_schedulded): Rename to ...
25455 (repaint_scheduled): ... this. Update all callers.
25456 (repaint_was_schedulded): Rename to ...
25457 (repaint_was_scheduled): ... this. Update all callers.
25458
5357687a
CW
254592010-07-06 Colin Watson <cjwatson@ubuntu.com>
25460
25461 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
25462 which we expect to be handled by upper layers.
25463
29d7e783
BC
254642010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
25465
25466 * bus/usb/usbhub.c: #include time.h header.
25467
37582066
CW
254682010-07-06 Colin Watson <cjwatson@ubuntu.com>
25469
25470 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
25471 entry_name also for entries without stat blocks (e.g. ".."); fixes
25472 corruption of the first entry in a directory.
25473
c8c06953
CW
254742010-07-06 Colin Watson <cjwatson@ubuntu.com>
25475
25476 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
25477 after setting gfxterm as the active terminal. GRUB_BACKGROUND
25478 doesn't work otherwise.
25479
e75056f1
CW
254802010-07-05 Colin Watson <cjwatson@ubuntu.com>
25481
25482 * docs/grub.texi (Features): Update list of supported file systems.
25483 (GNU/Linux): Update for GRUB 2.
25484 (Serial terminal): Remove mention of --disable-serial, which was a
25485 GRUB Legacy configure option. Update instructions to use
25486 `terminal_input' and `terminal_output' rather than `terminal'.
25487 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
25488 configuration' and `Installing GRUB using grub-install'.
25489 (Menu entry editor): Update for GRUB 2.
25490 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
25491 Document new -a, -u, and -v options.
25492 (initrd): New section.
25493 (initrd16): New section.
25494 (linux): New section.
25495 (linux16): New section.
25496 (search): The `var' argument to `--set' is optional.
25497 (GRUB only offers a rescue shell): Go into a little more detail on
25498 drive ordering.
25499
5cf69151
CW
255002010-07-05 Colin Watson <cjwatson@ubuntu.com>
25501
25502 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
25503
e3f90044
CW
255042010-07-05 Colin Watson <cjwatson@ubuntu.com>
25505
25506 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
25507 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
25508
38d8f4f3
CW
255092010-07-05 Colin Watson <cjwatson@ubuntu.com>
25510
25511 * util/i386/pc/grub-setup.c (setup): Rename prefix to
25512 install_prefix, in line with install_dos_part and install_bsd_part.
25513 Add new prefix variable, which is copied to install_prefix after
25514 comparing core.img in memory with the one read from disk in the
25515 no-embedding case, and use that rather than overwriting
25516 install_prefix immediately when installing to a partition.
25517 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
25518 Bicakci.
25519
57ebd41e
GS
255202010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
25521
25522 * configure.ac: Avoid == in test command, it's not portable.
25523 * util/grub.d/30_os-prober.in: Likewise.
25524
cb7f64b2
CW
255252010-07-04 Colin Watson <cjwatson@ubuntu.com>
25526
25527 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
25528
6b654bb0
GS
255292010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
25530
25531 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
25532 multiple (top-level) partmaps.
25533
72a2026d
VS
255342010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
25535
25536 * util/i386/efi/grub-install.in: Don't use empty grub_device.
fcda2a1f 25537 Reported by: Tino Keitel.
72a2026d 25538
df3eb88f
VS
255392010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
25540
25541 Bidi and diacritics support.
25542
25543 * Makefile.in (widthspec.bin): New target.
25544 (widthspec.h): Likewise.
25545 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
25546 * autogen.sh: Generate unidata.c.
25547 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
25548 * commands/ls.c (grub_ls_list_devices): Likewise.
25549 (grub_ls_list_files): Likewise.
25550 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
25551 (grub_mini_cmd_lsmod): Likewise.
25552 * commands/read.c: Likewise.
25553 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
25554 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
25555 * lib/arg.c (grub_arg_show_help): Likewise.
25556 * lib/crypto.c (grub_password_get): Likewise.
25557 * normal/auth.c (grub_username_get): Likewise.
25558 * normal/misc.c (grub_normal_print_device_info): Likewise.
25559 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
25560 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
25561 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
25562 (normal/charset.c_DEPENDENCIES): New variable.
25563 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
25564 (pkglib_MODULES): Remove charset.mod.
25565 (charset_mod_SOURCES): Removed.
25566 (charset_mod_CFLAGS): Likewise.
25567 (charset_mod_LDFLAGS): Likewise.
25568 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
25569 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
25570 and term/tparm.c.
25571 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
25572 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
25573 (kernel_img_HEADERS): Add terminfo.h.
25574 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
25575 Fill ->font. Reverse ascii bitmaps.
25576 (grub_font_get_xheight): New function.
25577 * font/font.c (grub_font_get_string_width): Moved from here ...
25578 * gfxmenu/font.c (grub_font_get_string_width): ... here.
25579 * font/font.c (grub_font_draw_string): Moved from here ...
25580 * gfxmenu/font.c (grub_font_draw_string): ... here.
25581 * font/font.c (grub_font_dup_glyph): New function.
25582 (grub_font_blit_glyph): Likewise.
25583 (grub_font_blit_glyph_mirror): Likewise.
25584 (blit_comb): Likewise.
25585 (grub_font_construct_dry_run): Likewise.
25586 (grub_font_get_constructed_device_width): Likewise.
25587 (grub_font_construct_glyph): Likewise.
25588 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
25589 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
25590 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
25591 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
25592 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
25593 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
25594 (grub_font_get_xheight): New proto.
25595 (grub_font_get_constructed_device_width): Likewise.
25596 (grub_font_construct_glyph): Likewise.
25597 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
25598 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
25599 * include/grub/font.h (grub_font_draw_string): Moved from here ...
25600 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
25601 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
25602 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
25603 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
25604 (grub_console_getcharwidth): Likewise.
25605 * include/grub/misc.h (grub_xputs): New proto.
25606 (grub_puts): Inlined.
25607 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
25608 (grub_normal_get_line_counter): Removed.
25609 (grub_install_newline_hook): Likewise.
25610 (grub_normal_get_char_counter): New proto.
25611 (grub_normal_reset_more): Likewise.
25612 (grub_xputs_normal): Likewise.
25613 * include/grub/powerpc/ieee1275/console.h: Removed.
25614 * include/grub/sparc64/ieee1275/console.h: Likewise.
25615 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
25616 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
25617 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
25618 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
25619 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
25620 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
25621 (grub_term_input): Pass reference to self. All users updated.
25622 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
25623 Pass reference to self. New fields normal_color, highlight_color and
25624 data. All users updated.
25625 (grub_putchar): Removed.
25626 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
25627 (grub_unicode_estimate_width): New function.
25628 (grub_term_getcharwidth): Add defaults.
25629 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
25630 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
25631 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
25632 (grub_cls): Remove EXPORT_FUNC.
25633 (grub_setcolorstate): Inline.
25634 (grub_newline_hook): Removed.
25635 * include/grub/terminfo.h: Rewritten. All users updated.
25636 * include/grub/unicode.h: New file.
25637 * include/grub/video.h (grub_video_signed_rect): New type.
25638 * kern/emu/console.c (grub_console_highlight_color): Removed.
25639 (grub_console_normal_color): Likewise.
25640 (grub_console_standard_color): Made static.
25641 (grub_ncurses_putchar): Remove mapping.
25642 (grub_ncurses_getcharwidth): Removed.
25643 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
25644 (grub_ncurses_setcolor): Removed.
25645 (grub_ncurses_getcolor): Likewise.
25646 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
25647 (grub_console_putchar): ... this.
25648 (grub_console_putchar): Handle argument difference.
25649 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
25650 console_init_early and console_init_lately.
25651 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
25652 * kern/misc.c (grub_puts): Removed.
25653 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
25654 (grub_vsnprintf_real): Remove str = NULL support.
25655 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
25656 * normal/charset.c (grub_utf8_to_ucs4): ... here.
25657 * kern/term.c (grub_putcode): Renamed to ...
25658 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
25659 (grub_putchar): Removed.
25660 (grub_xputs_dumb): New function.
25661 (grub_xputs): New variable.
25662 * lib/charset.c: Move from here ...
25663 * normal/charset.c: ... to here.
25664 (grub_ucs4_to_utf8): New function.
25665 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
25666 (join_types): New variable.
25667 (unpack_join): New function.
25668 (bidi_types): New variable.
25669 (unpack_bidi): New function.
25670 (get_bidi_type): Likewise.
25671 (get_join_type): Likewise.
25672 (is_mirrored): Likewise.
25673 (grub_unicode_get_comb_type): Likewise.
25674 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
25675 (is_type_after): Likewise.
25676 (grub_unicode_aglomerate_comb): Likewise.
25677 (bidi_line_wrap): Likewise.
25678 (grub_bidi_line_logical_to_visual): Likewise.
25679 (grub_bidi_logical_to_visual): Likewise.
25680 (grub_unicode_mirror_code): Likewise.
25681 (grub_unicode_shape_code): Likewise.
25682 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
25683 Don't use grub_putchar.
25684 * normal/main.c (grub_normal_init_page): Use grub_putcode.
25685 (grub_normal_reader_init): Likewise.
25686 (grub_xputs_saved): New variable.
25687 (GRUB_MOD_INIT): Set grub_xputs.
25688 (GRUB_MOD_FINI): Restore grub_xputs.
25689 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
25690 (menu_init): Avoid printing gfxmenu error.
25691 (show_menu): Use grub_normal_get_char_counter.
25692 * normal/menu_entry.c (update_screen): Fix out-of-array.
25693 (complete): Avoid NULL dereferencing.
25694 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
25695 * normal/menu_text.c (print_spaces): Removed.
25696 (grub_print_ucs4): Likewise.
25697 (grub_print_message_indented): Use grub_print_ucs4.
25698 (print_message): Use grub_putcode.
25699 (print_entry): Hanlde diacritics.
25700 * normal/term.c (term_state): New type.
25701 (grub_more_lines): Removed.
25702 (term_states): New variable.
25703 (grub_normal_line_counter): Renamed to ..
25704 (grub_normal_char_counter): ...this. All users updated.
25705 (grub_normal_get_line_counter): Renamed to ...
25706 (grub_normal_get_char_counter): ... this.
25707 (grub_normal_reset_more): New function.
25708 (process_newline): Removed.
25709 (print_more): New function.
25710 (grub_install_newline_hook): Removed.
25711 (map_code): New function.
25712 (grub_puts_terminal): Use grub_print_ucs4.
25713 (putglyph): New function.
25714 (putcode_real): Likewise.
25715 (grub_putcode): Use putcode_real.
25716 (get_maxwidth): New function.
25717 (get_startwidth): Likewise.
25718 (print_ucs4_terminal): Likewise.
25719 (find_term_state): Likewise.
25720 (put_glyphs_terminal): Likewise.
25721 (print_backlog): Likewise.
25722 (print_ucs4_real): Likewise.
25723 (grub_print_ucs4): Likewise.
25724 (grub_xputs_normal): Likewise.
25725 * term/efi/console.c (grub_console_putchar): Output diacritics.
25726 (grub_console_getcharwidth): Removed.
25727 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
25728 * term/gfxterm.c (clear_char): Free chars.
25729 (scroll_up): Avoid leaking memory.
25730 (grub_gfxterm_putchar): Support diacritics.
25731 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
25732 * term/i386/pc/console.c (grub_console_term_output): Declare as
25733 GRUB_TERM_CODE_TYPE_VGA.
25734 * term/i386/pc/vga.c (grub_vga_term): Declare as
25735 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
25736 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
25737 GRUB_TERM_CODE_TYPE_VGA.
25738 * term/i386/vga_common.c (map_char): Removed.
25739 (grub_console_putchar): Likewise.
25740 (grub_console_getcharwidth): Likewise.
25741 * term/ieee1275/ofconsole.c: Simplify using terminfo.
25742 (colors): Reordered to match terminfo.
25743 (grub_ofconsole_normal_color): Removed.
25744 (grub_ofconsole_writeesc): Likewise.
25745 (grub_ofconsole_highlight_color): Likewise.
25746 (grub_ofconsole_getcharwidth): Likewise.
25747 (grub_ofconsole_setcolorstate): Likewise.
25748 (grub_ofconsole_setcolor): Likewise.
25749 (grub_ofconsole_getcolor): Likewise.
25750 (grub_ofconsole_readkey): Renamed to ...
25751 (readkey): ... this. Remove escape sequence handling. Return -1 on no
25752 key.
25753 (grub_ofconsole_checkkey): Removed.
25754 (grub_ofconsole_getkey): Likewise.
25755 (grub_ofconsole_getxy): Likewise.
25756 (grub_ofconsole_gotoxy): Likewise.
25757 (grub_ofconsole_cls): Likewise.
25758 (grub_ofconsole_refresh): Likewise.
25759 (grub_ofconsole_terminfo_input): New struct.
25760 (grub_ofconsole_terminfo_output): Likewise.
25761 (grub_ofconsole_term_input): Use terminfo.
25762 (grub_ofconsole_term_output): Likewise.
25763 (grub_console_init): Split into ...
25764 (grub_console_init_early): ...this and ...
25765 (grub_console_init_lately): ...this. Use terminfo.
25766 (grub_ofconsole_putchar): Renamed to ...
25767 (put): ... this. Remove mapping.
25768 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
25769 * term/serial.c: Simplify using terminfo.
25770 (xpos): Removed.
25771 (ypos): Likewise.
25772 (keep_track): Likewise.
25773 (registered): Likewise.
25774 (input_buf): Likewise.
25775 (npending): Likewise.
25776 (serial_translate_key_sequence): Likewise.
25777 (fill_input_buf): Likewise.
25778 (grub_serial_checkkey): Likewise.
25779 (grub_serial_getkey): Likewise.
25780 (grub_serial_getxy): Likewise.
25781 (grub_serial_gotoxy): Likewise.
25782 (grub_serial_putchar): Likewise.
25783 (grub_serial_cls): Likewise.
25784 (grub_serial_setcolorstate): Likewise.
25785 (grub_serial_setcursor): Likewise.
25786 (serial_hw_init): Use serial_hw_fetch.
25787 (grub_serial_terminfo_input): New variable.
25788 (grub_serial_terminfo_output): Likewise.
25789 (grub_serial_term_input): Use terminfo.
25790 (grub_serial_term_output): Likewise.
25791 * term/terminfo.c (putstr): Use put.
25792 (grub_terminfo_all_free): New function
25793 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
25794 (grub_terminfo_output_register): New function.
25795 (grub_terminfo_output_unregister): Likewise.
25796 (grub_terminfo_getxy): Likewise.
25797 (grub_terminfo_readkey): Likewise.
25798 (grub_terminfo_checkkey): Likewise.
25799 (grub_terminfo_getkey): Likewise.
25800 (grub_terminfo_input_init): Likewise.
25801 (print_terminfo): Likewise.
25802 (grub_cmd_terminfo): Handle encoding.
25803 (grub_terminfo_gotoxy): Track position.
25804 (grub_terminfo_cls): Likewise.
25805 (grub_terminfo_putchar): Likewise.
25806 (grub_terminfo_setcolorstate): Handle colors
25807 (grub_terminfo_cursor_on): This ...
25808 (grub_terminfo_cursor_off): ... and this merged into ...
25809 (grub_terminfo_setcursor): ... this.
25810 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
25811 * unicode/ArabicShaping.txt: New file (imported from Unicode).
25812 * unicode/BidiMirroring.txt: Likewise.
25813 * unicode/UnicodeData.txt: Likewise.
25814 * unicode/COPYING: Likewise.
25815 * util/grub-editenv.c (grub_putchar): Removed.
25816 (grub_xputs_real): New function.
25817 (grub_xputs): New variable.
25818 * util/grub-fstest.c (grub_putchar): Removed.
25819 (grub_xputs_real): New function.
25820 (grub_xputs): New variable.
25821 * util/grub-mkdevicemap.c (grub_putchar): Removed.
25822 (grub_xputs_real): New function.
25823 (grub_xputs): New variable.
25824 * util/grub-probe.c (grub_putchar): Removed.
25825 (grub_xputs_real): New function.
25826 (grub_xputs): New variable.
25827 * util/grub-script-check.c (grub_putchar): Removed.
25828 (grub_xputs_real): New function.
25829 (grub_xputs): New variable.
25830 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
25831 (grub_xputs_real): New function.
25832 (grub_xputs): New variable.
25833 * util/import_unicode.py: New file.
25834 * util/grub-mkfont.c (ft_errmsgs): New array.
25835 (grub_glyph_info): Make bitmap a pointer.
25836 (file_formats): New type WIDTH_SPEC.
25837 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
25838 (options): Add width-spec.
25839 (help): Likewise.
25840 (add_char): Renamed to ...
25841 (add_glyph): ... this.
25842 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
25843 (glyph_replace): New type.
25844 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
25845 (add_char): New function.
25846 (add_subst): Likewise.
25847 (process_cursive): Likewise.
25848 (add_font): Handle GSUB.
25849 (write_font_width_spec): New function.
25850 (main): Sort glyphs.
25851 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
25852 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
25853 * kern/term.c (grub_cls): Moved from here...
25854 * normal/term.c (grub_cls): ... here.
25855
50f0bcda
CW
258562010-07-02 Colin Watson <cjwatson@ubuntu.com>
25857
25858 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
25859 suitable for using within the format argument of printf when
25860 converting grub_size_t.
25861 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
25862 "x" to convert grub_size_t arguments.
25863
40372103
VS
258642010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
25865
25866 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
25867 too long captions.
25868 (list_get_minimal_size): Take selection box into account.
25869
942a10c7
VS
258702010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
25871
25872 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
25873 NULL font.
25874
2bdb2892
CW
258752010-07-02 Colin Watson <cjwatson@ubuntu.com>
25876
25877 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
25878 devices when iterating over /dev/disk/by-id; they will be handled
25879 later if appropriate, which they aren't always (e.g. LVM).
25880
e03ed6c1
CW
258812010-07-02 Colin Watson <cjwatson@ubuntu.com>
25882
25883 * include/grub/misc.h (grub_reboot): Declare as noreturn.
25884 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
25885 fails.
25886 (grub_halt): Likewise.
25887 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
25888 reset-all fails.
25889 (grub_halt): Don't return, even if all of shut-down, power-off, and
25890 poweroff fail.
25891
47695765
CW
258922010-07-02 Colin Watson <cjwatson@ubuntu.com>
25893
25894 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
25895 arguments, not three.
25896
507736c8
CW
258972010-07-02 Colin Watson <cjwatson@ubuntu.com>
25898
25899 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
25900 * util/grub.d/10_linux.in: Use it to check for LVM, so that
25901 LVM-on-RAID is handled correctly.
25902
e3c8cd37
CW
259032010-07-02 Colin Watson <cjwatson@ubuntu.com>
25904
25905 * docs/grub.texi (Changes from GRUB Legacy): New section.
25906 (Future): Fix typo.
25907
8d4a2fec
CW
259082010-07-02 Colin Watson <cjwatson@ubuntu.com>
25909
25910 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
25911 grub.d/README accidentally ends up executable for one reason or
25912 another. Ignore it.
25913
1c4827be
VS
259142010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
25915
25916 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
25917 (gpt_partition_map_iterate): Support non-512B sectors.
25918
d9a0c941
VS
259192010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
25920
25921 * kern/efi/init.c (grub_efi_init): Disable watchdog.
25922 Tested by: Seth Goldberg.
25923
48f27e87
VS
259242010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
25925
25926 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
25927 Properly align mbi.
25928 Reported by: Seth Goldberg.
25929
b0c4f956
VS
259302010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
25931
25932 * util/grub-mkrescue.in: Avoid module duplication.
25933
105a2e8c
SF
259342010-07-01 Sean Finney <seanius@seanius.net>
25935
25936 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
25937
5944958c
SF
259382010-07-01 Sean Finney <seanius@seanius.net>
25939
25940 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
25941
259422010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
25943
25944 * disk/lvm.c (grub_lvm_checkvalue): New function.
25945 (grub_lvm_check_flag): Likewise.
25946
b79889ba
RM
259472010-07-01 Robert Millan <rmh@gnu.org>
25948
25949 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
25950 Support 'p' as partition separator on kernel of FreeBSD (used
25951 with GPT labels).
25952 (grub_util_biosdisk_get_grub_dev): Likewise.
25953
ec1d04f1
VS
259542010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
25955
25956 Yeeloong firmware port.
25957
25958 * boot/mips/yeeloong/fwstart.S: New file.
25959 * bus/cs5536.c (gpiodump): New const.
25960 (set_io_space): New function.
25961 (set_iod): Likewise.
25962 (set_p2d): Likewise.
25963 (grub_cs5536_init_geode): Likewise.
25964 * commands/mips/yeeloong/lsspd.c: New file.
25965 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
25966 (serial_mod_SOURCES): New variable.
25967 (serial_mod_CFLAGS): Likewise.
25968 (serial_mod_LDFLAGS): Likewise.
25969 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
25970 term/terminfo.c and term/tparm.c.
25971 (pkglib_IMAGES): Add fwstart.img.
25972 (fwstart_img_SOURCES): New variable.
25973 (fwstart_img_CFLAGS): Likewise.
25974 (fwstart_img_ASFLAGS): Likewise.
25975 (fwstart_img_LDFLAGS): Likewise.
25976 (fwstart_img_FORMAT): Likewise.
25977 (pkglib_MODULES): Add lsspd.mod.
25978 (lsspd_mod_SOURCES): New variable.
25979 (lsspd_mod_CFLAGS): Likewise.
25980 (lsspd_mod_LDFLAGS): Likewise.
25981 (pkglib_MODULES): Add halt.mod.
25982 (halt_mod_SOURCES): New variable.
25983 (halt_mod_CFLAGS): Likewise.
25984 (halt_mod_LDFLAGS): Likewise.
25985 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
25986 (serial_mod_SOURCES): Removed.
25987 (serial_mod_CFLAGS): Likewise.
25988 (serial_mod_LDFLAGS): Likewise.
25989 * disk/ata.c (check_device): New function.
25990 (grub_ata_device_initialize): Use check_device.
25991 (grub_ata_iterate): Recheck devices.
25992 (grub_ata_open): Likewise.
25993 (grub_atapi_iterate): Likewise.
25994 (grub_atapi_open): Likewise.
25995 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
25996 (GRUB_ATA_CH1_PORT1): Likewise.
25997 (GRUB_ATA_CH0_PORT2): Likewise.
25998 (GRUB_ATA_CH1_PORT2): Likewise.
25999 * include/grub/mips/loongson.h: New file.
26000 * include/grub/mips/yeeloong/ec.h: Likewise.
26001 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
26002 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
26003 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
26004 * include/grub/misc.h (grub_halt): Declare as noreturn.
26005 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
26006 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
26007 (UART_ENABLE_FIFO_TRIGGER1): New definition.
26008 (UART_ENABLE_DTRRTS): Likewise.
26009 (UART_ENABLE_MODEM): Removed.
26010 (UART_ENABLE_OUT2): New const.
26011 * include/grub/term.h (grub_term_register_input_active): New function.
26012 (grub_term_register_output_active): Likewise.
26013 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
26014 argument.
26015 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
26016 (init_pci): New function.
26017 (grub_machine_init): Execute platform init when firmware. Init serial.
26018 (grub_halt): Implement.
26019 (grub_exit): Likewise.
26020 (grub_reboot): Likewise.
26021 * term/serial.c (serial_hw_init): Update macros.
26022 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
26023 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
26024 (image_targets): New target mipsel-yeeloong-flash.
26025 (generate_image): Support IMAGE_YEELOONG_FLASH.
26026 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
26027 (grub_video_sm712_setup): Init card.
26028 (grub_video_sm712_set_palette): Removed.
26029 * video/sm712_init.c: New file.
26030
ff4a70d2
CW
260312010-06-30 Colin Watson <cjwatson@ubuntu.com>
26032
26033 * Makefile.in (install-local): Temporarily prepend $(builddir) to
26034 PATH when running help2man and then run it on the unadorned
26035 executable names, rather than passing $(builddir)/* paths to
26036 help2man. This avoids the build directory ending up in generated
26037 manual pages.
26038
1246efeb
CW
260392010-06-29 Colin Watson <cjwatson@ubuntu.com>
26040
26041 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
26042 to avoid accidents when debugging with 'sh -x'.
26043 * util/grub-mkrescue.in: Likewise.
26044 * util/grub.d/00_header.in: Likewise.
26045 * util/grub.d/10_hurd.in: Likewise.
26046 * util/grub.d/10_kfreebsd.in: Likewise.
26047 * util/grub.d/10_linux.in: Likewise.
26048 * util/grub.d/10_netbsd.in: Likewise.
26049 * util/grub.d/10_windows.in: Likewise.
26050 * util/grub.d/20_linux_xen.in: Likewise.
26051 * util/grub.d/30_os-prober.in: Likewise.
26052 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
26053
1ba9b889
CW
260542010-06-29 Colin Watson <cjwatson@ubuntu.com>
26055
26056 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
26057 last character in the buffer.
26058 Reported by: Vladimir Serbinenko.
26059
dccaf99d
RM
260602010-06-29 Robert Millan <rmh@gnu.org>
26061
26062 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
26063 (Command-line and menu entry commands): Document `badram' command.
26064
d500ed12
RM
260652010-06-28 Robert Millan <rmh@gnu.org>
26066
26067 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
26068 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
26069 command using ${GRUB_BADRAM} as parameter.
26070
20bc84a6
CW
260712010-06-28 Colin Watson <cjwatson@ubuntu.com>
26072
26073 * docs/grub.texi (Device map): New section.
26074 (Themes): New section (stub).
26075 * Makefile.in (docs/grub.info): The info documentation now builds
26076 without errors. Make sure it stays that way.
26077
4045dee1
VS
260782010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
26079
26080 Use normal parser for menu entries.
26081 Reported by: Thomas Frauendorfer
26082
26083 * include/grub/parser.h (grub_parser_execute): Don't export.
26084 * normal/menu.c (grub_menu_execute_entry_real): New function.
26085 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
26086
bca58c7b
CW
260872010-06-28 Colin Watson <cjwatson@ubuntu.com>
26088
26089 * docs/grub.texi (Embedded configuration): New section (replacing
26090 old "Preset Menu" stub).
26091 (Images): New section.
26092 (configfile): Note that any menu entries defined in `file' are shown
26093 immediately.
26094
dec53e63
JT
260952010-06-28 Josh Triplett <josh@joshtriplett.org>
26096
26097 * mmap/i386/pc/mmap_helper.S: Set CF on return.
26098
c06e40f7
CW
260992010-06-28 Colin Watson <cjwatson@ubuntu.com>
26100
26101 * util/grub-install.in: Add --debug-image= option.
26102
cb88052b
CW
261032010-06-28 Colin Watson <cjwatson@ubuntu.com>
26104
26105 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
26106 possible on Linux.
26107
26108 * util/deviceiter.c (check_device): Rename to ...
26109 (check_device_readable_unique): ... this. Update all callers.
26110 Maintain and check a list of which devices (by canonicalized name)
26111 have already been seen.
26112 (clear_seen_devices): New function.
26113 (compare_file_names) [__linux__]: New function.
26114 (grub_util_iterate_devices): Clear the list of seen devices on exit
26115 and (just in case) on entry.
26116 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
26117 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
26118 seen-devices list, superseded by general code in check_device.
26119
bbe34652
CW
261202010-06-28 Colin Watson <cjwatson@ubuntu.com>
26121
26122 * commands/cat.c (options): New variable.
26123 (grub_cmd_cat): Parse options. If the --dos option is given, print
26124 DOS-style "\r\n" line endings as simple newlines (Debian bug
26125 #586358).
26126 (GRUB_MOD_INIT): Use extcmd.
26127 (GRUB_MOD_FINI): Likewise.
26128 * docs/grub.texi (cat): Document --dos.
26129
412e09f3
VS
261302010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
26131
26132 XEN with Linux grub-mkconfig support.
26133
26134 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
26135 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
26136 GRUB_CMDLINE_XEN_DEFAULT.
26137 * util/grub.d/20_linux_xen.in: New file.
26138
53f3ef38 261392010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
994b0c27
VS
26140
26141 Initialise VGA video on qemu ourselves.
26142
26143 * boot/i386/qemu/boot.S: Don't call 0xc000.
26144 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
26145 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
26146 (kernel_img_HEADERS): Add pci.h.
26147 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
26148 * configure.ac: Force unifont on qemu and yeeloong.
26149 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
26150 (grub_vga_palette_write): Use correct register.
26151 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
26152 Call grub_qemu_init_cirrus.
26153 * kern/i386/qemu/init.c: New file.
26154 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
26155
26156 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
26157
c75be4fb
PR
261582010-06-26 Pavel Roskin <proski@gnu.org>
26159
26160 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
26161 13.
26162
d8034603
CW
261632010-06-26 Colin Watson <cjwatson@ubuntu.com>
26164
26165 * docs/grub.texi (Simple configuration): Explain that
26166 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
26167 set to `true' to disable their respective recovery entries, not
26168 merely set.
26169
3fa06487
CW
261702010-06-26 Colin Watson <cjwatson@ubuntu.com>
26171
26172 Make the `source' command slightly faster.
26173
26174 * normal/main.c (grub_normal_execute): Don't re-read list files when
26175 nested.
26176
e9b29642
CW
261772010-06-23 Colin Watson <cjwatson@ubuntu.com>
26178
26179 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
26180 field position and mask size to red fields from mode_info, not
26181 green.
26182 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
26183 Remove redundant tag->common.framebuffer_type assignment.
26184 Reported by: Seth Goldberg.
26185
e726542f
CW
261862010-06-23 Colin Watson <cjwatson@ubuntu.com>
26187
26188 Sync up other versions of the Linux loader with Robert Millan's
26189 change of 2010-01-09, "Make loader output a bit more user-friendly".
26190
26191 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
26192 grub_dprintf().
26193 (grub_cmd_linux): Likewise.
26194 (grub_cmd_initrd): Likewise.
26195 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
26196 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
26197
d6e98a17
CW
261982010-06-21 Colin Watson <cjwatson@ubuntu.com>
26199
26200 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
26201 larger than MEMORY_MAP_SIZE.
26202
14d3f08e
BC
262032010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
26204
26205 Fix parallel build.
26206
26207 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
26208 dependency.
26209 * script/parser.y: #include grub_script.tab.h header.
26210
4f9613a3
VS
262112010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
26212
26213 Support >3GiB and <16MiB RAM in i386-qemu.
26214
26215 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
26216 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
26217 (grub_lower_mem): Removed.
26218 (grub_upper_mem): Likewise.
26219 (mem_size): Made static.
26220 (above_4g): New variable.
26221 (grub_machine_mmap_init): Detect small mem_size and above_4g.
26222 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
26223 support.
26224
05e51879
VS
262252010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
26226
26227 Cirrus 5446 and Bochs video cards support.
26228
26229 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
26230 video_bochs.mod
26231 (video_cirrus_mod_SOURCES): New variable.
26232 (video_cirrus_mod_CFLAGS): Likewise.
26233 (video_cirrus_mod_LDFLAGS): Likewise.
26234 (video_bochs_mod_SOURCES): Likewise.
26235 (video_bochs_mod_CFLAGS): Likewise.
26236 (video_bochs_mod_LDFLAGS): Likewise.
26237 * include/grub/vga.h: New file.
26238 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
26239 (grub_video_fb_set_page_t): New type.
26240 (grub_video_fb_setup): New prototype.
26241 (grub_video_fb_swap_buffers): Likewise.
26242 (grub_video_fb_get_info_and_fini): Likewise.
26243 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
26244 (CRTC_DATA_PORT): Likewise.
26245 (CRTC_CURSOR): Likewise.
26246 (CRTC_CURSOR_ADDR_HIGH): Likewise.
26247 (CRTC_CURSOR_ADDR_LOW): Likewise.
26248 (CRTC_CURSOR_DISABLE): Likewise.
26249 (update_cursor): Use grub_vga_cr_write.
26250 (grub_vga_text_setcursor): Likewise.
26251 * video/bochs.c: New file.
26252 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
26253 (palette): Likewise.
26254 (palette_size): Likewise.
26255 (framebuffer): New variable.
26256 (grub_video_fb_init): Use 'framebuffer'.
26257 (grub_video_fb_fini): Likewise.
26258 (grub_video_fb_get_info): Likewise.
26259 (grub_video_fb_get_palette): Likewise.
26260 (grub_video_fb_set_palette): Likewise.
26261 (grub_video_fb_set_viewport): Likewise.
26262 (grub_video_fb_get_viewport): Likewise.
26263 (grub_video_fb_map_color): Likewise.
26264 (grub_video_fb_map_rgb): Likewise.
26265 (grub_video_fb_map_rgba): Likewise.
26266 (grub_video_fb_unmap_color): Likewise.
26267 (grub_video_fb_unmap_color_int): Likewise.
26268 (grub_video_fb_fill_rect): Likewise.
26269 (grub_video_fb_blit_bitmap): Likewise.
26270 (grub_video_fb_blit_render_target): Likewise.
26271 (grub_video_fb_scroll): Likewise.
26272 (grub_video_fb_create_render_target): Likewise.
26273 (grub_video_fb_doublebuf_blit_init): Likewise.
26274 (grub_video_fb_set_active_render_target): Handle doublebuffering.
26275 (doublebuf_pageflipping_update_screen): New function.
26276 (doublebuf_pageflipping_init): Likewise.
26277 (grub_video_fb_setup): Likewise.
26278 (grub_video_fb_swap_buffers): Likewise.
26279 (grub_video_fb_get_info_and_fini): Likewise.
26280 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
26281 All users updated.
26282 (doublebuf_pageflipping_commit): Restructured into ...
26283 (doublebuf_pageflipping_set_page): ... this.
26284 (doublebuf_pageflipping_update_screen): Removed.
26285 (doublebuf_pageflipping_init): Likewise.
26286 (double_buffering_init): Likewise.
26287 (grub_video_vbe_setup): Use grub_video_fb_setup.
26288 (grub_video_vbe_swap_buffers): Removed.
26289 (grub_video_vbe_set_active_render_target): Likewise.
26290 (grub_video_vbe_get_active_render_target): Likewise.
26291 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
26292 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
26293 grub_video_fb_set_active_render_target and
26294 grub_video_fb_get_active_render_target.
26295 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
26296 (SEQUENCER_DATA_PORT): Likewise.
26297 (MAP_MASK_REGISTER): Likewise.
26298 (CRTC_ADDR_PORT): Likewise.
26299 (CRTC_DATA_PORT): Likewise.
26300 (START_ADDR_HIGH_REGISTER): Likewise.
26301 (START_ADDR_LOW_REGISTER): Likewise.
26302 (GRAPHICS_ADDR_PORT): Likewise.
26303 (GRAPHICS_DATA_PORT): Likewise.
26304 (READ_MAP_REGISTER): Likewise.
26305 (INPUT_STATUS1_REGISTER): Likewise.
26306 (INPUT_STATUS1_VERTR_BIT): Likewise.
26307 (get_map_mask): Use grub_vga_sr_read.
26308 (set_map_mask): Use grub_vga_sr_write.
26309 (set_read_map): Use grub_vga_gr_write.
26310 (set_start_address): Use grub_vga_cr_write.
26311 * video/sm712.c (framebuffer): Remove leftover fields.
26312
4321c64a
CW
263132010-06-20 Colin Watson <cjwatson@ubuntu.com>
26314
26315 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
26316 setting GRUB_VIDEO_BACKEND. Make it available as a user override
26317 instead. Replace the gfxterm backend check with a check that
26318 ${GRUB_PREFIX}/video.lst is non-empty.
26319 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
26320 again.
26321 (load_video): New generated function. Call it before loading
26322 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
26323 * util/grub.d/10_linux.in (linux_entry): Call load_video.
26324 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
26325 * docs/grub.texi (Simple configuration): Document
26326 GRUB_VIDEO_BACKEND.
26327
263282010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
26329
26330 Use video functions in linux and xnu loaders.
26331
26332 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
26333 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
26334 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
26335 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
26336 loader/i386/pc/linux.c.
26337 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
26338 (find_line_len): Removed.
26339 (find_framebuf): Likewise.
26340 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
26341 * loader/i386/efi/xnu.c: Removed.
26342 * loader/i386/pc/xnu.c: Moved from here...
26343 * loader/i386/xnu.c: ...here.
26344
26345 Enable priorities in video drivers.
26346
26347 * include/grub/video.h (grub_video_adapter_prio_t): New type.
26348 (grub_video_adapter): New field prio.
26349 (grub_video_register): Respect prio when inserting.
26350 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
26351 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
26352 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
26353 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
26354 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
26355 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
26356 * video/sm712.c (grub_video_sm712_adapter): Likewise.
26357
26358 Fix SDL driver ID.
26359
26360 * include/grub/video.h (grub_video_driver_id_t): New value
26361 GRUB_VIDEO_DRIVER_SDL.
26362 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
26363
7d24e434
CW
263642010-06-17 Colin Watson <cjwatson@ubuntu.com>
26365
26366 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
26367 argument to printf.
26368 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
26369
c88a83f6
CW
263702010-06-17 Colin Watson <cjwatson@ubuntu.com>
26371
26372 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
26373 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
26374
094dfb69
CW
263752010-06-17 Colin Watson <cjwatson@ubuntu.com>
26376
26377 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
26378 directly, and recommend grub-install instead.
26379 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
26380
2164da6b
CW
263812010-06-17 Colin Watson <cjwatson@ubuntu.com>
26382
26383 Fix i386-pc prefix handling with nested partitions (Debian bug
26384 #585068). Note that the case where the core image is booted using
26385 multiboot and relocated from its original location still requires
26386 more work.
26387
26388 * kern/i386/pc/init.c (make_install_device): If the prefix starts
26389 with "(,", fill the boot drive in between those two characters, but
26390 expect that a full partition specification including partition map
26391 names will follow.
26392 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
26393 specified, write a prefix without the drive name but including a
26394 full partition specification.
26395
044e2e60
CW
263962010-06-16 Colin Watson <cjwatson@ubuntu.com>
26397
26398 * util/grub-mkconfig.in: Ignore non-option arguments, for
26399 compatibility with older versions (before 2010-06-12) which did the
26400 same. In particular, this makes it easier to ship an update-grub
26401 wrapper which is compatible with that used with GRUB Legacy (Debian
26402 bug #586056).
26403
5591324f
GS
264042010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26405
26406 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
26407 for manual page generation.
26408
662e24d5
GS
264092010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26410
26411 * po/POTFILES: Remove leftover commands/handler.c.
26412
8d70754e
CW
264132010-06-14 Colin Watson <cjwatson@ubuntu.com>
26414
26415 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
26416 left this script non-functional.
26417
41160e2e
CW
264182010-06-14 Colin Watson <cjwatson@ubuntu.com>
26419
26420 * docs/man/grub-emu.h2m: New file.
26421
b5309cc1
CW
264222010-06-13 Colin Watson <cjwatson@ubuntu.com>
26423
26424 * docs/grub.texi (Commands): Document reduced command set in rescue
26425 mode.
26426 (cpuid): New section.
26427
fcb2d090
GS
264282010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
26429
26430 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
26431 new partition naming style.
26432 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
26433
96e5c556
BC
264342010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
26435
26436 Add "-o grub.iso" like cmdline options support.
26437
26438 * util/grub-install.in: Improve cmdline option parsing.
26439 * util/grub-mkconfig.in: Likewise.
26440 * util/grub-mkrescue.in: Likewise.
26441 * util/grub-reboot.in: Likewise.
26442 * util/grub-set-default.in: Likewise.
26443 * util/i386/efi/grub-install.in: Likewise.
26444 * util/ieee1275/grub-install.in: Likewise.
26445 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
26446
c16be99b
CW
264472010-06-12 Colin Watson <cjwatson@ubuntu.com>
26448
26449 * .bzrignore: Ignore 41_custom.
26450
ce08a9fb
TS
264512010-06-12 Thomas Schmitt <scdbackup@gmx.net>
26452
26453 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
26454
7beac90c
CW
264552010-06-12 Colin Watson <cjwatson@ubuntu.com>
26456
26457 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
26458 prototype declarations.
26459
26460 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
26461 generating fs, partmap, and video lists.
26462 * include/grub/fs.h (grub_fs_register): Omit prototype if
26463 GRUB_LST_GENERATOR is defined.
26464 * include/grub/partition.h (grub_partition_map_register): Likewise.
26465 * include/grub/video.h (grub_video_register): Likewise.
26466
1c8f0f8d
JM
264672010-06-12 Javier Martín <lordhabbit@gmail.com>
26468
26469 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
26470
a6085973
TS
264712010-06-12 Thomas Schmitt <scdbackup@gmx.net>
26472
26473 * util/grub-mkrescue.in: Support --xorriso argument.
26474
25c56d29
VS
264752010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
26476
26477 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
26478 Suggested by: Thomas Schmitt.
26479
e03e4b24
VS
264802010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
26481
26482 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
26483 Suggested by: Thomas Schmitt.
26484
57711df6
VS
264852010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
26486
26487 custom.cfg support.
26488
26489 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
26490 * util/grub.d/41_custom.in: New file.
26491
ee62c427
CW
264922010-06-12 Colin Watson <cjwatson@ubuntu.com>
26493
26494 * util/grub-mkrescue.in (make_image): Remove sh module, which has
26495 been merged back into normal.
26496
283af07a
CW
264972010-06-11 Colin Watson <cjwatson@ubuntu.com>
26498
26499 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
26500 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
26501
56a0d956
CW
265022010-06-11 Colin Watson <cjwatson@ubuntu.com>
26503
26504 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
26505 when generating manual pages.
26506 * docs/man/grub-bin2h.h2m: New file.
26507 * docs/man/grub-editenv.h2m: New file.
26508 * docs/man/grub-fstest.h2m: New file.
26509 * docs/man/grub-install.h2m: New file.
26510 * docs/man/grub-macho2img.h2m: New file.
26511 * docs/man/grub-mkconfig.h2m: New file.
26512 * docs/man/grub-mkdevicemap.h2m: New file.
26513 * docs/man/grub-mkfont.h2m: New file.
26514 * docs/man/grub-mkimage.h2m: New file.
26515 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
26516 * docs/man/grub-mkrelpath.h2m: New file.
26517 * docs/man/grub-mkrescue.h2m: New file.
26518 * docs/man/grub-ofpathname.h2m: New file.
26519 * docs/man/grub-pe2elf.h2m: New file.
26520 * docs/man/grub-probe.h2m: New file.
26521 * docs/man/grub-reboot.h2m: New file.
26522 * docs/man/grub-script-check.h2m: New file.
26523 * docs/man/grub-set-default.h2m: New file.
26524 * docs/man/grub-setup.h2m: New file.
26525
3a37e322
VS
265262010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
26527
26528 Use FOR_* macros instead of *_iterate whenever possible.
26529
26530 * commands/handler.c: Removed.
26531 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
26532 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
26533 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
26534 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
26535 (grub_probe_SOURCES): Remove kern/parser.c.
26536 (util/grub-script-check.c_DEPENDENCIES): Removed.
26537 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
26538 and grub_script_check_init.c.
26539 (grub_script_check_init.lst): Removed.
26540 (grub_script_check_init.h): Likewise.
26541 (grub_script_check_init.c): Likewise.
26542 (pkglib_MODULES): Remove handler.mod and sh.mod.
26543 (handler_mod_SOURCES): Removed.
26544 (handler_mod_CFLAGS): Likewise.
26545 (handler_mod_LDFLAGS): Likewise.
26546 (normal_mod_SOURCES): Remove normal/handler.c.
26547 Add script/main.c, script/script.c, script/execute.c,
26548 script/function.c, script/lexer.c, grub_script.tab.c
26549 and grub_script.yy.c.
26550 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
26551 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26552 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
26553 (grub_setup_SOURCES): Remove kern/parser.c.
26554 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
26555 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
26556 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
26557 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26558 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26559 (grub_setup_SOURCES): Remove kern/parser.c.
26560 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
26561 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
26562 * include/grub/command.h (grub_command_iterate): Removed.
26563 (FOR_COMMANDS): New macro.
26564 * include/grub/dl.h (grub_dl): New member next.
26565 (grub_dl_iterate): Removed.
26566 (grub_dl_head): New variable declaration.
26567 (FOR_DL_MODULES): New macro.
26568 * include/grub/fs.h: Include list.h.
26569 (grub_fs): Make next first element.
26570 (grub_fs_list): New variable declaration.
26571 (grub_fs_register): Make inline.
26572 (grub_fs_unregister): Likewise.
26573 (grub_fs_iterate): Removed.
26574 (FOR_FILESYSTEMS): New macro.
26575 * include/grub/handler.h: Removed.
26576 * include/grub/list.h (grub_list_hook_t): Removed.
26577 (grub_list_test_t): Likewise.
26578 (grub_list_pop): Likewise.
26579 (grub_list_iterate): Likewise.
26580 (grub_list_insert): Likewise.
26581 (FOR_LIST_ELEMENTS): New macro.
26582 * include/grub/parser.h (grub_parser_class): Removed.
26583 (grub_parser_register): Likewise.
26584 (grub_parser_unregister): Likewise.
26585 (grub_parser_get_current): Likewise.
26586 (grub_parser_set_current): Likewise.
26587 (grub_register_rescue_parser): Likewise.
26588 (grub_rescue_parse_line): New function.
26589 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
26590 * include/grub/script_sh.h (grub_script_function_list): New variable
26591 declaration.
26592 (FOR_SCRIPT_FUNCTIONS): New macro.
26593 (grub_script_function_iterate): Removed.
26594 (grub_normal_parse_line): New prototype.
26595 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
26596 (FOR_DISABLED_TERM_INPUTS): Likewise.
26597 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
26598 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
26599 * include/grub/video.h (grub_video_adapter): Move 'next' to first
26600 element.
26601 (grub_video_register): Inline.
26602 (grub_video_unregister): Likewise.
26603 (grub_video_adapter_list): New variable declaration.
26604 (grub_video_iterate): Removed.
26605 (FOR_VIDEO_ADAPTERS): New macro.
26606 * kern/dl.c (grub_dl_list): Removed. All users updated.
26607 (grub_dl_iterate): Removed.
26608 * kern/fs.c (grub_fs_list): Make global.
26609 (grub_fs_register): Removed.
26610 (grub_fs_unregister): Likewise.
26611 (grub_fs_iterate): Likewise.
26612 * kern/handler.c: Removed.
26613 * kern/list.c (grub_list_pop): Removed.
26614 (grub_list_iterate): Likewise.
26615 (grub_list_insert): Likewise.
26616 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
26617 (grub_prio_list_insert): Don't use grub_list_insert.
26618 * kern/main.c (grub_register_rescue_parser): Don't call
26619 grub_register_rescue_parser.
26620 * kern/parser.c (grub_parser_class): Removed.
26621 (grub_parser_execute): Use grub_rescue_parse_line.
26622 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
26623 (grub_rescue_parser): Removed.
26624 (grub_register_rescue_parser): Likewise.
26625 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
26626 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
26627 (grub_auth_check_authentication): Likewise.
26628 * normal/completion.c (iterate_command): Removed.
26629 (grub_normal_do_completion): Use FOR_COMMANDS.
26630 * normal/handler.c: Removed.
26631 * normal/main.c (read_config_file): Remove parser changing.
26632 (grub_normal_execute): Don't call read_handler_list.
26633 (grub_normal_read_line_real): Statically allocate prompt.
26634 (grub_cmdline_run): Use grub_normal_parse_line.
26635 (GRUB_MOD_FINI): Don't call free_handler_list.
26636 * normal/menu_entry.c (run): Likewise.
26637 * script/function.c (grub_script_function_list): Make global.
26638 (grub_script_function_iterate): Removed.
26639 * script/main.c (grub_normal_parse_line): Make global.
26640 (grub_sh_parser): Removed.
26641 (GRUB_MOD_INIT): Likewise.
26642 (GRUB_MOD_FINI): Likewise.
26643 * tests/lib/functional_test.c (grub_functional_test): Use
26644 FOR_LIST_ELEMENTS.
26645 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
26646 (grub_test_run): Use FOR_LIST_ELEMENTS.
26647 * tests/lib/unit_test.c (main): Likewise.
26648 * util/deviceiter.c (grub_util_iterate_devices): Don't use
26649 grub_list_pop.
26650 * util/grub-fstest.c (grub_term_input_class): Removed.
26651 (grub_term_output_class): Likewise.
26652 * util/grub-probe.c: Likewise.
26653 * util/i386/pc/grub-setup.c: Likewise.
26654 * util/sparc64/ieee1275/grub-setup.c: Likewise.
26655 * util/grub-script-check.c (main): Don't call grub_init_all and
26656 grub_fini_all.
26657 * video/video.c (grub_video_adapter_list): Make global.
26658 (grub_video_register): Removed.
26659 (grub_video_unregister): Likewise.
26660 (grub_video_iterate): Likewise.
26661
6289c3a7
VS
266622010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
26663
26664 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
26665 reported by Henrique Ferreiro.
26666
91460247
RM
266672010-06-09 Robert Millan <rmh@gnu.org>
26668
26669 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
26670 ones, when both are available.
26671
0ea7c4f9
GS
266722010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
26673
26674 Make --version uniform and avoid hard-coded program name.
26675
26676 * util/grub-mkimage.c (main): Use `program_name' instead of
26677 hard-coded string.
26678 * util/i386/pc/grub-setup.c (main): Likewise.
26679 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
26680 * util/grub-install.in: Save the basename of $0 in $self, and use the
26681 latter in informational messages. Use the same format for --version
26682 as the binary programs.
26683 * util/grub-mkconfig.in: Likewise.
26684 * util/grub-mkrescue.in: Likewise.
26685 * util/grub-reboot.in: Likewise.
26686 * util/grub-set-default.in: Likewise.
26687 * util/i386/efi/grub-install.in: Likewise.
26688 * util/ieee1275/grub-install.in: Likewise.
26689 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
26690
e8a6f3b6
GS
266912010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
26692
26693 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
26694 embedding area. Use <= instead of == when checking for non-emptiness.
26695
f4d095d7
GS
266962010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
26697
26698 * configure.ac: Add `.' to the directories searched for unifont.
26699
50e532ca
CW
267002010-06-08 Colin Watson <cjwatson@ubuntu.com>
26701
26702 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
26703 grub_script.yy.h.
26704
d39f3dec
CW
267052010-06-08 Colin Watson <cjwatson@ubuntu.com>
26706
26707 * docs/grub.texi (History): Expand to cover GRUB 2.
26708 (Serial terminal): Refer to `terminal_input' and `terminal_output'
26709 commands, not `terminal'.
26710 (serial): Likewise.
26711 (terminal_input): New section.
26712 (terminal_output): New section.
26713 (uppermem): New section (stub).
26714 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
26715
6ef0ddb4
CW
267162010-06-08 Colin Watson <cjwatson@ubuntu.com>
26717
26718 * docs/grub.texi (Security): Menu entries are unrestricted by
26719 default, not restricted to superusers as I had previously thought.
26720 Reword to account for this.
26721
e0f4c438
CW
267222010-06-07 Colin Watson <cjwatson@ubuntu.com>
26723
26724 * kern/emu/misc.c (device_mapper_null_log): New function.
26725 (grub_device_mapper_supported): New function.
26726 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
26727 prototype.
26728 * kern/emu/hostdisk.c (find_partition_start): Check whether
26729 device-mapper is supported before trying to use it.
26730 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
26731
da908200
CW
267322010-06-07 Colin Watson <cjwatson@ubuntu.com>
26733
26734 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
26735 (File name syntax): Likewise.
26736 (help): --all is no longer supported in GRUB 2. Be more precise
26737 about pattern matching.
26738
fb55c3ac
CW
267392010-06-07 Colin Watson <cjwatson@ubuntu.com>
26740
26741 * normal/completion.c (grub_normal_do_completion): When completing
26742 arguments to "set" and the current word contains an equals sign,
26743 skip to after the equals sign before starting completion.
26744
258c2573
CW
267452010-06-07 Colin Watson <cjwatson@ubuntu.com>
26746
26747 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
26748
ee75515e
CW
267492010-06-07 Colin Watson <cjwatson@ubuntu.com>
26750
26751 * docs/grub.texi (Network): New section.
26752 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
26753 `(nd)' as in GRUB Legacy.
26754 (pxe_unload): New section.
26755
a6a700aa
CW
267562010-06-07 Colin Watson <cjwatson@ubuntu.com>
26757
26758 * docs/grub.texi (Troubleshooting): `echo' is not usually available
26759 in the rescue shell, so recommend using `set' instead. Thanks,
26760 Jordan Uggla.
26761
4003dd38
CW
267622010-06-07 Colin Watson <cjwatson@ubuntu.com>
26763
26764 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
26765 (password): New section.
26766 (password_pbkdf2): New section.
26767 (search): New section.
26768 (Security): New section.
26769 (Troubleshooting): New section, currently very incomplete.
26770 (Invoking grub-mkpasswd-pbkdf2): New section.
26771 (Internals): New section, currently very incomplete.
26772
e1cbcc40
CW
267732010-06-07 Colin Watson <cjwatson@ubuntu.com>
26774
26775 * util/grub.d/00_header.in: Add some more quoting (of
26776 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
26777 work again.
26778 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
26779
db8fa1ad
CW
267802010-06-07 Colin Watson <cjwatson@ubuntu.com>
26781
26782 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
26783 to `count', fixing variable shadowing that broke the -c option.
26784
267852010-06-05 Colin Watson <cjwatson@ubuntu.com>
71c38098
CW
26786
26787 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
26788 in case they contain spaces.
26789
f28a9212
CW
267902010-06-04 Colin Watson <cjwatson@ubuntu.com>
26791
26792 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
26793 "part_" to partmap module names, in line with grub-install.
26794 Reported by: Jindřich Makovička (Debian bug #584426).
26795
9cdfe32f
CW
267962010-06-04 Colin Watson <cjwatson@ubuntu.com>
26797
26798 * util/grub-mkimage.c: Make target-related error messages slightly
26799 more helpful; -O talks about "format". Explicitly point to the use
26800 of -O if no target is specified.
26801 Reported by: Didier Raboud (Debian bug #584415).
26802
795b593a
CW
268032010-06-03 Colin Watson <cjwatson@ubuntu.com>
26804
26805 * INSTALL: Document several build requirements for optional features
26806 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
26807
9d9b5833
GS
268082010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
26809
26810 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
26811 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
26812 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
26813
0819fec8
CW
268142010-06-02 Colin Watson <cjwatson@ubuntu.com>
26815
26816 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
26817 Thanks to Jordan Uggla for spotting this.
26818
49396b4f
VS
268192010-06-02 Aleš Nesrsta <starous@volny.cz>
26820
26821 Finally make USB usable.
26822
26823 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
26824 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
26825 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
26826 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
26827 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
26828 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
26829 (GRUB_OHCI_FSMPS): Likewise.
26830 (GRUB_OHCI_PERIODIC_START): Likewise.
26831 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
26832 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
26833 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
26834 (GRUB_OHCI_SET_PORT_RESET): Likewise.
26835 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
26836 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
26837 (grub_ohci_transaction): Likewise.
26838 (grub_ohci_transfer): Improve condition detection algorithms.
26839 Handle toggle property. Program the transactions correctly.
26840 Improve error handling. Various important fixups.
26841 (grub_ohci_portstatus): Put register writes in right order.
26842 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
26843 (grub_uhci_transfer): Don't show "failed" message on success.
26844 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
26845 array.
26846 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
26847 determine its size.
26848 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
26849 before initialization is completed. Use IN direction for empty
26850 transfers. Use last_trans and compute toggle.
26851 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
26852 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
26853 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
26854 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
26855 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
26856 (grub_usb_device): Increase toggle to 256.
26857 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
26858 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
26859 GRUB_USBMS_SUBCLASS_SFF8070.
26860 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
26861 (grub_scsi_inquiry): New member page and alloc_length.
26862 (grub_scsi_request_sense): New structure.
26863 (grub_scsi_request_sense_data): Likewise.
26864 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
26865 control.
26866 * disk/scsi.c (grub_scsi_request_sense): New function.
26867 (grub_scsi_test_unit_ready): Likewise.
26868 (grub_scsi_inquiry): Fill new fields.
26869 (grub_scsi_read_capacity): Likewise.
26870 (grub_scsi_read10): Add request sense at the end.
26871 (grub_scsi_read12): Likewise.
26872 (grub_scsi_write10): Likewise.
26873 (grub_scsi_write12): Likewise.
26874 (grub_scsi_open): Add Test Unit Ready.
26875 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
26876 Support additional subclasses. Con't clear halt yet. Activate the
26877 proper config. Calculate LUNs correctly.
26878 (grub_usbms_transfer): Various important fixups.
26879
268802010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
26881
26882 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
26883 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
26884 (grub_ohci_fini_hw): New function.
26885 (grub_ohci_restore_hw): Likewise.
26886 (GRUB_MOD_INIT(ohci)): Register preboot hook.
26887 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
26888 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
26889
268902010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
26891
26892 Dedicated DMA allocations.
26893
26894 * bus/pci.c (grub_memalign_dma32): New function
26895 (grub_dma_free): Likewise.
26896 (grub_dma_get_virt): Likewise.
26897 (grub_dma_get_phys): Likewise.
26898 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
26899 (grub_ohci_pci_iter): Use dma32_alloc.
26900 (grub_ohci_transfer): Likewise.
26901 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
26902 (grub_usb_bulk_readwrite): Likewise.
26903 * include/grub/pci.h: Add declarations.
26904
269052010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
26906
26907 CS5536 support.
26908
26909 * bus/cs5536.c: New file.
26910 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
26911 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
26912 (cs5536_mod_SOURCES): New variable.
26913 (cs5536_mod_CFLAGS): Likewise.
26914 (cs5536_mod_LDFLAGS): Likewise.
26915 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
26916 machine/pci.h.
26917 (kernel_img_SOURCES): Add bus/cs5536.c.
26918 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
26919 usb_keyboard.mod.
26920 (usb_mod_SOURCES): New variable.
26921 (usb_mod_CFLAGS): New variable.
26922 (usb_mod_LDFLAGS): New variable.
26923 (usbtest_mod_SOURCES): New variable.
26924 (usbtest_mod_CFLAGS): New variable.
26925 (usbtest_mod_LDFLAGS): New variable.
26926 (ohci_mod_SOURCES): New variable.
26927 (ohci_mod_CFLAGS): New variable.
26928 (ohci_mod_LDFLAGS): New variable.
26929 (usbms_mod_SOURCES): New variable.
26930 (usbms_mod_CFLAGS): New variable.
26931 (usbms_mod_LDFLAGS): New variable.
26932 (usb_keyboard_mod_SOURCES): New variable.
26933 (usb_keyboard_mod_CFLAGS): New variable.
26934 (usb_keyboard_mod_LDFLAGS): New variable.
26935 * include/grub/smbus.h: New file.
26936 * include/grub/cs5536.h: New file.
26937
0b35b2a9
CW
269382010-06-02 Colin Watson <cjwatson@ubuntu.com>
26939
26940 * util/grub.d/00_header.in: Add safety check to make sure that
26941 ${locale_dir} exists before trying to probe it.
26942
ca0afd5b
CW
269432010-06-02 Colin Watson <cjwatson@ubuntu.com>
26944
26945 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
26946 per the GNU Coding Standards; this is now too obscure to be worth
26947 documenting.
26948 (QNX): Likewise.
26949 (chainloader): Remove cross-reference to `SCO UnixWare'.
26950
1c41aa78
CW
269512010-06-02 Colin Watson <cjwatson@ubuntu.com>
26952
26953 * docs/grub.texi (Chain-loading): New section.
26954 (DOS/Windows): New section, borrowed from GRUB Legacy with details
26955 adjusted for GRUB 2.
26956 (SCO UnixWare): Likewise.
26957 (QNX): Likewise.
26958 (chainloader): Add reference to `Block list syntax'.
26959 (drivemap): New section.
26960 (parttool): New section.
26961
bb8ea0f5
CW
269622010-06-02 Colin Watson <cjwatson@ubuntu.com>
26963
26964 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
26965 the grub shell'.
26966 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
26967 (Installing GRUB using grub-install): Remove reference to the grub
26968 shell; mention `grub-mkimage' and `grub-setup' instead.
26969 (Invoking grub-install): Likewise.
26970 (Interface): Add reference to `Menu entry editor'.
26971 (serial): Remove `--device' option.
26972
288dd6ed
CW
269732010-06-02 Colin Watson <cjwatson@ubuntu.com>
26974
26975 * docs/grub.texi (Configuration): New section, documenting
26976 configuration file generation using grub-mkconfig. I've left a slot
26977 for documenting the full shell scripting format but have not yet
26978 started on writing that up.
26979 (Invoking grub-mkconfig): New section.
26980
34c9f0e9
CW
269812010-06-02 Colin Watson <cjwatson@ubuntu.com>
26982
26983 * docs/grub.texi (direntry): Remove grub-terminfo reference.
26984 (GNU GRUB manual): Likewise.
26985 (General commands): Update description of `terminfo' for GRUB 2.
26986
9121567e
CW
269872010-06-02 Colin Watson <cjwatson@ubuntu.com>
26988
26989 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
26990 (GRUB_MOD_INIT): Fix capitalisation.
26991 * docs/grub.texi (Command-line and menu entry commands): Document
26992 gettext and gptsync commands.
26993
ab631611
CW
269942010-06-02 Colin Watson <cjwatson@ubuntu.com>
26995
26996 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
26997 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
26998
bde4a9ac
CW
269992010-06-01 Colin Watson <cjwatson@ubuntu.com>
27000
27001 Add btrfs probing support, currently only in the single-device case.
27002
27003 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
27004 function.
27005 (grub_guess_root_device): Call find_root_device_from_mountinfo
27006 before looking in /dev.
27007
b1d17e10
VS
270082010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
27009
27010 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
27011 GRUB_DISK_SIZE_UNKNOWN.
27012 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
27013
dfbfe004
JS
270142010-05-31 Jiro SEKIBA <jir@unicus.jp>
27015
27016 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
27017 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
27018 corrupted or not synced properly.
27019
c2ffc8e9
VS
270202010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
27021
27022 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
27023 Reported by: Seth Goldberg.
27024
56293166
VS
270252010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
27026
27027 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
27028 addition of dest.
27029 Reported by: Seth Goldberg.
27030
7620e7de
VS
270312010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
27032
27033 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
27034 Reported by: Seth Goldberg.
27035
c837af3f
VS
270362010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
27037
27038 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
27039 64-bit address as signed on MIPS.
27040
c7c75cf4
CW
270412010-05-28 Colin Watson <cjwatson@ubuntu.com>
27042
27043 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
27044 to the empty string.
27045
fa4b8490
BC
270462010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
27047
27048 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
27049
27050 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
27051 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
27052 * kern/misc.c (__enable_execute_stack): Disable on
27053 GRUB_MACHINE_EMU.
27054
a33075b9
CW
270552010-05-28 Colin Watson <cjwatson@ubuntu.com>
27056
27057 Make grub-probe work with symbolic links under /dev/mapper as well
27058 as with real block devices. The Linux world seems to be (at best)
27059 in transition here, and GRUB shouldn't get caught in the middle.
27060
27061 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
27062 /dev/mapper.
27063
d8708134
CW
270642010-05-27 Colin Watson <cjwatson@ubuntu.com>
27065
27066 * util/grub-script-check.c (main): Ensure defined behaviour on empty
27067 input files (in which case exit zero).
27068
db2102a0
CW
270692010-05-27 Colin Watson <cjwatson@ubuntu.com>
27070
27071 * kern/emu/misc.c (canonicalize_file_name): realpath can still
27072 return NULL for various reasons even if it has a maximum-length
27073 buffer: for example, there might be a symlink loop, or the path
27074 might exceed PATH_MAX. If this happens, return NULL.
27075
5fdba519
RM
270762010-05-27 Robert Millan <rmh@gnu.org>
27077
27078 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
27079 partmap module to handle cross-partmap setups.
27080 Reported by Orestes Mas. Gràcies!
27081
d1d368e4
CW
270822010-05-27 Colin Watson <cjwatson@ubuntu.com>
27083
27084 * util/grub-mkrescue.in: Initialise override_dir rather than
27085 assuming that it's unset or empty in the environment.
27086
95ac3c73
GS
270872010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
27088
27089 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
27090 variable index into p_index to suppress a warning with -Wshadow.
27091
7d8c0213
BC
270922010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
27093
27094 * INSTALL: Added flex >= 2.5.35 requirement.
27095
db4d5813
VS
270962010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
27097
27098 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
27099
f24f4300
VS
271002010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
27101
27102 cmostest support.
27103
27104 * commands/i386/cmostest.c: New file.
27105 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
27106 (cmostest_mod_SOURCES): New variable.
27107 (cmostest_mod_CFLAGS): Likewise.
27108 (cmostest_mod_LDFLAGS): Likewise.
27109 * conf/i386-pc.rmk: Likewise.
27110 * docs/grub.texi (Vendor power-on keys): New section.
27111 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
27112 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
27113 and GRUB_BUTTON_CMOS_ADDRESS.
27114 * util/grub.d/00_header.in: Handle powering-on by separate button.
27115
ad603f61
VS
271162010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
27117
27118 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
27119 Removed drawing_scrollbar argument. All users updated
27120 Fixes #29792.
27121 Reported by Jo Shields
27122
3ecb080a
VS
271232010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
27124
27125 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
27126 buffer since gfxterm handles double repaint.
27127
5f2316c1
VS
271282010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
27129
27130 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
27131 * term/gfxterm.c (real_scroll): Likewise.
27132
9a25f885
VS
271332010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
27134
27135 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
27136 before calling BIOS.
27137
39fbb79a
VS
271382010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
27139
27140 * include/grub/i18n.h: Always enable grub_gettext.
27141
228cfa97
VS
271422010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
27143
27144 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
27145 partition naming style.
27146
21717c8f
CW
271472010-05-21 Colin Watson <cjwatson@ubuntu.com>
27148
27149 * util/grub-mkconfig.in: Fix handling of -o so that it works when
27150 not the first option.
27151
c0f48e65
CW
271522010-05-20 Colin Watson <cjwatson@ubuntu.com>
27153
27154 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
27155
96779aec
CW
271562010-05-20 Colin Watson <cjwatson@ubuntu.com>
27157
27158 * util/misc.c: Move inclusion of <limits.h> to ...
27159 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
27160
fa9d256e
GS
271612010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
27162
27163 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
27164 Fix merge error in NetBSD code.
27165 (find_partition_start) [__NetBSD__]: Likewise.
27166
123b7a85
BC
271672010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
27168
27169 Fix grub-mkrescue usage unit testing.
27170
27171 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
27172
74276c0d
CF
271732010-05-18 Christian Franke <franke@computer.org>
27174
27175 * util/grub.d/10_windows.in: Use path names instead of
27176 drive letters to prevent warning from Cygwin 1.7.
27177 Add drivemap command to menuentry if needed.
27178
c4f7b523
ST
271792010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
27180
27181 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
27182 gnumach and gnumach.gz.
27183
95b97950
VS
271842010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
27185
27186 * include/grub/i18n.h (gettext): Inline instead of using #define.
27187 (grub_gettext): Likewise.
27188 (_): Likewise.
27189
01b8d2d7
VS
271902010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
27191
27192 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
27193 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
27194 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
27195 (main): Add a slash after pkglibdirroot.
27196
654e1d1e
VS
271972010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
27198
27199 * util/grub-install.in: Add missing "in" keyword.
27200
26966aeb
VS
272012010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
27202
27203 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
27204 Reported by: Seth Goldberg.
27205
75006747
VS
272062010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
27207
27208 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
27209
74cbf5bd
CW
272102010-05-18 Colin Watson <cjwatson@ubuntu.com>
27211
27212 * configure.ac: Check for Linux device-mapper support.
27213
27214 * util/hostdisk.c (device_is_mapped): New function.
27215 (find_partition_start): New function, partly broken out from
27216 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
27217 device-mapper support added.
27218 (linux_find_partition): Use find_partition_start.
27219 (convert_system_partition_to_system_disk): Add `st' argument.
27220 Support Linux /dev/mapper/* devices if device-mapper support is
27221 available; only DM-RAID devices are understood at present.
27222 (find_system_device): Add `st' argument. Pass it to
27223 convert_system_partition_to_system_disk.
27224 (grub_util_biosdisk_get_grub_dev): Pass stat result to
27225 find_system_device and convert_system_partition_to_system_disk. Use
27226 find_partition_start.
27227
27228 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
27229 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
27230 * util/deviceiter.c [__linux__]: Define MINOR.
27231 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
27232 * util/mkdevicemap.c (grub_putchar): New function.
27233 (grub_getkey): New function.
27234 (grub_refresh): New function.
27235 (main): Set debug=all if -v -v is used.
27236
355b51e9
CW
272372010-05-18 Colin Watson <cjwatson@ubuntu.com>
27238
27239 Fix build with non-GNU libcs.
27240
27241 * util/misc.c (canonicalize_file_name): Move to ...
27242 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
27243 grub_make_system_path_relative_to_its_root.
27244
7fb5c25f
CW
272452010-05-18 Colin Watson <cjwatson@ubuntu.com>
27246
27247 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
27248 we handle finding grub-mkimage. Default to finding grub-mkimage in
27249 ${bindir} with program_transform_name applied, and provide a
27250 --grub-mkimage option to override this.
27251
1d3293d6
VS
272522010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
27253
27254 Remove grub-mkisofs.
27255
27256 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
27257 (grub_mkisofs_SOURCES): Removed.
27258 (grub_mkisofs_CFLAGS): Removed.
27259 * util/mkisofs/defaults.h: Removed.
27260 * util/mkisofs/eltorito.c: Likewise.
27261 * util/mkisofs/exclude.h: Likewise.
27262 * util/mkisofs/hash.c: Likewise.
27263 * util/mkisofs/include/: Likewise.
27264 * util/mkisofs/include/fctldefs.h: Likewise.
27265 * util/mkisofs/include/mconfig.h: Likewise.
27266 * util/mkisofs/include/prototyp.h: Likewise.
27267 * util/mkisofs/include/statdefs.h: Likewise.
27268 * util/mkisofs/iso9660.h: Likewise.
27269 * util/mkisofs/joliet.c: Likewise.
27270 * util/mkisofs/match.c: Likewise.
27271 * util/mkisofs/match.h: Likewise.
27272 * util/mkisofs/mkisofs.c: Likewise.
27273 * util/mkisofs/mkisofs.h: Likewise.
27274 * util/mkisofs/msdos_partition.h: Likewise.
27275 * util/mkisofs/multi.c: Likewise.
27276 * util/mkisofs/name.c: Likewise.
27277 * util/mkisofs/rock.c: Likewise.
27278 * util/mkisofs/tree.c: Likewise.
27279 * util/mkisofs/write.c: Likewise.
27280
5dde9afe
VS
272812010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
27282
27283 Unify grub-mkimage accross platforms.
27284
27285 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
27286 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
27287 (grub_mkelfimage_SOURCES): Removed.
27288 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
27289 (util/grub-mkimage.c_DEPENDENCIES): .. this.
27290 (bin_UTILITIES): Add grub-mkimage.
27291 (grub_mkimage_SOURCES): New variable.
27292 (kernel_img_HEADERS): Remove machine/kernel.h.
27293 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
27294 (pkglib_PROGRAMS): Add kernel.img.
27295 (kernel_img_HEADERS): Add machine/kernel.h.
27296 (kernel_img_FORMAT): Removed.
27297 (bin_UTILITIES): Remove grub-mkimage.
27298 (grub_mkimage_SOURCES): Removed.
27299 (grub_mkimage_CFLAGS): Likewise.
27300 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
27301 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
27302 (pkglib_PROGRAMS): Add kernel.img.
27303 (bin_UTILITIES): Remove grub-mkimage.
27304 (grub_mkimage_SOURCES): Removed.
27305 (grub_mkimage_CFLAGS): Likewise.
27306 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
27307 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
27308 (pkglib_PROGRAMS): Add kernel.img.
27309 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
27310 (pkglib_PROGRAMS): Add kernel.img.
27311 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
27312 (grub_mkimage_SOURCES): Removed.
27313 (grub_mkimage_CFLAGS): Likewise.
27314 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
27315 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
27316 (pkglib_PROGRAMS): Add kernel.img.
27317 (bin_UTILITIES): Remove grub-mkimage.
27318 (grub_mkimage_SOURCES): Removed.
27319 (grub_mkimage_CFLAGS): Likewise.
27320 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
27321 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
27322 (grub_mkimage_SOURCES): Removed.
27323 (grub_mkimage_CFLAGS): Likewise.
27324 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
27325 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
27326 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
27327 (grub_pe32_optional_header): ... this.
27328 (grub_pe64_optional_header): ... and this. All users updated.
27329 (GRUB_PE32_PE32_MAGIC): Split into ..
27330 (GRUB_PE32_PE32_MAGIC): .. this.
27331 (GRUB_PE32_PE64_MAGIC): .. and this.
27332 (GRUB_PE32_SIGNATURE_SIZE): New definition.
27333 * include/grub/elf.h (PT_GNU_STACK): New definition.
27334 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
27335 * include/grub/i386/efi/kernel.h: Likewise.
27336 * include/grub/i386/kernel.h: Likewise.
27337 * include/grub/i386/pc/kernel.h: Likewise.
27338 * include/grub/i386/qemu/boot.h: Likewise.
27339 * include/grub/mips/kernel.h: Likewise.
27340 * include/grub/mips/qemu-mips/kernel.h: Likewise.
27341 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
27342 * include/grub/powerpc/kernel.h: Likewise.
27343 * include/grub/sparc64/ieee1275/boot.h: Likewise.
27344 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
27345 * include/grub/sparc64/kernel.h: Likewise.
27346 * include/grub/x86_64/efi/kernel.h: Likewise.
27347 * include/grub/x86_64/kernel.h: Likewise.
27348 * include/grub/offsets.h: New file.
27349 * include/grub/kernel.h (grub_module_info): Split into ...
27350 (grub_module_info32): ... this.
27351 (grub_module_info64): ... and this.
27352 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
27353 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
27354 (grub_boot_blocklist): Moved from here ...
27355 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
27356 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
27357 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
27358 * include/grub/types.h (grub_target_to_host16): Removed.
27359 (grub_target_to_host32): Likewise.
27360 (grub_target_to_host64): Likewise.
27361 (grub_host_to_target16): Likewise.
27362 (grub_host_to_target32): Likewise.
27363 (grub_host_to_target64): Likewise.
27364 (grub_host_to_target_addr): Likewise.
27365
27366 Support grub-mkrescue for efi, coreboot and qemu.
27367
27368 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
27369 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
27370 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
27371 * util/grub-mkrawimage.c: Moved from here ...
27372 * util/grub-mkimage.c: ... here. All users updated.
27373 (ALIGN_ADDR): Use image_target.
27374 (TARGET_NO_FIELD): New const.
27375 (image_target_desc): New type.
27376 (image_targets): New array.
27377 (grub_target_to_host64): Use image_target.
27378 (grub_target_to_host32): Likewise.
27379 (grub_target_to_host16): Likewise.
27380 (grub_host_to_target64): Likewise.
27381 (grub_host_to_target32): Likewise.
27382 (grub_host_to_target16): Likewise.
27383 (grub_host_to_target_addr): Likewise.
27384 (generate_image): Handle multiimage.
27385 (main): Require -O parameter. All users updated.
27386 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
27387 util/efi/grub-mkimage.c
27388 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
27389 New option --rom-directory.
27390 Use xorriso.
27391 * util/i386/efi/grub-mkimage.c: Removed.
27392 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
27393 (grub_target_to_host32): Likewise.
27394 (grub_target_to_host64): Likewise.
27395 (grub_host_to_target16): Likewise.
27396 (grub_host_to_target32): Likewise.
27397 (grub_host_to_target64): Likewise.
27398 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
27399 (grub_target_to_host32): Likewise.
27400 (grub_target_to_host64): Likewise.
27401 (grub_host_to_target16): Likewise.
27402 (grub_host_to_target32): Likewise.
27403 (grub_host_to_target64): Likewise.
27404
f4fc97d0
BC
274052010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
27406
27407 Source tree is reorganized for emu build.
27408
27409 * include/grub/util/console.h: Move from here...
27410 * include/grub/emu/console.h: ...to here.
27411 * include/grub/util/getroot.h: Move from here...
27412 * include/grub/emu/getroot.h: ...to here.
27413 * include/grub/util/hostdisk.h: Move from here...
27414 * include/grub/emu/hostdisk.h: ...to here.
27415 * util/console.c: Move from here...
27416 * kern/emu/console.c: ...to here.
27417 * util/getroot.c: Move from here...
27418 * kern/emu/getroot.c: ...to here.
27419 * util/grub-emu.c: Move from here...
27420 * kern/emu/main.c: ...to here.
27421 * util/hostdisk.c: Move from here...
27422 * kern/emu/hostdisk.c: ...to here.
27423 * util/hostfs.c: Move from here...
27424 * kern/emu/hostfs.c: ...to here.
27425 * util/mm.c: Move from here...
27426 * kern/emu/mm.c: ...to here.
27427 * util/pci.c: Move from here...
27428 * bus/emu/pci.c: ...to here.
27429 * util/sdl.c: Move from here...
27430 * video/emu/sdl.c: ...to here.
27431 * util/time.c: Move from here...
27432 * kern/emu/time.c: ...to here.
27433 * util/usb.c: Move from here...
27434 * bus/usb/emu/usb.c: ...to here.
27435
27436 * include/grub/emu/misc.h: New header for grub-emu functions.
27437 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
27438
27439 * conf/any-emu.rmk: Rule updates for above renames.
27440 * conf/common.rmk: Likewise.
27441 * conf/i386-pc.rmk: Likewise.
27442 * conf/i386-qemu.rmk: Likewise.
27443 * conf/mips.rmk: Likewise.
27444 * conf/sparc64-ieee1275.rmk: Likewise.
27445 * conf/x86-efi.rmk: Likewise.
27446
27447 * disk/lvm.h: #include updates for above renames.
27448 * util/grub-mkrelpath.c: Likewise.
27449 * util/grub-probe.c: Likewise.
27450 * util/i386/pc/grub-setup.c: Likewise.
27451 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27452 * kern/emu/console.c: Likewise.
27453 * kern/emu/getroot.c: Likewise.
27454 * kern/emu/hostdisk.c: Likewise.
27455 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
27456
27457 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
27458 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
27459 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
27460 * util/misc.c: Remove grub-emu functions.
27461
cced9145
VS
274622010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
27463
27464 Fix gfxmenu crash.
27465 Reported by: Thorsten Grützmacher.
27466
27467 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
27468 timeout hook.
27469 (circprog_set_property): Register and unregister timeout hook.
27470 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
27471 (label_destroy): Free template. and unregister hook.
27472 (label_set_state): New function.
27473 (label_set_property): Handle templates and hooks.
27474 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
27475 timeout hook.
27476 (progress_bar_set_property): Register and unregister timeout hook.
27477 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
27478 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
27479 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
27480 (update_timeout_visit): Removed.
27481 (update_timeouts): New function.
27482 (redraw_timeouts): Likewise.
27483 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
27484 (grub_gfxmenu_clear_timeout): Likewise.
27485 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
27486 (grub_gfxmenu_timeout_notify): Likewise.
27487 (grub_gfxmenu_timeout_notifications): New external variable.
27488 (grub_gfxmenu_timeout_register): New function.
27489 (grub_gfxmenu_timeout_unregister): Likewise.
27490
c6e5caab
VS
274912010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
27492
27493 Transform (broken) vga terminal into (working) vga video driver.
27494
27495 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
27496 video/i386/pc/vga.c.
27497 * include/grub/video.h (grub_video_driver_id):
27498 Add GRUB_VIDEO_DRIVER_VGA.
27499 * term/i386/pc/vga.c: Renamed to ...
27500 * video/i386/pc/vga.c: ...this
27501 (DEBUG_VGA): Removed.
27502 (CHAR_WIDTH): Likewise.
27503 (CHAR_HEIGHT): Likewise.
27504 (TEXT_WIDTH): Likewise.
27505 (TEXT_HEIGHT): Likewise.
27506 (DEFAULT_FG_COLOR): Likewise.
27507 (DEFAULT_BG_COLOR): Likewise.
27508 (colored_char): Likewise.
27509 (xpos): Likewise.
27510 (ypos): Likewise.
27511 (cursor_state): Likewise.
27512 (fg_color): Likewise.
27513 (bg_color): Likewise.
27514 (text_buf): Likewise.
27515 (page): Likewise.
27516 (font): Likewise.
27517 (framebuffer): New variable.
27518 (set_read_map): Disabled.
27519 (setup): New variable.
27520 (is_target): Likewise.
27521 (grub_vga_mod_init): Likewise.
27522 (grub_vga_mod_fini): Likewise.
27523 (check_vga_mem): Likewise.
27524 (write_char): Likewise.
27525 (write_cursor): Likewise.
27526 (scroll_up): Likewise.
27527 (grub_vga_putchar): Likewise.
27528 (grub_vga_getcharwidth): Likewise.
27529 (grub_vga_getwh): Likewise.
27530 (grub_vga_getxy): Likewise.
27531 (grub_vga_gotoxy): Likewise.
27532 (grub_vga_cls): Likewise.
27533 (grub_vga_setcolorstate): Likewise.
27534 (grub_vga_setcursor): Likewise.
27535 (grub_video_vga_init): New function.
27536 (grub_video_vga_setup): Likewise.
27537 (grub_video_vga_fini): Likewise.
27538 (update_target): Likewise.
27539 (grub_video_vga_blit_bitmap): Likewise.
27540 (grub_video_vga_blit_render_target): Likewise.
27541 (grub_video_vga_set_active_render_target): Likewise.
27542 (grub_video_vga_get_active_render_target): Likewise.
27543 (grub_video_vga_swap_buffers): Likewise.
27544 (grub_video_vga_set_palette): Likewise.
27545 (grub_video_vga_get_info_and_fini): Likewise.
27546 (grub_vga_term): Removed.
27547 (grub_video_vga_adapter): New variable.
27548 (GRUB_MOD_INIT): Register a video driver instead of terminal.
27549 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
27550
2bf61a98
VS
275512010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
27552
27553 * video/readers/jpeg.c: Indented.
27554
09ddcd11
VS
275552010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
27556
27557 Various jpeg cleanups.
27558
27559 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
27560 (grub_jpeg_decode_quan_table): Use sizeof.
27561 (grub_jpeg_decode_du): Use ARRAY_SIZE.
27562
e5507505
PH
275632010-05-05 Peter Hurley <No e-mail available> (tiny change)
27564
27565 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
27566 tables. Ignore non-last ac bit.
27567 (grub_jpeg_decode_quan_table): Likewise.
27568
7e720a9b
VS
275692010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
27570
27571 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
27572 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
27573 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
27574 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
27575 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
27576 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
27577
a7fc080b
VS
275782010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
27579
27580 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
27581 error.
27582
2bf6012d
VS
275832010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
27584
27585 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
27586
265d68cd
VS
275872010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
27588
27589 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
27590 condition.
27591
275922010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7dd5a111
VS
27593
27594 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
27595 part.
27596
265d68cd 275972010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9b058d52
VS
27598
27599 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
27600 pointers.
27601
265d68cd 276022010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25893831
VS
27603
27604 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
27605
d1b61374
CF
276062010-05-01 Christian Franke <franke@computer.org>
27607
27608 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
27609 Remove broken Cygwin path conversion.
27610 * util/misc.c: [__CYGWIN__] Add include and define.
27611 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
27612 for Cygwin 1.7.
27613 (make_system_path_relative_to_its_root): Simplify loop, replace early
27614 return by break.
27615 [__CYGWIN__] Add conversion to win32 path.
27616 Include "/" case in trailing slash removal.
27617
3558c6e9
VS
276182010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
27619
27620 * kern/main.c (grub_load_config): Fix copy-pasted comment.
27621 Reported by: Seth Goldberg
27622
f5f3ff93
VS
276232010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
27624
27625 * commands/help.c (grub_cmd_help): Fix a typo.
27626 Reported by: Seth Goldberg
27627
d8b5cd40
VS
276282010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
27629
27630 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
27631 name and add N_.
27632 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
27633 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
27634 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
27635 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
27636 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
27637 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
27638 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
27639 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
27640 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
27641 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
27642 * normal/context.c (GRUB_MOD_INIT): Likewise.
27643 * normal/main.c (GRUB_MOD_INIT): Likewise.
27644 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
27645 * term/serial.c (GRUB_MOD_INIT): Likewise.
27646 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
27647
88c14915
VS
276482010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
27649
27650 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
27651 extra == 0.
27652
165134bc
VS
276532010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
27654
27655 * commands/iorw.c: New file.
27656 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
27657 (iorw_mod_SOURCES): New variable.
27658 (iorw_mod_CFLAGS): Likewise.
27659 (iorw_mod_LDFLAGS): Likewise.
27660
c5ac9b32
VS
276612010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
27662
27663 Hotkey support
27664
27665 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
27666 * normal/main.c (hotkey_aliases): New variable.
27667 (grub_normal_add_menu_entry): Parse "--hotkey".
27668 * normal/menu_text.c (run_menu): Handle hotkeys.
27669
ce60689c
VS
276702010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
27671
27672 * kern/i386/coreboot/init.c (grub_machine_init): Call
27673 grub_machine_mmap_init on qemu.
27674
0359d006
VS
276752010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
27676
27677 * boot/i386/qemu/boot.S: Add a missing .code16.
27678
7819a456
VS
276792010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
27680
27681 Use LBIO on coreboot.
27682
27683 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
27684 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
27685 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
27686 New declaration.
27687 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
27688 grub_machine_mmap_init on coreboot.
27689 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
27690 GRUB_LINUXBIOS_MEMBER_LINK.
27691 (grub_machine_mmap_iterate): Fix declaration.
27692 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
27693
7210dca9
VS
276942010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
27695
27696 Split coreboot and multiboot ports.
27697
27698 * conf/i386-multiboot.rmk: New file.
27699 * configure.ac: Add multiboot port.
27700 * include/grub/i386/multiboot/boot.h: New file.
27701 * include/grub/i386/multiboot/console.h: Likewise.
27702 * include/grub/i386/multiboot/init.h: Likewise.
27703 * include/grub/i386/multiboot/kernel.h: Likewise.
27704 * include/grub/i386/multiboot/loader.h: Likewise.
27705 * include/grub/i386/multiboot/memory.h: Likewise.
27706 * include/grub/i386/multiboot/serial.h: Likewise.
27707 * include/grub/i386/multiboot/time.h: Likewise.
27708 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
27709 * loader/multiboot.c: Likewise.
27710 * loader/multiboot_mbi2.c: Likewise.
27711 * util/grub-mkrescue.in: Generate multiboot rescue.
27712
6f8aaf68
VS
277132010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
27714
3080f7a7
VS
27715 * kern/parser.c (grub_parser_execute): Cope with read-only config.
27716
277172010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
27718
27719 Merge handling of input and output terminals. Fix a hang.
6f8aaf68
VS
27720
27721 * commands/terminal.c (abstract_terminal): New struct.
27722 (handle_command): New function. Based on grub_cmd_terminal_input.
27723 (grub_cmd_terminal_input): Use handle_command.
27724 (grub_cmd_terminal_output): Use handle_command.
27725
a8ebb841
BC
277262010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
27727
27728 Fix comment handling.
27729
27730 * tests/grub_script_comments.in: New testcase.
27731 * conf/tests.rmk: Rules for new testcase.
27732 * script/yylex.l: Updated flex rules.
27733
bb06ba08
ST
277342010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
27735
27736 * docs/grub.texi (play): Document that zero pitches produce rests.
c76a1838
ST
27737 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
27738 if argc is 1.
bb06ba08 27739
cc9d2425
VS
277402010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
27741
27742 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
27743 autogen issues.
27744
460d8402
CF
277452010-04-26 Christian Franke <franke@computer.org>
27746
27747 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
27748 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
27749 (grub_get_prefix): Remove function.
27750 * util/grub-emu.c (main): Replace grub_get_prefix () call by
27751 make_system_path_relative_to_its_root ().
27752 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
27753
553c01f9
CF
277542010-04-24 Christian Franke <franke@computer.org>
27755
27756 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
27757 (kernel_img_LDFLAGS): Remove -static-libgcc.
27758
2aec1692
CF
277592010-04-24 Christian Franke <franke@computer.org>
27760
27761 * configure.ac: Do not CHECK_BSS_START_SYMBOL
27762 and CHECK_END_SYMBOL if grub-emu is built.
27763 Unset TARGET_OBJ2ELF if grub-emu is built
27764 without module support.
27765
f67dc308
JS
277662010-04-24 Jiro SEKIBA <jir@unicus.jp>
27767
27768 Nilfs2 support.
27769
27770 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
27771 (grub_fstest_SOURCES): Likewise.
27772 (pkglib_MODULES): Add nilfs2.mod.
27773 (nilfs2_mod_SOURCES): New variable.
27774 (nilfs2_mod_CFLAGS): Likewise.
27775 (nilfs2_mod_LDFLAGS): Likewise.
27776 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
27777 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
27778 * fs/nilfs2.c: New file.
27779
4ba8d354
VS
277802010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
27781
27782 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
27783 is not supported.
27784
0d2c20c6
GS
277852010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
27786
27787 Add grub-mkconfig support for NetBSD.
27788
27789 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
27790 * util/grub-mkconfig.in: export new NetBSD specific variables.
27791 * po/POTFILES-shell: added 10_netbsd.in.
27792 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
27793
bc4a2d83
BC
277942010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
27795
27796 Fix emu build with grub-emu-pci and grub-emu-modules.
27797
27798 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
27799 functions.
27800 * include/grub/libpciaccess.h: New file.
27801 * conf/any-emu.rmk: Update kernel headers for emu build.
27802
f48c87aa
VS
278032010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
27804
27805 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
27806
18959385
VS
278072010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
27808
27809 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
27810
0037de3f
VS
278112010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
27812
27813 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
27814 Retrieve chosen/bootpath if bootpath isn't hardcoded.
27815 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
27816 util/ieee1275/ofpath.c.
27817 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
27818 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
27819 * include/grub/sparc64/ieee1275/boot.h
27820 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
27821 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
27822 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
27823 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
27824 const char *.
27825 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
27826 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
27827 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
27828 install.
27829
38e55e90
GS
278302010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
27831
27832 * util/grub-mkconfig.in: Corrected two == equality tests.
27833 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
27834 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
27835 expect a number appended to it.
27836 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
27837 expects a number appended to it.
27838
a9e6ff28
VS
278392010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
27840
27841 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
27842
0b830b8f
VS
278432010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
27844
27845 * util/hostdisk.c (make_device_name): Change to new partition naming.
27846
0973daeb
VS
278472010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
27848
27849 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
27850
460d8402 278512010-04-17 Christian Franke <franke@computer.org>
ebfe7eb4
CF
27852
27853 * Makefile.in: Add missing localedir setting.
27854
0b456309
CW
278552010-04-14 Colin Watson <cjwatson@ubuntu.com>
27856
27857 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
27858 mistake in r2156. Noticed by Anthony Fok.
27859
27860 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
27861 @localedir@.
27862 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
27863
08f46d62
BC
278642010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
27865
27866 Fix a spurious, uninitialized variable warning.
27867
27868 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
27869 Initialize variable, shdr.
27870 (grub_freebsd_load_elfmodule): Likewise.
27871 (grub_freebsd_load_elf_meta): Likewise.
27872
8c4a72d4
BC
278732010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
27874
27875 Fix for escaped dollar in double quoted strings.
27876
27877 * script/yylex.l: Updated flex rules.
27878 * conf/tests.rmk: Rule for new testcase.
27879 * tests/grub_script_dollar.in: New testcase.
27880
ce44826e
CPE
278812010-04-13 Carles Pina i Estany <carles@pina.cat>
278822010-04-13 Colin Watson <cjwatson@ubuntu.com>
27883
27884 Enclose all translated strings in grub.cfg in single quotes, and
27885 escape them appropriately (Ubuntu bug #552921).
27886
27887 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
27888 * util/grub.d/10_hurd.in: Use it.
27889 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
27890 * util/grub.d/10_linux.in (linux_entry): Likewise.
27891
4b0cd8f8
VS
278922010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
27893
27894 Fix cygwin compilation.
27895
27896 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
27897 * include/grub/misc.h (__register_frame_info)
27898 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
27899 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
27900 * kern/misc.c (__register_frame_info)
27901 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
27902 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
27903
01fcf061
VS
279042010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
27905
27906 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
27907
5d04b11e
VS
279082010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
27909
27910 Unify libgcc processing.
27911
27912 * Makefile.in (kernel_img_LDFLAGS): New variable.
27913 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
27914 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
27915 overwriting.
27916 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
27917 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
27918 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
27919 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
27920 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
27921 overwriting. Remove -lgcc and -static-libgcc
27922 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
27923 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
27924 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
27925 (kernel_img_LDFLAGS): Append instead of overwriting.
27926 Remove -lgcc and -static-libgcc
27927 * conf/sparc64-ieee1275.rmk: Likewise.
27928 * include/grub/powerpc/libgcc.h: Move to ...
27929 * include/grub/libgcc.h: .. this.
27930 * include/grub/libgcc.h: Don't export most of the function on x86.
27931 (__bswapsi2): New export.
27932 (__bswapdi2): Likewise.
27933 * include/grub/mips/libgcc.h: Removed.
27934 * include/grub/sparc64/libgcc.h: Likewise.
27935
b7f3ac29
VS
279362010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
27937
27938 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
27939 disk_info_msg (conflicts with gettexting into languages with cases).
27940
2c7031b1
GS
279412010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
27942
27943 Add grub-probe support for NetBSD.
27944
27945 * util/getroot.c (find_root_device): Convert block device to
27946 character device on NetBSD.
27947 * util/probe.c (probe): Require character device on NetBSD.
27948 * util/hostdisk.c: NetBSD specific headers.
27949 (configure_device_driver): new function to tune device driver
27950 parameters (currently only for NetBSD floppy driver).
27951 (grub_util_biosdisk_open): NetBSD specific code (get disk size
27952 via disklabel ioctl).
27953 (open_device): call configure_device_driver on NetBSD.
27954 (convert_system_partition_to_system_disk): NetBSD specific code.
27955 (device_is_wholedisk): Likewise.
27956 (grub_util_biosdisk_get_grub_dev): Likewise.
27957 (make_device_name): Fixed a typo in bsd_part_str.
27958 * configure.ac: check for opendisk() and getrawpartition() on
27959 NetBSD and set LIBUTIL.
27960 * Makefile.in: add LIBUTIL to LIBS.
27961
f516290c
BC
279622010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
27963
27964 Documentation fix.
27965
27966 * util/grub-script-check.c: Better help message.
27967
d8dcc0df
BC
279682010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
27969
27970 Fix FreeBSD build.
27971
27972 * configure.ac: Flex version check.
27973 * conf/common.rmk: Add -Wno-error to sh.mod.
27974 * script/yylex.l: Remove all #pragma.
27975
6734334a
VS
279762010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
27977
27978 * include/grub/util/misc.h (canonicalise_file_name): Add missing
27979 prototype.
27980 Reported by: Seth Goldberg.
27981
daea6abd
VS
279822010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
27983
27984 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
27985 Rename "module" to "module2".
27986 Reported by: Seth Goldberg.
27987
f2fd9d2b
VS
279882010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
27989
27990 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
27991 EXPORT_FUNC.
27992 Reported by: Seth Goldberg.
27993
be124579
VS
279942010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
27995
27996 * lib/posix_wrap/locale.h: Add missing file.
27997 Reported by: Seth Goldberg.
27998
ef5da797
VS
279992010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
28000
28001 grub-emu module load support.
28002
28003 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
28004 NO_DYNAMIC_MODULES switched to this.
28005 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
28006 (CFLAGS): Likewise.
28007 * conf/any-emu.rmk: Generate symlist.
28008 (kernel_img_HEADERS): Add util/datetime.h.
28009 (kernel_img_HEADERS) [sdl]: Add sdl.h.
28010 (kernel_img_HEADERS) [libusb]: Add libusb.h.
28011 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
28012 kern/$(target_cpu)/cache.S.
28013 * configure.ac (grub-emu-modules): New option.
28014 * genmk.rb: Handle multiple source lists.
28015 * include/grub/sdl.h: New file.
28016 * include/grub/libusb.h: Likewise.
28017 * util/grub-emu.c (main): Hanle (host) root.
28018 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
28019 GRUB_ERR_UNKNOWN_DEVICE.
28020 * util/misc.c: Move mm functions to ...
28021 * util/mm.c: ... here. All users updated.
28022
47822096
VS
280232010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28024
28025 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
28026 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
28027 missing files.
28028 (maintainer-clean): Remove libgcrypt-grub.
28029
5d7e7445
VS
280302010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28031
28032 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
28033
25f4e252
EC
280342010-04-09 EFI Coder <eficoder@hotmail.com>
28035
28036 * normal/menu_text.c (print_message): Clean up the message and show
28037 the Fn information when on EFI
28038 * term/efi/console.c (grub_console_checkkey): Add F4 support.
28039
027de555
VS
280402010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28041
28042 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
28043 All users updated.
28044 * normal/crypto.c (read_crypto_list): Likewise.
28045 * normal/dyncmd.c (read_command_list): Likewise.
28046 * normal/term.c (read_terminal_list): Likewise.
28047 * normal/main.c (read_lists): Use explicit prefix.
28048 (read_lists_hook): Use read_lists.
28049 (grub_normal_execute): Likewise.
28050
47779711
VS
280512010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28052
28053 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
28054 Reported by: Thomas Schmitt.
28055 Add -no-emul-boot to grub-mkisofs parameters.
28056
1118c32e
VS
280572010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28058
28059 * font/font.c: Indented.
28060
7d652447
BC
280612010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
28062
28063 Elif support to GRUB script (by Deepak Vankadaru).
28064
28065 * tests/grub_script_if.in: New testcase.
28066 * conf/tests.rmk: Rule for new testcase.
28067 * script/parser.y: Grammar rules for elif.
28068
34bb22df
BC
280692010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
28070
28071 While and until loops support to GRUB script.
28072
28073 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
28074 (grub_script_create_cmdwhile): New function prototype.
28075 (grub_script_execute_cmdwhile): New function prototype.
28076 * script/execute.c (grub_script_execute_cmdwhile): New function.
28077 * script/parser.y (command): New commands.
28078 (whilecmd): New grammar rule.
28079 (untilcmd): New grammar rule.
28080 * script/script.c (grub_script_create_cmdwhile): New function.
28081 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
28082 function.
28083
28084 * tests/grub_script_while1.in: New testcase.
28085 * conf/tests.rmk: Rule for new testcase.
28086
e215d8e0
VS
280872010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28088
28089 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
28090 as *.jpg.
28091
d7c43ba1
MV
280922010-04-09 Mario Vazquez <mariovazq@gmail.com>
28093
28094 GRUB_BACKGROUND support.
28095
28096 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
28097 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
28098
d64795c0
VS
280992010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28100
28101 Load fonts and modules for gfxmenu in grub-mkconfig.
d7c43ba1 28102 Idea by: Mario Vazquez
d64795c0
VS
28103
28104 * util/grub.d/00_header.in: Load pf2 and image modules.
28105
f267f83a
VS
281062010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28107
28108 grub-mkconfig multiple terminal support.
28109
28110 * util/grub-mkconfig.in: Handle multiple terminals correctly.
28111 * util/grub.d/00_header.in: Likewise.
28112
b7841ceb
VS
281132010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28114
28115 * Makefile.in: Specify files explicitly instead of using $< and $@ since
28116 we use cd $(srcdir).
28117
df60998c
CW
281182010-04-08 Colin Watson <cjwatson@ubuntu.com>
28119
28120 * util/grub.d/10_linux.in: Only use the first word of
28121 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
28122 spaces in GRUB_DISTRIBUTOR.
28123 * util/grub.d/10_kfreebsd.in: Likewise.
28124 * util/grub.d/10_hurd.in: Likewise.
28125
fa09c82e
BC
281262010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
28127
14e18ae3 28128 Fix unit testing framework for Qemu 0.12.
fa09c82e
BC
28129
28130 * tests/util/grub-shell.in: Remove -serial stdio option.
28131
daf892b3
BC
281322010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
28133
28134 POSIX header file wrappers.
28135
28136 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
28137 equivalents.
28138 * lib/posix_wrap/ctype.h: Likewise.
28139 * lib/posix_wrap/errno.h: Likewise.
28140 * lib/posix_wrap/langinfo.h: Likewise.
28141 * lib/posix_wrap/limits.h: Likewise.
28142 * lib/posix_wrap/localcharset.h: Likewise.
28143 * lib/posix_wrap/stdint.h: Likewise.
28144 * lib/posix_wrap/stdio.h: Likewise.
28145 * lib/posix_wrap/stdlib.h: Likewise.
28146 * lib/posix_wrap/string.h: Likewise.
28147 * lib/posix_wrap/sys/types.h: Likewise.
28148 * lib/posix_wrap/unistd.h: Likewise.
28149 * lib/posix_wrap/wchar.h: Likewise.
28150 * lib/posix_wrap/wctype.h: Likewise.
28151 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
28152 (grub_script.yy.h): Likewise.
28153 * script/yylex.l: Remove POSIX emulation #defines.
28154 * Makefile.in (POSIX_CFLAGS): New variable.
28155 (GNULIB_UTIL_CFLAGS): Likewise.
28156
28157 Regexp support.
28158
28159 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
28160 (regexp_mod_SOURCES): New variable.
28161 (regexp_mod_CFLAGS): Likewise.
28162 (regexp_mod_LDFLAGS): Likewise.
28163 * commands/regexp.c: New file.
28164 * gnulib/regcomp.c: New file. Imported from gnulib.
28165 * gnulib/regex.c: Likewise.
28166 * gnulib/regex_internal.c: Likewise.
28167 * gnulib/regex_internal.h: Likewise.
28168 * gnulib/regexec.c: Likewise.
28169 * gnulib/regex.h: Likewise.
28170
974ac4f7
VS
281712010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
28172
28173 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
28174 unsupported video mode types.
28175
2622c3ff
VS
281762010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
28177
28178 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
28179
064cb524
VS
281802010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
28181
28182 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
28183 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
28184
a8c3b552
VS
281852010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
28186
28187 Remove unused grub_vga_get_font.
28188
28189 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
28190 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
28191
187bbe3d
GS
281922010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
28193
28194 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
28195 * include/grub/misc.h: Likewise.
28196
b9396631
GS
281972010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
28198
28199 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
28200 for which failure is fatal.
28201
50479feb
GS
282022010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
28203
28204 * util/grub-install.in: Use mkdir -p to create grub directory.
28205 * util/i386/efi/grub-install.in: Likewise.
28206 * util/ieee1275/grub-install.in: Likewise.
28207
b1654fdf
GS
282082010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
28209
28210 * Makefile.in (LEX): new variable.
28211
bd5a6415
GS
282122010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
28213
28214 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
28215 `=' and added double quotes on operands of this equality test.
28216
3db3a82b
VS
282172010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
28218
28219 * Makefile.in (uninstall): Remove a leftover debug echo.
28220 Reported by: Grégoire Sutre
28221
38023412
VS
282222010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
28223
28224 MIPS multiboot2 support.
28225
28226 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
28227 (multiboot2_mod_SOURCES): New variable.
28228 (multiboot2_mod_CFLAGS): Likewise.
28229 (multiboot2_mod_LDFLAGS): Likewise.
28230 (multiboot2_mod_ASFLAGS): Likewise.
28231 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
28232 definition.
28233 (MULTIBOOT_ENTRY_REGISTER): Likewise.
28234 (MULTIBOOT_MBI_REGISTER): Likewise.
28235 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
28236 (MULTIBOOT_ELF32_MACHINE): Likewise.
28237 (MULTIBOOT_ELF64_MACHINE): Likewise.
28238 * include/grub/mips/multiboot.h: New file.
28239 * include/grub/video.h (grub_video_driver_id): New type
28240 GRUB_VIDEO_DRIVER_SM712.
28241 (grub_video_get_info_and_fini): Export.
28242 (grub_video_get_palette): Likewise.
28243 (grub_video_get_driver_id): Likewise.
28244 * include/multiboot2.h: Resynced with spec.
28245 * loader/i386/multiboot.c: Moved from here ...
28246 * loader/multiboot.c: ... here. All users updated.
28247 (grub_multiboot_boot): Use platform-specific macros.
28248 * loader/i386/multiboot_elfxx.c: Moved from here ...
28249 * loader/multiboot_elfxx.c: ... here. All users updated.
28250 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
28251 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
28252 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
28253
47674667
VS
282542010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
28255
28256 Import gnulib argp module.
28257
28258 * gnulib/argp-ba.c: New file.
28259 * gnulib/argp-eexst.c: Likewise.
28260 * gnulib/argp-fmtstream.c: Likewise.
28261 * gnulib/argp-fmtstream.h: Likewise.
28262 * gnulib/argp-fs-xinl.c: Likewise.
28263 * gnulib/argp-help.c: Likewise.
28264 * gnulib/argp-namefrob.h: Likewise.
28265 * gnulib/argp-parse.c: Likewise.
28266 * gnulib/argp-pin.c: Likewise.
28267 * gnulib/argp-pv.c: Likewise.
28268 * gnulib/argp-pvh.c: Likewise.
28269 * gnulib/argp-version-etc.c: Likewise.
28270 * gnulib/argp-version-etc.h: Likewise.
28271 * gnulib/argp-xinl.c: Likewise.
28272 * gnulib/argp.h: Likewise.
28273
495442ed
VS
282742010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
28275
28276 * kern/device.c (grub_device_iterate): Clear errors after failed
28277 opening device.
28278
f9fd65df
VS
282792010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
28280
28281 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
28282 returned by firmware.
28283
af09641e
VS
282842010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
28285
28286 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
28287 compilation on coreboot and qemu
28288
016883a5
VS
282892010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
28290
28291 * include/multiboot2.h: Resync with spec.
28292
f97e1f7d
VS
282932010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
28294
28295 Multiboot2 tag support
28296
28297 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
28298 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
28299 Remove loader/multiboot_loader.c.
28300 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
28301 (grub_multiboot2_real_boot): Likewise.
28302 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
28303 (grub_get_multiboot_mmap_count): New proto.
28304 (grub_fill_multiboot_mmap): Likewise.
28305 (grub_multiboot_set_video_mode): Likewise.
28306 (grub_multiboot_set_console): Likewise.
28307 (grub_multiboot_load): Likewise.
28308 (grub_multiboot_load_elf): Likewise.
28309 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
28310 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
28311 * include/multiboot.h: Resynced with specification.
28312 * include/multiboot2.h: Resynced with specification.
28313 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
28314 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
28315 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
28316 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
28317 users updated.
28318 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
28319 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
28320 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
28321 Removed.
28322 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
28323 Moved from here...
28324 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
28325 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
28326 Moved from here...
28327 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
28328 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
28329 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
28330 All users updated.
28331 * loader/i386/multiboot_mbi2.c: New file.
28332
3506b90b
VS
283332010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
28334
28335 Resync with gnulib.
28336
28337 * Makefile.in (GNULIB_CFLAGS): New variable.
28338 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
28339 (grub_script_check_CFLAGS): New variable.
28340 * gnulib/alloca.h: Resync with gnulib.
28341 * gnulib/error.c: Likewise.
28342 * gnulib/error.h: Likewise.
28343 * gnulib/fnmatch.c: Likewise.
28344 * gnulib/fnmatch_loop.c: Likewise.
28345 * gnulib/getdelim.c: Likewise.
28346 * gnulib/getline.c: Likewise.
28347 * gnulib/getopt.c: Likewise.
28348 * gnulib/getopt1.c: Likewise.
28349 * gnulib/getopt_int.h: Likewise.
28350 * gnulib/gettext.h: Likewise.
28351 * gnulib/progname.c: Likewise.
28352 * gnulib/progname.h: Likewise.
28353
394a3120
GS
283542010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
28355
28356 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
28357 which is the case with --disabled-nls.
28358
28359 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
28360 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
28361 * util/misc.c: Likewise.
28362 * util/mkisofs/mkisofs.c: Likewise.
28363 * util/mkisofs/mkisofs.h: Likewise.
28364
969d1c78
VS
283652010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
28366
28367 Simplify Apple CC support.
28368
28369 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
28370 Add 0 byte at the end not to have a symbol with empty target.
28371 * mmap/i386/pc/mmap_helper.S: Likewise.
28372 * genmk.rb: Ignore errors 2030 and 2050.
28373 * kern/i386/pc/startup.S: Use LOCAL when possible.
28374
8d2977bb
BC
283752010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
28376
28377 Testcase and the fix for final semicolon on cmdline.
28378
28379 * tests/grub_script_final_semicolon.in: New testcase.
28380 * conf/tests.rmk: Rules for the new testcase.
28381 * script/parser.y: Grammar fix.
28382
a7bd6915
BC
283832010-03-26 BVK Chaitanya <bvk@localhost>
28384
28385 Blank lines testcase for GRUB script.
28386
28387 * tests/grub_script_blanklines.in: New testcase.
28388 * conf/tests.rmk: Rules for the new testcase.
28389
e4ff6628
VS
283902010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
28391
28392 Don't use __FILE__.
28393
28394 * genmk.rb: Add -DGRUB_FILE to all C targets.
28395 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
28396 * include/grub/list.h: Likewise.
28397 * include/grub/misc.h: Likewise.
28398 * include/grub/mm.h: Likewise.
28399 * include/grub/test.h: Likewise.
28400 * kern/mm.c: Likewise.
28401 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
28402
6a5cf6b6
VS
284032010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
28404
28405 Sunpc partitions support.
28406
28407 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
28408 (grub_fstest_SOURCES): Likewise.
28409 (pkglib_MODULES): Add part_sunpc.mod.
28410 (part_sunpc_mod_SOURCES): New variable.
28411 (part_sunpc_mod_CFLAGS): Likewise.
28412 (part_sunpc_mod_LDFLAGS): Likewise.
28413 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
28414 * partmap/sunpc.c: New file.
28415
746d9045
BC
284162010-03-26 BVK Chaitanya <bvk@localhost>
28417
28418 For loop support to GRUB script.
28419
28420 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
28421 (grub_script_create_cmdfor): New function prototype.
28422 (grub_script_execute_cmdfor): New function prototype.
28423 * script/execute.c (grub_script_execute_cmdfor): New function.
28424 * script/parser.y (command): New for command.
28425 (forcmd): New grammar rule.
28426 * script/script.c (grub_script_create_cmdfor): New function.
28427 * util/grub-script-check.c (grub_script_execute_cmdfor): New
28428 function.
28429 * tests/grub_script_for1.in: New testcase.
28430 * conf/tests.rmk: Rules for new testcase.
28431
18486b18
VS
284322010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
28433
28434 Nested partitions
28435
28436 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
28437 'partition' is NULL, grub_partition_get_start already does that.
28438 * commands/loadenv.c (check_blocklists): Likewise.
28439 (write_blocklists): Likewise.
28440 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
28441 (grub_fstest_SOURCES): Likewise.
28442 (pkglib_MODULES): Add part_bsd.mod.
28443 (part_bsd_mod_SOURCES): New variable.
28444 (part_bsd_mod_CFLAGS): Likewise.
28445 (part_bsd_mod_LDFLAGS): Likewise.
28446 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
28447 (grub_emu_SOURCES): Likewise.
28448 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28449 * include/grub/bsdlabel.h: New file.
28450 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
28451 'get_name'.
28452 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
28453 (grub_partition_map_list): New variable.
28454 (grub_partition_map_register): Inline.
28455 (grub_partition_map_unregister): Likewise.
28456 (FOR_PARTITION_MAPS): New macro.
28457 (grub_partition_map_iterate): Removed.
28458 (grub_partition_get_start): Handle nested partitions.
28459 * include/grub/msdos_partition.h: Remove bsd-related entries.
28460 (grub_pc_partition): Remove.
28461 * kern/disk.c (grub_disk_close): Free partition data.
28462 (grub_disk_adjust_range): Handle nested partitions.
28463 * kern/partition.c (grub_partition_map_probe): New function.
28464 (grub_partition_probe): Parse name to number, handle subpartitions.
28465 (get_partmap): New function.
28466 (grub_partition_iterate): Handle subpartitions.
28467 (grub_partition_get_name): Likewise.
28468 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
28469 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
28470 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
28471 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
28472 Set 'number'.
28473 (acorn_partition_map_probe): Remove.
28474 (acorn_partition_map_get_name): Likewise.
28475 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
28476 Set 'number'.
28477 Set 'index' to 0 since there can be only one partition entry per sector.
28478 (amiga_partition_map_probe): Remove.
28479 (amiga_partition_map_get_name): Likewise.
28480 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
28481 Set 'number'.
28482 Set 'offset' and 'index' to real positions of partitions.
28483 (apple_partition_map_probe): Remove.
28484 (apple_partition_map_get_name): Likewise.
28485 * partmap/bsdlabel.c: New file.
28486 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
28487 Set 'number'.
28488 Allocate 'data' so it can be correctly freed.
28489 Set 'index' to offset inside sector.
28490 (gpt_partition_map_probe): Remove.
28491 (gpt_partition_map_get_name): Likewise.
28492 * partmap/msdos.c (grub_partition_parse): Remove.
28493 (pc_partition_map_iterate): Don't force raw access.
28494 Set 'number'.
28495 Make 'ext_offset' a local variable.
28496 (pc_partition_map_probe): Remove.
28497 (pc_partition_map_get_name): Remove.
28498 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
28499 Set 'number'.
28500 (sun_partition_map_probe): Remove.
28501 (sun_partition_map_get_name): Likewise.
28502 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
28503 (grub_pcpart_type): Likewise.
28504 * util/hostdisk.c (open_device): Handle new numbering scheme.
28505 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
28506 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
28507 * util/grub-probe.c (probe_partmap): Handle nested paritions.
28508 * util/grub-install.in: Insert all subpartition modules.
28509 * util/ieee1275/grub-install.in: Likewise.
28510
a3940f88
AG
285112010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
28512
28513 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
28514 grammar.
28515
21b99926 285162010-03-24 Colin Watson <cjwatson@ubuntu.com>
28517
28518 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
28519
bed1d352
CW
285202010-03-21 Colin Watson <cjwatson@ubuntu.com>
28521
28522 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
28523 match where 'make install' puts them.
28524 * util/i386/efi/grub-install.in: Likewise.
28525
c9f58427
CW
285262010-03-19 Colin Watson <cjwatson@ubuntu.com>
28527
28528 * .bzrignore: Add gentrigtables, grub-script-check,
28529 grub_script_check_init.c, grub_script_check_init.h, and
28530 trigtables.c.
28531
f84afb27
VS
285322010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
28533
28534 * kern/parser.c: Indented.
28535
ed0e3d30
VS
285362010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
28537
28538 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
28539
0ea81d98
VS
285402010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
28541
28542 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
28543 alpha_mask_size == 0 case.
28544
0cdc2a09
BC
285452010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
28546
28547 GRUB shell lexer and parser improvements.
28548
28549 * conf/any-emu.rmk: Build rule updates.
28550 * conf/common.rmk: Likewise.
28551 * conf/i386-coreboot.rmk: Likewise.
28552 * conf/i386-efi.rmk: Likewise.
28553 * conf/i386-ieee1275.rmk: Likewise.
28554 * conf/i386-pc.rmk: Likewise.
28555 * conf/powerpc-ieee1275.rmk: Likewise.
28556 * conf/x86_64-efi.rmk: Likewise.
28557
28558 * configure.ac: Configure check for flex.
28559
28560 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
28561 types.
28562 (grub_lexer_param): Struct member updates.
28563 (grub_parser_param): Likewise.
28564 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
28565 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
28566 (grub_script_lexer_init): Prototype update.
28567 (grub_script_lexer_record_start): Likewise.
28568 (grub_script_lexer_record_stop): Likewise.
28569 (grub_script_lexer_yywrap): New function prototype.
28570 (grub_script_lexer_fini): Likewise.
28571 (grub_script_execute_argument_to_string): Removed by...
28572 (grub_script_execute_argument_to_argv): ...better version.
28573
28574 * script/execute.c (ROUND_UPTO): New macro.
28575 (grub_script_execute_cmdline): Out of memory fixes.
28576 (grub_script_execute_menuentry): Likewise.
28577 (grub_script_execute_argument_to_string): Removed. Update all
28578 users by...
28579 (grub_script_execute_argument_to_argv): ...better version.
28580 * script/function.c (grub_script_function_create): Use
28581 grub_script_execute_argument_to_argv instead of
28582 grub_script_execute_argument_to_string.
28583
28584 * script/lexer.c (check_varstate): Removed.
28585 (check_textstate): Removed.
28586 (grub_script_lexer_record_start): Likewise.
28587 (grub_script_lexer_record_stop): Likewise.
28588 (recordchar): Replaced with...
28589 (grub_script_lexer_record): ...new function.
28590 (nextchar): Removed.
28591 (grub_script_lexer_init): Rewritten.
28592 (grub_script_yylex): Rewritten.
28593 (append_newline): New function.
28594 (grub_script_lexer_yywrap): New function.
28595 (grub_script_lexer_fini): New function.
28596 (grub_script_yyerror): Sets error flag.
28597
28598 * script/yylex.l: New file.
28599 (grub_lexer_yyfree): Wrapper for flex yyffre.
28600 (grub_lexer_yyalloc): Likewise.
28601 (grub_lexer_yyrealloc): Likewise.
28602 * script/parser.y: Refactored.
28603
28604 * script/script.c (grub_script_arg_add): Out of memory fixes.
28605 (grub_script_add_arglist): Likewise.
28606 (grub_script_create_cmdline): Likewise.
28607 (grub_script_create_cmdmenu): Likewise.
28608 (grub_script_add_cmd): Likewise.
28609 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
28610 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
28611 unnecessary code.
28612
28613 * tests/grub_script_echo1.in: New testcase.
28614 * tests/grub_script_vars1.in: New testcase.
28615 * tests/grub_script_echo_keywords.in: New testcase.
28616
1d63a066
VS
286172010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
28618
28619 Remove some redundancy in build system.
28620
28621 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
28622 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
28623 (TARGET_LDFLAGS): Add -nostdlib.
28624 (TARGET_IMG_LDFLAGS): Likewise.
28625 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
28626 anything since mmap isn't available.
28627 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
28628 Add util/time.c.
28629 (pkglib_MODULES): Remove reboot.mod.
28630 (reboot_mod_SOURCES): Removed.
28631 (reboot_mod_CFLAGS): Likewise.
28632 (reboot_mod_LDFLAGS): Likewise.
28633 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
28634 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
28635 (DEFSYMFILES): Add kernel_syms.lst.
28636 (kernel_img_HEADERS): Add common headers.
28637 (symlist.c): New target.
28638 (kernel_syms.lst): Likewise.
28639 (pkglib_MODULES): Add memdisk.mod.
28640 (memdisk_mod_SOURCES): New variable.
28641 (memdisk_mod_CFLAGS): Likewise.
28642 (memdisk_mod_LDFLAGS): Likewise.
28643 (pkglib_MODULES): Add reboot.mod.
28644 (reboot_mod_SOURCES): New variable.
28645 (reboot_mod_CFLAGS): Likewise.
28646 (reboot_mod_LDFLAGS): Likewise.
28647 (pkglib_MODULES): Add date.mod.
28648 (date_mod_SOURCES): New variable.
28649 (date_mod_CFLAGS): Likewise.
28650 (date_mod_LDFLAGS): Likewise.
28651 (pkglib_MODULES): Add datehook.mod.
28652 (datehook_mod_SOURCES): New variable.
28653 (datehook_mod_CFLAGS): Likewise.
28654 (datehook_mod_LDFLAGS): Likewise.
28655 (pkglib_MODULES): Add lsmmap.mod.
28656 (lsmmap_mod_SOURCES): New variable.
28657 (lsmmap_mod_CFLAGS): Likewise.
28658 (lsmmap_mod_LDFLAGS): Likewise.
28659 (pkglib_MODULES): Add boot.mod.
28660 (boot_mod_SOURCES): New variable.
28661 (boot_mod_CFLAGS): Likewise.
28662 (boot_mod_LDFLAGS): Likewise.
28663 * conf/i386-coreboot.rmk: Removed redundant parts.
28664 * conf/i386-ieee1275.rmk: Likewise.
28665 * conf/i386-pc.rmk: Likewise.
28666 * conf/mips-yeeloong.rmk: Likewise.
28667 * conf/mips.rmk: Likewise.
28668 * conf/powerpc-ieee1275.rmk: Likewise.
28669 * conf/sparc64-ieee1275.rmk: Likewise.
28670 * conf/x86_64-efi.rmk: Likewise.
28671 * conf/i386-coreboot.rmk: Moved qemu parts ..
28672 * conf/i386-qemu.rmk: ... here
28673 * conf/i386-efi.rmk: Moved common parts to...
28674 * conf/x86-efi.rmk: ... here.
28675 * conf/i386.rmk: Added modules common to all x86 variants.
28676 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
28677 * disk/memdisk.c: Remove grub/machine/kernel.h.
28678 * gensymlist.sh.in: Include symbol.h.
28679 * hook/datehook.c: Correct module name.
28680 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
28681 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
28682 * include/grub/i386/efi/serial.h: New file.
28683 * include/grub/x86_64/efi/serial.h: Likewise.
28684 * util/time.c: Likewise.
28685 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
28686
463ac55f
CK
286872010-03-14 Colin King <colin.king@ubuntu.com>
286882010-03-14 Colin Watson <cjwatson@ubuntu.com>
28689
28690 Shrink the pre-partition-table part of boot.img by eight bytes.
28691
28692 * boot/i386/pc/boot.S (ERR): New macro.
28693 (chs_mode): Use ERR.
28694 (geometry_error): Likewise.
28695 (hd_probe_error): Remove. This is only used once, so we wrwite
28696 it inline instead.
28697 (read_error): Instead of printing read_error_string, just set up
28698 %si and fall through to ...
28699 (error_message): ... this new function, also used by ERR.
28700
08e46ede
CW
287012010-03-14 Colin Watson <cjwatson@ubuntu.com>
28702
28703 Speed up consecutive hostdisk operations on the same device.
28704
28705 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
28706 (grub_util_biosdisk_open): Initialise disk->data.
28707 (struct linux_partition_cache): New structure.
28708 (linux_find_partition): Cache partition start positions; these are
28709 expensive to compute on every read and write.
28710 (open_device): Cache open file descriptor in disk->data, so that we
28711 don't have to reopen it and flush the buffer cache for consecutive
28712 operations on the same device.
28713 (grub_util_biosdisk_close): New function.
28714 (grub_util_biosdisk_dev): Set `close' member.
28715
28716 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
28717 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
28718 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
28719 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
28720 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
28721
4a6d2d06
VS
287222010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
28723
28724 Compile parts of grub-emu as modules.
28725
28726 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
28727 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
28728 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
28729 (all-local): Add $(GRUB_EMU).
28730 (install-local): Install $(GRUB_EMU).
28731 (uninstall): Uninstall $(GRUB_EMU).
28732 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
28733 * kern/dl.c: Likewise.
28734 * commands/sleep.c: Not include machine/time.h.
28735 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
28736 (COMMON_CFLAGS): Likewise.
28737 (sbin_UTILITIES): Remove grub-emu.
28738 (grub_emu_SOURCES): Removed.
28739 (kernel_img_RELOCATABLE): New variable.
28740 (pkglib_PROGRAMS): Add kernel.img.
28741 (kernel_img_SOURCES): New variable
28742 (kernel_img_CFLAGS): Likewise.
28743 (kernel_img_LDFLAGS): Likewise.
28744 (TARGET_NO_STRIP): Likewise.
28745 (TARGET_NO_DYNAMIC_MODULES): Likewise.
28746 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
28747 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
28748 (grub-emu): New target.
28749 (GRUB_EMU): New variable.
28750 * configure.ac: Whitelist -emu as possible x86_64 architecture.
28751 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
28752 * loader/xnu.c: Likewise.
28753 * include/grub/pci.h: Likewise.
28754 * genemuinit.sh: New file.
28755 * genemuinitheader.sh: Likewise.
28756 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
28757 Support TARGET_NO_DYNAMIC_MODULES.
28758 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
28759 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
28760 * disk/loopback.c: Likewise.
28761 * font/font_cmd.c: Likewise.
28762 * partmap/acorn.c: Likewise.
28763 * partmap/amiga.c: Likewise.
28764 * partmap/apple.c: Likewise.
28765 * partmap/gpt.c: Likewise.
28766 * partmap/msdos.c: Likewise.
28767 * partmap/sun.c: Likewise.
28768 * parttool/msdospart.c: Likewise.
28769 * term/gfxterm.c: Likewise.
28770 * video/bitmap.c: Likewise.
28771 * video/readers/jpeg.c: Likewise.
28772 * video/readers/png.c: Likewise.
28773 * video/readers/tga.c: Likewise.
28774 * video/video.c: Likewise.
28775 * util/grub-emu.c (read_command_list): Removed.
28776 (main): Don't call util_init_nls.
28777 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
28778 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
28779
91fdd2ed
VS
287802010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
28781
28782 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
28783 date.mod, datehook.mod.
28784 (datetime_mod_SOURCES): New variable.
28785 (datetime_mod_CFLAGS): Likewise.
28786 (datetime_mod_LDFLAGS): Likewise.
28787 (date_mod_SOURCES): Likewise.
28788 (date_mod_CFLAGS): Likewise.
28789 (date_mod_LDFLAGS): Likewise.
28790 (datehook_mod_SOURCES): Likewise.
28791 (datehook_mod_CFLAGS): Likewise.
28792 (datehook_mod_LDFLAGS): Likewise.
28793 * conf/sparc64-ieee1275.rmk: Likewise.
28794 * lib/ieee1275/datetime.c: New file.
28795
873ccae6
VS
287962010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
28797
28798 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
28799 (ieee1275_fb_mod_SOURCES): New variable.
28800 (ieee1275_fb_mod_CFLAGS): Likewise.
28801 (ieee1275_fb_mod_LDFLAGS): Likewise.
28802 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
28803 New proto.
28804 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
28805 (HEAP_MAX_ADDR): Likewise.
28806 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
28807 type.
28808 Correct stop condition.
28809 (grub_ieee1275_devices_iterate): New function.
28810 * video/ieee1275.c: New file.
28811
601c97c0
VS
288122010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
28813
28814 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
28815
28816 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
28817 as scratch.
28818 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
28819 SCRATCH_PAD_DISKBOOT as scratch.
28820 (bootit): Pass Openfirmware pointer in %o4.
28821 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
28822 of 0x200000.
28823 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
28824 with util/grub-mkrawimage.c.
28825 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
28826 * include/grub/aout.h (AOUT_MID_SUN): New definition.
28827 (grub_aout_get_type) [GRUB_UTIL]: Removed.
28828 (grub_aout_load) [GRUB_UTIL]: Likewise.
28829 * include/grub/kernel.h (grub_modules_get_end): New proto.
28830 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
28831 (SCRATCH_PAD_BOOT): New definition.
28832 (SCRATCH_PAD_DISKBOOT): Likewise.
28833 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
28834 * include/grub/sparc64/ieee1275/ieee1275.h
28835 (grub_ieee1275_original_stack): New variable
28836 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
28837 New definition
28838 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
28839 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
28840 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
28841 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
28842 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
28843 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
28844 (grub_platform_image_format_t): New type.
28845 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
28846 * kern/main.c (grub_modules_get_end)
28847 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
28848 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
28849 (codestart): Switch stacks.
28850 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
28851 variable.
28852 (grub_heap_init): Use grub_modules_get_end.
28853 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
28854 stack.
28855 * util/grub-mkrawimage.c (generate_image): Support sparc64.
28856 (main): Likewise.
28857 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
28858
d68b491e
TG
288592010-03-14 Thorsten Glaser <tg@mirbsd.org>
28860
28861 * util/grub-mkrescue.in: Base ISO UUID on UTC.
28862
4e02ed50
MK
288632010-03-08 Matt Kraai <kraai@ftbfs.org>
28864
28865 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
28866 bug #559005).
28867
1f15fc1e
VS
288682010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
28869
28870 * genmoddep.awk: Output all missing symbols and not only first.
28871
fce5d8ff
VS
288722010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
28873
28874 * NEWS: Put the date of 1.98 release.
28875
d1e8a02f
VS
288762010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
28877
28878 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
28879 ft2build.h.
28880
696fd607
VS
288812010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
28882
28883 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
28884 completition in the middle of string.
28885
33e2e6f3
VS
288862010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
28887
28888 * util/grub-mkrescue.in: Use mktemp with explicit template.
28889
b1f6d291
VS
288902010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
28891
28892 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
28893
2ac227c7
VS
288942010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
28895
28896 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
28897 right pointer.
28898
8f9a632b
VS
288992010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
28900
28901 Fix FreeBSD compilation.
28902
28903 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
28904 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
28905
60b03859
VS
289062010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
28907
28908 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
28909
48a5a769
VS
289102010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
28911
28912 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
28913
3ab4bd77
VS
289142010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
28915
28916 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
28917
d116e0d8
RM
289182010-03-04 Robert Millan <rmh.grub@aybabtu.com>
28919
28920 Support relative image path in theme file.
28921
28922 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
28923 (image_set_property): Handle theme_dir and relative path.
28924
c7ef54aa
VS
289252010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
28926
28927 * configure.ac: Alias amd64 to x86_64.
28928
fcee14ed
VS
289292010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
28930
28931 * NEWS: mention multiboot on EFI.
28932
d0780363
VS
289332010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
28934
28935 * kern/main.c (grub_load_modules): Handle errors from init functions of
28936 embeded modules.
28937
41168ea4
VS
289382010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
28939
28940 * normal/autofs.c (autoload_fs_module): Handle errors.
28941
b54d93ac
VS
289422010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
28943
28944 Disable linux.mod on qemu-mips since it's not functional and leads
28945 to compilation failure.
28946
28947 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
28948 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
28949 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
28950 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
28951 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
28952 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
28953 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
28954 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
28955 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
28956 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
28957 Reported by: BVK Chaitanya
28958
fc8345da
JU
289592010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
28960
28961 * INSTALL: Add gettext as a dependency and add qemu to a new section
28962 "Prerequisites for make-check".
28963
4760f979
CF
289642010-03-04 Christian Franke <franke@computer.org>
28965
28966 * util/grub-pe2elf.c: Add missing include "progname.h".
28967
f209b5b2
VS
289682010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
28969
28970 * normal/crypto.c (read_crypto_list): Fix a typo.
28971 Reported by: Seth Goldberg.
28972
b4b7be98
VS
289732010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
28974
28975 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
f209b5b2 28976 Reported by: Seth Goldberg.
b4b7be98 28977
c0ee0385
VS
289782010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
28979
28980 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
28981 ascii.bitmaps.
28982
a8efbf64
VS
289832010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
28984
28985 * genmk.rb: Remove terminal*.lst in make clean.
f209b5b2 28986 Reported by: Seth Goldberg.
a8efbf64 28987
08dcd913
VS
289882010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
28989
28990 * util/i386/efi/grub-install.in: Copy gettext files.
28991
c4d0b332
VS
289922010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
28993
28994 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
28995
c6f2fe52
VS
289962010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
28997
28998 Wait for user entry basing on presence of output rather than on errors.
28999
29000 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
29001 (grub_install_newline_hook): Likewise.
29002 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
29003 * normal/menu.c (show_menu): Check line_counter to determine presence
29004 of output.
29005 * normal/term.c (grub_normal_line_counter): New variable.
29006 (grub_normal_get_line_counter): New function.
29007 (grub_install_newline_hook): Likewise.
29008
5382b1e4
VS
290092010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
29010
29011 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
29012
5519963b
VS
290132010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
29014
29015 * configure.ac: Update version to 1.98.
29016
72b28631
VS
290172010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
29018
29019 * util/grub.d/10_linux.in (linux_entry): Don't default to
29020 gfxpayload=keep if Linux doesn't support video handover.
29021
c140a180
VS
290222010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
29023
29024 Don't compile video modules on yeeloong since video subsystem is part
29025 of kernel.
29026
29027 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
29028 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
29029 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
29030 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
29031 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
29032 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
29033 * include/grub/bitmap_scale.h: Likewise.
29034 * include/grub/bufio.h: Likewise.
29035 * include/grub/font.h: Likewise.
29036 * include/grub/gfxterm.h: Likewise.
29037 * include/grub/video.h: Likewise.
29038 * include/grub/vbe.h: Don't include video_fb.h.
29039 * video/i386/pc/vbe.c: Include video_fb.h.
29040 * commands/i386/pc/vbetest.c: Include video.h.
29041
a0ca21c2
CW
290422010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
29043
29044 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
29045 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
29046 default entry if GRUB_SAVEDEFAULT=true. This allows using
29047 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
29048 saving a new default on every boot.
29049
4a8a763c
VS
290502010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
29051
29052 * normal/crypto.c (read_crypto_list): Fix a memory leak.
29053 * normal/term.c (read_terminal_list): Likewise.
29054 * normal/main.c (grub_normal_init_page): Likewise.
29055 (grub_normal_read_line_real): Likewise.
29056
607ffde2
VS
290572010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
29058
29059 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
29060 memory leak.
29061 Reported by: Seth Goldberg.
29062
2b8fa975
CW
290632010-02-24 Joey Korkames <joey+lists@kidfixit.com>
29064
29065 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
29066 duplicate declaration of `start'.
29067
618307dd
VS
290682010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
29069
29070 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
29071 filename.
29072 Reported by: Georgy Buranov
29073
7dd05b96 290742010-02-20 Carles Pina i Estany <carles@pina.cat>
29075
29076 * util/grub-mkrawimage.c (usage): Change string formatting to
29077 improve gettext.
29078
d1484a42
MRA
290792010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
29080
29081 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
29082 backspace keys.
29083
42b1d186
VS
290842010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
29085
29086 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
29087 Reported by: Michael Suchanek.
29088
290892010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
0a39de87
ST
29090
29091 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
29092 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
29093
d9f31a41
VS
290942010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
29095
29096 Remove any reference to non-free fonts.
29097
29098 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
29099 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
29100 uses non-free components.
29101 * font/font.c (grub_font_get_name): Remove example name.
29102 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
29103 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
29104 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
29105 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
29106
2793c71e
GB
291072010-02-16 Georgy Buranov <gburanov@gmail.com>
29108
29109 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
29110
402e3779
VS
291112010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
29112
29113 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
29114 Double divisor.
29115 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
29116 features.
29117 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
29118
0dd1e0dd
VS
291192010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
29120
29121 * gensymlist.sh.in: Use TARGET_CC instead of CC.
29122
6fa7cfce
ST
291232010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
29124
29125 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
29126 * docs/grub.texi (Command-line and menu entry commands): Document play
29127 command.
29128
37c8483b
ST
291292010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
29130
29131 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
29132 parse arguments as inline tempo and notes. Move code for playing notes
29133 to...
29134 (play): ... new function.
29135
14da0fb7
ST
291362010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
29137
29138 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
29139 grub_uint16_t instead of short.
29140 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
29141 disk from little endian to cpu endianness.
29142
04459e70
ST
291432010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
29144
29145 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
29146 GRUB_TICKS_PER_SECOND instead of 120.
29147
a0876943
VS
291482010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
29149
29150 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
29151 escape sequence after \e.
29152
e29f95dc
VS
291532010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
29154
29155 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
29156 non-ASCII characters.
29157
d27859b2
VS
291582010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
29159
29160 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
29161 set root in single quotes to prevent \, from being unescaped.
29162
bc028f2f
VS
291632010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
29164
29165 Prevent unknown commands from stopping menuentry execution.
29166
29167 * script/execute.c (grub_script_execute_cmdline): Print error after
29168 unknown command.
29169
095f5f82
VS
291702010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
29171
29172 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
29173 Reported by: Pavel Pisa.
29174
8c717950
VS
291752010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29176
29177 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
29178
904935c3
VS
291792010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29180
29181 Merge grub_ieee1275_map_physical into grub_map and rename to
29182 grub_ieee1275_map
29183
29184 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
29185 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
29186 Remove.
29187 * kern/ieee1275/openfw.c (grub_map): Rename to ...
29188 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
29189 necessary.
29190 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
29191
5b59a4e3
VS
291922010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29193
29194 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
29195 opening and not after.
29196
69e137e8
VS
291972010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29198
29199 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
29200 constants.
29201
2c0fcc36
VS
292022010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29203
29204 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
29205 (alloc_phys): Use ALIGN_UP instead of align_addr.
29206
8c6052ce
VS
292072010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29208
29209 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
29210
17cec782
VS
292112010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29212
29213 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
29214
e0128bbd
VS
292152010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29216
29217 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
29218 verbose dprintf.
29219
ca62070b
VS
292202010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29221
29222 Fix over-4GiB seek on sparc64.
29223
29224 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
29225 Replace pos_i and pos_lo with pos. All users updated.
29226 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
29227 New constant.
29228 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
29229 Likewise.
29230 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
29231 and pos_lo.
29232
bdca2607
VS
292332010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29234
29235 * util/grub-mkrawimage.c (main): Call set_program_name.
29236
da278c4d
VS
292372010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29238
29239 Properly align 64-bit targets.
29240
29241 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
29242 (generate_image): Use ALIGN_ADDR.
29243
b274d734
VS
292442010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29245
29246 Properly create cross-endian images.
29247
29248 * include/grub/types.h (grub_host_to_target_addr): New macro
29249 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
29250
82da2062
VS
292512010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29252
29253 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
29254
7cae4377
VS
292552010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
29256
29257 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
29258
29259 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
29260 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
29261 (grub_linux_boot): Divide by 64K when on VESA.
29262
65a533e7
VS
292632010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
29264
29265 Support GRUB_GFXPAYLOAD_LINUX.
29266
29267 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
29268 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
29269
dd01d397
VS
292702010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
29271
29272 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
29273 to show messages instead of discarding them.
29274 Process errors after executing command and not before. Keep old method
29275 too as precaution.
29276
660960d6
VS
292772010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
29278
29279 * configure.ac: Check for ft2build.h.
29280
62509f04
VS
292812010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29282
29283 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
29284
473df63d
VS
292852010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29286
29287 * genkernsyms.sh.in: Use TARGET_CC.
29288
c98d2a13
CW
292892010-02-07 Colin Watson <cjwatson@ubuntu.com>
29290
29291 * NEWS: Update.
29292
6e14234c
VS
292932010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29294
29295 * include/grub/multiboot2.h: Remove leftover file.
e28e32ae
VS
29296 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
29297 * include/grub/partition.h [GRUB_UTIL]: Likewise.
6e14234c 29298
b255e9cf
YB
292992010-02-07 Yves Blusseau <blusseau@zetam.org>
29300
6e14234c 29301 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
b255e9cf 29302
98e6959d
VS
293032010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29304
29305 Fix warnings in grub-emu when compiling with maximum warning options.
29306
29307 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
29308 (grub_arch_modules_addr): Return 0 and not NULL.
29309 * util/misc.c (ENABLE_RELOCATABLE): New definition.
74e4934e 29310 (xstrdup): Use newstr instead of dup.
f88d801b
VS
29311 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
29312 of disk to dsk to avoid shadowing.
74e4934e
VS
29313 (find_free_slot): Fix prototype.
29314 * util/getroot.c (grub_util_is_dmraid): Make static.
29315 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
29316 Add missing prototype.
29317 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
98e6959d 29318
74e31b5c
VS
293192010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29320
29321 * loader/i386/linux.c (grub_linux_setup_video): Handle error
29322 appropriately.
29323
6b2ad14b
VS
293242010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29325
29326 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
29327 code out.
29328
8f891adc
VS
293292010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29330
29331 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
29332 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
29333 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
29334 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
29335 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
29336 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
29337
74b45184
VS
293382010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29339
29340 * include/grub/err.h (grub_err_printf): Don't export.
29341
a4bced77
VS
293422010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29343
29344 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
29345
007d0695
VS
293462010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29347
29348 * include/grub/i18n.h (grub_gettext_dummy): Removed.
29349 * kern/misc.c (grub_gettext_dummy): Make static.
29350
b6c0d9c2
VS
293512010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29352
29353 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
29354 by non-valid ones.
29355 * kern/term.c (grub_putchar): Likewise.
29356
f51a90d0
VS
293572010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29358
29359 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
29360 buggy hook call and memory leak.
29361
6846cec5
VS
293622010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29363
29364 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
29365
468d69fe
VS
293662010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29367
29368 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
29369
51906b8c
VS
293702010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29371
29372 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
29373 modevar.
29374 Return grub_errno on allocation error.
29375
09706ce5
VS
293762010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29377
29378 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
29379
911df80c
YB
293802010-02-06 Yves Blusseau <blusseau@zetam.org>
29381
29382 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
29383 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
29384
3746a6bc
VS
293852010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29386
29387 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
29388 non-pxe disk.
29389 (grub_pxefs_open): Likewise.
29390
09706ce5
VS
293912010-02-06 Robert Millan <rmh.grub@aybabtu.com>
29392
29393 * util/grub.d/10_hurd.in: Add --class information to menuentries.
29394 * util/grub.d/10_kfreebsd.in: Likewise.
29395 * util/grub.d/10_linux.in: Likewise.
29396
7cc192d9
VS
293972010-02-06 Colin D Bennett <colin@gibibit.com>
29398
29399 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
29400 (gfxmenu_mod_SOURCES): New variable.
29401 (gfxmenu_mod_CFLAGS): Likewise.
29402 (gfxmenu_mod_LDFLAGS): Likewise.
29403 * include/grub/term.h (grub_term_set_current_output): Declare
29404 argument as const.
29405 * docs/gfxmenu-theme-example.txt: New file.
29406 * gfxmenu/gfxmenu.c: Likewise.
29407 * gfxmenu/gui_box.c: Likewise.
29408 * gfxmenu/gui_canvas.c: Likewise.
29409 * gfxmenu/gui_circular_progress.c: Likewise.
29410 * gfxmenu/gui_image.c: Likewise.
29411 * gfxmenu/gui_label.c: Likewise.
29412 * gfxmenu/gui_list.c: Likewise.
29413 * gfxmenu/gui_progress_bar.c: Likewise.
29414 * gfxmenu/gui_string_util.c: Likewise.
29415 * gfxmenu/gui_util.c: Likewise.
29416 * gfxmenu/icon_manager.c: Likewise.
29417 * gfxmenu/model.c: Likewise.
29418 * gfxmenu/named_colors.c: Likewise.
29419 * gfxmenu/theme_loader.c: Likewise.
29420 * gfxmenu/view.c: Likewise.
29421 * gfxmenu/widget-box.c: Likewise.
29422 * include/grub/gfxmenu_model.h: Likewise.
29423 * include/grub/gfxmenu_view.h: Likewise.
29424 * include/grub/gfxwidgets.h: Likewise.
29425 * include/grub/gui.h: Likewise.
29426 * include/grub/gui_string_util.h: Likewise.
29427 * include/grub/icon_manager.h: Likewise.
29428
294292010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29430
29431 Agglomerate scrolling in gfxterm.
29432
29433 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
29434 (grub_virtual_screen_setup): Initialise 'total_screen'.
29435 (write_char): Split to ...
29436 (paint_char): ... this ...
29437 (write_char): ... and this.
29438 (paint_char): Handle delayed scrolling.
29439 (draw_cursor): Likewise.
29440 (scroll_up): Split to ...
29441 (real_scroll): ... this ...
29442 (scroll_up): ... and this.
29443 (real_scroll): Handle multi-line scroll and draw below-the-bottom
29444 characters.
29445 (grub_gfxterm_refresh): Call real_scroll.
29446
294472010-02-06 Colin D Bennett <colin@gibibit.com>
29448
29449 * include/grub/misc.h (grub_iscntrl): New inline function.
29450 (grub_isalnum): Likewise.
29451 (grub_strtol): Likewise.
29452
294532010-02-06 Colin D Bennett <colin@gibibit.com>
29454
29455 * normal/menu_text.c (get_entry_number): Move from here ...
29456 * normal/menu.c (get_entry_number): ... moved here.
29457 * include/grub/menu.h (grub_menu_get_default_entry_index):
29458 New prototype.
29459 * normal/menu.c (grub_menu_get_default_entry_index): New function.
29460 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
29461 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
29462 (grub_menu_viewer_should_return): Likewise.
29463 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
29464 * normal/menu_text.c (run_menu): Enable menu switching.
29465 * normal/menu_viewer.c (should_return): New variable.
29466 (menu_viewer_changed): Likewise.
29467 (grub_menu_viewer_show_menu): Handle menu viewer changes.
29468 (grub_menu_viewer_should_return): New function.
29469 (menuviewer_write_hook): Likewise.
29470 (grub_menu_viewer_init): Likewise.
29471
294722010-02-06 Colin D Bennet <colin@gibibit.com>
294732010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29474
29475 Support for gfxterm in a window.
29476
29477 * include/grub/gfxterm.h: New file.
29478 * include/grub/video.h (struct grub_video_rect): New declaration.
29479 (grub_video_rect_t): Likewise.
29480 * term/gfxterm.c (struct grub_gfxterm_window): New type.
29481 (refcount): New variable.
29482 (render_target): Likewise.
29483 (window): Likewise.
29484 (repaint_callback): Likewise.
29485 (grub_virtual_screen_setup): Use 'render_target'.
29486 (init_window): New function.
29487 (grub_gfxterm_init_window): Likewise.
29488 (grub_gfxterm_init): Check reference counter.
29489 Use init_window.
29490 (destroy_window): New function.
29491 (grub_gfxterm_destroy_window): Likewise.
29492 (grub_gfxterm_fini): Check reference counter.
29493 Use destroy_window.
29494 (redraw_screen_rect): Restore viewport.
29495 Use 'render_target' and 'window'.
29496 Call 'repaint_callback'.
29497 (write_char): Use 'render_target'.
29498 (draw_cursor): Likewise.
29499 (scroll_up): Restore viewport.
29500 Use 'render_target' and 'window'.
29501 Call 'repaint_callback'.
29502 (grub_gfxterm_cls): Likewise.
29503 (grub_gfxterm_refresh): Use 'window'.
29504 (grub_gfxterm_set_repaint_callback): New function.
29505 (grub_gfxterm_background_image_cmd): Use 'window'.
29506 (grub_gfxterm_get_term): New function.
29507 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
29508
295092010-02-06 Colin D Bennett <colin@gibibit.com>
29510
29511 Bitmap scaling support.
29512
29513 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
29514 (bitmap_scale_mod_SOURCES): New variable.
29515 (bitmap_scale_mod_CFLAGS): Likewise.
29516 (bitmap_scale_mod_LDFLAGS): Likewise.
29517 * include/grub/bitmap_scale.h: New file.
29518 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
29519 (background_image_cmd_options): New variable.
29520 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
29521 (cmd): Rename and change type to ...
29522 (background_image_cmd_handle): ... this. All users updated.
29523 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
29524 * video/bitmap_scale.c: New file.
29525
295262010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29527
29528 SDL support.
29529
29530 * Makefile.in (LIBSDL): New variable.
29531 (enable_grub_emu_sdl): Likewise.
29532 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
29533 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
29534 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
29535 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
29536 * util/sdl.c: New file.
29537
295382010-02-06 Colin D Bennett <colin@gibibit.com>
295392010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29540
29541 Double buffering support.
29542
29543 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
29544 * include/grub/video.h: Update comment.
29545 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
29546 New type.
29547 (grub_video_fb_doublebuf_blit_init): New prototype.
29548 * term/gfxterm.c (scroll_up): Support double buffering.
29549 (grub_gfxterm_refresh): Likewise.
29550 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
29551 (grub_video_fb_doublebuf_blit_init): Likewise.
29552 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
29553 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
29554 'displayed_page', 'render_page' and 'update_screen'.
29555 (grub_video_vbe_fini): Free offscreen buffer.
29556 (doublebuf_pageflipping_commit): New function.
29557 (doublebuf_pageflipping_update_screen): Likewise.
29558 (doublebuf_pageflipping_init): Likewise.
29559 (double_buffering_init): Likewise.
29560 (grub_video_vbe_setup): Enable doublebuffering.
29561 (grub_video_vbe_swap_buffers): Implement.
29562 (grub_video_vbe_set_active_render_target): Handle double buffering.
29563 (grub_video_vbe_get_active_render_target): Likewise.
29564 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
29565 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
29566 (grub_video_vbe_enable_double_buffering): Likewise.
29567 (grub_video_vbe_swap_buffers): Use update_screen.
29568 (grub_video_set_mode): Use double buffering.
29569
295702010-02-06 Robert Millan <rmh.grub@aybabtu.com>
29571
29572 * maintainance/gentrigtables.py: Remove.
29573 * lib/trig.c: Likewise.
29574
29575 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
29576
29577 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
29578 `trigtables.c'.
29579 (trigtables.c): New rule.
29580 (gentrigtables): Likewise.
29581 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
29582
295832010-02-06 Robert Millan <rmh.grub@aybabtu.com>
29584
29585 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
29586 integer constants.
29587
295882010-02-06 Colin D Bennet <colin@gibibit.com>
29589
29590 Trigonometry support.
29591
29592 * include/grub/trig.h: New file.
29593 * lib/trig.c: Likewise.
29594 * maintainance/gentrigtables.py: Likewise.
29595 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
29596 (trig_mod_SOURCES): New variable.
29597 (trig_mod_CFLAGS): Likewise.
29598 (trig_mod_LDFLAGS): Likewise.
29599
5562834e
VS
296002010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29601
29602 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
29603 disk devices.
29604
4f8528fc
VS
296052010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29606
29607 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
29608 error.
29609
2b4068e9
VS
296102010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
29611
29612 * util/hostdisk.c (open_device): Don't use partition device when reading
29613 before the partition.
29614 (grub_util_biosdisk_read): Don't read from partition and before the
29615 partition in single operation.
29616 (grub_util_biosdisk_write): Don't write to partition and before the
29617 partition in single operation.
29618
399f6e4d
TL
296192010-02-03 Torsten Landschoff <torsten@debian.org>
29620
29621 * kern/disk.c (grub_disk_read): Fix offset computation when reading
29622 last sectors.
29623
996649b0
VS
296242010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
29625
29626 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
29627 CDROM reads.
29628 (grub_biosdisk_write): Refuse to write to CDROM.
29629
3b205d4d
VS
296302010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
29631
29632 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
29633
61e89d9d
VS
296342010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
29635
29636 * font/font.c (find_glyph): Check that bmp_idx is available before
29637 using it.
29638 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
29639 with (font == NULL).
29640
bf7fcba2
CS
296412010-01-28 Christian Schmitt <chris@ilovelinux.de>
29642
29643 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
29644
f45d2663
BC
296452010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
29646
29647 * include/grub/script_sh.h (sourcecode): Add const qualifier.
29648 * util/grub-script-check.c (getline): Fix empty lines case.
29649
ec1444e6
RM
296502010-01-28 Robert Millan <rmh.grub@aybabtu.com>
29651
29652 * Makefile.in (check): Exit with fail status when one of the tests
29653 fails.
29654 * tests/example_functional_test.c (example_test): Fix reversed assert.
29655 * tests/example_unit_test.c (example_test): Likewise.
29656
2e1cb9bb
CW
296572010-01-28 Colin Watson <cjwatson@ubuntu.com>
29658
29659 * util/grub.d/10_linux.in: This script does not use any of the
29660 contents of gettext.sh, only the external command `gettext', so stop
29661 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
29662 the same prefix as GRUB.)
29663 * util/grub.d/10_kfreebsd.in: Likewise.
29664
63533ab0
VS
296652010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
29666
29667 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
29668 of the line.
29669
989e1f93
VS
296702010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
29671
29672 * kern/disk.c (grub_disk_read): Fix offset computation when reading
29673 last sectors.
29674
e709ebe2
VS
296752010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
29676
29677 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
29678 having a 4KiB and not 32KiB buffer size.
29679
27dea7ed
RM
296802010-01-27 Robert Millan <rmh.grub@aybabtu.com>
29681
29682 * util/hostfs.c: Include `<errno.h>'.
29683 (grub_hostfs_read): Handle errors from fseeko() and fread().
29684
67667b9c
RM
296852010-01-27 Robert Millan <rmh.grub@aybabtu.com>
29686
29687 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
29688 loop when using read hooks on files whose size isn't sector-aligned.
29689
c294d9d8
RM
296902010-01-27 Robert Millan <rmh.grub@aybabtu.com>
29691
29692 Remove unused parameter.
29693
29694 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
29695 (grub_iso9660_open): Remove initialization of `data->length'.
29696
af75a9f1
RM
296972010-01-27 Robert Millan <rmh.grub@aybabtu.com>
29698
29699 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
29700 memleak conditions.
29701
254e2ce5 297022010-01-27 Carles Pina i Estany <carles@pina.cat>
29703
29704 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
29705 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
29706
b510928c 297072010-01-26 Carles Pina i Estany <carles@pina.cat>
29708
29709 * util/bin2h.c (usage): Fix warning (space after backslash).
29710
aa2f9dd2 297112010-01-26 Carles Pina i Estany <carles@pina.cat>
de0b7a4e 29712
29713 * font/font.c: Include `grub/fontformat.h.
29714 Remove font file format constants.
29715 (grub_font_load): Use the new macros.
29716 * include/grub/fontformat.h: New file.
29717 * util/grub-mkfont.c: Include `grub/fontformat.c'.
29718 (write_font_pf2): Use the new macros.
29719
94e7e712
RM
297202010-01-26 Robert Millan <rmh.grub@aybabtu.com>
29721
29722 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
29723 does.
29724
3973a59a
RM
297252010-01-26 Robert Millan <rmh.grub@aybabtu.com>
29726
29727 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
29728
29729 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
29730 (_start): Macroify `0x7F'.
29731
29732 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
29733 (make_install_device): Use "(pxe)" as fallback prefix when booting
29734 via PXE.
29735
42e0cba3
GS
297362010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
29737
29738 * configure.ac: Reset LIBS after check for libgcc symbols.
29739
847effd8
CW
297402010-01-25 Colin Watson <cjwatson@ubuntu.com>
29741
29742 * util/hostdisk.c (open_device): Add trailing newline to debug
29743 message.
29744
ea4a7e35
GS
297452010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
29746
29747 * configure.ac: Check for `limits.h'.
29748 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
29749
67951a53
RM
297502010-01-24 Robert Millan <rmh.grub@aybabtu.com>
29751
29752 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
29753 capitalize error strings.
29754
c273d4ce
ST
297552010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
29756
29757 * util/grub.d/10_hurd.in: Add a recovery mode.
29758
69be5b74
VS
297592010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
29760
29761 * configure.ac: Check for libgcc symbols with -nostdlib.
29762
fc9e5810
BC
297632010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
29764
29765 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
29766
4b358c0a
VS
297672010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
29768
29769 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
29770 stack since heap may be unavailable at that point.
29771 (grub_ofconsole_gotoxy): Likewise.
29772
454fcd1c
VS
297732010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
29774
29775 * configure.ac: Check for _restgpr_14_x.
29776 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
29777 and _savegpr_* prototypes.
29778
566863ca
RM
297792010-01-22 Robert Millan <rmh.grub@aybabtu.com>
29780
29781 Use generic grub_reboot() for i386-efi.
29782
29783 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
29784 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
29785 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
29786
bf86e59a
VS
297872010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
29788
29789 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
29790 presence of "prefix" variable as it breaks when normal.mod is
29791 embedded.
29792
d645e0f8
VS
297932010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
29794
29795 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
29796 stack since heap is unavailable at that point.
29797
f9ab2e25
VS
297982010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
29799
29800 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
29801 (grub_freebsd_bootinfo): Rewritten.
29802 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
29803
01fc7054
VS
298042010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
29805
29806 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
29807
caab4fd6
RM
298082010-01-21 Robert Millan <rmh.grub@aybabtu.com>
29809
29810 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
29811 domain now.
29812
67eb1427
FZ
298132010-01-20 Felix Zielcke <fzielcke@z-51.de>
29814
29815 * util/misc.c (make_system_path_relative_to_its_root): Change the work
29816 around for handling "/" to the correct fix. Fix a memory leak. Use
29817 xstrdup instead of strdup.
29818
a9ed4ff3
VS
298192010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
29820
29821 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
29822
298232010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
bed35bda
VS
29824
29825 Optimise glyph lookup by Basic Multilingual Plane lookup array.
29826
29827 * font/font.c (struct grub_font): New member 'bmp_idx'.
29828 (font_init): Initialise 'bmp_idx'.
29829 (load_font_index): Fill 'bmp_idx'.
29830 (find_glyph): Make inline. Use bmp_idx for BMP characters.
29831
48209f4f
VS
298322010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
29833
29834 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
29835 unnecessary calls.
29836
9f0a4bb7
VS
298372010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
29838
29839 Move context handling out of the kernel.
29840
29841 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
29842 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
29843 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
29844 * conf/i386-efi.rmk: Likewise.
29845 * conf/i386-ieee1275.rmk: Likewise.
29846 * conf/i386-pc.rmk: Likewise.
29847 * conf/powerpc-ieee1275.rmk: Likewise.
29848 * conf/sparc64-ieee1275.rmk: Likewise.
29849 * conf/x86_64-efi.rmk: Likewise.
29850 * include/grub/env.h: Include grub/menu.h.
29851 (grub_env_var_type): Removed.
29852 (grub_env_var): Replaced field 'type' with 'global'.
29853 (grub_env_find): New prototype.
29854 (grub_env_context_open): Remove EXPORT_FUNC.
29855 (grub_env_context_close): Likewise.
29856 (grub_env_export): Likewise.
29857 (grub_env_set_data_slot): Removed.
29858 (grub_env_get_data_slot): Likewise.
29859 (grub_env_unset_data_slot): Likewise.
29860 (grub_env_unset_menu): New prototype.
29861 (grub_env_set_menu): Likewise.
29862 (grub_env_get_menu): Likewise.
29863 * include/grub/env_private.h: New file.
29864 * include/grub/normal.h (grub_context_init): New prototype.
29865 (grub_context_fini): Likewise.
29866 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
29867 * normal/context.c (grub_cmd_export): ... to here.
29868 * kern/env.c: Include env_private.h.
29869 (HASHSZ): Moved to include/grub/env_private.h.
29870 (grub_env_context): Likewise.
29871 (grub_env_sorted_var): Likewise.
29872 (current_context): Renamed from this ...
29873 (grub_current_context): ...to this. 'static' removed. All users updated.
29874 (grub_env_find): Removed 'static'.
29875 (grub_env_context_open): Moved to normal/context.c.
29876 (grub_env_context_close): Likewise.
29877 (grub_env_export): Likewise.
29878 (mangle_data_slot_name): Removed.
29879 (grub_env_set_data_slot): Likewise.
29880 (grub_env_get_data_slot): Likewise.
29881 (grub_env_unset_data_slot): Likewise.
29882 * kern/main.c (grub_set_root_dev): Don't export root.
29883 It will be done later.
29884 (grub_main): Don't export prefix.
29885 It will be done later.
29886 * normal/context.c: New file.
29887 * normal/main.c (free_menu): Use grub_env_unset_menu.
29888 (grub_normal_add_menu_entry): Use grub_env_get_menu.
29889 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
29890 (GRUB_MOD_INIT(normal)): Call grub_context_init.
29891 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
29892
8dd35b8c
VS
298932010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
29894
29895 setpci support.
29896
29897 * commands/setpci.c: New file.
29898 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
29899 (setpci_mod_SOURCES): New variable.
29900 (setpci_mod_CFLAGS): Likewise.
29901 (setpci_mod_LDFLAGS): Likewise.
29902
449193d5
VS
299032010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
29904
29905 Byte-addressable PCI configuration space.
29906
29907 * bus/pci.c (grub_pci_make_address): Use byte address instead of
29908 dword address.
29909 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
29910 GRUB_PCI_REG_CACHELINE.
29911 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
29912 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
29913 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
29914 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
29915 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
29916 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
29917 grub_pci_make_address.
29918 (lock_rom_area): Likewise.
29919 * commands/lspci.c (grub_lspci_iter): Use macroses
29920 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
29921 of grub_pci_make_address.
29922 * disk/ata.c (grub_ata_pciinit): Likewise.
29923 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
29924 (GRUB_PCI_REG_VENDOR): Likewise.
29925 (GRUB_PCI_REG_DEVICE): Likewise.
29926 (GRUB_PCI_REG_COMMAND): Likewise.
29927 (GRUB_PCI_REG_STATUS): Likewise.
29928 (GRUB_PCI_REG_REVISION): Likewise.
29929 (GRUB_PCI_REG_CLASS): Likewise.
29930 (GRUB_PCI_REG_CACHELINE): Likewise.
29931 (GRUB_PCI_REG_LAT_TIMER): Likewise.
29932 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
29933 (GRUB_PCI_REG_BIST): Likewise.
29934 (GRUB_PCI_REG_ADDRESSES): Likewise.
29935 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
29936 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
29937 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
29938 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
29939 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
29940 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
29941 (GRUB_PCI_REG_CIS_POINTER): Likewise.
29942 (GRUB_PCI_REG_SUBVENDOR): Likewise.
29943 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
29944 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
29945 (GRUB_PCI_REG_CAP_POINTER): Likewise.
29946 (GRUB_PCI_REG_IRQ_LINE): Likewise.
29947 (GRUB_PCI_REG_IRQ_PIN): Likewise.
29948 (GRUB_PCI_REG_MIN_GNT): Likewise.
29949 (GRUB_PCI_REG_MAX_LAT): Likewise.
29950 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
29951 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
29952 * video/efi_uga.c (find_framebuf): Likewise.
fdb1b2ea 29953 * video/sm712.c (grub_video_sm712_setup): Likewise.
449193d5
VS
29954 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
29955 space.
29956
96d73208
RM
299572010-01-20 Robert Millan <rmh.grub@aybabtu.com>
29958
29959 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
29960 can be reliably determined to be supported.
29961
d4484482
RM
299622010-01-20 Robert Millan <rmh.grub@aybabtu.com>
29963
29964 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
29965 that VESA is supported.
29966 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
29967 supported.
29968
00308ecf
VS
299692010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
29970
29971 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
29972
f66924a4
RM
299732010-01-20 Robert Millan <rmh.grub@aybabtu.com>
29974
29975 * util/misc.c (make_system_path_relative_to_its_root): Work around
29976 special-casing of "/", as previous incarnation of this routine did.
29977
cbca0ada
VS
299782010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
29979
29980 Fix any-emu compilation.
29981
29982 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
29983 * grub_bin2h_SOURCES: New variable.
29984
34a66d99
RM
299852010-01-20 Robert Millan <rmh.grub@aybabtu.com>
29986
29987 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
29988
94fabf58
RM
299892010-01-20 Robert Millan <rmh.grub@aybabtu.com>
29990
29991 * util/grub.d/00_header.in: Fix handling of locale_dir.
29992
02cf98ca
VS
299932010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
29994
29995 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
29996 as possible unifont location (Gentoo).
29997 Reported by: Alexander Brüning
29998
327dbcd7
VS
299992010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30000
30001 Don't try to generate lists for kernel.img.
30002
30003 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
30004 (pkglib_MODULES): Remove kernel.img.
30005 (kernel_img_EXPORTS): Removed.
30006 (kernel_img_RELOCATABLE): New variable.
30007 * conf/x86_64-efi.rmk: Likewise.
30008 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
30009
ca467290
VS
300102010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30011
30012 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
30013 grub_xasprintf or grub_snprintf.
30014 (grub_vsprintf): Likewise.
30015 (grub_snprintf): New proto.
30016 (grub_vsnprintf): Likewise.
30017 (grub_xasprintf): Likewise.
30018 (grub_xvasprintf): Likewise.
30019 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
30020 (grub_sprintf): Removed.
30021 (grub_vsnprintf): New function.
30022 (grub_snprintf): Likewise.
30023 (grub_xvasprintf): Likewise.
30024 (grub_xasprintf): Likewise.
30025 (grub_vsprintf): Renamed to ...
30026 (grub_vsnprintf_real): ...this. New argument max_len.
30027
aca655fd
BC
300282010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
30029
30030 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
30031 fix grub-script-check warning.
30032
7ee92c32
VS
300332010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30034
30035 * include/grub/font.h (grub_font_load): Fix prototype.
30036
f80927ca
VS
300372010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30038
30039 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
30040
119c50ea
VS
300412010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30042
30043 * include/grub/x86_64/at_keyboard.h: New file.
30044
47d5f3c1
VS
300452010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30046
30047 * loader/mips/linux.c: Include missing grub/i18n.h.
30048
55ff5266
RM
300492009-12-20 Robert Millan <rmh.grub@aybabtu.com>
30050
30051 * normal/menu.c (notify_execution_failure): Clarify error message.
30052
c893cc87
RM
300532009-12-20 Robert Millan <rmh.grub@aybabtu.com>
30054
30055 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
30056 return value (and revert all return statements). Update users.
30057
917dd370
CW
300582010-01-20 Dan Merillat <debian@dan.merillat.org>
30059
30060 * kern/device.c (grub_device_iterate): Allocate new part_ent
30061 structure based on sizeof (*p) rather than sizeof (p->next), to
30062 account for structure padding.
30063
30064 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
30065 disk is NULL, which might happen for LVM physical volumes with no
30066 LVM signature.
30067
d4a4ee57
RM
300682009-12-20 Robert Millan <rmh.grub@aybabtu.com>
30069
30070 * loader/mips/linux.c (grub_cmd_initrd)
30071 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
30072
300732009-12-20 Robert Millan <rmh.grub@aybabtu.com>
30074
30075 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
30076 (grub_video_video_init, grub_video_bitmap_init)
30077 (grub_font_manager_init, grub_term_gfxterm_init)
30078 (grub_at_keyboard_init): New extern declarations.
30079 (grub_machine_init): Initialize gfxterm and at_keyboard.
30080
30081 * kern/main.c (grub_main): Revert grub_printf delay kludge.
30082
30083 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
30084 `gfxterm.mod' into core image.
30085
30086 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
30087 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
30088 (kernel_img_FORMAT): Copy to ...
30089
30090 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
30091 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
30092 (kernel_img_FORMAT): ... here, and ...
30093
30094 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
30095 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
30096 (kernel_img_FORMAT): ... here.
30097
30098 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
30099 and input (at_keyboard) terminals in kernel.
30100 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
30101
30102 (pkglib_MODULES): Remove `pci.mod'.
30103 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
30104 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
30105 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
30106 (at_keyboard_mod_LDFLAGS): Remove variables.
30107
301082010-01-11 Felix Zielcke <fzielcke@z-51.de>
30109
30110 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
30111
301122009-12-10 Robert Millan <rmh.grub@aybabtu.com>
30113
30114 * include/grub/mips/libgcc.h: Only export symbols for functions
30115 that libgcc provides.
30116
301172009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
30118
30119 MIPS support.
30120
30121 * bus/bonito.c: New file.
30122 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
30123 GRUB_PCI_NUM_DEVICES.
30124 * term/i386/pc/serial.c: Move to ...
30125 * term/serial.c: ... here. All users updated.
30126 * util/i386/pc/grub-mkimage.c: Move to ...
30127 * util/grub-mkrawimage.c: ... here. All users updated.
30128 * term/i386/pc/at_keyboard.c: Move to ...
30129 * term/at_keyboard.c: ... here. All users updated.
30130 * conf/mips-qemu-mips.rmk: New file.
30131 * conf/mips-yeeloong.rmk: Likewise.
30132 * conf/mips.rmk: Likewise.
30133 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
30134 mipsel-qemu-mips.
30135 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
30136 to port addresses.
30137 (grub_ata_pciinit): Support CS5536.
30138 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
30139 * font/font_cmd.c (loadfont_command): Open file before passing it to
30140 grub_font_load.
30141 (pseudo_file_read): New function.
30142 (pseudo_file_close): Likewise.
30143 (pseudo_fs): New structure.
30144 (load_font_module): New function.
30145 (GRUB_MOD_INIT(font_manager)): Load embedded font.
30146 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
30147 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
30148 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
30149 * include/grub/i386/at_keyboard.h: Split into ...
30150 * include/grub/at_keyboard.h: ... this ...
30151 * include/grub/i386/at_keyboard.h: ... and this.
30152 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
30153 New prototype.
30154 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
30155 updated.
30156 (grub_elf64_size): Likewise.
30157 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
30158 filename.
30159 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
30160 * include/grub/i386/coreboot/serial.h: Rewritten.
30161 * include/grub/i386/ieee1275/serial.h: Include
30162 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
30163 * include/grub/i386/pc/serial.h: Moved from here ...
30164 * include/grub/serial.h: ... to here. All users updated.
30165 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
30166 (GRUB_PCI_NUM_BUS): Likewise.
30167 (GRUB_PCI_NUM_DEVICES): Likewise.
30168 (grub_pci_device_map_range): Add missing volatile keyword.
30169 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
30170 * include/grub/mips/at_keyboard.h: New file.
30171 * include/grub/mips/cache.h: Likewise.
30172 * include/grub/mips/io.h: Likewise.
30173 * include/grub/mips/kernel.h: Likewise.
30174 * include/grub/mips/libgcc.h: Likewise.
30175 * include/grub/mips/pci.h: Likewise.
30176 * include/grub/mips/qemu-mips/boot.h: Likewise.
30177 * include/grub/mips/qemu-mips/kernel.h: Likewise.
30178 * include/grub/mips/qemu-mips/loader.h: Likewise.
30179 * include/grub/mips/qemu-mips/memory.h: Likewise.
30180 * include/grub/mips/qemu-mips/serial.h: Likewise.
30181 * include/grub/mips/qemu-mips/time.h: Likewise.
30182 * include/grub/mips/relocator.h: Likewise.
30183 * include/grub/mips/time.h: Likewise.
30184 * include/grub/mips/types.h: Likewise.
30185 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
30186 * include/grub/mips/yeeloong/boot.h: Likewise.
30187 * include/grub/mips/yeeloong/kernel.h: Likewise.
30188 * include/grub/mips/yeeloong/loader.h: Likewise.
30189 * include/grub/mips/yeeloong/memory.h: Likewise.
30190 * include/grub/mips/yeeloong/pci.h: Likewise.
30191 * include/grub/mips/yeeloong/serial.h: Likewise.
30192 * include/grub/mips/yeeloong/time.h: Likewise.
30193 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
30194 * kern/elf.c (grub_elf32_size): New parameter. All users
30195 updated.
30196 (grub_elf64_size): Likewise.
30197 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
30198 Load modules before saying "Welcome to GRUB!".
30199 Call grub_refresh after saying "Welcome to GRUB!".
30200 * kern/mips/cache.S: New file.
30201 * kern/mips/cache_flush.S: Likewise.
30202 * kern/mips/dl.c: Likewise.
30203 * kern/mips/init.c: Likewise.
30204 * kern/mips/qemu-mips/init.c: Likewise.
30205 * kern/mips/startup.S: Likewise.
30206 * kern/mips/yeeloong/init.c: Likewise.
30207 * kern/term.c (grub_putcode): Handle NULL terminal.
30208 (grub_getcharwidth): Likewise.
30209 (grub_getkey): Likewise.
30210 (grub_checkkey): Likewise.
30211 (grub_getkeystatus): Likewise.
30212 (grub_getxy): Likewise.
30213 (grub_getwh): Likewise.
30214 (grub_gotoxy): Likewise.
30215 (grub_cls): Likewise.
30216 (grub_setcolorstate): Likewise.
30217 (grub_setcolor): Likewise.
30218 (grub_getcolor): Likewise.
30219 (grub_refresh): Likewise.
30220 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
30221 (write_jump): Add hatch nop.
30222 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
30223 * lib/mips/setjmp.S: New file.
30224 * loader/mips/linux.c: Likewise.
30225 * term/i386/pc/at_keyboard.c: Move from here ...
30226 * term/at_keyboard.c: ... to here.
30227 * term/i386/pc/serial.c: Moved from here ...
30228 * term/serial.c: ... to here. All users updated.
30229 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
30230 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
30231 (serial_translate_key_sequence): Avoid deadlock.
30232 (grub_serial_getkey): Handle backspace.
30233 (grub_serial_putchar): Fix newline handling.
30234 * util/i386/pc/grub-mkimage.c: Move from here ...
30235 * util/grub-mkrawimage.c: ... to here. All users updated.
30236 (generate_image): New parameters 'font_path' and 'format'.
30237 Support embedding font.
30238 Use grub_host_to_target* instead of grub_cpu_to_le*.
30239 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
30240 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
30241 (options): New option "--font".
30242 (usage): Likewise.
30243 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
30244 (main): Handle "--font".
30245 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
30246 (grub_virtual_screen_setup): Set bg_color_display.
30247 (redraw_screen_rect): Use bg_color_display instead of incorrect
30248 bg_color.
30249 (grub_gfxterm_cls): Likewise.
30250 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
30251 Support embedding config file.
30252 (add_segments): Likewise.
30253 (options): New option "--config".
30254 (main): Handle "--config".
30255 * video/sm712.c: New file.
30256
25c2b5b3
RM
302572010-01-18 Robert Millan <rmh.grub@aybabtu.com>
30258
30259 Fix parallel builds.
30260
30261 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
30262 font.c depend on ascii.h).
30263
302642010-01-12 Carles Pina i Estany <carles@pina.cat>
30265
30266 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
30267
302682010-01-11 Carles Pina i Estany <carles@pina.cat>
30269
30270 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
30271 By default: disabled.
30272 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
30273 parameter.
30274
302752010-01-10 Carles Pina i Estany <carles@pina.cat>
30276
30277 * font/font.c: Update copyright years.
30278 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
30279
302802010-01-10 Carles Pina i Estany <carles@pina.cat>
30281
30282 * font/font.c: Include `ascii.h'.
30283 (ASCII_BITMAP_SIZE): New macro.
30284 (ascii_font_glyph): Define.
30285 (ascii_glyph_lookup): New function.
30286 (grub_font_get_string_width): Change comment. If glyph not found, use
30287 ascii_glyph_lookup.
30288 (grub_font_get_glyph_with_fallback): If glyph not available returns
30289 ascii_glyph_lookup.
30290 * util/grub-mkfont.c (file_formats): New enum.
30291 (options): Add `ascii-bitmaps' new option.
30292 (usage): Add `asii-bitmaps' new option.
30293 (write_font_ascii_bitmap): New function.
30294 (write_font): Rename to ...
30295 (write_font_p2): ... this. Remove print_glyphs call.
30296 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
30297 used. Call print_glyphs.
30298 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
30299
303002010-01-14 Robert Millan <rmh.grub@aybabtu.com>
30301
30302 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
30303 (grub_bin2h_SOURCES): New variable.
30304 * util/bin2h.c: New file.
30305
915fc1b8
VS
303062010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30307
30308 * include/multiboot.h: Resynced with spec.
30309 * include/multiboot2.h: Likewise.
30310 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
30311 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
30312
9444b678
RM
303132010-01-18 Robert Millan <rmh.grub@aybabtu.com>
30314
30315 * include/grub/term.h (grub_term_register_input,
30316 grub_term_register_output): Check return of terminal init()
30317 routines, and abort if errors are raised.
30318
30319 * commands/terminal.c: Update copyright year.
30320
cba98e8d
RM
303212010-01-18 Robert Millan <rmh.grub@aybabtu.com>
30322
30323 * commands/terminal.c (grub_cmd_terminal_input)
30324 (grub_cmd_terminal_output): Check return of terminal init()
30325 routines, and abort if errors are raised.
30326
6f7db5d6
VS
303272010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
30328
30329 * include/grub/i386/bsd.h: Fix include pathes.
30330
262bff8d
VS
303312010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
30332
30333 Add missing *BSD copyright headers.
30334
30335 * include/grub/aout.h: Add BSD licence.
30336 * include/grub/i386/bsd.h: Parts under different licences moved to ...
30337 * include/grub/i386/freebsd_linker.h: ... here,
30338 * include/grub/i386/freebsd_reboot.h: ... here,
30339 * include/grub/i386/netbsd_bootinfo.h: ... here,
30340 * include/grub/i386/netbsd_reboot.h: ... here,
30341 * include/grub/i386/openbsd_bootarg.h: ... here,
30342 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
30343 licence to each file.
30344
b2cab848
RM
303452010-01-18 Robert Millan <rmh.grub@aybabtu.com>
30346
30347 * acinclude.m4: Remove `nop' assembly instruction; it's not
30348 implemented by all architectures.
30349
2cb6be4b
RM
303502010-01-18 Robert Millan <rmh.grub@aybabtu.com>
30351
30352 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
30353 ELILO. This is no longer necessary.
30354
a2eaee15
BC
303552010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
30356
30357 Added new tool, grub-scrit-check to verify grub.cfg syntax.
30358
30359 * util/grub-script-check.c: grub-script-check tool.
30360 * conf/common.rmk: Make rules for grub-script-check.
30361
88d17012
RM
303622010-01-18 Robert Millan <rmh.grub@aybabtu.com>
30363
30364 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
30365 spotting it back in 2008. Shame on me for forgetting he did.
30366
30367 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
30368
8040619d
RM
303692010-01-18 Robert Millan <rmh.grub@aybabtu.com>
30370
30371 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
30372 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
30373 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
30374 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
30375 (GRUB_VIDEO_TYPE_EFI): Rename to ...
30376 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
30377
a0c2a0f6
RM
303782010-01-17 Robert Millan <rmh.grub@aybabtu.com>
30379
30380 * include/grub/test.h: Add license header.
30381 * tests/example_functional_test.c: Likewise.
30382 * tests/example_unit_test.c: Likewise.
30383 * tests/lib/functional_test.c: Likewise.
30384 * tests/lib/test.c: Likewise.
30385 * tests/lib/unit_test.c: Likewise.
30386
b0b13907
VS
303872010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
30388
30389 Use flag-based instead of hook-based video mode selection and "auto"
30390 keyword.
30391
30392 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
30393 (grub_video_set_mode): Changed prototype. All users updated.
30394 (grub_video_check_mode_flag): New inline function.
30395 * video/video.c (parse_modespec): New function.
30396 (grub_video_set_mode): Parse flags and keywords.
30397
ea379330 303982010-01-17 Carles Pina i Estany <carles@pina.cat>
30399
30400 * util/misc.c (grub_util_info): Fix the order of the parameters in a
30401 fprintf call.
30402
e15c215e
FZ
304032010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
30404
30405 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
30406
409ae1c9 304072010-01-16 Carles Pina i Estany <carles@pina.cat>
30408
30409 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
30410 string.
30411 * util/grub-emu.c (usage): Likewise.
30412 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
30413 * util/i386/efi/grub-mkimage.c (usage): Likewise.
30414 * util/i386/pc/grub-mkimage.c (usage): Likewise.
30415 * util/i386/pc/grub-setup.c (usage): Likewise.
30416
70a14d3d 304172010-01-16 Carles Pina i Estany <carles@pina.cat>
30418
30419 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
30420 the message.
30421 (grub_util_info): Likewise.
30422 (grub_util_error): Likewise.
30423 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
30424 and/or new lines in `grub_util_warna', `grub_util_info',
30425 `grub_util_error' calls.
30426 * util/getroot.c: Likewise.
30427 * util/grub-editenv.c: Likewise.
30428 * util/grub-emu.c: Likewise.
30429 * util/grub-fstest.c: Likewise.
30430 * util/grub-mkdevicemap.c: Likewise.
30431 * util/grub-mkfont.c: Likewise.
30432 * util/grub-mkpasswd-pbkdf2.c: Likewise.
30433 * util/grub-mkrelpath.c: Likewise.
30434 * util/grub-pe2elf.c: Likewise.
30435 * util/grub-probe.c: Likewise.
30436 * util/hostdisk.c: Likewise.
30437 * util/i386/efi/grub-mkimage.c: Likewise.
30438 * util/i386/pc/grub-mkimage.c: Likewise.
30439 * util/i386/pc/grub-setup.c: Likewise.
30440 * util/ieee1275/ofpath.c: Likewise.
30441 * util/mkisofs/eltorito.c: Likewise.
30442 * util/mkisofs/rock.c: Likewise.
30443 * util/mkisofs/write.c: Likewise.
30444 * util/raid.c: Likewise.
30445 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
30446 * util/sparc64/ieee1275/grub-setup.c: Likewise.
30447
a0b766fc
VS
304482010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
30449
30450 Enable multiboot on non-pc.
30451
30452 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
30453 multiboot.mod and multiboot2.mod to ...
30454 * conf/i386.rmk (pkglib_MODULES): ... here.
30455 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
30456 Moved to ...
30457 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
30458 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
30459 Moved to ...
30460 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
30461 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
30462 Moved to ...
30463 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
30464 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
30465 Moved to ...
30466 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
30467 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
30468 relocator.mod.
30469 (ata_mod_SOURCES): Removed.
30470 (ata_mod_CFLAGS): Likewise.
30471 (ata_mod_LDFLAGS): Likewise.
30472 (relocator_mod_SOURCES): Removed.
30473 (relocator_mod_CFLAGS): Likewise.
30474 (relocator_mod_ASFLAGS): Likewise.
30475 (relocator_mod_LDFLAGS): Likewise.
30476 Include i386.mk.
30477 * include/grub/x86_64/multiboot.h: New file.
30478 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
30479 Terminate EFI.
30480
884ade56
VS
304812010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
30482
30483 Video multiboot support.
30484
30485 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
30486 New prototype.
30487 * include/multiboot.h: Resynced with multiboot specification.
30488 * include/multiboot2.h: Likewise.
30489 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
30490 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
30491 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
30492 (HAS_VGA_TEXT): Likewise.
30493 (accepts_video): New variable.
30494 (grub_multiboot_set_accepts_video): New function.
30495 (grub_multiboot_get_mbi_size): Account for video structures.
30496 (set_video_mode): New function.
30497 (retrieve_video_parameters): Likewise.
30498 (grub_multiboot_make_mbi): Fill video fields.
30499
0d90e8a6
VS
305002010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
30501
30502 Video driver ids.
30503
30504 * include/grub/video.h (grub_video_driver_id): New type.
30505 (grub_video_adapter): New member 'id'. All users updated.
30506 (grub_video_get_driver_id): New proto.
30507 * video/video.c (grub_video_get_driver_id): New function.
30508
5c71db1b 305092010-01-14 Carles Pina i Estany <carles@pina.cat>
30510
30511 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
30512 `var=val'.
30513
cca15b52 305142010-01-14 Carles Pina i Estany <carles@pina.cat>
30515
30516 * normal/cmdline.c (print_completion): Gettextizze.
30517
c586fbb2 305182001-01-14 Carles Pina i Estany <carles@pina.cat>
30519
30520 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
30521
ba2f6848 305222010-01-14 Carles Pina i Estany <carles@pina.cat>
30523
30524 * gettext/gettext.c (grub_gettext_translate): Push and pop
30525 grub_errno.
30526 (grub_gettext_delete_list): Change comment style.
30527 * kern/err.c (grub_error): Gettextizze.
30528 (grub_fatal): Gettextizze.
30529
0a46429a
RM
305302010-01-14 Robert Millan <rmh.grub@aybabtu.com>
30531
30532 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
30533 (grub_linux16_real_boot): ... this.
30534 * kern/i386/loader.S: Likewise.
30535 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
30536 (grub_linux16_boot): New function. Switches to text mode and calls
30537 grub_linux16_real_boot().
30538
30539 * loader/i386/bsd.c: Include `<grub/video.h>'.
30540 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
30541 text mode before calling grub_unix_real_boot().
30542
30543 * loader/i386/multiboot.c: Include `<grub/video.h>'.
30544 (grub_multiboot_boot): Switch to text mode before calling
30545 grub_relocator32_boot().
30546
30547 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
30548 (grub_chainloader_boot): Switch to text mode before calling
30549 grub_chainloader_real_boot().
30550
d6f93a66
RM
305512010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
305522010-01-05 Colin Watson <cjwatson@ubuntu.com>
30553
30554 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
30555 non-empty value.
30556
305572010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
305582010-01-05 Colin Watson <cjwatson@ubuntu.com>
30559
30560 * util/grub.d/00_header.in: Define a "savedefault" function for use
30561 in menu entries.
30562 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
30563
305642010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
305652010-01-05 Colin Watson <cjwatson@ubuntu.com>
30566
30567 * util/grub-mkconfig_lib.in (save_default_entry): Only set
30568 saved_entry if boot_once is unset.
30569 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
30570 previous saved entry (i.e. grub-reboot).
30571
305722009-12-08 Colin Watson <cjwatson@ubuntu.com>
30573
30574 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
30575
305762009-12-08 Colin Watson <cjwatson@ubuntu.com>
30577
30578 * util/grub.d/00_header.in: Use `set var=val' rather than plain
30579 `var=val'.
30580 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
30581
305822009-12-08 Colin Watson <cjwatson@ubuntu.com>
30583
30584 * util/grub-reboot.in: Fix --version output.
30585 * util/grub-set-default.in: Likewise.
30586
305872009-12-08 Colin Watson <cjwatson@ubuntu.com>
30588
30589 * util/grub.d/00_header.in: Silently ignore zero-sized environment
30590 blocks.
30591
305922009-12-08 Colin Watson <cjwatson@ubuntu.com>
30593
30594 * util/grub.d/00_header.in: Quote the value assigned to `default',
30595 in case it contains spaces.
30596
305972009-12-08 Colin Watson <cjwatson@ubuntu.com>
30598
30599 * util/grub.d/30_os-prober.in: Fix merge error that moved a
30600 `save_default_entry' call from the macosx case to the linux case.
30601
306022009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
306032009-10-25 Colin Watson <cjwatson@ubuntu.com>
30604
30605 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
30606 in `chosen' environment variable.
30607 * normal/menu_text.c (get_entry_number): Check if the variable
30608 matches the title of a menu entry.
30609 (run_menu): Pass menu to get_entry_number.
30610
30611 * util/grub-reboot.in: New file.
30612 * util/grub-set-default.in: New file.
30613 * conf/common.rmk (grub-reboot): New utility.
30614 (grub-set-default): New utility.
30615
30616 * util/grub-mkconfig_lib.in (save_default_entry): New function.
30617 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
30618 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
30619 move it to `saved_entry' for the next boot. Load environment on
30620 initialisation.
30621 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
30622 * util/grub.d/10_hurd.in: Likewise.
30623 * util/grub.d/10_linux.in (linux_entry): Likewise.
30624 * util/grub.d/10_windows.in: Likewise.
30625 * util/grub.d/30_os-prober.in: Likewise.
30626
30627 * util/grub-install.in: Create environment block.
30628 * util/i386/efi/grub-install.in: Likewise.
30629 * util/ieee1275/grub-install.in: Likewise.
30630 * util/sparc64/ieee1275/grub-install.in: Likewise.
30631
0934d184
BC
306322010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
30633
30634 Unit testing framework for GRUB.
30635
30636 * Makefile.in: Test framework build rules for 'make check'.
30637 * conf/tests.rmk: Build rules for individual tests and framework.
30638
30639 * include/grub/test.h: Header file for whitebox tests.
30640 * tests/lib/functional_test.c: Framework support for whitebox
30641 functional tests.
30642 * tests/lib/test.c: Common whitebox testing code for unit and
30643 functional tests.
30644 * tests/lib/unit_test.c: Framework support for whitebox unit
30645 tests.
30646
30647 * tests/util/grub-shell-tester.in: Support utility for grub-script
30648 tests.
30649 * tests/util/grub-shell.in: Utility to execute grub-script
30650 commands in a Qemu instance.
30651
30652 * tests/example_functional_test.c: Example whitebox functional
30653 test.
30654 * tests/example_grub_script_test.in: Example grub-script test.
30655 * tests/example_scripted_test.in: Example scripted test.
30656 * tests/example_unit_test.c: Example whitebox unit test.
30657
9c4ffeeb
VS
306582010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
30659
30660 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
30661 Add loader/i386/multiboot_mbi.c.
30662 (multiboot2_mod_SOURCES): Likewise.
30663 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
30664 (multiboot2_mod_SOURCES): Likewise.
30665 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
30666 (grub_multiboot_make_mbi): Likewise.
30667 (grub_multiboot_free_mbi): Likewise.
30668 (grub_multiboot_init_mbi): Likewise.
30669 (grub_multiboot_add_module): Likewise.
30670 (grub_multiboot_set_bootdev): Likewise.
30671 * loader/i386/multiboot.c (mbi): Removed.
30672 (mbi_dest): Likewise.
30673 (alloc_mbi): New variable.
30674 (grub_multiboot_payload_size): Removed. All users updated.
30675 (grub_multiboot_pure_size): New variable.
30676 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
30677 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
30678 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
30679 (grub_fill_multiboot_mmap): Likewise.
30680 (grub_multiboot_get_bootdev): Likewise.
30681 (grub_multiboot): Use multiboot_mbi functions.
30682 * loader/i386/multiboot_mbi.c: New file.
30683
17383dfe
VS
306842010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
30685
30686 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
30687 it would result in module crash.
30688
c1f28820
VS
306892010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
30690
30691 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
30692 (grub_ofconsole_getwh): Split to ...
30693 (grub_ofconsole_getwh): ... this.
30694 (grub_ofconsole_dimensions): ...and this.
30695 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
30696
58655a16
RM
306972010-01-13 Robert Millan <rmh.grub@aybabtu.com>
30698
30699 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
30700
10891398
VS
307012010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
30702
30703 * loader/i386/pc/multiboot2.c: Removed stalled file.
30704
0b8a223c
VS
307052010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
30706
30707 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
30708 Reported by: Grégoire Sutre
30709
92ab12b0
RM
307102010-01-11 Robert Millan <rmh.grub@aybabtu.com>
30711
30712 * util/misc.c (canonicalize_file_name): New function.
30713 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
30714 instead of realpath().
30715
a788afb6
CW
307162010-01-11 Colin Watson <cjwatson@ubuntu.com>
30717
30718 * util/grub-install.in (usage): Clarify meaning of --root-directory,
30719 and make it clearer that it's optional. Based on confusion
30720 witnessed on IRC.
30721
ffa8e3d2
VS
307222010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
30723
30724 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
30725 in premature implicit newline.
30726
e9060a9d
VS
307272010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
30728
30729 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
30730 which resulted in garbled command line at the end of screen.
30731
f0d0c0b7
RM
307322010-01-10 Robert Millan <rmh.grub@aybabtu.com>
30733
30734 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
30735 initialization with similar approach as with other Linux loaders.
30736
0e60bae7
RM
307372010-01-10 Robert Millan <rmh.grub@aybabtu.com>
30738
30739 Fix i386-ieee1275 build.
30740
30741 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
30742 and grub_term_height() for video_{width,height} initialization.
30743
307442010-01-10 Robert Millan <rmh.grub@aybabtu.com>
cdec4d31
RM
30745
30746 Fix grub-emu build.
30747
30748 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
30749
cdb3f378
RM
307502010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
307512010-01-09 Robert Millan <rmh.grub@aybabtu.com>
30752
30753 Support for multiple terminals.
30754
30755 * Makefile.in (pkglib_DATA): terminal.lst.
30756 (terminal.lst): New target.
30757 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
30758 (GRUB_MOD_INIT(handler)): Likewise.
30759 (GRUB_MOD_FINI(handler)): Likewise.
30760 * commands/help.c (grub_cmd_help): Handle multiple terminals.
30761 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
30762 * commands/sleep.c (do_print): Use grub_term_restore_pos.
30763 (grub_cmd_sleep): Use grub_term_save_pos.
30764 * commands/terminal.c: New file.
30765 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
30766 commands/terminal.c and lib/charset.c.
30767 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
30768 (pkglib_MODULES): Add terminal.mod.
30769 (terminal_mod_SOURCES): New variable.
30770 (terminal_mod_CFLAGS): Likewise.
30771 (terminal_mod_LDFLAGS): Likewise.
30772 * genhandlerlist.sh: Don't handle terminals.
30773 * genmk.rb: Generate terminal-*.lst.
30774 * genterminallist.sh: New file.
30775 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
30776 (grub_is_valid_utf8): Likewise.
30777 (grub_utf8_to_ucs4_alloc): Likewise.
30778 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
30779 (grub_menu_register_viewer): Changed argument.
30780 (grub_menu_try_text): New proto.
30781 (grub_gfxmenu_try_hook): New declaration.
30782 * include/grub/normal.h (grub_normal_exit_level): New declaration.
30783 (grub_menu_init_page): Additional argument term.
30784 (grub_normal_init_page): Likewise.
30785 (grub_cmdline_get): Arguments simplified.
30786 (grub_utf8_to_ucs4_alloc): Removed.
30787 (grub_print_ucs4): Additional argument term.
30788 (grub_getstringwidth): Likewise.
30789 (grub_print_message_indented): Likewise.
30790 (grub_menu_text_register_instances): New proto.
30791 (grub_show_menu): Likewise.
30792 (read_terminal_list): Likewise.
30793 (grub_set_more): Likewise.
30794 * include/grub/parser.h: Include handler.h.
30795 * include/grub/reader.h: Rewritten.
30796 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
30797 (GRUB_TERM_WIDTH): Changed to function.
30798 (GRUB_TERM_HEIGHT): Likewise.
30799 (GRUB_TERM_BORDER_WIDTH): Likewise.
30800 (GRUB_TERM_BORDER_HEIGHT): Likewise.
30801 (GRUB_TERM_NUM_ENTRIES): Likewise.
30802 (GRUB_TERM_ENTRY_WIDTH): Likewise.
30803 (GRUB_TERM_CURSOR_X): Likewise.
30804 (grub_term_input_class): Likewise.
30805 (grub_term_output_class): Likewise.
30806 (grub_term_outputs_disabled): New declaration.
30807 (grub_term_inputs_disabled): Likewise.
30808 (grub_term_outputs): Likewise.
30809 (grub_term_inputs): Likewise.
30810 (grub_term_register_input): Rewritten.
30811 (grub_term_register_output): Likewise.
30812 (grub_term_unregister_input): Likewise.
30813 (grub_term_unregister_output): Likewise.
30814 (FOR_ACTIVE_TERM_INPUTS): New macro.
30815 (FOR_DISABLED_TERM_INPUTS): Likewise.
30816 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
30817 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
30818 * include/grub/terminfo.h: Add oterm argument to all protypes.
30819 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
30820 Use grub_rescue_run.
30821 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
30822 All users updated.
30823 * kern/reader.c: Removed. All users updated.
30824 * kern/rescue_reader.c (grub_rescue_init): Removed.
30825 (grub_rescue_reader): Likewise.
30826 (grub_register_rescue_reader): Likewise.
30827 (grub_rescue_run): New function based on kern/reader.c.
30828 * kern/term.c: Adapted for multiterm.
30829 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
30830 (grub_is_valid_utf8): Likewise.
30831 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
30832 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
30833 right terminal.
30834 * loader/i386/linux.c (grub_linux_boot): Likewise.
30835 * normal/auth.c (grub_username_get): New function.
30836 (grub_auth_check_authentication): Use grub_username_get.
30837 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
30838 * normal/color.c: Adapt for multiterm.
30839 * normal/main.c (read_config_file): Don't use grub_reader_loop.
30840 (grub_normal_init_page): Additional argument term.
30841 (read_lists): Call read_terminal_lists.
30842 (grub_enter_normal_mode): Call grub_cmdline_run.
30843 Handle grub_normal_exit_level.
30844 (grub_cmd_normal): Make reentrant.
30845 (grub_cmd_normal_exit): New function.
30846 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
30847 * normal/menu.c: Adapt for multiterm.
30848 * normal/menu_entry.c: Likewise.
30849 * normal/menu_text.c: Likewise.
30850 * normal/menu_viewer.c: Removed. All users updated.
30851 * normal/term.c: New file.
30852 * util/console.c: Change order of includes to workaround a bug in
30853 ncurses headers.
30854 * term/terminfo.c: New argument oterm on all exported functions.
30855 All users updated.
30856 * util/grub-editenv.c (grub_term_input_class): Removed.
30857 (grub_term_output_class): Likewise.
30858
1a064917
RM
308592010-01-09 Robert Millan <rmh.grub@aybabtu.com>
30860
30861 Make loader output a bit more user-friendly.
30862
30863 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
30864 is being loaded. Likewise for the Hurd.
30865
30866 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
30867 that kernel of FreeBSD ${version} is being loaded.
30868
30869 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
30870 grub_dprintf().
30871 (grub_cmd_initrd): Likewise.
30872 * util/grub.d/10_linux.in (linux_entry): Print message indicating
30873 that Linux ${version} is being loaded. Likewise for initrd.
30874
5ce0a83a 308752010-01-09 Carles Pina i Estany <carles@pina.cat>
30876
30877 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
30878
809bbfeb 308792010-01-08 Carles Pina i Estany <carles@pina.cat>
30880
30881 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
30882 (GRUB_MOD_INIT): Gettextizze.
30883 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
30884 (GRUB_MOD_INIT): Gettextizze.
30885 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
30886 (grub_cmd_linux): Capitalise Linux.
30887 (GRUB_MOD_INIT): Gettextizze.
30888 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
30889 (grub_cmd_linux): Capitalise Linux.
30890 (GRUB_MOD_INIT): Gettextizze.
30891 * loader/i386/linux.c: Include `<grub/i18n.h>'.
30892 (grub_cmd_linux): Capitalise Linux.
30893 (GRUB_MOD_INIT): Gettextizze.
30894 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
30895 (GRUB_MOD_INIT): Gettextizze.
30896 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
30897 (grub_cmd_linux): Capitalise Linux.
30898 (GRUB_MOD_INIT): Gettextizze.
30899 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
30900 (grub_cpu_xnu_init): Gettextizze.
30901 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
30902 (GRUB_MOD_INIT): Gettextizze.
30903 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
30904 (GRUB_MOD_INIT): Gettextizze.
30905 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
30906 (grub_linux_load64): Capitalise Linux.
30907 (GRUB_MOD_INIT): Gettextizze.
30908 * loader/xnu.c: Include `<grub/i18n.h>'.
30909 (GRUB_MOD_INIT): Gettextizze.
30910 * po/POTFILES: Add `loader/efi/appleloader.c',
30911 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
30912 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
30913 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
30914 `loader/i386/xnu.c', `loader/multiboot_loader.c',
30915 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
30916 and `loader/xnu.c'.
30917
b394b2ca
RM
309182010-01-08 Robert Millan <rmh.grub@aybabtu.com>
30919
30920 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
30921
309222010-01-08 Robert Millan <rmh.grub@aybabtu.com>
cd943b75
RM
30923
30924 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
30925 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
30926 * util/mkisofs/mkisofs.c (main): Readjust --version output.
30927
bc8b32b3
RM
309282010-01-07 Robert Millan <rmh.grub@aybabtu.com>
30929
30930 Reset Multiboot 2 support. New loader implements the draft in
30931 /branches/multiboot2 and shares as much code as possible with the
30932 production Multiboot 1 implementation.
30933
30934 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
30935 * loader/multiboot2.c: Likewise.
30936 * loader/i386/multiboot_helper.S: Likewise.
30937 * include/multiboot2.h: Replace with latest version from the draft
30938 in /branches/multiboot2.
30939
30940 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
30941 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
30942 and `loader/multiboot2.c'.
30943 (pkglib_MODULES): Add `multiboot2.mod'.
30944 (multiboot2_mod_SOURCES): New variable.
30945 (multiboot2_mod_LDFLAGS): Likewise.
30946 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
30947
30948 * conf/i386-pc.rmk: Likewise.
30949
30950 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
30951 (multiboot_mod_SOURCES): Remove variable.
30952 (multiboot_mod_LDFLAGS): Likewise.
30953 (multiboot_mod_CFLAGS): Likewise.
30954
30955 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
30956 `<multiboot2.h>' instead of `<multiboot.h>'.
30957 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
30958 (MULTIBOOT_HEADER_MAGIC): New macros.
30959
30960 * loader/multiboot_loader.c (module_version_status): Remove variable.
30961 (find_multi_boot2_header): Remove function.
30962 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
30963 logic. Always check for the Multiboot version we're compiling for.
30964 (grub_cmd_module_loader): Likewise.
30965 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
30966 command instead of `multiboot'.
30967
5d2c52b8
RM
309682010-01-07 Robert Millan <rmh.grub@aybabtu.com>
30969
30970 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
30971 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
30972 all users.
30973
53108d92
RM
309742010-01-07 Robert Millan <rmh.grub@aybabtu.com>
309752010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
30976
30977 Fix breakage introduced with previous commit.
30978
30979 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
30980 commands.
30981 * normal/handler.c (read_handler_list): Revert part of previous commit
30982 affecting this file.
30983 * normal/main.c (read_lists): Move read_handler_list() call back to ...
30984 (grub_normal_execute): ... here.
30985
e2e936b2
RM
309862010-01-07 Robert Millan <rmh.grub@aybabtu.com>
30987
30988 Merge prefix-redefinition-fix branch.
30989
30990 * normal/autofs.c (read_fs_list): Make function capable of being
30991 run multiple times, gracefuly replacing the previous data
30992 structures.
30993 * normal/dyncmd.c (read_command_list): Likewise.
30994 * normal/handler.c (read_handler_list): Likewise.
30995 * normal/main.c (read_lists): New function. Calls all the
30996 list reading functions.
30997 (grub_normal_execute): Use read_lists() instead of calling all
30998 list reading functions explicitly. Register read_lists() as a
30999 variable hook attached to ${prefix}.
31000
607a3701
VS
310012010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
31002
31003 Merge crypto branch.
31004
31005 * Makefile.in (pkglib_DATA): Add crypto.lst.
31006 (crypto.lst): New target.
31007 * commands/hashsum.c: New file.
31008 * commands/password.c (check_password): Use grub_crypto_memcmp.
31009 * commands/password_pbkdf2.c: New file.
31010 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
31011 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
31012 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
31013 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
31014 -I$(srcdir)/lib/libgcrypt_wrap.
31015 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
31016 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
31017 password_pbkdf2.mod.
31018 (crypto_mod_SOURCES): New variable.
31019 (crypto_mod_CFLAGS): Likewise.
31020 (crypto_mod_LDFLAGS): Likewise.
31021 (hashsum_mod_SOURCES): New variable.
31022 (hashsum_mod_CFLAGS): Likewise.
31023 (hashsum_mod_LDFLAGS): Likewise.
31024 (pbkdf2_mod_SOURCES): New variable.
31025 (pbkdf2_mod_CFLAGS): Likewise.
31026 (pbkdf2_mod_LDFLAGS): Likewise.
31027 (password_pbkdf2_mod_SOURCES): New variable.
31028 (password_pbkdf2_mod_CFLAGS): Likewise.
31029 (password_pbkdf2_mod_LDFLAGS): Likewise.
31030 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
31031 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
31032 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
31033 Include conf/gcry.rmk.
31034 * include/grub/auth.h: Rewritten.
31035 * include/grub/crypto.h: New file.
31036 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
31037 * include/grub/normal.h (read_crypto_list): New prototype.
31038 * lib/crypto.c: New file.
31039 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
31040 * lib/pbkdf2.c: Likewise.
31041 * normal/auth.c (grub_auth_strcmp): Removed.
31042 (grub_iswordseparator): Likewise.
31043 (grub_auth_strword): Likewise.
31044 (is_authenticated): Use grub_strword.
31045 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
31046 and grub_strword. Pass entered password to authentication callback.
31047 * normal/crypto.c: New file.
31048 * normal/main.c: Call read_crypto_list.
31049 * util/grub-mkpasswd-pbkdf2.c: New file.
31050 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
31051
42841caa
VS
310522010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
31053
31054 Fix descent and ascent calculation.
31055
31056 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
31057 (options): New option "asce".
31058 (usage): Likewise.
31059 (add_char): Ignore invalid glyphs for descent calculation.
31060 Calculate ascent from actual content.
31061 (print_glyphs): Use 'asce'.
31062 (write_font): Likewise. Allow ascent override.
31063 (main): Handle "asce" option.
31064
e7730de7 310652010-01-06 Carles Pina i Estany <carles@pina.cat>
31066
31067 * kern/err.c: Include `<grub/i18n.h>'.
31068 (grub_print_error): Add full stop. Gettextizze.
31069 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
31070 (grub_bsd_load_elf): Capitalise ELF.
31071 (grub_cmd_freebsd_loadenv): Add `s' in error string.
31072 (grub_cmd_freebsd_module): Likewise.
31073 (grub_cmd_freebsd_module_elf): Likewise.
31074 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
31075
40e3a41f 310762010-01-06 Carles Pina i Estany <carles@pina.cat>
31077
31078 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
31079 * commands/search_file.c (HELP_MESSAGE): New macro.
31080 * commands/search_label.c (HELP_MESSAGE): Likewise.
31081 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
31082 * po/POTFILES: Add `commands/search_file.c',
31083 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
31084 `commands/search.c'.
31085
83507e68
RM
310862010-01-05 Robert Millan <rmh.grub@aybabtu.com>
31087
31088 * config.rpath: Update from Gnulib.
31089
465c787b
YB
310902010-01-05 Yves Blusseau <blusseau@zetam.org>
31091
31092 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
31093
6581dd3a
YB
310942010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
31095
31096 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
31097
3bff18c5
CW
310982010-01-05 Colin Watson <cjwatson@ubuntu.com>
31099
31100 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
31101 arguments to fread so that we get a return value in bytes, rather
31102 than something that will normally be rounded down to 0.
31103 Adjust error handling to avoid producing garbage when size_t is not
31104 the same size as long long.
31105
a1368118
CW
311062010-01-05 Colin Watson <cjwatson@ubuntu.com>
31107
31108 * util/mkisofs/write.c (padblock_write): Check return value of
31109 fread.
31110
7c302978
RM
311112010-01-05 Robert Millan <rmh.grub@aybabtu.com>
31112
31113 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
31114 floppy images now.
31115
31116 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
31117
e33ace06
RM
311182010-01-04 Robert Millan <rmh.grub@aybabtu.com>
31119
31120 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
31121 instead of manual alignment.
31122 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
31123 verbose). Avoid attempts to read past end of the device
31124 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
31125 but GRUB_DISK_CACHE_SIZE may exceed that).
31126
4b856776
RM
311272010-01-04 Robert Millan <rmh.grub@aybabtu.com>
31128
31129 * commands/crc.c (grub_cmd_crc): Abort on read errors.
31130 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
31131 it to upper layer.
31132
52c2d97f
VS
311332010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
31134
31135 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
31136 New constant.
31137 (grub_efi_piwg_device_path): New structure
31138 (grub_efi_piwg_device_path_t): New type.
31139 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
31140 (devpath_1): Transform to a structure. All users updated.
31141 (devpath_2): Likewise.
31142 (devpath_3): Likewise.
31143 (devpath_4): Likewise.
31144 (devpath_5): Likewise.
31145
98ff6a54
VS
311462010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
31147
31148 * loader/efi/appleloader.c: Restored. Update all users.
31149
3a73dcb6
RM
311502010-01-03 Robert Millan <rmh.grub@aybabtu.com>
31151
31152 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
31153
31154 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
31155 (struct boot_blocklist): Move from here ...
31156 * include/grub/i386/pc/boot.h [ASM_FILE]
31157 (struct grub_boot_blocklist): ... to here. Update all users.
31158 (setup): Only initialize `start' member of `first_block'
31159 structure. Add assert() calls to verify the other members.
31160
31161 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
31162 (generate_image): Fix broken blocklist length initialization.
31163 Add assert() call to verify blocklist `segment' field.
31164
ab0eeb0c
RM
311652010-01-03 Robert Millan <rmh.grub@aybabtu.com>
31166
31167 * loader/efi/appleloader.c: Remove. Update all users.
31168
58bc8bd5
RM
311692010-01-03 Robert Millan <rmh.grub@aybabtu.com>
31170
31171 * boot/i386/pc/boot.S: Update copyright year.
31172 * boot/i386/pc/cdboot.S: Likewise.
31173 * boot/i386/pc/diskboot.S: Likewise.
31174 * boot/i386/pc/lnxboot.S: Likewise.
31175 * boot/i386/pc/pxeboot.S: Likewise.
31176 * bus/pci.c: Likewise.
31177 * commands/cmp.c: Likewise.
31178 * commands/help.c: Likewise.
31179 * commands/hexdump.c: Likewise.
31180 * commands/i386/pc/halt.c: Likewise.
31181 * commands/i386/pc/play.c: Likewise.
31182 * commands/i386/pc/vbeinfo.c: Likewise.
31183 * commands/ls.c: Likewise.
31184 * commands/test.c: Likewise.
31185 * disk/dmraid_nvidia.c: Likewise.
31186 * disk/i386/pc/biosdisk.c: Likewise.
31187 * disk/ieee1275/nand.c: Likewise.
31188 * disk/ieee1275/ofdisk.c: Likewise.
31189 * disk/lvm.c: Likewise.
31190 * disk/raid.c: Likewise.
31191 * disk/raid6_recover.c: Likewise.
31192 * disk/scsi.c: Likewise.
31193 * fs/affs.c: Likewise.
31194 * fs/cpio.c: Likewise.
31195 * fs/ext2.c: Likewise.
31196 * fs/hfs.c: Likewise.
31197 * fs/iso9660.c: Likewise.
31198 * fs/ntfs.c: Likewise.
31199 * fs/sfs.c: Likewise.
31200 * fs/udf.c: Likewise.
31201 * fs/ufs.c: Likewise.
31202 * fs/xfs.c: Likewise.
31203 * gencmdlist.sh: Likewise.
31204 * genmk.rb: Likewise.
31205 * include/grub/disk.h: Likewise.
31206 * include/grub/efi/api.h: Likewise.
31207 * include/grub/efi/efi.h: Likewise.
31208 * include/grub/efi/pe32.h: Likewise.
31209 * include/grub/elf.h: Likewise.
31210 * include/grub/fs.h: Likewise.
31211 * include/grub/i386/at_keyboard.h: Likewise.
31212 * include/grub/i386/pc/memory.h: Likewise.
31213 * include/grub/i386/pc/vbe.h: Likewise.
31214 * include/grub/i386/pci.h: Likewise.
31215 * include/grub/i386/tsc.h: Likewise.
31216 * include/grub/ieee1275/ieee1275.h: Likewise.
31217 * include/grub/ntfs.h: Likewise.
31218 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
31219 * include/grub/sparc64/libgcc.h: Likewise.
31220 * include/grub/symbol.h: Likewise.
31221 * include/grub/types.h: Likewise.
31222 * include/multiboot2.h: Likewise.
31223 * io/gzio.c: Likewise.
31224 * kern/device.c: Likewise.
31225 * kern/disk.c: Likewise.
31226 * kern/efi/efi.c: Likewise.
31227 * kern/efi/mm.c: Likewise.
31228 * kern/elf.c: Likewise.
31229 * kern/file.c: Likewise.
31230 * kern/i386/dl.c: Likewise.
31231 * kern/i386/pc/init.c: Likewise.
31232 * kern/i386/pc/startup.S: Likewise.
31233 * kern/ieee1275/ieee1275.c: Likewise.
31234 * kern/ieee1275/init.c: Likewise.
31235 * kern/main.c: Likewise.
31236 * kern/mm.c: Likewise.
31237 * kern/powerpc/dl.c: Likewise.
31238 * kern/sparc64/dl.c: Likewise.
31239 * kern/x86_64/dl.c: Likewise.
31240 * lib/hexdump.c: Likewise.
31241 * loader/efi/appleloader.c: Likewise.
31242 * loader/i386/ieee1275/linux.c: Likewise.
31243 * loader/i386/pc/chainloader.c: Likewise.
31244 * loader/i386/pc/linux.c: Likewise.
31245 * loader/i386/pc/multiboot2.c: Likewise.
31246 * loader/ieee1275/multiboot2.c: Likewise.
31247 * loader/multiboot2.c: Likewise.
31248 * loader/multiboot_loader.c: Likewise.
31249 * loader/powerpc/ieee1275/linux.c: Likewise.
31250 * normal/completion.c: Likewise.
31251 * normal/menu_entry.c: Likewise.
31252 * partmap/apple.c: Likewise.
31253 * util/grub.d/10_hurd.in: Likewise.
31254 * util/hostfs.c: Likewise.
31255 * video/readers/png.c: Likewise.
31256
e2d70b5c
CW
312572010-01-03 Colin Watson <cjwatson@ubuntu.com>
31258
31259 * include/grub/misc.h (GNUC_PREREQ): New macro.
31260 (ATTRIBUTE_ERROR): New macro.
31261 * include/grub/list.h (grub_bad_type_cast_real): Use
31262 ATTRIBUTE_ERROR.
31263
a173283f 312642010-01-03 Carles Pina i Estany <carles@pina.cat>
31265
31266 * normal/menu_text.c (print_message): Change messages.
31267
7fa7ff74 312682010-01-03 Carles Pina i Estany <carles@pina.cat>
31269
31270 * normal/menu_entry.c (store_completion): Gettextizze.
31271
136d24f6 312722010-01-03 Carles Pina i Estany <carles@pina.cat>
31273
31274 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
31275
f936862e 312762010-01-03 Carles Pina i Estany <carles@pina.cat>
31277
31278 * po/POTFILES: Sort correctly.
31279
29c44ad1 312802010-01-03 Carles Pina i Estany <carles@pina.cat>
31281
31282 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
31283 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
31284 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
31285 full stop.
31286 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
31287 summary. Gettextizze the strings.
31288 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
31289 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
31290 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
31291 full stop.
31292 (GRUB_MOD_INIT): Remove command name from summary.
31293 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
31294 summary.
31295 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
31296 * term/i386/pc/serial.c (options): Add full stops.
31297 (GRUB_MOD_INIT): Remove command name from the summary.
31298
77a79592 312992010-01-03 Carles Pina i Estany <carles@pina.cat>
31300
31301 * commands/acpi.c: Gettextizze help strings and/or options. Include
31302 `grub/i18n.h' if needed.
31303 * commands/blocklist.c: Likewise.
31304 * commands/boot.c: Likewise.
31305 * commands/cat.c: Likewise.
31306 * commands/cmp.c: Likewise.
31307 * commands/configfile.c: Likewise.
31308 * commands/crc.c: Likewise.
31309 * commands/date.c: Likewise.
31310 * commands/echo.c: Likewise.
31311 * commands/efi/fixvideo.c: Likewise.
31312 * commands/efi/loadbios.c: Likewise.
31313 * commands/gptsync.c: Likewise.
31314 * commands/halt.c: Likewise.
31315 * commands/handler.c: Likewise.
31316 * commands/hdparm.c: Likewise.
31317 * commands/hexdump.c: Likewise.
31318 * commands/i386/cpuid.c: Likewise.
31319 * commands/i386/pc/drivemap.c: Likewise.
31320 * commands/i386/pc/halt.c: Likewise.
31321 * commands/i386/pc/pxecmd.c: Likewise.
31322 * commands/i386/pc/vbeinfo.c: Likewise.
31323 * commands/i386/pc/vbetest.c: Likewise.
31324 * commands/ieee1275/suspend.c: Likewise.
31325 * commands/keystatus.c: Likewise.
31326 * commands/loadenv.c: Likewise.
31327 * commands/ls.c: Likewise.
31328 * commands/lsmmap.c: Likewise.
31329 * commands/lspci.c: Likewise.
31330 * commands/memrw.c: Likewise.
31331 * commands/minicmd.c: Likewise.
31332 * commands/parttool.c: Likewise.
31333 * commands/password.c: Likewise.
31334 * commands/probe.c: Likewise.
31335 * commands/read.c: Likewise.
31336 * commands/reboot.c: Likewise.
31337 * commands/search.c: Likewise.
31338 * commands/sleep.c: Likewise.
31339 * commands/test.c: Likewise.
31340 * commands/true.c: Likewise.
31341 * commands/usbtest.c: Likewise.
31342 * commands/videotest.c: Likewise.
31343 * commands/xnu_uuid.c: Likewise.
31344 * disk/loopback.c: Likewise.
31345 * hello/hello.c: Likewise.
31346 * loader/i386/bsd.c: Likewise.
31347 * term/i386/pc/serial.c: Likewise.
31348 * po/POTFILES: Add new files.
31349
da8d5c53
CW
313502010-01-02 Colin Watson <cjwatson@ubuntu.com>
31351
31352 * term/i386/pc/at_keyboard.c
31353 (keyboard_controller_wait_untill_ready): Rename to ...
31354 (keyboard_controller_wait_until_ready): ... this. Update all users.
31355
33937904 313562010-01-01 Carles Pina i Estany <carles@pina.cat>
31357
31358 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
31359 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
31360 string using string width.
31361 * normal/menu_text.c (grub_print_message_indented): Use
31362 grub_print_spaces and not print_spaces.
31363 (print_timeout): Likewise.
31364 (print_spaces): Move to...
31365 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
31366
3fd3b8d8
RM
313672010-01-01 Robert Millan <rmh.grub@aybabtu.com>
31368
31369 Import from Gnulib.
31370
31371 * gnulib/getdelim.c: New file.
31372 * gnulib/getline.c: Likewise.
31373
33433555
VS
313742009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
31375
31376 * include/grub/list.h (grub_assert_fail): Removed.
31377 (grub_bad_type_cast_real): New function.
31378 (grub_bad_type_cast): New macro.
31379 (GRUB_AS_LIST): Use grub_bad_type_cast.
31380 (GRUB_AS_LIST_P): Likewise.
e44721e8 31381 (GRUB_AS_NAMED_LIST): Likewise.
33433555 31382 (GRUB_AS_NAMED_LIST_P): Likewise.
e44721e8 31383 (GRUB_AS_PRIO_LIST): Likewise.
33433555 31384 (GRUB_AS_PRIO_LIST_P): Likewise.
e44721e8 31385 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
33433555 31386
f5a51306
VS
313872009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
31388
31389 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
31390 Fix syntax error.
31391
90d1e879
RM
313922009-12-29 Robert Millan <rmh.grub@aybabtu.com>
31393
31394 * configure.ac: Check for TARGET_CFLAGS initialization before we
31395 initialize it ourselves (sigh).
31396 Move a few modifications to TARGET_CFLAGS to be unconditional
31397 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
31398 eh_frame)
31399
31400 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
31401 * term/i386/pc/at_keyboard.c
31402 (keyboard_controller_wait_untill_ready): Likewise.
31403 (keyboard_controller_led): Rename `led_status' paramter to avoid
31404 name conflict.
31405
465b5a81 314062009-12-28 Carles Pina i Estany <carles@pina.cat>
31407
31408 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
31409 quotes.
31410
c181849b
VS
314112009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
31412
31413 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
31414
9c8739a4
VS
314152009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
31416
31417 * normal/menu_text.c (grub_print_message_indented): Prevent
31418 past-the-end-of-array dereference.
31419
3e74249c
VS
314202009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
31421
31422 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
31423 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
31424
64fd18ed 314252009-12-27 Carles Pina i Estany <carles@pina.cat>
31426
31427 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
31428 * normal/main.c (grub_normal_read_line): Remove a space from the
31429 default prompt.
31430
714af9b9 314312009-12-27 Carles Pina i Estany <carles@pina.cat>
31432
31433 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
31434 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
31435 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
31436 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
31437 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
31438 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
31439 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
31440
82f3e412 314412009-12-26 Carles Pina i Estany <carles@pina.cat>
c541b01a 31442
31443 * video/readers/jpeg.c (cmd): Declare.
31444 (grub_cmd_jpegtest): Use `grub_command_t' type.
31445 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
31446 Assign to `cmd'.
31447 (GRUB_MOD_FINI): Use `cmd' to unregister.
31448 * video/readers/png.c (cmd): Declare.
31449 (grub_cmd_pngtest): Use `grub_command_t' type.
31450 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
31451 Assign to `cmd'.
31452 (GRUB_MOD_FINI): Use `cmd' to unregister.
31453 * video/readers/tga.c (cmd): Declare.
31454 (grub_cmd_tgatest): Use `grub_command_t' type.
31455 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
31456 Assign to `cmd'.
31457 (GRUB_MOD_FINI): Use `cmd' to unregister.
31458
82f3e412 314592009-12-26 Carles Pina i Estany <carles@pina.cat>
864ba2bb 31460
31461 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
31462 stops.
31463 * kern/corecmd.c (grub_register_core_commands): Likewise.
31464 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
31465 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
31466 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
31467 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
31468 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
31469 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
31470 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
31471 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
31472 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
31473 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
31474 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
31475 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
31476 * normal/handler.c (insert_handler): Likewise.
31477 * normal/main.c (GRUB_MOD_INIT): Likewise.
31478 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
31479
fdcdbb66 314802009-12-26 Carles Pina i Estany <carles@pina.cat>
31481
31482 * commands/help.c (grub_cmd_help): Print the command name before the
31483 summary.
31484 (GRUB_MOD_INIT): Remove command name from the summary.
31485 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
82f3e412 31486 string as summary.
fdcdbb66 31487 * lib/arg.c (find_long): Print the command name before the summary.
31488 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
31489 summary.
31490 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
31491 * commands/cat.c (GRUB_MOD_INIT): Likewise.
31492 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
31493 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
31494 * commands/crc.c (GRUB_MOD_INIT): Likewise.
31495 * commands/date.c (GRUB_MOD_INIT): Likewise.
31496 * commands/echo.c (GRUB_MOD_INIT): Likewise.
31497 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
31498 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
31499 * commands/handler.c (GRUB_MOD_INIT): Likewise.
31500 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
31501 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
31502 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
31503 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
31504 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
31505 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
31506 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
31507 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
31508 * commands/ls.c (GRUB_MOD_INIT): Likewise.
31509 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
31510 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
31511 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
31512 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
31513 * commands/password.c (GRUB_MOD_INIT): Likewise.
31514 * commands/probe.c (GRUB_MOD_INIT): Likewise.
31515 * commands/read.c (GRUB_MOD_INIT): Likewise.
31516 * commands/search.c (GRUB_MOD_INIT): Likewise.
31517 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
31518 * commands/test.c (GRUB_MOD_INIT): Likewise.
31519 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
31520 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
31521 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
31522 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
31523 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
31524 * lib/arg.c (GRUB_MOD_INIT): Likewise.
31525 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
31526 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
31527 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
31528 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
31529 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
31530 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
31531 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
31532 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
31533
9c288be2
VS
315342009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
31535
31536 Use search command for preliminar UUID search.
31537
31538 * commands/search.c: Split into ...
31539 * commands/search_wrap.c: ...this
31540 * commands/search.c: ...and this.
31541 * commands/search_file.c: New file.
31542 * commands/search_label.c: New file.
31543 * commands/search_uuid.c: New file.
31544 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
31545 Add commands/search_wrap.c, commands/search_file.c,
31546 commands/search_label.c and commands/search_uuid.c.
31547 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
31548 (search_mod_SOURCES): Set to commands/search_wrap.c.
31549 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
31550 search_label.mod.
31551 (search_fs_file_mod_SOURCES): New variable.
31552 (search_fs_file_mod_CFLAGS): Likewise.
31553 (search_fs_file_mod_LDFLAGS): Likewise.
31554 (search_label_mod_SOURCES): Likewise.
31555 (search_label_mod_CFLAGS): Likewise.
31556 (search_label_mod_LDFLAGS): Likewise.
31557 (search_fs_uuid_mod_SOURCES): New variable.
31558 (search_fs_uuid_mod_CFLAGS): Likewise.
31559 (search_fs_uuid_mod_LDFLAGS): Likewise.
31560 (fs_file_mod_SOURCES): Removed.
31561 (fs_file_mod_CFLAGS): Likewise.
31562 (fs_file_mod_LDFLAGS): Likewise.
31563 (fs_uuid_mod_SOURCES): Removed.
31564 (fs_uuid_mod_CFLAGS): Likewise.
31565 (fs_uuid_mod_LDFLAGS): Likewise.
31566 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
31567 Set to util/grub-install.in.
31568 * disk/fs_file.c: Removed.
31569 * disk/fs_uuid.c: Likewise.
31570 * include/grub/search.h: New file.
31571 * util/grub-install.in: Handle sparc64.
31572 Create and use load.cfg.
31573 * util/sparc64/ieee1275/grub-install.in: Removed.
31574
db943399
VS
315752009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
31576
31577 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
31578 Ignore return status if CF is cleared.
31579 (grub_biosdisk_get_diskinfo_standard): Likewise.
31580
3fdae612
RM
315812009-12-25 Robert Millan <rmh.grub@aybabtu.com>
31582
31583 * term/i386/pc/at_keyboard.c
31584 (keyboard_controller_wait_untill_ready): New function.
31585 (grub_keyboard_controller_write, grub_keyboard_controller_read)
31586 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
31587 for keyboard polling, rather than duplicate the same loop. This
31588 saves a few bytes in code size.
31589
7ebaa2b4
VS
315902009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
31591
31592 Support for (pxe[:server[:gateway]]) syntax and
31593 use environment variable for PXE.
31594
31595 * commands/i386/pc/pxecmd.c (options): Removed.
31596 (print_ip): Removed.
31597 (grub_cmd_pxe): Removed
31598 (grub_cmd_pxe_unload): New function.
31599 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
31600 (grub_pxe_your_ip): Made static.
31601 (grub_pxe_default_server_ip): Likewise.
31602 (grub_pxe_default_gateway_ip): Likewise.
31603 (grub_pxe_blksize): Likewise.
31604 (parse_ip): New function.
31605 (grub_pxe_open): Support server and gateway specification.
31606 (grub_pxe_close): Free disk->data.
31607 (grub_pxefs_open): Use disk->data.
31608 (grub_pxefs_read): Likewise.
31609 (grub_env_write_readonly): New function.
31610 (set_mac_env): Likewise.
31611 (set_env_limn_ro): Likewise.
31612 (parse_dhcp_vendor): Likewise.
31613 (grub_pxe_detect): Set the environment variables.
31614 (set_ip_env): New function.
31615 (write_ip_env): Likewise.
31616 (grub_env_write_pxe_default_server): Likewise.
31617 (grub_env_write_pxe_default_gateway): Likewise.
31618 (grub_env_write_pxe_blocksize): Likewise.
31619 (GRUB_MOD_INIT(pxe)): Set environment variables.
31620 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
31621 (grub_pxe_mac_addr_t): ... this. All users updated.
31622 (grub_pxe_your_ip): Removed.
31623 (grub_pxe_server_ip): Likewise.
31624 (grub_pxe_gateway_ip): Likewise.
31625 (grub_pxe_blksize): Likewise.
31626
ec5f98ab 316272009-12-25 Carles Pina i Estany <carles@pina.cat>
31628
31629 * commands/help.c: Include `<grub/i18n.h>'.
31630 (grub_cmd_help): Gettextizze.
31631 (GRUB_MOD_INIT): Likewise.
31632 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
31633 (GRUB_MOD_INIT): Gettextizze.
31634 * commands/search.c: Include `<grub/i18n.h>'.
31635 (options): Gettextizze.
31636 (GRUB_MOD_INIT): Gettextizze.
31637 * lib/arg.c: Include `<grub/i18n.h>'.
31638 (help_options): Gettextizze.
31639 (find_long): Likewise.
31640 (grub_arg_show_help): Likewise.
31641 * normal/dyncmd.c: Include `<grub/i18n.h>'.
31642 (read_command_list): Gettextizze.
31643 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
7ebaa2b4 31644 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
ec5f98ab 31645
22815526
RM
316462009-12-25 Robert Millan <rmh.grub@aybabtu.com>
31647
31648 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
31649 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
31650 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
31651 (led_status): New variable.
31652 (keyboard_controller_led): New function.
31653 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
31654 update led status for caps lock, num lock and scroll lock.
31655
0ad46fd7
FZ
316562009-12-25 Felix Zielcke <fzielcke@z-51.de>
31657
31658 * util/hostdisk.c (open_device): Fix a comment.
31659
d0e158c2
RM
316602009-12-24 Robert Millan <rmh.grub@aybabtu.com>
31661
31662 * util/grub-install.in (host_os): New variable.
31663 * util/i386/efi/grub-install.in (host_os): Likewise.
31664
401c0ad6
RM
316652009-12-24 Robert Millan <rmh.grub@aybabtu.com>
31666
31667 * util/mkisofs/write.c (padblock_write): Abort when given an
31668 excedingly large embed image, instead of silently truncating it.
31669
d14d3370
RM
316702009-12-24 Robert Millan <rmh.grub@aybabtu.com>
31671
31672 * include/multiboot.h: Indentation fixes.
31673
eeed10b4
RM
316742009-12-24 Robert Millan <rmh.grub@aybabtu.com>
31675
31676 * include/multiboot.h (struct multiboot_aout_symbol_table)
31677 (struct multiboot_elf_section_header_table): New structure
31678 declarations (stolen from GRUB Legacy).
31679 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
31680 table information.
31681
31682 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
31683 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
31684 type aliases.
31685
681c70ab
RM
316862009-12-24 Robert Millan <rmh.grub@aybabtu.com>
31687
31688 * include/multiboot.h: Make comments src2texi-friendly.
31689
e4d47d8d
RM
316902009-12-24 Robert Millan <rmh.grub@aybabtu.com>
31691
31692 For consistency with [multiboot]/docs/boot.S.
31693
31694 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
31695 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
31696 (MULTIBOOT_MAGIC2): Rename from this ...
31697 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
31698
a0b70bda
RM
316992009-12-24 Robert Millan <rmh.grub@aybabtu.com>
31700
31701 * include/multiboot.h: Remove `<grub/types.h>'.
31702 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
31703 types. Update all users.
31704
61ba42be 317052009-12-25 Carles Pina i Estany <carles@pina.cat>
31706
31707 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
31708 `couldn't' and `can not' by `cannot'.
31709 * commands/i386/pc/drivemap.c: Likewise.
31710 * disk/ata.c: Likewise.
31711 * disk/ieee1275/nand.c: Likewise.
31712 * fs/affs.c: Likewise.
31713 * fs/fat.c: Likewise.
31714 * fs/hfs.c: Likewise.
31715 * fs/hfsplus.c: Likewise.
31716 * fs/iso9660.c: Likewise.
31717 * fs/jfs.c: Likewise.
31718 * fs/minix.c: Likewise.
31719 * fs/reiserfs.c: Likewise.
31720 * fs/sfs.c: Likewise.
31721 * fs/udf.c: Likewise.
31722 * fs/ufs.c: Likewise.
31723 * fs/xfs.c: Likewise.
31724 * loader/powerpc/ieee1275/linux.c: Likewise.
31725 * loader/sparc64/ieee1275/linux.c: Likewise.
31726 * util/grub-probe.c: Likewise.
31727 * util/misc.c: Likewise.
31728
7fd0baee 317292009-12-24 Carles Pina i Estany <carles@pina.cat>
31730
31731 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
31732 grub_errno calls.
31733 * commands/acpi.c: Likewise.
31734 * commands/blocklist.c: Likewise.
31735 * commands/efi/loadbios.c: Likewise.
31736 * commands/i386/pc/drivemap.c: Likewise.
31737 * commands/loadenv.c: Likewise.
31738 * commands/memrw.c: Likewise.
31739 * commands/password.c: Likewise.
31740 * commands/videotest.c: Likewise.
31741 * disk/ata.c: Likewise.
31742 * disk/ata_pthru.c: Likewise.
31743 * disk/dmraid_nvidia.c: Likewise.
31744 * disk/ieee1275/nand.c: Likewise.
31745 * disk/ieee1275/ofdisk.c: Likewise.
31746 * disk/loopback.c: Likewise.
31747 * disk/lvm.c: Likewise.
31748 * disk/mdraid_linux.c: Likewise.
31749 * disk/raid.c: Likewise.
31750 * disk/raid6_recover.c: Likewise.
31751 * disk/scsi.c: Likewise.
31752 * efiemu/main.c: Likewise.
31753 * efiemu/mm.c: Likewise.
31754 * efiemu/pnvram.c: Likewise.
31755 * efiemu/symbols.c: Likewise.
31756 * font/font.c: Likewise.
31757 * fs/cpio.c: Likewise.
31758 * fs/hfsplus.c: Likewise.
31759 * fs/iso9660.c: Likewise.
31760 * fs/jfs.c: Likewise.
31761 * fs/minix.c: Likewise.
31762 * fs/ntfs.c: Likewise.
31763 * fs/ntfscomp.c: Likewise.
31764 * fs/reiserfs.c: Likewise.
31765 * fs/ufs.c: Likewise.
31766 * fs/xfs.c: Likewise.
31767 * gettext/gettext.c: Likewise.
31768 * include/grub/auth.h: Likewise.
31769 * kern/elf.c: Likewise.
31770 * kern/file.c: Likewise.
31771 * kern/ieee1275/init.c: Likewise.
31772 * kern/ieee1275/mmap.c: Likewise.
31773 * kern/ieee1275/openfw.c: Likewise.
31774 * kern/powerpc/dl.c: Likewise.
31775 * kern/sparc64/dl.c: Likewise.
31776 * lib/arg.c: Likewise.
31777 * loader/i386/bsd.c: Likewise.
31778 * loader/i386/bsdXX.c: Likewise.
31779 * loader/i386/efi/linux.c: Likewise.
31780 * loader/i386/efi/xnu.c: Likewise.
31781 * loader/i386/ieee1275/linux.c: Likewise.
31782 * loader/i386/linux.c: Likewise.
31783 * loader/i386/multiboot.c: Likewise.
31784 * loader/i386/pc/linux.c: Likewise.
31785 * loader/i386/pc/multiboot2.c: Likewise.
31786 * loader/i386/xnu.c: Likewise.
31787 * loader/ieee1275/multiboot2.c: Likewise.
31788 * loader/macho.c: Likewise.
31789 * loader/machoXX.c: Likewise.
31790 * loader/multiboot2.c: Likewise.
31791 * loader/multiboot_loader.c: Likewise.
31792 * loader/powerpc/ieee1275/linux.c: Likewise.
31793 * loader/sparc64/ieee1275/linux.c: Likewise.
31794 * loader/xnu.c: Likewise.
31795 * loader/xnu_resume.c: Likewise.
31796 * mmap/i386/pc/mmap.c: Likewise.
31797 * normal/menu_viewer.c: Likewise.
31798 * partmap/acorn.c: Likewise.
31799 * partmap/amiga.c: Likewise.
31800 * partmap/apple.c: Likewise.
31801 * script/lexer.c: Likewise.
31802 * term/gfxterm.c: Likewise.
31803 * term/i386/pc/serial.c: Likewise.
31804 * term/i386/pc/vga.c: Likewise.
31805 * term/ieee1275/ofconsole.c: Likewise.
31806 * term/terminfo.c: Likewise.
31807 * video/bitmap.c: Likewise.
31808 * video/efi_gop.c: Likewise.
31809 * video/efi_uga.c: Likewise.
31810 * video/fb/video_fb.c: Likewise.
31811 * video/i386/pc/vbe.c: Likewise.
31812 * video/readers/tga.c: Likewise.
31813 * video/video.c: Likewise.
31814
0ad46fd7 318152009-12-23 Felix Zielcke <fzielcke@z-51.de>
a2c1332b
FZ
31816
31817 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
31818 * commands/lspci.c: Likewise.
31819 * commands/probe.c: Likewise.
31820 * commands/xnu_uuid.c: Likewise.
31821 * conf/i386-coreboot.rmk: Likewise.
31822 * conf/i386-efi.rmk: Likewise.
31823 * conf/i386-ieee1275.rmk: Likewise.
31824 * conf/i386-pc.rmk: Likewise.
31825 * conf/powerpc-ieee1275.rmk: Likewise.
31826 * conf/sparc64-ieee1275.rmk: Likewise.
31827 * conf/x86_64-efi.rmk: Likewise.
31828 * fs/i386/pc/pxe.c: Likewise.
31829 * gettext/gettext.c: Likewise.
31830 * include/grub/efi/graphics_output.h: Likewise.
31831 * include/grub/i386/pc/memory.h: Likewise.
31832 * kern/env.c: Likewise.
31833 * kern/i386/qemu/startup.S: Likewise.
31834 * lib/i386/pc/biosnum.c: Likewise.
31835 * lib/i386/relocator.c: Likewise.
31836 * lib/i386/relocator_asm.S: Likewise.
31837 * lib/relocator.c: Likewise.
31838 * loader/i386/bsd.c: Likewise.
31839 * loader/i386/multiboot.c: Likewise.
31840 * loader/i386/pc/chainloader.c: Likewise.
31841 * loader/i386/xnu.c: Likewise.
31842 * loader/xnu.c: Likewise.
31843 * normal/main.c: Likewise.
31844 * normal/menu_text.c: Likewise.
31845 * util/getroot.c: Likewise.
31846 * util/grub-mkconfig_lib.in: Likewise.
31847 * util/grub.d/00_header.in: Likewise.
31848 * util/i386/pc/grub-mkimage.c: Likewise.
31849 * util/mkisofs/eltorito.c: Likewise.
31850 * util/mkisofs/exclude.h: Likewise.
31851 * util/mkisofs/hash.c: Likewise.
31852 * util/mkisofs/iso9660.h: Likewise.
31853 * util/mkisofs/joliet.c: Likewise.
31854 * util/mkisofs/mkisofs.c: Likewise.
31855 * util/mkisofs/mkisofs.h: Likewise.
31856 * util/mkisofs/multi.c: Likewise.
31857 * util/mkisofs/name.c: Likewise.
31858 * util/mkisofs/rock.c: Likewise.
31859 * util/mkisofs/tree.c: Likewise.
31860 * util/mkisofs/write.c: Likewise.
31861 * video/efi_gop.c: Likewise.
31862
009ec743
VS
318632009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
31864
31865 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
31866 size counting.
31867
0ad46fd7 318682009-12-22 Felix Zielcke <fzielcke@z-51.de>
990f3548
FZ
31869
31870 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
31871 * genmk.rb (class SCRIPT): Modify the target file instead of source.
31872
d3d30ea0
VS
318732009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
31874
31875 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
31876 (GRUB_MOD_INIT(memrw)): Update help line.
31877
a34f5c70
VS
318782009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
31879
31880 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
31881 Use grub_extcmd_t. All users updated.
31882 (options): New variable.
31883 (grub_cmd_read): Restructure for readability. Support "-v" option.
31884 (grub_cmd_write): Restructure for readability.
31885
0ad46fd7 318862009-12-22 Felix Zielcke <fzielcke@z-51.de>
67618ea6
FZ
31887
31888 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
31889
0ad46fd7 318902009-12-22 Felix Zielcke <fzielcke@z-51.de>
10a88797
FZ
31891
31892 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
31893 with the actual contents of the correspondending make variable.
31894 * util/grub-mkrescue.in (pkglib_DATA): New variable.
31895 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
31896 specifying `*.lst' and `efiemu??.o'
31897
0ad46fd7 318982009-12-22 Felix Zielcke <fzielcke@z-51.de>
7e70dfff
FZ
31899
31900 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
31901 after function name.
31902 Noticed by Rene Engelhard <rene@debian.org>.
31903
dc77a799
VS
319042009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
31905
31906 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
31907 (options): New variable.
31908 (iospace): Likewise.
31909 (grub_lspci_iter): List IO spaces if "-i" was given.
31910 (grub_cmd_lspci): Parse options.
31911 (GRUB_MOD_INIT(lspci)): Use extcmd.
31912 (GRUB_MOD_FINI(lspci)): Likewise.
31913
0ad46fd7 319142009-12-22 Felix Zielcke <fzielcke@z-51.de>
82000aa2
FZ
31915
31916 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
31917 `function' keyword.
31918 Patch by Tony Mancill <tmancill@debian.org>.
31919
b5d5993b
VS
319202009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
31921
31922 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
31923 (grub_uhci_portstatus): Likewise.
31924 (grub_uhci_portstatus): Add necessary delay.
11d18281 31925 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
b5d5993b 31926
941903f2 319272009-12-21 Carles Pina i Estany <carles@pina.cat>
b5d5993b 31928
941903f2 31929 * commands/acpi.c (options): Fix capitalizations and/or full stops.
31930 (GRUB_MOD_INIT): Likewise.
31931 * commands/boot.c (GRUB_MOD_INIT): Likewise.
cb04503e 31932 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
31933 * commands/echo.c (options): Fix capitalizations and/or full stops.
941903f2 31934 * commands/efi/loadbios.c (enable_rom_area): Likewise.
31935 (enable_rom_area): Likewise.
31936 (GRUB_MOD_INIT): Likewise.
31937 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
31938 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
31939 * commands/handler.c (GRUB_MOD_INIT): Likewise.
31940 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
31941 * commands/hexdump.c (options): Likewise.
31942 * commands/i386/cpuid.c (options): Likewise.
31943 (GRUB_MOD_INIT): Likewise.
31944 * commands/i386/pc/drivemap.c (options): Likewise.
31945 (GRUB_MOD_INIT): Likewise.
31946 * commands/i386/pc/halt (options): Likewise.
31947 (GRUB_MOD_INIT): Likewise.
31948 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
31949 * commands/i386/pc/pxecmd.c (options): Likewise.
31950 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
31951 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
31952 * commands/keystatus.c (options): Likewise.
31953 (GRUB_MOD_INIT): Likewise.
31954 * commands/loadenv.c (options): Likewise.
31955 * commands/ls.c (options): Likewise.
31956 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
31957 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
31958 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
31959 * commands/parttool.c (helpmsg): Likewise.
31960 * commands/probe.c (options): Likewise.
31961 * commands/read.c (GRUB_MOD_INIT): Likewise.
31962 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
31963 * commands/search.c (options): Likewise.
31964 * commands/sleep.c (options): Likewise.
31965 * commands/test.c (GRUB_MOD_INIT): Likewise.
31966 * commands/true.c (GRUB_MOD_INIT): Likewise.
31967 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
31968 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
31969 * lib/arg.c (help_options): Likewise.
e9bbb4e7 31970 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
31971 `$(XGETTEXT)'.
98a50553 31972 * po/POTFILES: Add `commands/loadenv.c'.
941903f2 31973
0ad46fd7 319742009-12-21 Felix Zielcke <fzielcke@z-51.de>
4dd13225 31975
ef3c2c3a 31976 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
4dd13225
FZ
31977 instead of specifying them explicit.
31978
7922f68b
RM
319792009-12-21 Robert Millan <rmh.grub@aybabtu.com>
31980
31981 * NEWS: Add grub-probe support for GNU/Hurd.
31982
537ce47f
RM
319832009-12-21 Robert Millan <rmh.grub@aybabtu.com>
31984
31985 * NEWS: gettext was added after 1.97.
31986
9b214e3a
RM
319872009-12-21 Robert Millan <rmh.grub@aybabtu.com>
31988
31989 * util/mkisofs/msdos_partition.h: New file (based on
31990 include/grub/msdos_partition.h).
31991 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
31992 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
31993 (ld_options, main): Recognize --protective-msdos-label.
31994 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
31995 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
31996 (padblock_write): If `use_protective_msdos_label' is set, patch a
31997 protective DOS-style label in the output image.
31998
31999 * util/grub-mkrescue.in: Use --protective-msdos-label.
32000
e9309813
RM
320012009-12-21 Robert Millan <rmh.grub@aybabtu.com>
32002
32003 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
32004 boot.
32005
0ae56929
RM
320062009-12-21 Robert Millan <rmh.grub@aybabtu.com>
32007
32008 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
32009 variables.
32010 (ld_options, main): Recognize `--embedded-boot'.
32011 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
32012 declarations.
32013 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
32014 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
32015 (padblock_write): Likewise. Rewrite to support embedded boot image.
32016
32017 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
32018 for BIOS-based disk boot instead of only ElTorito.
32019
b15937b1
RM
320202009-12-21 Robert Millan <rmh.grub@aybabtu.com>
32021
32022 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
32023 build (not needed for bootstrap).
32024
52cc3ce0
RM
320252009-12-21 Robert Millan <rmh.grub@aybabtu.com>
32026
32027 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
32028 from i386-pc build (not needed for bootstrap).
32029 Rewrite a pair of strings.
32030
36f5ff04
RM
320312009-12-21 Robert Millan <rmh.grub@aybabtu.com>
32032
32033 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
32034
973c6c85 320352009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
b07e53f0
VS
32036
32037 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
32038
05d21547
AB
320392009-12-21 Andreas Born <futur.andy@googlemail.com>
32040
32041 * kern/env.c (grub_env_context_open): Mark exported variable for
32042 reexport.
32043
0175d51f
AB
320442009-12-21 Andreas Born <futur.andy@googlemail.com>
32045
32046 * kern/env.c (grub_env_export): Create nonexistent variables before
32047 exporting.
32048
7f39d92f 320492009-12-20 Carles Pina i Estany <carles@pina.cat>
0175d51f 32050
7f39d92f 32051 * include/grub/auth.h: Include `<grub/i18n.h>'.
32052 (GRUB_GET_PASSWORD): Gettextizze string.
32053 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
32054 menu_text.c.
32055 (grub_utf8_to_ucs4_alloc): Fix indentation.
32056 (grub_print_ucs4): Likewise.
32057 (grub_getstringwidth): Likewise.
32058 (print_message_indented): New declaration.
32059 * normal/auth.c: Include `<grub/i18n.h>'.
32060 (grub_auth_check_authentication): Gettexttize string.
32061 * normal/cmdline.c: Include `<grub/i18n.h>'.
32062 (grub_cmdline_get): Gettextizze.
32063 * normal/color.c: Include `<grub/i18n.h>'.
32064 (grub_parse_color_name_pair): Gettexttize strings.
32065 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
32066 string (use `print_message_indented').
32067 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
32068 `include/grub/normal.h'.
32069 (print_message_indented): Renamed to ...
32070 (grub_print_message_indented): ... this. Remove `static' qualifer (now
32071 used in normal/main.c).
32072 (print_message): Use `grub_print_message_indented' instead of
32073 `print_message_indented'.
32074 (print_timeout): Likewise.
32075 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
32076 (grub_normal_print_device_info): Gettexttize strings.
32077 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
32078
3041d898
VS
320792009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
32080
32081 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
32082 of arguments. Return number of tokens and not arguments. All users
32083 updated.
32084
de15bf8e
VS
320852009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
32086
32087 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
32088 non-MSDOS paritions.
32089
e0a6ca52
VS
320902009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
32091
32092 * include/grub/types.h (UNUSED): Removed since it conflicts with
32093 NetBSD headers. All users changed to direct __attribute__ ((unused)).
32094 Reported by Grégoire Sutre.
32095
b99518d1 320962009-12-19 Carles Pina i Estany <carles@pina.cat>
32097
32098 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
32099 (grub_print_ucs4_alloc): Likewise.
32100 (grub_getstringwidth): Likewise.
32101 * normal/main.c (grub_normal_init_page): Gettextize version string.
32102 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
32103 (getstringwidth): Renamed to ...
32104 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
32105 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
32106 (grub_print_ucs4): Remove `static' qualifer (now used in
32107 normal/main.c).
32108 * po/POTFILES: Add normal/main.c.
32109
bfd5e52b 321102009-12-19 Carles Pina i Estany <carles@pina.cat>
32111
32112 * normal/menu_text.c (STANDARD_MARGIN): New macro.
32113 (print_message_indented): Add `margin_left' and `margin_right'
32114 parameters.
32115 (print_message): Update `print_message_indented' calls. Adds '\n' to the
32116 strings.
32117 (print_timeout): Use `print_message_indented' to print the message.
32118 Deletes `second_stage' parameter.
32119 (run_menu): Update `print_timeout' calls.
32120
5a1ad2b9
VS
321212009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
32122
32123 Fix console palette on OpenFirmware.
32124
32125 * term/ieee1275/ofconsole.c (MAX): Removed.
32126 (colors): Redone based on VGA palette.
32127 (grub_ofconsole_setcolor): Discard brightness bit since only 8
32128 colors are supported.
32129 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
32130
b045f00a
VS
321312009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
32132
32133 Fix potential EfiEmu double prepare.
32134
32135 * efiemu/main.c (prepared): New variable
32136 (grub_efiemu_unload): Set prepare to '0'.
32137 (grub_efiemu_prepare): Return if already prepared. Set prepared.
32138
32139 set_virtual_address_map support.
32140
32141 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
32142 prototype.
32143 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
32144 prototype.
32145 (grub_efiemu_crc32): Likewise.
32146 (grub_efiemu_crc64): Likewise.
32147 (grub_efiemu_set_virtual_address_map): Likewise.
32148 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
32149 New definition.
32150 (grub_autoefi_set_virtual_address_map): Likewise.
32151 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
32152 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
32153 Restructure flow to accomodate it.
32154 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
32155 (grub_efiemu_crc): Recompute CRC32.
32156 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
32157 (efiemu_ptv_relocated): ... this. Made global. All users updated.
32158 * efiemu/symbols.c (relocated_handle): New variable.
32159 (grub_efiemu_free_syms): Free relocated_handle.
32160 (grub_efiemu_alloc_syms): Allocate relocated_handle.
32161 (grub_efiemu_write_sym_markers): New function.
32162 (grub_efiemu_set_virtual_address_map): Likewise.
32163
32164 Newer XNU parameters.
32165
32166 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
32167 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
32168 (grub_xnu_fill_devicetree): New prototype.
32169 (grub_xnu_heap_real_start): New variable.
32170 * loader/xnu.c (get_name_ptr): New function.
32171 (grub_xnu_load_driver): Fill namelen and name.
32172
32173 64-bit xnu support.
32174
32175 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
32176 and 'loader/macho64.c'.
32177 * conf/i386-pc.rmk: Likewise.
32178 * conf/x86_64-efi.rmk: Likewise.
32179 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
32180 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
32181 * include/grub/macho.h (grub_macho_segment64): New structure.
32182 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
32183 (grub_macho_size32): ... to this.
32184 (grub_macho32_get_entry_point): Renamed from ...
32185 (grub_macho_get_entry_point32): ... to this.
32186 (grub_macho_contains_macho64): New prototype.
32187 (grub_macho_size64): Likewise.
32188 (grub_macho_get_entry_point64): Likewise.
32189 (grub_macho32_load): Renamed from ...
32190 (grub_macho_load32): ... to this.
32191 (grub_macho32_filesize): Renamed from ...
32192 (grub_macho_filesize32): ... to this.
32193 (grub_macho32_readfile): Renamed from ...
32194 (grub_macho_readfile32): ... to this.
32195 (grub_macho_filesize64): New prototype.
32196 (grub_macho_readfile64): Likewise.
32197 (grub_macho_parse32): Likewise.
32198 (grub_macho_parse64): Likewise.
32199 * loader/macho.c: Split into ...
32200 * loader/machoXX.c: ... and this. Replace 32 with XX.
32201 * loader/macho32.c: New file.
32202 * loader/macho64.c: Likewise.
32203 * loader/xnu.c (grub_xnu_is_64bit): New variable.
32204 (grub_cmd_xnu_kernel): Make 32-bit only.
32205 (grub_cmd_xnu_kernel64): New function.
32206 (grub_xnu_load_driver): Support Mach-O 64.
32207 (grub_cmd_xnu_mkext): Likewise.
32208 * util/grub.d/30_os-prober.in (osx_entry): New function.
32209 Generate entries for 64-bit boot too.
32210
32211 Eliminate ad-hoc tree format in XNU and EfiEmu.
32212
32213 * efiemu/main.c (grub_efiemu_prepare): Update comment.
32214 * efiemu/pnvram.c: Rewritten to use environment variables.
32215 All users updated.
32216
32217 Inline utf16_to_utf8.
32218
32219 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
32220 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
32221 All users updated.
32222 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
32223
32224 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
32225 * commands/usbtest.c (grub_usb_get_string): ... move here.
32226 (usb_print_str): Fix error handling.
32227 * include/grub/usb.h (grub_usb_get_string): Remove.
32228
32229 UTF-8 to UTF-16 transformation.
32230
32231 * conf/common.rmk (pkglib_MODULES): Add charset.mod
32232 (charset_mod_SOURCES): New variable.
32233 (charset_mod_CFLAGS): Likewise.
32234 (charset_mod_LDFLAGS): Likewise.
32235 * include/grub/utf.h: New file.
32236 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
32237
32238 Support for device properties.
32239
32240 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
32241 (grub_xnu_devprop_device_header): Likewise.
32242 (grub_xnu_devprop_device_descriptor): Likewise.
32243 (grub_xnu_devprop_add_device): New prototype.
32244 (grub_xnu_devprop_remove_device): Likewise.
32245 (grub_xnu_devprop_remove_property): Likewise.
32246 (grub_xnu_devprop_add_property_utf8): Likewise.
32247 (grub_xnu_devprop_add_property_utf16): Likewise.
32248 (grub_cpu_xnu_init): Likewise.
32249 (grub_cpu_xnu_fini): Likewise.
32250 (grub_cpu_xnu_unload): Likewise.
32251 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
32252 (property_descriptor): Likewise.
32253 (devices): New variable.
32254 (grub_xnu_devprop_remove_property): New function.
32255 (grub_xnu_devprop_add_device): Likewise.
32256 (grub_xnu_devprop_remove_device): Likewise.
32257 (grub_xnu_devprop_add_property): Likewise.
32258 (grub_xnu_devprop_add_property_utf8): Likewise.
32259 (grub_xnu_devprop_add_property_utf16): Likewise.
32260 (hextoval): Likewise.
32261 (grub_cpu_xnu_fill_devprop): Likewise.
32262 (grub_cmd_devprop_load): Likewise.
32263 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
32264 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
32265 (cmd_devprop_load): New variable.
32266 (grub_cpu_xnu_init): New function.
32267 (grub_cpu_xnu_fini): Likewise.
32268 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
32269 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
32270 (grub_cmd_xnu_devtree): Likewise.
32271 (hextoval): New function.
32272 (unescape): Likewise.
32273 (grub_xnu_fill_devicetree): Likewise.
32274
32275 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
32276 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
32277
0945f181
VS
322782009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
32279
32280 Workaround for broken ATI VBE.
32281
32282 * video/i386/pc/vbe.c (last_set_mode): New variable.
32283 (grub_vbe_set_video_mode): Set 'last_set_mode'.
32284 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
32285 (grub_video_vbe_setup): Don't check for reserved flag.
32286
0ad46fd7 322872009-12-17 Felix Zielcke <fzielcke@z-51.de>
0297aafb
FZ
32288
32289 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
32290 the `find' command.
32291
c179ebe4
VS
322922009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
32293
32294 UUID support for HFS.
32295
32296 * fs/hfs.c (grub_hfs_uuid): New function.
32297 (grub_hfs_fs): New value .uuid.
32298 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
32299
0ad46fd7 323002009-12-14 Felix Zielcke <fzielcke@z-51.de>
574cce0c
FZ
32301
32302 Fix a segfault with parsing unknown long options.
32303
32304 * util/grub-mkrelpath.c (options): Zero terminate it.
32305
c4a3e41a
CPE
323062009-12-13 Carles Pina i Estany <carles@pina.cat>
32307
32308 * include/grub/misc.h (grub_puts): New declaration.
32309 (grub_puts_): Likewise.
a22008a6 32310 * kern/misc.c (grub_puts): New definition.
c4a3e41a
CPE
32311 (grub_puts_): Likewise.
32312
2e8a7602
RM
323132009-12-13 Robert Millan <rmh.grub@aybabtu.com>
32314
32315 * util/grub-probe.c (probe): Improve error message.
32316
b50b77b9
RM
323172009-12-13 Robert Millan <rmh.grub@aybabtu.com>
32318
32319 * loader/i386/multiboot_elfxx.c
32320 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
32321 initialization.
32322
323232009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
32324
32325 Relocator framework
32326
32327 * loader/i386/xnu_helper.S: Removed. All users updated.
32328 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
32329 (relocator_mod_SOURCES): New variable.
32330 (relocator_mod_CFLAGS): Likewise.
32331 (relocator_mod_LDFLAGS): Likewise.
32332 (relocator_mod_ASFLAGS): Likewise.
32333 * conf/x86_64.rmk: Likewise.
32334 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
32335 (grub_multiboot_payload_entry_offset): Likewise.
32336 (grub_multiboot_forward_relocator): Likewise.
32337 (grub_multiboot_forward_relocator_end): Likewise.
32338 (grub_multiboot_backward_relocator): Likewise.
32339 (grub_multiboot_backward_relocator_end): Likewise.
32340 (grub_multiboot_payload_eip): New variable.
32341 (grub_multiboot_payload_orig): Likewise.
32342 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
32343 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
32344 * include/grub/i386/memory.h
32345 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
32346 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
32347 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
32348 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
32349 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
32350 * include/grub/i386/relocator.h: New file.
32351 * include/grub/x86_64/relocator.h: Likewise.
32352 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
32353 (XNU_RELOCATOR): New macro.
32354 (grub_xnu_launcher_start): Remove.
32355 (grub_xnu_launcher_end): Likewise.
32356 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
32357 (grub_xnu_heap_real_start): Remove.
32358 (grub_xnu_heap_start): Change to void *. All users updated.
32359 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
32360 * lib/i386/relocator.c: New file.
32361 * lib/i386/relocator_asm.S: Likewise.
32362 * lib/i386/relocator_backward.S: Likewise.
32363 * lib/mips/relocator.c: Likewise.
32364 * lib/mips/relocator_asm.S: Likewise.
32365 * lib/relocator.c: Likewise.
32366 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
32367 (entry): Removed.
32368 (playground): Likewise.
32369 (grub_multiboot_payload_orig): New variable.
32370 (grub_multiboot_payload_dest): Likewise.
32371 (grub_multiboot_payload_size): Likewise.
32372 (grub_multiboot_payload_eip): Likewise.
32373 (grub_multiboot_payload_esp): Likewise.
32374 (grub_multiboot_boot): Use grub_relocator32_boot.
32375 (grub_multiboot_unload): Free relocators.
32376 (grub_multiboot): Setup stack. Use relocators.
32377 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
32378 (grub_multiboot_load_elfXX): Use relocators.
32379 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
32380 (grub_multiboot_payload_size): Likewise.
32381 (grub_multiboot_payload_dest): Likewise.
32382 (grub_multiboot_payload_entry_offset): Likewise.
32383 (grub_multiboot_forward_relocator): Likewise.
32384 (grub_multiboot_backward_relocator): Likewise.
32385 (grub_multiboot_real_boot): Likewise.
32386 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
32387 (grub_xnu_entry_point): Likewise.
32388 (grub_xnu_arg1): Likewise.
32389 (grub_xnu_stack): Likewise.
32390 (grub_xnu_launch): Removed.
32391 (grub_xnu_boot_resume): New function.
32392 (grub_xnu_boot): Use relocators.
32393 * loader/i386/xnu_helper.S: Removed.
32394 * loader/xnu.c (grub_xnu_heap_start): New variable.
32395 (grub_xnu_heap_size): Likewise.
32396 (grub_xnu_heap_malloc): Use relocators.
32397 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
32398
29eb90c6
VS
323992009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
32400
32401 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
32402 anything.
32403
31027430
CPE
324042009-12-13 Carles Pina i Estany <carles@pina.cat>
32405
32406 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
32407 GRUB_ERR_NONE before calling grub_env_set.
32408
dc0c71d9
RM
324092009-12-12 Robert Millan <rmh@aybabtu.com>
32410
32411 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
32412 * genmk.rb (video): New variable.
32413 (CLEANFILES, VIDEOFILES): Add #{video}.
32414 (#{video}): New target rule.
32415 * genvideolist.sh: New file.
32416 * Makefile.in (pkglib_DATA): Add video.lst.
32417 (video.lst): New target rule.
32418 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
32419 `video.lst'.
32420 * util/grub.d/30_os-prober.in: Replace `vbe' with
32421 ${GRUB_VIDEO_BACKEND}.
32422
2a4bfcf0
RM
324232009-12-11 Robert Millan <rmh.grub@aybabtu.com>
32424
32425 * THANKS: Add David Miller.
32426
2a3aa4d5
RM
324272009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
32428
32429 libpciaccess support.
32430
32431 * Makefile.in (LIBPCIACCESS): New variable.
32432 (enable_grub_emu_pci): Likewise.
32433 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
32434 util/pci.c and commands/lspci.c.
32435 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
32436 * configure.ac (grub-emu-pci): New option.
32437 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
32438 (grub_pci_device_unmap_range): Likewise.
32439 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
32440 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
32441 (grub_pci_address_t) [!GRUB_UTIL]: New type.
32442 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
32443 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
32444 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
32445 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
32446 * include/grub/pciutils.h: New file.
32447 * util/pci.c: Likewise.
32448
0ad46fd7 324492009-12-11 Felix Zielcke <fzielcke@z-51.de>
8d0502d9
FZ
32450
32451 * util/misc.c: Don't include <errno.h> twice.
32452
0ad46fd7 324532009-12-10 Felix Zielcke <fzielcke@z-51.de>
0d56ed64
FZ
32454
32455 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
32456 name in an error message.
32457 (grub_biosdisk_rw): Likewise.
32458
2e59983c
VS
324592009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
32460
32461 Eliminate NTFS 4Gib barrier.
32462
32463 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
32464 (read_run_data): Likewise.
32465 (grub_ntfs_read_run_list): Likewise.
32466 (grub_ntfs_read_block): Likewise.
32467 (grub_ntfs_iterate_dir): Likewise.
32468 (read_mft): Likewise.
32469 (read_data): Likewise.
32470 Use COM_LOG_LEN.
32471 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
32472 to avoid 64-bit division
32473 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
32474 (grub_ntfs_rlst): Use grub_disk_addr_t.
32475
71ee178a
VS
324762009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
32477
32478 Eliminate grub-fstest 4Gib barrier.
32479
32480 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
32481 (read_file): Fix error reporting.
32482
2520d4b8
VS
324832009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
32484
32485 Eliminate hexdump 4Gib barrier.
32486
32487 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
32488 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
32489
e1f27065
VS
324902009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
32491
32492 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
32493 Fixes amarsh bug.
32494
1a0f7f45
RM
324952009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
32496
32497 Remove miscellaneous files in distclean target.
32498
32499 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
32500
c631d9fb
CW
325012009-12-09 Colin Watson <cjwatson@ubuntu.com>
32502
32503 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
32504 if they're already set. This resolves the conflict between my
32505 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
32506 fixing the --grub-probe option again.
32507 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
32508 change on 2009-10-06, so that we now once again source
32509 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
32510
7c7b6106
RM
325112009-12-08 Robert Millan <rmh.grub@aybabtu.com>
32512
32513 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
32514 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
32515 `util/devicemap.c'.
32516
e3069ec1
CPE
325172009-12-08 Carles Pina i Estany <carles@pina.cat>
32518
32519 * include/grub/misc.h (grub_printf_): New declaration.
32520 * kern/misc.c (grub_printf_): New definition.
32521 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
32522 instead of `grub_printf' and `_'.
32523 * normal/menu_entry.c (store_completion): Likewise.
32524 (run): Likewise.
32525 (grub_menu_entry_run): Likewise.
32526 * normal/menu_text.c (grub_wait_after_message): Likewise.
32527 (notify_booting): Likewise.
32528 (notify_fallback): Likewise.
32529 (notify_execution_failure): Likewise.
32530
d6ceebf1
CW
325312009-12-07 Colin Watson <cjwatson@ubuntu.com>
32532
32533 * configure.ac: Check for vasprintf.
32534 * util/misc.c (asprintf): Move allocation from here ...
32535 (vasprintf): ... to here. New function.
32536 (xasprintf): New function.
32537 * include/grub/util/misc.h (vasprintf, xasprintf): Add
32538 prototypes.
32539 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
32540 * util/grub-mkfont.c (write_font): Likewise.
32541 * util/grub-probe.c (probe): Likewise.
32542 * util/hostdisk.c (make_device_name): Likewise.
32543
de6daa8b
DM
325442009-12-06 David S. Miller <davem@sunset.davemloft.net>
32545
32546 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
32547 anything even prefixed with 'cdrom' as a cdrom.
32548
0ad46fd7 325492009-12-06 Felix Zielcke <fzielcke@z-51.de>
df91e679
FZ
32550
32551 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
32552 mount points.
32553
98d3dc02
CPE
325542009-12-05 Carles Pina i Estany <carles@pina.cat>
32555
32556 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
32557 grub_gettext_msg_list.
32558 (grub_gettext_gettranslation_from_position): Return const char *
32559 and not char *.
a2c1332b 32560 (grub_gettext_translate): Add the translated strings into a list,
98d3dc02
CPE
32561 returns from the list if existing there.
32562 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
32563 (grub_gettext_delete_list): Delete the list.
32564 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
32565 lang environment variable is changed.
32566 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
32567
b283f108
VS
325682009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
32569
32570 Rename kernel.mod to kernel.img.
32571
32572 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
32573 (kernel_mod_EXPORTS): Rename to ...
32574 (kernel_img_EXPORTS): ... this.
32575 (kernel_mod_SOURCES): Rename to ...
32576 (kernel_img_SOURCES): ... this.
32577 (kernel_mod_HEADERS): Rename to ...
32578 (kernel_img_HEADERS): ... this. All users updated.
32579 (kernel_mod_CFLAGS): Rename to ...
32580 (kernel_img_CFLAGS): ... this.
32581 (kernel_mod_ASFLAGS): Rename to ...
32582 (kernel_img_ASFLAGS): ... this.
32583 (kernel_mod_LDFLAGS): Rename to ...
32584 (kernel_img_LDFLAGS): ... this.
32585 * conf/x86_64-efi.rmk: Likewise.
32586 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
32587 (read_kernel_image): ... this. All users updated.
32588 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
32589
69055f8a
CPE
325902009-12-05 Carles Pina i Estany <carles@pina.cat>
32591
32592 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
32593 (print_spaces): New function.
32594 (grub_print_ucs4): New function.
32595 (getstringwidth): New function.
32596 (print_message_indented): New function.
32597 (print_message): Gettexttize strings using print_message_indented.
32598 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
32599 width.
32600 (get_entry_number): Gettextize and uses dynamic terminal width.
a2c1332b 32601 (notify_booting, notify_fallback, notify_execution_failure):
69055f8a
CPE
32602 Gettextize.
32603 * normal/menu_entry.c (store_completion): Cleanup the gettextized
32604 string.
32605 (run): Likewise.
32606 (grub_menu_entry_run): Likewise.
32607 * PO/POTFILES: Add normal/menu_entry.c.
32608
f616f51c
VS
326092009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
32610
32611 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
32612
57bbe3be
CPE
326132009-12-05 Carles Pina i Estany <carles@pina.cat>
32614
32615 * util/grub-install.in: Install gettext .mo files.
32616 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
32617
013d67a1
CPE
326182009-12-05 Carles Pina i Estany <carles@pina.cat>
32619
32620 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
32621 grub_dprintf.
32622
fb954db0
RM
326232009-12-05 Robert Millan <rmh.grub@aybabtu.com>
32624
32625 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
32626 non-firmware-dependant one in realmode.S takes precedence.
32627
6b8474f8
RM
326282009-12-04 Robert Millan <rmh.grub@aybabtu.com>
32629
32630 * commands/halt.c: Replace misc arch-specific headers with
32631 `<grub/misc.h>'.
32632 * commands/reboot.c: Likewise.
32633 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
32634 `<grub/misc.h>'.
32635 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
32636 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
32637 (kernel_img_SOURCES): ... to here.
32638
32639 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
32640 * include/grub/i386/pc/init.h: Likewise.
32641 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
32642 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
32643
32644 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
32645
32646 * include/grub/i386/halt.h: Remove.
32647 * include/grub/i386/reboot.h: Likewise.
32648
32649 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
32650
4b2e6ca2
DM
326512009-12-03 David S. Miller <davem@sunset.davemloft.net>
32652
32653 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
32654 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
32655 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
32656 "progname.h"
32657 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
32658 * util/sparc64/ieee1275/grub-setup.c: Likewise.
32659 (usage): Add missing comma in printf.
32660
5239348f
RM
326612009-12-02 Robert Millan <rmh.grub@aybabtu.com>
32662
32663 Use the same reboot approach on i386 coreboot and qemu as we do on
32664 BIOS.
32665
32666 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
32667 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
32668 * kern/i386/reboot.c: Remove.
32669 * include/grub/i386/reboot.h (grub_reboot): Export function.
32670 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
32671 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
32672 0xf000:0xfff0 instead of 0xffff:0x0000.
32673 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
32674 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
32675
ef34cbd4
RM
326762009-11-30 Robert Millan <rmh.grub@aybabtu.com>
32677
32678 Fix $srcdir != $objdir build.
32679
32680 * Makefile.in (po/%.po): Rewrite as ...
32681 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
32682
dc9837ea
ST
326832009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
32684
32685 Fix GNU/Hurd grub-install crash.
32686 * util/grub-probe.c (probe): Try to access `path' only when it is not
32687 NULL.
32688
2f857f98
VS
326892009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
32690
32691 Correct module naming.
32692
32693 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
32694 (GRUB_MOD_INIT(efi_uga)): ... to this
32695 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
32696 (GRUB_MOD_FINI(efi_uga)): ... to this
32697 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
32698 (GRUB_MOD_INIT(efi_gop)): ... to this
32699 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
32700 (GRUB_MOD_FINI(efi_gop)): ... to this
32701
c5448046
RM
327022009-11-28 Robert Millan <rmh.grub@aybabtu.com>
32703
32704 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
32705 translatable.
32706 (usage): Translate `arg' strings using gettext().
32707 Thanks to Jordi Mallach for the suggestion.
32708
c85184ad
VS
327092009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
32710
32711 GOP support. Based on patch from Bean
32712 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
32713
32714 * video/efi_gop.c: New file.
32715 * include/grub/efi/graphics_output.h: Likewise.
32716 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
32717 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
32718 variables.
32719 * conf/x86_64-efi.rmk: Likewise.
32720
8a4c48d8
VS
327212009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
32722
32723 Rename efi_fb to efi_uga.
32724
32725 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
32726 'efi_uga.mod'.
32727 (efi_fb_mod_SOURCES): Rename this ...
32728 (efi_uga_mod_SOURCES): ... to this.
32729 (efi_fb_mod_CFLAGS): Rename this ...
32730 (efi_uga_mod_CFLAGS): ... to this.
32731 (efi_fb_mod_LDFLAGS): Rename this ...
32732 (efi_uga_mod_LDFLAGS): ... to this.
32733 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
32734 'efi_uga.mod'.
32735 (efi_fb_mod_SOURCES): Rename this ...
32736 (efi_uga_mod_SOURCES): ... to this.
32737 (efi_fb_mod_CFLAGS): Rename this ...
32738 (efi_uga_mod_CFLAGS): ... to this.
32739 (efi_fb_mod_LDFLAGS): Rename this ...
32740 (efi_uga_mod_LDFLAGS): ... to this.
32741 * video/efi_fb.c: Move this ...
32742 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
32743
fb6c1a7b
RM
327442009-11-27 Robert Millan <rmh.grub@aybabtu.com>
32745
32746 * po/README: New file. Explain our PO file workflow.
32747
3bc7896c
RM
327482009-11-27 Robert Millan <rmh.grub@aybabtu.com>
32749
32750 * po/ChangeLog: Remove. Move relevant entries back to ...
32751 * ChangeLog: ... here.
32752 * po/ca.po: Remove (now handled by TLP).
32753 * po/id.po: Likewise.
32754 * po/zh_CN.po: Likewise.
32755 * Makefile.in (LINGUAS): Initialize in a way that supports
32756 empty set.
32757
9ed4841d
RM
327582009-11-27 Robert Millan <rmh.grub@aybabtu.com>
32759
32760 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
32761 reliing on po/LINGUAS.
32762 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
32763 (po/%.po): ... this.
32764
0ad46fd7 327652009-11-26 Felix Zielcke <fzielcke@z-51.de>
242668a2
FZ
32766
32767 * util/i386/efi/grub-mkimage.c: Include "progname.h".
32768 (main): Use `program_name' instead of nonexistent `progname'.
32769
e30dd392
FZ
327702009-11-26 Felix Zielcke <fzielcke@z-51.de>
32771
32772 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
32773 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
32774
7656de4f
RM
327752009-11-26 Robert Millan <rmh.grub@aybabtu.com>
32776
32777 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
32778 commit.
32779 * conf/i386-efi.rmk: Likewise.
32780 * conf/i386-ieee1275.rmk: Likewise.
32781 * conf/powerpc-ieee1275.rmk: Likewise.
32782 * conf/sparc64-ieee1275.rmk: Likewise.
32783 * conf/x86_64-efi.rmk: Likewise.
32784
db77c4d4
FZ
327852009-11-26 Felix Zielcke <fzielcke@z-51.de>
32786
32787 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
32788
a755bb04
FZ
327892009-11-26 Felix Zielcke <fzielcke@z-51.de>
32790
32791 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
32792
8a4c07fd
RM
327932009-11-26 Robert Millan <rmh.grub@aybabtu.com>
32794
32795 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
32796 (grub_mkdevicemap_SOURCES): New variable.
32797 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
32798 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
32799 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
32800 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
32801 (grub_mkdevicemap_SOURCES): Remove.
32802 * conf/i386-efi.rmk: Likewise.
32803 * conf/i386-ieee1275.rmk: Likewise.
32804 * conf/i386-pc.rmk: Likewise.
32805 * conf/powerpc-ieee1275.rmk: Likewise.
32806 * conf/sparc64-ieee1275.rmk: Likewise.
32807 * conf/x86_64-efi.rmk: Likewise.
32808 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
32809 (usage): Fix strings to use `program_name'.
32810 (main): Initialize gettext.
32811 * util/grub-editenv.c: Likewise.
32812 * util/grub-emu.c: Likewise.
32813 * util/grub-fstest.c: Likewise.
32814 * util/grub-mkdevicemap.c: Likewise.
32815 * util/grub-mkfont.c: Likewise.
32816 * util/grub-mkrelpath.c: Likewise.
32817 * util/grub-pe2elf.c: Likewise.
32818 * util/grub-probe.c: Likewise.
32819 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
32820 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
32821 * util/sparc64/ieee1275/grub-setup.c: Likewise.
32822
32823 * util/misc.c: Include `"progname.h"'.
32824 (progname): Remove variable.
32825 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
32826
6f61ed55
FZ
328272009-11-25 Felix Zielcke <fzielcke@z-51.de>
32828
32829 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
32830 printf and print a newline after the menuentry header line.
32831 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
32832
f022876b
FZ
328332009-11-25 Felix Zielcke <fzielcke@z-51.de>
32834
32835 autoconf >= 2.60 support $(localedir).
32836
32837 * INSTALL: Note that autoconf 2.60 is required.
32838 * configure.ac (AC_PREREQ): Bump to 2.60.
32839 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
32840 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
32841
6717926e
YB
328422009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
32843
32844 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
32845 aclocal is run.
32846
08806a54
RM
328472009-11-25 Robert Millan <rmh.grub@aybabtu.com>
32848
32849 * normal/main.c (grub_normal_read_line): Fix off-by-one
32850 buffer overflow.
32851
13b33fba
RM
328522009-11-25 Robert Millan <rmh.grub@aybabtu.com>
32853
32854 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
32855 "parser.grub" in grub_command_execute() call.
32856
4a8572e9
CPE
328572009-11-24 Carles Pina i Estany <carles@pina.cat>
32858
32859 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
32860 * conf/i386-efi.rmk: Likewise.
32861 * conf/i386-ieee1275.rmk: Likewise.
32862 * conf/i386-pc.rmk: Likewise.
32863 * conf/powerpc-ieee1275.rmk: Likewise.
32864 * conf/sparc64-ieee1275.rmk: Likewise.
32865 * conf/x86_64-efi.rmk: Likewise.
32866 * gettext/gettex.c: Include <grub/i18n.h>.
32867 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
32868 here ...
32869 * include/grub/i18n.h: ... to here
32870 * include/grub/i18n.h: ... to here.
32871 * kern/misc.c: Include <grub/i18n.h>
a2c1332b 32872 (grub_gettext_dummy): Move above user.
4a8572e9 32873
bee48093
FZ
328742009-11-24 Felix Zielcke <fzielcke@z-51.de>
32875
32876 * util/Makefile.in (install-local): Convert a `for' into a normal
32877 shell expansion.
32878
a031e91c
RM
328792009-11-24 Robert Millan <rmh.grub@aybabtu.com>
32880
32881 * autogen.sh: Add automake call.
32882 * config.guess: Remove.
32883 * config.sub: Likewise.
32884 * install-sh: Likewise.
32885
26bec39d
FZ
328862009-11-24 Felix Zielcke <fzielcke@z-51.de>
32887
32888 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
32889
8e2532fd
FZ
328902009-11-24 Felix Zielcke <fzielcke@z-51.de>
32891
32892 * util/Makefile.in (install-local): Convert a make `$(foreach)'
32893 function to a normal shell `for'.
32894
fefa1b7d
FZ
328952009-11-24 Felix Zielcke <fzielcke@z-51.de>
32896
32897 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
32898
4501250b
FZ
328992009-11-24 Felix Zielcke <fzielcke@z-51.de>
32900
32901 * util/grub-mkrelpath.c: New file.
32902 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
32903 (grub_mkrelpath_SOURCES): New variable.
32904 * include/grub/util/misc.h: New function prototype.
32905 * util/misc.c (make_system_path_relative_to_its_root): New function.
32906
32907 * util/grub-mkconfig_lib.in (bindir): New variable.
32908 (grub_mkrelpath): Likewise.
32909 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
32910
32911 * util/probe.c (probe): Make the file path relative to its root.
32912 Change a info message to use the GRUB path. Enable again the
32913 check if we can read the file with GRUB facilities.
32914
32915 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
32916 to its root.
32917
11d9778b
FZ
329182009-11-24 Felix Zielcke <fzielcke@z-51.de>
32919
32920 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
32921 platform.
32922
4465287d
FZ
329232009-11-24 Felix Zielcke <fzielcke@z-51.de>
32924
32925 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
32926 strncmp().
32927
62b47f22
FZ
329282009-11-24 Felix Zielcke <fzielcke@z-51.de>
32929
32930 * util/getroot.c (grub_util_is_dmraid): New function.
32931 (grub_util_get_dev_abstraction): Treat dmraid and multipath
32932 devices as normal ones, not as LVM.
32933
1eafb9b9 329342009-11-23 Carles Pina i Estany <carles@pina.cat>
c3ea6bd4
CPE
32935
32936 * conf/common.rmk: Add grub-gettext_lib target and updates
32937 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
32938 LDFLAGS.
32939 * gettext/gettext.c: New file. (Reads mo files).
32940 * include/grub/file.h (grub_file_pread): New prototype.
32941 * include/grub/i18n.h (_): New prototype.
32942 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
32943 prototypes.
32944 * kern/misc.c (grub_gettext_dummy): New function.
32945 * normal/menu_text.c: Include <grub/i18n.h>.
32946 * normal/menu_text.c (print_timeout): Gettexttize string.
32947 * normal/menu_text.c (print_message): Gettexttize string.
3bc7896c
RM
32948 * po/POTFILES: Add `normal/menu_text.c'.
32949 * po/ca.po: Add new translations.
c3ea6bd4
CPE
32950 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
32951 gettext module and defines locale_dir and lang in grub.cfg.
32952 * NEWS: Add gettext support.
32953
0fdb2568
RM
329542009-11-23 Robert Millan <rmh.grub@aybabtu.com>
32955
32956 * util/hostdisk.c: Include `<grub/i18n.h>'.
32957 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
32958 (make_device_name): Rewrite using asprintf.
32959 (convert_system_partition_to_system_disk): Replace 0 with NULL.
32960 (find_system_device): If a device is not found, generate one just
32961 by reusing the OS path name.
32962 (read_device_map): Make it permissible for device.map not to exist.
32963
f515aa62
RM
329642009-11-23 Robert Millan <rmh.grub@aybabtu.com>
32965
32966 * script/sh/execute.c: Move from here ...
32967 * script/execute.c: ... to here. Update all users.
32968 * script/sh/function.c: Move from here ...
32969 * script/function.c: ... to here. Update all users.
32970 * script/sh/lexer.c: Move from here ...
32971 * script/lexer.c: ... to here. Update all users.
32972 * script/sh/main.c: Move from here ...
32973 * script/main.c: ... to here. Update all users.
32974 * script/sh/parser.y: Move from here ...
32975 * script/parser.y: ... to here. Update all users.
32976 * script/sh/script.c: Move from here ...
32977 * script/script.c: ... to here. Update all users.
32978
f84b481b
RM
329792009-11-23 Robert Millan <rmh.grub@aybabtu.com>
32980
32981 * configure.ac: Detect all `emu' platforms. Define
32982 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
32983 --enable-grub-emu logic. Disable include/grub/machine
32984 symlink on `emu' platforms.
32985
32986 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
32987 * gensymlist.sh.in: Likewise.
32988
32989 * include/grub/i386/coreboot/machine.h: Remove file.
32990 * include/grub/i386/efi/machine.h: Likewise.
32991 * include/grub/i386/ieee1275/machine.h: Likewise.
32992 * include/grub/i386/pc/machine.h: Likewise.
32993 * include/grub/i386/qemu/machine.h: Likewise.
32994 * include/grub/powerpc/ieee1275/machine.h: Likewise.
32995 * include/grub/sparc64/ieee1275/machine.h: Likewise.
32996 * include/grub/x86_64/efi/machine.h: Likewise.
32997
32998 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
32999 * commands/halt.c: Likewise.
33000 * commands/reboot.c: Likewise.
33001 * include/grub/autoefi.h: Likewise.
33002 * include/grub/i386/at_keyboard.h: Likewise.
33003 * include/grub/i386/kernel.h: Likewise.
33004 * include/grub/i386/loader.h: Likewise.
33005 * include/grub/i386/pc/memory.h: Likewise.
33006 * kern/dl.c: Likewise.
33007 * kern/i386/coreboot/init.c: Likewise.
33008 * loader/i386/bsd.c: Likewise.
33009 * loader/i386/linux.c: Likewise.
33010 * loader/multiboot_loader.c: Likewise.
33011 * term/i386/pc/serial.c: Likewise.
33012 * term/usb_keyboard.c: Likewise.
33013
33014 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
33015 `<grub/machine/machine.h>'
33016 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
33017 * util/misc.c: Remove `<grub/machine/machine.h>' and
33018 `<grub/machine/time.h>'.
33019
33020 * Makefile.in (enable_grub_emu): Remove variable.
33021 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
33022
33023 * conf/any-emu.rmk: New file.
33024 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
33025 (grub_emu_init.c): Move from here ...
33026 * conf/any-emu.rmk: ... to here.
33027
33028 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
33029 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
33030 * conf/any-emu.rmk: ... to here.
33031
4efeab03
RM
330322009-11-23 Robert Millan <rmh.grub@aybabtu.com>
33033
33034 * include/grub/parser.h (grub_parser_register): Document need
33035 of `name' parameter.
33036 * normal/main.c (grub_normal_read_line): Simplify prompt string.
33037 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
33038 "sh" to "grub".
33039
ea1dd8bf
RM
330402009-11-23 Robert Millan <rmh.grub@aybabtu.com>
33041
33042 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
33043 `$(XGETTEXT)'.
33044 * include/grub/i18n.h (N_): New macro.
33045 * util/mkisofs/mkisofs.h: Likewise.
33046 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
33047 around N_().
33048 (usage): Use gettext() to translate help strings when printing them.
33049
0c140626
RM
330502009-11-23 Robert Millan <rmh.grub@aybabtu.com>
33051
33052 Based on patch from Bean
33053 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
33054
33055 * video/efi_fb.c: New file.
33056 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
33057 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
33058 variables.
33059 * conf/x86_64-efi.rmk: Likewise.
33060
87d58298
RM
330612009-11-22 Robert Millan <rmh.grub@aybabtu.com>
33062
33063 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
33064 * util/i386/pc/grub-setup.c: Likewise.
33065
994cc3a3
ST
330662009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
33067
33068 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
33069 <hurd/fs.h>
33070 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
33071 file_get_storage_info to implement grub_guess_root_device.
33072
26a61d6a
FZ
330732009-11-21 Felix Zielcke <fzielcke@z-51.de>
33074
33075 * Makefile.in (target): Use make's builtin $(shell) function
33076 instead of calling directly $(SHELL) to create the locale directories,
33077 inside the $(foreach) function.
33078
74ff1dd5
FZ
330792009-11-21 Felix Zielcke <fzielcke@z-51.de>
33080
33081 * util/grub-mkrescue.in: Print an error and usage if output option
33082 has not been given.
33083
0b787d0e
FZ
330842009-11-21 Felix Zielcke <fzielcke@z-51.de>
33085
33086 Patch from Loïc Minier <loic.minier@ubuntu.com>.
33087 * util/grub.d/30_os-prober.in: Cope with Linux entries where
33088 root and /boot are on different devices.
33089
1164b270
RM
330902009-11-21 Robert Millan <rmh.grub@aybabtu.com>
33091
33092 Fix build for srcdir != objdir.
33093
33094 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
33095 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
33096 $(srcdir).
33097 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
33098 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
33099 reference for input.
33100
13774a2f
RM
331012009-11-21 Robert Millan <rmh.grub@aybabtu.com>
33102
33103 * util/grub-mkrescue.in: Use source directory direcly (without copiing
33104 or hardlinking it). Remove -J option, Joliet is not compatible with
33105 multiple source directories.
33106
efda854e
RM
331072009-11-21 Carles Pina i Estany <carles@pina.cat>
331082009-11-21 Robert Millan <rmh.grub@aybabtu.com>
33109
33110 * util/grub-mkrescue.in: Recognize `--override-directory' option.
33111 (process_input_dir): New function. Process an arbitrary input
33112 directory.
33113 Misc adjustments to support both "override mode" and system-wide mode.
33114
6c09890c
FZ
331152009-11-20 Felix Zielcke <fzielcke@z-51.de>
33116
33117 * configure.ac (UNIFONT_BDF): Rename to ...
33118 (FONT_SOURCE): ... this. Update all users.
33119
a797824f
FZ
331202009-11-20 Felix Zielcke <fzielcke@z-51.de>
33121
33122 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
33123 to the list of unifont files to look for.
33124
cd4f42b0
RM
331252009-11-19 Robert Millan <rmh.grub@aybabtu.com>
33126
33127 Patch from Joe Auricchio <jauricchio@gmail.com>
33128 * commands/minicmd.c (grub_mini_cmd_clear): New function.
33129 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
33130 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
33131
393c783d
FZ
331322009-11-19 Felix Zielcke <fzielcke@z-51.de>
33133
33134 * Makefile.in (install-local): Add a missing backslash.
33135
b2f1e327
FZ
331362009-11-19 Felix Zielcke <fzielcke@z-51.de>
33137
33138 * include/grub/x86_64/io.h: New file.
33139
f577f7a0
RM
331402009-11-19 Robert Millan <rmh.grub@aybabtu.com>
33141
33142 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
33143 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
33144 Include `"progname.h"'.
33145 (main): Initialize gettext.
33146 * util/i386/pc/grub-setup.c: Gettexttize.
33147 * util/i386/pc/grub-mkimage.c: Likewise.
33148
33149 * Makefile.in (po/*.po): Redefine as ...
33150 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
33151
3bc7896c
RM
33152 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
33153
c37943b6
RM
331542009-11-19 Robert Millan <rmh.grub@aybabtu.com>
33155
33156 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
33157 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
33158 (program_name): Remove.
33159 (main): Initialize gettext support.
6323f705
RM
33160 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
33161 Include `<libintl.h>'.
33162 (_): New macro.
c37943b6
RM
33163
33164 * util/mkisofs/eltorito.c: Gettexttize.
33165 * util/mkisofs/joliet.c: Likewise.
33166 * util/mkisofs/mkisofs.c: Likewise.
c37943b6
RM
33167 * util/mkisofs/multi.c: Likewise.
33168 * util/mkisofs/rock.c: Likewise.
33169 * util/mkisofs/tree.c: Likewise.
33170 * util/mkisofs/write.c: Likewise.
33171
3bc7896c
RM
33172 * po/POTFILES: Update with new files.
33173
5ce77c6e
RM
331742009-11-18 Robert Millan <rmh.grub@aybabtu.com>
33175
33176 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
33177 * util/mkisofs/iso9660.h: Likewise.
33178 * util/mkisofs/joliet.c: Likewise.
33179 * util/mkisofs/mkisofs.c: Likewise.
33180 * util/mkisofs/mkisofs.h: Likewise.
33181 * util/mkisofs/rock.c: Likewise.
33182 * util/mkisofs/tree.c: Likewise.
33183 * util/mkisofs/write.c: Likewise.
33184
33185 * util/mkisofs/eltorito.c (rcsid): Remove.
33186 * util/mkisofs/hash.c: Likewise.
33187 * util/mkisofs/joliet.c: Likewise.
33188 * util/mkisofs/name.c: Likewise.
33189 * util/mkisofs/rock.c: Likewise.
33190 * util/mkisofs/tree.c: Likewise.
33191 * util/mkisofs/write.c: Likewise.
33192
1dabbc77
RM
331932009-11-18 Robert Millan <rmh.grub@aybabtu.com>
33194
33195 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
33196 instead of static allocation.
33197 * util/mkisofs/match.h: Likewise.
33198
633877cb
RM
331992009-11-18 Robert Millan <rmh.grub@aybabtu.com>
33200
3bc7896c
RM
33201 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
33202 and `util/grub.d/10_linux.in'.
633877cb
RM
33203 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
33204 translatable Shell files.
33205
af1c0c85
RM
332062009-11-18 Robert Millan <rmh.grub@aybabtu.com>
33207
33208 * Makefile.in ($(srcdir)/aclocal.m4): New target.
33209
769ae37b
RM
332102009-11-17 Robert Millan <rmh.grub@aybabtu.com>
33211
33212 * INSTALL: Document Automake is needed for bootstrap.
3bc7896c 33213 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
769ae37b
RM
33214 * util/grub.d/10_kfreebsd.in (bindir): New variable.
33215 Add gettext initialization.
33216 (kfreebsd_entry): Make menuentry output translatable.
33217
332182009-11-17 Robert Millan <rmh.grub@aybabtu.com>
33219
33220 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
33221 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
33222 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
33223 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
33224 (LINGUAS): Auto-generate using `po/LINGUAS'.
3bc7896c 33225 * po/LINGUAS: New file.
769ae37b
RM
33226
332272009-11-17 Robert Millan <rmh.grub@aybabtu.com>
33228
33229 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
33230 other things).
33231 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
33232 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
33233 bindtextdomain() calls for gettext initialization.
33234
332352009-11-17 Robert Millan <rmh.grub@aybabtu.com>
33236
33237 * gnulib/progname.c: New file (imported from Gnulib).
33238 * gnulib/progname.h: Likewise.
33239 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
33240 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
33241 (usage): Replace `progname' with `program_name'.
33242 (main): Use set_program_name() for program name initialization.
33243
332442009-11-17 Robert Millan <rmh.grub@aybabtu.com>
33245
33246 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
33247 from here ...
33248 * Makefile.in (CPPFLAGS): ... to here.
33249
332502009-11-16 Robert Millan <rmh.grub@aybabtu.com>
33251
33252 * aclocal.m4: Move from here ...
33253 * acinclude.m4: ... to here.
33254 * autogen.sh: Add call to `aclocal'.
33255 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
33256
332572009-11-16 Robert Millan <rmh.grub@aybabtu.com>
33258
33259 * Makefile.in (CLEANFILES): Add `po/*.mo'.
33260 (LINGUAS): New variable.
33261 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
33262 (install-local): Install MO files.
33263 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
33264 * include/grub/i18n.h: New file.
3bc7896c
RM
33265 * po/POTFILES: New file.
33266 * po/ca.po: New file.
769ae37b
RM
33267 * util/grub.d/10_linux.in (bindir): New variable.
33268 Add gettext initialization.
33269 (linux_entry): Make menuentry output translatable.
33270 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
33271 (usage): Make --help output translatable.
33272 (main): Initialize gettext.
33273
02c0a6ad
RM
332742009-11-17 Robert Millan <rmh.grub@aybabtu.com>
33275
33276 * import_gcry.py: New file (written by Vladimir with minor
33277 adjustments).
33278 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
33279 ciphers.
33280 * INSTALL: Document that Python is required for bootstrap.
33281
332822009-11-17 Robert Millan <rmh.grub@aybabtu.com>
33283
33284 Import ciphers from libgcrypt 1.4.4.
33285
33286 * lib/libgcrypt/cipher/ChangeLog
33287 * lib/libgcrypt/cipher/ac.c
33288 * lib/libgcrypt/cipher/arcfour.c
33289 * lib/libgcrypt/cipher/bithelp.h
33290 * lib/libgcrypt/cipher/blowfish.c
33291 * lib/libgcrypt/cipher/camellia-glue.c
33292 * lib/libgcrypt/cipher/camellia.c
33293 * lib/libgcrypt/cipher/camellia.h
33294 * lib/libgcrypt/cipher/cast5.c
33295 * lib/libgcrypt/cipher/cipher.c
33296 * lib/libgcrypt/cipher/crc.c
33297 * lib/libgcrypt/cipher/des.c
33298 * lib/libgcrypt/cipher/dsa.c
33299 * lib/libgcrypt/cipher/ecc.c
33300 * lib/libgcrypt/cipher/elgamal.c
33301 * lib/libgcrypt/cipher/hash-common.c
33302 * lib/libgcrypt/cipher/hash-common.h
33303 * lib/libgcrypt/cipher/hmac-tests.c
33304 * lib/libgcrypt/cipher/md.c
33305 * lib/libgcrypt/cipher/md4.c
33306 * lib/libgcrypt/cipher/md5.c
33307 * lib/libgcrypt/cipher/primegen.c
33308 * lib/libgcrypt/cipher/pubkey.c
33309 * lib/libgcrypt/cipher/rfc2268.c
33310 * lib/libgcrypt/cipher/rijndael-tables.h
33311 * lib/libgcrypt/cipher/rijndael.c
33312 * lib/libgcrypt/cipher/rmd.h
33313 * lib/libgcrypt/cipher/rmd160.c
33314 * lib/libgcrypt/cipher/rsa.c
33315 * lib/libgcrypt/cipher/seed.c
33316 * lib/libgcrypt/cipher/serpent.c
33317 * lib/libgcrypt/cipher/sha1.c
33318 * lib/libgcrypt/cipher/sha256.c
33319 * lib/libgcrypt/cipher/sha512.c
33320 * lib/libgcrypt/cipher/tiger.c
33321 * lib/libgcrypt/cipher/twofish.c
33322 * lib/libgcrypt/cipher/whirlpool.c
33323
af2f93ac
RM
333242009-11-16 Robert Millan <rmh.grub@aybabtu.com>
33325
33326 Fix build for systems without error().
33327
33328 * gnulib/error.c: New file (imported from Gnulib).
33329 * gnulib/error.h: Likewise.
33330 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
33331 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
33332 (this variable is now used by error()).
33333
73fb3dd5
FZ
333342009-11-16 Felix Zielcke <fzielcke@z-51.de>
33335
814f5e96
FZ
33336 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
33337 instead of relying that char is signed.
73fb3dd5 33338
a691ca33
VS
333392009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
33340
33341 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
33342 blocksize different from specified.
33343 (grub_pxefs_read): Likewise.
33344
2af8f0f4
FZ
333452009-11-16 Felix Zielcke <fzielcke@z-51.de>
33346
33347 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
33348
33349 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
33350 (grub_ata_readwrite): Likewise. Update 2 format strings.
33351 (grub_atapi_read): Likewise.
33352
33353 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
33354 * conf/i386.rmk (pkglib_MODULES): ... to here ...
33355 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
33356 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
33357 (ata_mod_LDFLAGS): Move from here ...
33358 * conf/i386.rmk: ... to here ...
33359 * conf/x86_64-efi.rmk: ... and here.
33360 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
33361 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
33362
83bdecaf
RM
333632009-11-16 Robert Millan <rmh.grub@aybabtu.com>
33364
33365 Relicense multiboot.h, with RMS' blessing.
33366
33367 * include/multiboot.h: Change to X11 license.
33368
fd6fd3d7
RM
333692009-11-15 Robert Millan <rmh.grub@aybabtu.com>
33370
33371 Support --version in grub-mkisofs.
33372
33373 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
33374 (OPTION_VERSION): New macro.
33375 (ld_options): Recognize --version.
33376 (usage): Move `program_name' from here ...
33377 (program_name): ... to here. Add `static' qualifier.
33378 (main): Recognize `OPTION_VERSION'.
33379
16a88c49
FZ
333802009-11-15 Felix Zielcke <fzielcke@z-51.de>
33381
33382 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
33383 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
33384
a4158476
RM
333852009-11-14 Robert Millan <rmh.grub@aybabtu.com>
33386
33387 Fix help2man generation for mkisofs.
33388
33389 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
33390 (usage): Send output to stdout (rather than stderr).
33391
fc2208b0
RM
333922009-11-14 Robert Millan <rmh.grub@aybabtu.com>
33393
33394 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
33395 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
33396 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
33397 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
33398 (bin_SCRIPTS): Add `grub-mkfloppy'.
33399 (grub_mkfloppy_SOURCES): New variable.
33400
33401 * util/grub-mkrescue.in: New file.
33402 * util/i386/pc/grub-mkfloppy.in: New file.
33403
33404 * util/i386/coreboot/grub-mkrescue.in: Remove.
33405 * util/i386/pc/grub-mkrescue.in: Remove.
33406
8d0edf4a
RM
334072009-11-13 Robert Millan <rmh.grub@aybabtu.com>
33408
33409 * include/grub/multiboot.h (struct grub_multiboot_header): Move
33410 from here ...
33411 * include/multiboot.h (struct multiboot_header): ... to here. Update
33412 all users.
33413 * include/grub/multiboot.h (struct grub_multiboot_info): Move
33414 from here ...
33415 * include/multiboot.h (struct multiboot_info): ... to here. Update
33416 all users.
33417 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
33418 from here ...
33419 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
33420 Update all users.
33421 * include/grub/multiboot.h (struct grub_mod_list): Move
33422 from here ...
33423 * include/multiboot.h (struct multiboot_mod_list): ... to here.
33424 Update all users.
33425
a73f5969
RM
334262009-11-13 Robert Millan <rmh.grub@aybabtu.com>
33427
33428 * include/multiboot2.h (multiboot_word): Rename from this ...
33429 (multiboot2_word): ... to this. Update all users.
33430 (multiboot_header): Rename from this ...
33431 (multiboot2_header): ... to this. Update all users.
33432 (multiboot_tag_header): Rename from this ...
33433 (multiboot2_tag_header): ... to this. Update all users.
33434 (multiboot_tag_start): Rename from this ...
33435 (multiboot2_tag_start): ... to this. Update all users.
33436 (multiboot_tag_name): Rename from this ...
33437 (multiboot2_tag_name): ... to this. Update all users.
33438 (multiboot_tag_module): Rename from this ...
33439 (multiboot2_tag_module): ... to this. Update all users.
33440 (multiboot_tag_memory): Rename from this ...
33441 (multiboot2_tag_memory): ... to this. Update all users.
33442 (multiboot_tag_unused): Rename from this ...
33443 (multiboot2_tag_unused): ... to this. Update all users.
33444 (multiboot_tag_end): Rename from this ...
33445 (multiboot2_tag_end): ... to this. Update all users.
33446
1c8927f0
RM
334472009-11-13 Robert Millan <rmh.grub@aybabtu.com>
33448
33449 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
33450 this platform we should support Multiboot1 first.
33451
33452 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
33453 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
33454 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
33455
6e1e0d89
RM
334562009-11-12 Robert Millan <rmh.grub@aybabtu.com>
33457
33458 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
33459 of write calls (converting them to fwrite() if they aren't already).
33460 (get_torito_desc): Likewise.
33461 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
33462
7f2b34d8
RM
334632009-11-12 Robert Millan <rmh.grub@aybabtu.com>
33464
33465 * util/i386/pc/grub-install.in: Move from here ...
33466 * util/grub-install.in: ... to here. Update all users.
33467
c0ef3311
CW
334682009-11-11 Colin Watson <cjwatson@ubuntu.com>
33469
33470 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
33471
e1f240ff
RM
334722009-11-11 Robert Millan <rmh.grub@aybabtu.com>
33473
33474 Support for El Torito without floppy emulation.
33475
33476 * util/mkisofs/eltorito.c: Include `<errno.h>'.
33477 (init_boot_catalog): Improve error handling.
33478 (get_torito_desc): Don't use floppy emulation unless requested by
33479 user. Patch boot information table when requested via
33480 `-boot-info-table'.
33481 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
33482 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
33483 (use_boot_info_table): New variables.
33484 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
33485 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
33486 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
33487 `--eltorito-emul-floppy'.
33488 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
33489 and `OPTION_ELTORITO_EMUL_FLOPPY'.
33490 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
33491 (use_boot_info_table, get_731): New prototypes.
33492 * util/mkisofs/write.c (get_731): New function.
33493
af7d4de5
FZ
334942009-11-11 Felix Zielcke <fzielcke@z-51.de>
33495
33496 Fix the generation of the man page.
33497
33498 * util/pc/i386/grub-install.in: Source
33499 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
33500
2c55dbc0
RM
335012009-11-11 Robert Millan <rmh.grub@aybabtu.com>
33502
33503 Large file support for grub-mkisofs.
33504
33505 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
33506 * util/mkisofs/mkisofs.c (next_extent, last_extent)
33507 (session_start): Upgrade type to `uint64_t'. Update all users.
33508 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
33509 (struct directory_entry): Upgrade type of `starting_block' and
33510 `size' to `uint64_t'. Update all users.
33511 (struct deferred): Remove unused structure.
33512 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
33513 Update all users.
33514 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
33515 file is larger than `UINT32_MAX'.
33516 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
33517 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
33518 return value.
33519 (struct deferred_write): Upgrade type of `extent' and `size' to
33520 `uint64_t'. Update all users.
33521 (last_extent_written): Upgrade type to `uint64_t'. Update all
33522 users.
33523 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
33524 Update all users. Upgrade type of `remain' to `int64_t' and
33525 `use' to `size_t'. Use error() to handle fread() errors.
33526 (write_files): Rely on write_one_file() rather than calling
33527 xfwrite() directly.
33528
6a9cead5
FZ
335292009-11-09 Felix Zielcke <fzielcke@z-51.de>
33530
33531 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
33532
4825d790
RM
335332009-11-09 Robert Millan <rmh.grub@aybabtu.com>
33534
33535 * util/mkisofs/fnmatch.c: Remove.
33536 * util/mkisofs/getopt1.c: Likewise.
33537 * util/mkisofs/getopt.c: Likewise.
33538 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
33539 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
33540 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
33541 `gnulib/getopt1.c' and `gnulib/getopt.c'.
33542 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
33543
33544 * configure.ac: Detect `mingw32msvc' host_os.
33545 Check for lstat(), getuid() and getgid().
33546
33547 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
33548 instances of `u_char' with `uint8_t'.
33549
33550 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
33551 [!HAVE_GETUID] (getuid): New function (stub).
33552 [!HAVE_GETGID] (getgid): Likewise.
33553 [!HAVE_LSTAT] (lstat): Likewise.
33554 [!S_IROTH] (S_IROTH): New macro (dummy).
33555 [!S_IRGRP] (S_IRGRP): Likewise.
33556
84b860d8
RM
335572009-11-09 Robert Millan <rmh.grub@aybabtu.com>
33558
33559 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
33560 conditional expression).
33561
66e9b712
RM
335622009-11-09 Robert Millan <rmh.grub@aybabtu.com>
33563
33564 Import from Gnulib.
33565
33566 * gnulib/fnmatch.c: New file.
33567 * gnulib/fnmatch.h: Likewise.
33568 * gnulib/fnmatch_loop.c: Likewise.
33569 * gnulib/getopt.c: Likewise.
33570 * gnulib/getopt.h: Likewise.
33571 * gnulib/getopt1.c: Likewise.
33572 * gnulib/getopt_int.h: Likewise.
33573 * gnulib/gettext.h: Likewise.
33574
34f4a5b0
RM
335752009-11-09 Robert Millan <rmh.grub@aybabtu.com>
33576
33577 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
33578 * normal/handler.c (read_handler_list): Likewise.
33579
ac451143
RM
335802009-11-09 Robert Millan <rmh.grub@aybabtu.com>
33581
33582 Misc cleanup.
33583
33584 * kern/command.c (grub_register_command_prio): Use
33585 grub_zalloc() instead of explicitly zeroing data.
33586 * kern/list.c: Include `<grub/mm.h>'.
33587 (grub_named_list_find): Replace `0' with `NULL'.
33588 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
33589 (fs_module_list): Change type to `grub_named_list_t'. Update all
33590 users.
33591 * normal/dyncmd.c (read_command_list): Add space between function
33592 call and parenthesis.
33593 * normal/handler.c (read_handler_list): Likewise.
33594
4089b167
RM
335952009-11-09 Robert Millan <rmh.grub@aybabtu.com>
33596
33597 * normal/auth.c (punishment_delay): Moved from here ...
33598 (grub_auth_strcmp): ... to here (inside function).
33599
325f5037
RM
336002009-11-09 Robert Millan <rmh.grub@aybabtu.com>
33601
33602 * include/grub/list.h (struct grub_named_list): Remove `const'
33603 qualifier from `name'.
33604 (struct grub_prio_list): Likewise.
33605
7aea29a3
RM
336062009-11-09 Robert Millan <rmh.grub@aybabtu.com>
33607
33608 * normal/auth.c: Include `<grub/time.h>'.
33609 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
33610
3fd6f044
RM
336112009-11-09 Robert Millan <rmh.grub@aybabtu.com>
33612
33613 * normal/auth.c (punishment_delay): New variable.
33614 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
33615 (grub_auth_check_authentication): Punish failed login attempts with
33616 an incremental (2^N) delay.
33617
a4cd68e4
RM
336182009-11-09 Robert Millan <rmh.grub@aybabtu.com>
33619
33620 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
33621 path with $(srcdir).
33622
7ad12f43
VS
336232009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
33624
33625 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
33626
c1129f03
RM
336272009-11-09 Robert Millan <rmh.grub@aybabtu.com>
33628
33629 * util/i386/coreboot/grub-mkrescue.in: New file.
33630 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
33631 variables.
33632
33633 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
33634 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
33635 * configure.ac: Add header and function checks to satisfy grub-mkisofs
33636 requirements.
33637 * util/mkisofs/defaults.h: New file.
33638 * util/mkisofs/eltorito.c: Likewise.
33639 * util/mkisofs/exclude.h: Likewise.
33640 * util/mkisofs/fnmatch.c: Likewise.
33641 * util/mkisofs/getopt.c: Likewise.
33642 * util/mkisofs/getopt1.c: Likewise.
33643 * util/mkisofs/hash.c: Likewise.
33644 * util/mkisofs/include/fctldefs.h: Likewise.
33645 * util/mkisofs/include/mconfig.h: Likewise.
33646 * util/mkisofs/include/prototyp.h: Likewise.
33647 * util/mkisofs/include/statdefs.h: Likewise.
33648 * util/mkisofs/iso9660.h: Likewise.
33649 * util/mkisofs/joliet.c: Likewise.
33650 * util/mkisofs/match.c: Likewise.
33651 * util/mkisofs/match.h: Likewise.
33652 * util/mkisofs/mkisofs.c: Likewise.
33653 * util/mkisofs/mkisofs.h: Likewise.
33654 * util/mkisofs/multi.c: Likewise.
33655 * util/mkisofs/name.c: Likewise.
33656 * util/mkisofs/rock.c: Likewise.
33657 * util/mkisofs/tree.c: Likewise.
33658 * util/mkisofs/write.c: Likewise.
33659
ec8bb77d
VS
336602009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
33661
33662 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
33663 being insecure.
33664
3716b12c
RM
336652009-11-08 Robert Millan <rmh.grub@aybabtu.com>
33666
33667 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
33668 `grub-mkimage' (and use $0 when possible).
33669
b97b7b91
RM
336702009-11-08 Robert Millan <rmh.grub@aybabtu.com>
33671
33672 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
33673 error message for excessively large memory map.
33674
04114812
RM
336752009-11-08 Robert Millan <rmh.grub@aybabtu.com>
33676
33677 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
33678 executable bit.
33679
e4eb2373
RM
336802009-11-08 Robert Millan <rmh.grub@aybabtu.com>
33681
33682 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
33683 message for coreboot users.
33684
c926e1d5 336852009-11-07 Robert Millan <rmh.grub@aybabtu.com>
33686
33687 Fix build with GNU gold.
33688
33689 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
33690 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
33691 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
33692 link addresses.
33693 * aclocal.m4: Likewise.
33694
86e5b1db 336952009-11-04 Felix Zielcke <fzielcke@z-51.de>
33696
33697 * configure.ac (AC_PREREQ): Bump to 2.59d.
33698 * INSTALL: Make it more clear when Autoconf and Ruby are
33699 needed and when to run `./autogen.sh'.
33700
246cd78f 337012009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
33702
33703 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
33704 OSes.
33705
4f9dfb37 337062009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
33707
33708 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
33709
b82bd5e1 337102009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
33711
33712 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
33713 giving it to GNU Mach.
33714
ff1a9bca 337152009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
33716
33717 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
33718 GNU partition number to get internal GRUB partition number.
33719
61697d9c 337202009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
33721
33722 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
33723 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
33724
a50569e1 337252009-11-01 Robert Millan <rmh.grub@aybabtu.com>
33726
33727 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
33728 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
33729 case.
33730
5b153867 337312009-11-01 Felix Zielcke <fzielcke@z-51.de>
33732
33733 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
33734
d9e2cd70 337352009-10-30 Robert Millan <rmh.grub@aybabtu.com>
33736
33737 Fix build problem.
33738
33739 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
33740 `-isystem=$(srcdir)/include'.
33741
805111a4 337422009-10-30 Robert Millan <rmh.grub@aybabtu.com>
33743
33744 * util/i386/pc/grub-install.in: Remove hint that device.map should be
33745 checked (grub-install doesn't currently rely on it).
33746
fa6e945f 337472009-10-29 Robert Millan <rmh.grub@aybabtu.com>
33748
33749 Revert SVN r2660.
33750
33751 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
33752 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
33753 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
33754 * conf/i386-ieee1275.rmk: Likewise.
33755 * conf/i386-pc.rmk: Likewise.
33756 * conf/powerpc-ieee1275.rmk: Likewise.
33757 * conf/sparc64-ieee1275.rmk: Likewise.
33758 * conf/x86_64-efi.rmk: Likewise.
33759
cee15086 337602009-10-28 Robert Millan <rmh.grub@aybabtu.com>
33761
33762 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
33763
95b9239e 337642009-10-28 Robert Millan <rmh.grub@aybabtu.com>
33765
33766 * include/grub/misc.h: Stop checking for APPLE_CC.
33767
2ed19dfd 337682009-10-28 Robert Millan <rmh.grub@aybabtu.com>
33769
33770 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
33771 doesn't cause an infinite call loop.
33772
fdcdde19 337732009-10-28 Felix Zielcke <fzielcke@z-51.de>
33774
33775 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
33776 strings.
33777
cefabfe1 337782009-10-26 Robert Millan <rmh.grub@aybabtu.com>
33779
33780 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
33781 variable.
33782 * Makefile.in: Likewise.
33783
ed96ab6d 337842009-10-26 Robert Millan <rmh.grub@aybabtu.com>
33785
33786 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
33787
0579b753 337882009-10-26 Robert Millan <rmh.grub@aybabtu.com>
33789
33790 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
33791
478df409 337922009-10-26 Robert Millan <rmh.grub@aybabtu.com>
33793
33794 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
33795
083d1679 337962009-10-26 Robert Millan <rmh.grub@aybabtu.com>
33797
33798 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
33799 from here ...
33800 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
33801
5947ae32 338022009-10-26 Robert Millan <rmh.grub@aybabtu.com>
33803
33804 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
33805 in $(MAKEINFO) invocation. This makes it clear in output that
33806 errors are being ignored.
33807
94180ff6 338082009-10-26 Robert Millan <rmh.grub@aybabtu.com>
33809
33810 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
33811 from here ...
33812 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
33813 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
33814 * conf/i386-ieee1275.rmk: Likewise.
33815 * conf/i386-pc.rmk: Likewise.
33816 * conf/powerpc-ieee1275.rmk: Likewise.
33817 * conf/sparc64-ieee1275.rmk: Likewise.
33818 * conf/x86_64-efi.rmk: Likewise.
33819
9031b03a 338202009-10-26 Colin Watson <cjwatson@ubuntu.com>
33821
33822 * util/grub-editenv.c (main): If only a command is given, use
33823 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
33824 (usage): FILENAME is now optional and has a default.
33825
e4f6809b 338262009-10-26 Colin Watson <cjwatson@ubuntu.com>
33827
33828 Improve grub-mkconfig performance when there are several menu
33829 entries on a single filesystem.
33830
33831 * util/grub.d/10_linux.in (linux_entry): Cache the output of
33832 prepare_grub_to_access_device.
33833 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
33834 * util/grub.d/30_os-prober.in: Likewise.
33835
67937d4d 338362009-10-26 Robert Millan <rmh.grub@aybabtu.com>
33837
33838 * util/grub.d/10_freebsd.in: Remove.
33839 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
33840 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
33841
ee3756cc 338422009-10-26 Robert Millan <rmh.grub@aybabtu.com>
33843
5c35048e 33844 * docs/grub.cfg: Fix example usage of *BSD loaders.
ee3756cc 33845
4dea1c6f 338462009-10-25 Robert Millan <rmh.grub@aybabtu.com>
33847
33848 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
33849 grub_util_error() call.
33850
042484d7 338512009-10-25 Robert Millan <rmh.grub@aybabtu.com>
33852
33853 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
33854 `reserved_first_sector' member.
33855 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
33856 `reserved_first_sector' to 1.
33857 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
33858 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
33859 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
33860 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
33861 filesystems which begin at first sector.
33862 (options): New option --skip-fs-probe.
33863 (main): Handle --skip-fs-probe and pass it to setup().
33864
d64448a7 338652009-10-25 Robert Millan <rmh.grub@aybabtu.com>
33866
33867 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
33868 (memset): Fix function prototype.
33869
508d42ec 338702009-10-25 Robert Millan <rmh.grub@aybabtu.com>
338712009-10-25 Vasily Averin <vvs@parallels.com>
33872
33873 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
33874 `dirent.direntlen == 0'.
33875
b240e30c 338762009-10-25 Robert Millan <rmh.grub@aybabtu.com>
33877
33878 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
33879 `cpio'.
33880 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
33881
346e7fbe 338822009-10-25 Robert Millan <rmh.grub@aybabtu.com>
33883
33884 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
33885 `__trampoline_setup' and `__ucmpdi2'.
33886 * include/grub/powerpc/libgcc.h: Only export symbols for functions
33887 that libgcc provides.
33888
cdb308b0 338892009-10-25 Robert Millan <rmh.grub@aybabtu.com>
33890
33891 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
33892 * include/grub/sparc64/libgcc.h (memset): Likewise.
33893 * include/grub/misc.h (memset, memcmp): New function prototypes.
33894
fb26abc2 338952009-10-25 Robert Millan <rmh.grub@aybabtu.com>
33896
33897 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
33898 `cpio'.
33899 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
33900
f6693890 339012009-10-25 Robert Millan <rmh.grub@aybabtu.com>
33902
33903 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
33904 * docs/grub.cfg: Compensate for recent change in multiboot
33905 loader (since 2009-08-14 it won't pass filename to payload).
33906 * util/grub.d/10_hurd.in: Likewise.
33907
0933cdc0 339082009-10-21 Felix Zielcke <fzielcke@z-51.de>
33909
33910 * config.guess: Update to latest version from config git
33911 repository.
33912 * config.sub: Likewise.
33913
3b2fe8c2 339142009-10-20 Robert Millan <rmh.grub@aybabtu.com>
33915
33916 Fix build on sparc64.
33917
33918 * configure.ac: Perform checks for libgcc symbols before
33919 adding `-nostdlib' to LDFLAGS.
33920
46695a62 339212009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
33922
33923 Let user specify OpenBSD root device.
33924
33925 * loader/i386/bsd.c (openbsd_root): New variable.
33926 (openbsd_opts): New option 'root'.
33927 (OPENBSD_ROOT_ARG): New macro.
33928 (grub_openbsd_boot): Use 'openbsd_root'.
33929 (grub_cmd_openbsd): Fill 'openbsd_root'.
33930
d2b6b7fc 339312009-10-16 Robert Millan <rmh.grub@aybabtu.com>
33932
33933 * NEWS: Misc adjustments.
33934
421bd7ac 339352009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
33936
33937 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
33938
f1d29d87 339392009-10-16 Robert Millan <rmh.grub@aybabtu.com>
33940
33941 * configure.ac: Bump version to 1.97.
33942
6f3cd880 339432009-10-16 Colin Watson <cjwatson@ubuntu.com>
33944
33945 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
33946 -mno-3dnow on x86 architectures. Some toolchains enable these
33947 features by default, but they rely on registers that aren't enabled
33948 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
33949
035f7122 339502009-10-15 Robert Millan <rmh.grub@aybabtu.com>
33951
33952 Make entry text a bit more readable.
33953
33954 * util/grub.d/10_linux.in: Add `with' before `Linux'.
33955
44998e58 339562009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
33957
33958 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
33959
cd2851b3 339602009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
33961
33962 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
33963 operations.
33964
c6f3b249 339652009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
33966
33967 * configure.ac: Add missing dollar.
33968
6b5886ba 339692009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
33970
33971 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
33972
33973 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
33974 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
33975 exports.
33976 * include/grub/sparc64/libgcc.h: Likewise. Use
33977 preprocessor conditionals.
33978
e9d66f6d 339792009-10-14 Robert Millan <rmh.grub@aybabtu.com>
33980
33981 * conf/common.rmk (grub-dumpbios): Remove rule.
33982 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
33983 * util/grub-dumpbios.in: Remove file.
33984
9155bc17 339852009-10-14 Robert Millan <rmh.grub@aybabtu.com>
33986
33987 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
33988 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
33989
33990 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
33991 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
33992 users.
33993
33994 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
33995 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
33996 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
33997 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
33998 users.
33999
bf7f7a18 340002009-10-12 Robert Millan <rmh.grub@aybabtu.com>
34001
34002 * term/tparm.c: Switch to GPLv3.
34003
86564c26 340042009-10-09 Robert Millan <rmh.grub@aybabtu.com>
34005
34006 * include/grub/i386/cpuid.h: Add header protection.
34007
5c936493 340082009-10-09 Robert Millan <rmh.grub@aybabtu.com>
34009
34010 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
34011
34012 * include/grub/i386/cpuid.h: New file.
34013 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
34014 (has_longmode): Rename to ...
34015 (grub_cpuid_has_longmode): ... this. Update all users. Remove
34016 `static' attribute.
34017 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
34018 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
34019 on a CPU that doesn't implement AMD64 instruction set.
34020
186e7cf2 340212009-10-06 Colin Watson <cjwatson@ubuntu.com>
34022
34023 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
34024 that version.texi is rebuilt on version number changes.
34025
83b65c4a 340262009-10-06 Colin Watson <cjwatson@ubuntu.com>
34027
34028 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
34029 Fixes bug #27602.
34030
d244281c 340312009-10-06 Colin Watson <cjwatson@ubuntu.com>
34032
34033 * util/i386/pc/grub-install.in: Source
34034 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
34035 that the --grub-probe option will work.
34036 * util/sparc64/ieee1275/grub-install.in: Likewise.
34037
da25306d 340382009-10-05 Robert Millan <rmh.grub@aybabtu.com>
34039
34040 * configure.ac: Bump version to 1.97~beta4.
34041
e8ee83c0 340422009-10-03 Robert Millan <rmh.grub@aybabtu.com>
34043
34044 Resync grub-mkdevicemap in x86_64-efi.
34045
34046 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
34047 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
34048 `util/devicemap.c'.
34049
50dcabcf 340502009-10-01 Colin Watson <cjwatson@ubuntu.com>
34051
34052 * util/grub-editenv.c (create_envblk_file): Write new block with a
34053 .new suffix and then rename it into place, to ensure atomic
34054 creation.
34055
0e51c3a7 340562009-09-28 Robert Millan <rmh.grub@aybabtu.com>
34057
34058 Do not automatically install headers.
34059
34060 * Makefile.in (include_DATA): Remove. Update all users.
34061
31299a95 340622009-09-26 Robert Millan <rmh.grub@aybabtu.com>
34063
34064 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
34065 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
34066
34067 * util/osdetect.lua: Remove.
34068 * script/lua/lauxlib.c: Likewise.
34069 * script/lua/ldebug.c: Likewise.
34070 * script/lua/grub_main.c: Likewise.
34071 * script/lua/lauxlib.h: Likewise.
34072 * script/lua/ldebug.h: Likewise.
34073 * script/lua/ltablib.c: Likewise.
34074 * script/lua/liolib.c: Likewise.
34075 * script/lua/lstrlib.c: Likewise.
34076 * script/lua/lualib.h: Likewise.
34077 * script/lua/ldo.c: Likewise.
34078 * script/lua/ldump.c: Likewise.
34079 * script/lua/ldo.h: Likewise.
34080 * script/lua/loslib.c: Likewise.
34081 * script/lua/lundump.c: Likewise.
34082 * script/lua/grub_lib.c: Likewise.
34083 * script/lua/ldblib.c: Likewise.
34084 * script/lua/lundump.h: Likewise.
34085 * script/lua/lmem.c: Likewise.
34086 * script/lua/grub_lib.h: Likewise.
34087 * script/lua/lmathlib.c: Likewise.
34088 * script/lua/lstate.c: Likewise.
34089 * script/lua/ltm.c: Likewise.
34090 * script/lua/lvm.c: Likewise.
34091 * script/lua/lmem.h: Likewise.
34092 * script/lua/lstate.h: Likewise.
34093 * script/lua/ltm.h: Likewise.
34094 * script/lua/ltable.c: Likewise.
34095 * script/lua/lvm.h: Likewise.
34096 * script/lua/llex.c: Likewise.
34097 * script/lua/lgc.c: Likewise.
34098 * script/lua/grub_lua.h: Likewise.
34099 * script/lua/loadlib.c: Likewise.
34100 * script/lua/lfunc.c: Likewise.
34101 * script/lua/lopcodes.c: Likewise.
34102 * script/lua/lparser.c: Likewise.
34103 * script/lua/ltable.h: Likewise.
34104 * script/lua/llex.h: Likewise.
34105 * script/lua/lgc.h: Likewise.
34106 * script/lua/lfunc.h: Likewise.
34107 * script/lua/lbaselib.c: Likewise.
34108 * script/lua/lopcodes.h: Likewise.
34109 * script/lua/lparser.h: Likewise.
34110 * script/lua/lzio.c: Likewise.
34111 * script/lua/linit.c: Likewise.
34112 * script/lua/lobject.c: Likewise.
34113 * script/lua/llimits.h: Likewise.
34114 * script/lua/lstring.c: Likewise.
34115 * script/lua/lzio.h: Likewise.
34116 * script/lua/lapi.c: Likewise.
34117 * script/lua/lcode.c: Likewise.
34118 * script/lua/lua.h: Likewise.
34119 * script/lua/lobject.h: Likewise.
34120 * script/lua/lstring.h: Likewise.
34121 * script/lua/lapi.h: Likewise.
34122 * script/lua/lcode.h: Likewise.
34123 * script/lua/luaconf.h: Likewise.
34124
cb8a2c38 341252009-09-26 Colin Watson <cjwatson@ubuntu.com>
34126
34127 * docs/grub.texi (Command-line and menu entry commands): Document
34128 date and echo commands.
34129
6b9b6276 341302009-09-24 Pavel Roskin <proski@gnu.org>
34131
34132 * include/grub/kernel.h (struct grub_module_header): Remove
34133 `grub_module_header_types'. Make `type' unsigned. Make `size'
34134 32-bit on all platforms.
34135 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
34136 8-bit field. Use grub_host_to_target32() for `size'.
34137 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
34138 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
34139 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
34140
4e5a02a7 341412009-09-24 Robert Millan <rmh.grub@aybabtu.com>
34142
34143 Fix "lost keypress" bug in at_keyboard.
34144
34145 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
34146 Checks for readyness of input buffer (without flushing it).
34147 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
34148 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
34149
c6dcedf6 341502009-09-24 Robert Millan <rmh.grub@aybabtu.com>
34151
34152 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
34153 size check within GRUB_MACHINE_PCBIOS section.
34154
74c958b1 341552009-09-24 Robert Millan <rmh.grub@aybabtu.com>
34156
34157 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
34158 return value.
34159 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
34160 KEYBOARD_ISREADY check.
34161 (grub_at_keyboard_checkkey): Rename to ...
34162 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
34163 Remove gratuitous cast.
34164
ff420223 341652009-09-23 Colin Watson <cjwatson@ubuntu.com>
34166
34167 * configure.ac: Call AC_PROG_MKDIR_P.
34168 * Makefile.in (docs/stamp-vti): Create docs directory. Create
34169 version.texi in $(builddir) rather than $(srcdir).
34170 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
34171 to makeinfo's @include search path.
34172
d96875df 341732009-09-23 Felix Zielcke <fzielcke@z-51.de>
34174
34175 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
34176
9b3f8365 341772009-09-23 Felix Zielcke <fzielcke@z-51.de>
34178
34179 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
34180 for `*.dpkg-new'.
34181
c44c90db 341822009-09-21 Colin Watson <cjwatson@ubuntu.com>
34183
34184 Build info documentation. Some code borrowed from Automake.
34185
34186 * configure.ac: Check for makeinfo.
34187 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
34188 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
34189 docs/version.texi.
34190 (MOSTLYCLEANFILES): Add vti.tmp.
34191 (docs/version.texi, docs/stamp-vti): Update automatically.
34192 (docs/grub.info): Build info documentation. Use --force and ignore
34193 errors for now.
34194 (all-local): Add $(INFOS).
34195 (install-local): Install info files.
34196 (uninstall): Uninstall info files.
34197 * docs/version.texi: Remove from revision control. This file is
34198 automatically generated on build now.
34199 * gendistlist.sh: Add `*.info'.
34200
e0b37bb5 342012009-09-21 Felix Zielcke <fzielcke@z-51.de>
34202
34203 * kern/term.c: Fix indentation.
34204
5a78865b 342052009-09-21 Felix Zielcke <fzielcke@z-51.de>
34206
34207 * util/hostdisk.c: Fix a comment.
34208
dace7e8a 342092009-09-20 Robert Millan <rmh.grub@aybabtu.com>
34210
34211 Fix regression introduced in r2539.
34212
34213 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
34214 to 0xA1.
34215
a83d079b 342162009-09-19 Colin Watson <cjwatson@ubuntu.com>
34217
34218 * util/grub.d/30_os-prober.in: Don't throw away stderr from
4cbbccec 34219 os-prober. Under normal operation, it does not print anything to
34220 stderr; if it does, we need to debug it, and throwing away stderr
34221 makes that excessively difficult.
a83d079b 34222
be94a509 342232009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
34224
34225 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
34226
63f745e8 342272009-09-16 Robert Millan <rmh.grub@aybabtu.com>
34228
34229 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
34230 AC_LANG_PROGRAM from autoconf.
34231 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
34232 prototypes (fixes warning).
34233
34234 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
34235 `--disable-werror' was used.
34236
bbb2a70f 342372009-09-16 Robert Millan <rmh.grub@aybabtu.com>
34238
34239 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
34240 uninitialized `lastaddr'.
34241
77c24f1d 342422009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
34243
0f0b8c87 34244 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
77c24f1d 34245
07197f23 342462009-09-14 Colin Watson <cjwatson@ubuntu.com>
34247
34248 * commands/test.c (get_fileinfo): Return immediately if
34249 grub_fs_probe fails.
34250
dabf1798 342512009-09-14 José Martínez <xosemp@gmail.com>
34252
34253 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
34254
d52109a7 342552009-09-14 Colin Watson <cjwatson@ubuntu.com>
34256
34257 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
34258 output.
34259
56532179 342602009-09-13 Robert Millan <rmh.grub@aybabtu.com>
34261
34262 * configure.ac: Remove --enable-grub-pe2elf. Only build
34263 grub-pe2elf when needed by the build system itself.
34264 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
34265
8ef070f5 342662009-09-12 Robert Millan <rmh.grub@aybabtu.com>
34267
34268 * configure.ac: Bump version to 1.97~beta3.
34269 * docs/version.texi: Likewise.
34270
61229557 342712009-09-12 Robert Millan <rmh.grub@aybabtu.com>
34272
34273 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
34274 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
34275 from here ...
34276 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
34277 (grub_linux_setup_video): ... to here (with some adjustments).
34278
5c9f8d84 342792009-09-12 Robert Millan <rmh.grub@aybabtu.com>
34280
34281 Fix memory corruption issue (spotted by Colin Watson).
34282
34283 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
34284 causing returned size to be stored in an incorrect memory location.
34285 Fix use of uninitialized value when storing the returned size.
34286
e8f5d6e9 342872009-09-12 Yves Blusseau <blusseau@zetam.org>
34288
34289 Change clean rules to properly remove files
34290
34291 * genmk.rb: add new clean rules
34292 * Makefile.in (clean): add the new targets
34293 (mostlyclean): likewise
34294
cda2a409 342952009-09-11 Colin Watson <cjwatson@ubuntu.com>
34296
34297 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
34298 to grub_uint64_t.
34299 * fs/ntfs.c (init_file): Understand 64-bit sizes for
34300 non-resident files.
34301
86695375 343022009-09-11 Colin Watson <cjwatson@ubuntu.com>
34303
34304 * configure.ac: Don't look for help2man when cross-compiling. Fixes
34305 part of bug #27349.
34306
8aa1541a 343072009-09-10 Felix Zielcke <fzielcke@z-51.de>
34308
34309 * util/grub-mkconfig.in: Make the created config mode 400 and
34310 print a warning if it fails.
34311
48d9bb0a 343122009-09-10 Robert Millan <rmh.grub@aybabtu.com>
34313
34314 * util/grub.d/40_custom.in: Ask user to type custom entries below
34315 comment, rather than below 'exec tail' line.
34316
3b0521be 343172009-09-10 Colin Watson <cjwatson@ubuntu.com>
34318
34319 * util/grub.d/40_custom.in: Make sure that the explanatory text is
34320 visible in grub.cfg.
34321
50051d55 343222009-09-10 Colin Watson <cjwatson@ubuntu.com>
34323
34324 * util/grub.d/40_custom.in: Make it a little clearer how to use this
34325 file.
34326
c0d34387 343272009-09-10 Felix Zielcke <fzielcke@z-51.de>
34328
34329 * docs/grub.cfg: Add an example menu entry for memtest86+.
34330
80a608f3 343312009-09-09 Felix Zielcke <fzielcke@z-51.de>
34332
a2094832 34333 * config.guess: Update to latest version from config git.
80a608f3 34334 * config.sub: Likewise.
34335
99423078 343362009-09-08 Colin Watson <cjwatson@ubuntu.com>
34337
34338 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
34339 unknown-command case. Fixes bug #27320.
34340
44454e4c 343412009-09-08 Felix Zielcke <fzielcke@z-51.de>
34342
34343 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
34344 `help' if the command exists.
34345
e30d87ad 343462009-09-06 Robert Millan <rmh.grub@aybabtu.com>
34347
34348 * INSTALL: Require GCC 4.1.3 or later.
34349
9a86f1ec 343502009-09-06 Yves Blusseau <blusseau@zetam.org>
34351
34352 * Makefile.in (RMKFILES): add i386-qemu.rmk
34353 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
34354 $(srcdir)/stamp-h.in
34355
7f26d466 343562009-09-05 Robert Millan <rmh.grub@aybabtu.com>
34357
34358 * util/grub-probe.c (probe): Comment out buggy codepath, which
34359 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
34360 should be re-enabled after 1.97.
34361
3a613259 343622009-09-05 Felix Zielcke <fzielcke@z-51.de>
34363
34364 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
34365 find searches for.
34366
197f76c7 343672009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
34368
34369 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
34370 unnecessary calls to grub_error.
34371
70ba68ce 343722009-09-04 Colin Watson <cjwatson@ubuntu.com>
34373
34374 * NEWS: Mention `keystatus' and Unicode fonts.
34375
4ff0d7a4 343762009-09-04 Robert Millan <rmh.grub@aybabtu.com>
34377
34378 * configure.ac: Bump version to 1.97~beta2.
34379 * docs/version.texi: Likewise.
34380
77c55a87 343812009-09-03 Colin Watson <cjwatson@ubuntu.com>
34382
34383 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
34384 containing unwind information in some cases where it previously did
34385 not. Use -fno-dwarf2-cfi-asm if available to restore the old
34386 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
34387 discussion.
34388
f79572cd 343892009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
34390
34391 Embedding loadenv module into grub-emu
34392
34393 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
34394 commands/loadenv.c
34395 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
34396 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
34397 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
34398 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
34399 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
34400 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
34401
93a81088 344022009-09-03 Magnus Granberg <zorry@ume.nu>
34403
34404 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
34405 include -fPIE in the default specs.
34406 * configure.ac: Check if pie_possible is yes and add -fno-PIE
34407 to TARGET_CFLAGS.
34408
160034b2 344092009-09-03 Felix Zielcke <fzielcke@z-51.de>
34410
34411 * INSTALL: Note that GNU Bison 2.3 or later is required.
34412
087c07c4 344132009-09-03 Colin Watson <cjwatson@ubuntu.com>
34414
34415 * kern/i386/pc/startup.S: Fix typo.
34416
cbf978c0 344172009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
34418
34419 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
34420 according to GCS.
34421
344222009-09-02 Colin Watson <cjwatson@ubuntu.com>
f0910644 34423
34424 * docs/grub.texi (Naming convention): Describe one-based partition
34425 numbering.
34426 (Device syntax): Likewise.
34427 (File name syntax): Likewise.
34428 (Block list syntax): Likewise.
34429 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
34430 menu.lst.
34431 (File name syntax): Likewise.
34432 (Command-line and menu entry commands): Document acpi, blocklist,
34433 crc, export, insmod, keystatus, ls, set, and unset commands.
34434
f3e8cdfd 344352009-09-02 Colin Watson <cjwatson@ubuntu.com>
34436
34437 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
34438 to avoid implying that only one of --shift, --ctrl, or --alt may be
34439 used.
34440
c0bc232b 344412009-09-02 Colin Watson <cjwatson@ubuntu.com>
34442
34443 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
34444 rather than comparing against S_IFREG, which will almost never work.
34445
aa0f752d 344462009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
34447
34448 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
34449 (write_blocklists): Likewise.
34450
ecb3166a 344512009-09-01 Colin Watson <cjwatson@ubuntu.com>
34452
34453 * script/lua/grub_lua.h (fputs): Supply a format string as the first
34454 argument to grub_printf.
34455
c403a125 344562009-09-01 Felix Zielcke <fzielcke@z-51.de>
31aba781 34457
34458 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
c403a125 34459 non GNU test.
31aba781 34460
b5e7312c 344612009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
34462
34463 * kern/file.c (grub_file_read): Spelling fix
34464
fe00f472 344652009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
34466
34467 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
34468 loading of headers in some cases.
34469
cc55302e 344702009-08-30 Robert Millan <rmh.grub@aybabtu.com>
34471
34472 * configure.ac: Bump version to 1.97~beta1.
34473 * docs/version.texi: Likewise.
34474
5c90cdd2 344752009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
64bf71d0 34476
34477 * include/grub/i386/xnu.h: Add license header.
34478 include grub/err.h explicitly.
34479
c90edae4 344802009-08-29 Robert Millan <rmh.grub@aybabtu.com>
34481
34482 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
34483 to `ufs' in the vfs.root.mountfrom kernel parameter.
34484
d8888b5c 344852009-08-29 Robert Millan <rmh.grub@aybabtu.com>
34486
34487 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
34488
34489 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
34490 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
34491
34492 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
34493 `ARRAY_SIZE' macro.
34494
6f07b921 344952009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
34496
34497 * kern/file.c (grub_file_read): Check offset.
34498 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
34499 * fs/jfs.c (grub_jfs_read_file): Likewise.
34500 * fs/ntfs.c (grub_ntfs_read): Likewise.
34501 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
34502 * fs/minix.c (grub_minix_read_file): Correct offset check.
34503 * fs/ufs.c (grub_ufs_read_file): Likewise.
34504
b4f34077 345052009-08-28 Colin Watson <cjwatson@ubuntu.com>
34506
34507 * term/i386/pc/console.c (bios_data_area): Cast
34508 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
34509
e7c69859 345102009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
34511
34512 1-bit optimised blitters.
34513
34514 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
34515 prototype.
34516 (grub_video_fbblit_replace_24bit_1bit): Likewise.
34517 (grub_video_fbblit_replace_16bit_1bit): Likewise.
34518 (grub_video_fbblit_replace_8bit_1bit): Likewise.
34519 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
34520 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
34521 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
34522 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
34523 function.
34524 (grub_video_fbblit_replace_24bit_1bit): Likewise.
34525 (grub_video_fbblit_replace_16bit_1bit): Likewise.
34526 (grub_video_fbblit_replace_8bit_1bit): Likewise.
34527 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
34528 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
34529 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
34530 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
34531 when possible.
34532 * video/video.c (grub_video_get_blit_format): Return
34533 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
34534
a57da43f 345352009-08-28 Colin Watson <cjwatson@ubuntu.com>
34536
34537 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
34538 the first argument to grub_printf.
34539
4cbe67e5 345402009-08-28 Colin Watson <cjwatson@ubuntu.com>
345412009-08-28 Robert Millan <rmh.grub@aybabtu.com>
34542
34543 Add `getkeystatus' terminal method. Add a new `keystatus' command
34544 to query it.
34545
34546 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
34547 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
34548 modifier key bitmasks.
34549 (struct grub_term_input): Add `getkeystatus' member.
34550 (grub_getkeystatus): Add prototype.
34551 * kern/term.c (grub_getkeystatus): New function.
34552
34553 * include/grub/i386/pc/memory.h
34554 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
34555 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
34556 Data Area layout.
34557 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
34558 (grub_console_term_input): Set `getkeystatus' member.
34559 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
34560 constants.
34561 (grub_usb_keyboard_getreport): Likewise.
34562 (grub_usb_keyboard_checkkey): Likewise.
34563 (grub_usb_keyboard_getkeystatus): New function.
34564 (grub_usb_keyboard_term): Set `getkeystatus' member.
34565
34566 * commands/keystatus.c: New file.
34567 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
34568 (keystatus_mod_SOURCES): New variable.
34569 (keystatus_mod_CFLAGS): Likewise.
34570 (keystatus_mod_LDFLAGS): Likewise.
34571 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
34572 commands/keystatus.c.
34573 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
34574 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34575 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
34576 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34577 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34578 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4cbe67e5 34579
6e2a9085 345802009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
34581
34582 Split befs.mod and afs.mod into *_be.mod and *.mod
34583
34584 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
34585 (grub_fstest_SOURCES): Likewise.
34586 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
34587 (afs_be_mod_SOURCES): New variable.
34588 (afs_be_mod_CFLAGS): Likewise.
34589 (afs_be_mod_LDFLAGS): Likewise.
34590 (befs_be_mod_SOURCES): Likewise.
34591 (befs_be_mod_CFLAGS): Likewise.
34592 (befs_be_mod_LDFLAGS): Likewise.
34593 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
34594 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
34595 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34596 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
34597 (grub_emu_SOURCES): Likewise.
34598 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34599 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34600 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
34601 * fs/afs_be.c: New file.
34602 * fs/befs_be.c: New file.
34603 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
34604 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
34605 (U16): Replaced with ...
34606 (grub_afs_to_cpu16): ...this. All users updated.
34607 (U32): Replaced with ...
34608 (grub_afs_to_cpu32): ...this. All users updated.
34609 (U64): Replaced with ...
34610 (grub_afs_to_cpu64): ...this. All users updated.
34611 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
34612 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
ad8ea1f4 34613 (grub_afs_validate_sblock): Check only one endianness.
6e2a9085 34614 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
34615 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
34616 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
34617 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
34618 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
34619 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
34620 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
34621 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
34622
32a71655 346232009-08-26 Bean <bean123ch@gmail.com>
34624
34625 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
34626 64-bit number.
34627 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
34628 (grub_xfs_inode_block): Change return type to grub_uint64_t.
34629 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
34630
552bf6c5 346312009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
34632
34633 NetBSD memory map support.
34634
34635 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
34636 (grub_netbsd_btinfo_mmap_header): New structure.
34637 (grub_netbsd_btinfo_mmap_entry): Likewise.
34638 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
34639
1ae2078c 346402009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
34641
34642 Enable bsd.mod on coreboot.
34643
34644 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
34645 (bsd_mod_SOURCES): New variable.
34646 (bsd_mod_CFLAGS): Likewise.
34647 (bsd_mod_LDFLAGS): Likewise.
34648 (bsd_mod_ASFLAGS): Likewise.
34649 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
34650 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
34651
beefc598 346522009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
34653
34654 Cleanup NetBSD root support.
34655
34656 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
34657 grub_bsd_get_device.
34658 Fix typo.
34659
3b76e68b 346602009-08-25 Felix Zielcke <fzielcke@z-51.de>
34661
34662 * util/grub.d/00_header.in: Move check for the video backend of
34663 gfxterm from here ...
34664 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
34665 a suitable video backend.
34666
aea664ea 346672009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
34668
34669 Fix breakage in grub-setup.
34670
34671 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
34672 "msdos_partition_map".
34673
ff747d50 346742009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
34675
34676 Fix breakage in normal/auth.c.
34677
34678 * normal/auth.c (grub_iswordseparator): New function.
34679
e7e1f93f 346802009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
34681
34682 Authentication support.
34683
34684 * commands/password.c: New file.
34685 * conf/common.rmk (pkglib_MODULES): Add password.mod.
34686 (password_mod_SOURCES): New variable.
34687 (password_mod_CFLAGS): Likewise.
34688 (password_mod_LDFLAGS): Likewise.
34689 (normal_mod_SOURCES): Add normal/auth.c.
34690 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
34691 normal/auth.c.
34692 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
34693 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34694 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
34695 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34696 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34697 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
34698 * include/grub/auth.h: New file.
34699 * include/grub/err.h (grub_err_t): New enum value
34700 GRUB_ERR_ACCESS_DENIED.
34701 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
34702 'users'.
34703 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
34704 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
34705 users updated.
34706 * normal/auth.c: New file.
34707 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
34708 (grub_cmdline_run): Don't allow to go to command line without
34709 authentication.
34710 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
34711 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
34712 menuentry without superuser rights.
34713 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
34714 user isn't a superuser.
34715
70f1161d 347162009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
34717
34718 Save space by inlining misc.c functions.
34719
34720 * kern/misc.c (grub_iswordseparator): Made static.
34721 * kern/misc.c (grub_strcat): Moved from here ...
34722 * include/grub/misc.h (grub_strcat): ... here. Inlined.
34723 * kern/misc.c (grub_strncat): Moved from here ...
34724 * include/grub/misc.h (grub_strncat): ... here. Inlined.
34725 * kern/misc.c (grub_strcasecmp): Moved from here ...
34726 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
34727 * kern/misc.c (grub_strncasecmp): Moved from here ...
34728 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
34729 * kern/misc.c (grub_isalpha): Moved from here ...
34730 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
34731 * kern/misc.c (grub_isdigit): Moved from here ...
34732 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
34733 * kern/misc.c (grub_isgraph): Moved from here ...
34734 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
34735 * kern/misc.c (grub_tolower): Moved from here ...
34736 * include/grub/misc.h (grub_tolower): ... here. Inlined.
34737
48e40bff 347382009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
34739
34740 * script/sh/function.c (grub_script_function_find): Cut error message
34741 not to flood terminal.
34742 * script/sh/lexer.c (grub_script_yylex): Remove command line length
34743 limit.
34744 * script/sh/script.c (grub_script_arg_add): Duplicate string.
34745
c385bfc3 347462009-08-24 Colin Watson <cjwatson@ubuntu.com>
34747
34748 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
34749 `report' grub_uint8_t *.
34750 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
34751 Use a 50-millisecond timeout rather than just repeating
34752 grub_usb_keyboard_getreport 50 times.
34753 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
34754
2d21e3e8 347552009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
34756
34757 Rename *_partition_map to part_*
34758
34759 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
34760 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
34761 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
34762 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
34763 All users updated.
34764 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
34765 All users updated.
34766 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
34767 * util/grub-probe.c (probe_partmap): Don't transform partition name
34768 to get module name.
34769
dd103c4e 347702009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
34771
34772 Fix OpenBSD and NetBSD support.
34773
34774 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
34775 memory address conflict.
34776 (OPENBSD_MMAP_ACPI): New definition.
34777 (OPENBSD_MMAP_NVS): Likewise.
34778 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
34779 and OPENBSD_MMAP_NVS.
34780 Add memory map terminator
34781 Explicit cast when calling grub_unix_real_boot.
ad8ea1f4 34782 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
dd103c4e 34783
16c84d74 347842009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
34785
34786 Let user specify NetBSD root device.
34787
34788 * loader/i386/bsd.c (netbsd_root): New variable.
34789 (netbsd_opts): New option 'root'.
34790 (NETBSD_ROOT_ARG): New macro.
34791 (grub_netbsd_boot): Use 'netbsd_root'.
34792 (grub_bsd_unload): Free 'netbsd_root'.
34793 (grub_cmd_netbsd): Fill 'netbsd_root'.
34794
adb29902 347952009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
34796
34797 Support for 64-bit NetBSD.
34798
34799 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
34800 point when booting non-FreeBSD.
34801
f5ae9f74 348022009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
34803
34804 Support --no-smp and --no-acpi for NetBSD.
34805
34806 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
34807 (NETBSD_AB_NOACPI): Likewise.
34808 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
34809 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
34810
de74f136 348112009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
34812
34813 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
34814 errors.
34815 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
34816 errors. Call grub_error when needed.
34817
e9a925da 348182009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
34819
34820 * commands/search.c (search_fs): Try searching without autoload first.
34821 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
34822 filesystem module explicitly for faster booting.
34823
5174302b 348242009-08-23 Colin Watson <cjwatson@ubuntu.com>
34825
34826 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
34827
c8c80635 348282009-08-23 Colin Watson <cjwatson@ubuntu.com>
34829
34830 * util/grub.d/30_os-prober.in: Disable os-prober if
34831 `GRUB_DISABLE_OS_PROBER' was set to true.
34832
71acf5e5 348332009-08-23 Robert Millan <rmh.grub@aybabtu.com>
34834
34835 * partmap/pc.c: Rename to ...
34836 * partmap/msdos.c: ... this. Update all users.
34837 (grub_pc_partition_map): Rename to ...
34838 (grub_msdos_partition_map): ... this. Update all users.
34839
34840 * parttool/pcpart.c: Rename to ...
34841 * parttool/msdospart.c: ... this. Update all users.
34842
34843 * include/grub/pc_partition.h: Rename to ...
34844 * include/grub/msdos_partition.h: ... this. Update all users.
34845 (grub_pc_partition_bsd_entry): Rename to ...
34846 (grub_msdos_partition_bsd_entry): ... this. Update all users.
34847 (grub_pc_partition_disk_label): Rename to ...
34848 (grub_msdos_partition_disk_label): ... this. Update all users.
34849 (grub_pc_partition_entry): Rename to ...
34850 (grub_msdos_partition_entry): ... this. Update all users.
34851 (grub_pc_partition_mbr): Rename to ...
34852 (grub_msdos_partition_mbr): ... this. Update all users.
34853 (grub_pc_partition): Rename to ...
34854 (grub_msdos_partition): ... this. Update all users.
34855 (grub_pc_partition_is_empty): Rename to ...
34856 (grub_msdos_partition_is_empty): ... this. Update all users.
34857 (grub_pc_partition_is_extended): Rename to ...
34858 (grub_msdos_partition_is_extended): ... this. Update all users.
34859 (grub_pc_partition_is_bsd): Rename to ...
34860 (grub_msdos_partition_is_bsd): ... this. Update all users.
34861
34862 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
34863 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
34864 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
34865 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
34866 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
34867 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
34868 (gpt_mod_LDFLAGS): Rename to ...
34869 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
34870 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
34871 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
34872 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
34873 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
34874 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
34875 (part_gpt_mod_LDFLAGS): ... this.
34876 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
34877 `pcpart.mod' to `msdospart.mod'.
34878 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
34879 to ...
34880 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
34881 (msdospart_mod_LDFLAGS): ... this.
34882
c11fded5 348832009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
34884
34885 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
34886 (openbsd_opts): Likewise.
34887 (netbsd_opts): Likewise.
34888 (freebsd_flags): Added 0 terminator.
34889 (openbsd_flags): Likewise.
34890 (netbsd_flags): Likewise.
34891 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
34892 (grub_cmd_freebsd): Transformed into extended command.
34893 (grub_cmd_openbsd): Likewise.
34894 (grub_cmd_netbsd): Likewise.
34895 (cmd_freebsd): Changed type to grub_extcmd_t.
34896 (cmd_openbsd): Likewise.
34897 (cmd_netbsd): Likewise.
34898 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
34899 grub_cmd_openbsd as extended commands.
34900 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
34901 cmd_netbsd and cmd_openbsd
34902
11d1c769 349032009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
34904
34905 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
34906
7a9094e5 349072009-08-21 Pavel Roskin <proski@gnu.org>
34908
5496c37e 34909 * Makefile.in (install-local): When checking if a file is in the
34910 build directory, use "test -e" to detect symlinks.
34911
7a9094e5 34912 * Makefile.in (install-local): Remove all files in
34913 $(DESTDIR)$(pkglibdir) before installing new files there.
34914
e53cea11 349152009-08-18 Felix Zielcke <fzielcke@z-51.de>
34916
34917 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
34918 grub-mkelfimage.
34919
9aced544 349202009-08-18 Felix Zielcke <fzielcke@z-51.de>
34921
34922 * util/grub-mkconfig.in: Don't use gfxterm by default if not
34923 explicitly specified by the user.
34924
b7da6bab 349252009-08-18 Pavel Roskin <proski@gnu.org>
34926
34927 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
34928 grub_uint8_t pointer for data.
34929 * include/grub/fbutil.h (struct grub_video_fbblit_info):
34930 Likewise.
34931 * video/fb/fbutil.c: Remove unnecessary casts.
34932
19f1b335 349332009-08-17 Michal Suchanek <hramrach@centrum.cz>
34934
34935 VBE cleanup.
34936
34937 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
34938 (grub_vbe_set_video_mode): Save active mode info
34939 only after setting the mode.
34940 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
34941 second argument.
34942
2f467aa9 349432009-08-17 Michal Suchanek <hramrach@centrum.cz>
34944
34945 Rename variables for clarity.
34946
34947 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
34948 (active_vbe_mode_info): ... this. All users updated.
34949 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
34950 All users updated.
34951 (initial_mode): Rename to ...
34952 (initial_vbe_mode): ... this. All users updated.
34953 (mode_in_use): Rename to ..
34954 (vbe_mode_in_use): ... this. All users updated.
34955 (mode_list): Rename to ..
34956 (vbe_mode_list): ... this. All users updated.
34957 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
34958 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
34959 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
34960 'mode_list_size' to 'vbe_mode_list_size'.
34961 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
34962 'best_mode_info' to 'best_vbe_mode_info' and
34963 'best_mode' to 'best_vbe_mode'
34964
6025fcd7 349652009-08-17 Michal Suchanek <hramrach@centrum.cz>
34966
34967 Remove duplicate grub_video_fb_get_video_ptr.
34968
34969 * include/grub/fbutil.h (get_data_ptr): Rename to ...
34970 (grub_video_fb_get_video_ptr): ... this.
34971 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
34972 * video/fb/fbutil.c: Add comment about addressing.
34973 (get_data_ptr): Rename to ...
34974 (grub_video_fb_get_video_ptr): ... this. All users updated.
34975 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
34976
cc8c6faf 349772009-08-17 Robert Millan <rmh.grub@aybabtu.com>
34978
34979 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
34980 grub_dprintf() that was just added.
34981
08aa61f0 349822009-08-17 Robert Millan <rmh.grub@aybabtu.com>
34983
34984 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
34985 (DEFAULT_VIDEO_MODE): Remove macros.
34986 (grub_linux_boot): Remove assumption that Linux has FB support,
34987 and use "text" as default video mode.
34988
7cef4f75 349892009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
34990
34991 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
34992 grub_dprintf.
34993 * fs/fat.c (grub_fat_read_data): Likewise.
34994
e1f39873 349952009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
34996
34997 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
34998 payload.
34999 (grub_module): Likewise.
35000
c166d79e 350012009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
35002
35003 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
35004 mbi->cmdline but free playground.
35005
c60cee8e 350062009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
35007
35008 Handle group offset on UFS1.
35009
35010 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
35011 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
35012
c0d8b5d4 350132009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
35014
35015 Split ufs.mod into ufs1.mod and ufs2.mod.
35016
35017 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
35018 (grub_fstest_SOURCES): Likewise.
35019 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
35020 (ufs_mod_SOURCES): Remove.
35021 (ufs_mod_CFLAGS): Likewise.
35022 (ufs_mod_LDFLAGS): Likewise.
35023 (ufs1_mod_SOURCES): New variable.
35024 (ufs1_mod_CFLAGS): Likewise.
35025 (ufs1_mod_LDFLAGS): Likewise.
25fbd77a 35026 (ufs2_mod_SOURCES): New variable.
35027 (ufs2_mod_CFLAGS): Likewise.
35028 (ufs2_mod_LDFLAGS): Likewise.
c0d8b5d4 35029 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
35030 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
35031 Likewise.
35032 (grub_emu_SOURCES): Likewise.
35033 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35034 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35035 (grub_setup_SOURCES): Likewise.
35036 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35037 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
35038 (grub_setup_SOURCES): Likewise.
35039 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
35040 Likewise.
35041 * fs/ufs2.c: New file.
35042 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
35043
d3539132 350442009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
35045
35046 Framebuffer split.
35047
35048 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
35049 subsystem at the end.
35050 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
35051 (video_fb_mod_SOURCES): New variable.
35052 (video_fb_mod_CFLAGS): Likewise.
35053 (video_fb_mod_LDFLAGS): Likewise.
35054 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
35055 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
35056 * video/i386/pc/vbeblit.c: Moved from here ...
35057 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
35058 * video/i386/pc/vbefill.c: Moved from here ...
35059 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
35060 * video/i386/pc/vbeutil.c: Moved from here ...
35061 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
35062 * include/grub/i386/pc/vbeblit.h: Moved from here ...
35063 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
35064 * include/grub/i386/pc/vbefill.h: Moved from here ...
35065 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
35066 * include/grub/i386/pc/vbeutil.h: Moved from here ...
35067 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
35068 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
35069 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
35070 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
35071 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
35072 (grub_video_adapter): Added 'get_info_and_fini'.
35073 (grub_video_get_info_and_fini): New prototype.
35074 (grub_video_set_mode): make modestring const char *.
35075 * loader/i386/linux.c (grub_linux_setup_video): Use
35076 grub_video_get_info_and_fini.
35077 (grub_linux_boot): Move modesetting just before booting.
35078 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
35079 grub_video_get_info_and_fini.
35080 * video/i386/pc/vbe.c: Moved framebuffer part ...
35081 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
35082 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
35083 grub_video_fbstd_colors and grub_video_fb_set_palette.
35084 (grub_video_vbe_init): Clear 'framebuffer' variable and use
35085 grub_video_fb_init.
35086 (grub_video_vbe_fini): Use grub_video_fb_fini.
35087 (grub_video_vbe_setup): Use framebuffer.render_target instead of
35088 render_target and use grub_video_fb_set_active_render_target and
35089 grub_video_fb_set_palette.
35090 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
35091 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
35092 (grub_video_vbe_adapter): Use framebuffer.
35093 * video/video.c (grub_video_get_info_and_fini): New function.
35094 (grub_video_set_mode): Make modestring const char *.
35095 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
35096 values are already initialised.
35097
d404ee56 350982009-08-14 Pavel Roskin <proski@gnu.org>
35099
35100 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
35101 ABS and APPLE_CC.
35102 * boot/i386/pc/diskboot.S: Likewise.
35103 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
35104 sectors allow compilation on MacOSX.
35105 * conf/i386-pc.rmk: Enable unconditional compilation of
35106 lnxboot.img.
35107
9a10df16 351082009-08-13 Colin Watson <cjwatson@ubuntu.com>
35109
35110 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
35111 * util/grub.d/00_header.in: Enter interruptible sleep if
35112 GRUB_HIDDEN_TIMEOUT is set.
35113
be3c9ca7 351142009-08-13 Yves Blusseau <blusseau@zetam.org>
35115
35116 * include/grub/symbol.h: Add the LOCAL macro.
35117 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
35118 starting with "L_".
35119
1f9e557e 351202009-08-13 Pavel Roskin <proski@gnu.org>
35121
9ca62843 35122 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
35123 any modern compilers we support.
35124
1f9e557e 35125 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
35126 Use local labels starting with "L_" so that Apple assembler
35127 knows they are local.
35128
81623db6 351292009-08-10 Robert Millan <rmh.grub@aybabtu.com>
35130
35131 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
35132 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
35133 (bsd_kernel_types): ... this enum.
35134
35135 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
35136 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
35137 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
35138
35139 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
35140 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
35141 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
35142 messages.
35143
f5d35e7a 351442009-08-08 Robert Millan <rmh.grub@aybabtu.com>
35145
35146 * util/grub-dumpdevtree: Moved from here ...
35147 * util/i386/efi/grub-dumpdevtree: ... to here.
35148 (hexify): New function. Converts a string to its hex version.
35149 Generate hex versions of "efi" and "device-properties" by calling
35150 hexify() on the ASCII strings rather than by hardcoding numbers.
35151
d1e1d527 351522009-08-08 Robert Millan <rmh.grub@aybabtu.com>
35153
35154 * fs/jfs.c: Update copyright year.
35155
1ebbe064 351562009-08-08 Felix Zielcke <fzielcke@z-51.de>
35157
35158 * util/grub.d/00_header.in: Fix a comment.
35159 * util/grub.d/10_linux.in: Likewise.
35160 * util/grub.d/10_windows.in: Likewise.
35161 * util/grub.d/10_hurd.in: Likewise.
35162
a78c8d24 351632009-08-08 Felix Zielcke <fzielcke@z-51.de>
35164
35165 * util/grub-mkconfig.in: Allow the user to specify the used font
35166 with GRUB_FONT.
35167
29a6b9e8 351682009-08-08 Pavel Roskin <proski@gnu.org>
35169
b5f16cc4 35170 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
35171 available, xfs.mod needs it now.
35172
2f5cb827 35173 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
35174 the "g" modifier in sed when the intention is to strip something
35175 once. This fixes comparison of kernels with multiple dashes.
35176
29a6b9e8 35177 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
35178 on it. Add missing space before closing bracket. Fix
35179 misleading formatting.
35180
892a3d98 351812009-08-07 Robert Millan <rmh.grub@aybabtu.com>
35182
35183 * docs/grub.texi: Major overhaul. Remove all sections that are
35184 specific to GRUB Legacy, or mostly composed of Legacy-specific
35185 information.
35186
ed94253f 351872009-08-07 Robert Millan <rmh.grub@aybabtu.com>
35188
35189 * docs/version.texi: New file. Provides version information for
35190 grub.texi.
35191
126d6628 351922009-08-07 Robert Millan <rmh.grub@aybabtu.com>
35193
35194 * docs/grub.texi: Update CVS information to SVN.
35195 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
35196
998b5aa9 351972009-08-07 Felix Zielcke <fzielcke@z-51.de>
35198
35199 * util/grub-mkconfig.in: Remove a wrong `fi'.
35200
818e094a 352012009-08-07 Felix Zielcke <fzielcke@z-51.de>
35202
35203 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
35204 (grub_jfs_uuid): New function.
35205 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
35206
b969c52f 352072009-08-07 Felix Zielcke <fzielcke@z-51.de>
35208
35209 * util/grub-mkconfig_lib.in (font_path): Move the functionality
35210 of it to ...
35211 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
35212 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
35213
7a4894cc 352142009-08-07 Robert Millan <rmh.grub@aybabtu.com>
35215
35216 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
35217 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
35218 Update all users.
35219
35220 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
35221 not just "vmlinu[zx]".
35222 Moved from here ...
35223 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
35224 all users.
35225
35226 * util/grub.d/10_linux.in (find_latest): Moved from here ...
35227 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
35228 all users.
35229
4e2171f8 352302009-08-07 Robert Millan <rmh.grub@aybabtu.com>
35231
35232 * util/grub.d/10_freebsd.in: Use an absolute device path for
35233 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
35234
6dcfcb32 352352009-08-06 Felix Zielcke <fzielcke@z-51.de>
35236
35237 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
35238 handling of multiple abstraction modules.
35239
f56a8756 352402009-08-04 Robert Millan <rmh.grub@aybabtu.com>
35241
35242 Fix a bug resulting in black screen when loading Linux using a
35243 packed video mode.
35244
35245 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
35246 function.
35247
35248 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
35249 (grub_vbe_bios_getset_dac_palette_width): New function.
35250 (grub_vbe_bios_get_dac_palette_width)
35251 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
35252 grub_vbe_bios_getset_dac_palette_width()).
35253
35254 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
35255 check for return status.
35256 (grub_vbe_get_video_mode_info): When getting information for a packed
35257 mode (<= 8 bpp), obtain DAC palette width using
35258 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
35259 {red,green,blue}_mark_size.
35260
222671b2 352612009-08-04 Felix Zielcke <fzielcke@z-51.de>
35262
ecb1a6d9 35263 * commands/search.c (options): Fix help output to match actual code.
222671b2 35264
f84114f5 352652009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
35266
35267 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
35268 of homegrown code.
35269
bd288a20 352702009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
e768b770 35271
35272 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
35273 on XFS or ReiserFS.
35274
8aab5e25 352752009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
35276
35277 Support Apple partition map with sector size different from 512 bytes.
35278
35279 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
35280 (apple_partition_map_iterate): Respect 'aheader.blocksize'
35281 and 'apart.partmap_size'.
35282
6ad6258a 352832009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
352842009-08-01 Robert Millan <rmh.grub@aybabtu.com>
35285
35286 Fix cpuid command.
35287
35288 * commands/i386/cpuid.c (options): New variable.
35289 (grub_cmd_cpuid): Return real error.
35290 (GRUB_MOD_INIT(cpuid)): Declare options.
35291
67459bc6 352922009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
35293
35294 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
35295 valid.
35296
fbc6ab54 352972009-07-31 Bean <bean123ch@gmail.com>
35298
35299 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
35300 log2_inode.
35301 (grub_fshelp_node): Move inode field to the end.
35302 (grub_xfs_data): Remove inode field.
35303 (grub_xfs_inode_block): Calculate inode size using sblock.
35304 (grub_xfs_inode_offset): Likewise.
35305 (grub_xfs_read_inode): Calculate inode size using sblock.
35306 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
35307 (grub_xfs_iterate_dir): Calculate inode size using sblock.
35308 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
35309 to match inode size.
35310 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
35311 not accessible when data is null.
35312 (grub_xfs_open): Likewise.
35313
f45d6cfc 353142009-07-31 Bean <bean123ch@gmail.com>
35315
35316 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
35317 Don't change pv->disk if it's already set.
35318
35319 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
35320 (grub_raid_register): ... here.
35321 (grub_raid_rescan): Removed.
35322
35323 * include/grub/raid.h (grub_raid_rescan): Removed.
35324
35325 * util/grub-fstest.c: Remove include file <grub/raid.h>.
35326 (fstest): Replace grub_raid_rescan with module fini function followed
35327 by init function.
35328
35329 * util/grub-probe.c: Add include file <grub/raid.h>.
35330 (probe_raid_level): New function.
35331 (probe): Detect abstraction by walking the disk device, support two
35332 level of abstraction (LVM on RAID) when detecting partition map.
35333
24443b5a 353342009-07-31 Pavel Roskin <proski@gnu.org>
35335
35336 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
35337 to grub_zalloc(), it was erroneous.
35338 Reported by Bean <bean123ch@gmail.com>
35339
a275d9e7 353402009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
35341
35342 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
ad8ea1f4 35343 embedding zone, not only the first one.
a275d9e7 35344
56c5a47f 353452009-07-29 Joe Auricchio <jauricchio@gmail.com>
35346
35347 * term/gfxterm.c (clear_char): New function.
35348 (grub_virtual_screen_setup): Use clear_char.
35349 (scroll_up): Likewise.
35350 (grub_virtual_screen_cls): Likewise.
35351
67bb323a 353522009-07-29 Felix Zielcke <fzielcke@z-51.de>
35353
35354 * util/deviceiter.c (get_acceleraid_disk_name): New static
35355 function.
35356 (grub_util_iterate_devices): Handle Accelraid devices.
35357 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
35358
388a7c75 353592009-07-28 Robert Millan <rmh.grub@aybabtu.com>
35360
35361 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
35362 separator for the suggested gfxpayload string (';' collides with the
35363 parser and needs escaping).
35364
3bb7abcf 353652009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
35366
35367 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
35368 Clear direction flag before jumping to OS.
35369 (grub_multiboot2_real_boot): Likewise.
35370
2ddd36d7 353712009-07-28 Felix Zielcke <fzielcke@z-51.de>
35372
35373 * util/i386/pc/grub-install: Fix parsing of --disk-module
35374 option.
35375
c521b62b 353762009-07-28 Felix Zielcke <fzielcke@z-51.de>
35377
35378 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
35379 when embedding.
35380
880e0a0c 353812009-07-26 Felix Zielcke <fzielcke@z-51.de>
35382
35383 * util/grub-mkconfig.in (package_version): New variable.
35384 Use it do display the version.
35385
2366e356 353862009-07-25 Felix Zielcke <fzielcke@z-51.de>
35387
35388 * kern/file.c (grub_file_open): Revert to previous check with
35389 grub_errno.
35390
7ad8c80e 353912009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
35392
35393 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
35394 from help line. It's out of sync with code.
35395
72b9658b 353962009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
35397
35398 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
35399 entries on failed boot.
35400
77435277 354012009-07-25 Felix Zielcke <fzielcke@z-51.de>
35402
35403 * kern/file.c (grub_file_open): Fix an error check.
35404
fcaa8b21 354052009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
35406
35d16c74 35407 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
35408 partition map couldn't be identified.
fcaa8b21 35409
48904cd1 354102009-07-23 Pavel Roskin <proski@gnu.org>
35411
ef3c317f 35412 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
35413 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
35414 case of little endian words becomes just an optimization.
35415 Respect const modifier.
ad8ea1f4 35416 (md5_final): Use code that doesn't depend on endianness.
ef3c317f 35417
48904cd1 35418 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
35419 to avoid loss of upper bits if align is unsigned and shorter
35420 than addr.
35421
260c9a89 354222009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
35423
35424 UUID support for UFS
35425
35426 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
35427 (grub_ufs_uuid): New function.
35428 (grub_ufs_fs): add .uuid
35429
f76ce889 354302009-07-21 Pavel Roskin <proski@gnu.org>
35431
35432 * kern/dl.c (grub_dl_check_header): Make static.
35433
6a6cbcaf 354342009-07-21 Felix Zielcke <fzielcke@z-51.de>
35435
35436 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
35437 add drivemap for Vista. It breaks Windows 7.
35438
cffcddb2 354392009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
35440
35441 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
35442 128 bytes
35443
1ef44b80 354442009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
35445
35446 Add BFS support
35447
35448 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
35449 (grub_fstest_SOURCES): Likewise.
35450 (pkglib_MODULES): Add befs.mod.
35451 (befs_mod_SOURCES): New variable.
35452 (befs_mod_CFLAGS): Likewise.
35453 (befs_mod_LDFLAGS): Likewise.
35454 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
35455 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35456 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35457 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35458 (grub_setup_SOURCES): Likewise.
35459 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35460 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35461 (grub_setup_SOURCES): Likewise.
35462 * fs/befs.c: New file.
35463 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
35464 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
35465 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
35466 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
35467 (B_KEY_INDEX_ALIGN): New declaration.
35468 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
35469 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
35470 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
35471 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
35472 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
35473 (grub_afs_mount) [MODE_BFS]: Likewise.
35474 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
35475 (grub_afs_fs): Use GRUB_AFS_FSNAME
35476 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
35477 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
35478 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
35479 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
35480
4f253044 354812009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
35482
35483 * util/getroot.c (find_root_device): Add support for MacOSX.
35484 * util/hostdisk.c: Likewise.
35485
57a55913 354862009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
35487
35488 * font/font.c (find_glyph): Check whether a font is present to avoid
35489 segmentation fault.
75421ca9 35490
354912009-07-20 Joe Auricchio <jauricchio@gmail.com>
04c7c429 35492
35493 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
35494
e98cd0c2 354952009-07-20 Pavel Roskin <proski@gnu.org>
35496
35497 * configure.ac: Trim excessively wordy excuses.
35498
1d2d169a 354992009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
35500
35501 Add symlink, mtime and label support to AtheFS.
35502
35503 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
35504 (grub_afs_iterate_dir): Handle symlinks.
35505 (grub_afs_open): Use grub_afs_read_symlink.
35506 (grub_afs_dir): Likewise.
35507 Pass mtime.
35508 (grub_afs_label): New function.
35509 (grub_afs_fs): Add grub_afs_label.
35510 (grub_afs_read_symlink): New function.
35511
186f3189 355122009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
35513
35514 Fix AtheFS support.
35515
35516 * fs/afs.c: Fix comments style.
35517 (grub_afs_blockrun): Declare as packed.
35518 (grub_afs_datastream): Likewise.
35519 (grub_afs_bnode): Likewise.
35520 (grub_afs_btree): Likewise.
35521 (grub_afs_sblock): Likewise.
35522 Declare `name' as char.
35523 (grub_afs_inode): Declare as packed.
35524 Change void *vnode to grub_uint32_t unused.
35525 (grub_afs_iterate_dir): Check that key_size is positive.
35526 (grub_afs_mount): Don't read superblock twice.
75421ca9 35527 (grub_afs_dir): Don't free node in case of error,
186f3189 35528 grub_fshelp_find_file already handles this.
35529 (grub_afs_open): Likewise.
35530
5680109e 355312009-07-19 Pavel Roskin <proski@gnu.org>
35532
35533 * Makefile.in: Remove LIBLZO and enable_lzo.
35534 * conf/i386-pc.rmk: Remove lzo support.
35535 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
35536 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
35537 support.
35538 * kern/i386/pc/lzo1x.S: Remove.
35539 * kern/i386/pc/startup.S: Remove lzo support.
35540 * util/i386/pc/grub-mkimage.c: Likewise.
35541
ac70fa32 355422009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
35543
35544 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
35545 * fs/xfs.c (grub_xfs_dir): Likewise.
35546 * fs/afs.c (grub_afs_dir): Likewise.
35547 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
35548 (grub_iso9660_open): Likewise.
35549 * fs/jfs.c (grub_jfs_open): Likewise.
35550 * fs/ext2.c (grub_ext2_dir): Likewise.
35551 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
35552 * script/sh/lexer.c (grub_script_yylex): Likewise.
75421ca9 35553
eab58da2 355542009-07-16 Pavel Roskin <proski@gnu.org>
35555
d2838156 35556 * configure.ac: Never add "-c" to CFLAGS.
35557
55c70904 35558 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
35559
43e6200c 35560 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
35561 grub_cv_cc_efiemu should be used.
35562
ce7a733d 35563 * configure.ac: Typo fixes.
35564
eab58da2 35565 * kern/mm.c (grub_zalloc): New function.
35566 (grub_debug_zalloc): Likewise.
35567 * include/grub/mm.h: Declare grub_zalloc() and
35568 grub_debug_zalloc().
35569 * util/misc.c (grub_zalloc): New function.
35570 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
35571 instead of grub_malloc(), remove unneeded initializations.
35572 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
35573 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
35574 * commands/parttool.c (grub_cmd_parttool): Likewise.
35575 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
35576 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
35577 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
35578 * disk/usbms.c (grub_usbms_finddevs): Likewise.
35579 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
35580 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
35581 (grub_cmd_efiemu_pnvram): Likewise.
35582 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
35583 * fs/iso9660.c (grub_iso9660_mount): Likewise.
35584 (grub_iso9660_iterate_dir): Likewise.
35585 * fs/jfs.c (grub_jfs_opendir): Likewise.
35586 * fs/ntfs.c (list_file): Likewise.
35587 (grub_ntfs_mount): Likewise.
35588 * kern/disk.c (grub_disk_open): Likewise.
35589 * kern/dl.c (grub_dl_load_core): Likewise.
35590 * kern/elf.c (grub_elf_file): Likewise.
35591 * kern/env.c (grub_env_context_open): Likewise.
35592 (grub_env_set): Likewise.
35593 (grub_env_set_data_slot): Likewise.
35594 * kern/file.c (grub_file_open): Likewise.
35595 * kern/fs.c (grub_fs_blocklist_open): Likewise.
35596 * loader/i386/multiboot.c (grub_module): Likewise.
35597 * loader/xnu.c (grub_xnu_create_key): Likewise.
35598 (grub_xnu_create_value): Likewise.
35599 * normal/main.c (grub_normal_add_menu_entry): Likewise.
35600 (read_config_file): Likewise.
35601 * normal/menu_entry.c (make_screen): Likewise.
35602 * partmap/sun.c (sun_partition_map_iterate): Likewise.
35603 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
35604 * script/sh/script.c (grub_script_parse): Likewise.
35605 * video/bitmap.c (grub_video_bitmap_create): Likewise.
35606 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
35607 * video/readers/png.c (grub_png_output_byte): Likewise.
35608 (grub_video_reader_png): Likewise.
35609
830afef7 356102009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5ce5507f 35611
35612 Enable all targets that can be built by default
35613
830afef7 35614 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
5ce5507f 35615 grub-mkfont and grub-fstest if they can be built
35616
ee293aee 356172009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
35618
35619 Fix hang and segmentation fault in grub-emu-usb
35620
35621 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
35622 * util/usb.c (grub_libusb_devices): likewise
35623 (grub_libusb_init): rename to ...
35624 (GRUB_MOD_INIT (libusb)):...this
35625 (grub_libusb_fini): rename to ..
35626 (GRUB_MOD_FINI (libusb)):...this
35627 * disk/usbms.c (grub_usbms_transfer): fix retry logic
35628 * include/grub/disk.h (grub_raid_init): removed, it's useless
35629 (grub_raid_fini): likewise
35630 (grub_lvm_init): likewise
35631 (grub_lvm_fini): likewise
35632 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
35633 by grub_init_all
35634
94414221 356352009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
35636
35637 Fix libusb
35638
35639 * Makefile.in (LIBUSB): new macro
35640 * genmk.rb (Utility/print_tail): new method
35641 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
35642 (top level): call util.print_tail at the end.
35643
59ade63d 356442009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
35645
35646 Make FreeBSD accept zpool.cache
35647
35648 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
35649 type is /boot/zfs/zpool.cache
35650
a58da8c7 356512009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
35652
35653 Fix 64-bit efiemu
35654
35655 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
35656 correct wrong typedef
35657 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
35658
20591577 356592009-07-15 Pavel Roskin <proski@gnu.org>
35660
560ca572 35661 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
35662 * kern/disk.c (struct grub_disk_cache): Likewise.
35663
e8e8e4fd 35664 * commands/probe.c (options): Typo fix.
35665
fde24e10 35666 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
35667 Increase to 0x5a to accommodate FAT32. Adjust other offsets
35668 accordingly.
35669 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
35670
379c54c1 35671 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
35672 the end of "Error" to make the message more readable.
35673
7bd8f5bf 35674 * boot/i386/pc/boot.S (kernel_segment): Remove.
35675 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
35676 for destination.
35677
40b132c5 35678 * boot/i386/pc/boot.S (boot_version): Remove.
35679 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
35680 Remove.
35681
20591577 35682 * include/grub/i386/pc/boot.h: Sort all offsets.
35683 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
35684 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
35685 * boot/i386/pc/boot.S: Assert location of every offset listed in
35686 include/grub/i386/pc/boot.h.
35687
2df32b2c 356882009-07-13 Pavel Roskin <proski@gnu.org>
35689
44b5d879 35690 * include/grub/i386/coreboot/machine.h: Rename
35691 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
35692 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
35693 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
35694
17dc3751 35695 * kern/dl.c: Force native word size to suppress warnings when
35696 compiling grub-emu.
35697
2df32b2c 35698 * kern/device.c (grub_device_iterate): Change struct part_ent to
35699 hold the name, not a pointer to it. Use one grub_malloc() per
35700 partition, not two. Free partition_name if grub_malloc() fails.
35701 Set ents to NULL only before grub_partition_iterate() is called.
35702
75c59f59 357032009-07-11 Bean <bean123ch@gmail.com>
35704
35705 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
35706 childname.
35707
0ae1bf88 357082009-07-10 Bean <bean123ch@gmail.com>
357092009-07-10 Robert Millan <rmh.grub@aybabtu.com>
35710
35711 * kern/ieee1275/openfw.c (grub_children_iterate)
35712 (grub_devalias_iterate): Fix size evaluation for property or path
35713 strings, which was broken since r2132.
35714
8279cade 357152009-07-07 Pavel Roskin <proski@gnu.org>
35716
7d8a52d3 35717 * commands/search.c (search_file): Merge into ...
35718 (search_fs): ... this. Accept search type as argument.
35719 (grub_cmd_search): Pass search type to search_fs().
35720
25f9a05a 35721 * include/grub/util/console.h: New file.
35722 * util/console.c: Use it instead of grub/machine/console.h.
35723 * util/grub-emu.c: Likewise.
35724
8279cade 35725 * lib/arg.c (find_long_option): Remove.
35726 (find_long): Add `len' argument, make `s' const char *.
35727 (grub_arg_parse): Parse long options in place, not in a
35728 temporary buffer.
35729
4a11b60f 357302009-07-06 Pavel Roskin <proski@gnu.org>
35731
99f68041 35732 * commands/search.c (search_fs): Fix potential NULL pointer
35733 dereference.
35734
4a11b60f 35735 * commands/search.c (search_fs): Replace QUID macro with quid_fn
35736 function pointer.
35737
e110f4de 357382009-07-06 Daniel Mierswa <impulze@impulze.org>
35739
35740 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
35741 comparison.
35742
46eeb6a2 357432009-07-05 Pavel Roskin <proski@gnu.org>
35744
bab74958 35745 * include/grub/i386/linux.h (struct linux_kernel_params):
35746 Restore padding3, it's still needed.
35747
46eeb6a2 35748 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
35749 FreeBSD.
35750 * util/osdetect.lua: Likewise.
35751
b4a1dc79 357522009-07-05 Bean <bean123ch@gmail.com>
35753
35754 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
35755
35756 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
35757 (grub_lua_getenv): Likewise.
35758 (grub_lua_setenv): Likewise.
35759 (save_errno): New function.
35760 (push_result): Likewise.
35761 (grub_lua_enum_device): Likewise.
35762 (grub_lua_enum_file): Likewise.
35763 (grub_lua_file_open): Likewise.
35764 (grub_lua_file_close): Likewise.
35765 (grub_lua_file_seek): Likewise.
35766 (grub_lua_file_read): Likewise.
35767 (grub_lua_file_getline): Likewise.
35768 (grub_lua_file_getsize): Likewise.
35769 (grub_lua_file_getpos): Likewise.
35770 (grub_lua_file_eof): Likewise.
35771 (grub_lua_file_exist): Likewise.
35772 (grub_lua_add_menu): Likewise.
35773
35774 * script/lua/grub_lua.h (isupper): New inline function.
35775 (islower): Likewise.
35776 (ispunct): Likewise.
35777 (isxdigit): Likewise.
35778 (strcspn): Change to normal function.
35779 (strpbkr): New function declaration.
35780 (memchr): Likewise.
35781
35782 * script/lua/grub_main.c (scan_str): New function.
35783 (strcspn): Likewise.
35784 (strpbrk): Likewise.
35785 (memchr): Likewise.
35786
35787 * script/lua/linit.c (lualibs): Enable the string library.
35788
35789 * util/osdetect.lua: New file.
35790
2da92295 357912009-07-04 Robert Millan <rmh.grub@aybabtu.com>
35792
35793 * include/grub/i386/linux.h (struct linux_kernel_params): Add
35794 `capabilities' member.
35795
b2582ec9 357962009-07-02 Pavel Roskin <proski@gnu.org>
35797
35798 * genparttoollist.sh: Add missing newline at the end.
35799
32622956 358002009-07-01 Pavel Roskin <proski@gnu.org>
35801
87a7339e 35802 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
35803
d23af54e 35804 * util/hostdisk.c (open_device): Remove `const' from
35805 `sysctl_size', as sysctlbyname() can change it (in this case it
35806 doesn't actually happen).
35807
c94b18a9 35808 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
35809 using signed long int constants.
35810
c6cd3ef0 35811 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
35812 constant to avoid a warning on FreeBSD.
35813
0df63420 35814 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
35815 where it's needed.
35816
999577f1 35817 * Makefile.in: Install include/grub/machine symlink.
35818
6f41557f 35819 * Makefile.in: When installing symlinks, use "cp -fR", which
35820 works on FreeBSD and MacOSX.
35821 From Yves Blusseau <cl7m42e02@sneakemail.com>
35822
c8d22988 35823 * kern/dl.c (grub_dl_resolve_symbol): Make static.
35824 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
35825
1b96e952 35826 * util/misc.c: Move grub_reboot() and grub_halt() ...
35827 * util/grub-emu.c: ... here. Make main_env static.
35828 * include/grub/util/misc.h: Remove main_env.
35829
2ef0084d 35830 * kern/mm.c: Use correct format to print size_t.
35831
32622956 35832 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
35833 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
35834 * kern/powerpc/dl.c: Likewise.
35835 * kern/sparc64/dl.c: Likewise.
35836 * kern/x86_64/dl.c: Likewise.
35837
3f7f0cd0 358382009-07-01 Robert Millan <rmh.grub@aybabtu.com>
35839
35840 Fix grub-emu build on sparc64-ieee1275.
35841
75421ca9 35842 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
3f7f0cd0 35843 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
35844
211d06b5 358452009-07-01 Robert Millan <rmh.grub@aybabtu.com>
35846
35847 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
35848 (grub_reboot, grub_halt): New functions.
35849
35850 * util/i386/pc/misc.c: Delete. Update all users.
35851 * util/sparc64/ieee1275/misc.c: Likewise.
35852 * util/powerpc/ieee1275/misc.c: Likewise.
35853
aaf53e3c 358542009-07-01 Robert Millan <rmh.grub@aybabtu.com>
35855
35856 * conf/i386.rmk (setjmp_mod_SOURCES)
35857 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
35858 * conf/common.rmk (setjmp_mod_SOURCES)
35859 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
35860 to use $(target_cpu).
35861 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
35862 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
35863 * conf/powerpc-ieee1275.rmk: Likewise.
35864 * conf/sparc64-ieee1275.rmk: Likewise.
35865
35866 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
35867 $(target_cpu) for kern/$(target_cpu)/dl.c.
35868 * conf/i386-efi.rmk: Likewise.
35869 * conf/i386-ieee1275.rmk: Likewise.
35870 * conf/x86_64-efi.rmk: Likewise.
35871 * conf/i386-coreboot.rmk: Likewise.
35872 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
35873 $(target_cpu) for kern/$(target_cpu)/dl.c and for
35874 kern/$(target_cpu)/cache.S.
35875 * conf/sparc64-ieee1275.rmk: Likewise.
35876
a337130b 358772009-07-01 Robert Millan <rmh.grub@aybabtu.com>
35878
35879 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
35880 type to `grub_uint8_t', and adjust `padding9' accordingly.
35881
c6fe4d53 358822009-06-29 Robert Millan <rmh.grub@aybabtu.com>
35883
b09db61d 35884 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
35885
c6fe4d53 35886 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
35887 assembly in final jump, using register constraints.
35888
b09db61d 35889 (grub_linux_boot): For text mode, initialize `have_vga' using
35890 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
35891
35892 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
35893 right before the final jump.
35894
35895 Set `video_mode' to 0x3.
35896
35897 Document initialization of `video_page', `video_mode' and
35898 `video_ega_bx'.
35899
28333ad0 359002009-06-29 Robert Millan <rmh.grub@aybabtu.com>
35901
35902 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
35903 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
75421ca9 35904 and set GRUB_LINUX_FLAG_QUIET appropriately.
28333ad0 35905
02164e1b 359062009-06-29 Robert Millan <rmh.grub@aybabtu.com>
35907
35908 Fix build on Debian / sparc.
35909
35910 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
35911
18b6c557 359122009-06-28 Pavel Roskin <proski@gnu.org>
35913
85f2aab6 35914 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
35915 fix a warning.
35916
18b6c557 35917 * util/grub.d/10_linux.in: Match SUSE style initrd names.
35918
ad760f81 359192009-06-27 Robert Millan <rmh.grub@aybabtu.com>
35920
35921 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
35922 `err'.
35923
87a4623b 359242009-06-27 Robert Millan <rmh.grub@aybabtu.com>
35925
35926 Revert r2338.
35927
35928 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
35929 file can't be opened. grub_file_open() is already supposed to set
75421ca9 35930 grub_errno / grub_errmsg appropriately.
87a4623b 35931 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
35932
8231fb77 359332009-06-27 Pavel Roskin <proski@gnu.org>
359342009-06-27 Robert Millan <rmh.grub@aybabtu.com>
35935
35936 * include/grub/dl.h: Include grub/elf.h.
35937 (struct grub_dl): Add symtab field.
35938 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
35939 GRUB_MODULES_MACHINE_READONLY.
35940 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
35941 of the header for read-only modules.
35942 (grub_dl_unload): Free mod->symtab for read-only modules.
35943 * kern/i386/dl.c: Use mod->symtab.
35944 * kern/powerpc/dl.c: Likewise.
35945 * kern/sparc64/dl.c: Likewise.
35946 * kern/x86_64/dl.c: Likewise.
35947
35948 * conf/i386-qemu.rmk: New file.
35949 * kern/i386/qemu/startup.S: Likewise.
35950 * kern/i386/qemu/mmap.c: Likewise.
35951 * boot/i386/qemu/boot.S: Likewise.
35952 * include/grub/i386/qemu/time.h: Likewise.
35953 * include/grub/i386/qemu/serial.h: Likewise.
35954 * include/grub/i386/qemu/kernel.h: Likewise.
35955 * include/grub/i386/qemu/console.h: Likewise.
35956 * include/grub/i386/qemu/boot.h: Likewise.
35957 * include/grub/i386/qemu/init.h: Likewise.
35958 * include/grub/i386/qemu/machine.h: Likewise.
35959 * include/grub/i386/qemu/loader.h: Likewise.
35960 * include/grub/i386/qemu/memory.h: Likewise.
35961
35962 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
35963 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
35964 [qemu] (pkglib_IMAGES): Add `boot.img'.
35965 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
35966 [qemu] (boot_img_FORMAT): New variables.
35967 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
35968 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
35969 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
35970 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
35971 [qemu] (kernel_img_FORMAT): New variables.
35972
35973 * configure.ac: Recognise `i386-qemu'.
35974
35975 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
35976 (for no compression).
35977 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
35978 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
35979 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
35980 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
35981 ifdefs).
35982
97fe384e 359832009-06-27 Pavel Roskin <proski@gnu.org>
35984
35985 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
35986 read.
35987 * efiemu/prepare32.c: Likewise.
35988 * efiemu/prepare64.c: Likewise.
35989
c402ab17 359902009-06-26 Pavel Roskin <proski@gnu.org>
35991
35992 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
35993 * include/grub/elf.h: Define symbols without "32" or "64" based
35994 on GRUB_TARGET_WORDSIZE.
35995 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
35996 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
35997 ELF definitions.
35998 * efiemu/loadcore64.c: Likewise.
35999 * loader/i386/bsd32.c: Likewise.
36000 * loader/i386/bsd64.c: Likewise.
36001 * kern/dl.c: Remove own ELF definitions.
36002 * util/i386/efi/grub-mkimage.c: Likewise.
36003
9bbdfd4d 360042009-06-23 Robert Millan <rmh.grub@aybabtu.com>
36005
36006 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
36007 segment 0x0 unconditionally, because the reference generated by
36008 GAS is an absolute address.
36009
a42ce6e9 360102009-06-22 Robert Millan <rmh.grub@aybabtu.com>
36011
36012 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
36013 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
36014
c952cf92 360152009-06-22 Robert Millan <rmh.grub@aybabtu.com>
36016
36017 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
36018 indexes. Check for -f explicitly.
cc3752ad 36019 (search_file): Improve error message.
36020 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
c952cf92 36021
132a0a59 360222009-06-22 Robert Millan <rmh.grub@aybabtu.com>
36023
36024 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
36025 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
36026
387a140c 360272009-06-22 Robert Millan <rmh.grub@aybabtu.com>
36028
36029 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
36030 * conf/i386-ieee1275.rmk: Likewise.
36031 * conf/i386-coreboot.rmk: Likewise.
36032
36033 * kern/i386/pc/startup.S (grub_stop): Remove function.
36034 * kern/i386/ieee1275/startup.S: Likewise.
36035 * kern/i386/coreboot/startup.S: Likewise.
36036 * kern/i386/misc.S (grub_stop): New function.
36037
41da9665 360382009-06-22 Robert Millan <rmh.grub@aybabtu.com>
36039
36040 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
36041 * kern/i386/realmode.S (real_to_prot): ... to here.
36042
bf337234 360432009-06-22 Robert Millan <rmh.grub@aybabtu.com>
36044
36045 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
36046 with `kernel.img'.
36047 (kernel_elf_SOURCES): Rename to ...
36048 (kernel_img_SOURCES): ... this.
36049 (kernel_elf_HEADERS): Rename to ...
36050 (kernel_img_HEADERS): ... this. Update all users.
36051 (kernel_elf_ASFLAGS): Rename to ...
36052 (kernel_img_ASFLAGS): ... this.
36053 (kernel_elf_CFLAGS): Rename to ...
36054 (kernel_img_CFLAGS): ... this.
36055 (kernel_elf_LDFLAGS): Rename to ...
36056 (kernel_img_LDFLAGS): ... this.
36057 * conf/i386-coreboot.rmk: Likewise.
36058 * conf/powerpc-ieee1275.rmk: Likewise.
36059
36060 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
36061 with "kernel.img".
36062
f52196ff 360632009-06-21 Pavel Roskin <proski@gnu.org>
36064
c3cee413 36065 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
36066 to match nested functions.
36067 * loader/sparc64/ieee1275/linux.c: Likewise.
36068
f52196ff 36069 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
36070
58750afc 360712009-06-21 Robert Millan <rmh.grub@aybabtu.com>
36072
36073 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
36074 all i386 platforms.
36075
15355c7d 360762009-06-21 Robert Millan <rmh.grub@aybabtu.com>
36077
36078 Fix asm file handling on ELF, and remove workarounds.
36079
36080 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
75421ca9 36081 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
15355c7d 36082 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
36083 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
36084
3f3ec72b 360852009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
36086
36087 Load BSD ELF modules
36088
36089 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
36090 and loader/i386/bsd64.c
36091 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
36092 (FREEBSD_MODTYPE_ELF_MODULE): New definition
36093 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
36094 (grub_freebsd_load_elfmodule32): New declaration
36095 (grub_freebsd_load_elfmoduleobj64): Likewise
36096 (grub_freebsd_load_elf_meta32): Likewise
36097 (grub_freebsd_load_elf_meta64): Likewise
36098 (grub_freebsd_add_meta): Likewise
36099 (grub_freebsd_add_meta_module): Likewise
36100 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
36101 (grub_freebsd_add_meta_module): Likewise and move module-specific
36102 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
36103 (grub_cmd_freebsd): Add elf-kernel specific parts
36104 based on grub_freebsd_add_meta_module
36105 (grub_cmd_freebsd_module): Add type parsing moved from
36106 grub_freebsd_add_meta_module
36107 (grub_cmd_freebsd_module_elf): New function
36108 (cmd_freebsd_module_elf): New variable
36109 (GRUB_MOD_INIT): Register freebsd_module_elf
36110 * loader/i386/bsd32.c: New file
36111 * loader/i386/bsd64.c: Likewise
36112 * loader/i386/bsdXX.c: Likewise
36113 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
36114 (grub_elf64_load): Likewise
36115 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
36116 All users updated
36117 (grub_elf64_load_hook_t): Likewise
36118
0db15301 361192009-06-21 Colin Watson <cjwatson@ubuntu.com>
36120
36121 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
36122 variable.
36123 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
36124 don't write a menu entry for recovery mode.
36125
546796c1 361262009-06-20 Robert Millan <rmh.grub@aybabtu.com>
36127
36128 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
36129 after it's no longer needed.
36130
cd7310d5 361312009-06-20 Robert Millan <rmh.grub@aybabtu.com>
36132
36133 * include/grub/i386/loader.h (grub_linux_prot_size)
36134 (grub_linux_tmp_addr, grub_linux_real_addr)
36135 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
36136 GRUB_MACHINE_PCBIOS.
36137 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
36138 common grub_util_info() call to ...
36139 (generate_image): ... here.
36140 Fix use of uninitialized memory, comparison of signed with
36141 unsigned integers and memory leak.
36142 Remove bogus module address message.
36143
ab32d3b5 361442009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
36145
36146 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
36147 grub_raid_register
36148 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
36149
024ef597 361502009-06-19 Pavel Roskin <proski@gnu.org>
36151
36152 * configure.ac: Remove stray AC_MSG_CHECKING.
36153
3ac72b51 361542009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
36155
36156 * disk/scsi.c (grub_scsi_open): use continue instead of big if
dd74360c 36157
e14cd814 361582009-06-18 Pavel Roskin <proski@gnu.org>
36159
36160 * conf/common.rmk: Add fs_file.mod.
36161 * disk/fs_file.c: New file.
36162 * include/grub/disk.h (enum grub_disk_dev_id): Add
36163 GRUB_DISK_DEVICE_FILE_ID.
36164
26586d98 361652009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
36166
36167 Fix build with Apple's toolchain. Part 2
36168
36169 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
36170 a fake start
36171
26de2bcd 361722009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
36173
36174 Fix build with Apple's toolchain. Part 1
36175
36176 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
36177 for long calls
36178 * configure.ac: remove a leftover AC_MSG_RESULT
dd74360c 36179 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
26de2bcd 36180 Apple's toolchain
36181
09b3490b 361822009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
36183
36184 Fix warnings
36185
36186 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
36187 (decomp_block): initialize ch
36188 use grub_memcpy instead of memcpy
36189
c22a006a 361902009-06-17 Pavel Roskin <proski@gnu.org>
36191
d3638678 36192 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
36193 version, use declarations needed to use vga_text as the startup
36194 console.
36195
c22a006a 36196 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
36197 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
36198 the kernel.
36199 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
36200 and grub_at_keyboard_fini(), it's done on module load and
36201 unload.
36202
05b129e0 362032009-06-17 Felix Zielcke <fzielcke@z-51.de>
36204
36205 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
36206 file can't be found.
36207 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
36208
cf24ed9e 362092009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
36210
36211 Fix newline handling
36212
36213 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
dd74360c 36214 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
cf24ed9e 36215 (grub_script_yylex): don't segfault on unterminated script
36216 newline terminates command and variable
36217
74aa8e4b 362182009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
36219
36220 avoid double grub_adjust_range call. Bug reported by David Simner
36221
36222 * kern/disk.c (grub_disk_write): change to raw disk access before
36223 calling disk_read
36224
1bd265f3 362252009-06-17 Colin Watson <cjwatson@ubuntu.com>
36226
36227 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
36228 spaces, for the benefit of help2man.
36229 * util/i386/efi/grub-mkimage.c (usage): Likewise.
36230
a2d08c06 362312009-06-16 Pavel Roskin <proski@gnu.org>
36232
36233 * kern/i386/halt.c: Include grub/machine/init.h.
36234 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
36235
b97bcb19 362362009-06-16 Felix Zielcke <fzielcke@z-51.de>
36237
36238 * util/grub.d/30_os-prober.in: Use ${root} in the generated
36239 drivemap menuentry.
36240
0644f96c 362412009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
36242
36243 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
36244 `echo' command.
36245
3ef17a2e 362462009-06-16 Pavel Roskin <proski@gnu.org>
36247
36248 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
36249 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
36250 save %dx, we only need %dl and we never change it.
36251 * boot/i386/pc/cdboot.S: Don't set the root drive.
36252 * boot/i386/pc/pxeboot.S: Likewise.
36253 * include/grub/i386/pc/boot.h: Remove
36254 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
36255 GRUB_BOOT_MACHINE_DRIVE_CHECK.
36256 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
36257 * kern/i386/pc/init.c (make_install_device): Remove references
36258 to grub_root_drive.
36259 * kern/i386/pc/startup.S: Likewise.
36260 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
36261
693fe637 362622009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
36263
36264 xnu_uuid command
36265
36266 * commands/xnu_uuid.c: new file
36267 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
36268 (xnu_uuid_mod_SOURCES): new variable
36269 (xnu_uuid_mod_CFLAGS): likewise
36270 (xnu_uuid_mod_LDFLAGS): likewise
36271 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
36272 * conf/i386-ieee1275.rmk: likewise
36273 * conf/i386-pc.rmk: likewise
36274 * conf/powerpc-ieee1275.rmk: likewise
36275 * conf/sparc64-ieee1275.rmk: likewise
36276 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
36277
c9da87d0 362782009-06-16 Pavel Roskin <proski@gnu.org>
36279
36280 * configure.ac: Avoid '==' in test command, it's not portable.
36281
9c6f4596 362822009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
36283
36284 Probe command
36285
36286 * commands/probe.c: new file
36287 * conf/common.rmk (pkglib_MODULES): add probe.mod
36288 (probe_mod_SOURCES): new variable
36289 (probe_mod_CFLAGS): likewise
36290 (probe_mod_LDFLAGS): likewise
36291 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
36292 * conf/i386-ieee1275.rmk: likewise
36293 * conf/i386-pc.rmk: likewise
36294 * conf/powerpc-ieee1275.rmk: likewise
36295 * conf/sparc64-ieee1275.rmk: likewise
36296
70b7f9fd 362972009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
36298
36299 Fix handling of string like \"hello\" and "a
36300 b"
36301
36302 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
36303 (grub_script_yylex): fix parsing of quoting, escaping and newline
36304
71c79a6b 363052009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
36306
dd74360c 36307 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
71c79a6b 36308 handling
dd74360c 36309
0644f96c 363102009-06-13 Jun Inoue <jun.lambda@gmail.com>
880fc3c4 36311
36312 * util/grub-mkconfig.in: Fix parsing of --output option.
36313
e40893c3 363142009-06-12 Pavel Roskin <proski@gnu.org>
36315
36316 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
36317 genmk.rb don't need to be generated or installed.
36318
3a1acfe2 363192009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
36320
36321 * commands/i386/pc/drivemap_int13h.S: add more comments
36322
3a4575d4 363232009-06-11 Pavel Roskin <proski@gnu.org>
36324
0658e928 36325 * Makefile.in (uninstall): Uninstall manuals.
36326
ca0388f0 36327 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
36328 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
36329 and update-grub_lib in two places.
36330 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
36331
e3b27c39 36332 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
36333 a compiler warning.
36334
3a4575d4 36335 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
36336 `entry_lo' to fix variable shadowing.
36337
af1f4f55 363382009-06-11 Christian Franke <franke@computer.org>
36339
36340 * kern/misc.c (__enable_execute_stack): Add missing return type
36341 to prevent gcc warning.
36342
5225e649 363432009-06-11 Felix Zielcke <fzielcke@z-51.de>
36344
36345 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
36346
7d83bd47 363472009-06-11 Pavel Roskin <proski@gnu.org>
36348
c1cb63ba 36349 * Makefile.in: Don't rely on any scripts being executable.
36350 Always use $(SHELL) to run shell scripts.
36351
7d83bd47 36352 * configure.ac: Always define ___main if using -nostdlib. This
36353 fixes tests on Cygwin.
36354
948f48e7 363552009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
36356
36357 UDF fix
36358
7d83bd47 36359 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
948f48e7 36360 is in bytes and not in blocks
7d83bd47 36361
8ada9bc1 363622009-06-11 Pavel Roskin <proski@gnu.org>
36363
36364 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
36365 warning.
36366
25ad2323 363672009-06-11 Felix Zielcke <fzielcke@z-51.de>
36368
36369 * util/grub.d/30_os-prober.in: Fix a comment. Source
36370 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
36371 to set the root device. Place drivemap command in the generated
36372 chain entry.
36373
e65acb0c 363742009-06-11 Pavel Roskin <proski@gnu.org>
36375
36376 * configure.ac: Remove host_m32. Issues with 64-bit utilities
36377 have long been resolved.
36378
f285fe2d 363792009-06-11 Colin Watson <cjwatson@ubuntu.com>
36380
bd47b0b5 36381 * util/grub.d/10_linux.in: Capitalise "Linux".
36382
f285fe2d 36383 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
36384
a0c62e4e 363852009-06-11 Pavel Roskin <proski@gnu.org>
36386
b6783cb2 36387 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
36388 fix a gcc warning and ensure that the function won't ever exit.
36389
dde032e8 36390 * kern/i386/ieee1275/init.c: Add missing prototype for
36391 grub_stop_floppy().
36392
22cd079d 36393 * loader/ieee1275/multiboot2.c [__i386__]: Include
36394 grub/cpu/multiboot.h.
36395
a0c62e4e 36396 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
36397 casts to short - they are not portable and cause warnings. Fix
36398 use of uninitialized values in input_buf. Use ARRAY_SIZE.
36399
63963d17 364002009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
36401
36402 Drivemap fixes
36403
36404 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
36405 new function
36406 (grub_get_root_biosnumber_saved): new variable
36407 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
36408 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
775dbc4d 36409 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
63963d17 36410 %dx after the call if necessary
36411 * conf/common.rmk (pkglib_MODULES): remove boot.mod
36412 (boot_mod_SOURCES): remove
36413 (boot_mod_CFLAGS): remove
36414 (boot_mod_LDFLAGS): remove
36415 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
36416 (boot_mod_SOURCES): new variable
36417 (boot_mod_CFLAGS): likewise
36418 (boot_mod_LDFLAGS): likewise
36419 * conf/i386-efi.rmk: likewise
36420 * conf/i386-ieee1275.rmk: likewise
36421 * conf/i386-pc.rmk: likewise
36422 * conf/powerpc-ieee1275.rmk: likewise
36423 * conf/sparc64-ieee1275.rmk: likewise
36424 * conf/x86_64-efi.rmk: likewise
36425 * include/grub/i386/pc/biosnum.h: new file
36426 * lib/i386/pc/biosnum.c: likewise
36427 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
36428 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
36429 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
775dbc4d 36430
33abf7ae 364312009-06-10 Pavel Roskin <proski@gnu.org>
36432
5ac35b35 36433 * io/gzio.c (test_header): Don't reuse one buffer for all data.
36434 Use separate variables. Read only the file size at the end, but
36435 not the checksum that we don't use.
36436
5c5215d5 36437 * kern/file.c (grub_file_read): Use void pointer for the buffer.
36438 Adjust all callers.
36439
27d5fef7 36440 * kern/ieee1275/openfw.c: Remove libc includes.
36441 * kern/ieee1275/cmain.c: Likewise.
36442 * include/grub/ieee1275/ieee1275.h: Likewise.
36443
33abf7ae 36444 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
36445 compiler warnings.
36446
19d50c2b 364472009-06-10 Felix Zielcke <fzielcke@z-51.de>
36448
36449 * Makefile.in: Remove all trailing whitespace.
36450 * conf/i386-pc.rmk: Likewise.
36451 * conf/powerpc-ieee1275.rmk: Likewise.
36452 * conf/sparc64-ieee1275.rmk: Likewise.
36453 * docs/grub.texi: Likewise.
36454 * docs/texinfo.tex: Likewise.
36455 * disk/fs_uuid.c: Likewise.
36456 * disk/lvm.c: Likewise.
36457 * disk/scsi.c: Likewise.
36458 * disk/ata.c: Likewise.
36459 * disk/ieee1275/ofdisk.c: Likewise.
36460 * disk/i386/pc/biosdisk.c: Likewise.
36461 * disk/host.c: Likewise.
36462 * disk/raid.c: Likewise.
36463 * disk/efi/efidisk.c: Likewise.
36464 * disk/usbms.c: Likewise.
36465 * disk/memdisk.c: Likewise.
36466 * disk/loopback.c: Likewise.
36467 * kern/powerpc/dl.c: Likewise.
36468 * kern/device.c: Likewise.
36469 * kern/dl.c: Likewise.
36470 * kern/sparc64/dl.c: Likewise.
36471 * kern/ieee1275/ieee1275.c: Likewise.
36472 * kern/term.c: Likewise.
36473 * kern/fs.c: Likewise.
36474 * kern/i386/dl.c: Likewise.
36475 * kern/i386/pc/startup.S: Likewise.
36476 * kern/i386/pc/init.c: Likewise.
36477 * kern/i386/pc/mmap.c: Likewise.
36478 * kern/i386/pc/lzo1x.S: Likewise.
36479 * kern/i386/ieee1275/init.c: Likewise.
36480 * kern/i386/realmode.S: Likewise.
36481 * kern/i386/tsc.c: Likewise.
36482 * kern/partition.c: Likewise.
36483 * kern/corecmd.c: Likewise.
36484 * kern/file.c: Likewise.
36485 * kern/efi/efi.c: Likewise.
36486 * kern/efi/init.c: Likewise.
36487 * kern/efi/mm.c: Likewise.
36488 * kern/main.c: Likewise.
36489 * kern/err.c: Likewise.
36490 * kern/env.c: Likewise.
36491 * kern/disk.c: Likewise.
36492 * kern/generic/millisleep.c: Likewise.
36493 * kern/generic/rtc_get_time_ms.c: Likewise.
36494 * kern/misc.c: Likewise.
36495 * kern/parser.c: Likewise.
36496 * genmk.rb: Likewise.
36497 * configure.ac: Likewise.
36498 * boot/i386/pc/diskboot.S: Likewise.
36499 * boot/i386/pc/pxeboot.S: Likewise.
36500 * boot/i386/pc/boot.S: Likewise.
36501 * boot/i386/pc/lnxboot.S: Likewise.
36502 * boot/i386/pc/cdboot.S: Likewise.
36503 * parttool/pcpart.c: Likewise.
36504 * video/readers/tga.c: Likewise.
36505 * video/video.c: Likewise.
36506 * video/bitmap.c: Likewise.
36507 * lib/envblk.c: Likewise.
36508 * lib/i386/setjmp.S: Likewise.
36509 * fs/xfs.c: Likewise.
36510 * fs/afs.c: Likewise.
36511 * fs/fat.c: Likewise.
36512 * fs/ntfs.c: Likewise.
36513 * fs/udf.c: Likewise.
36514 * fs/affs.c: Likewise.
36515 * fs/iso9660.c: Likewise.
36516 * fs/hfs.c: Likewise.
36517 * fs/fshelp.c: Likewise.
36518 * fs/ext2.c: Likewise.
36519 * fs/jfs.c: Likewise.
36520 * fs/reiserfs.c: Likewise.
36521 * fs/hfsplus.c: Likewise.
36522 * fs/minix.c: Likewise.
36523 * fs/cpio.c: Likewise.
36524 * fs/sfs.c: Likewise.
36525 * fs/ufs.c: Likewise.
36526 * efiemu/prepare.c: Likewise.
36527 * efiemu/loadcore_common.c: Likewise.
36528 * efiemu/runtime/efiemu.sh: Likewise.
36529 * efiemu/runtime/efiemu.S: Likewise.
36530 * efiemu/runtime/efiemu.c: Likewise.
36531 * efiemu/pnvram.c: Likewise.
36532 * efiemu/main.c: Likewise.
36533 * efiemu/i386/pc/cfgtables.c: Likewise.
36534 * efiemu/i386/loadcore64.c: Likewise.
36535 * efiemu/i386/loadcore32.c: Likewise.
36536 * efiemu/loadcore.c: Likewise.
36537 * efiemu/symbols.c: Likewise.
36538 * efiemu/mm.c: Likewise.
36539 * include/grub/autoefi.h: Likewise.
36540 * include/grub/datetime.h: Likewise.
36541 * include/grub/term.h: Likewise.
36542 * include/grub/hfs.h: Likewise.
36543 * include/grub/lvm.h: Likewise.
36544 * include/grub/i386/tsc.h: Likewise.
36545 * include/grub/i386/linux.h: Likewise.
36546 * include/grub/i386/xnu.h: Likewise.
36547 * include/grub/i386/efiemu.h: Likewise.
36548 * include/grub/i386/pc/biosdisk.h: Likewise.
36549 * include/grub/i386/pc/memory.h: Likewise.
36550 * include/grub/i386/pc/vbe.h: Likewise.
36551 * include/grub/parttool.h: Likewise.
36552 * include/grub/video.h: Likewise.
36553 * include/grub/memory.h: Likewise.
36554 * include/grub/fs.h: Likewise.
36555 * include/grub/partition.h: Likewise.
36556 * include/grub/xnu.h: Likewise.
36557 * include/grub/efi/api.h: Likewise.
36558 * include/grub/efi/pe32.h: Likewise.
36559 * include/grub/efi/memory.h: Likewise.
36560 * include/grub/multiboot.h: Likewise.
36561 * include/grub/usbdesc.h: Likewise.
36562 * include/grub/multiboot2.h: Likewise.
36563 * include/grub/acpi.h: Likewise.
36564 * include/grub/efiemu/efiemu.h: Likewise.
36565 * include/grub/disk.h: Likewise.
36566 * include/grub/ieee1275/ieee1275.h: Likewise.
36567 * include/grub/net.h: Likewise.
36568 * include/grub/machoload.h: Likewise.
36569 * include/grub/macho.h: Likewise.
36570 * include/multiboot.h: Likewise.
36571 * genmoddep.awk: Likewise.
36572 * normal/main.c: Likewise.
36573 * normal/menu_entry.c: Likewise.
36574 * normal/menu_viewer.c: Likewise.
36575 * normal/completion.c: Likewise.
36576 * normal/cmdline.c: Likewise.
36577 * normal/misc.c: Likewise.
36578 * normal/datetime.c: Likewise.
36579 * bus/usb/usbtrans.c: Likewise.
36580 * bus/usb/ohci.c: Likewise.
36581 * bus/usb/uhci.c: Likewise.
36582 * bus/usb/usb.c: Likewise.
36583 * mmap/efi/mmap.c: Likewise.
36584 * mmap/i386/pc/mmap_helper.S: Likewise.
36585 * mmap/i386/pc/mmap.c: Likewise.
36586 * mmap/i386/mmap.c: Likewise.
36587 * mmap/i386/uppermem.c: Likewise.
36588 * mmap/mmap.c: Likewise.
36589 * commands/acpi.c: Likewise.
36590 * commands/echo.c: Likewise.
36591 * commands/blocklist.c: Likewise.
36592 * commands/loadenv.c: Likewise.
36593 * commands/usbtest.c: Likewise.
36594 * commands/boot.c: Likewise.
36595 * commands/parttool.c: Likewise.
36596 * commands/search.c: Likewise.
36597 * commands/cat.c: Likewise.
36598 * commands/i386/pc/play.c: Likewise.
36599 * commands/i386/pc/drivemap.c: Likewise.
36600 * commands/i386/pc/vbeinfo.c: Likewise.
36601 * commands/i386/pc/acpi.c: Likewise.
36602 * commands/i386/pc/vbetest.c: Likewise.
36603 * commands/ls.c: Likewise.
36604 * commands/cmp.c: Likewise.
36605 * commands/test.c: Likewise.
36606 * commands/efi/acpi.c: Likewise.
36607 * commands/gptsync.c: Likewise.
36608 * commands/help.c: Likewise.
36609 * partmap/amiga.c: Likewise.
36610 * partmap/apple.c: Likewise.
36611 * partmap/acorn.c: Likewise.
36612 * partmap/pc.c: Likewise.
36613 * partmap/sun.c: Likewise.
36614 * partmap/gpt.c: Likewise.
36615 * script/sh/lexer.c: Likewise.
36616 * script/sh/function.c: Likewise.
36617 * font/font.c: Likewise.
36618 * font/font_cmd.c: Likewise.
36619 * loader/powerpc/ieee1275/linux.c: Likewise.
36620 * loader/efi/chainloader.c: Likewise.
36621 * loader/multiboot_loader.c: Likewise.
36622 * loader/macho.c: Likewise.
36623 * loader/i386/multiboot.c: Likewise.
36624 * loader/i386/linux.c: Likewise.
36625 * loader/i386/pc/linux.c: Likewise.
36626 * loader/i386/pc/multiboot2.c: Likewise.
36627 * loader/i386/pc/chainloader.c: Likewise.
36628 * loader/i386/pc/xnu.c: Likewise.
36629 * loader/i386/bsd_trampoline.S: Likewise.
36630 * loader/i386/efi/linux.c: Likewise.
36631 * loader/i386/multiboot_elfxx.c: Likewise.
36632 * loader/i386/bsd_helper.S: Likewise.
36633 * loader/i386/bsd.c: Likewise.
36634 * loader/i386/linux_trampoline.S: Likewise.
36635 * loader/i386/xnu_helper.S: Likewise.
36636 * loader/i386/xnu.c: Likewise.
36637 * loader/i386/bsd_pagetable.c: Likewise.
36638 * loader/i386/multiboot_helper.S: Likewise.
36639 * loader/xnu.c: Likewise.
36640 * loader/xnu_resume.c: Likewise.
36641 * io/gzio.c: Likewise.
36642 * term/efi/console.c: Likewise.
36643 * term/terminfo.c: Likewise.
36644 * term/ieee1275/ofconsole.c: Likewise.
36645 * term/i386/pc/serial.c: Likewise.
36646 * term/i386/pc/vesafb.c: Likewise.
36647 * term/i386/pc/vga.c: Likewise.
36648 * term/usb_keyboard.c: Likewise.
36649 * term/gfxterm.c: Likewise.
36650 * aclocal.m4: Likewise.
36651 * util/lvm.c: Likewise.
36652 * util/grub.d/30_os-prober.in: Likewise.
36653 * util/grub.d/10_hurd.in: Likewise.
36654 * util/console.c: Likewise.
36655 * util/grub-macho2img.c: Likewise.
36656 * util/grub-probe.c: Likewise.
36657 * util/hostfs.c: Likewise.
36658 * util/i386/pc/grub-mkimage.c: Likewise.
36659 * util/i386/pc/grub-setup.c: Likewise.
36660 * util/i386/efi/grub-mkimage.c: Likewise.
36661 * util/grub-mkconfig.in: Likewise.
36662 * util/raid.c: Likewise.
36663 * util/resolve.c: Likewise.
36664 * util/grub-mkdevicemap.c: Likewise.
36665 * util/grub-emu.c: Likewise.
36666 * util/getroot.c: Likewise.
36667 * util/hostdisk.c: Likewise.
36668 * util/usb.c: Likewise.
36669 * util/grub-editenv.c: Likewise.
36670 * util/misc.c: Likewise.
36671
d2d49665 366722009-06-10 Felix Zielcke <fzielcke@z-51.de>
36673
36674 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
36675 `genparttoollist.sh'.
36676 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
36677 Add `*.sh' to the list find searches for and change `mdate.sh'
36678 to `mdate-sh'.
36679
fe052e37 366802009-06-10 Pavel Roskin <proski@gnu.org>
36681
2763ac18 36682 * include/grub/multiboot2.h: Provide compatibility defines for
36683 multiboot2.h.
36684 * include/multiboot2.h: Include stdint.h only if needed, using
36685 angle brackets.
36686 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
36687 grub/multiboot2.h.
36688 * loader/ieee1275/multiboot2.c: Likewise.
36689 * loader/multiboot2.c: Likewise.
36690 * loader/multiboot_loader.c: Likewise.
36691
437e6adc 36692 * configure.ac: Use -nostdlib when probing for the target. It
36693 should not be required to have libc for the target.
36694
06a6836c 36695 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
36696 they fail without libc headers for the target.
36697 * include/grub/powerpc/libgcc.h: Use weak attribute for all
36698 exports.
36699 * include/grub/sparc64/libgcc.h: Likewise. Don't use
36700 preprocessor conditionals.
36701
fe052e37 36702 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
36703 build system doesn't need to be aware of the tar.c internals.
36704
afd22553 367052009-06-09 Michel Hermier <michel.hermier@gmail.com>
87b8f28c 36706
afd22553 36707 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
8ec4a6d0 36708
6b787c4f 367092009-06-09 Robert Millan <rmh.grub@aybabtu.com>
36710
36711 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
36712 disk limit to 26 for IDE, Virtio, Xen and SCSI.
36713
367142009-06-09 Felix Zielcke <fzielcke@z-51.de>
36715
36716 * util/i386/pc/grub-install.in: Change the error message if UUIDs
473d1e45 36717 aren't available if ata.mod gets used.
6b787c4f 36718
473d1e45 367192009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
e23721e8 36720
473d1e45 36721 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
e23721e8 36722 initialising controller.
473d1e45 36723 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
e23721e8 36724
255a27d4 367252009-06-08 Felix Zielcke <fzielcke@z-51.de>
36726
36727 * util/i386/pc/grub-install.in: Add a parameter --disk-module
36728 to choose between ata and biosdisk module on i386-pc.
36729
473d1e45 367302009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
69da8877 36731
d55842d8 36732 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
36733 Subclass and Programming Interface fields in terms of the 3 byte
36734 Class Code register.
36735 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
36736
fa5db0b1 36737 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
36738 interface is OHCI. Add grub_dprintf for symmetry with
36739 bus/usb/uhci.c.
36740 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
36741 interface is UHCI. Add interf variable for programming
36742 interface. Print interface with class/subclass.
36743
c0947beb 36744 * bus/usb/ohci.c: Set interf with correct field.
36745
69da8877 36746 * bus/usb/uhci.c: Remove unneeded doubled lines.
36747 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
36748 Remove whitespace inside comment.
36749
9e172e30 367502009-06-08 Robert Millan <rmh.grub@aybabtu.com>
36751
36752 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
36753 as fallback an equivalent option without depth.
36754
de65ee2b 367552009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
36756
36757 Not fail if unable to retrieve C/H/S on LBA disks
36758
473d1e45 36759 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
de65ee2b 36760 if unable to retrieve C/H/S on LBA disks
36761
b57ea2c9 367622009-06-08 Pavel Roskin <proski@gnu.org>
36763
36764 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
36765 about aliasing.
36766
af361263 367672009-06-08 Felix Zielcke <fzielcke@z-51.de>
36768
36769 * Makefile.in (uninstall): Remove all $lib_DATA files.
36770
4c9ec6b3 367712009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
36772
36773 Bugfix: install on partitionless device
36774
36775 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
36776 is a whole disk
36777
e76fc924 367782009-06-08 Felix Zielcke <fzielcke@z-51.de>
36779
36780 * Makefile.in (uninstall): Remove all $include_DATA files.
36781
ba5a0d05 367822009-06-08 Felix Zielcke <fzielcke@z-51.de>
36783
36784 * commands/true.c: New file. Implement the true and false commands.
36785 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
36786 (true_mod_SOURCES): New variable.
36787 (true_mod_CFLAGS): Likewise.
36788 (true_mod_LDFLAGS): Likewise.
36789
c8048e32 367902009-06-05 Colin D Bennett <colin@gibibit.com>
36791
36792 Optimized font character lookup using binary search instead of linear
36793 search. Fonts now are required to have the character index ordered by
36794 code point.
36795
36796 * font/font.c (load_font_index): Verify that fonts have ordered
36797 character indices.
36798 (find_glyph): Use binary search instead of linear search to find a
36799 character in a font.
36800
408305be 368012009-06-05 Michael Scherer <misc@mandriva.org>
36802
36803 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
36804 uses case sensitive btree.
36805 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
36806 only for case insensitive filesystems.
36807
8ee1e0d9 368082009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
36809
36810 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
36811 * conf/common.rmk (search_mod_CFLAGS): likewise
36812
a9966eb1 368132009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36814
473d1e45 36815 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
a9966eb1 36816 compensate a compiler bug
36817
9e7100fb 368182009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36819
473d1e45 36820 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
9e7100fb 36821 instead of '\b'
473d1e45 36822
ede21d71 368232009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36824
36825 Definitions for creating asm symbols with Apple's CC
36826
36827 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
36828 [APPLE_CC] (VARIABLE): likewise
36829
9dbf7653 368302009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36831
36832 Disable lnxboot.img when compiled
36833 with Apple's CC
36834
36835 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
36836 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
36837 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
36838 [! APPLE_CC] (CODE_LENG): skip
36839 [! APPLE_CC] (setup_sects): likewise
36840 [! APPLE_CC]: skip filling
473d1e45 36841
e93cdc3d 368422009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36843
36844 Address in trampolines based on 32-bit registers when compiled
36845 with Apple's CC
36846
473d1e45 36847 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
e93cdc3d 36848 for addresses
36849 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
36850
6c688477 368512009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36852
36853 Avoid aliases when compiling with Apple's CC for PCBIOS machine
36854
36855 * kern/misc.c [APPLE_CC] (memcpy): new function
36856 [APPLE_CC] (memmove): likewise
36857 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
473d1e45 36858 (memcpy): define alias conditionally on !APPLE_CC
6c688477 36859 (memset): likewise
36860 (abort): likewise
36861 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
36862 APPLE_CC are defined
36863 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
36864 (grub_assert_fail): make prototype conditional
36865
e37ffc5c 368662009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36867
36868 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
36869
473d1e45 36870 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
36871 grub-macho2img
e37ffc5c 36872 (CLEANFILES): add grub-macho2img
36873 (grub_macho2img_SOURCES): new variable
36874 * kern/i386/pc/startup.S (bss_start): new variable
36875 (bss_end): likewise
36876 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
36877 * util/grub-macho2img.c: new file
36878
cf00df31 368792009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36880
36881 Use objconv when compiling with Apple's CC
36882
36883 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
36884 (efiemu64.o): likewise
36885 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
36886 when compiling with Apple's CC
36887 (efiemu64_s.o): likewise
36888 * configure.ac: check for objconv when compiling with Apple's CC
36889 * genmk.rb: use objconv for modules when compiled with Apple's CC
473d1e45 36890
d119a20c 368912009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36892
36893 Define segment as well as section when compiling with
36894 Apple's CC
36895
36896 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
36897 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
36898 (efiemu_convert_pointer): likewise
36899 (efiemu_set_virtual_address_map): likewise
36900 (efiemu_convert_pointer): likewise
36901 (efiemu_getcrc32): likewise
36902 (init_crc32_table): likewise
36903 (reflect): likewise
36904 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
36905 (GRUB_MOD_DEP): likewise
473d1e45 36906
c8600122 369072009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36908
36909 Allow a compilation without -mcmodel=large
36910
36911 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
36912 when compiled without -mcmodel=large
473d1e45 36913 (filter_memory_map): remove memory post 4 GiB when compiled
c8600122 36914 without -mcmodel=large
473d1e45 36915 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
c8600122 36916 TARGET_CFLAGS when -mcmodel=large isn't supported
473d1e45 36917
e8df1d4e 369182009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36919
36920 Remove nested functions in efiemu core
36921
36922 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
473d1e45 36923
cc6c3ac1 369242009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36925
36926 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
36927
36928 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
36929 temporary storage
473d1e45 36930 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
36931 using Apple's CC
cc6c3ac1 36932 (grub_cpu_is_tsc_supported): likewise
36933 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
473d1e45 36934
3e325901 369352009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36936
36937 Absolute addressing through constant with Apple's cc
36938
36939 * kern/i386/pc/startup.S: Define necessary constants
36940 and address through it when using ABS with Apple's CC
36941 * boot/i386/pc/diskboot.S: likewise
36942 * boot/i386/pc/boot.S: likewise
36943 * boot/i386/pc/lnxboot.S: likewise
36944 * boot/i386/pc/cdboot.S: likewise
36945 * mmap/i386/pc/mmap_helper.S: likewise
36946 * commands/i386/pc/drivemap_int13h.S: likewise
36947
2b167a72 369482009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36949
36950 Check if compiler is apple cc
36951
36952 * Makefile.in (ASFLAGS): new variable
36953 (TARGET_ASFLAGS): likewise
36954 (TARGET_MODULE_FORMAT): likewise
36955 (TARGET_APPLE_CC): likewise
36956 (OBJCONV): likewise
36957 (TARGET_IMG_CFLAGS): likewise
36958 (TARGET_CPPFLAGS): add includedir
36959 * configure.ac: call grub_apple_cc and grub_apple_target_cc
36960 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
36961 Check for linker script only if compiler isn't Apple's CC
36962 (TARGET_MODULE_FORMAT): set
36963 (TARGET_APPLE_CC): likewise
36964 (TARGET_ASFLAGS): likewise
36965 (ASFLAGS): likewise
36966 Check for objcopy only if compiler isn't Apple's CC
36967 Check for BSS symbol only if compiler isn't Apple's CC
36968 * genmk.rb: adapt nm options if we use Apple's utils
36969 * aclocal.m4 (grub_apple_cc): new test
36970 (grub_apple_target_cc): likewise
473d1e45 36971
fb14123e 369722009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36973
36974 Simplify sed expressions and improve awk
36975
36976 * Makefile.in (install-local): simplify sed expression
36977 * gencmdlist.sh: likewise
36978 * genmoddep.awk: avoid adding module as a dependency of itself
36979
5b889789 369802009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36981
36982 Add missing start symbols
36983
36984 * boot/i386/pc/boot.S: add start
fb14123e 36985 * boot/i386/pc/pxeboot.S: likewise
473d1e45 36986
fd2bf2e3 369872009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36988
36989 Fix wrong assumptions with grub-mkimage on EFI
473d1e45 36990
36991 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
fd2bf2e3 36992 (relocate_addresses): consider both r_addend and value at offset
36993 (make_mods_section): zerofill modinfo and header
36994 (convert_elf): write prefix here
473d1e45 36995
5389763d 369962009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36997
36998 Use .asciz instead of .string
36999
37000 * i386/pc/diskboot.S: use .asciz instead of .string
37001 * i386/pc/boot.S: likewise
37002 * include/grub/dl.h (GRUB_MOD_DEP): likewise
37003 (GRUB_MOD_NAME): likewise
473d1e45 37004
3eb5ed4e 370052009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37006
37007 gfxpayload support
37008
37009 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
37010 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
37011 (grub_video_setup): remove
37012 (grub_video_set_mode): new prototype
37013 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
37014 (vid_mode): remove
37015 (linux_vesafb_res): compile only on PCBIOS
37016 (grub_linux_boot): support gfxpayload
37017 * loader/i386/pc/xnu.c (video_hook): new function
37018 (grub_xnu_set_video): support gfxpayload
37019 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
37020 (DEFAULT_VIDEO_HEIGHT): likewise
37021 (DEFAULT_VIDEO_FLAGS): likewise
37022 (DEFAULT_VIDEO_MODE): new definition
37023 (video_hook): new function
37024 (grub_gfxterm_init): use grub_video_set_mode
473d1e45 37025 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3eb5ed4e 37026 loading xnu
37027 * video/video.c (grub_video_setup): removed
473d1e45 37028 (grub_video_set_mode): new function based on grub_gfxterm_init and
3eb5ed4e 37029 grub_video_setup
37030
4b0e1143 370312009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37032
37033 Avoid calling biosdisk in drivemap
37034
37035 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
37036 (revparse_biosdisk): likewise
37037 (list_mappings): derive name from id directly
37038 (grub_cmd_drivemap): use tryparse_diskstring
473d1e45 37039
fda6cb98 370402009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37041
37042 Script fixes
37043
37044 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
37045 (grub_lexer_param): add tokenonhold
37046 (grub_script_create_cmdline): remove cmdline. All callers updated
37047 (grub_script_function_create): make functionname
37048 grub_script_arg. All callers updated
37049 (grub_script_execute_argument_to_string): new prototype
37050 * kern/parser.c (state_transitions): reorder
37051 (grub_parser_cmdline_state): fix a bug and make more compact
473d1e45 37052 * script/sh/execute.c (grub_script_execute_argument_to_string):
fda6cb98 37053 make global
37054 (grub_script_execute_cmdline): use new format
37055 * script/sh/function.c (grub_script_function_create): make functionname
37056 grub_script_arg. All callers updated
473d1e45 37057 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
fda6cb98 37058 (grub_script_yylex): remove
37059 (grub_script_yylex2): renamed to ...
37060 (grub_script_yylex): ...renamed
37061 parse the expressions like a${b}c
37062 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
37063 (GRUB_PARSER_TOKEN_VAR): remove
37064 (GRUB_PARSER_TOKEN_NAME): likewise
37065 ("if"): declare as typeless
37066 ("while"): likewise
37067 ("function"): likewise
37068 ("else"): likewise
37069 ("then"): likewise
37070 ("fi"): likewise
37071 (text): remove
37072 (argument): likewise
37073 (script): accept empty scripts and make exit on error
37074 (arguments): use GRUB_PARSER_TOKEN_ARG
37075 (function): likewise
37076 (command): move error handling to script
37077 (menuentry): move grub_script_lexer_ref before
473d1e45 37078 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
fda6cb98 37079 argument. All callers updated
37080
f4448a07 370812009-06-04 Robert Millan <rmh.grub@aybabtu.com>
37082
37083 Prevent GRUB from probing floppies during boot.
37084
37085 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
37086 * commands/search.c (options): Add --no-floppy.
37087 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
37088 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
37089 --no-floppy when searching for UUIDs.
37090
2bf5885a 370912009-06-04 Robert Millan <rmh.grub@aybabtu.com>
37092
37093 Simplify the code duplication in commands/search.c.
37094
37095 * commands/search.c (search_label, search_fs_uuid): Merge into ...
37096 (search_fs): ... this. Update all users.
37097
f6fd460a 370982009-06-03 Felix Zielcke <fzielcke@z-51.de>
37099
37100 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
37101
cbb3c83e 371022009-05-28 Pavel Roskin <proski@gnu.org>
37103
57788cfd 37104 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
37105 Remove the original symlink explicitly.
37106
cbb3c83e 37107 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
37108 just one slash. That's how grub_fshelp_find_file() does it.
37109
cd0d5e30 371102009-05-26 Pavel Roskin <proski@gnu.org>
37111
f0f8bbe2 37112 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
37113 to `str'.
37114
cd0d5e30 37115 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
37116 possibly unused.
37117
8c2cab51 371182009-05-25 Christian Franke <franke@computer.org>
37119
37120 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
37121 register.
37122 (grub_atapi_identify): Add wait after drive select.
37123 (grub_ata_identify): Do more strict status register check before
37124 calling grub_atapi_identify (). Suppress error message if status
37125 register is 0x00 after command failure. Add status register
37126 check after PIO read to avoid bogus identify due to stuck DRQ.
37127 Thanks to Pavel Roskin for testing.
37128 (grub_device_initialize): Remove unsafe status register check.
37129 Thanks to 'phcoder' for problem report and patch.
37130 Prevent sign extension in debug message.
37131
230c0ad6 371322009-05-23 Colin D Bennett <colin@gibibit.com>
37133
37134 Cleaned up `include/grub/normal.h'. Grouped prototypes by
37135 definition file, and functions defined in `normal/menu.c' have had
37136 their prototypes moved to `include/grub/menu.h' for consistency.
37137
37138 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
37139 from normal.h.
37140 (grub_menu_get_entry): Likewise.
37141 (grub_menu_get_timeout): Likewise.
37142 (grub_menu_set_timeout): Likewise.
37143 (grub_menu_execute_entry): Likewise.
37144 (grub_menu_execute_with_fallback): Likewise.
37145 (grub_menu_entry_run): Likewise.
37146
37147 * include/grub/normal.h: Re-ordered and grouped function
37148 prototypes by file that the function is defined in.
37149 (grub_menu_execute_callback): Removed; moved to menu.h.
37150 (grub_menu_get_entry): Likewise.
37151 (grub_menu_get_timeout): Likewise.
37152 (grub_menu_set_timeout): Likewise.
37153 (grub_menu_execute_entry): Likewise.
37154 (grub_menu_execute_with_fallback): Likewise.
37155 (grub_menu_entry_run): Likewise.
37156 (grub_menu_addentry): Renamed from this ...
37157 (grub_normal_add_menu_entry): ... to this.
37158
37159 * normal/main.c (grub_menu_addentry): Renamed from this ...
37160 (grub_normal_add_menu_entry): ... to this.
37161
37162 * script/sh/execute.c (grub_script_execute_menuentry): Update
37163 reference to renamed grub_menu_addentry function.
37164
861f03a5 371652009-05-23 Felix Zielcke <fzielcke@z-51.de>
37166
37167 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
37168
96b1619a 371692009-05-22 Pavel Roskin <proski@gnu.org>
37170
bf6a5fb2 37171 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
37172 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
37173 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
37174 compiling for the i386 targets, but not for the utilities.
37175
96b1619a 37176 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
37177 to grub_uint8_t.
37178 (grub_root_drive): Likewise.
37179 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
37180 remove alignment.
37181 (grub_root_drive): Change size to byte.
37182 (grub_start_addr): Remove.
37183 (grub_end_addr): Likewise.
37184 (grub_apm_bios_info): Likewise.
37185
b729776b 371862009-05-21 Felix Zielcke <fzielcke@z-51.de>
37187
37188 * normal/i386: Remove.
37189 * normal/powerpc: Likewise.
37190 * normal/sparc64: Likewise.
37191 * normal/x86_64: Likewise.
37192
0a15ce80 371932009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
37194
37195 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
473d1e45 37196 * loader/i386/linux_trampoline.S: Fix indentation
0a15ce80 37197 * loader/i386/xnu_helper.S: Likewise
d6da58e6 37198
33db9015 371992009-05-18 Colin D Bennett <colin@gibibit.com>
37200
d6da58e6 37201 Display error messages when parsing a Lua statement fails.
37202 Previously, executing a syntactically invalid statement like
37203 ")foo" or "bar;" would silently fail.
33db9015 37204
37205 * script/lua/grub_main.c (handle_lua_error): New function.
d6da58e6 37206 (grub_lua_parse_line): Improved reporting of Lua parser and
37207 execution errors.
33db9015 37208
46422c89 372092009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
37210
37211 Remove -Werror which causes build to fail on some systems
37212
37213 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
37214 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
37215 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
18f547ad 37216
22f53a96 372172009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
37218
37219 trampoline for linux on 64-bit platform
37220
18f547ad 37221 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
37222 loader/i386/efi/linux_trampoline.S
37223 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
473d1e45 37224 declaration
d6da58e6 37225 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
37226 here
22f53a96 37227 * loader/i386/linux_trampoline.S: moved here
d6da58e6 37228 * loader/i386/efi/linux.c (allocate_pages): reserve space for
37229 trampoline
22f53a96 37230 (jumpvector): removed
37231 (grub_linux_trampoline_start): new declaration
37232 (grub_linux_trampoline_end): likewise
37233 (grub_linux_boot): use trampoline when on 64-bit platform
37234 * loader/i386/linux.c: likewise
37235
cb5a0f40 372362009-05-16 Pavel Roskin <proski@gnu.org>
37237
37238 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
37239 const to avoid a warning.
37240 (grub_lua_setenv): Likewise.
37241 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
37242 lmsg to fix a warning.
37243
334f2c28 372442009-05-16 Felix Zielcke <fzielcke@z-51.de>
37245
37246 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
7dd10fce 37247 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
37248 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
37249 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
37250 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
37251 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
37252 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
37253 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
334f2c28 37254
59e5d3ec 372552009-05-16 Felix Zielcke <fzielcke@z-51.de>
37256
37257 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
37258
9d87a1ba 372592009-05-16 Bean <bean123ch@gmail.com>
37260
37261 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
37262 (lua_mod_SOURCES): New variable.
37263 (lua_mod_CFLAGS): Likewise.
37264 (lua_mod_LDFLAGS): Likewise.
37265
37266 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
37267 (setjmp_mod_SOURCES): New variable.
37268 (setjmp_mod_CFLAGS): Likewise.
37269 (setjmp_LDFLAGS): Likewise.
37270
37271 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
37272 (setjmp_mod_SOURCES): New variable.
37273 (setjmp_mod_CFLAGS): Likewise.
37274 (setjmp_LDFLAGS): Likewise.
37275
37276 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
37277 (setjmp_mod_SOURCES): New variable.
37278 (setjmp_mod_CFLAGS): Likewise.
37279 (setjmp_LDFLAGS): Likewise.
37280
37281 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
37282 (setjmp_mod_SOURCES): New variable.
37283 (setjmp_mod_CFLAGS): Likewise.
37284 (setjmp_LDFLAGS): Likewise.
37285
37286 * normal/i386/setjmp.S: Moved from here ...
37287 * lib/i386/setjmp.S: ... Moved here
37288 * normal/x86_64/setjmp.S: Moved from here ...
37289 * lib/x86_64/setjmp.S: ... Moved here
37290 * normal/powerpc/setjmp.S: Moved from here ...
37291 * lib/powerpc/setjmp.S: ... Moved here
37292 * normal/sparc64/setjmp.S: Moved from here ...
37293 * lib/sparc64/setjmp.S: ... Moved here
37294
37295 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
37296 returns_twice in mingw.
37297
37298 * script/lua/grub_lib.c: New file.
37299 * script/lua/grub_lib.h: Likewise.
37300 * script/lua/grub_lua.h: Likewise.
37301 * script/lua/grub_main.c: Likewise.
37302 * script/lua/lapi.c: Likewise.
37303 * script/lua/lapi.h: Likewise.
37304 * script/lua/lauxlib.c: Likewise.
37305 * script/lua/lauxlib.h: Likewise.
37306 * script/lua/lbaselib.c: Likewise.
37307 * script/lua/lcode.c: Likewise.
37308 * script/lua/lcode.h: Likewise.
37309 * script/lua/ldblib.c: Likewise.
37310 * script/lua/ldebug.c: Likewise.
37311 * script/lua/ldebug.h: Likewise.
37312 * script/lua/ldo.c: Likewise.
37313 * script/lua/ldo.h: Likewise.
37314 * script/lua/ldump.c: Likewise.
37315 * script/lua/lfunc.c: Likewise.
37316 * script/lua/lfunc.h: Likewise.
37317 * script/lua/lgc.c: Likewise.
37318 * script/lua/lgc.h: Likewise.
37319 * script/lua/linit.c: Likewise.
37320 * script/lua/liolib.c: Likewise.
37321 * script/lua/llex.c: Likewise.
37322 * script/lua/llex.h: Likewise.
37323 * script/lua/llimits.h: Likewise.
37324 * script/lua/lmathlib.c: Likewise.
37325 * script/lua/lmem.c: Likewise.
37326 * script/lua/lmem.h: Likewise.
37327 * script/lua/loadlib.c: Likewise.
37328 * script/lua/lobject.c: Likewise.
37329 * script/lua/lobject.h: Likewise.
37330 * script/lua/lopcodes.c: Likewise.
37331 * script/lua/lopcodes.h: Likewise.
37332 * script/lua/loslib.c: Likewise.
37333 * script/lua/lparser.c: Likewise.
37334 * script/lua/lparser.h: Likewise.
37335 * script/lua/lstate.c: Likewise.
37336 * script/lua/lstate.h: Likewise.
37337 * script/lua/lstring.c: Likewise.
37338 * script/lua/lstring.h: Likewise.
37339 * script/lua/lstrlib.c: Likewise.
37340 * script/lua/ltable.c: Likewise.
37341 * script/lua/ltable.h: Likewise.
37342 * script/lua/ltablib.c: Likewise.
37343 * script/lua/ltm.c: Likewise.
37344 * script/lua/ltm.h: Likewise.
37345 * script/lua/lua.h: Likewise.
37346 * script/lua/luaconf.h: Likewise.
37347 * script/lua/lualib.h: Likewise.
37348 * script/lua/lundump.c: Likewise.
37349 * script/lua/lundump.h: Likewise.
37350 * script/lua/lvm.c: Likewise.
37351 * script/lua/lvm.h: Likewise.
37352 * script/lua/lzio.c: Likewise.
37353 * script/lua/lzio.h: Likewise.
37354
5e898c9d 373552009-05-16 Bean <bean123ch@gmail.com>
37356
37357 * include/grub/kernel.h (grub_module_header_types): Add type
37358 OBJ_TYPE_CONFIG.
37359
37360 * kern/main.c (grub_load_config): New function.
37361 (grub_main): Call grub_load_config to read boot config.
37362
37363 * grub-mkimage (generate_image): New parameter config_path.
37364 (options): New option --config.
37365 (main): Parse --config option, and pass it to generate_image.
37366
cf353a47 373672009-05-14 Christian Franke <franke@computer.org>
37368
37369 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
37370 This fixes build on Cygwin.
37371
3834887f 373722009-05-14 Pavel Roskin <proski@gnu.org>
37373
37374 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
37375 jump. This saves two bytes, so the typical case of 2 swapped
37376 drives would fit 32 bytes.
37377
8090fc01 373782009-05-13 Pavel Roskin <proski@gnu.org>
37379
ac963883 37380 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
37381 grub_uint32_t to avoid a warning.
37382
8090fc01 37383 * loader/i386/linux.c (allocate_pages): When assigning
37384 real_mode_mem, cast through grub_size_t to fix a warning. The
37385 code already makes sure that the value would fit a pointer.
37386 (grub_linux_setup_video): Cast render_target->data to
37387 grub_size_t to fix a warning.
37388
18f547ad 373892009-05-13 Javier Martín <lordhabbit@gmail.com>
4246b8a9 37390
37391 * commands/i386/pc/drivemap.c: New file - implement drivemap
37392 command.
37393 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
37394 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
37395
6f6a8b28 373962009-05-13 Pavel Roskin <proski@gnu.org>
37397
37398 * util/i386/pc/grub-setup.c (setup): Remove unused variable
37399 embedding_area_exists.
37400
15fbf4c4 374012009-05-13 Robert Millan <rmh.grub@aybabtu.com>
37402
37403 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
37404 it easier to understand / work with.
59978c8a 37405 Improve warning messages for cases where there's no embedding area,
37406 or when it is too small (or core.img too large).
15fbf4c4 37407
238e871f 374082009-05-13 Pavel Roskin <proski@gnu.org>
37409
0ab3a9a4 37410 * loader/i386/pc/multiboot2.c: Add necessary includes for
37411 grub_multiboot2_real_boot().
37412
a2c8c5f8 37413 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
37414 PX record is always little-endian. We only need the lower 2
37415 bytes of the mode.
37416
faec96af 37417 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
37418 facilitate code reuse.
37419 (grub_cpio_mount): Use "struct head", not a char buffer. This
37420 fixes a warning reported by gcc 4.4.
37421
238e871f 37422 * kernel/disk.c (grub_disk_read): Use void pointer for the
37423 buffer.
37424 (grub_disk_write): Use const void pointer for the buffer.
37425 Adjust all callers. Remove unnecessary casts.
37426
901d2f0c 374272009-05-10 Robert Millan <rmh.grub@aybabtu.com>
37428
37429 * util/i386/pc/grub-install.in: Update copyright year.
37430
18f547ad 374312009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2eac4c16 37432
37433 gptsync
37434
37435 * commands/gptsync.c: new file
37436 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
37437 (gptsync_mod_SOURCES): new variable
37438 (gptsync_mod_CFLAGS): likewise
37439 (gptsync_mod_LDFLAGS): likewise
18f547ad 37440 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
2eac4c16 37441 new definition
37442 (GRUB_PC_PARTITION_TYPE_HFS): likewise
37443 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
37444 * conf/i386-ieee1275.rmk: likewise
37445 * conf/i386-pc.rmk: likewise
37446 * conf/powerpc-ieee1275.rmk: likewise
37447
b4ba690a 374482009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
37449
37450 Fixed grub-emu
37451
37452 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
37453 (grub_dl_ref): likewise
37454
317e1a44 374552009-05-08 Robert Millan <rmh.grub@aybabtu.com>
37456
37457 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
37458 split in two functions (one for msdos and one for gpt).
37459
041b8094 374602009-05-08 Pavel Roskin <proski@gnu.org>
37461
752473c2 37462 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
37463 not modified.
37464
041b8094 37465 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
37466 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
37467 Initialize them with -1. Add sanity check for bad1. Eliminate
37468 nerr variable.
37469
172800ce 374702009-05-08 David S. Miller <davem@davemloft.net>
37471
37472 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
37473
29aa5e81 374742009-05-06 Robert Millan <rmh.grub@aybabtu.com>
37475
37476 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
473d1e45 37477 existence.
29aa5e81 37478
96613b62 374792009-05-05 Felix Zielcke <fzielcke@z-51.de>
37480
37481 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
1905c57b 37482 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
96613b62 37483
eef73c8a 374842009-05-05 David S. Miller <davem@davemloft.net>
37485
37486 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
37487
119494b5 374882009-05-05 Pavel Roskin <proski@gnu.org>
37489
37490 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
37491 of grub_dl_ref() and grub_dl_unref().
37492 * commands/parttool.c: Remove preprocessor conditionals around
37493 grub_dl_ref() and grub_dl_unref().
37494 * fs/affs.c: Likewise.
37495 * fs/afs.c: Likewise.
37496 * fs/cpio.c: Likewise.
37497 * fs/ext2.c: Likewise.
37498 * fs/fat.c: Likewise.
37499 * fs/hfs.c: Likewise.
37500 * fs/hfsplus.c: Likewise.
37501 * fs/iso9660.c: Likewise.
37502 * fs/jfs.c: Likewise.
37503 * fs/minix.c: Likewise.
37504 * fs/ntfs.c: Likewise.
37505 * fs/reiserfs.c: Likewise.
37506 * fs/sfs.c: Likewise.
37507 * fs/udf.c: Likewise.
37508 * fs/ufs.c: Likewise.
37509 * fs/xfs.c: Likewise.
37510 * include/grub/dl.h: Likewise.
37511 * loader/xnu.c: Likewise.
37512
de5fd76e 375132009-05-04 Pavel Roskin <proski@gnu.org>
37514
37515 * commands/acpi.c: Remove unused variable my_mod.
37516 * partmap/amiga.c: Likewise.
37517 * partmap/apple.c: Likewise.
37518 * partmap/gpt.c: Likewise.
37519 * partmap/pc.c: Likewise.
37520 * partmap/sun.c: Likewise.
37521 * term/gfxterm.c: Likewise.
37522 * term/i386/pc/vesafb.c: Likewise.
37523 * term/i386/pc/vga.c: Likewise.
37524
983598ad 375252009-05-04 David S. Miller <davem@davemloft.net>
37526
37527 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
37528 pointer args to grub_ieee1275_get_property().
37529
8aadec43 37530 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
37531
9554b15e 37532 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
37533 devices, and do not traverse down under controller nodes.
37534
67e23c90 37535 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
37536 (grub_ofdisk_open): Use it to un-escape "," characters.
37537 * kern/disk.c (find_part_sep): New.
37538 (grub_disk_open): Use it to find the first non-escaped ','
37539 character in the disk name.
37540 * util/ieee1275/devicemap.c (escape_of_path): New.
37541 (grub_util_emit_devicemap_entry): Use it.
37542 * util/sparc64/ieee1275/grub-install.in: Update script to
37543 strip partition specifiers properly by not triggering on
37544 '\' escaped ',' characters.
37545
74bfdd2f 375462009-05-04 Robert Millan <rmh.grub@aybabtu.com>
37547
37548 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
37549 to 0x300.
37550 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
37551 resolutions.
37552 (linux_vesafb_modes): Add a lot of additional modes to the list (based
37553 on documentation from Wikipedia).
37554
4241d2b1 375552009-05-04 Pavel Roskin <proski@gnu.org>
37556
37557 * disk/ata.c: Spelling fixes.
37558 * disk/raid.c: Likewise.
37559 * disk/usbms.c: Likewise.
37560 * disk/dmraid_nvidia.c: Likewise.
37561 * kern/ieee1275/openfw.c: Likewise.
37562 * kern/ieee1275/init.c: Likewise.
37563 * kern/ieee1275/cmain.c: Likewise.
37564 * boot/i386/pc/cdboot.S: Likewise.
37565 * video/readers/png.c: Likewise.
37566 * video/i386/pc/vbe.c: Likewise.
37567 * fs/udf.c: Likewise.
37568 * fs/hfs.c: Likewise.
37569 * fs/reiserfs.c: Likewise.
37570 * efiemu/runtime/efiemu.c: Likewise.
37571 * efiemu/main.c: Likewise.
37572 * efiemu/mm.c: Likewise.
37573 * include/grub/elf.h: Likewise.
37574 * include/grub/xnu.h: Likewise.
37575 * include/grub/usbdesc.h: Likewise.
37576 * include/grub/usb.h: Likewise.
37577 * include/grub/script_sh.h: Likewise.
37578 * include/grub/lib/LzmaEnc.h: Likewise.
37579 * include/grub/efiemu/efiemu.h: Likewise.
37580 * include/grub/command.h: Likewise.
37581 * normal/menu.c: Likewise.
37582 * normal/main.c: Likewise.
37583 * normal/datetime.c: Likewise.
37584 * bus/usb/uhci.c: Likewise.
37585 * mmap/i386/uppermem.c: Likewise.
37586 * mmap/mmap.c: Likewise.
37587 * commands/acpi.c: Likewise.
37588 * commands/test.c: Likewise.
37589 * partmap/apple.c: Likewise.
37590 * font/font.c: Likewise.
37591 * loader/sparc64/ieee1275/linux.c: Likewise.
37592 * loader/macho.c: Likewise.
37593 * loader/i386/bsd_trampoline.S: Likewise.
37594 * loader/i386/bsd.c: Likewise.
37595 * loader/xnu.c: Likewise.
37596 * term/i386/pc/vesafb.c: Likewise.
37597 * term/usb_keyboard.c: Likewise.
37598 * util/resolve.c: Likewise.
37599 * util/getroot.c: Likewise.
37600
0cfc0083 376012009-05-04 Felix Zielcke <fzielcke@z-51.de>
37602
37603 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
37604
7c1d00cd 376052009-05-04 Robert Millan <rmh.grub@aybabtu.com>
37606
37607 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
37608 build error.
37609
b01f0548 376102009-05-04 Robert Millan <rmh.grub@aybabtu.com>
37611
37612 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
37613 parameter only available on BIOS.
37614
ecc3eb22 376152009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
37616
37617 Removed wrong semicolon in declaration
37618
37619 * grub/misc.h (grub_dprintf): remove semicolon
37620
112972a9 376212009-05-04 Robert Millan <rmh.grub@aybabtu.com>
37622
37623 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
37624 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
37625 is done by grub_cmd_linux() now).
37626 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
37627 restore video to text mode.
37628 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
37629 indicates lack of "vga=" parameter. "vga=0" is mapped to
37630 `GRUB_LINUX_VID_MODE_NORMAL'.
37631
afd5c115 376322009-05-04 Felix Zielcke <fzielcke@z-51.de>
37633
37634 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
37635 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
37636 and `normal/script.c'. Add `kern/rescue_reader.c',
18f547ad 37637 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
afd5c115 37638 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
37639 `grub_script.tab.c'.
37640
37641 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37642 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
37643 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37644 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
37645 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37646
faa517ce 37647 * Makefile.in: Remove duplicated 2008 in Copyright line.
37648
ae0c0bdc 376492009-05-04 Robert Millan <rmh.grub@aybabtu.com>
37650
473d1e45 37651 * util/misc.c (grub_util_warn): New function. Emits a warning
ae0c0bdc 37652 unconditionally.
37653 * include/grub/util/misc.h (grub_util_warn): New declaration.
37654
37655 * util/i386/pc/grub-install.in: Understand --force and pass it down
37656 to grub-setup.
37657
37658 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
37659 down to setup().
37660 (setup): Improve error messages and add warnings when requested to
37661 install in odd layouts. Refuse to install using blocklists unless
37662 --force was set.
37663
18f547ad 376642009-05-04 martin f. krafft <madduck@madduck.net>
c149b500 37665
37666 * disk/raid.c (grub_raid_scan_device): Improve debug message.
37667
6d260daa 376682009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
37669
37670 Updated copyright year
37671
37672 * fs/hfsplus.c: updated copyright year
18f547ad 37673
69f853f8 376742009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
37675
37676 HFS+ UUID
37677
18f547ad 37678 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
69f853f8 37679 in the space previously used by unused3
37680 (grub_hfsplus_uuid): new function
37681 (grub_hfsplus_fs): added uuid field
37682
4c402e73 376832009-05-03 Pavel Roskin <proski@gnu.org>
37684
37685 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
37686 suppress warnings. It's no longer needed.
37687 * disk/host.c: Likewise.
37688 * disk/ata_pthru.c: Likewise.
37689 * disk/loopback.c: Likewise.
37690 * hook/datehook.c: Likewise.
37691 * parttool/pcpart.c: Likewise.
37692 * fs/i386/pc/pxe.c: Likewise.
37693 * fs/ntfscomp.c: Likewise.
37694 * efiemu/main.c: Likewise.
37695 * mmap/mmap.c: Likewise.
37696 * commands/crc.c: Likewise.
37697 * commands/hexdump.c: Likewise.
37698 * commands/hdparm.c: Likewise.
37699 * commands/acpi.c: Likewise.
37700 * commands/echo.c: Likewise.
37701 * commands/minicmd.c: Likewise.
37702 * commands/blocklist.c: Likewise.
37703 * commands/memrw.c: Likewise.
37704 * commands/loadenv.c: Likewise.
37705 * commands/usbtest.c: Likewise.
37706 * commands/lsmmap.c: Likewise.
37707 * commands/boot.c: Likewise.
37708 * commands/parttool.c: Likewise.
37709 * commands/configfile.c: Likewise.
37710 * commands/search.c: Likewise.
37711 * commands/ieee1275/suspend.c: Likewise.
37712 * commands/cat.c: Likewise.
37713 * commands/i386/pc/pxecmd.c: Likewise.
37714 * commands/i386/pc/play.c: Likewise.
37715 * commands/i386/pc/halt.c: Likewise.
37716 * commands/i386/pc/vbeinfo.c: Likewise.
37717 * commands/i386/pc/vbetest.c: Likewise.
37718 * commands/lspci.c: Likewise.
37719 * commands/date.c: Likewise.
37720 * commands/handler.c: Likewise.
37721 * commands/ls.c: Likewise.
37722 * commands/test.c: Likewise.
37723 * commands/cmp.c: Likewise.
37724 * commands/efi/loadbios.c: Likewise.
37725 * commands/efi/fixvideo.c: Likewise.
37726 * commands/halt.c: Likewise.
37727 * commands/help.c: Likewise.
37728 * commands/reboot.c: Likewise.
37729 * hello/hello.c: Likewise.
37730 * script/sh/main.c: Likewise.
37731 * loader/xnu.c: Likewise.
37732 * term/terminfo.c: Likewise.
37733 * term/i386/pc/serial.c: Likewise.
37734 * term/usb_keyboard.c: Likewise.
37735
515b5079 377362009-05-03 David S. Miller <davem@davemloft.net>
37737
37738 * normal/menu.c: Include grub/parser.h
37739
dfc31a22 377402009-05-03 Pavel Roskin <proski@gnu.org>
37741
2fee74f1 37742 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
37743 not char*.
37744 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
37745 Suggested by Javier Martín <lordhabbit@gmail.com>
37746
dfc31a22 37747 * util/i386/pc/grub-mkrescue.in: Allow for the case when
37748 efiemu??.o doesn't exist.
37749 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
37750 copying.
37751
18f547ad 377522009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
cef17233 37753
37754 FreeBSD 64-bit support
37755
18f547ad 37756 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
cef17233 37757 and loader/i386/bsd_trampoline.S
37758 (bsd_mod_ASFLAGS): new variable
37759 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
37760 (FREEBSD_MODTYPE_KERNEL64): likewise
37761 (grub_bsd64_trampoline_start): likewise
37762 (grub_bsd64_trampoline_end): likewise
37763 (grub_bsd64_trampoline_selfjump): likewise
37764 (grub_bsd64_trampoline_gdt): likewise
37765 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
37766 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
37767 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
37768 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
18f547ad 37769 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
cef17233 37770 of "attrib" member
37771 * loader/i386/bsd_pagetable.c: new file
37772 * loader/i386/bsd_trampoline.S: likewise
37773 * loader/i386/bsd.c (ALIGN_QWORD): new macro
37774 (ALIGN_VAR): likewise
37775 (entry_hi): new variable
37776 (kern_end_mdofs): likewise
37777 (is_64bit): likewise
37778 (grub_freebsd_add_meta): use ALIGN_VAR
37779 (grub_e820_mmap): new declaration
37780 (grub_freebsd_add_mmap): new function
37781 (grub_freebsd_add_meta_module): support 64 bit kernels
37782 (grub_freebsd_list_modules): use ALIGN_VAR
37783 (gdt_descriptor): new declaration
37784 (grub_freebsd_boot): support 64 bit kernels
37785 (grub_bsd_elf64_hook): new function
37786 (grub_bsd_load_elf): support elf64
37787
038c5720 377882009-05-03 Bean <bean123ch@gmail.com>
37789
37790 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
37791 after we get the result of if statement.
37792
fc45fb58 377932009-05-03 Bean <bean123ch@gmail.com>
37794
37795 * Makefile.in (enable_efiemu): New variable.
37796
37797 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
37798 set.
37799 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
37800 path.
37801 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
37802 path, add -mno-red-zone option.
37803 (efiemu64_s.o): Likewise.
37804 (efiemu64.o): Use macro $^ for source file.
37805
37806 * configure.ac (--enable-efiemu): New option.
37807
bbee0f2b 378082009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
37809
37810 xnu support
37811
37812 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
37813 (pkglib_MODULES): add xnu.mod
37814 (xnu_mod_SOURCES): new variable
37815 (xnu_mod_CFLAGS): likewise
37816 (xnu_mod_LDFLAGS): likewise
37817 (xnu_mod_ASFLAGS): likewise
37818 * conf/i386-pc.rmk: likewise
37819 * conf/x86_64-efi.rmk: likewise
7dd4a573 37820 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
bbee0f2b 37821 new declaration
37822 * include/grub/i386/macho.h: new file
37823 * include/grub/i386/xnu.h: likewise
37824 * include/grub/macho.h: likewise
37825 * include/grub/machoload.h: likewise
37826 * include/grub/x86_64/macho.h: likewise
37827 * include/grub/x86_64/xnu.h: likewise
37828 * include/grub/xnu.h: likewise
37829 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
37830 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
37831 * loader/i386/efi/xnu.c: new file
37832 * loader/i386/pc/xnu.c: likewise
37833 * loader/i386/xnu.c: likewise
37834 * loader/i386/xnu_helper.S: likewise
37835 * loader/macho.c: likewise
37836 * loader/xnu.c: likewise
37837 * loader/xnu_resume.c: likewise
37838 * util/grub-dumpdevtree: likewise
37839 * include/grub/i386/pit.h: include grub/err.h
37840 (grub_pit_wait): export
37841 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
7dd4a573 37842
5caf964d 378432009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
37844
37845 Efiemu
7dd4a573 37846
5caf964d 37847 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
7dd4a573 37848 _linux_efi, linux_efi.
37849 new files in grub-emu
5caf964d 37850 new targets efiemu32.o and efiemu64.o
37851 * loader/linux_normal_efiemu.c: likewise
37852 * loader/i386/efi/linux.c: added preliminary efiemu support
7dd4a573 37853 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
5caf964d 37854 files to copy
37855 * include/grub/autoefi.h: new file
7dd4a573 37856 * include/grub/i386/efiemu.h: likewise
5caf964d 37857 * include/grub/i386/pc/efiemu.h: likewise
37858 * include/grub/efi/api.h: add LL suffix when necessary
37859 new definitions relating to tables
37860 * include/grub/efiemu/efiemu.h: new file
37861 * include/grub/efiemu/runtime.h: likewise
37862 * efiemu/prepare.c: likewise
37863 * efiemu/loadcore_common.c: likewise
37864 * efiemu/loadcore64.c: likewise
37865 * efiemu/runtime/efiemu.sh: likewise
37866 * efiemu/runtime/efiemu.S: likewise
37867 * efiemu/runtime/efiemu.c: likewise
37868 * efiemu/runtime/config.h: likewise
37869 * efiemu/prepare32.c: likewise
37870 * efiemu/main.c: likewise
37871 * efiemu/modules/pnvram.c: likewise
37872 * efiemu/modules/i386: likewise
37873 * efiemu/modules/i386/pc: likewise
37874 * efiemu/modules/acpi.c: likewise
37875 * efiemu/i386/pc/cfgtables.c: likewise
37876 * efiemu/i386/loadcore64.c: likewise
37877 * efiemu/i386/loadcore32.c: likewise
37878 * efiemu/prepare64.c: likewise
37879 * efiemu/loadcore.c: likewise
37880 * efiemu/symbols.c: likewise
37881 * efiemu/mm.c: likewise
37882 * efiemu/loadcore32.c: likewise
7dd4a573 37883
378842009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
f8efe3ad 37885
37886 ACPI spoofing
37887
37888 * commands/acpi.c: new file
37889 * commands/i386/pc/acpi.c: likewise
37890 * commands/efi/acpi.c: likewise
37891 * include/grub/acpi.h: likewise
37892 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
37893 (acpi_mod_SOURCES): new variable
37894 (acpi_mod_CFLAGS): likewise
37895 (acpi_mod_LDFLAGS): likewise
37896 * conf/i386-efi.rmk: likewise
37897 * conf/x86_64-efi.rmk: likewise
37898
7dd4a573 378992009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
28a85665 37900
37901 Missing part from mmap patch
37902
37903 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
37904 (grub_mmap_unregister)
37905 (grub_mmap_free_and_unregister): use grub_mmap_register
37906
7dd4a573 379072009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
09d842b9 37908
37909 Mmap services
37910
37911 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
37912 * loader/i386/linux.c (find_mmap_size): likewise
37913 (allocate_pages): likewise
37914 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
37915 (grub_fill_multiboot_mmap): likewise
37916 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
37917 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
37918 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
37919 (OPENBSD_MMAP_RESERVED): likewise
37920 * include/grub/i386/pc/memory.h: include grub/memory.h
37921 (grub_lower_mem): removed
37922 (grub_upper_mem): likewise
37923 (GRUB_MACHINE_MEMORY_ACPI): new definition
37924 (GRUB_MACHINE_MEMORY_NVS): likewise
37925 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
37926 (GRUB_MACHINE_MEMORY_HOLE): likewise
37927 (grub_machine_mmap_register): likewise
37928 (grub_machine_mmap_unregister): likewise
37929 (grub_machine_get_upper): likewise
37930 (grub_machine_get_lower): likewise
37931 (grub_machine_get_post64): likewise
37932 * include/grub/i386/efi/memory.h: new file
37933 * include/grub/x86_64/efi/memory.h: likewise
37934 * include/grub/efi/memory.h: likewise
37935 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
37936 (mmap_mod_SOURCES): new variable
37937 (mmap_mod_LDFLAGS): likewise
37938 (mmap_mod_ASFLAGS): likewise
37939 * conf/i386-coreboot.rmk: likewise
37940 * conf/i386-ieee1275.rmk: likewise
37941 * conf/i386-efi.rmk: likewise
37942 * conf/x86_64-efi.rmk: likewise
37943 * include/grub/types.h (UINT_TO_PTR): new macro
37944 (PTR_TO_UINT32): likewise
37945 (PTR_TO_UINT64): likewise
37946 * include/grub/memory.h: new file
37947 * mmap/i386/pc/mmap.c: likewise
37948 * mmap/i386/pc/mmap_helper.S: likewise
37949 * mmap/i386/uppermem.c: likewise
37950 * mmap/mmap.c: likewise
37951 * mmap/efi/mmap.c: likewise
7dd4a573 37952 * kern/i386/coreboot/init.c (grub_machine_init): don't use
09d842b9 37953 grub_upper_mem
37954 * kern/i386/pc/init.c (grub_lower_mem): removed variable
37955 (grub_upper_mem): likewise
37956 (grub_machine_init): don't use grub_upper_mem,
37957 make grub_lower_mem local
37958 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
37959 grub_mmap_iterate and grub_mmap_get_upper
37960 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
37961
d558e6b5 379622009-05-02 Bean <bean123ch@gmail.com>
37963
37964 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
37965 script/sh/parser.y.
37966 (pkglib_MODULES): Add normal.mod and sh.mod.
37967 (normal_SOURCES): New variable.
37968 (normal_mod_CFLAGS): Likewise.
37969 (normal_mod_LDFLAGS): Likewise.
37970 (sh_mod_SOURCES): Likewise.
37971 (sh_mod_CFLAGS): Likewise.
37972 (sh_mod_LDFLAGS): Likewise.
37973
37974 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
37975 script/sh/lexer.c_DEPENDENCIES.
37976 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
37977 kern/rescue_reader.c and kern/rescue_parser.c.
37978 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
37979 (grub_emu_SOURCES): Change source files.
37980 (pkglib_MODULES): Remove normal.mod.
37981 (normal_SOURCES): Removed.
37982 (normal_mod_CFLAGS): Likewise.
37983 (normal_mod_LDFLAGS): Likewise.
37984 * conf/i386-coreboot.rmk: Likewise.
37985 * conf/i386-efi.rmk: Likewise.
37986 * conf/i386-ieee1276.rmk: Likewise.
37987 * conf/powerpc-ieee1275.rmk: Likewise.
37988 * conf/sparc64-ieee1275.rmk: Likewise.
37989 * conf/x86_64-efi.rmk: Likewise.
37990
37991 * include/grub/command.h (grub_command_execute): New inline function.
37992
37993 * include/grub/menu.h (grub_menu_entry): Removed commands field.
37994
37995 * include/grub/normal.h: Remove <grub/setjmp.h>.
37996 (grub_fs_module_list): Moved to normal/autofs.c.
37997 (grub_exit_env): Removed.
37998 (grub_command_execute): Likewise.
37999 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
38000 parameter script.
38001 (read_command_list): New function declaration.
38002 (read_fs_list): Likewise.
38003
38004 * include/parser.h: Include <grub/reader.h>.
38005 (grub_parser_split_cmdline): Change type of getline parameter.
38006 (grub_parser): New structure.
38007 (grub_parser_class): New variable.
38008 (grub_parser_execute): New function declaration.
38009 (grub_register_rescue_parser): Likewise.
38010 (grub_parser_register): New inline function.
38011 (grub_parser_unregister): Likewise.
38012 (grub_parser_get_current): Likewise.
38013 (grub_parser_set_current): Likewise.
38014
38015 * include/grub/reader.h: New file.
38016 * kern/reader.c: Likewise.
38017 * kern/rescue_parser.c: Likewise.
38018 * kern/rescue_reader.c: Likewise.
38019 * normal/autofs.c: Likewise.
38020 * normal/dyncmd.c: Likewise.
38021
38022 * include/grub/rescue.h: Removed.
38023 * normal/command.h: Likewise.
38024
38025 * include/grub/script.h: Moved to ...
38026 * include/grub/script_sh.h: ... Moved here.
38027 * normal/execute.c: Moved to ...
38028 * script/sh/execute.c: ... Moved here.
38029 * normal/function.c: Moved to ...
38030 * script/sh/function.c: ... Moved here.
38031 * normal/lexer.c: Moved to ...
38032 * script/sh/lexer.c: ... Moved here.
38033 * normal/parser.y: Moved to ...
38034 * script/sh/parser.y: ... Moved here.
38035 * normal/script.c: Moved to ...
38036 * script/sh/script.c: ... Moved here.
38037
38038 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
38039 <grub/reader.h>.
38040 (grub_exit_env): Removed.
38041 (fs_module_list): Moved to normal/autofs.c.
38042 (grub_file_getline): Don't handle comment here.
38043 (free_menu): Skip removed field entry->commands.
38044 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
38045 script parameter.
38046 (read_config_file): Removed nested parameter, change getline function.
38047 (grub_enter_normal_mode): Removed.
38048 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
38049 (read_command_list): Likewise.
38050 (autoload_fs_module): Moved to normal/autofs.c.
38051 (read_fs_list): Likewise.
38052 (reader_nested): New variable.
38053 (grub_normal_execute): Run parser.sh to switch to sh parser.
38054 (grub_cmd_rescue): Removed.
38055 (cmd_normal): Removed.
38056 (grub_cmd_normal): Unregister itself at the beginning. Don't register
38057 rescue command.
38058 (grub_cmdline_run): New function.
38059 (grub_normal_reader_init): Likewise.
38060 (grub_normal_read_line): Likewise.
38061 (grub_env_write_pager): Likewise.
38062 (cmdline): New variable.
38063 (grub_normal_reader): Likewise.
38064 (GRUB_MOD_INIT): Register normal reader and set as current, register
38065 pager hook, register normal command with grub_register_command_prio,
38066 so that it won't show up in command.lst.
38067 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
38068 grub_fs_autoload_hook.
38069
38070 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
38071 (grub_menu_execute_entry): Replace grub_script_execute with
38072 grub_parser_execute, change parameter to grub_command_execute.
38073
38074 * normal/menu_text.c: Remove <grub/script.h>.
38075
38076 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
38077 and <grub/parser.h>.
38078 (run): Change editor_getline to use new parser interface. Change
38079 parameter to grub_command_execute.
38080
38081 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
38082 <grub/reader.h> and <grub/parser.h>.
38083 (grub_load_normal_mode): Execute normal command.
38084 (grub_main): Call grub_register_core_commands,
38085 grub_register_rescue_parser and grub_register_rescue_reader, use
38086 grub_reader_loop to enter input loop.
38087
7dd4a573 38088 * kern/parser.c (grub_parser_split_cmdline): Change type of
38089 getline parameter.
d558e6b5 38090 (grub_parser_class): New variable.
38091 (grub_parser_execute): New function.
38092
38093 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
38094 * loader/multiboot2.c: Likewise.
38095 * loader/sparc64/ieee1275/linux.c: Likewise.
38096
38097 * util/grub-emu.c (read_command_list): New dummy function.
38098
18db813d 380992009-05-02 Robert Millan <rmh.grub@aybabtu.com>
38100
38101 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
38102 count to 16 for CCISS and IDA.
38103
6c67de15 381042009-05-02 Robert Millan <rmh.grub@aybabtu.com>
38105
38106 * normal/menu_text.c (grub_wait_after_message): Print a newline
38107 after waiting for user input.
38108
38109 * loader/i386/linux.c: Include `<grub/normal.h>'.
38110 (grub_cmd_linux): Improve the error message about `ask' mode, by
38111 waiting for user input so it's not missed (we can do this, since
38112 user requested interaction).
38113
d9dc87b0 381142009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38115
38116 Added missing lst to grub-mkrescue
38117
38118 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
38119 and ${input_dir}/parttool.lst
38120
ac8a2baa 381212009-04-30 David S. Miller <davem@davemloft.net>
38122
ad22a610 38123 * util/hostdisk.c (device_is_wholedisk): New function.
38124 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
38125 zero only if device_is_wholedisk() returns true.
38126
6966215d 38127 * util/hostdisk.c (convert_system_partition_to_system_disk):
38128 Handle virtual disk devices named /dev/vdiskX as found on sparc
38129 and powerpc.
38130
ac8a2baa 38131 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
38132 lettered partition specifier is found, convert to numbered.
38133
979b4fb4 381342009-04-29 David S. Miller <davem@davemloft.net>
38135
e2bf39b2 38136 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
38137 * include/grub/sparc64/ieee1275/memory.h: Likewise.
38138
3c64e104 38139 * normal/command.c: Add missing newline at end of file.
38140
979b4fb4 38141 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
38142 warnings.
38143 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
38144 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
38145 grub_ofdisk_read): Likewise, and deal similarly with the fact that
38146 ihandles have a 32-bit type but need to be stored in a "void *".
38147
136d9f82 381482009-04-28 Pavel Roskin <proski@gnu.org>
38149
9459c306 38150 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
38151 not disk. Adjust all dependencies.
2e08a26a 38152 (grub_fs_uuid_close): Use grub_device_close(), not
9459c306 38153 grub_disk_close().
38154
136d9f82 38155 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
38156 parent's partition, don't copy it by reference, as it gets freed
38157 on close.
38158
7dd4a573 381592009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
75a807cf 38160
38161 Preboot hooks support
38162
38163 * commands/boot.c (struct grub_preboot_t): new declaration
38164 (preboots_head): new variable
38165 (preboots_tail): likewise
38166 (grub_loader_register_preboot_hook): new function
38167 (grub_loader_unregister_preboot_hook): likewise
38168 (grub_loader_set): launch preboot hooks
38169 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
38170 (grub_loader_register_preboot_hook): new declaration
38171 (grub_loader_unregister_preboot_hook): likewise
38172
5af922b5 381732009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
38174
38175 Warning fix
38176
7dd4a573 38177 * disk/scsi.c (grub_scsi_open): added missing cast when
5af922b5 38178 calling grub_dprintf
38179
a5562c30 381802009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
38181
38182 Bug and warning fixes
38183
7dd4a573 38184 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
a5562c30 38185 declaration
38186 * commands/test.c (test_parse): fixed bug with file tests and corrected
38187 declaration of find_file
38188
4006f85c 381892009-04-26 Pavel Roskin <proski@gnu.org>
38190
38191 * Makefile.in: Don't install empty manual pages if help2man is
38192 missing. Use help2man option for output, not shell redirection.
38193
5c77c3de 381942009-04-26 David S. Miller <davem@davemloft.net>
38195
38196 * util/grub-mkdevicemap.c (make_device_map): Add missing
38197 NESTED_FUNC_ATTR to process_device().
38198
033b10a8 381992009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
38200
38201 Test command
38202
38203 * commands/test.c: rewritten to use bash-like test
38204
e4343593 382052009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
38206
38207 Parttool autoloading and improvements
38208
7dd4a573 38209 * Makefile.in (pkglib_DATA): add parttool.lst
e4343593 38210 (parttool.lst): new target
38211 * genmk.rb: generate parttool-*
38212 (CLEANFILES): add #{parttool}
38213 (PARTTOOLFILES): new variable
38214 * genparttoollist.sh: new file
7dd4a573 38215 * parttool/pcpart.c (grub_pcpart_boot): more feedback
e4343593 38216 (grub_pcpart_type): likewise
38217 * commands/parttool.c (helpmsg): new variable
38218 (grub_cmd_parttool): output help if not enough arguments are supplied
38219 autoload modules
38220 (GRUB_MOD_INIT(parttool)): use helpmsg
38221
0d312500 382222009-04-24 David S. Miller <davem@davemloft.net>
38223
7dd4a573 38224 Avoiding opening same device multiple times in device iterator.
0d312500 38225
38226 * kern/device.c: (grub_device_iterate): Define struct part_ent,
7dd4a573 38227 and use it to build a list of partitions in iterate_disk() and
0d312500 38228 iterate_partition().
38229
ac20caff 38230 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
38231 on disk->data.
38232
0dcf7495 38233 * disk/ieee1275/nand.c (grub_nand_iterate): Return
38234 grub_devalias_iterate() result instead of unconditional 0.
38235 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
38236 Also, capture hook return value, either directly or via
38237 grub_children_iterate(), and propagate to caller.
38238 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
38239 grub_children_iterate): Return value is now 'int' instead of
38240 'grub_err_t'.
38241 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
38242 like a proper iterator, stopping when hooks return non-zero.
38243 (grub_devalias_iterate): Likewise.
38244
c8c08833 382452009-04-23 David S. Miller <davem@davemloft.net>
38246
38247 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
38248
f01005a8 382492009-04-22 David S. Miller <davem@davemloft.net>
38250
38251 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
38252 is larger than address_cells, use that value for address_cells too.
38253
4e8269da 38254 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
38255 IEEE1275_MAX_PATH_LEN): Define.
38256 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
38257 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
38258 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
38259 'devtype'. Explicitly NULL terminate devalias expansion.
38260
a1447506 38261 * util/sparc64/ieee1275/misc.c: New file.
38262 * util/sparc64/ieee1275/grub-setup.c: New file.
38263 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
38264 * util/sparc64/ieee1275/grub-mkimage.c: New file.
38265 * util/sparc64/ieee1275/grub-install.in: New file.
38266 * util/ieee1275/ofpath.c: New file.
38267 * util/ieee1275/devicemap.c: New file.
38268 * util/devicemap.c: New file.
38269 * util/deviceiter.c: New file.
38270 * kern/sparc64/ieee1275/init.c: New file.
38271 * include/grub/util/ofpath.h: New file.
38272 * include/grub/util/deviceiter.h: New file.
38273 * util/grub-mkdevicemap.c: Include deviceiter.h.
38274 Implement using grub_util_emit_devicemap_entry and
38275 grub_util_iterate_devices.
38276 * conf/i386-corebook.rmk: Build util/deviceiter.c and
38277 util/devicemap.c into grub-mkdevicemap
38278 * conf/i386-efi.rmk: Likewise.
38279 * conf/i386-ieee1275.rmk: Likewise.
38280 * conf/i386-pc.rmk: Likewise.
38281 * conf/powerpc-ieee1275.rmk: Likewise.
38282 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
38283 images and installation utilities. Build kernel as image
38284 instead of as elf binary. Use common rules as much as possible.
38285
7dd4a573 382862009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
0aefc632 38287
38288 Correct GPT definition
38289
7dd4a573 38290 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
0aefc632 38291 of "attrib" member
38292
c6c5219f 382932009-04-19 Felix Zielcke <fzielcke@z-51.de>
38294
38295 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
38296
0552ff9f 382972009-04-19 David S. Miller <davem@davemloft.net>
38298
38299 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
38300 (grub_rescue_cmd_linux): Rename to...
38301 (grub_cmd_linux): and fix prototype.
38302 (grub_rescue_cmd_initrd): Rename to...
38303 (grub_cmd_initrd): and fix prototype.
38304 (cmd_linux, cmd_initrd): New.
38305 (GRUB_MOD_INIT(linux)): Use grub_register_command().
38306 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
38307
d1a282fc 383082009-04-17 Pavel Roskin <proski@gnu.org>
38309
07c5039f 38310 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
38311 format.
38312 (grub_ohci_transfer): Likewise.
38313
b012002d 38314 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
38315
1bc09c35 38316 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
38317 return without a value. Fix inconsistent indentation.
38318
e0ff9126 38319 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
38320 match struct grub_fs.
38321
d1a282fc 38322 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
38323 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
38324 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
38325 * commands/lspci.c (grub_lspci_iter): Likewise.
38326
a96df3f2 383272009-04-16 Bean <bean123ch@gmail.com>
38328
38329 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
38330 value.
38331
41bb0fe9 383322009-04-15 Pavel Roskin <proski@gnu.org>
38333
38334 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
38335 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
38336 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
38337 definitions.
38338
596c6970 383392009-04-15 Felix Zielcke <fzielcke@z-51.de>
38340
38341 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
7dd4a573 38342 that no multiple data or metadata areas are supported and `Unknown
596c6970 38343 metadata header'.
38344
7dd4a573 383452009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
0d5d5653 38346
38347 Move loader out of the kernel
38348
38349 * kern/loader.c: moved to ...
38350 * commands/boot.c: ... moved here
38351 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
38352 * commands/boot.c (grub_cmd_boot): moved here. All users updated
38353 * include/grub/kernel.h (grub_machine_fini): export
38354 * include/grub/loader.h (grub_loader_is_loaded): update declaration
38355 (grub_loader_set): likewise
38356 (grub_loader_unset): likewise
38357 (grub_loader_boot): likewise
38358 * conf/common.rmk: new module boot.mod
38359 (pkglib_MODULES): add boot.mod
38360 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
38361 (grub_emu_SOURCES): likewise
38362 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
38363 (grub_emu_SOURCES): likewise
38364 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
38365 (grub_emu_SOURCES): likewise
38366 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
38367 (grub_emu_SOURCES): likewise
38368 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
38369 (grub_emu_SOURCES): likewise
7dd4a573 38370 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
38371 (grub_emu_SOURCES): likewise
0d5d5653 38372 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
7dd4a573 38373 (grub_emu_SOURCES): likewise
0d5d5653 38374
7dd4a573 383752009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5999d619 38376
38377 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
7dd4a573 38378
5999d619 38379 * kern/misc.c (grub_itoa): Removed function
38380 (grub_ltoa): likewise
38381 (grub_vsprintf): use grub_lltoa
38382
7dd4a573 383832009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
13c00781 38384
38385 Restore grub-emu
38386
38387 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
38388 * conf/i386-coreboot.rmk: likewise
38389 * conf/i386-ieee1275.rmk: likewise
38390 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 38391
20318222 383922009-04-15 Felix Zielcke <fzielcke@z-51.de>
38393
38394 * INSTALL: Add that `./autogen.sh' needs to be run before
38395 `./configure.'.
38396
d05f0df3 383972009-04-14 Bean <bean123ch@gmail.com>
38398
38399 * Makefile.in (pkglib_DATA): Add handler.lst.
38400 (handler.lst): New rule.
38401
38402 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
38403 * conf/i386-coreboot.rmk: Likewise.
38404 * conf/i386-ieee1275.rmk: Likewise.
38405 * conf/i386-efi.rmk: Likewise.
38406 * conf/x86_64-efi.rmk: Likewise.
38407 * conf/powerpc-ieee1275.rmk: Likewise.
38408 * conf/sparc64-ieee1275.rmk: Likewise.
38409
38410 * genhandlerlist.sh: New file.
38411
38412 * genmk.rb: Add rules to generate handler.lst.
38413
38414 * include/grub/normal.h (grub_file_getline): New function definition.
38415 (read_handler_list): Likewise.
38416 (free_handler_list): Likewise.
38417
38418 * include/grub/term.h (grub_term_register_input): Add name parameter
38419 for auto generation of handler.lst.
38420 (grub_term_register_output): Likewise.
38421
38422 * normal/handler.c: New file.
38423
38424 * normal/main.c (get_line): Renamed to grub_file_getline.
38425 (read_config_file): Use the newly renamed grub_file_getline.
38426 (read_command_list): Likewise.
38427 (read_fs_list): Likewise.
38428 (grub_normal_execute): Call read_handler_list to parse handler.lst.
38429 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
38430
38431 * term/efi/console.c (grub_console_init): Add name parameter for auto
38432 generation of handler.lst.
38433 * term/gfxterm.c: Likewise.
38434 * term/i386/pc/at_keyboard.c: Likewise.
38435 * term/i386/pc/console.c: Likewise.
38436 * term/i386/pc/serial.c: Likewise.
38437 * term/i386/pc/vesafb.c: Likewise.
38438 * term/i386/pc/vga.c: Likewise.
38439 * term/i386/pc/vga_text.c: Likewise.
38440 * term/ieee1275/ofconsole.c: Likewise.
38441 * term/usb_keyboard.c: Likewise.
38442
33c846be 384432009-04-14 Bean <bean123ch@gmail.com>
38444
38445 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
38446 properly with null character.
38447
4484e01e 384482009-04-14 Felix Zielcke <fzielcke@z-51.de>
38449
38450 * configure: Remove.
38451 * config.h.in: Likewise.
f93d668e 38452 * stamp-h.in: Likewise.
4484e01e 38453 * DISTLIST: Likewise.
38454 * conf/common.mk: Likewise.
38455 * conf/i386-coreboot.mk: Likewise.
38456 * conf/i386-efi.mk: Likewise.
38457 * conf/i386-ieee1275.mk: Likewise.
38458 * conf/i386.mk: Likewise.
38459 * conf/i386-pc.mk: Likewise.
38460 * conf/powerpc-ieee1275.mk: Likewise.
38461 * conf/sparc64-ieee1275.mk: Likewise.
38462 * conf/x86_64-efi.mk: Likewise.
38463
38464 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
38465 develop on GRUB.
38466
7dd4a573 384672009-04-14 John Stanley <jpsinthemix@verizon.net>
5c5bf96a 38468 David S. Miller <davem@davemloft.net>
38469
38470 * util/hostdisk.c (make_device_name): Fix buffer length
38471 calculations.
38472
e25b5a8c 384732009-04-14 Felix Zielcke <fzielcke@z-51.de>
38474
38475 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
38476 <sys/param.h> and <sys/sysctl.h>.
38477 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
38478 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
38479 opening the device and reset them afterwards.
38480
1f1f580c 384812009-04-13 Pavel Roskin <proski@gnu.org>
38482
38483 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
38484 Reported by John Stanley <jpsinthemix@verizon.net>
38485
7ebc2d6b 384862009-04-13 Robert Millan <rmh@aybabtu.com>
38487
38488 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
7dd4a573 38489 that name for menuentries when appropriate.
7ebc2d6b 38490
d8ba3667 384912009-04-13 Felix Zielcke <fzielcke@z-51.de>
38492
38493 * util/grub.d/10_freebsd.in: Add a missing `fi'.
38494
cba416eb 384952009-04-13 Robert Millan <rmh@aybabtu.com>
38496
38497 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
38498 to Linux, simply abort telling the user it's no longer supported.
38499
a547a745 385002009-04-13 Felix Zielcke <fzielcke@z-51.de>
38501
38502 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
7dd4a573 38503 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
a547a745 38504 `freebsd_loadenv' only when devices.hints exist.
38505
232a769c 385062009-04-13 Pavel Roskin <proski@gnu.org>
38507
38508 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
38509
c3012039 385102009-04-13 Felix Zielcke <fzielcke@z-51.de>
38511
38512 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
38513 partition number.
38514 (grub_drive): Likewise.
38515
234022fe 385162009-04-13 David S. Miller <davem@davemloft.net>
38517
38518 * kern/sparc64/ieee1275/ieee1275.c: New file.
38519 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
38520 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
38521 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
38522 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
38523 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
38524 grub_ieee1275_alloc_physmem): Declare new exported functions.
38525
d8e1836c 38526 * include/grub/sparc64/ieee1275/loader.h: New file.
38527 * include/grub/sparc64/ieee1275/memory.h: Likewise.
38528 * include/grub/sparc64/kernel.h: Likewise.
38529 * loader/sparc64/ieee1275/linux.c: Likewise.
38530
96bd81ec 38531 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
38532 (grub_fstest_SOURCES): Likewise.
38533
6a4737e5 38534 * util/hostdisk.c (make_device_name): Do not make any assumptions
38535 about the length of drive names.
38536
1d7a72fd 38537 * kern/dl.c (grub_dl_load_file): Close file immediately when
38538 we are done using it.
38539
56bc2471 385402009-04-12 David S. Miller <davem@davemloft.net>
38541
38542 * kern/misc.c (grub_ltoa): Fix cast when handling negative
38543 values. Noticed by Pavel Roskin.
38544
df38d0bb 38545 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
38546 target compiler.
7dd4a573 38547
e382e93a 38548 * genmk.rb: Add more flexible image type specification, also
38549 pass --strip-unneeded to objcopy.
38550 * conf/i386-pc.rmk: Use *_FORMAT.
38551 * conf/i386-pc.mk: Rebuilt.
38552
f5dbbca9 38553 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
38554 (OFDISK_HASH_SZ): Define.
38555 (ofdisk_hash): New hash table.
38556 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
38557 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
38558 instead of device phandle which is not unique.
38559
91c88b12 38560 * kern/sparc64/ieee1275/init.c: Delete, replace with...
38561 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
38562 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
38563 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
38564 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
38565 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
38566 GRUB_KERNEL_MACHINE_DATA_END): Define.
38567 (grub_kernel_image_size, grub_total_module_size): Declare.
38568
5b5d4aa5 385692009-04-12 Pavel Roskin <proski@gnu.org>
38570
7dd4a573 38571 * configure.ac: Change the logic when we check for target tools.
38572 Do it when the target is specified and it's different from the
38573 specified value of the host.
5b5d4aa5 38574
c91e1793 385752009-04-11 Felix Zielcke <fzielcke@z-51.de>
38576
38577 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
38578 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
38579 GNU/kFreeBSD. Check if a device is a character device. Use
38580 DIOCGMEDIASIZE to get the size.
38581 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
38582 support for GNU/kFreeBSD.
38583 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
38584 is a character device instead of a block device. Add support for
38585 FreeBSD device names.
38586
38587 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
38588 is a character device instead of a block device.
38589
38590 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
38591 is a character device instead of a block device.
38592
b1ac8644 385932009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
38594
38595 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
38596 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
38597 FreeBSD. Check if a device is a character device. Use
38598 DIOCGMEDIASIZE to get the size.
38599 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
38600 support for FreeBSD.
38601 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
38602 is a character device instead of a block device. Add support for
38603 FreeBSD device names.
38604
38605 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
38606 a character device instead of a block device.
38607 (grub_util_check_char_device): New function.
38608
38609 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
38610 a character device instead of a block device.
38611
38612 * include/grub/util/getroot.h (grub_util_check_char_device): New
38613 prototype.
38614
a3f7515a 386152009-04-11 David S. Miller <davem@davemloft.net>
38616
38617 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
38618 static libgcc.
38619 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
38620 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
38621 function, if present.
38622 (__bswapdi2): Likewise.
38623
0d44993d 38624 * include/grub/sparc64/ieee1275/boot.h: New file.
38625 * boot/sparc64/ieee1275/boot.S: Likewise.
38626 * boot/sparc64/ieee1275/diskboot.S: Likewise.
38627
ed3d2bc2 38628 * kern/misc.c (grub_ltoa): New function.
38629 (grub_vsprintf): Use it to format 'long' integers.
38630
d3bfb59c 386312009-04-10 David S. Miller <davem@davemloft.net>
38632
38633 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
38634 slots are of type grub_ieee1275_cell_t.
38635 (grub_nand_read): Likewise.
38636 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
38637 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
38638 macros are used to compare values in arg/ret block of the call.
38639 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
38640 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
38641 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
38642 grub_ieee1275_instance_to_path, grub_ieee1275_write,
38643 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
38644 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
38645 grub_ieee1275_close, grub_ieee1275_set_property,
38646 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
38647 grub_ieee1275_cell_t.
38648 * kern/ieee1275/openfw.c (grub_map): Likewise.
38649 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
38650 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
38651
450e2238 38652 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
38653 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
38654 (grub_devalias_iterate): Likewise.
38655
7dd4a573 386562009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6df8cc76 38657
38658 UFS improvements
38659
38660 * fs/ufs.c (INODE_NBLOCKS): new definition
38661 (struct grub_ufs_dirent): added fields for non-BSD dirents
38662 (grub_ufs_get_file_block): fixed double indirect handling
38663 (grub_ufs_lookup_symlink): use more robust way to determine whether
38664 symlink is inline
38665 (grub_ufs_find_file): support for non-BSD dirents
38666 (grub_ufs_dir): support for non-BSD dirents
38667
e7e6862a 386682009-04-10 Bean <bean123ch@gnail.com>
38669
38670 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
38671 attribute, otherwise the size would be wrong for i386 platform.
38672
38673 * include/grub/pci.h (grub_pci_read_word): New inline function.
38674 (grub_pci_read_byte): Likewise.
38675 (grub_pci_write): Likewise.
38676 (grub_pci_write_word): Likewise.
38677 (grub_pci_write_byte): Likewise.
38678
38679 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
38680
38681 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
38682 (find_framebuf): Scan pci to locate the frame buffer address.
38683
38684 * commands/efi/fixvideo.c: New file.
38685
38686 * commands/efi/loadbios.c: Likewise.
38687
38688 * commands/memrw.c: Likewise.
38689
38690 * util/grub-dumpbios.in: Likewise.
38691
38692 * conf/common.rmk (grub-dumpbios): New utility.
38693 (pkglib_MODULES): New module memrw.mod.
38694 (memrw_mod_SOURCE): New macro.
38695 (memrw_mod_CFLAGS): Likewise.
38696 (memrw_mod_LDFLAGS): Likewise.
38697
7dd4a573 38698 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 38699 fixvideo.mod.
38700 (loadbios_mod_SOURCE): New macro.
38701 (loadbios_mod_CFLAGS): Likewise.
38702 (loadbios_mod_LDFLAGS): Likewise.
38703 (fixvideo_mod_SOURCE): Likewise.
38704 (fixvideo_mod_CFLAGS): Likewise.
38705 (fixvideo_mod_LDFLAGS): Likewise.
38706
7dd4a573 38707 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 38708 fixvideo.mod.
38709 (loadbios_mod_SOURCE): New macro.
38710 (loadbios_mod_CFLAGS): Likewise.
38711 (loadbios_mod_LDFLAGS): Likewise.
38712 (fixvideo_mod_SOURCE): Likewise.
38713 (fixvideo_mod_CFLAGS): Likewise.
38714 (fixvideo_mod_LDFLAGS): Likewise.
38715
af63ada2 387162009-04-08 Felix Zielcke <fzielcke@z-51.de>
38717
38718 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
38719
c2cdde70 387202009-04-07 David S. Miller <davem@davemloft.net>
38721
38722 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
38723 support for R_SPARC_OLO10 relocations. Fix compile warning for
38724 R_SPARC_WDISP30 case.
ea3f72cf 38725 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
c2cdde70 38726
761319cf 387272009-04-06 Pavel Roskin <proski@gnu.org>
38728
1007d1f5 38729 * include/grub/misc.h (ARRAY_SIZE): New macro.
38730 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
38731 New macro.
38732 * loader/i386/linux.c (allocate_pages): Use free_pages().
38733 (grub_linux_unload): Don't use free_pages().
38734 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
38735 wrong index. Treat all other modes as text modes.
38736 (grub_cmd_linux): Initialize vid_mode unconditionally to
38737 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
38738
761319cf 38739 * commands/help.c (print_command_help): Use cmd->prio, not
38740 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
38741
ea761d40 387422009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7dd4a573 38743
ea761d40 38744 Parttool
38745
38746 * parttool/pcpart.c: new file
38747 * commands/parttool.c: likewise
38748 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
38749 (parttool_mod_SOURCES): new variable
38750 (parttool_mod_CFLAGS): likewise
38751 (parttool_mod_LDFLAGS): likewise
38752 (pcpart_mod_SOURCES): likewise
38753 (pcpart_mod_CFLAGS): likewise
38754 (pcpart_mod_LDFLAGS): likewise
7dd4a573 38755 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
ea761d40 38756 and parttool/pcpart.c
38757 * conf/i386-efi.rmk: likewise
38758 * conf/i386-ieee1275.rmk: likewise
38759 * conf/i386-pc.rmk: likewise
38760 * conf/powerpc-ieee1275.rmk: likewise
38761 * conf/sparc64-ieee1275.rmk: likewise
38762 * conf/x86_64-ieee1275.rmk: likewise
38763
05aaebfb 387642009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
38765
38766 Support for mtime and further expandability of dir command
38767
38768 * include/grub/lib/datetime.h: moved to ...
7dd4a573 38769 * include/grub/datetime.h: ... moved here and added
05aaebfb 38770 declaration of grub_unixtime2datetime. All users updated
7dd4a573 38771 * include/grub/fs.h: new syntax for dir and mtime functions in
38772 struct grub_fs
05aaebfb 38773 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
38774 and GRUB_FSHELP_FLAGS_MASK
38775 * commands/ls.c (grub_ls_list_files): Write mtime in long format
38776 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
38777 (grub_ext2_mtime): new function
38778 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
38779 (grub_hfsplus_mtime): new function
38780 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
38781 (GRUB_UFS_ATTR_FILE): likewise
38782 (GRUB_UFS_ATTR_LNK): likewise
38783 (struct grub_ufs_sblock): new fields mtime
38784 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
38785 all users updated
38786 (grub_ufs_dir): mtime support
38787 (grub_ufs_mtime): new function
38788 * fs/affs.c (grub_affs_dir): use new dir syntax
38789 * fs/afs.c (grub_afs_dir): likewise
38790 * fs/cpio.c (grub_cpio_dir): likewise
38791 * fs/fat.c (grub_fat_find_dir): likewise
38792 * fs/hfs.c (grub_hfs_dir): likewise
38793 * fs/iso9660.c (grub_iso9660_dir): likewise
38794 * fs/jfs.c (grub_jfs_dir): likewise
38795 * fs/minix.c (grub_minix_dir): likewise
38796 * fs/ntfs.c (grub_ntfs_dir): likewise
38797 * fs/reiserfs.c (grub_reiserfs_dir): likewise
38798 * fs/sfs.c (grub_sfs_dir): likewise
38799 * fs/xfs.c (grub_xfs_dir): likewise
38800 * util/hostfs.c (grub_hostfs_dir): likewise
38801 * lib/datetime.c: moved to ...
38802 * normal/datetime.c: ... moved here
38803 (grub_unixtime2datetime): new function
38804 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
7dd4a573 38805 * normal/completion.c (iterate_dir): use new dir syntax
38806 * normal/misc.c (grub_normal_print_device_info): tell the
05aaebfb 38807 last modification time of a volume
7dd4a573 38808 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
05aaebfb 38809 * conf/common.rmk: added lib/datetime.c to ls.mod
7dd4a573 38810 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
05aaebfb 38811 (normal_mod_SOURCES): likewise
38812 (datetime_mod_SOURCES): Removed lib/datetime.c
38813 * conf/i386-efi.rmk: likewise
7dd4a573 38814 * conf/i386-ieee1275.rmk: likewise
05aaebfb 38815 * conf/i386-pc.rmk: likewise
38816 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 38817 * conf/sparc64-ieee1275.rmk: likewise
38818 * conf/x86_64-efi.rmk: likewise
05aaebfb 38819
8a7e1a14 388202009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
38821
38822 Trim trailing spaces in FAT label and support mtools-like labels
7dd4a573 38823
38824 * fs/fat.c (grub_fat_iterate_dir): New function based
8a7e1a14 38825 on grub_fat_find_dir
38826 (grub_fat_find_dir): use grub_fat_iterate_dir
38827 (grub_fat_label): likewise
38828
04186a9c 388292009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
38830
7dd4a573 38831 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
04186a9c 38832 and command.h
38833 remove extraneous kernel_elf_HEADERS
38834
da4c0bb6 388352009-04-04 Bean <bean123ch@gnail.com>
38836
38837 * include/grub/util/misc.h: Add dummy function fsync for mingw.
38838
38839 * util/misc.c: Likewise.
38840
54ad9555 388412009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
38842
38843 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
38844 instead of grub_printf.
38845
7a6bf9f2 388462009-04-03 Robert Millan <rmh@aybabtu.com>
38847
38848 * loader/i386/linux.c (grub_linux_setup_video): Fill
38849 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
38850 values from `mode info' structure instead of hardcoded
38851 values.
38852
3fcc2083 388532009-04-01 Pavel Roskin <proski@gnu.org>
38854
38855 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
38856 unused now.
38857 * genmk.rb: Likewise.
38858 * configure.ac: Likewise.
38859
5ec9740b 388602009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
38861
38862 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
38863 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
38864
5270cec8 388652009-04-01 David S. Miller <davem@davemloft.net>
38866
38867 * normal/sparc64/setjmp.S: Fix setjmp implementation.
7dd4a573 38868 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5270cec8 38869 (grub_setjmp): Mark with 'returns_twice' attribute.
38870 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
38871 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
38872 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
38873
9c3dd854 388742009-04-01 Robert Millan <rmh@aybabtu.com>
38875
38876 Reapply fix from 2008-07-28 which was accidentally reverted; also
38877 perform the same fix to a similar check in same function.
38878
38879 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
38880 with the same number are found, just use issue a warning with
38881 grub_dprintf(), as this error has been reported to be non-fatal.
38882
0d818b7e 388832009-03-31 Pavel Roskin <proski@gnu.org>
38884
38885 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
38886 for cross-compilation.
38887
95646d92 388882009-03-30 Robert Millan <rmh@aybabtu.com>
38889
38890 Fix i386-ieee1275 build.
38891
38892 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
38893 Remove declaration.
38894
6a003ed1 388952009-03-30 Pavel Roskin <proski@gnu.org>
38896
38897 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
38898 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
38899 zero-terminated, rely only on the strlen value. Fix comparison
38900 of strings differing in length.
38901
92f33540 389022009-03-30 Robert Millan <rmh@aybabtu.com>
38903
38904 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
38905 checking for abi version. Improve error messages on BIOS to notify
38906 user about `linux16' command.
38907
a8c48fd5 389082009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
38909
f968172e 38910 Leak fixes
a8c48fd5 38911
f968172e 38912 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
38913 in case of collision
38914 * disk/scsi.c (grub_scsi_open): free scsi in case of error
a8c48fd5 38915
9c323f09 389162009-03-29 Robert Millan <rmh@aybabtu.com>
38917
38918 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
38919 set `vid_mode' accordingly.
38920 (grub_linux_boot): Process `vid_mode' and set video mode.
38921
ae68f423 389222009-03-29 Robert Millan <rmh@aybabtu.com>
38923
38924 * util/grub.d/10_linux.in (linux_entry): New function.
38925 Factorize generation of Linux boot entries.
38926
5709cfc4 389272009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
38928
38929 Make the format of Environment Block plain text. The boot loader
38930 part is not tested well yet.
7dd4a573 38931
5709cfc4 38932 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
38933 (buffer): Removed.
38934 (envblk): Likewise.
38935 (usage): Remove "info" and "clear". Add "unset". Update the
38936 description of "set", as this does not delete variables any
38937 longer.
38938 (create_envblk_file): Complete rewrite.
38939 (open_envblk_file): Likewise.
38940 (cmd_info): Removed.
38941 (cmd_list): Likewise.
38942 (cmd_set): Likewise.
38943 (cmd_clear): Likewise.
38944 (list_variables): New function.
38945 (write_envblk): Likewise.
38946 (set_variables): Likewise.
38947 (unset_variables): Likewise.
38948 (main): Complete rewrite.
38949
38950 * commands/loadenv.c (buffer): Removed.
38951 (envblk): Likewise.
38952 (open_envblk_file): New function.
38953 (read_envblk_file): Complete rewrite.
38954 (grub_cmd_load_env): Likewise.
38955 (grub_cmd_list_env): Likewise.
38956 (struct blocklist): New struct.
38957 (free_blocklists): New function.
38958 (check_blocklists): Likewise.
38959 (write_blocklists): Likewise.
38960 (grub_cmd_save_env): Complete rewrite.
38961
38962 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
38963 a plain text signature.
38964 (GRUB_ENVBLK_MAXLEN): Removed.
38965 (struct grub_envblk): Complete rewrite.
38966 (grub_envblk_find): Removed.
38967 (grub_envblk_insert): Likewise.
38968 (grub_envblk_open): New prototype.
38969 (grub_envblk_set): Likewise.
38970 (grub_envblk_delete): Put const to VALUE.
38971 (grub_envblk_iterate): Put const to NAME and VALUE.
38972 (grub_envblk_close): New prototype.
38973 (grub_envblk_buffer): New inline function.
38974 (grub_envblk_size): Likewise.
38975
38976 * lib/envblk.c: Include grub/mm.h.
38977 (grub_env_find): Removed.
38978 (grub_envblk_open): New function.
38979 (grub_envblk_close): Likewise.
38980 (escaped_value_len): Likewise.
38981 (find_next_line): Likewise.
38982 (grub_envblk_insert): Removed.
38983 (grub_envblk_set): New function.
38984 (grub_envblk_delete): Complete rewrite.
38985 (grub_envblk_iterate): Likewise.
38986
a9368fd3 389872009-03-28 Robert Millan <rmh@aybabtu.com>
38988
38989 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
38990 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
38991 variables. Use 16-bit loader.
38992 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
38993 loader.
38994 * kern/i386/loader.S (grub_linux_boot): Rename to ...
38995 (grub_linux16_boot): ... this. Update all users.
38996 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
38997 (grub_linux_boot): ... this. Update all users.
38998
38999 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
39000 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
39001 commands to `linux16' and `initrd16'.
39002 (GRUB_MOD_FINI(linux)): Rename to ...
39003 (GRUB_MOD_FINI(linux16)): ... this.
39004
e4dd5a7e 390052009-03-24 Pavel Roskin <proski@gnu.org>
39006
39007 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
39008 not just for compilation.
39009
c04d6e05 390102009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
39011
39012 Move multiboot helper out of kernel
39013
39014 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
39015 `loader/i386/multiboot_helper.S'.
39016 * conf/i386-coreboot.rmk: Likewise
39017 * conf/i386-ieee1275.rmk: Likewise
39018
39019 * kern/i386/loader.S: Move multiboot helpers from here...
39020 * loader/i386/multiboot_helper.S: ...moved here
39021 * include/grub/i386/loader.h: Move declarations of multiboot
39022 helpers from here...
39023 * include/grub/i386/multiboot.h: ...moved here
39024 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
39025
42a5b3fc 390262009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
39027
39028 * kern/env.c (grub_env_context_open): Added an argument to specify
39029 whether a new context inherits exported variables from current
39030 one. This is useful when making a sandbox to interpret a config
39031 file.
39032 All callers updated.
39033
39034 * include/grub/env.h (grub_env_context_open): Updated the prototype.
39035
b28bbc4e 390362009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
39037
39038 * kern/env.c (grub_env_context_close): Fix memory leaks.
39039
f04f02e4 390402009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
39041
39042 * normal/main.c (grub_normal_execute): Added an argument
39043 BATCH to specify if an interactive interface should be provided
39044 after reading a config file.
39045 All callers updated.
39046 (read_command_list): Prevent being executed twice.
39047 (read_fs_list): Likewise.
39048
42a5b3fc 39049 * include/grub/normal.h (grub_normal_execute): Updated the
39050 prototype.
f04f02e4 39051
41473ac2 390522009-03-22 Pavel Roskin <proski@gno.org>
39053
fbc00b0c 39054 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
39055 _start.
39056 * kern/i386/pc/startup.S: Likewise.
39057 * kern/i386/efi/startup.S: Likewise.
39058 * kern/i386/ieee1275/startup.S: Likewise.
39059 * kern/i386/coreboot/startup.S: Likewise.
39060 * kern/x86_64/efi/startup.S: Likewise.
39061
41473ac2 39062 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
39063 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
39064 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
39065
2274cc8f 390662009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
39067
39068 Bugfixes in multiboot for bugs uncovered by solaris kernel.
39069
39070 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
39071 limit detection.
39072 Use vaddr of correct segment for entry_point.
39073
b1b797cb 390742009-03-21 Bean <bean123ch@gmail.com>
39075
39076 * commands/blocklist.c: Add include file <grub/command.h>, remove
39077 <grub/normal.h> and <grub/arg.h>.
39078 (grub_cmd_blocklist): Use the new command interface.
39079 (GRUB_MOD_INIT): Likewise.
39080 (GRUB_MOD_FINI): Likewise.
39081 * commands/boot.c: Likewise.
39082 * commands/cat.c: Likewise.
39083 * commands/cmp.c: Likewise.
39084 * commands/configfile.c: Likewise.
39085 * commands/crc.c: Likewise.
39086 * commands/echo.c: Likewise.
39087 * commands/halt.c: Likewise.
39088 * commands/handler.c: Likewise.
39089 * commands/hdparm.c: Likewise.
39090 * commands/help.c: Likewise.
39091 * commands/hexdump.c: Likewise.
39092 * commands/loadenv.c: Likewise.
39093 * commands/ls.c: Likewise.
39094 * commands/lsmmap.c: Likewise.
39095 * commands/lspci.c: Likewise.
39096 * commands/loadenv.c: Likewise.
39097 * commands/read.c: Likewise.
39098 * commands/reboot.c: Likewise.
39099 * commands/search.c: Likewise.
39100 * commands/sleep.c: Likewise.
39101 * commands/test.c: Likewise.
39102 * commands/usbtest.c: Likewise.
39103 * commands/videotest.c: Likewise.
39104 * commands/i386/cpuid.c: Likewise.
39105 * commands/i386/pc/halt.c: Likewise.
39106 * commands/i386/pc/play.c: Likewise.
39107 * commands/i386/pc/pxecmd.c: Likewise.
39108 * commands/i386/pc/vbeinfo.c: Likewise.
39109 * commands/i386/pc/vbetest.c: Likewise.
39110 * commands/ieee1275/suspend.c: Likewise.
39111 * disk/loopback.c: Likewise.
39112 * font/font_cmd.c: Likewise.
39113 * hello/hello.c: Likewise.
39114 * loader/efi/appleloader.c: Likewise.
39115 * loader/efi/chainloader.c: Likewise.
39116 * loader/i386/bsd.c: Likewise.
39117 * loader/i386/efi/linux.c: Likewise.
39118 * loader/i386/ieee1275/linux.c: Likewise.
39119 * loader/i386/linux.c: Likewise.
39120 * loader/i386/pc/chainloader.c: Likewise.
39121 * loader/i386/pc/linux.c: Likewise.
39122 * loader/powerpc/ieee1275/linux.c: Likewise.
39123 * loader/multiboot_loader.c: Likewise.
39124 * term/gfxterm.c: Likewise.
39125 * term/i386/pc/serial.c: Likewise.
39126 * term/terminfo.c: Likewise.
39127
39128 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
39129 * term/i386/pc/vga.c: Likewise.
39130 * video/readers/jpeg.c: Likewise.
39131 * video/readers/png.c: Likewise.
39132 * video/readers/tga.c: Likewise.
39133
39134 * util/grub-fstest (cmd_loopback): Removed.
39135 (cmd_blocklist): Likewise.
39136 (cmd_ls): Likewise.
39137 (grub_register_command): Likewise.
39138 (grub_unregister_command): Likewise.
39139 (execute_command): Use grub_command_find to locate command and execute
39140 it.
39141
39142 * include/grub/efi/chainloader.h: Removed.
39143 * loader/efi/chainloader_normal.c: Likewise.
39144 * loader/i386/bsd_normal.c: Likewise.
39145 * loader/i386/pc/chainloader_normal.c: Likewise.
39146 * loader/i386/pc/multiboot_normal.c: Likewise.
39147 * loader/linux_normal.c: Likewise.
39148 * loader/multiboot_loader_normal.c: Likewise.
39149 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
39150
39151 * gencmdlist.sh: Scan new registration command grub_register_extcmd
39152 and grub_register_command_p1.
39153
39154 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
39155 kern/command.c, lib/arg.c and commands/extcmd.c.
39156 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
39157 (minicmd_mod_SOURCES): New variable.
39158 (minicmd_mod_CFLAGS): Likewise.
39159 (minicmd_mod_LDFLAGS): Likewise.
39160 (extcmd_mod_SOURCES): Likewise.
39161 (extcmd_mod_CFLAGS): Likewise.
39162 (extcmd_mod_LDFLAGS): Likewise.
39163 (boot_mod_SOURCES): Removed.
39164 (boot_mod_CFLAGS): Likewise.
39165 (boot_mod_LDFLAGS): Likewise.
39166
39167 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
39168 kern/corecmd.c.
39169 (kernel_img_HEADERS): Add command.h.
39170 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
39171 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
39172 and lib/arg.c.
39173 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
39174 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
39175 remove the corresponding normal mode command.
39176 (normal_mod_SOURCES): Remove normal/arg.c.
39177 * conf/i386-coreboot.rmk: Likewise.
39178 * conf/i386-efi.rmk: Likewise.
39179 * conf/i386-ieee1275.rmk: Likewise.
39180 * conf/powerpc-ieee1275.rmk: Likewise.
39181 * conf/x86_64-efi.rmk: Likewise.
39182
39183 * include/grub/arg.h: Move from here ...
39184 * include/grub/lib/arg.h: ... to here.
39185
39186 * normal/arg.c: Move from here ...
39187 * lib/arg.c: ... to here.
39188
39189 * commands/extcmd.c: New file.
39190 * commands/minicmd.c: Likewise.
39191 * include/grub/command.h: Likewise.
39192 * include/grub/extcmd.h: Likewise.
39193 * kern/command.c: Likewise.
39194 * kern/corecmd.c: Likewise.
39195
39196 * kern/list.c (grub_list_iterate): Return int instead of void.
39197 (grub_list_insert): New function.
39198 (grub_prio_list_insert): Likewise.
39199
39200 * kern/rescue.c (grub_rescue_command): Removed.
39201 (grub_rescue_command_list): Likewise.
39202 (grub_rescue_register_command): Likewise.
39203 (grub_rescue_unregister_command): Likewise.
39204 (grub_rescue_cmd_boot): Move to minicmd.c
39205 (grub_rescue_cmd_help): Likewise.
39206 (grub_rescue_cmd_info): Likewise.
39207 (grub_rescue_cmd_boot): Likewise.
39208 (grub_rescue_cmd_testload): Likewise.
39209 (grub_rescue_cmd_dump): Likewise.
39210 (grub_rescue_cmd_rmmod): Likewise.
39211 (grub_rescue_cmd_lsmod): Likewise.
39212 (grub_rescue_cmd_exit): Likewise.
39213 (grub_rescue_print_devices): Moved to corecmd.c.
39214 (grub_rescue_print_files): Likewise.
39215 (grub_rescue_cmd_ls): Likewise.
39216 (grub_rescue_cmd_insmod): Likewise.
39217 (grub_rescue_cmd_set): Likewise.
39218 (grub_rescue_cmd_unset): Likewise.
7d074e3c 39219 (attempt_normal_mode): Use grub_command_find to get normal module.
b1b797cb 39220 (grub_enter_rescue_mode): Use grub_register_core_commands to register
7d074e3c 39221 commands, remove grub_rescue_register_command calls.
b1b797cb 39222
7d074e3c 39223 * normal/command.c (grub_register_command): Removed.
b1b797cb 39224 (grub_unregister_command): Likewise.
39225 (grub_command_find): Likewise.
39226 (grub_iterate_commands): Likewise.
39227 (rescue_command): Likewise.
39228 (export_command): Moved to corecmd.c.
39229 (set_command): Removed.
39230 (unset_command): Likewise.
39231 (insmod_command): Likewise.
39232 (rmmod_command): Likewise.
39233 (lsmod_command): Likewise.
39234 (grub_command_init): Likewise.
39235
39236 * normal/completion.c (iterate_command): Use cmd->prio to check for
39237 active command.
39238 (complete_arguments): Use grub_extcmd_t structure to find options.
39239 (grub_normal_do_completion): Change function grub_iterate_commands to
39240 grub_command_iterate.
39241
39242 * normal/execute.c (grub_script_execute_cmd): No need to parse
39243 argument here.
39244
39245 * normal/main.c (grub_dyncmd_dispatcher): New function.
39246 (read_command_list): Register unload commands as dyncmd.
39247 (grub_cmd_normal): Use new command interface, register rescue,
39248 unregister normal at entry, register normal, unregister rescue at exit.
39249
39250 * include/grub/list.h (grub_list_test_t): New type.
39251 (grub_list_iterate): Return int instead of void.
39252 (grub_list_insert): New function.
39253 (GRUB_AS_NAMED_LIST_P): New macro.
39254 (GRUB_AS_PRIO_LIST): Likewise.
39255 (GRUB_AS_PRIO_LIST_P): Likewise.
39256 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
39257 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
39258 (grub_prio_list): New structure.
39259 (grub_prio_list_insert): New function.
39260 (grub_prio_list_remove): New inline function.
39261
39262 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
39263 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
39264 (GRUB_COMMAND_FLAG_MENU): Likewise.
39265 (GRUB_COMMAND_FLAG_BOTH): Likewise.
39266 (GRUB_COMMAND_FLAG_TITLE): Likewise.
39267 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
39268 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
39269 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
39270 (grub_command): Likewise.
39271 (grub_register_command): Likewise.
39272 (grub_command_find): Likewise.
39273 (grub_iterate_commands): Likewise.
39274 (grub_command_init): Likewise.
39275 (grub_arg_parse): Likewise.
39276 (grub_arg_show_help): Likewise.
39277
39278 * include/grub/rescue.h (grub_rescue_register_command): Removed.
39279 (grub_rescue_unregister_command): Likewise.
39280
39281 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
39282 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
39283 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
39284
39285 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
39286 grub_rescue_cmd_initrd.
39287 * include/grub/i386/loader.h: Likewise.
39288 * include/grub/x86_64/loader.h: Likewise.
39289
39290 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
39291
1f4147aa 392922009-03-21 Bean <bean123ch@gmail.com>
39293
39294 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
39295 instead of stat in mingw environment.
39296
39297 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
39298
39299 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
39300
39301 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
39302 AC_CONFIG_LINKS.
39303
2156d5ba 393042009-03-21 Bean <bean123ch@gmail.com>
39305
39306 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
39307 out of range error.
39308
177b82ca 393092009-03-18 Michel Dänzer <michel@daenzer.net>
39310
39311 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
39312 checking inode flags for EXT4_EXTENTS_FLAG.
39313
14aad807 393142009-03-18 Robert Millan <rmh@aybabtu.com>
39315
39316 * loader/i386/linux.c: Include `<grub/video.h>' and
39317 `<grub/i386/pc/vbe.h>'..
39318 (grub_linux_setup_video): New function. Loosely based on the EFI one.
39319 (grub_linux32_boot): Attempt to configure video settings with
39320 grub_linux_setup_video().
39321 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
39322 to avoid grub_console_fini() which would step out of graphical mode
39323 unconditionally.
39324
8cf83a27 393252009-03-14 Robert Millan <rmh@aybabtu.com>
39326
39327 Fix build on powerpc.
39328 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
39329
40164e75 393302009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
39331
39332 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
39333 background image command.
39334
c58bc32a 393352009-03-12 Colin D Bennett <colin@gibibit.com>
39336
39337 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
39338 (grub_gfxterm_putchar): Extract pairs of identical calls to
39339 draw_cursor out of conditional blocks.
39340
5415144a 393412009-03-11 Pavel Roskin <proski@gnu.org>
39342
39343 * fs/hfs.c (grub_hfs_strncasecmp): New function.
39344 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
39345
6394042e 393462009-03-11 Robert Millan <rmh@aybabtu.com>
39347
39348 * loader/i386/multiboot_elfxx.c
39349 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
39350
b7b50e5f 393512009-03-11 Felix Zielcke <fzielcke@z-51.de>
39352
39353 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
39354 `kern/handler.c'.
39355
1ca7fc96 393562009-03-11 Robert Millan <rmh@aybabtu.com>
39357
39358 * loader/i386/multiboot.c (code_size): New variable.
39359 (grub_multiboot): Define offsets by adding to `code_size' rather
7d074e3c 39360 than subtracting from `grub_multiboot_payload_size'. Provide
1ca7fc96 39361 4-byte alignment to MBI and others by increasing
7d074e3c 39362 `boot_loader_name_length' appropriately.
1ca7fc96 39363
39364 * loader/i386/multiboot_elfxx.c
39365 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
39366
a83ea1d2 393672009-03-09 Felix Zielcke <fzielcke@z-51.de>
39368
39369 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
39370 `fs/ext2.c'.
39371
aa9f3bff 393722009-03-08 Robert Millan <rmh@aybabtu.com>
39373
39374 Make loader/i386/linux.c usable on i386-pc again.
39375
39376 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
39377 memory to heap.
39378 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
39379 `#error' stanza.
39380
d8b3b60e 393812009-03-07 Bean <bean123ch@gmail.com>
39382
39383 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
39384 allocation.
39385
b362c9e9 393862009-03-06 Robert Millan <rmh@aybabtu.com>
39387
39388 Fix display issue on terminals with screen size other than 80x25
39389 (e.g. gfxterm with resolution higher than 640x480).
39390
39391 * normal/main.c (grub_normal_init_page): Display title text in a
7d074e3c 39392 position relative to the center of the terminal instead of relying
b362c9e9 39393 on a hardcoded offset.
39394
9304eef1 393952009-03-04 Robert Millan <rmh@aybabtu.com>
39396
39397 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
39398 installed.
39399
39400 * Makefile.in (host_kernel): New variable.
39401 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
39402 scripts instead of just the windows one.
39403 * configure.ac: Initialize and AC_SUBST `host_kernel'.
39404
eabc95fb 394052009-03-04 Felix Zielcke <fzielcke@z-51.de>
2ba60b62 39406
39407 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
39408 `kern/handler.c'.
39409 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39410 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
39411 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
39412 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39413 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39414 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39415
ceb1223c 394162009-03-04 Felix Zielcke <fzielcke@z-51.de>
39417
39418 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
39419 or if there's no space for the disk label and print the partition number on a
39420 invalid magic.
39421
4910684a 394222009-03-04 Felix Zielcke <fzielcke@z-51.de>
39423
39424 * util/misc.c: Include <time.h>.
39425 (grub_millisleep): New function.
39426
7e9ca17a 394272009-03-04 Bean <bean123ch@gmail.com>
39428
39429 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
39430 another option -mno-red-zone.
39431
39432 * commands/handler.c: Change module description.
39433
39434 * kern/handler.c: Add missing space at the end of description line.
39435
39436 * kern/list.c: Likewise.
39437
f501677c 394382009-03-03 Robert Millan <rmh@aybabtu.com>
39439
39440 Move more components to the relocation area, and fix mbi pointer
39441 handling to use the destination rather than the origin (thanks to
39442 Vladimir Serbinenko for spotting).
39443
39444 * loader/i386/multiboot.c (mbi_dest): New variable.
39445 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
39446 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
39447 relocation area.
39448
9902d047 394492009-03-01 Bean <bean123ch@gmail.com>
39450
50fb7002 39451 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
9902d047 39452 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
39453 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
39454 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
39455
39456 * loader/i386/efi/linux.c (acpi_guid): New variable.
39457 (acpi_guid): Likewise.
39458 (EBDA_SEG_ADDR): New constant.
39459 (LOW_MEM_ADDR): Likewise.
39460 (FAKE_EBDA_SEG): Likewise.
39461 (fake_bios_data): New function.
39462 (grub_linux_boot): Call fake_bios_data.
39463
71b9f361 394642009-03-01 Bean <bean123ch@gmail.com>
39465
39466 * commands/terminal.c: Removed.
39467
39468 * commands/handler.c: New file.
39469
39470 * include/grub/list.h: Likewise.
39471
39472 * include/grub/handler.h: Likewise.
39473
39474 * kern/list.c: Likewise.
39475
39476 * kern/handler.c: Likewise.
39477
39478 * kern/term.h: Include header file <grub/handler.h>.
39479 (grub_term_input): Move next field to the beginning.
39480 (grub_term_output): Likewise.
39481 (grub_term_input_class): New variable.
39482 (grub_term_output_class): Likewise.
39483 (grub_term_register_input): Changed to inline function.
39484 (grub_term_register_output): Likewise.
39485 (grub_term_unregister_input): Likewise.
39486 (grub_term_unregister_output): Likewise.
39487 (grub_term_set_current_input): Likewise.
39488 (grub_term_set_current_output): Likewise.
39489 (grub_term_get_current_input): Likewise.
39490 (grub_term_get_current_output): Likewise.
39491 (grub_term_iterate_input): Removed.
39492 (grub_term_iterate_output): Likewise.
39493
39494 * kern/term.c (grub_term_list_input): Removed.
39495 (grub_term_list_output): Likewise.
39496 (grub_term_input_class): New variable.
39497 (grub_term_output_class): Likewise.
50fb7002 39498 (grub_cur_term_input): Change variable as macro.
71b9f361 39499 (grub_cur_term_output): Likewise.
39500 (grub_term_register_input): Removed.
39501 (grub_term_register_output): Likewise.
39502 (grub_term_unregister_input): Likewise.
39503 (grub_term_unregister_output): Likewise.
39504 (grub_term_set_current_input): Likewise.
39505 (grub_term_set_current_output): Likewise.
39506 (grub_term_iterate_input): Likewise.
39507 (grub_term_iterate_output): Likewise.
39508 (grub_term_get_current_input): Likewise.
39509 (grub_term_get_current_output): Likewise.
39510
39511 * util/grub-editenv.c: Include header file <grub/handler.h>.
39512 (grub_term_get_current_input): Removed.
39513 (grub_term_get_current_output): Likewise.
39514 (grub_term_input_class): New variable.
50fb7002 39515 (grub_term_output_class): Likewise.
71b9f361 39516
39517 * util/grub-fstest.c (grub_term_get_current_input): Removed.
39518 (grub_term_get_current_output): Likewise.
39519 (grub_term_input_class): New variable.
50fb7002 39520 (grub_term_output_class): Likewise.
71b9f361 39521
39522 * util/grub-probe.c (grub_term_get_current_input): Removed.
39523 (grub_term_get_current_output): Likewise.
39524 (grub_term_input_class): New variable.
50fb7002 39525 (grub_term_output_class): Likewise.
71b9f361 39526
39527 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
39528 (grub_term_get_current_output): Likewise.
39529 (grub_term_input_class): New variable.
50fb7002 39530 (grub_term_output_class): Likewise.
71b9f361 39531
39532 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
39533 (terminal_mod_SOURCES): Likewise.
39534 (terminal_mod_CFLAGS): Likewise.
39535 (terminal_mod_LDFLAGS): Likewise.
39536
39537 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
39538 handler.c.
39539 (kernel_img_SOURCES): Add list.c and handler.c.
39540 (kernel_img_HEADERS): Add list.h and handler.h.
39541
39542 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
39543 handler.c.
39544 (kernel_mod_SOURCES): Add list.c and handler.c.
39545 (kernel_mod_HEADERS): Add list.h and handler.h.
39546
39547 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
39548 handler.c.
39549 (kernel_elf_SOURCES): Add list.c and handler.c.
39550 (kernel_elf_HEADERS): Add list.h and handler.h.
39551
39552 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
39553 handler.c.
39554 (kernel_elf_SOURCES): Add list.c and handler.c.
39555 (kernel_elf_HEADERS): Add list.h and handler.h.
39556
39557 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
39558 handler.c.
39559 (kernel_mod_SOURCES): Add list.c and handler.c.
39560 (kernel_mod_HEADERS): Add list.h and handler.h.
39561
39562 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
39563 handler.c.
39564 (kernel_elf_SOURCES): Add list.c and handler.c.
39565 (kernel_elf_HEADERS): Add list.h and handler.h.
39566
8a31787f 395672009-02-27 Robert Millan <rmh@aybabtu.com>
39568
39569 Factorize elf32 / elf64 code in Multiboot loader. This will
39570 prevent it from getting out of sync again.
39571
39572 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
39573 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
39574 grub_multiboot_load_elf64): Move from here ...
39575 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
39576 grub_multiboot_load_elf): ... to here (new file).
39577
51cd3dfc 395782009-02-27 Robert Millan <rmh@aybabtu.com>
39579
39580 * util/grub.d/10_linux.in: Rename "single-user mode" to
39581 "recovery mode".
39582
6e8c9c3a 395832009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
39584
39585 Don't leak in SCSI code.
39586 * disk/scsi.c (grub_scsi_close): free `scsi'.
39587
4b6bf4f9 395882009-02-27 Robert Millan <rmh@aybabtu.com>
39589
39590 * loader/i386/pc/multiboot.c: Move from here ...
39591 * loader/i386/multiboot.c: ... to here. Update all users.
39592
b9413424 395932009-02-27 Robert Millan <rmh@aybabtu.com>
39594
39595 Patch from Alexandre Bique <bique.alexandre@gmail.com>
39596 * util/i386/pc/grub-setup.c (setup): Fix directory path.
39597
50fb7002 395982009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
34519c3f 39599
39600 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
39601 b-tree.
39602
8cc50345 396032009-02-27 Robert Millan <rmh@aybabtu.com>
39604
39605 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
39606 `0x' qualifier as 0 when base is specified as parameter).
39607
6e09b8b7 396082009-02-24 Bean <bean123ch@gmail.com>
39609
39610 * configure.ac: Check for -mcmodel=large in x86_64 target.
39611
39612 * include/grub/efi/api.h (efi_call_10): New macro.
39613 (efi_wrap_10): New function.
39614
39615 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
39616 (GRUB_PE32_REL_BASED_HIGH): Likewise.
39617 (GRUB_PE32_REL_BASED_LOW): Likewise.
39618 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
39619 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
39620 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
39621 (GRUB_PE32_REL_BASED_SECTION): Likewise.
39622 (GRUB_PE32_REL_BASED_REL): Likewise.
39623 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
39624 (GRUB_PE32_REL_BASED_DIR64): Likewise.
39625 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
39626
39627 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
39628 issue.
39629
39630 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
39631 (efi_wrap_10): New function.
39632
39633 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
39634
39635 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
39636 MB/MBP model (NV chipset).
39637 (devdata_devs): Add devpath_5 to the list.
39638
39639 * load/i386/efi/linux.c (video_base): Remove variable.
39640 (RGB_MASK): New macro.
39641 (RGB_MAGIC): Likewise.
39642 (LINE_MIN): Likewise.
39643 (LINE_MAX): Likewise.
39644 (FBTEST_STEP): Likewise.
39645 (FBTEST_COUNT): Likewise.
39646 (fb_list): New variable.
39647 (grub_find_video_card): Remove function.
39648 (find_framebuf): New function.
39649 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
39650 line length.
39651
39652 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
39653 problem for x86_64.
39654
74b21bee 396552009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
39656
39657 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
39658
39659 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
39660 coding tool name.
39661
a455f472 396622009-02-22 Robert Millan <rmh@aybabtu.com>
39663
39664 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
39665 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
39666 in our relocation, instead of using it directly from heap. Also
39667 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
39668
6374daf3 396692009-02-21 Robert Millan <rmh@aybabtu.com>
39670
39671 Implement USB keyboard support (based on patch by Marco Gerards)
39672
39673 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
39674 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
39675 (usb_keyboard_mod_LDFLAGS): New variables.
39676
39677 * term/usb_keyboard.c: New file.
39678
8fa4ea70 396792009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
39680
39681 Corrected wrong declaration
39682
39683 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
39684
353976ac 396852009-02-14 Christian Franke <franke@computer.org>
39686
39687 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
39688 (grub_lspci_iter): Print class code and programming interface byte.
39689
6aa1169b 396902009-02-14 Christian Franke <franke@computer.org>
39691
39692 * gendistlist.sh: Ignore `.svn' directories.
39693
265372ca 396942009-02-14 Felix Zielcke <fzielcke@z-51.de>
39695
39696 * fs/fat.c: Add 2009 to Copyright line.
39697
9ff516f3 396982009-02-14 Christian Franke <franke@computer.org>
39699
39700 * commands/hdparm.c: New file. Provides `hdparm' command
39701 which sends ATA commands via grub_disk_ata_pass_through ().
39702
39703 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
39704
39705 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
39706 and <grub/cpu/io.h> to include/grub/ata.h.
39707 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
39708 (GRUB_CDROM_SECTOR_SIZE): Remove.
39709 (GRUB_ATA_*): Move to include/grub/ata.h.
39710 (GRUB_ATAPI_*): Likewise.
39711 (enum grub_ata_commands): Likewise.
39712 (enum grub_ata_timeout_milliseconds): Likewise.
39713 (struct grub_ata_device): Likewise.
39714 (grub_ata_regset): Likewise.
39715 (grub_ata_regget): Likewise.
39716 (grub_ata_regset2): Likewise.
39717 (grub_ata_regget2): Likewise.
39718 (grub_ata_check_ready): Likewise.
39719 (grub_ata_wait_not_busy): Remove static, exported in
39720 include/grub/ata.h.
39721 (grub_ata_wait_drq): Likewise.
39722 (grub_ata_pio_read): Likewise.
39723
39724 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
39725 function for hdparm.mod.
39726
39727 * include/grub/ata.h: New file, contains declarations from
39728 disk/ata.c.
39729 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
39730
39731 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
39732 (grub_disk_ata_pass_through): New exported variable.
39733
39734 * kern/disk.c (grub_disk_ata_pass_through): New variable.
39735
772e23da 397362009-02-13 Colin D Bennett <colin@gibibit.com>
39737
39738 Support multiple fallback entries, and provide an API to support
39739 executing default+fallback menu entries. Renamed the `terminal' menu
39740 viewer to `text'.
39741
39742 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
39743 variable declaration.
39744 (grub_menu_execute_callback): New structure declaration.
39745 (grub_menu_execute_callback_t): New typedef.
39746 (grub_menu_execute_with_fallback): New function declaration.
39747 (grub_menu_get_entry): Likewise.
39748 (grub_menu_get_timeout): Likewise.
39749 (grub_menu_set_timeout): Likewise.
39750
39751 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
39752
39753 * normal/menu.c (grub_wait_after_message): Moved to
39754 `normal/menu_text.c'.
39755 (draw_border): Likewise.
39756 (print_message): Likewise.
39757 (print_entry): Likewise.
39758 (print_entries): Likewise.
39759 (grub_menu_init_page): Likewise.
39760 (get_entry_number): Likewise.
39761 (print_timeout): Likewise.
39762 (run_menu): Likewise.
39763 (grub_menu_execute_entry): Likewise.
39764 (show_text_menu): Likewise.
39765 (get_and_remove_first_entry_number): New function.
39766 (grub_menu_execute_with_fallback): Likewise.
39767 (get_entry): Renamed to ...
39768 (grub_menu_get_entry): .. this and made it global.
39769 (get_timeout): Renamed to ...
39770 (grub_menu_get_timeout): ... this and made it global.
39771 (set_timeout): Renamed to ...
39772 (grub_menu_set_timeout): ... this and made it global.
39773 (grub_normal_terminal_menu_viewer): Renamed to ...
39774 (grub_normal_text_menu_viewer): ... this.
39775
39776 * normal/menu_text.c: New file. Extracted text-menu-specific code
39777 from normal/menu.c.
39778
39779 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
39780 (normal_mod_SOURCES): Likewise.
39781
39782 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39783 (normal_mod_SOURCES): Likewise.
39784
39785 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39786 (normal_mod_SOURCES): Likewise.
39787
39788 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
39789 (normal_mod_SOURCES): Likewise.
39790
39791 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39792 (normal_mod_SOURCES): Likewise.
39793
39794 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39795 (normal_mod_SOURCES): Likewise.
39796
39797 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
39798 (normal_mod_SOURCES): Likewise.
39799
16ac430e 398002009-02-11 Robert Millan <rmh@aybabtu.com>
39801
39802 * util/grub.d/00_header.in: Update old reference to `font' command.
39803
06ff20fc 398042009-02-10 Felix Zielcke <fzielcke@z-51.de>
39805
39806 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
39807
39808 Based on patch from Javier Martín.
39809
96da9407 398102009-02-09 Felix Zielcke <fzielcke@z-51.de>
39811
39812 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
50fb7002 39813 to avoid false positives with FAT.
96da9407 39814 (grub_fstest_SOURCES): Likewise.
39815 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
39816 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
39817 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39818 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
39819 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39820 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39821
6dca6fe4 398222009-02-09 Felix Zielcke <fzielcke@z-51.de>
39823
06ff20fc 39824 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6dca6fe4 39825 bpb.version_specific.fat12_or_fat16.fstype and
39826 bpb.version_specific.fat32.fstype.
39827
2550c62f 398282009-02-08 Robert Millan <rmh@aybabtu.com>
39829
be110b30 39830 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
2550c62f 39831
56978920 398322009-02-08 Robert Millan <rmh@aybabtu.com>
39833
39834 * Makefile.in (host_os, host_cpu): New variables.
39835 (target_os): Remove. Update all users.
39836
d64399b5 398372009-02-08 Marco Gerards <marco@gnu.org>
39838
39839 * Makefile.in (enable_grub_emu_usb): New variable.
39840 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
39841 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
39842 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
39843 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
39844 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
39845 `usbtest.mod' and `usbms.mod'.
39846 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
39847 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
39848 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
39849 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
39850 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
39851 variables.
39852
39853 * disk/usbms.c: New file.
39854
39855 * include/grub/usb.h: Likewise.
39856
39857 * include/grub/usbtrans.h: Likewise.
39858
39859 * include/grub/usbdesc.h: Likewise.
39860
39861 * bus/usb/usbtrans.c: Likewise.
39862
39863 * bus/usb/ohci.c: Likewise.
39864
39865 * bus/usb/uhci.c: Likewise.
39866
39867 * bus/usb/usbhub.c: Likewise.
39868
39869 * bus/usb/usb.c: Likewise.
39870
39871 * commands/usbtest.c: Likewise.
39872
39873 * util/usb.c: Likewise.
50fb7002 39874
d64399b5 39875 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
39876
39877 * configure.ac: Test for libusb presence.
50fb7002 39878
d64399b5 39879 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
39880
2b40d6bb 398812009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
39882
39883 * kern/mm.c: Add more comments.
39884
73a4ce81 398852009-02-08 Robert Millan <rmh@aybabtu.com>
39886
39887 Patch from Javier Martín.
39888 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
39889 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
39890
f821ce59 398912009-02-08 Robert Millan <rmh@aybabtu.com>
39892
39893 * fs/cpio.c: Split tar functionality to ...
39894 * fs/tar.c: ... here (new file). Update all users.
39895
aebfc4b0 398962009-02-07 Robert Millan <rmh@aybabtu.com>
39897
39898 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
39899 backward-incompatible features.
39900
39901 Based on patch from Javier Martín, with some adjustments.
39902
50fb7002 399032009-02-07 Michael Scherer <misc@mandriva.org>
cea15bca 39904
39905 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
39906
0bb5115e 399072009-02-07 Robert Millan <rmh@aybabtu.com>
39908
39909 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
39910 position of `disk/lvm.c' to ensure grub_init_all() always picks it
39911 after the RAID stuff.
39912
38a0f8e7 399132009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
39914
50fb7002 39915 Fixes problem when running vbetest command as reported by
38a0f8e7 39916 Vladimir Serbinenko <phcoder@gmail.com>.
39917
39918 * (grub_vbe_set_video_mode): Fixed problem with text modes.
39919
3143cc1c 399202009-02-04 Felix Zielcke <fzielcke@z-51.de>
39921
39922 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
39923 /dev/md/NpN style mdraid devices.
39924
9cba6fce 399252009-02-03 Felix Zielcke <fzielcke@z-51.de>
39926
39927 * util/unifont2pff.rb: Remove.
39928
e507a2c1 399292009-02-03 Felix Zielcke <fzielcke@z-51.de>
39930
39931 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
39932 `#'.
39933
d2c2b4cd 399342009-02-03 Felix Zielcke <fzielcke@z-51.de>
39935
39936 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
39937 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39938 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
39939 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
39940 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39941 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39942 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39943
b4315fb0 399442009-02-02 Christian Franke <franke@computer.org>
39945
39946 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
39947
de3aa260 399482009-02-01 Felix Zielcke <fzielcke@z-51.de>
39949
7c3ff286 39950 * INSTALL: Note that we now require at least autoconf 2.59 and
39951 that LZO is optional.
de3aa260 39952
825a182b 399532009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
39954
39955 Base on patch on bug #24154 created by Tomas Tintera
39956 <trosos@seznam.cz>.
39957
39958 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
39959
a69ef770 399602009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
39961
7c3ff286 39962 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
a69ef770 39963 <bero@arklinux.org>.
39964
39965 * normal/parser.y (script_init): Add missing semicolon.
39966
6fa42fa6 399672009-01-31 Colin D Bennett <colin@gibibit.com>
39968
7c3ff286 39969 * normal/main.c: Add include to grub/menu_viewer.h.
6fa42fa6 39970 (free_menu_entry_classes): Added.
39971 (grub_normal_menu_addentry): Added class property handling.
39972 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
39973 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
39974
39975 * normal/menu_viewer.c: New file.
39976
39977 * normal/menu.c (run_menu_entry): Renamed to ...
39978 (grub_menu_execute_entry): ... this and made it as global.
39979 (grub_menu_run): Renamed to ...
39980 (show_text_menu): ... this and made it local.
39981 (show_text_menu): Adapt to new function names.
39982 (grub_normal_terminal_menu_viewer): New global variable.
39983
39984 * include/grub/menu.h: New file.
39985
39986 * include/grub/menu_viewer.h: New file.
39987
39988 * include/grub/normal.h: Added include to grub/menu.h.
39989 (grub_menu_entry): Moved to include/grub/menu.h.
39990 (grub_menu_entry_t): Likewise.
39991 (grub_menu): Likewise.
39992 (grub_menu_t): Likewise.
39993 (grub_normal_terminal_menu_viewer): Added.
39994 (grub_menu_execute_entry): Likewise.
39995 (grub_menu_run): Removed.
39996
39997 * DISTLIST: Added include/grub/menu.h.
39998 Added include/grub/menu_viewer.h.
39999 Added normal/menu_viewer.c.
40000
400012009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
40002
40003 * normal/execute.c (grub_script_execute_menuentry): Changed to use
40004 arglist for menutitle arguments.
40005
40006 * normal/main.c (grub_normal_menu_addentry): Likewise.
40007
40008 * normal/parser.y (menuentry): Likewise.
40009
40010 * normal/script.c (grub_script_create_cmdmenu): Likewise.
40011
40012 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
40013 (grub_script_create_cmdmenu): Likewise.
40014
40015 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
40016
40017 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
40018 changes.
40019
40020 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
40021
40022 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
40023
40024 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
40025
40026 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
40027
40028 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
40029
40030 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
40031
56192c23 400322009-01-30 Christian Franke <franke@computer.org>
40033
40034 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
40035 in option help text.
40036
d72521b3 400372009-01-27 Pavel Roskin <proski@gnu.org>
40038
40039 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
40040
994b5e84 400412009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
40042
40043 * commands/lsmmap.c: Add include to grub/machine/memory.h.
40044
40045 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
40046
40047 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
40048 unregister function.
40049
6a7eab2c 400502009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
40051
40052 * disk/scsi.c (grub_scsi_read): Fix sign problem.
40053
40054 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
40055
40056 * util/grub-mkfont.c (usage): Fix typo.
40057
40058 * util/elf/grub-mkimage.c (load_modules): Fix warning.
40059
1806b56e 400602009-01-26 Daniel Mierswa <impulze@impulze.org>
40061
3fb18f09 40062 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
40063
336e1fb9 40064 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
40065
1806b56e 40066 * kern/misc.c (grub_strcasecmp): New function.
40067 (grub_strcasecmp): Use grub_size_t instead of int for length.
40068 Fix return value.
40069 * include/grub/misc.h: Update function prototypes.
40070
580b2a0f 400712009-01-26 Robert Millan <rmh@aybabtu.com>
40072
40073 * configure.ac: Fix cross-compilation check.
ef257b36 40074
d31c24f1 400752009-01-22 Christian Franke <franke@computer.org>
40076
40077 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
40078 (precision) digit string. Allow `.format2' without `format1' (width).
40079 Limit input chars for `%s' output to `format2' if specified. This is
40080 compatible with standard printf ().
40081
3138b44c 400822009-01-22 Christian Franke <franke@computer.org>
40083
40084 * disk/ata.c (grub_ata_wait_status): Replace by ...
40085 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
40086 other status bits may be invalid while BSY is asserted.
40087 (grub_ata_check_ready): New function.
40088 (grub_ata_cmd): Removed.
40089 (grub_ata_wait_drq): New function.
40090 (grub_ata_strncpy): Remove inline.
40091 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
40092 and error check now done by grub_ata_wait_drq ().
40093 (grub_ata_pio_write): Likewise.
40094 (grub_atapi_identify): Set DEV before check for !BSY. Use
40095 grub_ata_wait_drq () to wait for data.
40096 (grub_ata_device_initialize): Add status register check to
40097 detect missing SATA slave devices. Add debug messages.
40098 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
40099 (grub_atapi_packet): Set DEV before check for !BSY. Replace
40100 transfer loop by grub_ata_pio_write ().
40101 (grub_ata_identify): Set DEV before check for !BSY. Use
40102 grub_ata_wait_drq () to wait for data.
ef257b36 40103 (grub_ata_setaddress): Set DEV before check for !BSY.
3138b44c 40104 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
40105 read/write in one loop. Fix invalid command on write. Fix incomplete
40106 command on (size % batch) == 0. Add missing error check after write of
40107 last block. Add debug messages.
40108 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
40109
59a64ef6 401102009-01-19 Christian Franke <franke@computer.org>
40111
40112 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
40113 (GRUB_ATAPI_IREASON_*): Likewise.
40114 (grub_ata_pio_write): Fix timeout error return.
40115 (grub_atapi_identify): Add grub_ata_wait () after cmd.
40116 (grub_atapi_wait_drq): New function.
40117 (grub_atapi_packet): New parameter `size'.
40118 Use grub_atapi_wait_drq () and direct write instead of
40119 grub_ata_pio_write ().
40120 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
40121 reads the number of bytes requested by the device for each DRQ
40122 assertion.
40123 (grub_atapi_write): Remove old implementation, return not
40124 implemented instead.
40125
1cfe20b3 401262009-01-19 Christian Franke <franke@computer.org>
40127
40128 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
40129 of 512 to calculate data size.
40130 (grub_scsi_read12): Likewise.
40131 (grub_scsi_write10): Likewise.
40132 (grub_scsi_write12): Likewise.
40133 (grub_scsi_read): Adjust size according to blocksize.
40134 Add checks for invalid blocksize and unaligned transfer.
40135
bee5fe5d 401362009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
40137
40138 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
40139
ef257b36 40140 * term/gfxterm.c (write_char): Fix background rendering for wide
bee5fe5d 40141 width glyphs.
40142
3e643f8c 401432009-01-19 Robert Millan <rmh@aybabtu.com>
40144
40145 * config.guess: Update to latest version from config git.
40146 * config.sub: Likewise.
40147
4fa80998 401482009-01-17 Felix Zielcke <fzielcke@z-51.de>
40149
40150 * Makefile.in: Change font compilation to use new grub-mkfont instead
40151 of java version.
40152
40153 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
40154 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
40155 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
40156 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
40157 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
40158 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
40159 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
40160 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
40161 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
40162
7086085b 401632009-01-16 Christian Franke <franke@computer.org>
40164
40165 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
40166 (enum grub_ata_timeout_milliseconds): New enum.
40167 (grub_ata_wait_status): Add parameter milliseconds.
40168 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
40169 recovery from timed-out commands.
40170 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
40171 return grub_errno instead of REG_ERROR.
40172 (grub_ata_pio_write): Add parameter milliseconds.
40173 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
40174 Pass milliseconds to grub_ata_wait_status () and
40175 grub_ata_pio_read ().
40176 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
40177 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
40178 grub_ata_wait_status (). Fix IDENTIFY timeout check.
40179 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
40180 It is not suitable for device detection, because DEV bit is ignored,
40181 the command may run too long, and not all devices set the signature
40182 properly.
40183 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
40184 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
40185 Fix device selection, DEV bit must be set first to address the registers
40186 of the correct device.
40187 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
40188 grub_ata_pio_read/write ().
40189 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
40190 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
40191
4a412913 401922009-01-13 Carles Pina i Estany <carles@pina.cat>
40193
40194 * util/grub-editenv.c (main): Use fseeko(), not fseek().
40195
7795c55e 401962009-01-13 Bean <bean123ch@gmail.com>
d913988c 40197
40198 * util/grub-mkfont.c (write_font): forget to remove some debug code.
40199
7795c55e 402002009-01-13 Bean <bean123ch@gmail.com>
e52db1f7 40201
40202 * Makefile.in: (enable_grub_mkfont): New variable.
40203 (freetype_cflags): Likewise.
40204 (freetype_libs): Likewise.
40205
40206 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
40207 (grub_mkfont_SOURCES): New variable.
40208 (grub_mkfont_CFLAGS): Likewise.
40209 (grub_mkfont_LDFLAGS): Likewise.
40210
40211 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
40212 library if `--enable-grub-mkfont' is requested.
40213 (enable_grub_mkfont): New variable.
40214 (freetype_cflags): Likewise.
40215 (freetype_libs): Likewise.
40216
40217 * util/grub-mkfont.c: New file.
40218
093af1fe 402192009-01-12 Christian Franke <franke@computer.org>
40220
40221 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
40222 mode check. Fix setting of compat_use[].
40223
f36cc108 402242009-01-10 Robert Millan <rmh@aybabtu.com>
40225
40226 Update a few copyright years which we forgot to do in 2008 (only for
40227 files whose changes made in 2008 were copyright-significant)
40228
40229 * Makefile.in: Add 2008 to Copyright line.
40230 * disk/ieee1275/ofdisk.c: Likewise.
40231 * disk/efi/efidisk.c: Likewise.
40232 * kern/dl.c: Likewise.
40233 * kern/sparc64/ieee1275/init.c: Likewise.
40234 * kern/mm.c: Likewise.
40235 * kern/efi/mm.c: Likewise.
40236 * boot/i386/pc/boot.S: Likewise.
40237 * genfslist.sh: Likewise.
40238 * fs/iso9660.c: Likewise.
40239 * fs/hfs.c: Likewise.
40240 * fs/jfs.c: Likewise.
40241 * fs/minix.c: Likewise.
40242 * fs/ufs.c: Likewise.
40243 * gensymlist.sh.in: Likewise.
40244 * genkernsyms.sh.in: Likewise.
40245 * include/grub/misc.h: Likewise.
40246 * include/grub/types.h: Likewise.
40247 * include/grub/symbol.h: Likewise.
40248 * include/grub/elf.h: Likewise.
40249 * include/grub/kernel.h: Likewise.
40250 * include/grub/disk.h: Likewise.
40251 * include/grub/dl.h: Likewise.
40252 * include/grub/i386/linux.h: Likewise.
40253 * include/grub/i386/pc/biosdisk.h: Likewise.
40254 * include/grub/efi/api.h: Likewise.
40255 * include/grub/efi/pe32.h: Likewise.
40256 * include/grub/util/misc.h: Likewise.
40257 * normal/execute.c: Likewise.
40258 * normal/arg.c: Likewise.
40259 * normal/completion.c: Likewise.
40260 * normal/lexer.c: Likewise.
40261 * normal/parser.y: Likewise.
40262 * normal/misc.c: Likewise.
40263 * commands/i386/pc/vbeinfo.c: Likewise.
40264 * commands/hexdump.c: Likewise.
40265 * commands/terminal.c: Likewise.
40266 * commands/ls.c: Likewise.
40267 * commands/help.c: Likewise.
40268 * partmap/pc.c: Likewise.
40269 * loader/efi/chainloader.c: Likewise.
40270 * loader/multiboot_loader.c: Likewise.
40271 * loader/i386/pc/multiboot2.c: Likewise.
40272 * term/efi/console.c: Likewise.
40273 * term/i386/pc/serial.c: Likewise.
40274 * util/lvm.c: Likewise.
40275 * util/console.c: Likewise.
40276 * util/i386/efi/grub-mkimage.c: Likewise.
40277 * util/raid.c: Likewise.
40278
7f02114b 402792009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
40280
40281 * commands/videotest.c: Removed include to grub/machine/memory.h.
40282
40283 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
40284 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
40285 (video_mod_SOURCES): Removed.
40286 (video_mod_CFLAGS): Likewise.
40287 (video_mod_LDFLAGS): Likewise.
40288 (gfxterm_mod_SOURCES): Likewise.
40289 (gfxterm_mod_CFLAGS): Likewise.
40290 (gfxterm_mod_LDFLAGS): Likewise.
40291 (videotest_mod_SOURCES): Likewise.
40292 (videotest_mod_CFLAGS): Likewise.
40293 (videotest_mod_LDFLAGS): Likewise.
40294 (bitmap_mod_SOURCES): Likewise.
40295 (bitmap_mod_CFLAGS): Likewise.
40296 (bitmap_mod_LDFLAGS): Likewise.
40297 (tga_mod_SOURCES): Likewise.
40298 (tga_mod_CFLAGS): Likewise.
40299 (tga_mod_LDFLAGS): Likewise.
40300 (jpeg_mod_SOURCES): Likewise.
40301 (jpeg_mod_CFLAGS): Likewise.
40302 (jpeg_mod_LDFLAGS): Likewise.
40303 (png_mod_SOURCES): Likewise.
40304 (png_mod_CFLAGS): Likewise.
40305 (png_mod_LDFLAGS): Likewise.
40306
40307 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
40308 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
40309 (video_mod_SOURCES): Added.
40310 (video_mod_CFLAGS): Likewise.
40311 (video_mod_LDFLAGS): Likewise.
40312 (videotest_mod_SOURCES): Likewise.
40313 (videotest_mod_CFLAGS): Likewise.
40314 (videotest_mod_LDFLAGS): Likewise.
40315 (bitmap_mod_SOURCES): Likewise.
40316 (bitmap_mod_CFLAGS): Likewise.
40317 (bitmap_mod_LDFLAGS): Likewise.
40318 (tga_mod_SOURCES): Likewise.
40319 (tga_mod_CFLAGS): Likewise.
40320 (tga_mod_LDFLAGS): Likewise.
40321 (jpeg_mod_SOURCES): Likewise.
40322 (jpeg_mod_CFLAGS): Likewise.
40323 (jpeg_mod_LDFLAGS): Likewise.
40324 (png_mod_SOURCES): Likewise.
40325 (png_mod_CFLAGS): Likewise.
40326 (png_mod_LDFLAGS): Likewise.
40327 (gfxterm_mod_SOURCES): Likewise.
40328 (gfxterm_mod_CFLAGS): Likewise.
7795c55e 40329 (gfxterm_mod_LDFLAGS): Likewise.
7f02114b 40330
40331 * term/gfxterm.c: Removed include to grub/machine/memory.h,
40332 grub/machine/console.h.
40333
644fff97 403342009-01-04 Jerone Young <jerone@gmail.com>
40335
40336 Make on screen instructions clearer
40337
40338 Based on patch created by Jidanni <jidanni@jidanni.org>
40339
40340 * normal/menu.c: print clearer instructions on the screen
40341
1e901a75 403422009-01-02 Colin D Bennett <colin@gibibit.com>
40343
40344 New font engine.
34c44600 40345
1e901a75 40346 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
40347 build system and fixed gfxterm.c to work with different sized fonts.
40348
40349 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34c44600 40350
1e901a75 40351 * configure: Re-generated.
34c44600 40352
1e901a75 40353 * DISTLIST: Removed font/manager.c.
40354 Added font/font.c.
40355 Added font/font_cmd.c.
34c44600 40356
1e901a75 40357 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
40358 compilation.
34c44600 40359
1e901a75 40360 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34c44600 40361
40362 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
1e901a75 40363
40364 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34c44600 40365
1e901a75 40366 * normal/menu.c: Likewise.
34c44600 40367
1e901a75 40368 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
40369 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34c44600 40370
1e901a75 40371 * include/grub/font.h: Replaced with new file.
34c44600 40372
1e901a75 40373 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
40374 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
40375 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
40376 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
40377 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34c44600 40378 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
1e901a75 40379 fg_red, fg_green, fg_blue, fg_alpha.
40380 (grub_video_adapter): Removed blit_glyph.
34c44600 40381 (grub_video_blit_glyph): Removed.
40382
1e901a75 40383 * font/manager.c: Removed file.
34c44600 40384
40385 * font/font.c: New file.
40386
1e901a75 40387 * font/font_cmd.c: Likewise.
34c44600 40388
1e901a75 40389 * video/video.c (grub_video_blit_glyph): Removed.
34c44600 40390
1e901a75 40391 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
40392 (grub_video_vbe_map_rgba): Likewise.
40393 (grub_video_vbe_unmap_color_int): Likewise.
40394 (grub_video_vbe_blit_glyph): Removed.
40395 (grub_video_vbe_adapter): Removed blit_glyph.
34c44600 40396
1e901a75 40397 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
40398 (get_pixel): Likewise.
34c44600 40399 (set_pixel): Likewise.
40400
1e901a75 40401 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34c44600 40402
1e901a75 40403 * term/gfxterm.c: Adapted to new font engine.
34c44600 40404
1e901a75 40405 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34c44600 40406
1e901a75 40407 * term/i386/pc/vga.c: Likewise.
34c44600 40408
1e901a75 40409 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34c44600 40410
1e901a75 40411 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34c44600 40412
1e901a75 40413 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 40414
1e901a75 40415 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 40416
1e901a75 40417 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34c44600 40418
1e901a75 40419 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34c44600 40420
1e901a75 40421 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34c44600 40422
1e901a75 40423 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34c44600 40424
1e901a75 40425 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
40426
40427 * util/grub.d/00_header.in: Changed to use new loadfont command.
34c44600 40428
1e901a75 40429 * util/grub-mkconfig_lib.in: Changed font extension.
40430
278922e8 404312008-12-28 Felix Zielcke <fzielcke@z-51.de>
40432
40433 * util/getroot.c (grub_util_get_grub_dev): Add support for
40434 /dev/md/dNNpNN style partitionable mdraid devices.
40435
3ced05cf 404362008-12-12 Alex Smith <alex@alex-smith.me.uk>
40437
40438 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
40439 at a time limit of the PXE TFTP API correctly.
40440 (grub_pxefs_close): Likewise.
40441
7fd0ee30 404422008-11-29 Robert Millan <rmh@aybabtu.com>
40443
34c44600 40444 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
7fd0ee30 40445 grub_ata_device_initialize() calls.
40446
34c44600 404472008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
0c5e79ab 40448
40449 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
40450 iteration failed.
40451 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
40452
89313780 404532008-11-28 Robert Millan <rmh@aybabtu.com>
40454
40455 Fix build on powerpc-ieee1275. Based on patch created by
40456 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
40457 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
40458 `kern/ieee1275/mmap.c'.
40459 * include/grub/powerpc/ieee1275/memory.h: New file.
40460
15257703 40461 Provide grub-install on coreboot.
40462 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
40463 (grub_install_SOURCES): New variable.
40464 * util/i386/pc/grub-install.in: Add a few condition checks to make it
40465 usable on coreboot.
40466
9fc5388a 404672008-11-25 Felix Zielcke <fzielcke@z-51.de>
40468
40469 * util/grub-fstest.c (grub_term_get_current_input): Change return type
40470 to `grub_term_input_t'.
40471 (grub_term_get_current_output): Change return type to
40472 `grub_term_output_t'.
40473
bc3a2f31 404742008-11-22 Robert Millan <rmh@aybabtu.com>
40475
34c44600 40476 Fix breakage on coreboot due to declaration mismatch.
bc3a2f31 40477 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
40478 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
40479 grub_vga_text_cls().
40480
80fc88f2 40481 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34c44600 40482 comments. Avoid copying one more byte than necessary (just in case).
80fc88f2 40483
cbf36fd3 40484 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
40485 to 0x200000 (avoids trouble with some OFW implementations, and matches
40486 with the one in Yaboot).
40487 Reported by Manoel Abranches
40488
73e8e268 404892008-11-20 Robert Millan <rmh@aybabtu.com>
3cf6ac19 40490
40491 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
40492 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
40493
73e8e268 40494 * util/grub-mkconfig_lib.in (grub_warn): New function.
40495 (convert_system_path_to_grub_path): Use grub_warn() when issuing
40496 warnings, to obtain consistent formatting.
40497 * util/grub.d/00_header.in: Likewise.
40498 * util/update-grub_lib.in: Likewise.
40499
e94045a1 40500 * loader/i386/linux.c (allocate_pages): Fix a warning.
40f9faa4 40501 Move comment text to `#error' stanza.
e94045a1 40502
79d29fd7 40503 Harmonize ieee1275's grub_available_iterate() with the generic
40504 grub_machine_mmap_iterate() interface (fixes a recently-introduced
40505 build problem on i386-ieee1275):
40506 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
40507 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
40508 parameter `type'. Update all users of this function.
40509 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
40510 `kern/ieee1275/mmap.c'.
40511 * kern/ieee1275/init.c
40512 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
40513 with ...
40514 (grub_machine_mmap_iterate): ... this.
40515 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
40516 return type to `grub_err_t'. Update all implementations of this
40517 function prototype.
40518 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
40519 Likewise.
40520
60d6b16e 40521 Add `lsmmap' command (lists firmware-provided memory map):
40522 * commands/lsmmap.c: New file.
40523 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
40524 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
40525 variables.
40526 * conf/powerpc-ieee1275.rmk: Likewise.
40527 * conf/i386-coreboot.rmk: Likewise.
40528 * conf/i386-ieee1275.rmk: Likewise.
40529
ebaaf49b 405302008-11-19 Robert Millan <rmh@aybabtu.com>
40531
40532 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
92907110 40533 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
40534 constraints to initrd allocation (based on code from
40535 loader/i386/pc/linux.c). Without them, initrd was allocated too high
40536 for Linux to find it.
ebaaf49b 40537
dfab719f 405382008-11-14 Robert Millan <rmh@aybabtu.com>
40539
40540 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
40541 order to cope with duplicate slashes.
40542
10fc3eb9 405432008-11-14 Robert Millan <rmh@aybabtu.com>
40544
40545 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
40546 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
40547 don't want to mess with lower memory, because it is used in the Linux
40548 loader.
40549
40550 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34c44600 40551 an appropriate place in lower memory, between 0x10000 and 0x90000,
10fc3eb9 40552 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
40553 is in our heap (probably as a result of it being corrupted during
2f2a3442 40554 decompression). Add #error instance with comment to explain why this
40555 loader isn't currently usable on PC/BIOS.
10fc3eb9 40556
e2e07847 405572008-11-14 Robert Millan <rmh@aybabtu.com>
40558
40559 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34c44600 40560 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
e2e07847 40561
fe8e8d69 405622008-11-12 Robert Millan <rmh@aybabtu.com>
40563
40564 Make loader/i386/linux.c buildable on i386-pc (although disabled).
40565
40566 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
40567 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
40568 from here ...
40569 * include/grub/i386/pc/memory.h: ... to here.
40570
976b07d0 405712008-11-12 Robert Millan <rmh@aybabtu.com>
40572
40573 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
40574 split).
40575
40576 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
40577 (grub_console_cur_color, grub_console_real_putchar)
40578 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
40579 (grub_console_setcolorstate, grub_console_setcolor)
40580 (grub_console_getcolor): Move from here ...
40581 * include/grub/i386/vga_common.h: ... to here (new file).
40582
40583 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
40584 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
40585 `<grub/i386/io.h>'.
40586 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
40587 `<grub/i386/vga_common.h>'.
40588
76679cd3 405892008-11-12 Robert Millan <rmh@aybabtu.com>
40590
40591 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
40592 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
40593 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
40594 variables.
40595 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
40596 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
40597
40598 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
40599 grub_console_init() with call to grub_vga_text_init().
40600 (grub_machine_fini): Replace call to
40601 grub_console_fini() with call to grub_vga_text_fini() and
40602 grub_at_keyboard_fini().
40603
40604 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
40605 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
40606 (grub_console_setcolorstate, grub_console_setcolor)
40607 (grub_console_getcolor): New function prototypes.
40608
40609 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
40610 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
40611 (grub_vga_text_setcursor): Static-ize.
40612 (grub_vga_text_term): New structure.
40613 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
40614
40615 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
40616 (grub_console_cur_color, grub_console_standard_color)
40617 (grub_console_normal_color, grub_console_highlight_color)
40618 (map_char, grub_console_putchar, grub_console_getcharwidth)
40619 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
40620 (grub_console_getcolor): Move from here ...
40621 * term/i386/vga_common.c: ... to here (same function names).
40622
95b841d3 406232008-11-12 Robert Millan <rmh@aybabtu.com>
40624
40625 Use newly-added Multiboot support in coreboot.
40626
40627 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
40628 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
40629
40630 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
40631 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
40632 (codestart): Store the MBI in `startup_multiboot_info' when we're
40633 being loaded using Multiboot.
40634
40635 * kern/i386/coreboot/init.c (grub_machine_init): Move
40636 grub_at_keyboard_init() call to beginning of function (useful for
40637 debugging). Call grub_machine_mmap_init() before attempting to use
40638 grub_machine_mmap_iterate().
40639 (grub_lower_mem, grub_upper_mem): Move from here ...
40640 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
40641 here (new file).
40642
40643 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
40644 function prototype.
40645
761ca975 406462008-11-12 Robert Millan <rmh@aybabtu.com>
40647
40648 Fix a regression introduced by the at_keyboard.mod split. Because
40649 some terminals are default on some platforms and non-default on
40650 others, the first terminal being registered determines which is
40651 going to be default.
40652
40653 * kern/term.c (grub_term_register_input): If this is the first
40654 terminal being registered, set it as the current one.
40655 (grub_term_register_output): Likewise.
40656
40657 * term/efi/console.c (grub_console_init): Do not call
40658 grub_term_set_current_output() or grub_term_set_current_input().
40659 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
40660 * term/i386/pc/console.c (grub_console_init): Likewise.
40661 (grub_console_fini): Do not call grub_term_set_current_input()
40662 (but leave grub_term_set_current_output() to restore text mode).
40663
6c529df7 406642008-11-10 Robert Millan <rmh@aybabtu.com>
40665
40666 * util/grub.d/00_header.in: Add backward compatibility check for
40667 versions of terminal.mod that don't understand `terminal_input' or
40668 `terminal_output'.
40669
132e4113 406702008-11-09 Robert Millan <rmh@aybabtu.com>
40671
40672 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
40673 `terminal_input' / `terminal_output', not `terminal'.
40674
ac293d50 406752008-11-08 Robert Millan <rmh@aybabtu.com>
40676
40677 * Makefile.in (include_DATA): Fix srcdir=. assumption.
2a9c5940 40678 (DISTCLEANFILES): Add `build_env.mk'.
ac293d50 40679
0025933a 406802008-11-08 Robert Millan <rmh@aybabtu.com>
40681
40682 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
dba3f844 40683 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
0025933a 40684 members. Update all users.
40685 * util/console.c (grub_ncurses_term): Split in ...
40686 (grub_ncurses_term_input): ... this, and ...
40687 (grub_ncurses_term_output): ... this. Update all users.
dcb6fa0a 40688 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
0025933a 40689
37c86336 406902008-11-08 Robert Millan <rmh@aybabtu.com>
40691
40692 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
40693 (PKGDATA): Add $(pkgdata_SRCDIR).
40694 (pkglib_BUILDDIR): New variable.
40695 (pkgdata_SRCDIR): New variable.
40696 (build_env.mk): New target.
40697 (include_DATA): New variable.
40698 (install-local): Install $(include_DATA) files in $(includedir).
40699
b6c15a2d 407002008-11-07 Pavel Roskin <proski@gnu.org>
40701
d99d46f1 40702 * gendistlist.sh: Use C locale for sorting to ensure consistent
40703 output on all systems.
40704
b6c15a2d 40705 * util/grub.d/00_header.in: Remove incorrect space before
40706 "serial".
40707
c32ee8c9 407082008-11-07 Robert Millan <rmh@aybabtu.com>
40709
40710 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
40711 per specification.
40712 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
40713 * loader/multiboot_loader.c (find_multi_boot2_header): New function
40714 (based on find_multi_boot1_header).
40715 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
40716 using find_multi_boot2_header(), and abort if neither Multiboot or
40717 Multiboot headers were found.
40718
651c29b7 407192008-11-07 Robert Millan <rmh@aybabtu.com>
40720
40721 Modularize at_keyboard.mod:
40722
40723 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
40724 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
40725 (at_keyboard_mod_LDFLAGS): New variables.
40726
40727 Actual terminal split:
40728
40729 * include/grub/term.h (struct grub_term): Split in ...
40730 (struct grub_term_input): ... this, and ...
40731 (struct grub_term_output): ... this. Update all users.
40732 (grub_term_set_current): Split in ...
40733 (grub_term_set_current_input): ... this, and ...
40734 (grub_term_set_current_output): ... this.
40735 (grub_term_get_current): Split in ...
40736 (grub_term_get_current_input): ... this, and ...
40737 (grub_term_get_current_output): ... this.
40738 (grub_term_register): Split in ...
40739 (grub_term_register_input): ... this, and ...
40740 (grub_term_register_output): ... this.
40741 (grub_term_unregister): Split in ...
40742 (grub_term_unregister_input): ... this, and ...
40743 (grub_term_unregister_output): ... this.
40744 (grub_term_iterate): Split in ...
40745 (grub_term_iterate_input): ... this, and ...
40746 (grub_term_iterate_output): ... this.
40747
40748 * kern/term.c (grub_term_list): Split in ...
40749 (grub_term_list_input): ... this, and ...
40750 (grub_term_list_output): ... this. Update all users.
40751 (grub_cur_term): Split in ...
40752 (grub_cur_term_input): ... this, and ...
40753 (grub_cur_term_output): ... this. Update all users.
40754 (grub_term_set_current): Split in ...
40755 (grub_term_set_current_input): ... this, and ...
40756 (grub_term_set_current_output): ... this.
40757 (grub_term_get_current): Split in ...
40758 (grub_term_get_current_input): ... this, and ...
40759 (grub_term_get_current_output): ... this.
40760 (grub_term_register): Split in ...
40761 (grub_term_register_input): ... this, and ...
40762 (grub_term_register_output): ... this.
40763 (grub_term_unregister): Split in ...
40764 (grub_term_unregister_input): ... this, and ...
40765 (grub_term_unregister_output): ... this.
40766 (grub_term_iterate): Split in ...
40767 (grub_term_iterate_input): ... this, and ...
40768 (grub_term_iterate_output): ... this.
40769
40770 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
40771 a check for input and one for output (and only attempt to get keys
40772 from user when input works).
40773
40774 * util/grub-probe.c (grub_term_get_current): Split in ...
40775 (grub_term_get_current_input): ... this, and ...
40776 (grub_term_get_current_output): ... this.
40777 * util/grub-fstest.c: Likewise.
40778 * util/i386/pc/grub-setup.c: Likewise.
40779 * util/grub-editenv.c: Likewise.
40780
40781 Portability adjustments:
40782
40783 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
40784 `term/i386/pc/at_keyboard.c'.
40785 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
40786 grub_keyboard_controller_init() (now handled by terminal .init).
40787 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
40788 grub_at_keyboard_init().
40789 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
40790 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
40791 at_keyboard.mod via input terminal interface).
40792 * include/grub/i386/coreboot/console.h: Convert into a stub for
40793 `<grub/i386/pc/console.h>'.
40794
40795 Migrate full terminals to new API:
40796
40797 * term/efi/console.c (grub_console_term): Split into ...
40798 (grub_console_term_input): ... this, and ...
40799 (grub_console_term_output): ... this. Update all users.
40800 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
40801 (grub_ofconsole_init): Split into ...
40802 (grub_ofconsole_init_input): ... this, and ...
40803 (grub_ofconsole_init_output): ... this.
40804 (grub_ofconsole_term): Split into ...
40805 (grub_ofconsole_term_input): ... this, and ...
40806 (grub_ofconsole_term_output): ... this. Update all users.
40807 * term/i386/pc/serial.c (grub_serial_term): Split into ...
40808 (grub_serial_term_input): ... this, and ...
40809 (grub_serial_term_output): ... this. Update all users.
40810 * term/i386/pc/console.c (grub_console_term): Split into ...
40811 (grub_console_term_input): ... this, and ...
40812 (grub_console_term_output): ... this. Update all users.
40813 (grub_console_term_input): Only enable it on PC/BIOS platform.
40814 (grub_console_init): Remove grub_keyboard_controller_init() call.
40815
40816 Migrate input terminals to new API:
40817
40818 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
40819 `i386' and `i386/pc' to enable build on x86_64 (this driver is
40820 i386-specific anyway).
40821 (grub_console_checkkey): Rename to ...
40822 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
40823 users.
40824 (grub_keyboard_controller_orig): New variable.
40825 (grub_console_getkey): Rename to ...
40826 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
40827 users.
40828 (grub_keyboard_controller_init): Static-ize. Save original
40829 controller value so that it can be restored ...
40830 (grub_keyboard_controller_fini): ... here (new function).
40831 (grub_at_keyboard_term): New structure.
40832 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
40833 functions.
40834
40835 Migrate output terminals to new API:
40836
40837 * term/i386/pc/vga.c (grub_vga_term): Change type to
40838 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
40839 members. Update all users.
40840 * term/gfxterm.c (grub_video_term): Change type to
40841 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
40842 members. Update all users.
40843 * include/grub/i386/pc/console.h (grub_console_checkkey)
40844 (grub_console_getkey): Do not export (no longer needed by gfxterm,
40845 etc).
40846
40847 Migrate `terminal' command and userland tools to new API:
40848
40849 * commands/terminal.c (grub_cmd_terminal): Split into ...
40850 (grub_cmd_terminal_input): ... this, and ...
40851 (grub_cmd_terminal_output): ... this.
40852 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
40853 `terminal_input' and `terminal_output'.
40854 * util/grub.d/00_header.in: Adjust `terminal' calls to new
40855 `terminal_input' / `terminal_output' API.
40856 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
40857 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
40858 provided ${GRUB_TERMINAL}, convert it).
40859
96e5d876 408602008-11-04 Robert Millan <rmh@aybabtu.com>
40861
40862 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
40863 for FreeBSD.
40864 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
40865
556f3775 408662008-11-03 Bean <bean123ch@gmail.com>
40867
40868 * kern/elf.c (grub_elf32_load): Revert to previous code.
40869 (grub_elf64_load): Likewise.
40870
40871 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
40872
926b9823 408732008-11-01 Robert Millan <rmh@aybabtu.com>
40874
40875 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
40876 (TARGET_CPPFLAGS): Likewise.
40877 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
40878
1432e958 408792008-11-01 Carles Pina i Estany <carles@pina.cat>
40880
40881 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
40882
dba3f844 408832008-10-29 Guillem Jover <guillem.jover@nokia.com>
de4fa71c 40884
40885 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
40886 addition of objects until the code is not going to be able to fail.
40887
dba3f844 408882008-10-29 Guillem Jover <guillem.jover@nokia.com>
b7279447 40889
40890 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
40891 (add a missing NULL check, and correct them by moving the pointer
40892 operations after the actual check).
40893
7ab28c21 408942008-10-29 Robert Millan <rmh@aybabtu.com>
40895
40896 * util/i386/pc/grub-install.in: Handle empty string as output from
40897 make_system_path_relative_to_its_root().
40898
1b7748eb 408992008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
40900
40901 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
40902 circular metadata worst case scenario. If the metadata is circular
40903 then copy the wrap in place.
40904 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
40905 project lib/format_text/layout.h
40906 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
40907
c9618ab2 409082008-10-03 Felix Zielcke <fzielcke@z-51.de>
40909
7a36edca 40910 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
c9618ab2 40911
bf981c62 409122008-10-03 Felix Zielcke <fzielcke@z-51.de>
40913
40914 * util/update-grub_lib.in: Mention filename in warning message.
40915
6d994591 409162008-09-29 Felix Zielcke <fzielcke@z-51.de>
40917
40918 * NEWS: Update for rename of update-grub to grub-mkconfig.
40919
18ade780 409202008-09-29 Felix Zielcke <fzielcke@z-51.de>
40921
40922 * util/update-grub_lib.in: Copy to ...
40923 * util/grub-mkconfig_lib.in: ... this. Update all users.
7c3ff286 40924 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
18ade780 40925 * util/update-grub.in: Rename to ...
40926 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
40927 option. Add `--output' option to allow users to specify the generated
40928 configuration file. Default to stdout.
40929 (update_grub_dir): Rename to ...
40930 (grub_mkconfig_dir): ... this.
40931 (grub_cfg): Default to an empty string.
40932 * conf/common.rmk (update-grub): Rename to ...
40933 (grub-mkconfig): ... this.
40934 (update-grub_lib): Copy to ...
40935 (grub-mkconfig_lib): ... this.
40936 (update-grub_SCRIPTS): Copy to ...
40937 (grub-mkconfig_SCRIPTS): ... this. Update all users.
40938 (update-grub_DATA): Rename to ...
40939 (grub-mkconfig_DATA): ... this.
40940
556ce6ac 409412008-09-28 Robert Millan <rmh@aybabtu.com>
40942
40943 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
40944 to `modified'. Add the real `created' field.
40945 (grub_iso9660_uuid): Use `modified' rather than `created' for
40946 constructing the UUID.
40947
409482008-09-28 Felix Zielcke <fzielcke@z-51.de>
eb079ba9 40949
40950 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
40951 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
40952
92274e85 409532008-09-28 Bean <bean123ch@gmail.com>
40954
40955 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
40956 Thanks to Christian Franke for finding this bug.
40957
add6f17a 409582008-09-25 Robert Millan <rmh@aybabtu.com>
40959
40960 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
40961 instances of grub_util_get_disk_name() (see previous commit).
40962
d2a367b8 409632008-09-25 Robert Millan <rmh@aybabtu.com>
40964
40965 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
40966 `util/i386/get_disk_name.c'.
40967 * conf/i386-efi.rmk: Likewise.
40968 * conf/x86_64-efi.rmk: Likewise.
40969 * conf/i386-coreboot.rmk: Likewise.
40970 * conf/i386-ieee1275.rmk: Likewise.
40971 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
40972 `util/ieee1275/get_disk_name.c'.
40973 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
40974 * util/ieee1275/get_disk_name.c: Remove file.
40975 * util/i386/get_disk_name.c: Remove file.
40976 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
40977 "hd%d" for device.map entries, rather than using
40978 grub_util_get_disk_name().
40979
81a06771 409802008-09-24 Carles Pina i Estany <carles@pina.cat>
b0c301f7 40981
40982 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
40983 warning.
40984 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
40985
5a004279 409862008-09-24 Carles Pina i Estany <carles@pina.cat>
40987
40988 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
40989 Changed to 0x5100.
40990 (GRUB_TERM_PPAGE): Changed to 0x4900.
40991
397093d3 409922008-09-24 Robert Millan <rmh@aybabtu.com>
40993
40994 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
40995 macros (they were i386-pc specific).
40996 * include/grub/sparc64/ieee1275/console.h: Likewise.
40997 * include/grub/efi/console.h: Likewise.
40998
a91b6c7c 409992008-09-22 Bean <bean123ch@gmail.com>
41000
41001 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
41002 resident and in attribute list.
41003
41004 * include/grub/ntfs.h (BMP_LEN): Removed.
41005
c40fd116 410062008-09-22 Bean <bean123ch@gmail.com>
41007
81a06771 41008 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
c40fd116 41009 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
41010
41011 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
41012 error occurs, as grub_disk_open will call grub_disk_close, which will
41013 call p->close (scsi).
41014
81a06771 410152008-09-21 Felix Zielcke <fzielcke@z-51.de>
eb73121d 41016
41017 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
41018 (AC_PREREQ): Bumped to 2.59.
41019 (AC_TRY_COMPILE): Replace obsolete macro with ...
41020 (AC_COMPILE_IFELSE): ... this.
41021 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
41022 (AC_LINK_IFELSE): ... this.
41023
5dc43410 410242008-09-21 Felix Zielcke <fzielcke@z-51.de>
41025
41026 * autogen.sh: Add a call to `gendistlist.sh'.
41027
9035dce4 410282008-09-19 Christian Franke <franke@computer.org>
41029
41030 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
41031 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
41032 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
41033 Export __enable_execute_stack() to modules.
41034 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
41035 New function.
41036
7fd75377 410372008-09-09 Felix Zielcke <fzielcke@z-51.de>
41038
040030b3 41039 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
41040 Sort the list.
41041
410422008-09-09 Felix Zielcke <fzielcke@z-51.de>
41043
41044 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7fd75377 41045 #include <grub/util/hostdisk.h>.
41046
89d5ffcf 410472008-09-08 Robert Millan <rmh@aybabtu.com>
41048
41049 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
41050 segments when their filesz is zero (grub_file_read() interprets
81a06771 41051 zero-size as "read until EOF", which results in memory corruption).
89d5ffcf 41052 Use `lowest_segment' rather than 0 for calculating the current
41053 segment load address.
41054
40da438f 410552008-09-08 Robert Millan <rmh@aybabtu.com>
41056
41057 * util/hostdisk.c (open_device): Replace a grub_util_info() call
41058 with grub_dprintf("hostdisk", ...), as it was so verbose that it
41059 clobbered useful information.
41060
ddbf5556 410612008-09-08 Robert Millan <rmh@aybabtu.com>
41062
41063 * include/grub/util/biosdisk.h: Move to ...
41064 * include/grub/util/hostdisk.h: ... here. Update all users.
41065 * util/biosdisk.c: Move to ...
41066 * util/hostdisk.c: ... here. Update all users.
41067
783d0f48 410682008-09-07 Robert Millan <rmh@aybabtu.com>
41069
41070 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
41071 variables.
41072 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
41073 and length can be stored directly in the `mbi->mmap_addr' and
41074 `mbi->mmap_length' struct fields.
41075
548e2ea5 410762008-09-07 Robert Millan <rmh@aybabtu.com>
41077
41078 * conf/i386.rmk: New file. Provides declaration for building
41079 `cpuid.mod'.
41080 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
41081 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
41082 variables.
41083 Include `conf/i386.mk'.
41084 * conf/i386-efi.rmk: Likewise.
41085 * conf/x86_64-efi.rmk: Likewise.
41086 * conf/i386-coreboot.rmk: Likewise.
41087 * conf/i386-ieee1275.rmk: Likewise.
41088
0ea85a37 410892008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
41090
41091 Based on patch created by Colin D Bennett <colin@gibibit.com>.
41092 Adds optimization support for BGR based modes.
41093
41094 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
41095 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
41096 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
41097 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
41098 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
41099 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
41100 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
41101 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
41102 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
41103 (grub_video_i386_vbeblit_index_index): Likewise.
41104 (grub_video_i386_vbeblit_replace_directN): Added.
41105 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
41106 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
41107 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
41108 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
41109 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
41110 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
81a06771 41111 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
0ea85a37 41112 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
41113 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
41114 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
41115 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
41116 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
41117 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
41118
41119 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
41120 (grub_video_i386_vbefill_R8G8B8): Likewise.
41121 (grub_video_i386_vbefill_index): Likewise.
41122 (grub_video_i386_vbefill_direct32): Added.
41123 (grub_video_i386_vbefill_direct24): Likewise.
41124 (grub_video_i386_vbefill_direct16): Likewise.
41125 (grub_video_i386_vbefill_direct8): Likewise.
41126
81a06771 41127 * include/grub/video.h (grub_video_blit_format): Removed
0ea85a37 41128 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
41129 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
41130 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
41131 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
41132 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
81a06771 41133
0ea85a37 41134 * video/video.c (grub_video_get_blit_format): Updated to use new
41135 blit formats. Added handling for 16 bit color modes.
81a06771 41136
41137 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
0ea85a37 41138 fillers.
41139 (common_blitter): Updated to use new blitters.
41140
41141 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
41142 Removed.
41143 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
41144 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
41145 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
41146 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
41147 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
41148 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
41149 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
41150 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
41151 (grub_video_i386_vbeblit_index_index): Likewise.
41152 (grub_video_i386_vbeblit_replace_directN): Added.
41153 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
41154 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
41155 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
41156 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
41157 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
41158 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
41159 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
41160 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
41161 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
41162 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
41163 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
41164 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
41165 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
81a06771 41166
0ea85a37 41167 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
41168 (grub_video_i386_vbefill_R8G8B8): Likewise.
41169 (grub_video_i386_vbefill_index): Likewise.
41170 (grub_video_i386_vbefill_direct32): Added.
41171 (grub_video_i386_vbefill_direct24): Likewise.
41172 (grub_video_i386_vbefill_direct16): Likewise.
41173 (grub_video_i386_vbefill_direct8): Likewise.
81a06771 41174
0ea85a37 41175 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
41176 types.
81a06771 41177
0ea85a37 41178 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
41179 types.
81a06771 41180
0ea85a37 41181 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
41182 blitter types.
81a06771 41183
0ea85a37 41184 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
41185 types.
41186
e8a83df6 411872008-09-06 Felix Zielcke <fzielcke@z-51.de>
41188
41189 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
41190 RAID level 1.
41191
6bcd8ee5 411922008-09-06 Felix Zielcke <fzielcke@z-51.de>
c375ae58 41193
6bcd8ee5 41194 * fs/iso9660.c (grub_iso9660_date): New structure.
41195 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
41196 (grub_iso9660_uuid): New function.
c375ae58 41197
59261157 411982008-09-05 Bean <bean123ch@gmail.com>
41199
41200 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
41201
41202 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
41203 insensitive bit for names in Win32 and Win32 & DOS namespace.
41204
41205 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
41206
41207 * include/grub/types.h (LONG_MAX): Likewise.
41208
58b6645a 412092008-09-04 Felix Zielcke <fzielcke@z-51.de>
41210
4ee55921 41211 * util/getroot.c: Include <config.h>.
41212 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
41213 add support for /dev/md/N devices and handle LVM double dash escaping.
41214
412152008-09-04 Felix Zielcke <fzielcke@z-51.de>
41216
41217 * config.guess: Update to latest version from config git.
41218 * config.sub: Likewise.
58b6645a 41219
9124f65d 412202008-09-03 Robert Millan <rmh@aybabtu.com>
41221
41222 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
41223 `disk->total_sectors'.
41224
81a06771 412252008-09-01 Colin D Bennett <colin@gibibit.com>
a0224a4e 41226
41227 * include/grub/normal.h: Fixed incorrect comment for
41228 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
41229
81a06771 412302008-09-01 Colin D Bennett <colin@gibibit.com>
f0619958 41231
41232 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
41233 values with defines.
41234
41235 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
41236 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
41237 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
41238 (GRUB_VBE_MODEATTR_COLOR): Likewise.
41239 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
41240 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
41241 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
41242 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
41243 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
41244 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
41245 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
41246 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
41247 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
41248 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
41249 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
41250 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
41251 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
41252 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
41253 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
41254
93d5cbf8 412552008-08-31 Robert Millan <rmh@aybabtu.com>
41256
41257 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
41258 declaration.
41259 (grub_multiboot): Fix a few warnings.
41260
21751d50 412612008-08-31 Robert Millan <rmh@aybabtu.com>
41262
41263 * loader/i386/pc/multiboot.c: Update comment not to say that
41264 boot_device support is unimplemented.
41265
e27a75c5 412662008-08-31 Robert Millan <rmh@aybabtu.com>
41267
41268 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
41269 or memory map support are unimplemented.
41270
81a06771 412712008-08-31 Colin D Bennett <colin@gibibit.com>
64d2d53c 41272
41273 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
41274
81a06771 412752008-08-31 Colin D Bennett <colin@gibibit.com>
c08a6c18 41276
41277 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
41278 total video memory in 'vbeinfo' output; show color format details for
41279 each video mode.
41280
7c5d8d95 412812008-08-30 Pavel Roskin <proski@gnu.org>
41282
41283 * util/genmoddep.c: Remove for real this time.
41284 * DISTLIST: Remove util/genmoddep.c.
41285
4cebd25a 412862008-08-30 Robert Millan <rmh@aybabtu.com>
41287
41288 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
41289 as required by Multiboot spec (it was already 4-byte aligned, but
41290 only by chance).
41291
b497a269 412922008-08-29 Pavel Roskin <proski@gnu.org>
41293
e3925185 41294 * kern/powerpc/ieee1275/crt0.S: Rename to ...
41295 * kern/powerpc/ieee1275/startup.S: ... this.
41296 * conf/powerpc-ieee1275.rmk: Adjust for the above.
41297 * DISTLIST: Likewise.
41298
b497a269 41299 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
41300 grub/cpu/kernel.h. Add start label for consistency with other
41301 platforms. Add grub_prefix immediately after start. Add jump
41302 to the code after grub_prefix.
41303 * include/grub/powerpc/kernel.h: Provide valid values for
41304 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
41305
6e5a42fe 413062008-08-29 Bean <bean123ch@gmail.com>
41307
41308 * configure.ac: Change host_os to cygwin for mingw.
41309 (asprintf): New check for function.
41310
41311 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
41312 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
41313
41314 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
81a06771 41315 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
6e5a42fe 41316 sync, sleep and grub_util_get_disk_size for mingw.
41317
41318 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
41319 to get size in mingw.
41320 (open_device): Use flag O_BINARY if it's defined.
41321 (find_root_device): Add dummy code for mingw.
41322
41323 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
41324 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
41325 (get_scsi_disk_name): Return 0 for mingw.
41326
41327 * util/hostfs.c: #include <grub/util/misc.h>.
41328 (grub_hostfs_open): Use "rb" flag to open file, use
41329 grub_util_get_disk_size to get disk size for mingw.
41330
41331 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
41332 (asprintf): New function if HAVE_ASPRINTF is not set.
41333 (sync): New function for mingw.
41334 (sleep): Likewise.
41335 (grub_util_get_disk_size): Likewise.
41336
ab3f2673 413372008-08-28 Pavel Roskin <proski@gnu.org>
41338
41339 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
41340 kern/time.c.
41341
1c282483 413422008-08-28 Robert Millan <rmh@aybabtu.com>
41343
41344 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
41345
678e849c 413462008-08-28 Robert Millan <rmh@aybabtu.com>
41347
41348 Change find_grub_drive() syntax so it doesn't prevent it from
41349 detecting NULL names as errors.
41350
41351 * util/biosdisk.c (find_grub_drive): Move free slot search code
41352 from here ...
41353 (find_free_slot): ... to here.
41354 (read_device_map): Use find_free_slot() to search for free slots.
41355
965c75ca 413562008-08-27 Marco Gerards <marco@gnu.org>
41357
41358 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
41359 (scsi_mod_SOURCES): New variable.
41360 (scsi_mod_CFLAGS): Likewise
41361 (scsi_mod_LDFLAGS): Likewise.
41362
41363 * disk/scsi.c: New file.
41364
41365 * include/grub/scsi.h: Likewise.
41366
41367 * include/grub/scsicmd.h: Likewise.
41368
41369 * disk/ata.c: Include <grub/scsi.h>.
41370 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
41371 instead.
41372 (grub_ata_iterate): Skip ATAPI devices.
41373 (grub_ata_open): Only handle ATAPI devices.
41374 (struct grub_atapi_read): Removed.
41375 (grub_atapi_readsector): Likewise.
41376 (grub_ata_read): No longer handle ATAPI devices.
41377 (grub_ata_write): Likewise.
41378 (grub_atapi_iterate): New function.
41379 (grub_atapi_read): Likewise.
41380 (grub_atapi_write): Likewise.
41381 (grub_atapi_open): Likewise.
41382 (grub_atapi_close): Likewise.
41383 (grub_atapi_dev): New variable.
41384 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
41385 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
41386
41387 * include/grub/disk.h (enum grub_disk_dev_id): Add
41388 `GRUB_DISK_DEVICE_SCSI_ID'.
41389
c07ae501 413902008-08-26 Robert Millan <rmh@aybabtu.com>
41391
41392 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
41393 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
41394 descriptive.
41395
5ed20adc 413962008-08-23 Bean <bean123ch@gmail.com>
41397
41398 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
41399 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
41400 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
41401 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
41402 dm_nv.mod.
41403 (raid5rec_mod_SOURCES): New macro.
41404 (raid5rec_mod_CFLAGS): Likewise.
41405 (raid5rec_mod_LDFLAGS): Likewise.
41406 (raid6rec_mod_SOURCES): Likewise.
41407 (raid6rec_mod_CFLAGS): Likewise.
41408 (raid6rec_mod_LDFLAGS): Likewise.
41409 (mdraid_mod_SOURCES): Likewise.
41410 (mdraid_mod_CFLAGS): Likewise.
41411 (mdraid_mod_LDFLAGS): Likewise.
41412 (dm_nv_mod_SOURCES): Likewise.
41413 (dm_nv_mod_CFLAGS): Likewise.
41414 (dm_nv_mod_LDFLAGS): Likewise.
41415
41416 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
41417 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
41418 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
41419
41420 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
41421 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
41422
41423 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41424
41425 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41426
41427 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41428
41429 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41430
41431 * disk/raid5_recover.c: New file.
41432
41433 * disk/raid6_recover.c: Likewise.
41434
41435 * disk/mdraid_linux.c: Likewise.
41436
41437 * disk/dmraid_nvidia.c: Likewise.
41438
41439 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
41440 ULONG_MAX.
41441
41442 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
41443 calculate the size of raid device.
41444 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
41445 different layout of raid5.
41446 (grub_raid_scan_device): Remove code specific to mdraid.
41447 (grub_raid_list): New variable.
41448 (free_array): New function.
41449 (grub_raid_register): Likewise.
41450 (grub_raid_unregister): Likewise.
41451 (grub_raid_rescan): Likewise.
41452 (GRUB_MOD_INIT): Don't iterate device here.
41453 (GRUB_MOD_FINI): Use free_array to release resource.
41454
41455 * include/grub/raid.h: Remove macro and structure specific to mdraid.
41456 (grub_raid5_recover_func_t): New function variable type.
41457 (grub_raid6_recover_func_t): Likewise.
41458 (grub_raid5_recover_func): New variable.
41459 (grub_raid6_recover_func): Likewise.
41460 (grub_raid_register): New function.
41461 (grub_raid_unregister): Likewise.
41462 (grub_raid_rescan): Likewise.
41463 (grub_raid_block_xor): Likewise.
41464
41465 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
41466 (CMD_CRC): New macro.
41467 (part): Removed.
41468 (read_file): Handle device as well as file.
41469 (cmd_crc): New function.
41470 (fstest): Handle multiple disks.
41471 (options): Remove part, raw and long, add root and diskcount.
41472 (usage): Add crc, remove -p, -r, -l, add -r and -c.
dba3f844 41473 (main): Find the first non option entry and ignore subsequent options,
5ed20adc 41474 add handling for the new options, support multiple disks.
41475
41476 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
41477
29c18915 414782008-08-23 Bean <bean123ch@gmail.com>
41479
41480 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
41481
41482 * genfslist.sh: Ignore kernel.mod.
41483
41484 * genpartmaplist.sh: Likewise.
41485
8415f261 414862008-08-23 Robert Millan <rmh@aybabtu.com>
41487
41488 * util/getroot.c (find_root_device): Skip anything that starts with
41489 a dot, not just directories. This avoids things like /dev/.tmp.md0.
41490
d5a7dc5b 414912008-08-22 Felix Zielcke <fzielcke@z-51.de>
81a06771 41492
d5a7dc5b 41493 * util/update-grub.in (GRUB_GFXMODE): Export variable.
41494 * util/grub.d/00_header.in: Allow the administrator to change default
41495 gfxmode via ${GRUB_GFXMODE}.
41496
380cfbb4 414972008-08-21 Felix Zielcke <fzielcke@z-51.de>
41498
41499 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
41500
c9baafe7 415012008-08-21 Robert Millan <rmh@aybabtu.com>
41502
41503 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
41504 loader.
41505 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
41506 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
41507
e290bef2 415082008-08-20 Carles Pina i Estany <carles@pina.cat>
41509
41510 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
41511 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
41512
f9dbfc96 415132008-08-19 Robert Millan <rmh@aybabtu.com>
41514
41515 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
41516 (struct grub_virtual_screen): Remove `cursor_color'.
41517 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
41518 initialization.
41519 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
41520
dd6bd6ab 415212008-08-18 Robert Millan <rmh@aybabtu.com>
41522
41523 Unify (identical) linux_normal.c files.
41524 * loader/i386/efi/linux_normal.c: Move from here ...
41525 * loader/linux_normal.c: ... to here. Update all users.
41526 * loader/i386/pc/linux_normal.c: Delete. Update all users.
41527 * loader/i386/ieee1275/linux_normal.c: Likewise.
41528
7f42f83e 415292008-08-18 Robert Millan <rmh@aybabtu.com>
41530
41531 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
41532 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
41533 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
41534 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
41535 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
41536 New macros.
41537 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
41538 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
41539 (GRUB_LINUX_CL_END_OFFSET): ... to here.
41540 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
41541 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
41542 (GRUB_EFI_CL_END_OFFSET): Rename to ...
41543 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
41544 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
41545 Initialize `params->video_cursor_x' and `params->video_cursor_y'
41546 portably using grub_getxy().
41547 Replace `-EFI' with `-bzImage' in boot message.
41548
38487ddb 415492008-08-17 Robert Millan <rmh@aybabtu.com>
41550
41551 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
41552
deceb3ec 415532008-08-17 Robert Millan <rmh@aybabtu.com>
41554
41555 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
41556
41557 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
41558 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
41559 (grub_machine_mmap_iterate): New function declaration.
41560 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
41561 structure.
41562 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
41563 macros.
41564
41565 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
41566 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
41567 Move e820 parsing from here ...
41568 * kern/i386/pc/mmap.c: New file.
41569 (grub_machine_mmap_iterate): ... to here.
41570
41571 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
41572 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
41573 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
41574 (grub_available_iterate): Redeclare to return `void', and redeclare
41575 its hook to use grub_uint64_t as addr and size parameters, and rename
41576 to ...
41577 (grub_machine_mmap_iterate): ... this. Update all users.
41578
41579 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
41580 to make it more readable. Rename to ...
41581 (grub_machine_mmap_iterate): ... this.
41582
41583 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
41584 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
41585 (grub_multiboot): Allocate an extra region after the payload, and fill
41586 it with a Multiboot memory map. Adjust a.out loader to calculate size
41587 with the extra space.
41588 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
41589 with the extra space.
41590
f8aa0f43 415912008-08-17 Carles Pina i Estany <carles@pina.cat>
41592
9807deb9 41593 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
f8aa0f43 41594
605f5bb6 415952008-08-17 Felix Zielcke <fzielcke@z-51.de>
41596
41597 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
41598 mdate-sh to the list `find' searches for.
41599 * DISTLIST: Regenerated.
41600
210db6c6 416012008-08-16 Felix Zielcke <fzielcke@z-51.de>
41602
41603 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
41604 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
48cdbfd4 41605 genmoddep.awk, gensymlist.sh.in.
41606 (DISTDIRS): Add bus, docs, hook, lib.
210db6c6 41607 * DISTLIST: Regenerated.
48cdbfd4 41608 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
210db6c6 41609
1082b929 416102008-08-16 Robert Millan <rmh@aybabtu.com>
41611
41612 * disk/raid.c (grub_raid_init): Handle/report errors set by
41613 grub_device_iterate().
41614 * disk/lvm.c (grub_lvm_init): Likewise.
41615
42ce5170 416162008-08-15 Bean <bean123ch@gmail.com>
41617
41618 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
41619 and datehook.mod.
41620 (datetime_mod_SOURCES): New macro.
41621 (datetime_mod_CFLAGS): Likewise.
41622 (datetime_mod_LDFLAGS): Likewise.
41623 (date_mod_SOURCES): Likewise.
41624 (date_mod_CFLAGS): Likewise.
41625 (date_mod_LDFLAGS): Likewise.
41626 (datehook_mod_SOURCES): Likewise.
41627 (datehook_mod_CFLAGS): Likewise.
41628 (datehook_mod_LDFLAGS): Likewise.
41629
41630 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
41631 and datehook.mod.
41632 (datetime_mod_SOURCES): New macro.
41633 (datetime_mod_CFLAGS): Likewise.
41634 (datetime_mod_LDFLAGS): Likewise.
41635 (date_mod_SOURCES): Likewise.
41636 (date_mod_CFLAGS): Likewise.
41637 (date_mod_LDFLAGS): Likewise.
41638 (datehook_mod_SOURCES): Likewise.
41639 (datehook_mod_CFLAGS): Likewise.
41640 (datehook_mod_LDFLAGS): Likewise.
41641
41642 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
41643 and datehook.mod.
41644 (datetime_mod_SOURCES): New macro.
41645 (datetime_mod_CFLAGS): Likewise.
41646 (datetime_mod_LDFLAGS): Likewise.
41647 (date_mod_SOURCES): Likewise.
41648 (date_mod_CFLAGS): Likewise.
41649 (date_mod_LDFLAGS): Likewise.
41650 (datehook_mod_SOURCES): Likewise.
41651 (datehook_mod_CFLAGS): Likewise.
41652 (datehook_mod_LDFLAGS): Likewise.
41653
41654 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
41655 and datehook.mod.
41656 (datetime_mod_SOURCES): New macro.
41657 (datetime_mod_CFLAGS): Likewise.
41658 (datetime_mod_LDFLAGS): Likewise.
41659 (date_mod_SOURCES): Likewise.
41660 (date_mod_CFLAGS): Likewise.
41661 (date_mod_LDFLAGS): Likewise.
41662 (datehook_mod_SOURCES): Likewise.
41663 (datehook_mod_CFLAGS): Likewise.
41664 (datehook_mod_LDFLAGS): Likewise.
41665
41666 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
41667 and datehook.mod.
41668 (datetime_mod_SOURCES): New macro.
41669 (datetime_mod_CFLAGS): Likewise.
41670 (datetime_mod_LDFLAGS): Likewise.
41671 (date_mod_SOURCES): Likewise.
41672 (date_mod_CFLAGS): Likewise.
41673 (date_mod_LDFLAGS): Likewise.
41674 (datehook_mod_SOURCES): Likewise.
41675 (datehook_mod_CFLAGS): Likewise.
41676 (datehook_mod_LDFLAGS): Likewise.
41677
41678 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
41679
41680 * commands/date.c: New file.
41681
41682 * hook/datehook.c: Likewise.
41683
41684 * include/grub/lib/datetime.h: Likewise.
41685
41686 * include/grub/i386/cmos.h: Likewise.
41687
41688 * lib/datetime.c: Likewise.
41689
41690 * lib/i386/datetime.c: Likewise.
41691
41692 * lib/efi/datetime.c: Likewise.
41693
0e9242da 416942008-08-14 Robert Millan <rmh@aybabtu.com>
41695
41696 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
41697 (grub_mkelfimage_SOURCES): New variable.
41698 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
41699
41700 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
41701 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
41702 * conf/powerpc-ieee1275.rmk: Likewise.
41703 * conf/i386-ieee1275.rmk: Likewise.
41704
41705 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
41706 * kern/i386/coreboot/init.c: Likewise.
41707
41708 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
41709 with `<grub/cpu/kernel.h>'.
41710 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
41711 to ...
41712 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
41713 * kern/i386/coreboot/startup.S: Likewise.
41714
41715 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
41716 (GRUB_MOD_GAP): Remove.
41717 * include/grub/powerpc/kernel.h: New file.
41718 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
41719 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
41720 * include/grub/i386/kernel.h: New file.
41721 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
41722 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
41723 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
41724
41725 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
41726 `grub-mkelfimage'.
41727 Use --directory when invoking grub_mkimage.
41728
41729 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
41730 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
41731 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
41732 and GRUB_KERNEL_CPU_PREFIX.
41733
b86408f8 417342008-08-14 Felix Zielcke <fzielcke@z-51.de>
41735
d5e619ca 41736 * include/grub/err.h (grub_err_printf): New function prototype.
41737 * util/misc.c (grub_err_printf): New function.
41738 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
41739 grub_printf.
41740 * kern/err.c (grub_print_error): Use grub_err_printf.
b86408f8 41741
7161f0e0 417422008-08-13 Robert Millan <rmh@aybabtu.com>
41743
41744 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
41745
a1967522 417462008-08-13 Robert Millan <rmh@aybabtu.com>
41747
41748 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
41749 boot entry.
41750
371458b5 417512008-08-12 Robert Millan <rmh@aybabtu.com>
41752
41753 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
41754 of the relocation code from here ...
41755 (grub_multiboot): ... to here.
41756 (forward_relocator, backward_relocator): Move from here ...
41757 * kern/i386/loader.S (grub_multiboot_forward_relocator)
41758 (grub_multiboot_backward_relocator): ... to here.
41759 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
41760 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
41761 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
41762 (grub_multiboot_forward_relocator_end)
41763 (grub_multiboot_backward_relocator)
41764 (grub_multiboot_backward_relocator_end): New variables.
41765
05f9452b 417662008-08-12 Bean <bean123ch@gmail.com>
41767
41768 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
41769
20024ab0 417702008-08-11 Robert Millan <rmh@aybabtu.com>
41771
41772 * kern/i386/linuxbios/startup.S: Move from here ...
41773 * kern/i386/coreboot/startup.S: ... to here.
41774
41775 * kern/i386/linuxbios/init.c: Move from here ...
41776 * kern/i386/coreboot/init.c: ... to here.
41777
41778 * kern/i386/linuxbios/table.c: Move from here ...
41779 * kern/i386/coreboot/mmap.c: ... to here.
41780
41781 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
41782
e352e9cd 417832008-08-11 Robert Millan <rmh@aybabtu.com>
41784
41785 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
41786 errors. Leave it to the upper layer to handle them.
41787
2d05bc6a 417882008-08-09 Christian Franke <franke@computer.org>
41789
41790 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
41791 * conf/common.rmk: Install `grub-pe2elf' only if requested.
41792 Install `grub.d/10_windows' only on Cygwin.
41793 * configure.ac: Add subst of `target_os'.
41794 Check `target_os' also before setting TARGET_OBJ2ELF.
41795 Add `--enable-grub-pe2elf'.
41796
042bd419 417972008-08-08 Robert Millan <rmh@aybabtu.com>
41798
41799 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
41800 (grub_last_time): Change type to grub_uint64_t.
41801 (grub_disk_open): Migrate code from to using grub_get_time_ms().
41802 (grub_disk_close): Likewise.
41803
41804 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
41805 (run_menu): Migrate code from to using grub_get_time_ms().
41806
41807 * util/misc.c (grub_get_time_ms): New function.
41808
7f280db5 418092008-08-08 Marco Gerards <marco@gnu.org>
41810
41811 * disk/ata.c (grub_ata_regget): Change return type to
41812 `grub_uint8_t'.
41813 (grub_ata_regget2): Likewise.
41814 (grub_ata_wait_status): New function.
41815 (grub_ata_wait_busy): Removed function, updated all users to use
41816 `grub_ata_wait_status'.
41817 (grub_ata_wait_drq): Likewise.
41818 (grub_ata_cmd): New function.
41819 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
41820 error handling.
41821 (grub_ata_pio_write): Add error handling.
41822 (grub_atapi_identify): Likewise.
41823 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
41824 handling.
41825 (grub_ata_identify): Use `grub_ata_cmd' and improve error
41826 handling. Actually use the detected registers. Reorder the
41827 detection logic such that it is easier to read.
41828 (grub_ata_pciinit): Do not assign the same ID to each controller.
41829 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
41830 handling.
41831 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
41832
41833 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
41834
1fbc5e66 418352008-08-08 Marco Gerards <marco@gnu.org>
41836
41837 * NEWS: Update.
41838
819ce6c0 418392008-08-07 Bean <bean123ch@gmail.com>
41840
41841 * include/grub/x86_64/pci.h: New file.
41842
5c41d44d 418432008-08-07 Christian Franke <franke@computer.org>
41844
41845 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
41846 (TIMER2_GATE): Likewise.
41847 (grub_pit_wait): Add enable/disable of the timer2 gate
41848 bit of port 0x61. This fixes a possible infinite loop.
41849
5ebc275d 418502008-08-07 Bean <bean123ch@gmail.com>
41851
41852 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
41853 kern/i386/tsc.c and kern/i386/pit.c.
41854
41855 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
41856 x86_64 platform.
41857
41858 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
41859 <grub/i386/tsc.h>.
41860
41861 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
41862
e383b3d0 418632008-08-07 Bean <bean123ch@gmail.com>
41864
41865 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
41866
41867 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
41868
41869 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
41870 multiple inclusion. Add #include <grub/types.h>.
41871
1cbb58ac 418722008-08-06 Christian Franke <franke@computer.org>
41873
41874 * conf/common.rmk: Build and install `10_windows'.
41875 * util/grub.d/10_windows.in: New script.
41876
337f5a1e 418772008-08-06 Pavel Roskin <proski@gnu.org>
41878
41879 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
41880
057bc4ac 418812008-08-06 Robert Millan <rmh@aybabtu.com>
41882
41883 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
41884 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
41885
2b99f123 418862008-08-06 Bean <bean123ch@gmail.com>
41887
41888 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
41889 (grub_pxefs_fs_int): Remove dummy definition.
41890 (grub_pxefs_open): Use data->block_size to store the current block
41891 size setting.
41892 (grub_pxefs_read): Use block size stored in data->block_size. As the
41893 value of grub_pxe_blksize can be changed after the file is opened.
41894
9f0234cb 418952008-08-06 Bean <bean123ch@gmail.com>
41896
41897 * fs/i386/pc/pxe.c (curr_file): new variable.
41898 (grub_pxefs_open): Simply the handling of pxe file system. Don't
41899 require the dummy internal file system anymore.
41900 (grub_pxefs_read): Removed.
41901 (grub_pxefs_close): Likewise.
41902 (grub_pxefs_fs_int): Likewise.
41903 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
41904 connection when we switch file.
41905 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
41906
a55d42e0 419072008-08-06 Robert Millan <rmh@aybabtu.com>
41908
41909 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
41910 `halt.mod'.
41911 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
41912 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
41913
41914 * kern/i386/halt.c: New file.
41915 * kern/i386/reboot.c: Likewise.
41916 * include/grub/i386/reboot.h: Likewise.
41917 * include/grub/i386/halt.h: Likewise.
41918
41919 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
41920 Include `<grub/cpu/halt.h>'.
41921 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
41922 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
41923
41924 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
41925 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
41926 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
41927 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
41928 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
41929 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
41930 from here ...
41931 * include/grub/i386/at_keyboard.h: ... to here.
41932
24371d26 419332008-08-05 Robert Millan <rmh@aybabtu.com>
41934
41935 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
41936 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
41937 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
41938 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
41939 `kern/generic/millisleep.c'.
41940
41941 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
41942 instead of grub_get_rtc().
41943 (grub_tsc_init): Initialize `tsc_boot_time'.
41944
41945 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
41946 (grub_machine_init): Use grub_tsc_init() rather than
41947 installing an RTC-based handler via grub_install_get_time_ms().
41948
41949 * kern/i386/pit.c: New file.
41950 * include/grub/i386/pit.h: Likewise.
41951
9e7007b3 419522008-08-05 Bean <bean123ch@gmail.com>
41953
41954 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
41955
41956 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
41957 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
41958 (pxe_mod_SOURCES): New macro.
41959 (pxe_mod_CFLAGS): Likewise.
41960 (pxe_mod_LDFLAGS): Likewise.
41961 (pxecmd_mod_SOURCES): Likewise.
41962 (pxecmd_mod_CFLAGS): Likewise.
41963 (pxecmd_mod_LDFLAGS): Likewise.
41964
41965 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
41966 (grub_pxe_call): Likewise.
41967
41968 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
41969
41970 * commands/i386/pc/pxecmd.c: New file.
41971
9f0234cb 41972 * fs/i386/pc/pxe.c: Likewise.
9e7007b3 41973
41974 * include/grub/i386/pc/pxe.h: Likewise.
41975
6977d49f 419762008-08-05 Bean <bean123ch@gmail.com>
41977
41978 * util/console.c (grub_console_cur_color): New variable.
41979 (grub_console_standard_color): Likewise.
41980 (grub_console_normal_color): Likewise.
41981 (grub_console_highlight_color): Likewise.
41982 (color_map): Likewise.
41983 (use_color): Likewise.
41984 (NUM_COLORS): New macro.
41985 (grub_ncurses_setcolorstate): Handle color properly.
41986 (grub_ncurses_setcolor): Don't change color here, just remember the
41987 settings, color will be set in grub_ncurses_setcolorstate.
41988 (grub_ncurses_getcolor): New function.
41989 (grub_ncurses_init): Initialize color pairs.
41990 (grub_ncurses_term): New member grub_ncurses_getcolor.
41991
9c2ff3ee 419922008-08-05 Colin D Bennett <colin@gibibit.com>
337f5a1e 41993
9c2ff3ee 41994 High resolution timer support. Implemented for x86 CPUs using TSC.
41995 Extracted generic grub_millisleep() so it's linked in only as needed.
41996 This requires a Pentium compatible CPU; if the RDTSC instruction is
41997 not supported, then it falls back on the generic grub_get_time_ms()
41998 implementation that uses the machine's RTC.
41999
42000 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
42001 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
42002 `kern/generic/millisleep.c'.
42003
42004 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
42005 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
42006
42007 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
42008 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
42009
42010 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
42011
42012 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
42013 `kern/generic/millisleep.c'.
42014
42015 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
42016
42017 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
42018
42019 * kern/generic/rtc_get_time_ms.c: New file.
42020
42021 * kern/generic/millisleep.c: New file.
337f5a1e 42022
9c2ff3ee 42023 * kern/misc.c: Don't include
42024 <kern/time.h> anymore.
42025 (grub_millisleep_generic): Removed.
42026
42027 * commands/sleep.c (grub_interruptible_millisleep): Uses
42028 grub_get_time_ms() instead of grub_get_rtc().
42029
42030 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
42031 function.
42032 (grub_cpu_is_cpuid_supported): New inline function.
42033 (grub_cpu_is_tsc_supported): New inline function.
42034 (grub_tsc_init): New function prototype.
42035 (grub_tsc_get_time_ms): New function prototype.
42036
42037 * kern/i386/tsc.c (grub_get_time_ms): New file.
42038
42039 * include/grub/time.h: Include <grub/types.h.
42040 (grub_millisleep_generic): Removed.
42041 (grub_get_time_ms): New prototype.
42042 (grub_install_get_time_ms): New prototype.
42043 (grub_rtc_get_time_ms): New prototype.
42044
42045 * kern/time.c (grub_get_time_ms): New function.
42046 (grub_install_get_time_ms): New function.
42047
42048 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
42049 <grub/time.h> anymore.
42050 (grub_millisleep): Removed.
42051 (grub_machine_init): Call grub_tsc_init.
42052
42053 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
42054 get_time_ms() implementation.
42055
42056 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
42057 (ieee1275_get_time_ms): New function.
42058 (grub_machine_init): Install get_time_ms() implementation.
42059
42060 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
42061 (grub_machine_init): Call grub_tsc_init().
42062 (grub_millisleep): Removed.
bf06a93f 42063
9c2ff3ee 42064 * kern/ieee1275/init.c (grub_millisleep): Removed.
42065 (grub_machine_init): Install ieee1275_get_time_ms()
42066 implementation.
42067 (ieee1275_get_time_ms): New function.
42068 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
42069 real work.
42070
9ec92aaf 420712008-08-05 Marco Gerards <marco@gnu.org>
42072
42073 * disk/ata.c: Include <grub/pci.h>.
42074 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
42075 (grub_ata_initialize): Rewritten.
42076 (grub_ata_device_initialize): New function.
42077
8d23f507 420782008-08-04 Pavel Roskin <proski@gnu.org>
42079
42080 * kern/main.c: Include grub/mm.h.
42081
5e15ee3d 420822008-08-04 Robert Millan <rmh@aybabtu.com>
42083
42084 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
42085 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
42086 corruption problem).
42087
a9053f8f 420882008-08-04 Robert Millan <rmh@aybabtu.com>
42089
42090 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
42091 warnings introduced in my last commit.
42092
dd19c7d7 420932008-08-03 Robert Millan <rmh@aybabtu.com>
42094
42095 Make PCI available on all i386 architectures.
42096
42097 * include/grub/i386/pc/pci.h: Move from here ...
42098 * include/grub/i386/pci.h: ... to here.
42099
42100 * include/grub/i386/pc/pci.h: Remove.
42101 * include/grub/i386/efi/pci.h: Remove.
42102 * include/grub/x86_64/efi/pci.h: Remove.
42103
42104 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
42105 `<grub/cpu/pci.h>'.
42106
42107 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
42108 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
42109 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
42110
42111 * conf/i386-ieee1275.rmk: Likewise.
42112
e14a6184 421132008-08-03 Robert Millan <rmh@aybabtu.com>
42114
42115 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
42116 (grub_console_setcursor): Make it possible to set cursor off.
42117
52768e37 421182008-08-03 Robert Millan <rmh@aybabtu.com>
42119
42120 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
42121 of modules instead of assuming which platform provides what.
42122 * util/update-grub.in: Likewise.
42123
2d52f57f 421242008-08-03 Robert Millan <rmh@aybabtu.com>
42125
42126 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
42127 instead of `grub_install_dos_part' to determine whether a drive needs
42128 to be prepended to prefix (`grub_install_dos_part' is not reliable,
825aa57a 42129 because it can be overridden when loading GRUB via Multiboot).
2d52f57f 42130
2a5cd121 421312008-08-02 Robert Millan <rmh@aybabtu.com>
42132
42133 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
42134
93808428 421352008-08-02 Robert Millan <rmh@aybabtu.com>
42136
42137 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
42138 of informational grub_dprintf() calls.
42139
3bd0a12a 421402008-08-02 Robert Millan <rmh@aybabtu.com>
42141
42142 * disk/memdisk.c (memdisk_size): Don't initialize.
42143 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
42144
42145 * include/grub/i386/pc/kernel.h
42146 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
42147 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
42148 (grub_memdisk_image_size, grub_arch_memdisk_addr)
42149 (grub_arch_memdisk_size): Remove.
42150
42151 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
42152 field (was only used to transfer a constant). Add `type' field to
42153 support multiple module types.
42154 (grub_module_iterate): New function.
42155
42156 * kern/device.c (grub_device_open): Do not hide error messages
42157 when grub_disk_open() fails. Use grub_print_error() instead.
42158
42159 * kern/i386/pc/init.c (grub_arch_modules_addr)
42160 (grub_arch_memdisk_size): Remove functions.
42161 (grub_arch_modules_addr): Return the module address in high memory
42162 (now that it isn't copied anymore).
42163
42164 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
42165 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
42166 decompression routine (grub_total_module_size already includes that
42167 now). Don't copy modules back to low memory.
42168
42169 * kern/main.c: Include `<grub/mm.h>'.
42170 (grub_load_modules): Split out (and use) ...
42171 (grub_module_iterate): ... this function, which iterates through
42172 module objects and runs a hook.
42173 Comment out grub_mm_init_region() call, as it would cause non-ELF
42174 modules to be overwritten.
42175
42176 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
42177 the memdisk image in its own region, make it part of the module list.
42178 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
42179 (main): Parse --memdisk|-m option, and pass user-provided path as
42180 parameter to generate_image().
42181 (add_segments): Pass `memdisk_path' down to load_modules().
42182 (load_modules): Embed memdisk image in module section when requested.
42183 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
42184 `header.type' instead of `header.offset'.
42185
42186 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
42187 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
42188 (memdisk_mod_LDFLAGS): New variables.
42189 * conf/i386-coreboot.rmk: Likewise.
42190 * conf/i386-ieee1275.rmk: Likewise.
42191
a927cc73 421922008-08-02 Robert Millan <rmh@aybabtu.com>
42193
42194 * loader/i386/pc/multiboot.c (playground, forward_relocator)
42195 (backward_relocator): New variables. Used to allocate and relocate
42196 the payload, respectively.
42197 (grub_multiboot_load_elf32): Load into heap instead of requested
825aa57a 42198 address, install the appropriate relocator code in each bound of
a927cc73 42199 the payload, and set the entry point such that
42200 grub_multiboot_real_boot() will jump to one of them.
42201
42202 * kern/i386/loader.S (grub_multiboot_payload_size)
42203 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
42204 (grub_multiboot_payload_entry_offset): New variables.
42205 (grub_multiboot_real_boot): Set cpu context to what the relocator
42206 expects, and jump to the relocator instead of the payload.
42207
42208 * include/grub/i386/loader.h (grub_multiboot_payload_size)
42209 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
42210 (grub_multiboot_payload_entry_offset): Export.
42211
b15d8a0c 422122008-08-01 Bean <bean123ch@gmail.com>
42213
42214 * normal/menu_entry.c (editor_getline): Don't return the original
42215 string as result, as it will be released by lexer once it has done
42216 using it.
42217
cdfb3d22 422182008-08-01 Robert Millan <rmh@aybabtu.com>
42219
42220 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
42221 within menuentries, not before them.
42222 util/grub.d/10_hurd.in: Likewise.
42223
9175e93d 422242008-08-01 Bean <bean123ch@gmail.com>
42225
42226 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
42227 (bufio_mod_SOURCES): New macro.
42228 (bufio_mod_CFLAGS): Likewise.
42229 (bufio_mod_LDFLAGS): Likewise.
42230
42231 * include/grub/bufio.h: New file.
42232
42233 * io/bufio.c: Likewise.
42234
42235 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
42236 (grub_video_reader_png): Use grub_buffile_open to open file.
42237
42238 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
42239 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
42240
42241 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
42242 (grub_video_reader_tga): Use grub_buffile_open to open file.
42243
42244 * font/manager.c: Include <grub/bufio.h>.
42245 (add_font): Use grub_buffile_open to open file.
42246
3d8383e7 422472008-07-31 Robert Millan <rmh@aybabtu.com>
42248
42249 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
42250 ELF segments, use a macro for arbitrarily accessing any of them instead
42251 of preparing a pointer that allows access to one at a time.
42252 (grub_multiboot_load_elf64): Likewise.
42253
16e641b6 422542008-07-31 Bean <bean123ch@gmail.com>
42255
42256 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
42257 GRUB_KERNEL_MACHINE_DATA_END.
42258
59198b72 422592008-07-30 Robert Millan <rmh@aybabtu.com>
42260
42261 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
42262 Increase from 0x50 to 0x60.
42263 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
42264 use UUIDs to identify the root drive for them. If that's not
42265 possible, abort.
42266 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
42267 check, for cross-disk installs.
42268
ae88bca3 422692008-07-30 Robert Millan <rmh@aybabtu.com>
42270
42271 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
42272 is non-empty, use it to set the `prefix' environment variable instead
42273 of the usual approach.
42274 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
42275 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
42276 environment variable instead of dummy make_install_device().
42277
42278 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
42279 (start): Insert a data section, with `grub_prefix' variable.
825aa57a 42280 * kern/i386/linuxbios/startup.S: Likewise.
ae88bca3 42281
42282 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
42283 New variable reference.
42284 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
42285 New macro. Defines offset of `grub_prefix' within startup.S (relative
42286 to `start').
42287 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
42288 section within startup.S (relative to `start').
42289 * include/grub/i386/coreboot/kernel.h: Likewise.
42290
42291 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
42292 Overwrite grub_prefix with its contents, at the beginning of the
42293 first segment.
42294 (main): Understand -p|--prefix.
42295
14f41dd1 422962008-07-30 Robert Millan <rmh@aybabtu.com>
42297
42298 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
42299
4ca049a3 423002008-07-30 Robert Millan <rmh@aybabtu.com>
42301
42302 * term/i386/pc/vga_text.c (grub_console_cls): Use
42303 grub_console_gotoxy() to go back to beginning of the screen.
42304 Found by Patrick Georgi <patrick.georgi@coresystems.de>
42305
2921d337 423062008-07-29 Christian Franke <franke@computer.org>
42307
42308 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
42309 Add conversion of emulated mount points on Cygwin.
42310
b609876d 423112008-07-29 Christian Franke <franke@computer.org>
42312
42313 * util/update-grub.in: Add a check for admin
42314 group on Cygwin.
42315 Remove old `grub.cfg.new' before creation.
42316 Add `-f' to `mv' to handle the different filesystem
42317 semantics of Windows.
42318
e93e4679 423192008-07-29 Bean <bean123ch@gmail.com>
42320
42321 * normal/main.c (get_line): Fix buffer overflow bug.
42322
41694fd0 423232008-07-28 Robert Millan <rmh@aybabtu.com>
42324
42325 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
42326 (struct grub_apple_header): New struct. Describes the layout of
42327 the partmap header.
42328 (apple_partition_map_iterate): Check the header magic as well as the
42329 partition magic (which was already being checked).
42330
cfd0b4e6 423312008-07-28 Pavel Roskin <proski@gnu.org>
42332
42333 * genmk.rb: Add a warning to the beginning of the output that
42334 it's a generated file and should not be edited.
42335
93cce016 423362008-07-28 Robert Millan <rmh@aybabtu.com>
42337
42338 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
42339 with the same number are found, just use issue a warning with
42340 grub_dprintf(), as this error has been reported to be non-fatal.
c298def0 42341
cd1df915 423422008-07-27 Robert Millan <rmh@aybabtu.com>
42343
42344 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
42345 information.
42346
b70a8427 423472008-07-27 Bean <bean123ch@gmail.com>
42348
42349 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
42350 (grub_fat_find_dir): Ignore case when comparing filename.
42351
8f5e379f 423522008-07-27 Bean <bean123ch@gmail.com>
42353
42354 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
42355 smallino, as it's more descriptive, and i8count can be confused with
42356 the other field count.
42357 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
42358 inode type.
42359
a85cd5a0 423602008-07-27 Bean <bean123ch@gmail.com>
42361
42362 * commands/crc.c: New file.
42363
42364 * lib/crc.c: Likewise.
42365
42366 * include/grub/lib/crc.h: Likewise.
42367
42368 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
42369
42370 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
42371 (hexdump): Move this function to ...
42372
42373 * lib/hexdump.c: ... here.
42374
42375 * include/grub/hexdump.h: Renamed to ...
42376
42377 * include/grub/lib/hexdump.h: ... this.
42378
42379 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
42380
42381 * util/grub-editenv.c: Likewise.
42382
42383 * include/envblk.h: Renamed to ...
42384
42385 * include/lib/envblk.h: ... this.
42386
42387 * util/envblk.c: Renamed to ...
42388
42389 * lib/envblk.c: ... this.
42390
42391 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
42392 lib/hexdump.c.
42393 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
42394 (pkglib_MODULES): Add crc.mod.
42395 (hexdump_mod_SOURCES): Add lib/hexdump.c.
42396 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
42397 (crc_mod_SOURCES): New macro.
42398 (crc_mod_CFLAGS): Likewise.
42399 (crc_mod_LDFLAGS): Likewise.
42400
42401 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
42402
42403 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42404
42405 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
42406
42407 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42408
42409 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
42410
c298def0 424112008-07-27 Felix Zielcke <fzielcke@z-51.de>
8749e9e5 42412
42413 * commands/help.c: Include <grub/term.h>.
42414 (TERM_WIDTH): Removed. Updated all users.
42415
cc349fb3 424162008-07-27 Pavel Roskin <proski@gnu.org>
42417
42418 * util/getroot.c (find_root_device): Rephrase a comment to avoid
42419 spurious warnings about a comment within a comment.
42420
9051607e 424212008-07-25 Robert Millan <rmh@aybabtu.com>
42422
42423 * util/getroot.c (find_root_device): Skip devices that match
42424 /dev/dm-[0-9]. This lets the real device be found for any type of
42425 abstraction (LVM, EVMS, RAID..).
42426 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
42427 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
42428 device is found first, find_root_device() will now skip it.
42429
01453bfc 424302008-07-24 Pavel Roskin <proski@gnu.org>
42431
42432 * include/grub/types.h: Use __builtin_bswap32() and
42433 __builtin_bswap64() with gcc 4.3 and newer.
42434
6af9849f 424352008-07-24 Christian Franke <franke@computer.org>
42436
3a0fa256 42437 * util/i386/pc/grub-install.in: If `--debug' is specified,
42438 pass `--verbose' to grub-setup.
42439 Abort script if make_system_path_relative_to_its_root() fails.
42440
7810e747 424412008-07-24 Bean <bean123ch@gmail.com>
42442
42443 * configure.ac: Fixed a bug caused by the previous cygwin patch,
42444 variable `target_platform' should be `platform'.
42445
42290e17 424462008-07-24 Bean <bean123ch@gmail.com>
42447
51cc5193 42448 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
42290e17 42449 (grub_png_init_fixed_block): New function.
42450 (grub_png_decode_image_data): Handle fixed huffman code compression.
42451
2a8a80e4 424522008-07-24 Bean <bean123ch@gmail.com>
42453
42454 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
42455 (grub_pe2elf_SOURCES): New macro.
42456 (CLEANFILES): Add grub-pe2elf.
42457
42458 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
42459 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
42460 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
42461 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
42462 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
42463 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
42464 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
42465 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
42466 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
42467 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
42468 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
42469 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
42470 (GRUB_PE32_DT_FUNCTION): Likewise.
42471 (GRUB_PE32_REL_I386_DIR32): Likewise.
42472 (GRUB_PE32_REL_I386_REL32): Likewise.
42473 (grub_pe32_symbol): New structure.
42474 (grub_pe32_reloc): Likewise.
42475
42476 * util/grub-pe2elf.c: New file.
42477
42478 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
42479 start symbol in non pc platform.
42480
42481 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
42482
42483 The following patches are from Christian Franke.
42484
42485 * include/grub/dl.h: Remove .previous, gas supports this only
42486 for ELF format.
42487
42488 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
42489 Remove .type, gas supports this only for ELF format.
42490
42491 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
42492 nullbytes in symbol table. This fixes an infinite loop if table is
42493 zero filled.
42494
42495 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
42496 TARGET_IMG_LDFLAGS and EXEEXT.
42497
42498 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
42499 TARGET_IMG_LDFLAGS_AC.
42500 (grub_CHECK_STACK_ARG_PROBE): New function.
42501
42502 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
42503
42504 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
42505
42506 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
42507 to set TARGET_IMG_LD* accordingly.
42508 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
42509 Add call to grub_CHECK_STACK_ARG_PROBE.
42510 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
42511
42512 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
42513
42514 * genmk.rb: Add EXEEXT to CLEANFILES.
42515
12ccdb75 425162008-07-23 Robert Millan <rmh@aybabtu.com>
42517
42518 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
42519 define the codes for arrows and lines used for the menu).
42520 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
42521 as well.
42522
42523 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
42524 fonts, because the latter are too slow.
42525
18eeaf04 425262008-07-21 Bean <bean123ch@gmail.com>
42527
42528 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
42529 a20. Run keyboard test last, as it will cause macbook to halt.
42530
b095e2ad 425312008-07-18 Pavel Roskin <proski@gnu.org>
42532
42533 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
42534 load foreign architecture modules correctly anyway. Keep
42535 support for loading host architecture modules, whether we
42536 compile them or not.
42537
737feb35 425382008-07-17 Pavel Roskin <proski@gnu.org>
42539
3f4ce737 42540 * configure.ac: Use -m32 or -m64 regardless of whether we had to
42541 change target_cpu. The compiler default can mismatch target_cpu
42542 in any case.
42543
4ad2d049 42544 * disk/efi/efidisk.c: Fix format warnings on x86_64.
42545 * kern/efi/efi.c: Likewise.
42546
f6130a12 42547 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
42548 target compiler is functional.
42549 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
42550 are set up.
42551
58393a2d 42552 * configure.ac: Default to efi platform for x86_64-apple. Allow
42553 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
42554 adjustments from the rest, only do them if target is not
42555 explicitly given. Merge other adjustments with the final sanity
42556 check. Remove an extraneous check for supported CPU. Be
42557 specific which CPU and which platform is not supported.
42558
737feb35 42559 * configure.ac: Default to pc platform for x86_64.
42560
546f966a 425612008-07-17 Robert Millan <rmh@aybabtu.com>
42562
42563 Partial LinuxBIOS -> Coreboot rename.
42564
42565 * conf/i386-linuxbios.rmk: Renamed to ...
42566 * conf/i386-coreboot.rmk: ... this.
42567 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
42568 * configure.ac: Accept "coreboot" as input platform (but maintain
42569 compatibility with "linuxbios").
42570 * include/grub/i386/linuxbios: Renamed to ...
42571 * include/grub/i386/coreboot: ... this.
42572
20011694 425732008-07-17 Bean <bean123ch@gmail.com>
42574
42575 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
c11f6d16 42576 (appleldr_mod_SOURCE): New variable.
20011694 42577 (appleldr_mod_CFLAGS): Likewise.
42578 (appleldr_mod_LDFLAGS): Likewise.
42579 (pci_mod_SOURCES): Likewise.
42580 (pci_mod_CFLAGS): Likewise.
42581 (pci_mod_LDFLAGS): Likewise.
42582 (lspci_mod_SOURCES): Likewise.
42583 (lspci_mod_CFLAGS): Likewise.
42584 (lspci_mod_LDFLAGS): Likewise.
42585
42586 * conf/x86_64-efi.rmk: New file.
42587
42588 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
42589 macro.
42590 (grub_efidisk_write): Likewise.
42591
42592 * include/efi/api.h (efi_call_0): New macro.
42593 (efi_call_1): Likewise.
42594 (efi_call_2): Likewise.
42595 (efi_call_3): Likewise.
42596 (efi_call_4): Likewise.
42597 (efi_call_5): Likewise.
42598 (efi_call_6): Likewise.
42599
42600 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
42601 grub_rescue_cmd_chainloader.
42602
42603 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
42604 (grub_pe32_optional_header): Change some fields based on i386 or
42605 x86_64 platform.
42606 (GRUB_PE32_PE32_MAGIC): Likewise.
42607
42608 * include/grub/efi/uga_draw.h: New file.
42609
42610 * include/grub/elf.h (STN_ABS): New constant.
42611 (R_X86_64_NONE): Relocation constant for x86_64.
42612 (R_X86_64_64): Likewise.
42613 (R_X86_64_PC32): Likewise.
42614 (R_X86_64_GOT32): Likewise.
42615 (R_X86_64_PLT32): Likewise.
42616 (R_X86_64_COPY): Likewise.
42617 (R_X86_64_GLOB_DAT): Likewise.
42618 (R_X86_64_JUMP_SLOT): Likewise.
42619 (R_X86_64_RELATIVE): Likewise.
42620 (R_X86_64_GOTPCREL): Likewise.
42621 (R_X86_64_32): Likewise.
42622 (R_X86_64_32S): Likewise.
42623 (R_X86_64_16): Likewise.
42624 (R_X86_64_PC16): Likewise.
42625 (R_X86_64_8): Likewise.
42626 (R_X86_64_PC8): Likewise.
42627
42628 * include/grub/i386/efi/pci.h: New file.
42629
42630 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
42631 Change it value based on platform.
42632 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
42633 (GRUB_E820_RAM): Likewise.
42634 (GRUB_E820_RESERVED): Likewise.
42635 (GRUB_E820_ACPI): Likewise.
42636 (GRUB_E820_NVS): Likewise.
42637 (GRUB_E820_EXEC_CODE): Likewise.
42638 (GRUB_E820_MAX_ENTRY): Likewise.
42639 (grub_e820_mmap): New structure.
42640 (linux_kernel_header): Change the efi field according to different
42641 kernel version, also field from linux_kernel_header.
42642
42643 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
42644
42645 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
42646 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
42647 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
42648 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
42649 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
42650 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
42651 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
42652 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
42653 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
42654 (GRUB_PCI_ADDR_IO_MASK): Likewise.
42655
42656 * include/grub/x86_64/efi/kernel.h: New file.
42657
42658 * include/grub/x86_64/efi/loader.h: Likewise.
42659
42660 * include/grub/x86_64/efi/machine.h: Likewise.
42661
42662 * include/grub/x86_64/efi/pci.h: Likewise.
42663
42664 * include/grub/x86_64/efi/time.h: Likewise.
42665
42666 * include/grub/x86_64/linux.h: Likewise.
42667
42668 * include/grub/x86_64/setjmp.h: Likewise.
42669
42670 * include/grub/x86_64/time.h: Likewise.
42671
42672 * include/grub/x86_64/types.h: Likewise.
42673
42674 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
42675 GRUB_TARGET_SIZEOF_VOID_P.
42676
42677 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
42678 (grub_efi_locate_handle): Likewise.
42679 (grub_efi_open_protocol): Likewise.
42680 (grub_efi_set_text_mode): Likewise.
42681 (grub_efi_stall): Likewise.
42682 (grub_exit): Likewise.
42683 (grub_reboot): Likewise.
42684 (grub_halt): Likewise.
42685 (grub_efi_exit_boot_services): Likewise.
42686 (grub_get_rtc): Likewise.
42687
42688 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
42689 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
42690 (grub_efi_allocate_pages): Wrap efi calls.
42691 (grub_efi_free_pages): Wrap efi calls.
42692 (grub_efi_get_memory_map): Wrap efi calls.
42693
42694 * kern/x86_64/dl.c: New file.
42695
42696 * kern/x86_64/efi/callwrap.S: Likewise.
42697
42698 * kern/x86_64/efi/startup.S: Likewise.
42699
42700 * loader/efi/appleloader.c: Likewise.
42701
42702 * loader/efi/chainloader.c (cmdline): New variable.
42703 (grub_chainloader_unload): Wrap efi calls.
42704 (grub_chainloader_boot): Likewise.
42705 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
42706 command line.
42707
42708 * loader/efi/chainloader_normal.c (chainloader_command):
42709 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
42710 command line.
42711
42712 * loader/i386/efi/linux.c (allocate_pages): Change allocation
42713 method.
42714 (grub_e820_add_region): New function.
42715 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
42716 booting.
42717 (grub_find_video_card): New function.
42718 (grub_linux_setup_video): New function.
42719 (grub_rescue_cmd_linux): Probe for video information.
42720
42721 * normal/x86_64/setjmp.S: New file.
42722
42723 * term/efi/console.c (map_char): New function.
42724 (grub_console_putchar): Map unicode char.
42725 (grub_console_checkkey): Wrap efi calls.
42726 (grub_console_getkey): Likewise.
42727 (grub_console_getwh): Likewise.
42728 (grub_console_gotoxy): Likewise.
42729 (grub_console_cls): Likewise.
42730 (grub_console_setcolorstate): Likewise.
42731 (grub_console_setcursor): Likewise.
42732
42733 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
42734
59652a20 427352008-07-16 Pavel Roskin <proski@gnu.org>
42736
ef294055 42737 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
42738 format strings.
42739
59652a20 42740 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
42741 pointer, not an integer. This fixes a warning and prevents
42742 precision loss on 64-bit systems.
42743 (relocate_addresses): Remove unneeded cast.
42744
afc3b5d7 427452008-07-15 Pavel Roskin <proski@gnu.org>
42746
506b2b3e 42747 * kern/i386/ieee1275/init.c: Include grub/cache.h.
42748
62ead89c 42749 * term/ieee1275/ofconsole.c: Disable code unused on i386.
42750
c4cd51d7 42751 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
42752 Fix comparison between signed and unsigned.
42753
0d3d8f28 42754 * include/grub/i386/ieee1275/console.h: Declare
42755 grub_console_init() and grub_console_fini().
42756
8804b286 42757 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
42758 It's empty and unused.
42759
ee01cf35 42760 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
42761 beginning to avoid warnings with some compilers.
42762
afc3b5d7 42763 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
42764 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
42765
e4e8eaa5 427662008-07-14 Pavel Roskin <proski@gnu.org>
42767
407aceb4 42768 * kern/env.c (grub_register_variable_hook): Don't copy empty
42769 string, it leaks memory. Pass "" to grub_env_set(), it should
42770 handle constant strings.
42771
e4e8eaa5 42772 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
42773 * commands/cmp.c (grub_cmd_cmp): Likewise.
42774 * kern/dl.c (grub_dl_flush_cache): Likewise.
42775 (grub_dl_load_core): Likewise.
42776 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
42777 (grub_elf64_load_phdrs): Likewise.
42778
d4e2dad3 427792008-07-13 Pavel Roskin <proski@gnu.org>
42780
42781 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
42782 between signed and unsigned.
42783 (LzmaEnc_Finish): Fix warning about an unused parameter.
42784
aa24b516 427852008-07-13 Bean <bean123ch@gmail.com>
42786
42787 * Makefile.in (enable_lzo): New rule.
42788
42789 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
42790
42791 * configure.ac (ENABLE_LZO): New option --enable-lzo.
42792
42793 * boot/i386/pc/lnxboot.S: #include <config.h>.
42794
42795 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
fe987087 42796 its value according to the compression algorithm used, lzo or lzma.
aa24b516 42797
42798 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
42799 compression algorithm according to configure macro.
42800
42801 * kern/i386/pc/startup.S (codestart): Likewise.
42802
42803 * kern/i386/pc/lzma_decode.S: New file.
42804
42805 * include/grub/lib/LzFind.h: Likewise.
42806
42807 * include/grub/lib/LzHash.h: Likewise.
42808
42809 * include/grub/lib/LzmaDec.h: Likewise.
42810
42811 * include/grub/lib/LzmaEnc.h: Likewise.
42812
42813 * include/grub/lib/LzmaTypes.h: Likewise.
42814
42815 * lib/LzFind.c: Likewise.
42816
42817 * lib/LzmaDec.c: Likewise.
42818
42819 * lib/LzmaEnc.c: Likewise.
42820
4ae821ac 428212008-07-13 Bean <bean123ch@gmail.com>
42822
42823 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
42824 (grub_ext4_extent_header): New structure.
42825 (grub_ext4_extent): Likewise.
42826 (grub_ext4_extent_idx): Likewise.
42827 (grub_ext4_find_leaf): New function.
42828 (grub_ext2_read_block): Handle extents.
42829
9a745147 428302008-07-12 Robert Millan <rmh@aybabtu.com>
42831
42832 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
42833
d49a4cf6 428342008-07-11 Robert Millan <rmh@aybabtu.com>
42835
42836 * util/grub.d/40_custom.in: New file. Example on how to add custom
42837 entries to /etc/grub.d.
42838 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
42839 40_custom (implicitly, by merging all the grub.d rules).
42840
947414b4 428412008-07-11 Pavel Roskin <proski@gnu.org>
42842
0059cf6f 42843 * commands/read.c (grub_getline): Fix invalid memory access.
42844 Don't add newline to the variable value.
42845
947414b4 42846 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
42847 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
42848 (serial_hw_get_port): Check validity of the port number.
42849 (grub_cmd_serial): Check return value of serial_hw_get_port().
42850
62a02d00 428512008-07-07 Pavel Roskin <proski@gnu.org>
42852
42853 * boot/i386/pc/diskboot.S (notification_string): Replace
42854 "Loading kernel" with just "loading". This is shorter, less
42855 confusing and saves a few bytes for possible future changes.
42856
3e5581b0 428572008-07-05 Pavel Roskin <proski@gnu.org>
42858
ea387a48 42859 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
42860 size for ATAPI devices, they are undefined. Output sector
42861 number in decimal form.
42862
3e5581b0 42863 * disk/ata.c: Use named constants for status bits.
42864
fdecb8fd 428652008-07-04 Pavel Roskin <proski@gnu.org>
42866
bcd35b90 42867 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
42868 grub_addr_t before casting it to the void pointer to fix a
42869 warning. Non-addressable regions are discarded earlier.
42870 (grub_arch_modules_addr): Cast _end to grub_addr_t.
42871 * kern/i386/linuxbios/table.c: Include grub/misc.h.
42872 (check_signature): Don't shadow table_header.
42873 (grub_linuxbios_table_iterate): Cast numeric constants to
42874 grub_linuxbios_table_header_t.
42875 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
42876 grub_stop().
42877
af58ab3d 42878 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
42879 prevent warnings.
42880
1759aa57 42881 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
42882 pointer, which can cause warnings. Support 64-bit addresses.
42883
fdecb8fd 42884 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
42885 of sizeof(long). This fixes PowerPC image generation on x86_64.
42886
8516d2a8 428872008-07-04 Robert Millan <rmh@aybabtu.com>
42888
42889 This fixes a performance issue when pc & gpt partmap iterators
42890 didn't abort iteration even after our hook found what it was
fe987087 42891 looking for (often causing expensive probes of non-existent drives).
8516d2a8 42892
42893 Some callers relied on previous buggy behaviour, since they would
34c44600 42894 raise an error when their own hooks caused early abortion of its
8516d2a8 42895 iteration.
42896
42897 * kern/device.c (grub_device_open): Improve error message.
42898 * disk/lvm.c (grub_lvm_open): Likewise.
42899 * disk/raid.c (grub_raid_open): Likewise.
42900
42901 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
42902 when hook requests it, independently of grub_errno.
42903 (pc_partition_map_probe): Do not fail when find_func() caused
42904 early abortion of pc_partition_map_iterate().
42905
42906 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
42907 when hook requests it, independently of grub_errno.
42908 (gpt_partition_map_probe): Do not fail when find_func() caused
42909 early abortion of gpt_partition_map_iterate().
42910
42911 * kern/partition.c (grub_partition_iterate): Abort parent iteration
42912 when hook requests it, independently of grub_errno. Do not fail when
42913 part_map_iterate_hook() caused early abortion of p->iterate().
42914
42915 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
42916 when grub_partition_iterate() returned with non-zero.
42917
277d0de9 429182008-07-03 Pavel Roskin <proski@gnu.org>
42919
42920 * disk/ata.c (grub_ata_pio_write): Check status before writing,
42921 like we do in grub_ata_pio_read().
42922 (grub_ata_readwrite): Always write individual sectors. Fix the
42923 sector count for the remainder.
42924 (grub_ata_write): Enable writing to ATA devices. Correctly
42925 report error for ATAPI devices.
42926
d4c9b428 429272008-07-02 Pavel Roskin <proski@gnu.org>
42928
e43fc690 42929 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
42930 warning.
42931
f707af42 42932 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
42933 for every read sector, we already increment it for the whole
42934 batch. This fixes reading more than 256 sectors at once.
42935
11e16b15 42936 * util/grub-editenv.c (cmd_info): Cast argument to long
42937 explicitly. ptrdiff_t reduces to int on i386.
42938
cbabfdd4 42939 * util/grub-editenv.c (main): Be specific which parameter is
42940 missing.
42941
b8fbce0a 42942 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
42943 (memdisk): Make memdisk_orig_addr a pointer.
42944
c9c8e606 42945 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
42946 for file offsets, use grub_off_t instead. Fix printf format
42947 warnings.
42948
ca62e598 42949 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
42950 there. Real unexpected warnings should not drown in the noise
42951 about known problems.
42952
ce8d1766 42953 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
42954 grub_disk_addr_t for memory addresses.
42955
00c7a56a 42956 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
42957 explicitly to fix a warning.
42958
08d3ef09 42959 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
42960
cb71ba20 42961 * Makefile.in (MODULE_LDFLAGS): New variable.
42962 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
42963 the linker accepts --build-id=none.
42964 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
42965 MODULE_LDFLAGS.
42966 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
42967
d4c9b428 42968 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
42969 those in Linux XFS code. Provide a way to access 64-bit parent
42970 inode.
42971 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
42972 the end of struct grub_xfs_dir_header.
42973
d4156eee 429742008-07-02 Bean <bean123ch@gmail.com>
42975
42976 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
42977 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
42978 and GRUB_IEEE1275_FLAG_NO_ANSI.
42979
42980 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
42981 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
42982 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
42983
42984 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
42985 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
42986
42987 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
42988 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
42989
42990 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
42991 esc sequence on non ANSI terminal.
42992 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
42993
42994 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
42995 beginning of file.
42996
2270f77b 429972008-07-02 Bean <bean123ch@gmail.com>
42998
42999 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
43000 (grub_editenv_SOURCES): New variable.
43001 (pkglib_MODULES): Add loadenv.mod.
43002 (loadenv_mod_SOURCES): New variable.
43003 (loadenv_mod_CFLAGS): Likewise.
43004 (loadenv_mod_LDFLAGS): Likewise.
43005
43006 * include/grub/envblk.h: New file.
43007
43008 * util/envblk.c: New file.
43009
43010 * util/grub-editenv.c: New file.
43011
43012 * commands/loadenv.c: New file.
43013
0e9e51ec 430142008-07-01 Pavel Roskin <proski@gnu.org>
43015
d89b7634 43016 * include/multiboot2.h (struct multiboot_tag_module): Use char,
43017 not unsigned char. This fixes warnings and is consistent with
43018 other tags.
43019
bf1835b1 43020 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
43021
8222a04b 43022 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
43023
6a42d99d 43024 * term/tparm.c (analyze): Always set *popcount.
43025
10b159d1 43026 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
43027 cast to fix a warning.
43028
b8789f6c 43029 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
43030 cast to suppress a warning.
43031
29d7e38a 43032 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
43033 grub_fshelp_read_file() expects.
43034
f341f669 43035 * fs/fat.c: Fix UUID calculation on big-endian systems. We
43036 write uuid as a 32-bit value in CPU byte order, so declare and
43037 use it as such.
43038
0e9e51ec 43039 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
43040 long if the format specifier expects it.
43041 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
43042 * partmap/pc.c (pc_partition_map_iterate): Likewise.
43043 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
43044 long to fix a warning.
43045 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
43046 grub_dprintf() arguments to fix warnings.
43047
3aefa857 430482008-06-30 Pavel Roskin <proski@gnu.org>
43049
56c7668b 43050 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
43051 install_bsd_part immediately before core.img is embedded or
43052 modified on disk. This fixes core.img verification if core.img
43053 cannot be embedded.
43054
3aefa857 43055 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
43056 core_path to calculate the blocklist.
43057 Patch from Javier Martín <lordhabbit@gmail.com>
43058
5444088d 430592008-06-29 Robert Millan <rmh@aybabtu.com>
43060
43061 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
43062 block to disk block.
43063 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
43064 Patch from Niels Böhm <bitbucket@arcor.de>
43065
674835c8 430662008-06-29 Robert Millan <rmh@aybabtu.com>
43067
43068 * util/update-grub_lib.in (font_path): Search for fonts in
43069 /boot/grub first, which is more likely to be readable (we aren't
43070 deciding where fonts live, just looking for them).
43071
f527dbc8 430722008-06-26 Pavel Roskin <proski@gnu.org>
43073
6c2d8df6 43074 * util/biosdisk.c (read_device_map): Don't leave dead map
43075 entries for devices failing stat() check.
43076
f527dbc8 43077 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
43078 core_path_dev for the core.img path on the target device.
43079
aebe3d13 430802008-06-26 Robert Millan <rmh@aybabtu.com>
43081
43082 * disk/fs_uuid.c: New file.
43083 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
43084 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
43085 (fs_uuid_mod_LDFLAGS): New variables.
43086 * include/grub/disk.h (grub_disk_dev_id): Add
43087 `GRUB_DISK_DEVICE_UUID_ID'.
43088 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
43089 implement iterate().
43090
37aaf354 430912008-06-26 Robert Millan <rmh@aybabtu.com>
43092
43093 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
43094 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
43095 Linux image includes no initrd.
43096
25ff262a 430972008-06-21 Javier Martín <lordhabbit@gmail.com>
43098
43099 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
43100 call to resolve the core image location that effectively appended the
43101 name twice.
43102
76a2bd44 431032008-06-21 Robert Millan <rmh@aybabtu.com>
43104
43105 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
43106 call from here ...
43107
43108 * util/grub.d/10_hurd.in: ... to here ...
43109 * util/grub.d/10_linux.in: ... and here.
43110
650e1c79 431112008-06-19 Robert Millan <rmh@aybabtu.com>
43112
fe987087 43113 * kern/main.c (grub_main): Export `prefix' variable immediately
650e1c79 43114 after it has been set by grub_machine_set_prefix().
43115
6ce63911 431162008-06-19 Robert Millan <rmh@aybabtu.com>
43117
43118 * commands/search.c (search_label, search_fs_uuid, search_file): Print
43119 search result when not saving to variable, not the other way around.
43120 When saving to variable, abort iteration as soon as a match is found.
43121
73940cec 431222008-06-19 Robert Millan <rmh@aybabtu.com>
43123
43124 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
43125 check for partition that provides /boot/grub. Its logic is flawed,
43126 as it prevents prepare_grub_to_access_device() from being called
43127 multiple times.
43128
3c62a39d 431292008-06-19 Robert Millan <rmh@aybabtu.com>
43130
43131 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
43132 "insmod" command directly when abstraction modules are needed,
fe987087 43133 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
3c62a39d 43134 since it had already been processed).
43135
47395a42 431362008-06-19 Pavel Roskin <proski@gnu.org>
43137
43138 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
43139 changed. This is needed in case GRUB_LIBDIR changes.
43140 * conf/i386-ieee1275.rmk: Likewise.
43141 * conf/i386-linuxbios.rmk: Likewise.
43142 * conf/i386-pc.rmk: Likewise.
43143 * conf/powerpc-ieee1275.rmk: Likewise.
43144
a145ac2d 431452008-06-18 Pavel Roskin <proski@gnu.org>
43146
43147 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
43148 kernel_elf_symlist.c to symlist.c for consistency with other
43149 architectures. Update all users.
43150 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43151
7847c51e 431522008-06-18 Robert Millan <rmh@aybabtu.com>
43153
43154 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
43155 it in prefix.
43156
43157 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
43158 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
43159 a RAID device, run setup() for all members independently on whether
43160 LVM abstraction is being used.
43161 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
43162 If grub-mkimage has set `*install_dos_part == -2', don't override this
43163 value.
43164 Perform *install_dos_part adjustments independently on whether
43165 we're embedding or not.
43166 Clarify error message when image is too big for embedding.
43167 Remove duplicate *install_dos_part stanza.
43168
b23e5644 431692008-06-17 Robert Millan <rmh@aybabtu.com>
43170
43171 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
43172 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
43173 variables.
43174 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
43175 values in grub_ofconsole_normal_color and
43176 grub_ofconsole_highlight_color (they're not directly related to
43177 background and foreground).
43178 (grub_ofconsole_setcolorstate): Extract background and foreground
43179 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
43180
0aac2f79 431812008-06-17 Robert Millan <rmh@aybabtu.com>
43182
43183 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
43184 /boot/grub for the check in last commit, not /boot (they could be
43185 different partitions).
43186
3cca7ef3 431872008-06-16 Robert Millan <rmh@aybabtu.com>
43188
43189 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
43190 asked to setup access for the same partition that provides /boot,
43191 don't bother using UUIDs since our root already has the value we
43192 want.
43193
347396d8 431942008-06-16 Robert Millan <rmh@aybabtu.com>
43195
43196 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
43197 I2O devices.
43198 Patch from Sven Mueller <sven@debian.org>.
43199
991477f8 432002008-06-16 Robert Millan <rmh@aybabtu.com>
43201
43202 * util/update-grub.in: Check for $EUID instead of $UID.
43203 Reported by Vincent Zweije.
43204
d31a32a1 432052008-06-16 Bean <bean123ch@gmail.com>
43206
fe987087 43207 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
d31a32a1 43208 (grub_ext2_read_block): Likewise.
43209 (grub_ext2_read_inode): Likewise.
43210 (grub_ext2_mount): Likewise.
43211 (grub_ext2_close): Likewise.
43212 (grub_ext3_get_journal): Removed.
43213
fe987087 43214 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
d31a32a1 43215 (grub_reiserfs_read_symlink): Likewise.
43216 (grub_reiserfs_mount): Likewise.
43217 (grub_reiserfs_open): Likewise.
43218 (grub_reiserfs_read): Likewise.
43219 (grub_reiserfs_close): Likewise.
43220 (grub_reiserfs_get_journal): Removed.
43221
43222 * fs/fshelp.c (grub_fshelp_read): Removed.
43223 (grub_fshelp_map_block): Likewise.
43224
43225 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
43226 (grub_fshelp_journal): Likewise.
43227 (grub_fshelp_read): Likewise.
43228 (grub_fshelp_map_block): Likewise.
43229
3540a760 432302008-06-16 Pavel Roskin <proski@gnu.org>
43231
43232 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
43233 floating point anymore.
43234 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
43235
95614c84 432362008-06-15 Pavel Roskin <proski@gnu.org>
43237
43238 * commands/ls.c (grub_ls_list_files): Use integer calculations
43239 for human readable format, avoid floating point use.
43240 * kern/misc.c (grub_ftoa): Remove.
43241 (grub_vsprintf): Remove floating point support.
43242
50465dd6 432432008-06-15 Robert Millan <rmh@aybabtu.com>
43244
fe6b695a 43245 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
50465dd6 43246 devices.
43247 Reported by Max Vozeler.
43248
a9207284 432492008-06-15 Robert Millan <rmh@aybabtu.com>
43250
43251 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
43252 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
43253 skipped later.
43254 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
43255 the beginning of the prefix.
43256
43257 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
43258 It is assumed that if we have a memdisk, grub-mkimage has set
43259 grub_prefix to include the "(memdisk)" drive in it.
43260
a7cbd45a 432612008-06-15 Robert Millan <rmh@aybabtu.com>
43262
43263 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
43264 Initialize keyboard controller after registering the terminal, so that
43265 grub_printf() can be called from grub_keyboard_controller_init().
43266
21cf716a 432672008-06-15 Robert Millan <rmh@aybabtu.com>
43268
43269 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
43270 extent-btree which is written as big endian on disk.
43271 Reported by Alain Greppin <al@chilibi.org>.
43272
23a64d8e 432732008-06-14 Robert Millan <rmh@aybabtu.com>
43274
43275 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
43276 * util/i386/pc/grub-install.in (modules): Likewise.
43277
d687651c 432782008-06-13 Pavel Roskin <proski@gnu.org>
43279
43280 * commands/ls.c (grub_ls_list_files): Fix format warnings.
43281
dfe9ddd4 432822008-06-13 Bean <bean123ch@gmail.com>
43283
43284 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
43285
43286 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
43287
43288 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
43289 to indicate sparse block.
43290
16ae7781 432912008-06-12 Pavel Roskin <proski@gnu.org>
43292
e6d1a308 43293 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
43294 number, grub_fshelp_read() does it for us.
43295
16ae7781 43296 * fs/fshelp.c (grub_fshelp_read): New function. Implement
43297 linear disk read with journal translation.
43298 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
43299 * include/grub/fshelp.h: Declare grub_fshelp_read().
43300
40fd3a2b 433012008-06-09 Pavel Roskin <proski@gnu.org>
43302
43303 * fs/minix.c (grub_minix_mount): Handle error reading
43304 superblock.
43305
f5679726 433062008-06-08 Robert Millan <rmh@aybabtu.com>
43307
43308 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
43309 don't append the RAID prefix afterwards.
43310 Reported by Clint Adams.
43311
ce525529 433122008-06-08 Robert Millan <rmh@aybabtu.com>
43313
43314 Based on description from Pavel:
43315 * kern/disk.c (grub_disk_check_range): Rename to ...
43316 (grub_disk_adjust_range): ... this. Add a comment explaining the
43317 tasks performed by this function.
43318
ad4936a0 433192008-06-08 Robert Millan <rmh@aybabtu.com>
43320
43321 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
43322 `num_serial' (for consistency with other variables).
43323 (struct grub_ntfs_data): Add `uuid' member.
43324 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
43325 (grub_ntfs_uuid): New function.
43326 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
43327
dc20b0f9 433282008-06-07 Pavel Roskin <proski@gnu.org>
43329
43330 * util/biosdisk.c (open_device): Revert last change to the
43331 function, it broke installation. The sector needs to be
43332 different dependent on which device is opened.
43333
c5e3cfba 433342008-06-06 Robert Millan <rmh@aybabtu.com>
43335
43336 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
43337 rest of GRUB, and breakage doesn't happen if its value were modified.
43338
43339 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
43340 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
43341 a constant (same value).
43342 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
43343 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
43344
26a1f8c4 433452008-06-06 Robert Millan <rmh@aybabtu.com>
43346
43347 * util/biosdisk.c (open_device): Do not modify sector offset when
43348 accessing a partition. kern/disk.c already handles this for us.
43349
25d6b327 433502008-06-06 Robert Millan <rmh@aybabtu.com>
43351
43352 * util/grub-emu.c (grub_machine_init): Move code in this function from
43353 here ...
43354 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
43355 segfault in case grub_printf() is called).
43356
43357 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
43358 grub_probe. Update all users not to explicitly add it again.
43359 (grub_device): New variable; contains corresponding device for grubdir.
43360 (fs_module, partmap_module, devabstraction_module): Pass
43361 `--device ${grub_device}' to grub_probe to avoid traversing /dev
43362 every time.
43363
9ece62fb 433642008-06-05 Robert Millan <rmh@aybabtu.com>
43365
43366 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
43367 is found, print it (same layout as with labels).
43368
1ad36d37 433692008-06-04 Robert Millan <rmh@aybabtu.com>
43370
43371 * util/biosdisk.c (get_drive): Rename to ...
43372 (find_grub_drive): ... this. Update all users.
43373
43374 (get_os_disk): Rename to ...
43375 (convert_system_partition_to_system_disk): ... this. Update all users.
43376
43377 (find_drive): Rename to ...
43378 (find_system_device): ... this. Update all users.
43379
e6a30859 433802008-06-04 Robert Millan <rmh@aybabtu.com>
43381
43382 * util/biosdisk.c (get_os_disk): Handle IDA devices.
43383 * util/grub-mkdevicemap.c (get_mmc_disk_name)
43384 (make_device_map): Likewise.
43385
00c108a4 433862008-06-01 Robert Millan <rmh@aybabtu.com>
43387
43388 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
43389 before dereferencing it.
43390
43391 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
43392 union with fat12/fat16-specific ones. Add some new fields, including
43393 `num_serial' for both versions.
43394 (struct grub_fat_data): Add `uuid' member.
43395 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
43396 names. Initialize `data->uuid' using `num_serial'.
43397 (grub_fat_uuid): New function.
43398 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
43399
43400 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
43401 (grub_reiserfs_uuid): New function.
43402 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
43403 member.
43404
43405 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
43406 (grub_xfs_uuid): New function.
43407 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
43408
1385c5bb 434092008-06-01 Robert Millan <rmh@aybabtu.com>
43410
43411 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
43412 code that is backward compatible with pre-uuid search command.
43413
c682dfd7 434142008-05-31 Robert Millan <rmh@aybabtu.com>
43415
43416 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
43417 floppies after everything else, to ensure floppy drive isn't accessed
43418 unnecessarily (patch from Bean).
43419
b7db5d47 434202008-05-31 Robert Millan <rmh@aybabtu.com>
43421
43422 * commands/search.c (search_label, search_fs_uuid, search_file): Do
43423 not print device names when we were asked to set a variable.
43424
6e037aa9 434252008-05-31 Robert Millan <rmh@aybabtu.com>
43426
43427 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
43428 using "cursor-on" and "cursor-off" commands (understood at least by
43429 the Open Firmware flavour on OLPC).
43430
41305bc8 434312008-05-31 Michael Gorven <michael@gorven.za.net>
43432
43433 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
43434 on and off sequences.
43435
69ba137e 434362008-05-31 Robert Millan <rmh@aybabtu.com>
43437
43438 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
43439 * util/update-grub.in: Likewise.
43440
520ae21b 434412008-05-30 Pavel Roskin <proski@gnu.org>
43442
43443 * util/biosdisk.c (linux_find_partition): Simplify logic and
43444 make the code more universal. Keep special processing for
43445 devfs, but use a simple rule for all other devices. If the
43446 device ends with a number, append 'p' and the partition number.
43447 Otherwise, append only the partition number.
43448
5786569b 434492008-05-30 Robert Millan <rmh@aybabtu.com>
43450
43451 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
43452 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
43453 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
43454 the `root' parameter to Linux.
43455
51500452 434562008-05-30 Robert Millan <rmh@aybabtu.com>
43457
43458 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
43459 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
43460 --fs_uuid with --fs-uuid.
43461 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
43462 all filesystems support them).
43463
811d3878 434642008-05-30 Robert Millan <rmh@aybabtu.com>
43465
43466 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
f19dbdb7 43467 grub_printf() flags, since we're printing in units of 2 bytes.
811d3878 43468
cab63c95 434692008-05-30 Robert Millan <rmh@aybabtu.com>
43470
43471 * util/grub.d/00_header.in: Remove obsolete comment referencing
43472 convert_system_path_to_grub_path().
43473 * util/update-grub.in: Likewise.
43474 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
43475 (convert_system_path_to_grub_path): Add a warning message explaining
43476 that this function is deprecated. Rely on is_path_readable_by_grub()
43477 for the readability checks.
43478 (font_path): Use is_path_readable_by_grub() for the readability
43479 check rather than convert_system_path_to_grub_path().
43480
972e2f7a 434812008-05-30 Robert Millan <rmh@aybabtu.com>
43482
43483 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
43484 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
43485 converting it first.
43486 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
43487 grub.cfg for access to font file, and afterwards call it again to set
43488 the root device.
43489
62191274 434902008-05-30 Robert Millan <rmh@aybabtu.com>
43491
43492 * commands/search.c (options): Add --fs_uuid option.
43493 (search_fs_uuid): New function.
43494 (grub_cmd_search): Fix --set argument passing.
43495 Use search_fs_uuid() when requested via --fs_uuid.
43496 (grub_search_init): Update help message.
43497 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
43498 and redeclare it as an array of 16-bit words.
43499 (grub_ext2_uuid): New function.
43500 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
43501 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
43502 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
43503 (GRUB_DEVICE_BOOT_UUID): New variables.
43504 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
43505 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
43506 whenever possible.
43507 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
43508 just assume `root' variable has the right value.
43509 * util/grub.d/10_linux.in: Likewise.
43510 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
43511 via PRINT_FS_UUID.
43512 (main): Recognise `-t fs_uuid' argument.
43513
01b73ec8 435142008-05-30 Robert Millan <rmh@aybabtu.com>
43515
43516 * util/biosdisk.c (map): Redefine structure to hold information
43517 about GRUB drive name.
fe6b695a 43518 (get_drive): Reimplement without assuming (and verifying) BIOS-like
01b73ec8 43519 drive names.
43520 (call_hook): Remove.
43521 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
43522 member. Assume drive has partitions.
43523 (grub_util_biosdisk_open): Access device names via `.device' struct
43524 member.
43525 (open_device): Likewise.
43526 (find_drive): Likewise.
43527 (read_device_map): Adjust map[] usage to match the new struct
43528 definition. Don't check for duplicates (still possible, but not cheap
43529 anymore).
43530 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
43531 (make_device_name): Remove assumption of BIOS-like drive names.
43532
22f16596 435332008-05-30 Pavel Roskin <proski@gnu.org>
43534
43535 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
43536 compiling execute.c doesn't need grub_script.tab.h anymore.
43537 (normal/command.c_DEPENDENCIES): Likewise.
43538 (normal/function.c_DEPENDENCIES): Likewise.
43539 * conf/i386-ieee1275.rmk: Likewise.
43540 * conf/i386-linuxbios.rmk: Likewise.
43541 * conf/i386-pc.rmk: Likewise.
43542 * conf/powerpc-ieee1275.rmk: Likewise.
43543 * conf/sparc64-ieee1275.rmk: Likewise.
43544
528ad8f2 435452008-05-29 Pavel Roskin <proski@gnu.org>
43546
d1dff95d 43547 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
43548 when scanning metadata for volume group name.
43549
528ad8f2 43550 * include/grub/script.h: Don't include grub_script.tab.h. It's
43551 a generated file, which may only be included from the files with
43552 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
43553 use union YYSTYPE, as the later allows forward declaration.
43554 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
43555
47248e08 435562008-05-29 Robert Millan <rmh@aybabtu.com>
43557
43558 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
43559 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
43560 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
43561 (grub_console_checkkey): Add grub_dprintf() call to report unknown
43562 scan codes.
43563
ee632529 435642008-05-29 Robert Millan <rmh@aybabtu.com>
43565
43566 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
43567 control key combinations.
43568
eee96e08 435692008-05-29 Robert Millan <rmh@aybabtu.com>
43570
43571 * util/powerpc/ieee1275/grub-install.in: Move from here ...
43572 * util/ieee1275/grub-install.in: ... to here.
43573 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
43574 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
43575 (grub_install_SOURCES): Likewise.
43576
da9a6a94 435772008-05-29 Robert Millan <rmh@aybabtu.com>
43578
43579 * fs/affs.c: Update copyright year.
43580 * fs/ext2.c: Likewise.
43581 * fs/fshelp.c: Likewise.
43582 * fs/hfsplus.c: Likewise.
43583 * fs/ntfs.c: Likewise.
43584 * fs/xfs.c: Likewise.
43585 * include/grub/fshelp.h: Likewise.
43586 * util/grub-mkdevicemap.c: Likewise.
43587
12e65f3a 435882008-05-28 Robert Millan <rmh@aybabtu.com>
43589
43590 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
43591 might need to be fatfs to support some firmware implementations
43592 (e.g. OFW or EFI).
43593
23023641 435942008-05-28 Robert Millan <rmh@aybabtu.com>
43595
43596 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
43597 devices.
43598 * util/grub-mkdevicemap.c (get_mmc_disk_name)
43599 (make_device_map): Likewise.
43600
887d2619 436012008-05-20 Bean <bean123ch@gmail.com>
43602
43603 * fs/fshelp.c (grub_fshelp_map_block): New function.
43604 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
43605 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
43606
43607 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
43608 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
43609 (grub_fshelp_journal): New structure.
43610 (grub_fshelp_map_block): New function prototype.
43611 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
43612 (grub_fshelp_map_block): Likewise.
43613
43614 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
43615 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
43616 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
43617 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
43618 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
43619 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
43620 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
43621 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
43622 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
43623 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
43624 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
43625 (grub_ext2_sblock): New members for journal support.
43626 (grub_ext3_journal_header): New structure.
43627 (grub_ext3_journal_revoke_header): Likewise.
43628 (grub_ext3_journal_block_tag): Likewise.
43629 (grub_ext3_journal_sblock): Likewise.
43630 (grub_fshelp_node): New members logfile and journal.
43631 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
43632 grub_fshelp_map_block to get real block number.
43633 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
43634 number.
43635 (grub_ext2_read_inode): Likewise.
43636 (grub_ext3_get_journal): New function.
43637 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
43638 (grub_ext2_close): Release memory used by journal.
43639
43640 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
43641 (REISERFS_MAGIC_DESC_BLOCK): New macro.
43642 (grub_reiserfs_transaction_header): Renamed to
43643 grub_reiserfs_description_block, replace field data with real_blocks.
43644 (grub_reiserfs_commit_block): New structure.
43645 (grub_reiserfs_data): New member journal.
43646 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
43647 number.
43648 (grub_reiserfs_read_symlink): Likewise.
43649 (grub_reiserfs_iterate_dir): Likewise.
43650 (grub_reiserfs_open): Likewise.
43651 (grub_reiserfs_read): Likewise.
43652 (grub_reiserfs_get_journal): New function.
43653 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
43654 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
43655 using grub_reiserfs_get_journal.
43656 (grub_reiserfs_close): Release memory used by journal.
43657
43658 * fs/affs.c (grub_affs_read_block): Change block type to
43659 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
43660
43661 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
43662
43663 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
43664
43665 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
43666
43667 * fs/udf.c (grub_udf_read_block): Change block type to
43668 grub_disk_addr_t. Use type cast to avoid warning.
43669
43670 * fs/xfs.c (grub_xfs_read_block): Likewise.
43671
b7c6bed5 436722008-05-16 Christian Franke <franke@computer.org>
43673
43674 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
43675 to ensure that break with ESC will always work.
43676 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
43677 Remove ESC from keyboard queue.
43678
eedf167f 436792008-05-16 Christian Franke <franke@computer.org>
43680
43681 * util/biosdisk.c: [__CYGWIN__] Add includes.
43682 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
43683 (get_os_disk): Move variable declarations to OS specific
43684 parts to avoid warning.
43685 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
43686 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
43687 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
43688 Cygwin.
43689 * util/getroot.c: [__CYGWIN__] Add includes.
43690 (strip_extra_slashes): Fix "/" case.
43691 [__CYGWIN__] (get_win32_path): New function.
43692 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
43693 [__CYGWIN__] (find_root_device): Disable.
43694 [__CYGWIN__] (get_bootsec_serial): New function.
43695 [__CYGWIN__] (find_cygwin_root_device): Likewise.
43696 [__linux__] (grub_guess_root_device): Add early returns to simplify
43697 structure.
43698 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
43699 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
43700 check for Linux only.
43701
a079699e 437022008-05-15 Bean <bean123ch@gmail.com>
43703
43704 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
43705 keyboard hang problem in apple's intel mac.
43706
1cf4059a 437072008-05-09 Robert Millan <rmh@aybabtu.com>
43708
43709 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
43710 devices.
43711 * util/grub-mkdevicemap.c (get_virtio_disk_name)
43712 (make_device_map): Likewise.
43713 Reported by Aurelien Jarno <aurel32@debian.org>
43714
ed759390 437152008-05-07 Ian Campbell <ijc@hellion.org.uk>
43716
43717 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
43718 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
43719 (make_device_map): Output entries for xvd type disks.
43720
b56c4eaa 437212008-05-07 Robert Millan <rmh@aybabtu.com>
43722
43723 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
43724 devices.
43725 * util/grub-mkdevicemap.c (get_cciss_disk_name)
43726 (make_device_map): Likewise.
43727 Reported by Roland Dreier <rdreier@cisco.com>
43728
7f8866ed 437292008-05-07 Robert Millan <rmh@aybabtu.com>
43730
43731 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
43732 grub_strstr() call. Correct a few mistakes in failure path handling.
43733
b0346e0f 437342008-05-06 Robert Millan <rmh@aybabtu.com>
43735
43736 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
43737 Do not print a trailing slash (therefore, the root directory is an
43738 empty string).
43739 (convert_system_path_to_grub_path): Do not remove trailing slash
43740 from make_system_path_relative_to_its_root() output.
43741
43742 * util/i386/pc/grub-install.in: Add trailing slash to output from
43743 make_system_path_relative_to_its_root().
43744
6cf12cbd 437452008-05-06 Robert Millan <rmh@aybabtu.com>
43746
43747 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
43748 ensures that output lines aren't intermangled with those sent to
43749 stderr (via grub_util_info()).
43750 * util/grub-probe.c (grub_refresh): Likewise.
43751 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
43752
0fbb3117 437532008-05-05 Christian Franke <franke@computer.org>
43754
43755 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
43756 Add Cygwin device names.
43757 (get_ide_disk_name) [__CYGWIN__]: Likewise.
43758 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
43759 (check_device): Return error instead of success on empty name.
43760 (make_device_map): Move label inside linux specific code to
43761 prevent compiler warning.
43762
8124cdb7 437632008-04-30 Robert Millan <rmh@aybabtu.com>
43764
43765 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
43766 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
43767 first boot option.
43768 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
43769
094c01d0 437702008-04-29 Robert Millan <rmh@aybabtu.com>
43771
43772 * docs/grub.cfg: New file (example GRUB configuration).
43773
f4b1fc02 437742008-04-26 Robert Millan <rmh@aybabtu.com>
43775
329ce2a5 43776 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
43777 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
43778 and `disk/ieee1275/nand.c'.
f4b1fc02 43779
25f16ec1 437802008-04-25 Bean <bean123ch@gmail.com>
f19dbdb7 43781
25f16ec1 43782 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
43783 i386-linuxbios.
43784
43785 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
43786 change the buffer size to 4096 for cdrom device.
43787
43788 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
43789 and nand.mod.
43790 (_linux_mod_SOURCES): New variable.
43791 (_linux_mod_CFLAGS): Likewise.
43792 (_linux_mod_LDFLAGS): Likewise.
43793 (linux_mod_SOURCES): Likewise.
43794 (linux_mod_CFLAGS): Likewise.
43795 (linux_mod_LDFLAGS): Likewise.
43796 (nand_mod_SOURCES): Likewise.
43797 (nand_mod_CFLAGS): Likewise.
43798 (nand_mod_LDFLAGS): Likewise.
43799
43800 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
43801 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
43802 type property. (nand device in olpc don't have this property)
43803
43804 * include/grub/disk.h (grub_disk_dev_id): New macro
43805 GRUB_DISK_DEVICE_NAND_ID.
43806
43807 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
43808 function prototype.
43809 (grub_rescue_cmd_initrd): Likewise.
43810
43811 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
43812 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
43813 ofw_cif_handler and ofw_idt, adjust padding number.
f19dbdb7 43814
25f16ec1 43815 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
43816 GRUB_MACHINE_IEEE1275 is defined.
43817
43818 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
43819 Use NESTED_FUNC_ATTR attribute on the hook parameter.
43820
43821 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
43822 on nested function heap_init.
43823 (grub_upper_mem): New variable for i386-ieee1275.
43824 (grub_get_extended_memory): New function for i386-ieee1275.
43825 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
43826
43827 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
43828 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
43829 property.
f19dbdb7 43830
25f16ec1 43831 * loader/i386/ieee1275/linux.c: New file.
43832
43833 * loader/i386/ieee1275/linux_normal.c: New file.
43834
43835 * disk/ieee1275/nand.c: New file.
43836
e89d61e9 438372008-04-18 Thomas Schwinge <tschwinge@gnu.org>
43838
43839 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
43840 value.
43841 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
43842
602566f6 438432008-04-18 Robert Millan <rmh@aybabtu.com>
43844
43845 Restructures early code path on ieee1275 to unify grub_main() as
43846 the first C function that is executed in every platform.
43847
43848 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
43849 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
43850 cmain().
43851 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
43852 * kern/ieee1275/cmain.c (cmain): Rename to ...
43853 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
43854 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
43855 at the beginning.
43856
57490c2b 438572008-04-18 Robert Millan <rmh@aybabtu.com>
43858
43859 * util/update-grub.in: Fix syntax error when setting
43860 `GRUB_PRELOAD_MODULES'.
43861 Reported by Stephane Chazelas <stephane@artesyncp.com>
43862
1977517d 438632008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
43864
43865 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
43866 section into account, newer toolchains generate unique build ids
43867 * configure.ac: remove the test for --build-id=none acceptance,
e0c5dacb 43868 we want build ids to be preserved
1977517d 43869 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
43870 far from other sections don't cause the raw binary images grow
43871 size
43872
bfb1f1a2 438732008-04-15 Robert Millan <rmh@aybabtu.com>
43874
43875 * disk/lvm.c: Update copyright year.
43876 * kern/misc.c: Likewise.
43877
01979850 438782008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
43879
43880 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
f19dbdb7 43881 there is no memory left for physical volume name.
01979850 43882
0a1150e2 438832008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
43884
43885 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
43886 volume name mapping to support bigger than 9 character names properly.
43887
82ead3fe 438882008-04-13 Robert Millan <rmh@aybabtu.com>
43889
43890 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
43891 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
43892
e54a72f5 438932008-04-13 Christian Franke <franke@computer.org>
43894
43895 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
43896 to create a floppy emulation boot CD when non emulation mode
43897 does not work.
43898 Enable Joliet CD filesystem extension.
43899
9fe86034 439002008-04-13 Robert Millan <rmh@aybabtu.com>
43901
43902 * kern/misc.c (grub_strncat): Fix off-by-one error.
43903 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
43904
43905 * kern/env.c (grub_env_context_close): Clear current context, not
43906 previous one.
43907 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
43908
43909 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
43910
7ceeee39 439112008-04-13 Robert Millan <rmh@aybabtu.com>
43912
43913 Improve robustness when handling LVM.
43914
43915 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
f19dbdb7 43916 (and leave `*p' unmodified).
7ceeee39 43917 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
43918 through it.
43919 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
43920 iterating through it.
43921 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
43922 through it.
fe6b695a 43923 (grub_lvm_scan_device): Check the return value (and fail gracefully
7ceeee39 43924 when due) on each grub_lvm_getvalue() or grub_strstr() call.
43925 Don't assume `vg->pvs != NULL' when iterating through it.
43926
58cd3d85 439272008-04-13 Robert Millan <rmh@aybabtu.com>
43928
43929 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
43930 * genmk.rb (partmap): New variable.
43931 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
43932 (#{partmap}): New target rule.
43933 * genpartmaplist.sh: New file.
43934 * Makefile.in (pkglib_DATA): Add partmap.lst.
43935 (partmap.lst): New target rule.
43936 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
43937 modules (including all partition maps), instead of preloading them.
43938
78b51059 439392007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
43940
43941 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
43942 `linux-boot-prober' (if installed) to detect other operating
43943 systems which are installed on the computer and add them to
43944 the boot menu.
43945 * conf/common.rmk: Build and install 30_os-prober.
43946
a91627b4 439472008-04-12 Robert Millan <rmh@aybabtu.com>
43948
43949 * kern/powerpc/ieee1275/init.c: Move from here ...
43950 * kern/ieee1275/init.c: ... to here. Update all users.
43951
43952 * kern/powerpc/ieee1275/cmain.c: Move from here ...
43953 * kern/ieee1275/cmain.c: ... to here. Update all users.
43954
43955 * kern/powerpc/ieee1275/openfw.c: Move from here ...
43956 * kern/ieee1275/openfw.c: ... to here. Update all users.
43957
43958 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
43959 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
43960
322562ea 439612008-04-10 Pavel Roskin <proski@gnu.org>
43962
43963 * configure.ac: Always use "_cv_" in cache variables for
43964 compatibility with Autoconf 2.62.
43965
a02a73c5 439662008-04-07 Robert Millan <rmh@aybabtu.com>
43967
43968 Revert grub/machine/init.h addition by Pavel (since it breaks on
43969 i386-ieee1275 and others):
43970 * util/i386/pc/misc.c: Remove grub/machine/init.h.
43971 * util/powerpc/ieee1275/misc.c: Likewise.
43972
25c024b1 439732008-04-07 Robert Millan <rmh@aybabtu.com>
43974
43975 * util/grub-probe.c (probe): Improve error message.
43976
3cbd2f98 439772008-04-07 Robert Millan <rmh@aybabtu.com>
43978
43979 * util/biosdisk.c (read_device_map): Skip devices that don't exist
43980 (this prevents the presence of a bogus entry from ruining the whole
43981 thing).
43982
87a297bf 439832008-04-06 Pavel Roskin <proski@gnu.org>
43984
36747a62 43985 * util/biosdisk.c: Include grub/util/biosdisk.h.
43986 * util/grub-fstest.c (execute_command): Make static.
43987 * util/grub-mkdevicemap.c (check_device): Likewise.
43988 * util/i386/pc/misc.c: Include grub/machine/init.h.
43989 * util/powerpc/ieee1275/misc.c: Likewise.
43990 * util/lvm.c: Include grub/util/lvm.h.
43991 * util/misc.c: Include grub/kernel.h, grub/misc.h and
43992 grub/cache.h.
43993 * util/raid.c: Include grub/util/raid.h.
43994 (grub_util_getdiskname): Make static.
43995
87a297bf 43996 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
43997 grub_hostfs_fini(), as they are called from grub_init_all() and
43998 grub_fini_all() respectively. This fixes an infinite loop in
43999 grub-fstest due to double registration of hostfs.
44000 Reported by Christian Franke <Christian.Franke@t-online.de>
44001
f6ce7629 440022008-04-05 Pavel Roskin <proski@gnu.org>
44003
44004 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
44005 all 8 functions. Otherwise, probe function 0 only.
44006
070e49e4 440072008-04-04 Pavel Roskin <proski@gnu.org>
44008
8b088a4c 44009 * commands/lspci.c (grub_lspci_iter): Print the bus number
44010 correctly.
44011
4f657021 44012 * commands/lspci.c (grub_pci_classes): Fix typos.
44013 (grub_lspci_iter): Don't print func twice. Print vendor ID
44014 before device ID, as it's normally done.
44015
070e49e4 44016 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
44017 Fix signedness warnings.
44018 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
44019 Likewise.
44020 * util/ieee1275/get_disk_name.c: Include config.h so that
44021 _GNU_SOURCE is defined and getline() is declared. Mark an
44022 unused argument as such. Fix a signedness warning.
44023
ba7328dc 440242008-04-02 Pavel Roskin <proski@gnu.org>
44025
26887f22 44026 * genkernsyms.sh.in: Use more robust assignments for CC and
44027 srcdir. Quote srcdir.
44028 * gensymlist.sh.in: Likewise. Assert at the compile time that
44029 the symbol table is not empty.
44030
ba7328dc 44031 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
44032 * fs/cpio.c (grub_cpio_read): Likewise.
44033
0f582c6b 440342008-04-01 Pavel Roskin <proski@gnu.org>
44035
4b6e1995 44036 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
44037 * disk/host.c (grub_host_open): Likewise.
44038 * disk/loopback.c (grub_loopback_open): Likewise.
44039 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
44040 disk->id as in disk/host.c, not a multi-character constant.
44041
828a2768 44042 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
44043 later is obsolete, potentially dangerous and sets a bad example.
44044 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
44045 * util/misc.c (grub_util_get_image_size): Likewise.
44046
2bb4fb47 44047 * disk/loopback.c (options): Improve help for "--partitions".
44048
0f582c6b 44049 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
44050 options to align them with the short options, e.g. "echo -e".
44051
a33224e0 440522008-03-31 Bean <bean123ch@gmail.com>
44053
44054 * video/reader/png.c (grub_png_data): New member is_16bit and
44055 image_data.
44056 (grub_png_decode_image_header): Detect 16 bit png image.
44057 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
44058 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
44059 (grub_video_reader_png): Release memory occupied by image_data.
44060
44061 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
44062 4096 bytes.
44063 (grub_nfs_mount): Skip the test for sector per cluster.
44064
44065 * include/grub/ntfs.h (MAX_SPC): Removed.
44066
86cb4f54 440672008-03-31 Bean <bean123ch@gmail.com>
44068
44069 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
44070 (grub_probe_SOURCES): Add fs/afs.c.
44071 (grub_fstest_SOURCES): Likewise.
44072 (afs_mod_SOURCES): New variable.
44073 (afs_mod_CFLAGS): Likewise.
44074 (afs_mod_LDFLAGS): Likewise.
44075
44076 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
44077 (grub_emu_SOURCES): Likewise.
44078
44079 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
44080
44081 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44082
44083 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
44084
44085 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44086
44087 * fs/afs.c: New file.
44088
17c74c21 440892008-03-30 Pavel Roskin <proski@gnu.org>
44090
4cb68e89 44091 * disk/host.c: Include grub/misc.h to fix a warning.
44092 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
44093 warnings about implicit declarations.
44094
8790bb04 44095 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
44096 variable.
44097 * include/grub/i386/loader.h: Change declaration of
44098 grub_linux_boot() to match what grub_loader_set() expects.
44099 * util/getroot.c (grub_guess_root_device): Return const char* to
44100 fix a warning.
44101 * util/grub-probe.c (probe): Fix a warning about uninitialized
44102 abstraction_name variable.
44103 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
44104 second argument as unused to fix a warning.
44105
9a3f3296 44106 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
44107 missing grub_error() call.
44108
0ecef90d 44109 * util/update-grub_lib.in: Define datarootdir, since Autoconf
44110 2.60 and newer uses it to define datadir.
44111
0bf6d401 44112 * commands/sleep.c: Fix warning about implicit declaration.
44113 * disk/memdisk.c: Likewise.
44114 * loader/aout.c: Likewise.
44115 * loader/i386/bsd_normal.c: Likewise.
44116 * util/grub-probe.c: Likewise.
44117
7cdacf97 44118 * commands/i386/cpuid.c (has_longmode): Make static.
44119 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
44120 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
44121
17c74c21 44122 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
44123 GDT. This is more robust, as %ds can change.
44124 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
44125 calling real_to_prot().
44126 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
44127
80a3e68b 441282008-03-28 Pavel Roskin <proski@gnu.org>
44129
44130 * kern/i386/pc/startup.S: Assert that uncompressed functions
44131 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
44132 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
44133 code, as they push parts of the code (error handlers) beyond
44134 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
44135 code as correctness and size.
44136
77bcd272 441372008-03-28 Pavel Roskin <proski@gnu.org>
44138
44139 * kern/i386/pc/startup.S
44140 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
44141 data block address to the real mode, keep offset minimal. This
44142 works around a bug in AWARD BIOS on old Athlon systems, which
44143 makes CD detection hang.
44144
c5dfd43b 441452008-03-26 Pavel Roskin <proski@gnu.org>
44146
44147 * normal/color.c (grub_parse_color_name_pair): Make `name' a
44148 const.
44149 * include/grub/normal.h: Add grub_parse_color_name_pair()
44150 declaration.
44151
bf962df2 441522008-03-24 Bean <bean123ch@gmail.com>
44153
44154 * disk/i386/pc/biosdisk.c (cd_start): Removed.
44155 (cd_count): Removed.
44156 (cd_drive): New variable.
44157 (grub_biosdisk_get_drive): Don't check for (cdN) device.
44158 (grub_biosdisk_call_hook): Likewise.
44159 (grub_biosdisk_iterate): Change cdrom detection method.
44160 (grub_biosdisk_open): Replace cd_start with cd_drive.
44161 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
44162 detect cdrom device.
44163
44164 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
44165 Removed.
44166 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
44167 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
44168 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
44169 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
44170 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
44171 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
44172 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
44173 (grub_biosdisk_cdrp): New structure.
44174 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
44175
44176 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
44177
44178 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
44179 device.
44180
44181 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
44182 New function.
44183
68e7fc7a 441842008-03-20 Robert Millan <rmh@aybabtu.com>
44185
44186 Remove 2 TiB limit in ata.mod.
44187 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
44188 (grub_ata_dumpinfo): Print sector count with 0x%llx.
44189 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
44190 grub_uint64_t instead of grub_uint32_t.
44191
38ad2cf5 441922008-03-05 Bean <bean123ch@gmail.com>
44193
44194 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
44195 (grub_multiboot): Set boot device.
44196
44197 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
44198
2b89344e 441992008-03-02 Bean <bean123ch@gmail.com>
44200
44201 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
44202 symlink_buffer.
44203
87a95d1f 442042008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
44205
44206 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
44207 texinfo.tex.
44208
44209 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
44210 modified.
44211
44212 * docs/fdl.texi: New file.
f19dbdb7 44213
87a95d1f 44214 * docs/mdate-sh: New file. Copied from gnulib.
44215 * docs/texinfo.tex: Likewise.
44216
44217 * config.guess: Updated from gnulib.
44218 * install-sh: Likewise.
44219
7dc15d8e 442202008-02-28 Robert Millan <rmh@aybabtu.com>
44221
44222 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
44223 (aout_mod_SOURCES): New variable.
44224 (aout_mod_CFLAGS): Likewise.
44225 (aout_mod_LDFLAGS): Likewise.
44226
44227 * conf/i386-ieee1275.rmk: Likewise.
44228
b00ab696 442292008-02-28 Robert Millan <rmh@aybabtu.com>
44230
44231 * util/update-grub.in: Reorganise terminal validity check. Accept
44232 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
44233 Based on suggestion by Franklin PIAT.
44234
79ca2d78 442352008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
44236
44237 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
44238 function.
44239 * util/getroot.c (grub_util_check_block_device): New function that
44240 returns the given argument if it is a block device and returns NULL else.
44241 * util/grub-probe.c (argument_is_device): New variable.
44242 (probe): Promote device_name from a variable to an argument. Receive
44243 device_name from grub_util_check_block_device() if path is NULL and from
44244 grub_guess_root_device() else. Do not free() device_name anymore.
f19dbdb7 44245 (options): Introduce new parameter '-d, --device'.
79ca2d78 44246 (main): Add description of the new parameter to the help screen.
44247 Rename path variable to argument. Set argument_is_device if the '-d'
44248 option is given. Pass argument to probe() depending on
44249 argument_is_device.
44250
0d16e571 442512008-02-24 Bean <bean123ch@gmail.com>
44252
44253 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
44254 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
44255 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
44256 (GRUB_ISO9660_VOLDESC_PART): Likewise.
44257 (GRUB_ISO9660_VOLDESC_END): Likewise.
44258 (grub_iso9660_primary_voldesc): New member escape.
44259 (grub_iso9660_data): New member joliet.
44260 (grub_iso9660_convert_string): New function.
44261 (grub_iso9660_mount): Detect joliet extension.
44262 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
44263 (grub_iso9660_iso9660_label): Likewise.
44264
44265 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
44266 (grub_setup_SOURCES): Add fs/udf.c.
44267 (grub_fstest_SOURCES): Likewise.
44268 (udf_mod_SOURCES): New variable.
44269 (udf_mod_CFLAGS): Likewise.
44270 (udf_mod_LDFLAGS): Likewise.
44271
44272 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
44273 (grub_emu_SOURCES): Likewise.
44274
44275 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
44276
44277 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44278
44279 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
44280
44281 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44282
44283 * fs/udf.c: New file.
44284
8a594a17 442852008-02-24 Robert Millan <rmh@aybabtu.com>
44286
44287 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
44288 (normal/lexer.c_DEPENDENCIES): New variables.
44289 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
44290 (normal/lexer.c_DEPENDENCIES): Likewise.
44291 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
44292 (normal/lexer.c_DEPENDENCIES): Likewise.
44293 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
44294 (normal/lexer.c_DEPENDENCIES): Likewise.
44295 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
44296 (normal/lexer.c_DEPENDENCIES): Likewise.
44297 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
44298 (normal/lexer.c_DEPENDENCIES): Likewise.
44299
2dc33c03 443002008-02-23 Robert Millan <rmh@aybabtu.com>
44301
44302 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
44303 since they were intended to be in hex. This didn't break previously
44304 because of a bug in gpt_partition_map_iterate() (see below).
44305
44306 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
44307 when checking the validity of GPT header.
44308 Remove `partno', since it always provides the same information as `i'.
44309
f6f4cfb0 443102008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
44311
44312 * include/grub/efi/time.h: Fix a wrong comment.
44313
79ff665f 443142008-02-19 Pavel Roskin <proski@gnu.org>
44315
44316 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
44317 message.
44318
d38e24c2 443192008-02-19 Bean <bean123ch@gmail.com>
44320
44321 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
44322 (aout_mod_SOURCES): New variable.
44323 (aout_mod_CFLAGS): Likewise.
44324 (aout_mod_LDFLAGS): Likewise.
44325 (_bsd_mod_SOURCES): New variable.
44326 (_bsd_mod_CFLAGS): Likewise.
44327 (_bsd_mod_LDFLAGS): Likewise.
44328 (bsd_mod_SOURCES): New variable.
44329 (bsd_mod_CFLAGS): Likewise.
44330 (bsd_mod_LDFLAGS): Likewise.
44331
44332 * include/grub/aout.h: New file.
44333
44334 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
44335
44336 * include/grub/i386/bsd.h: New file.
44337
44338 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
44339 to make it public.
44340
44341 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
44342 function is called, so that it's possible to change it inside the hook.
44343 (grub_elf64_load): Likewise.
44344 (grub_elf_file): Don't close the file if elf header is not found.
44345 (grub_elf_close): Close the file if grub_elf_file fails (The new
44346 grub_elf_file won't close it).
44347 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
44348 (grub_elf64_size): Likewise.
44349
44350 * kern/i386/loader.S (grub_unix_real_boot): New function.
44351
44352 * loader/aout.c: New file.
44353
44354 * loader/i386/bsd.c: New file.
44355
44356 * loader/i386/bsd_normal.c: New file.
44357
44358 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
44359
44360 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
fe987087 44361 can test other formats.
d38e24c2 44362
b93bdb0f 443632008-02-19 Robert Millan <rmh@aybabtu.com>
44364
44365 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
44366 (grub_gpt_partition_type_empty): Redefine with macro from
44367 `<grub/gpt_partition.h>'.
44368 (gpt_partition_map_iterate): Adjust partition type comparison.
44369
44370 Export `entry' as partmap-specific `part.data' struct.
44371 (grub_gpt_header, grub_gpt_partentry): Move from here ...
44372
44373 * include/grub/gpt_partition.h (grub_gpt_header)
44374 (grub_gpt_partentry): ... to here (new file).
44375
44376 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
44377
44378 (grub_gpt_partition_type_bios_boot): New const variable, defined
44379 with macro from `<grub/gpt_partition.h>'.
44380
44381 (setup): Replace `first_start' with `embed_region', which keeps
44382 track of the embed region (and is partmap-agnostic).
44383
44384 Replace find_first_partition_start() with find_usable_region(),
44385 which finds a usable region for embedding using partmap-specific
44386 knowledge (supports PC/MSDOS and GPT).
44387
44388 Fix all assumptions that the embed region start at sector 1, using
44389 `embed_region.start' from now on. Similarly, use `embed_region.end'
44390 rather than `first_start' to calculate available size.
44391
44392 In grub_util_info() message, replace "into after the MBR" with an
44393 indication of the specific sector our embed region starts at.
44394
66cb40f6 443952008-02-19 Robert Millan <rmh@aybabtu.com>
44396
44397 * DISTLIST: Replace `commands/ieee1275/halt.c' and
44398 `commands/ieee1275/reboot.c' with `commands/halt.c' and
44399 `commands/reboot.c'.
44400 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
44401 (halt_mod_SOURCES): Likewise.
44402 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
44403 (halt_mod_SOURCES): Likewise.
44404
b7202015 444052008-02-17 Christian Franke <franke@computer.org>
44406
44407 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
44408
32b0fc49 444092008-02-17 Robert Millan <rmh@aybabtu.com>
44410
44411 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
44412 set `first_start' to 0 for non-PC/MSDOS partition maps.
44413
aca63502 444142008-02-16 Robert Millan <rmh@aybabtu.com>
44415
44416 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
44417 do not assume partition map is PC/MSDOS before performing checks that
44418 are specific to that layout.
44419
0de8be86 444202008-02-13 Robert Millan <rmh@aybabtu.com>
44421
44422 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
44423 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
44424 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
44425
c3db8364 444262008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
44427
44428 * configure.ac: Only a cosmetic change on the handling of
44429 -fno-stack-protector.
44430
f714229e 444312008-02-12 Alexandre Boeglin <alex@boeglin.org>
44432
c3db8364 44433 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
44434 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
44435 reboot.c.
f714229e 44436 (grub_install_SOURCES): Add halt.mod and reboot.mod.
44437 (halt_mod_SOURCES): New variable.
44438 (halt_mod_CFLAGS): Likewise.
44439 (halt_mod_LDFLAGS): Likewise.
44440 (reboot_mod_SOURCES): Likewise.
44441 (reboot_mod_CFLAGS): Likewise.
44442 (reboot_mod_LDFLAGS): Likewise.
44443
c3db8364 44444 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
44445 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
44446 reboot.c.
f714229e 44447 (halt_mod_SOURCES): Likewise.
44448 (reboot_mod_SOURCES): Likewise.
44449
c3db8364 44450 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
44451 commands/i386/pc/reboot.c by commands/reboot.c.
f714229e 44452 (reboot_mod_SOURCES): Likewise.
44453
44454 * commands/i386/pc/reboot.c: merge this file ...
44455
44456 * commands/ieee1275/reboot.c: ... and this file ...
44457
44458 * commands/reboot.c: ... to this file.
c3db8364 44459 Add some precompiler directive to include the correct header for
44460 each machine.
f714229e 44461
44462 * commands/ieee1275/halt.c: move this file ...
44463
44464 * commands/halt.c: ... to here.
c3db8364 44465 Add some precompiler directive to include the correct header for
44466 each machine.
f714229e 44467
44468 * include/grub/efi/efi.h (grub_reboot): New function declaration.
44469 (grub_halt): Likewise.
44470
44471 * kern/efi/efi.c (grub_reboot): New function.
44472 (grub_halt): Likewise.
44473
c74493e0 444742008-02-12 Robert Millan <rmh@aybabtu.com>
44475
44476 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
44477 /dev (like it is done for /dev/mapper). This doesn't provide support
44478 for EVMS, but at least it is now easy to identify the problem when it
44479 arises.
44480
d0db4b04 444812008-02-11 Robert Millan <rmh@aybabtu.com>
44482
44483 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
44484 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
44485 comparing it with -1, not 0.
44486
bf748642 444872008-02-10 Robert Millan <rmh@aybabtu.com>
44488
44489 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
44490 `disk/lvm.c'.
44491 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44492 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
44493
44494 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
44495 `disk/lvm.c' to the end of the list.
44496 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
44497 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
44498
b5db202a 444992008-02-10 Robert Millan <rmh@aybabtu.com>
44500
44501 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
44502 grub_print_error() instead. This will let user know why we're entering
44503 rescue mode.
44504 Based on suggestions from Sam Morris.
44505
83abee31 445062008-02-10 Alexandre Boeglin <alex@boeglin.org>
44507
44508 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
44509 on remaining N args, instead of "--" arg N times.
44510
78d5a08b 445112008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
44512
44513 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
44514 (fill_with_default_glyph): Changed to use unknown_glyph for fill
44515 pattern for unknown glyphs.
44516
68807e5f 445172008-02-09 Robert Millan <rmh@aybabtu.com>
44518
44519 * configure.ac: Probe for `help2man'.
44520 * Makefile.in (builddir): New variable.
44521 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
44522 or otherwise add a few flags/options to it.
44523 (install-local): For every executable utility or script that is
44524 installed, invoke $(HELP2MAN) to install a manpage based on --help
44525 output.
44526
44527 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
44528 that it doesn't prevent --help from working in build tree.
44529
44530 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
44531 with `bug-grub@gnu.org'.
44532 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
44533 * util/update-grub.in (usage): New function.
44534 Implement proper argument check, with support for --help and --version
44535 (as well as existing -y).
44536
445372008-02-09 Christian Franke <franke@computer.org>
0d9ff7f0 44538
44539 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
44540 avoid overwriting previous output.
44541 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
44542
c1962162 445432008-02-09 Robert Millan <rmh@aybabtu.com>
44544
44545 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
44546 drawing the menu.
44547
3dac2e3f 445482008-02-09 Robert Millan <rmh@aybabtu.com>
44549
44550 * commands/sleep.c: New file.
44551 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
44552 (sleep_mod_SOURCES): New variable.
44553 (sleep_mod_CFLAGS): Likewise.
44554 (sleep_mod_LDFLAGS): Likewise.
44555
7a634e08 445562008-02-09 Robert Millan <rmh@aybabtu.com>
44557
44558 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
44559 situations in which we can deduce the RAID size and the superblock
44560 doesn't match it.
44561
b92f0c18 445622008-02-09 Robert Millan <rmh@aybabtu.com>
44563
44564 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
44565 and return a grub_diskmemberlist_t composed of LVM physical volumes.
44566 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
44567
44568 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
44569 and return a grub_diskmemberlist_t composed of physical array members.
44570 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
44571
44572 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
44573 prototype.
44574 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
44575 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
44576 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
44577
44578 * util/grub-probe.c (probe): Move partmap probing code from here ...
44579 (probe_partmap): ... to here.
44580 (probe): Use probe_partmap() once for the disk we're probing, and
44581 additionally, when such disk contains a memberlist() struct member,
44582 once for each disk that is contained in the structure returned by
44583 memberlist().
44584
91a4bf68 445852008-02-09 Robert Millan <rmh@aybabtu.com>
44586
44587 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
44588 environment variable to 'all' in order to obtain debug output from
44589 non-util/ code.
44590 * util/i386/pc/grub-setup.c (main): Likewise.
44591
a96f9caa 445922008-02-08 Robert Millan <rmh@aybabtu.com>
44593
44594 * disk/raid.c (grub_raid_scan_device): Check for
44595 `array->device[sb.this_disk.number]' rather than for
44596 `array->device[sb.this_disk.number]->name', since the latter is not
fe6b695a 44597 guaranteed to be accessible.
a96f9caa 44598
b37a9222 445992008-02-08 Robert Millan <rmh@aybabtu.com>
44600
44601 * disk/raid.c: Update copyright.
44602 * fs/cpio.c: Likewise.
44603 * include/grub/raid.h: Likewise.
44604 * loader/i386/pc/multiboot.c: Likewise.
44605 * util/hostfs.c: Likewise.
44606
5626aee1 446072008-02-08 Robert Millan <rmh@aybabtu.com>
44608
44609 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
44610 to a grub_disk_t array.
44611 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
44612 `device[x]'.
44613 (grub_raid_scan_device): Replace `device[x].name' accesses with
44614 `device[x]->name'. Simplify initialization of `array->device[x]'.
44615
554f0187 446162008-02-08 Robert Millan <rmh@aybabtu.com>
44617
44618 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
44619 grub_dprintf() calls.
44620 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
44621 error message.
44622
1ec8425d 446232008-02-07 Christian Franke <franke@computer.org>
44624
44625 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
44626 instead of fseek and ftell to support large files.
44627 (grub_hostfs_read): Likewise.
44628
f2156fda 446292008-02-07 Robert Millan <rmh@aybabtu.com>
44630
44631 Patch from Jeroen Dekkers.
44632 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
fe6b695a 44633 failure, since successfully reading all array members might not be
f2156fda 44634 required.
44635
9216e0e7 446362008-02-06 Robert Millan <rmh@aybabtu.com>
44637
44638 * util/grub-probe.c (probe): Simplify partmap probing (with the
44639 assumption that the first word up to the underscore equals to
44640 the module name).
44641
b0dfd29a 446422008-02-06 Christian Franke <franke@computer.org>
44643
44644 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
44645 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
44646 last block of a cpio or tar stream.
44647 Check for "TRAILER!!!" instead of any empty data
44648 block to detect last block of a cpio stream.
44649 (grub_cpio_dir): Fix constness of variable np.
44650 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
44651 cpio or tar trailer is detected. This fixes a crash
44652 on open of a non existing file.
44653
c32865bf 446542008-02-05 Bean <bean123ch@gmail.com>
44655
44656 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
44657 address of entry.
44658 (grub_multiboot_load_elf64): Likewise.
44659 (grub_multiboot): Initialize mbi structure.
44660
44661 * util/grub-fstest.c: Don't include unused header file script.h.
44662
fe6b695a 44663 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
c32865bf 44664 of file.
44665 (grub_fstest_SOURCES): Likewise.
44666
409480b7 446672008-02-05 Robert Millan <rmh@aybabtu.com>
44668
44669 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
44670 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
44671 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
44672 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
44673
44674 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
44675 (translation_table): Replace hardcoded values with macros
44676 provided by `<grub/term.h>'.
44677
44678 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
44679 (keyboard_map): Correct/add a few values, with macros provided
44680 by `<grub/term.h>'.
44681 (keyboard_map_shift): Zero values that don't differ from their
44682 `keyboard_map' equivalents.
44683 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
44684 Discard the second scan code that is always sent by Caps lock.
44685 Only use `keyboard_map_shift' when it provides a non-zero value,
44686 otherwise fallback to `keyboard_map'.
44687
99fadbaa 446882008-02-04 Bean <bean123ch@gmail.com>
44689
44690 * Makefile.in (enable_grub_fstest): New variable.
44691
44692 * conf/common.rmk (grub_fstest_init.lst): New rule.
44693 (grub_fstest_init.h): Likewise.
44694 (grub_fstest_init.c): Likewise.
44695 (util/grub-fstest.c_DEPENDENCIES): New variable.
44696 (grub_fstest_SOURCES): Likewise.
44697
44698 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
44699
44700 * util/grub-fstest.c: New file.
44701
bf567c50 447022008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
44703
44704 Make grub-setup handle a separate root device.
f19dbdb7 44705
bf567c50 44706 * util/i386/pc/grub-setup.c (setup): Always open the root device,
44707 so that the root device can be compared with the destination
44708 device.
44709 When embedding the core image, if the root and destination devices
44710 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
44711 0xFF.
44712 When not embedding, set ROOT_DRIVE to 0xFF.
f19dbdb7 44713
9be6b98b 447142008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
44715
44716 Add support for having a grub directory in a different drive. This
44717 is still only the data handling part.
f19dbdb7 44718
9be6b98b 44719 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
44720 (codestart): Save %dh in GRUB_ROOT_DRIVE.
44721 (grub_root_drive): New variable.
44722
44723 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
44724 instead of GRUB_BOOT_DRIVE to construct a device name. Set
44725 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
44726 as it was.
44727
44728 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
44729
44730 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
44731 macro.
44732 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
44733
44734 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
44735 is bogus, because PXE booting does not specify any drive
44736 correctly.
44737
44738 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
44739 am not sure if this is really correct.
44740
44741 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
44742 is always identical to the boot drive when booting from a CD.
44743
44744 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
44745 longer.
44746 (root_drive): New variable.
44747 (real_start): Unconditionally set %dh to ROOT_DRIVE.
44748 (setup_sectors): Push %dx right after popping it, because %dh will
44749 be modified later.
44750 (copy_buffer): Restore %dx.
44751
e0ca0677 447522008-02-03 Robert Millan <rmh@aybabtu.com>
44753
44754 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
44755 use `cdboot.img' for cdrom images.
44756
3b3f6629 447572008-02-03 Robert Millan <rmh@aybabtu.com>
44758
44759 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
44760 only setup gfxterm when `font' command has succeeded.
44761
d42b3672 447622008-02-03 Robert Millan <rmh@aybabtu.com>
44763
44764 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
44765 (grub_rescue_cmd_multiboot_loader)
44766 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
44767
fa370ea6 447682008-02-03 Pavel Roskin <proski@gnu.org>
44769
e0c5dacb 44770 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
fa370ea6 44771 %edx and %esi from stack only after grub_gate_a20() is called.
44772 grub_gate_a20() clobbers %edx.
44773
f2a76e1d 447742008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
44775
44776 * configure.ac (AC_INIT): Bumped to 1.96.
44777
44778 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
44779 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
44780 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
44781 video/readers/png.c.
44782
90fd32d1 447832008-02-03 Bean <bean123ch@gmail.com>
9be665dd 44784
44785 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
44786 (cdboot_img_SOURCES): New variable.
44787 (cdboot_img_ASFLAGS): New variable.
44788 (cdboot_img_LDFLAGS): New variable.
44789
44790 * boot/i386/pc/cdboot.S: New file.
44791
44792 * disk/i386/pc/biosdisk.c (cd_start): New variable.
44793 (cd_count): Likewise.
44794 (grub_biosdisk_get_drive): Add support for cd device.
44795 (grub_biosdisk_call_hook): Likewise.
44796 (grub_biosdisk_iterate): Likewise.
44797 (grub_biosdisk_open): Likewise.
44798 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
44799 (grub_biosdisk_rw): Support reading from cd device.
44800 (GRUB_MOD_INIT): Iterate cd devices.
44801
44802 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
44803 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
44804 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
44805
44806 * kern/i386/pc/init.c (make_install_device): Check for cd device.
44807
4020aa53 448082008-02-02 Robert Millan <rmh@aybabtu.com>
44809
44810 * commands/read.c: New file.
44811 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
44812 (read_mod_SOURCES): New variable.
44813 (read_mod_CFLAGS): Likewise.
44814 (read_mod_LDFLAGS): Likewise.
44815
e03a1132 448162008-02-02 Robert Millan <rmh@aybabtu.com>
44817
44818 * normal/main.c (grub_normal_execute): Check for `menu->size' when
44819 determining whether menu has to be displayed.
44820
58c69220 448212008-02-02 Marco Gerards <marco@gnu.org>
44822
44823 * bus/pci.c: New file.
44824
44825 * include/grub/pci.h: Likewise.
44826
44827 * include/grub/i386/pc/pci.h: Likewise.
44828
44829 * commands/lspci.c: Likewise.
44830
44831 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
44832 `lspci.mod'.
44833 (pci_mod_SOURCES): New variable.
44834 (pci_mod_CFLAGS): Likewise.
44835 (pci_mod_LDFLAGS): Likewise.
44836 (lspci_mod_SOURCES): Likewise.
44837 (lspci_mod_CFLAGS): Likewise.
f19dbdb7 44838 (lspci_mod_LDFLAGS): Likewise.
58c69220 44839
c004e1b4 448402008-02-02 Bean <bean123ch@gmail.com>
44841
44842 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
44843 (grub_ufs_get_file_block): Fix indirect block calculation problem.
44844
44845 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
44846 (grub_xfs_btree_node): New structure.
44847 (grub_xfs_btree_root): New structure.
44848 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
44849 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
44850 (GRUB_XFS_EXTENT_BLOCK): Likewise.
44851 (GRUB_XFS_EXTENT_SIZE): Likewise.
44852 (grub_xfs_read_block): Support btree format type.
44853 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
44854 Use directory block as basic unit.
44855
44856 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
44857
44858 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
44859 __attribute__ ((__regparm__ (1))).
44860
f95562bf 448612008-02-01 Robert Millan <rmh@aybabtu.com>
44862
44863 Correct a mistake in previous commit.
44864
44865 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
44866 top.
44867 (normal/command.c_DEPENDENCIES): New variable.
44868
7d31f41f 448692008-02-01 Robert Millan <rmh@aybabtu.com>
44870
44871 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
44872 top.
44873 (normal/command.c_DEPENDENCIES): New variable.
44874 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
44875 * conf/i386-ieee1275.rmk: Likewise.
44876 * conf/i386-linuxbios.rmk: Likewise.
44877 * conf/i386-pc.rmk: Likewise.
44878 * conf/sparc64-ieee1275.rmk: Likewise.
44879 * conf/powerpc-ieee1275.rmk: Likewise.
44880 (grub_emu_SOURCES): Add `fs/fshelp.c'.
44881
44882 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
44883
60b6be74 448842008-02-01 Robert Millan <rmh@aybabtu.com>
44885
44886 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
44887 call at beginning of function.
44888
078522ab 448892008-01-31 Pavel Roskin <proski@gnu.org>
44890
44891 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
d2c11005 44892 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
44893 (grub_mkrescue_SOURCES): Likewise.
078522ab 44894 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
44895
ccaa8a5f 448962008-01-30 Robert Millan <rmh@aybabtu.com>
44897
44898 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
44899 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
44900 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
44901 (grub_probe_SOURCES): ... to here.
44902
44903 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
44904 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
44905 * conf/i386-ieee1275.rmk: Likewise.
44906 * conf/i386-linuxbios.rmk: Likewise.
44907 * conf/powerpc-ieee1275.rmk: Likewise.
44908
ae5a9cd7 449092008-01-30 Tristan Gingold <gingold@free.fr>
44910
44911 * kern/rescue.c: Silently accept empty lines.
44912
70bc2ef2 449132008-01-29 Bean <bean123ch@gmail.com>
44914
44915 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
44916 (real_code_2): Code cleanup and change comment style.
44917 (move_memory): Avoid using 32-bit address mode.
44918
6a4d50ea 449192008-01-29 Bean <bean123ch@gmail.com>
44920
44921 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
44922 (png_mod_SOURCES): New variable.
44923 (png_mod_CFLAGS): Likewise.
44924 (png_mod_LDFLAGS): Likewise.
44925
44926 * video/readers/png.c: New file.
44927
11cc30ac 449282008-01-28 Robert Millan <rmh@aybabtu.com>
44929
44930 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
44931 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
44932 `ifndef GRUB_MOD_GAP' hack.
44933 * util/elf/grub-mkimage.c (add_segments): Likewise.
44934
3abc589f 449352008-01-27 Robert Millan <rmh@aybabtu.com>
44936
44937 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
44938 `GRUB_MOD_GAP' for platforms in which it's not defined.
962ca133 44939 * util/elf/grub-mkimage.c (add_segments): Likewise.
3abc589f 44940
e1907778 449412008-01-27 Robert Millan <rmh@aybabtu.com>
44942
44943 Get grub-emu to build again (including parallel builds).
44944
44945 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
44946 Split into ...
44947 (util/grub-emu.c_DEPENDENCIES): ... this, ...
44948 (normal/execute.c_DEPENDENCIES): ... this, ...
44949 (grub-emu_DEPENDENCIES): ... and this.
44950
44951 * conf/i386-efi.rmk: Likewise.
44952 * conf/i386-linuxbios.rmk: Likewise.
44953 * conf/i386-ieee1275.rmk: Likewise.
44954 * conf/powerpc-ieee1275.rmk: Likewise.
44955 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
44956
2216b101 449572008-01-27 Robert Millan <rmh@aybabtu.com>
44958
44959 * NEWS: Add a few items.
44960
f75172d9 449612008-01-27 Robert Millan <rmh@aybabtu.com>
44962
44963 Fix parallel builds with grub-emu. Based on earlier commit for
44964 grub-probe and grub-setup.
44965
44966 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
44967 (util/grub-emu.c_DEPENDENCIES): ... this.
44968 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
44969 (util/grub-emu.c_DEPENDENCIES): ... this.
44970 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
44971 (util/grub-emu.c_DEPENDENCIES): ... this.
44972 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
44973 (util/grub-emu.c_DEPENDENCIES): ... this.
44974 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
44975 (util/grub-emu.c_DEPENDENCIES): ... this.
44976
3f51de77 449772008-01-27 Pavel Roskin <proski@gnu.org>
44978
44979 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
44980 to create a gap between _end and the modules added to the image
44981 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
44982 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
44983 * util/elf/grub-mkimage.c (add_segments): Likewise.
44984
2033f53e 449852008-01-26 Pavel Roskin <proski@gnu.org>
44986
44987 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
44988 just return an error.
44989
22da1f6f 449902008-01-26 Bean <bean123ch@gmail.com>
44991
44992 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
44993 (grub_reiserfs_get_item): Save offset of the next item.
44994 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
44995
2a9525e6 449962008-01-25 Robert Millan <rmh@aybabtu.com>
44997
44998 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
44999 make all filesystem sources appear together (possibly fixing omissions
45000 while at it).
45001 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45002 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45003 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45004 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45005
45006 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
45007 add `kern/file.c'.
45008 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
45009 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
45010 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
45011 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
45012
45013 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
45014 (probe): Add a sanity check to make sure of our ability to read
45015 requested files when probing for filesystem type.
45016
45017 * genmk.rb: Update copyright year (2007).
45018
45019 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
45020 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
45021 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
45022 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
45023 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
45024 : Remove function prototypes.
45025
b95f71b5 450262008-01-25 Robert Millan <rmh@aybabtu.com>
45027
45028 Revert my previous commits (based on wrong assumption of how grub_errno
45029 works).
45030
fe6b695a 45031 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
b95f71b5 45032 * kern/file.c (grub_file_open): Likewise.
45033
d08bbb49 450342008-01-24 Pavel Roskin <proski@gnu.org>
45035
45036 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
45037 that hang if GRUB tries to setup colors.
45038 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
45039 colors for firmwares that don't support it.
45040 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
45041 Recognize Open Hack'Ware, set flags to work around its
45042 limitations.
45043
605e36ed 450442008-01-24 Robert Millan <rmh@aybabtu.com>
45045
45046 * kern/file.c (grub_file_open): Do not account previous failures of
45047 unrelated functions when grub_errno is checked for.
45048 Reported by Oleg Strikov.
45049
bac332a1 450502008-01-24 Bean <bean123ch@gmail.com>
45051
45052 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
45053 (grub_ufs_sblock): New member volume name.
45054 (grub_ufs_find_file): Fix string copy bug.
45055 (grub_ufs_label): Implement this function properly.
45056
45057 * fs/hfs.c (grub_hfs_cnid_type): New enum.
45058 (grub_hfs_iterate_records): Use the correct file number for extents
45059 and catalog file. Fix problem in next index calculation.
45060 (grub_hfs_find_node): Replace recursive function call with loop.
45061 (grub_hfs_iterate_dir): Replace recursive function call with loop.
45062
15c80c09 450632008-01-23 Robert Millan <rmh@aybabtu.com>
45064
45065 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
45066 `<grub/symbol.h>' and `<grub/multiboot.h>'.
45067 (grub_multiboot2_real_boot): New function prototype.
45068
45069 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
45070 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
45071
45072 * kern/i386/ieee1275/init.c (grub_os_area_addr)
45073 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
45074
305338fd 450752008-01-23 Robert Millan <rmh@aybabtu.com>
45076
45077 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
45078 #ifdef'ed out grub_printf().
45079
3ea52685 450802008-01-23 Robert Millan <rmh@aybabtu.com>
45081
45082 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
45083 grub_dprintf calls, since they make "debug=all" mode unusable.
45084 (grub_console_checkkey): Likewise.
45085
5882ae4b 450862008-01-23 Robert Millan <rmh@aybabtu.com>
45087
45088 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
45089 `term/i386/pc/at_keyboard.c'.
45090 (pkglib_MODULES): Add `serial.mod'.
45091 (serial_mod_SOURCES): New variable.
45092 (serial_mod_CFLAGS): Likewise.
45093 (serial_mod_LDFLAGS): Likewise.
45094
45095 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
45096 `<grub/powerpc/ieee1275/console.h>'.
45097 (grub_keyboard_controller_init): New function prototype.
45098 (grub_console_checkkey): Likewise.
45099 (grub_console_getkey): Likewise.
45100
45101 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
45102 keyboard on i386.
45103
45104 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
45105 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
45106
06ab5303 451072008-01-23 Robert Millan <rmh@aybabtu.com>
45108
45109 * kern/i386/pc/init.c (make_install_device): When memdisk image is
45110 present, "(memdisk)/boot/grub" becomes the default prefix.
45111
45112 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
45113 a memdisk tarball with all the modules. Add --overlay=DIR option that
45114 allows users to overlay additional files into the image.
45115
dbb475a4 451162008-01-23 Robert Millan <rmh@aybabtu.com>
45117
45118 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
45119 and `machine/memory.h'.
45120 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
45121 (_multiboot_mod_SOURCES): New variable.
45122 (_multiboot_mod_CFLAGS): Likewise.
45123 (_multiboot_mod_LDFLAGS): Likewise.
45124 (multiboot_mod_SOURCES): Likewise.
45125 (multiboot_mod_CFLAGS): Likewise.
45126 (multiboot_mod_LDFLAGS): Likewise.
45127
45128 * include/grub/i386/ieee1275/loader.h: New file.
45129
45130 * include/grub/i386/ieee1275/machine.h: Likewise.
45131
45132 * include/grub/i386/ieee1275/memory.h: Likewise.
45133
45134 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
45135 variable declaration.
45136 (grub_os_area_size): Likewise.
45137
45138 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
45139 (grub_lower_mem, grub_upper_mem): New variables.
45140 (grub_stop_floppy): New function (just to make
45141 grub_multiboot2_real_boot() happy).
45142
45143 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
45144 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
45145 (grub_stop): New function.
45146 Include `"../realmode.S"' and `"../loader.S"'.
45147
45148 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
45149 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
45150
45151 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
45152 rely on grub_multiboot2_real_boot() for final boot.
45153
25638629 451542008-01-22 Robert Millan <rmh@aybabtu.com>
45155
45156 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
45157 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
45158 device that doesn't look like an SD card.
45159 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
45160 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
45161 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
45162 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
45163 found.
45164
9dad816d 451652008-01-22 Robert Millan <rmh@aybabtu.com>
45166
45167 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
45168 avoid claiming over our own code.
45169
34842f2d 451702008-01-22 Bean <bean123ch@gmail.com>
45171
45172 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
45173 (jpeg_mod_SOURCES): New variable.
45174 (jpeg_mod_CFLAGS): Likewise.
45175 (jpeg_mod_LDFLAGS): Likewise.
45176
45177 * video/readers/jpeg.c : New file.
45178
44023a28 451792008-01-22 Bean <bean123ch@gmail.com>
45180
45181 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
45182 there are no more items.
45183
bc2d8ac6 451842008-01-21 Robert Millan <rmh@aybabtu.com>
45185
45186 * kern/mm.c (grub_mm_init_region): Improve debug message.
45187
261bd4bc 451882008-01-21 Robert Millan <rmh@aybabtu.com>
45189
45190 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
45191 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
45192 address.
45193 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
45194 a C macro.
45195 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
45196 Indicates start of upper memory.
45197 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
45198 (generate_image): Abort when image size is big enough to corrupt
45199 upper memory.
45200
45201 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
45202 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
45203 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
45204 instead of hardcoding 0xA0000.
45205 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
45206 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
45207 instead of hardcoding 0xA0000.
45208
f970b55e 452092008-01-21 Robert Millan <rmh@aybabtu.com>
45210
45211 * disk/memdisk.c (memdisk_size): New variable.
45212 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
45213 `memdisk_size'.
45214 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
45215 image to dynamic memory.
45216 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
45217 `memdisk_size'. Free memdisk block.
45218
1a8b0526 452192008-01-21 Robert Millan <rmh@aybabtu.com>
45220
45221 Fix detection of very small filesystems (like tar).
45222
45223 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
45224 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
45225 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
45226 a problem with this disk).
45227
6e9b4aab 452282008-01-21 Robert Millan <rmh@aybabtu.com>
45229
45230 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
45231 on grub_biosdisk_rw_standard() error.
45232
0d8837b2 452332008-01-21 Robert Millan <rmh@aybabtu.com>
45234
45235 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
45236 recent changes.
45237 * kern/elf.c: Likewise.
45238 * kern/ieee1275/ieee1275.c: Likewise.
45239 * kern/powerpc/ieee1275/openfw.c: Likewise.
45240 * term/ieee1275/ofconsole.c: Likewise.
45241
ffd36e34 452422008-01-21 Robert Millan <rmh@aybabtu.com>
45243
45244 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
45245
3f0093d0 45246 * include/grub/kernel.h (grub_arch_memdisk_addr)
45247 (grub_arch_memdisk_size): Moved from here ...
ffd36e34 45248
3f0093d0 45249 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
45250 (grub_arch_memdisk_size): ... to here.
ffd36e34 45251
6c391b21 452522008-01-21 Robert Millan <rmh@aybabtu.com>
45253
45254 Mostly based on bugfix from Bean.
45255
45256 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
45257 attribute with hook() parameter.
45258 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
45259 declaration.
45260 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
45261 attribute with hook() parameter.
45262 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
45263 declaration.
45264
55a581dc 452652008-01-21 Robert Millan <rmh@aybabtu.com>
45266
45267 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
45268 (pkglib_MODULES): Add `memdisk.mod'.
45269 (memdisk_mod_SOURCES): New variable.
45270 (memdisk_mod_CFLAGS): Likewise.
45271 (memdisk_mod_LDFLAGS): Likewise.
45272
45273 * disk/memdisk.c: New file.
45274
45275 * include/grub/disk.h (grub_disk_dev_id): Add
45276 `GRUB_DISK_DEVICE_MEMDISK_ID'.
45277
45278 * include/grub/i386/pc/kernel.h
45279 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
45280 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
45281 (grub_kernel_image_size): New variable declaration.
45282 (grub_total_module_size): Likewise.
45283 (grub_memdisk_image_size): Likewise.
45284
45285 * include/grub/i386/pc/memory.h
45286 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
45287
45288 * include/grub/kernel.h: Include `<grub/symbol.h>'.
45289 (grub_arch_memdisk_addr): New variable declaration.
45290 (grub_arch_memdisk_size): Likewise.
45291
45292 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
45293 (grub_arch_memdisk_size): Likewise.
45294
45295 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
45296 (codestart): Replace hardcoded `0x100000' with
45297 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
45298
45299 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
45300 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
45301 not NULL, append the contents of the file it refers to, at the end of
45302 the compressed kernel image. Initialize `grub_memdisk_image_size'
45303 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
45304 (options): Add "memdisk"|'m' option.
45305 (main): Parse --memdisk|-m option, and pass user-provided path as
45306 parameter to generate_image().
45307
3d7f54c9 453082008-01-20 Robert Millan <rmh@aybabtu.com>
45309
45310 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
45311 grub_dprintf() calls from here ...
45312 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
45313
0bf74728 453142008-01-20 Robert Millan <rmh@aybabtu.com>
45315
45316 Fix detection of "real mode" when /options/real-mode? doesn't exist.
45317
45318 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
45319 declaration.
45320 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
45321 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
45322 `GRUB_IEEE1275_FLAG_REAL_MODE'.
fe6b695a 45323 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
0bf74728 45324 property).
45325 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
45326 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
45327
33bf70a7 453282008-01-19 Robert Millan <rmh@aybabtu.com>
45329
fe6b695a 45330 Get rid of confusing function (superseded by
33bf70a7 45331 `grub_ieee1275_get_integer_property')
45332 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
45333 prototype.
45334 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
45335 function.
45336 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
45337 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
fe987087 45338 in native endianness from grub_ieee1275_get_integer_property().
33bf70a7 45339
e2da7d26 453402008-01-19 Robert Millan <rmh@aybabtu.com>
45341
45342 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
45343 command after "shut-down", since implementations differ on which
45344 the command for halt is.
45345
59f1fd8d 453462008-01-19 Robert Millan <rmh@aybabtu.com>
45347
45348 * include/grub/i386/linuxbios/console.h: Add header protection.
45349 (grub_keyboard_controller_init): New function prototype.
45350 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
45351 (KEYBOARD_COMMAND_READ): Likewise.
45352 (KEYBOARD_COMMAND_WRITE): Likewise.
45353 (KEYBOARD_SCANCODE_SET1): Likewise.
45354 (grub_keyboard_controller_write): New function.
45355 (grub_keyboard_controller_read): Likewise.
45356 (grub_keyboard_controller_init): Likewise.
45357
45358 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
45359 (grub_console_init): On coreboot/LinuxBIOS, call
45360 grub_keyboard_controller_init().
45361
5f5a7c15 453622008-01-19 Robert Millan <rmh@aybabtu.com>
45363
45364 PowerPC changes provided by Pavel Roskin.
45365
45366 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
45367 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
45368 don't rely on cmain() doing it.
45369 * kern/i386/ieee1275/startup.S (_start): Store %eax in
45370 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
45371
1210e168 453722008-01-16 Robert Millan <rmh@aybabtu.com>
45373
45374 * include/grub/i386/linuxbios/memory.h
45375 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
45376 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
45377 receive `table_header' as argument. Instead, probe for it in the
45378 known memory ranges where it can be present.
45379 (grub_available_iterate): Do not pass a fixed `table_header' address
45380 to grub_linuxbios_table_iterate().
45381
3d04eab8 453822008-01-15 Robert Millan <rmh@aybabtu.com>
45383
45384 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
45385 * conf/i386-ieee1275.rmk: New file.
45386 * include/grub/i386/ieee1275/console.h: Likewise.
45387 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
45388 * include/grub/i386/ieee1275/kernel.h: Likewise.
45389 * include/grub/i386/ieee1275/time.h: Likewise.
45390 * kern/i386/ieee1275/init.c: Likewise.
45391 * kern/i386/ieee1275/startup.S: Likewise.
45392
d1bc1b73 453932008-01-15 Robert Millan <rmh@aybabtu.com>
45394
45395 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
45396 when pointers are 32-bit (but still do set it to one when they are
45397 64-bit).
45398
66a65807 453992008-01-15 Robert Millan <rmh@aybabtu.com>
45400
45401 * include/grub/ieee1275/ieee1275.h
45402 (grub_ieee1275_get_integer_property): New function prototype.
45403
45404 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
45405 (grub_ieee1275_get_integer_property): New function. Wraps around
fe987087 45406 grub_ieee1275_get_property() to handle endianness.
66a65807 45407
45408 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
45409 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
fe6b695a 45410 where appropriate.
66a65807 45411 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
45412 (grub_map): Likewise.
45413 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
45414
a83ccafd 454152008-01-15 Bean <bean123ch@gmail.com>
45416
45417 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
45418 (grub_script_execute_cmdline): Reset grub_errno.
45419
45420 * normal/main.c (read_config_file): Reset grub_errno.
45421
45422 * normal/parse.y (script_init): New.
45423 (script): Move function and menuentry here.
45424 (delimiter): New.
45425 (command): Add delimiter at the end of command.
45426 (commands): Adjust to match the new command.
45427 (commandblock): Remove grub_script_lexer_record_start.
f19dbdb7 45428 (menuentry): Add grub_script_lexer_record_start, use the new commands.
a83ccafd 45429 (if): Use the new commands.
45430
45431 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
45432
df6ecfc6 454332008-01-15 Robert Millan <rmh@aybabtu.com>
45434
45435 * normal/menu.c (run_menu): Move timeout message from here ...
45436 (print_timeout): ... to here.
45437 (run_menu): Use print_timeout() once during initial draw to print
45438 the whole message, and again in every clock tick to update only
45439 the number of seconds.
45440
87ae25eb 454412008-01-15 Robert Millan <rmh@aybabtu.com>
45442
45443 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
45444 actual size of `available' from grub_ieee1275_get_property(), and
45445 restrict parsing to that bound.
45446
47bf09a4 454472008-01-15 Christian Franke <franke@computer.org>
45448
45449 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
45450 (argp_program_version): Remove variable.
45451 (argp_program_bug_address): Likewise.
45452 (options): Convert from struct argp_option to struct option.
45453 (struct arguments): Remove.
45454 (parse_opt): Remove.
45455 (usage): New function.
45456 (main): Replace struct args members by simple variables.
45457 Replace argp_parse() by getopt_long().
45458 Add switch to evaluate options.
45459 Add missing "(...)" around root_dev in prefix string.
45460
c86f1469 454612008-01-14 Robert Millan <rmh@aybabtu.com>
45462
45463 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
45464 for grub_ieee1275_exit(), in order to improve portability.
45465
e622c559 454662008-01-14 Robert Millan <rmh@aybabtu.com>
45467
45468 * util/grub.d/10_linux.in (prefix): Define.
45469 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
45470
44cb1ec8 454712008-01-13 Pavel Roskin <proski@gnu.org>
45472
45473 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
45474 grub_errno if no errors have been detected.
45475
1eb8c802 454762008-01-12 Robert Millan <rmh@aybabtu.com>
45477
45478 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
45479 (grub_util_get_dev_abstraction): New function prototype.
45480
45481 * util/getroot.c: Include `<grub/util/getroot.h>'
45482 (grub_util_get_grub_dev): Move detection of abstraction type to ...
45483 (grub_util_get_dev_abstraction): ... here (new function).
45484
45485 * util/grub-probe.c: Convert PRINT_* to an enum. Add
45486 `PRINT_ABSTRACTION'.
45487 (probe): Probe for abstraction type when requested.
45488 (main): Understand `--target=abstraction'.
45489
45490 * util/i386/efi/grub-install.in: Add abstraction module to core
45491 image when it is found to be necessary.
45492 * util/i386/pc/grub-install.in: Likewise.
45493 * util/powerpc/ieee1275/grub-install.in: Likewise.
45494
45495 * util/update-grub_lib.in (font_path): Return system path without
45496 converting to GRUB path.
45497 * util/update-grub.in: Convert system path returned by font_path()
45498 to a GRUB path. Use `grub-probe -t abstraction' to determine what
45499 abstraction module is needed for loading fonts (if any). Export
45500 that as `GRUB_PRELOAD_MODULES'.
45501 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
45502 insmod commands).
45503
52bd3de9 455042008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
45505
45506 Remove some unused code from reiserfs.
f19dbdb7 45507
52bd3de9 45508 * fs/reiserfs.c (struct grub_reiserfs_key)
45509 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
45510 (struct grub_reiserfs_node_body): Removed.
45511 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
45512 Likewise.
45513 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
45514 Likewise.
45515 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
45516 Likewise.
45517 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
45518 Likewise.
45519 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
45520 Likewise.
45521 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
45522 Likewise.
45523 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
45524 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
45525 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
45526
2f80039d 455272008-01-10 Robert Millan <rmh@aybabtu.com>
45528
45529 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
45530 Determines if a file is garbage left by packaging systems, etc.
45531 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
45532 for processing /etc/grub.d scripts.
45533 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
45534 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
45535 as a condition for processing Linux images.
45536
87888032 455372008-01-10 Pavel Roskin <proski@gnu.org>
45538
45539 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
45540 to compile reiserfs.c on PowerPC.
45541
7e54fced 455422008-01-10 Robert Millan <rmh@aybabtu.com>
de9993e0 45543
45544 * kern/device.c (grub_device_iterate): Do not abort device iteration
45545 when one of the devices cannot be opened.
45546 * kern/disk.c (grub_disk_open): Do not account previous failures of
45547 unrelated functions when grub_errno is checked for.
45548
5aa541e6 455492008-01-08 Robert Millan <rmh@aybabtu.com>
45550
45551 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
45552 `! grub_linux_is_bzimage', change order of address comparison to make
45553 it more intuitive, and improve "too big zImage" error message.
45554
7076340d 455552008-01-08 Robert Millan <rmh@aybabtu.com>
45556
45557 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
45558 `$(update-grub_DATA)'.
45559 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
45560 targets.
45561
9ca70333 455622008-01-07 Robert Millan <rmh@aybabtu.com>
45563
45564 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
45565 which instruction is modified by grub-setup during installation
45566 (since it wasn't obvious by only looking at this file).
45567
38ccf575 455682008-01-07 Robert Millan <rmh@aybabtu.com>
45569
45570 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
45571 listing actual TODO items.
45572
f5db4291 455732008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
45574
868967cf 45575 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
45576 correctly.
45577 (grub_reiserfs_get_key_offset): Likewise.
45578 (grub_reiserfs_set_key_offset): Likewise.
45579 (grub_reiserfs_set_key_type): Likewise.
fe6b695a 45580 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
868967cf 45581
45582 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
45583 better to remove the bitfield version completely.
f19dbdb7 45584
868967cf 455852008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 45586
f5db4291 45587 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
45588 allocated from the heap, due to the fshelp implementation.
45589 (grub_reiserfs_dir): Free NODE, due to the same reason.
45590
492e6d9d 455912008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
45592
45593 Mostly from Vincent Pelletier:
f19dbdb7 45594
492e6d9d 45595 * fs/reiserfs.c: New file.
f19dbdb7 45596
492e6d9d 45597 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
45598 (reiserfs_mod_SOURCES): New variable.
45599 (reiserfs_mod_CFLAGS): Likewise.
45600 (reiserfs_mod_LDFLAGS): Likewise.
45601
45602 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
45603 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
45604 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
45605 normal/color.c.
45606
9ce3e7c1 456072008-01-06 Robert Millan <rmh@aybabtu.com>
45608
45609 * normal/color.c: Remove `<grub/env.h>'.
45610
f3b58148 456112008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
45612
45613 * include/grub/normal.h: Include <grub/env.h>.
45614
7ac3bcfa 456152008-01-05 Robert Millan <rmh@aybabtu.com>
45616
45617 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
45618 usage example with `(hd0,1)'.
fb358190 45619 Reported by Samuel Thibault.
7ac3bcfa 45620
c8ee99d7 456212008-01-05 Robert Millan <rmh@aybabtu.com>
45622
45623 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
45624 (grub_linux_boot_zimage): Rename to ...
45625 (grub_linux_boot): ... this.
45626 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
45627 (grub_linux_boot_zimage): Conditionalize zImage copy.
45628
45629 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
45630 (grub_linux_boot_bzimage): Remove prototype.
45631 (grub_linux_boot_zimage): Rename to ...
45632 (grub_linux_boot): ... this.
45633
45634 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
45635 (grub_linux_boot): Remove function.
45636
0ece25b1 456372008-01-05 Robert Millan <rmh@aybabtu.com>
45638
45639 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
45640 (grub_env_write_color_highlight): Likewise.
45641 (grub_wait_after_message): Likewise.
45642
45643 * normal/color.c: New file.
45644
45645 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
45646 (normal_mod_DEPENDENCIES): Likewise.
45647
45648 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
45649 (normal_mod_DEPENDENCIES): Likewise.
45650
45651 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
45652 (normal_mod_DEPENDENCIES): Likewise.
45653
45654 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
45655 (normal_mod_DEPENDENCIES): Likewise.
45656
45657 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
45658 for waiting after a message is printed.
45659 * normal/main.c (read_config_file): Likewise.
45660 (grub_normal_init): Register grub_env_write_color_normal() and
45661 grub_env_write_color_highlight() hooks. Mark `color_normal' and
45662 `color_highlight' variables as global.
45663
45664 * normal/menu.c (grub_wait_after_message): New function.
45665 (grub_color_menu_normal): New variable. Replaces ...
45666 (GRUB_COLOR_MENU_NORMAL): ... this macro.
45667 (grub_color_menu_highlight): New variable. Replaces ...
45668 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
45669 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
45670 `GRUB_TERM_COLOR_STANDARD'.
45671 (print_message): Use `grub_setcolorstate' to reload colors. Rename
45672 `normal_code' and `highlight_code' to `old_color_normal' and
45673 `old_color_highlight', respectively.
45674 (grub_menu_init_page): Update colors when drawing the menu, based on
45675 `menu_color_normal' and `menu_color_highlight' variables.
45676 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
45677 a message is printed.
45678
182dd4e5 456792008-01-05 Robert Millan <rmh@aybabtu.com>
45680
45681 * kern/env.c (grub_env_context_open): Propagate hooks for global
45682 variables to new context.
45683
45684 * kern/main.c (grub_set_root_dev): Export `root' variable.
45685
ddf8f6ad 456862008-01-05 Robert Millan <rmh@aybabtu.com>
45687
45688 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
fe6b695a 45689 discs unconditionally, since udev and others have options to provide
ddf8f6ad 45690 them.
45691
d8b43d9b 456922008-01-05 Robert Millan <rmh@aybabtu.com>
45693
45694 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
45695
2bff2de3 456962008-01-04 Christian Franke <franke@computer.org>
45697
45698 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
45699 of eisa_mmap.
45700
97eab917 457012008-01-03 Pavel Roskin <proski@gnu.org>
45702
45703 * kern/i386/linuxbios/init.c: Put "void" to all function
45704 declarations with no arguments.
45705 * kern/powerpc/ieee1275/init.c: Likewise.
45706 * term/i386/pc/at_keyboard.c: Likewise.
45707 * term/i386/pc/vga_text.c: Likewise.
45708 * util/grub-mkdevicemap.c: Likewise.
45709
b9416d00 457102008-01-02 Robert Millan <rmh@aybabtu.com>
45711
45712 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
45713 message when loaded image is out of bounds.
45714 (grub_multiboot_load_elf64): Likewise.
45715
92695df9 457162008-01-02 Pavel Roskin <proski@gnu.org>
45717
45718 * util/grub.d/10_linux.in: Try version without ".old" when
45719 looking for initrd. It's better to use initrd from the newer
45720 kernel of the same version than no initrd at all.
45721
d98d9cad 457222008-01-01 Robert Millan <rmh@aybabtu.com>
45723
45724 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
45725
dbfdce36 457262008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
45727
f19dbdb7 45728 * include/grub/video.h: Added grub_video_unmap_color and
dbfdce36 45729 grub_video_get_active_render_target.
45730 (grub_video_adapter): Added unmap_color and get_active_render_target.
45731
f19dbdb7 45732 * video/video.c: Added grub_video_unmap_color and
dbfdce36 45733 grub_video_get_active_render_target.
45734 (grub_video_get_info): Changed method to accept NULL pointer as an
45735 argument to allow detection of active video adapter.
45736
45737 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
45738 grub_video_vbe_unmap_color_int.
45739 Added grub_video_vbe_unmap_color and
45740 grub_video_vbe_get_active_render_target.
45741 (grub_video_vbe_adapter): Added unmap_color and
45742 get_active_render_target.
45743
f19dbdb7 45744 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
dbfdce36 45745 with grub_video_vbe_unmap_color_int.
45746
45747 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
45748 (DEFAULT_NORMAL_COLOR): Likewise.
45749 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
45750 (DEFAULT_FG_COLOR): Removed.
45751 (DEFAULT_BG_COLOR): Likewise.
45752 (DEFAULT_CURSOR_COLOR): Changed value.
45753 (grub_virtual_screen): Added standard_color_setting,
45754 normal_color_setting, highlight_color_setting and term_color.
45755 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
45756 (bitmap_width): Added.
45757 (bitmap_height): Likewise.
45758 (bitmap): Likewise.
45759 (set_term_color): Likewise.
45760 (grub_virtual_screen_setup): Changed to use new terminal coloring
45761 settings.
45762 (grub_gfxterm_init): Added init for bitmap.
45763 (grub_gfxterm_fini): Added destroy for bitmap.
45764 (redraw_screen_rect): Updated to use background bitmap and new
45765 terminal coloring.
45766 (scroll_up): Added optimization for case when there is no bitmap.
45767 (grub_gfxterm_cls): Fixed to use correct background color.
45768 (grub_virtual_screen_setcolorstate): Changed to use new terminal
45769 coloring.
45770 (grub_virtual_screen_setcolor): Likewise.
45771 (grub_virtual_screen_getcolor): Added.
45772 (grub_gfxterm_background_image_cmd): Likewise.
45773 (grub_video_term): Added setcolor and getcolor.
45774 (MOD_INIT): Added registration of background_image command.
45775 (MOD_TERM): Added unregistration for background_image command.
45776
c3c20931 457772007-12-30 Pavel Roskin <proski@gnu.org>
45778
45779 * loader/multiboot_loader.c: Fix multiboot command
45780 unregistration. Fix all typos in the word "multiboot".
45781
df266716 457822007-12-29 Pavel Roskin <proski@gnu.org>
94239199 45783
45784 * util/grub.d/10_linux.in: Refactor search for initrd. Add
45785 support for initrd names used in Fedora.
45786
fc6e896c 457872007-12-26 Bean <bean123ch@gmail.com>
45788
45789 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
45790 (cpio_mod_SOURCES): New variable.
45791 (cpio_mod_CFLAGS): Likewise.
45792 (cpio_mod_LDFLAGS): Likewise.
45793
45794 * fs/cpio.c: New file.
45795
45796 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
45797
45798 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45799
45800 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45801
45802 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45803
533110ad 458042007-12-25 Robert Millan <rmh@aybabtu.com>
45805
45806 * include/grub/term.h (struct grub_term): Add `getcolor' function.
45807 (grub_getcolor): New function.
45808
45809 * kern/term.c (grub_getcolor): New function.
45810 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
45811 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
45812 (print_entry): Set normal and highlight colors to
45813 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
45814 respectively, before printing and restore them to old
45815 values afterwards.
45816 (grub_menu_init_page): Likewise. Fill an additional colored space
45817 that would otherwise be left blank.
45818
45819 * term/efi/console.c (grub_console_getcolor): New function.
45820 (struct grub_console_term.getcolor): New variable.
45821 * term/i386/pc/console.c (grub_console_getcolor): New function.
45822 (struct grub_console_term.getcolor): New variable.
45823 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
45824 (struct grub_console_term.getcolor): New variable.
45825
45826 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
45827 (struct grub_console_term.setcolor): Remove variable.
45828 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
45829 (struct grub_console_term.setcolor): Remove variable.
45830 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
45831 (struct grub_console_term.setcolor): Remove variable.
45832 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
45833 (struct grub_console_term.setcolor): Remove variable.
45834
4931827f 458352007-12-25 Robert Millan <rmh@aybabtu.com>
45836
45837 * configure.ac: Search for possible unifont.hex locations, and
45838 define UNIFONT_HEX if found.
45839
45840 * Makefile.in (UNIFONT_HEX): Define variable.
45841 (DATA): Rename to ...
45842 (PKGLIB): ... this. Update all users.
45843 (PKGDATA): New variable.
45844 (pkgdata_IMAGES): Rename to ...
45845 (pkglib_IMAGES): ... this. Update all users.
45846 (pkgdata_MODULES): Rename to ...
45847 (pkglib_MODULES): ... this. Update all users.
45848 (pkgdata_PROGRAMS): Rename to ...
45849 (pkglib_PROGRAMS): ... this. Update all users.
45850 (pkgdata_DATA): Rename to ...
45851 (pkglib_DATA): ... this. Update all users.
45852 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
45853 (unicode.pff, ascii.pff): New rules.
45854 (all-local): Add `$(PKGDATA)' dependency.
45855 (install-local): Process `$(PKGDATA)'.
45856
45857 * util/update-grub_lib.in (font_path): Search for *.pff files in
45858 a few more locations, including `${pkgdata}'.
45859
57e57e31 458602007-12-23 Robert Millan <rmh@aybabtu.com>
45861
45862 Patch from Bean <bean123ch@gmail.com>:
45863 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
45864 `size'.
45865
4bc72aa9 458662007-12-21 Bean <bean123ch@gmail.com>
45867
45868 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
45869 (ntfscomp_mod_SOURCES): New variable.
45870 (ntfscomp_mod_CFLAGS): Likewise.
45871 (ntfscomp_mod_LDFLAGS): Likewise.
45872
45873 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
45874 (grub_probe_SOURCES): Likewise.
45875 (grub_emu_SOURCES): Likewise.
45876
45877 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
45878 (grub_emu_SOURCES): Likewise.
45879
45880 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
45881 (grub_emu_SOURCES): Likewise.
45882
45883 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
45884 (grub_emu_SOURCES): Likewise.
45885
45886 * fs/ntfs.c (grub_ntfscomp_func): New variable.
45887 (read_run_list): Renamed to grub_ntfs_read_run_list.
45888 (decomp_nextvcn): Moved to ntfscomp.c.
45889 (decomp_getch): Likewise.
45890 (decomp_get16): Likewise.
45891 (decomp_block): Likewise.
45892 (read_block): Likewise.
45893 (read_data): Partially moved to ntfscomp.c.
45894 (fixup): Change unsigned to grub_uint16_t.
45895 (read_mft): Change unsigned long to grub_uint32_t.
45896 (read_attr): Likewise.
45897 (read_data): Likewise.
45898 (read_run_data): Likewise.
45899 (read_run_list): Likewise.
45900 (read_mft): Likewise.
45901
45902 * fs/ntfscomp.c: New file.
45903
45904 * include/grub/ntfs.h: New file.
45905
af680a87 459062007-12-16 Robert Millan <rmh@aybabtu.com>
45907
45908 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
45909 IDE disk check, since Linux is known to support 20 IDE disks.
45910 Reported by Colin Watson.
45911
84be7599 459122007-12-15 Bean <bean123ch@gmail.com>
45913
45914 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
45915 (lnxboot_img_SOURCES): New variable.
45916 (lnxboot_img_ASFLAGS): Likewise.
45917 (lnxboot_img_LDFLAGS): Likewise.
45918
45919 * boot/i386/pc/lnxboot.S: New file.
45920
6af9db01 459212007-11-24 Pavel Roskin <proski@gnu.org>
45922
45923 * configure.ac: Test if '--build-id=none' is supported by the
45924 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
45925 objcopy to generate incorrect binary files (binutils
45926 2.17.50.0.18-1 as shipped by Fedora 8).
45927 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
45928 linking, so that build ID doesn't break the test.
45929
7361cfe6 459302007-11-24 Pavel Roskin <proski@gnu.org>
45931
45932 * include/grub/i386/time.h: use "void" in the argument list
45933 of grub_cpu_idle().
45934 * include/grub/powerpc/time.h: Likewise.
45935 * include/grub/sparc64/time.h: Likewise.
45936
1593e10c 459372007-11-18 Christian Franke <franke@computer.org>
45938
45939 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
45940 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
45941 This fixes the problem that function keys did not work in grub-emu.
45942
3b8db1a8 459432007-11-18 Christian Franke <franke@computer.org>
45944
45945 * disk/host.c (grub_host_open): Remove attribute unused from
45946 name parameter. Add check for "host". This fixes the problem
45947 that grub-emu does not find partitions.
45948
2e29408d 459492007-11-18 Christian Franke <franke@computer.org>
45950
45951 * util/hostfs.c (is_dir): New function.
45952 (grub_hostfs_dir): Handle missing dirent.d_type case.
45953 (grub_hostfs_read): Add missing fseek().
45954 (grub_hostfs_label): Clear label pointer. This fixes a crash
45955 of grub-emu on "ls (host)".
45956
398cd047 459572007-11-18 Christian Franke <franke@computer.org>
45958
45959 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
45960 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
45961 to 64 bit boundary by default.
45962
c405c391 459632007-11-18 Bean <bean123ch@gmail.com>
45964
45965 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
45966 (hexdump_mod_SOURCES): New variable.
45967 (hexdump_mod_CFLAGS): Likewise.
45968 (hexdump_mod_LDFLAGS): Likewise.
f19dbdb7 45969
c405c391 45970 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
45971
45972 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
45973
45974 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
45975
45976 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
45977
45978 * include/grub/hexdump.h: New file.
45979
45980 * commands/hexdump.c: New file.
45981
5cced7fd 459822007-11-10 Robert Millan <rmh@aybabtu.com>
45983
45984 * commands/i386/pc/play.c (beep_off): Switch order of arguments
45985 in grub_outb() calls.
45986 (beep_on): Likewise.
45987
8b714eb0 459882007-11-10 Christian Franke <franke@computer.org>
45989
45990 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
45991 (grub_menu_run): Likewise.
45992
ce0f1839 459932007-11-10 Robert Millan <rmh@aybabtu.com>
45994
45995 * include/grub/i386/efi/machine.h: New file.
45996 * include/grub/i386/linuxbios/machine.h: Likewise.
45997 * include/grub/i386/pc/machine.h: Likewise.
45998 * include/grub/powerpc/ieee1275/machine.h: Likewise.
45999 * include/grub/sparc64/ieee1275/machine.h: Likewise.
46000
46001 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
46002 (serial_hw_io_addr): New variable.
46003 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
46004 instead of `(unsigned short *) 0x400'.
46005
270c237d 460062007-11-10 Bean <bean123ch@gmail.com>
46007
46008 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
46009
a87783bf 460102007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
46011
46012 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
46013 (vga_mod_SOURCES): Added.
46014 (vga_mod_CFLAGS): Likewise.
46015 (vga_mod_LDFLAGS): Likewise.
46016
46017 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
46018 grub_outb() calls.
46019 (set_map_mask): Likewise.
46020 (set_read_map): Likewise.
46021 (set_read_address): Likewise.
46022 (vga_font): Removed variable.
46023 (get_vga_glyph): Removed function.
46024 (invalidate_char): Likewise.
46025 (write_char): Changed to use grub_font_get_glyph() for font
46026 information.
46027 (grub_vga_putchar): Likewise.
46028 (grub_vga_getcharwidth): Likewise.
46029
6433b448 460302007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
46031
46032 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
46033 flags.
46034 (pxeboot_img_LDFLAGS): Likewise.
46035 (diskboot_img_LDFLAGS): Likewise.
46036 (kernel_img_LDFLAGS): Likewise.
46037
49178511 460382007-11-06 Robert Millan <rmh@aybabtu.com>
46039
46040 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
46041 in grub_outb() calls.
46042 (serial_hw_init): Likewise.
46043
53b052de 460442007-11-05 Robert Millan <rmh@aybabtu.com>
46045
46046 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
46047 spaces. Skip non-regular files.
46048
5ab33bba 460492007-11-05 Robert Millan <rmh@aybabtu.com>
46050
46051 * kern/disk.c (grub_disk_firmware_fini)
46052 (grub_disk_firmware_is_tainted): New variables.
46053
46054 * include/grub/disk.h (grub_disk_firmware_fini)
46055 (grub_disk_firmware_is_tainted): Likewise.
46056
46057 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
46058 (grub_disk_biosdisk_fini): ... to here.
46059 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
46060 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
46061 is set. Register grub_disk_biosdisk_fini() in
46062 `grub_disk_firmware_fini'.
46063
46064 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
46065 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
46066 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
46067 to finish existing firmware disk interface.
46068
46069 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
46070 (ata_mod_SOURCES): New variable.
46071 (ata_mod_CFLAGS): Likewise.
46072 (ata_mod_LDFLAGS): Likewise.
46073
0149ab7c 460742007-11-05 Robert Millan <rmh@aybabtu.com>
46075
46076 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
46077 (grub_ata_wait): Reimplement using grub_millisleep().
46078
46079 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
46080 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
46081
be7ac41e 460822007-11-03 Marco Gerards <marco@gnu.org>
46083
46084 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
46085 (CRTC_ADDR_PORT): New macro.
46086 (CRTC_DATA_PORT): Likewise.
46087 (CRTC_CURSOR): Likewise.
46088 (CRTC_CURSOR_ADDR_HIGH): Likewise.
46089 (CRTC_CURSOR_ADDR_LOW): Likewise.
46090 (update_cursor): New function.
46091 (grub_console_real_putchar): Call `update_cursor'.
46092 (grub_console_gotoxy): Likewise.
46093 (grub_console_cls): Set the default color when clearing the
46094 screen.
46095 (grub_console_setcursor): Implemented.
46096
bb06ab2e 460972007-11-03 Marco Gerards <marco@gnu.org>
46098
46099 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
46100 become activate.
46101 (grub_ata_pio_write): Likewise.
46102
46103 (grub_atapi_identify): Wait after issuing an ATA command.
46104 (grub_atapi_packet): Likewise.
46105 (grub_ata_identify): Likewise.
46106 (grub_ata_readwrite): Likewise.
46107
cf8f780b 461082007-11-03 Marco Gerards <marco@gnu.org>
46109
46110 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
46111 (grub_ata_pio_write): Likewise.
46112 (grub_ata_readwrite): Use `grub_error', instead of
46113 returning `grub_errno'.
46114
ed649e54 461152007-11-03 Marco Gerards <marco@gnu.org>
46116
46117 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
46118 grub_ata_pio_write once for every single sector, instead of for
46119 multiple sectors.
46120
ca25d8f0 461212007-10-31 Robert Millan <rmh@aybabtu.com>
46122
46123 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
46124
46125 * conf/i386-linuxbios.rmk: New file.
46126
46127 * kern/i386/pc/hardware.c: Likewise.
46128 * term/i386/pc/at_keyboard.c: Likewise.
46129 * term/i386/pc/vga_text.c: Likewise.
46130
46131 * include/grub/i386/linuxbios/boot.h: Likewise.
46132 * include/grub/i386/linuxbios/console.h: Likewise.
46133 * include/grub/i386/linuxbios/init.h: Likewise.
46134 * include/grub/i386/linuxbios/kernel.h: Likewise.
46135 * include/grub/i386/linuxbios/loader.h: Likewise.
46136 * include/grub/i386/linuxbios/memory.h: Likewise.
46137 * include/grub/i386/linuxbios/serial.h: Likewise.
46138 * include/grub/i386/linuxbios/time.h: Likewise.
46139
46140 * kern/i386/linuxbios/init.c: Likewise.
46141 * kern/i386/linuxbios/startup.S: Likewise.
46142 * kern/i386/linuxbios/table.c: Likewise.
46143
e911ecc1 461442007-10-31 Marco Gerards <marco@gnu.org>
46145
46146 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
46147 (ata_mod_SOURCES): New variable.
46148 (ata_mod_CFLAGS): Likewise.
46149 (ata_mod_LDFLAGS): Likewise.
46150
46151 * disk/ata.c: New file.
46152
46153 * include/grub/disk.h (grub_disk_dev_id): Add
46154 `GRUB_DISK_DEV_ATA_ID'.
f19dbdb7 46155
7f66d0e0 461562007-10-31 Robert Millan <rmh@aybabtu.com>
46157
46158 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
46159 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
46160
46161 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
46162 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
46163
46164 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
46165 `<grub/types.h>'.
46166
46167 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
46168
5cd7dd46 461692007-10-27 Robert Millan <rmh@aybabtu.com>
46170
3236ca65 46171 * include/grub/types.h (ULONG_MAX): Define macro.
5cd7dd46 46172
2ebfc90f 461732007-10-22 Robert Millan <rmh@aybabtu.com>
46174
46175 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
46176 `"../realmode.S"'.
46177 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
46178
73fcb0f3 461792007-10-22 Robert Millan <rmh@aybabtu.com>
46180
46181 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
46182 (pkgdata_MODULES): Add `biosdisk.mod'.
46183 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
46184 variables.
46185
46186 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
46187 (grub_biosdisk_init): Replace with ...
46188 (GRUB_MOD_INIT(biosdisk)): ... this.
46189 (grub_biosdisk_fini): Replace with ...
46190 (GRUB_MOD_FINI(biosdisk)): ... this.
46191
46192 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
46193 (grub_machine_init): Remove call to grub_biosdisk_init().
46194 (grub_machine_fini): Remove call to grub_machine_fini().
46195
46196 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
46197
3381d274 461982007-10-22 Robert Millan <rmh@aybabtu.com>
46199
46200 * include/grub/time.h: New file.
46201 * include/grub/i386/time.h: Likewise.
46202 * include/grub/powerpc/time.h: Likewise.
46203 * include/grub/sparc64/time.h: Likewise.
46204
46205 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
46206 instances to ...
46207 (KERNEL_MACHINE_TIME_HEADER): ... this.
46208 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
46209 instances to ...
46210 (KERNEL_MACHINE_TIME_HEADER): ... this.
46211 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
46212 instances to ...
46213 (KERNEL_MACHINE_TIME_HEADER): ... this.
46214
46215 * kern/i386/efi/init.c: Include `<grub/time.h>'.
46216 (grub_millisleep): New function.
46217 * kern/i386/pc/init.c: Include `<grub/time.h>'.
46218 (grub_millisleep): New function.
46219 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
46220 Remove `grub/machine/time.h' include.
46221 (grub_millisleep): New function.
46222 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
46223 Remove `grub/machine/time.h' include.
46224 (grub_millisleep): New function.
46225
46226 * include/grub/misc.h (grub_div_roundup): New function.
46227
46228 * kern/misc.c: Include `<grub/time.h>'.
46229 (grub_millisleep_generic): New function.
46230
46231 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
46232 Add `time.h'.
46233 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
46234 Add `time.h'.
46235 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
46236 `machine/time.h'. Add `time.h'.
46237 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
46238
a39a0312 462392007-10-21 Robert Millan <rmh@aybabtu.com>
46240
46241 * include/grub/misc.h (grub_max): New function.
46242
2aad70e2 462432007-10-21 Robert Millan <rmh@aybabtu.com>
46244
46245 * util/misc.c (grub_util_info): Call fflush() before returning.
46246
54b71c4b 462472007-10-20 Robert Millan <rmh@aybabtu.com>
46248
46249 * genmk.rb (Image): Copy `extra_flags' from here ...
46250 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
46251
46252 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
46253 to `argc' and `args' arguments.
46254
a979f513 462552007-10-17 Robert Millan <rmh@aybabtu.com>
46256
46257 * kern/i386/loader.S: New file.
46258
46259 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
46260 * kern/i386/loader.S (grub_linux_prot_size)... to here.
46261 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
46262 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
46263 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
46264 * kern/i386/loader.S (grub_linux_real_addr)... to here.
46265 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
46266 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
46267 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
46268 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
46269 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
46270 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
46271 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
46272 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
46273
46274 * kern/i386/realmode.S: New file.
46275
46276 * kern/i386/pc/startup.S (protstack): Moved from here ...
46277 * kern/i386/realmode.S (protstack)... to here.
46278 * kern/i386/pc/startup.S (gdt): Moved from here ...
46279 * kern/i386/realmode.S (gdt)... to here.
46280 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
46281 * kern/i386/realmode.S (prot_to_real)... to here.
46282
46283 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
46284 `kern/i386/realmode.S'.
46285
825fc8fd 462862007-10-17 Robert Millan <rmh@aybabtu.com>
46287
46288 * include/grub/i386/loader.h: New file.
46289
46290 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
46291 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
46292 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
46293 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
46294 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
46295 * include/grub/i386/loader.h (grub_linux_prot_size)
46296 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
46297 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
46298 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
46299 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
46300
46301 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
46302
e179b2f4 463032007-10-15 Robert Millan <rmh@aybabtu.com>
46304
46305 * normal/misc.c (grub_normal_print_device_info): Do not probe for
46306 filesystem when dev->disk is unset.
46307 Do probe for filesystem even when dev->disk->has_partitions is set.
46308 In case a filesystem is found, always report it.
46309 In case it isn't, if dev->disk->has_partitions is set, report that
46310 a partition table was found instead of reporting that no filesystem
46311 could be identified.
46312
5db82af6 463132007-10-12 Robert Millan <rmh@aybabtu.com>
46314
46315 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
46316 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
46317
68f6ac74 46318 * include/grub/types.h (grub_host_to_target16): New macro.
46319 (grub_host_to_target32): Likewise.
46320 (grub_host_to_target64): Likewise.
46321 (grub_target_to_host16): Likewise.
46322 (grub_target_to_host32): Likewise.
46323 (grub_target_to_host64): Likewise.
5db82af6 46324
46325 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
46326 Renamed from to ...
46327 (GRUB_MOD_ALIGN): ...this. Update all users.
46328
68f6ac74 46329 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
46330 grub_host_to_target32.
46331 Replace grub_be_to_cpu32 with grub_target_to_host32.
46332 (load_modules): Likewise.
46333 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
46334 Replace grub_be_to_cpu32 with grub_target_to_host32.
46335 Replace grub_cpu_to_be16 with grub_host_to_target16.
46336 Replace grub_cpu_to_be32 grub_host_to_target32.
5db82af6 46337
3cf497cc 463382007-10-12 Robert Millan <rmh@aybabtu.com>
46339
46340 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
46341 * util/elf/grub-mkimage.c: ... here.
46342
46343 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
46344 `util/powerpc/ieee1275/grub-mkimage.c'.
46345
c8cc3692 463462007-10-07 Robert Millan <rmh@aybabtu.com>
adbc4c9d 46347
c8cc3692 46348 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
46349 and make it easier to figure out.
46350 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
46351 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
46352 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
46353 leave us with less than HEAP_MIN_SIZE total heap.
46354 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
adbc4c9d 46355
5c58b791 463562007-10-03 Robert Millan <rmh@aybabtu.com>
46357
46358 * include/grub/i386/io.h: New file.
46359 * commands/i386/pc/play.c (inb): Removed.
46360 (outb): Removed.
46361 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
46362 with grub_outb().
afcd2ef8 46363 * term/i386/pc/serial.c (inb): Removed.
46364 (outb): Removed.
46365 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
46366 with grub_outb().
46367 * term/i386/pc/vga.c (inb): Removed.
46368 (outb): Removed.
46369 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
46370 with grub_outb().
5c58b791 46371
1a477ed6 463722007-10-02 Robert Millan <rmh@aybabtu.com>
46373
46374 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
46375 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46376 Reported by Marcin Kurek.
46377
6b5d80fa 463782007-09-07 Robert Millan <rmh@aybabtu.com>
46379
46380 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
46381 SmartFirmware version updates (as released by Sven Luther), and avoid
46382 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
46383 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
46384 known broken.
46385
5618afbf 463862007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
46387
46388 From Hitoshi Ozeki:
46389 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
46390 when merging two regions.
46391
6139dcd9 463922007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
46393
508e39ee 46394 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
46395 * normal/completion.c (grub_normal_do_completion): Likewise.
46396 Reported by Hitoshi Ozeki.
46397
463982007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 46399
6139dcd9 46400 Do not use devices at boot in chainloading.
f19dbdb7 46401
6139dcd9 46402 * loader/i386/pc/chainloader.c (boot_drive): New variable.
46403 (boot_part_addr): Likewise.
46404 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
46405 with BOOT_DRIVE and BOOT_PART_ADDR.
46406 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
46407 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
46408
38da6516 464092007-08-29 Robert Millan <rmh@aybabtu.com>
46410
46411 Patch from Simon Peter <dn.tlp@gmx.net>:
46412 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
46413 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
46414 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
46415 util/i386/pc/grub-setup.c_DEPENDENCIES.
46416 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
46417 util/grub-probe.c_DEPENDENCIES.
46418 * conf/powerpc-ieee1275.rmk: Likewise.
46419
29d0928c 464202007-08-28 Robert Millan <rmh@aybabtu.com>
46421
46422 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
46423 to tell grub-mkdevicemap how to name devices.
46424 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
46425 feature).
46426
46427 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
46428 util/i386/get_disk_name.c.
46429 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
46430 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
46431 util/ieee1275/get_disk_name.c.
46432
46433 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
46434
46435 * DISTLIST: Add util/i386/get_disk_name.c and
46436 util/ieee1275/get_disk_name.c.
46437
46438 * util/grub-mkdevicemap.c: Replace device naming logic with
46439 grub_util_get_disk_name() calls.
46440
5a0d3cca 464412007-08-20 Robert Millan <rmh@aybabtu.com>
46442
46443 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
46444 (so that it works for both plural and singular quantities).
46445
8b72db2f 464462007-08-05 Robert Millan <rmh@aybabtu.com>
46447
46448 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
46449 so that [xz] isn't taken into account when determining order.
46450
352466bf 464512007-08-02 Marco Gerards <marco@gnu.org>
46452
46453 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
46454 `include/multiboot2.h', `include/grub/elfload.h',
46455 `include/multiboot.h', `include/grub/multiboot.h',
46456 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
46457 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
46458 `kern/elf.c', `loader/multiboot_loader.c',
46459 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
46460 `loader/i386/pc/multiboot2.c',
46461 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
46462 `util/i386/pc/grub-mkrescue.in'. Remove
46463 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
46464 `include/grub/i386/pc/util/biosdisk.h' and
46465 `include/grub/powerpc/ieee1275/multiboot.h'.
46466
8f096014 464672007-08-02 Bean <bean123ch@gmail.com>
46468
46469 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
46470 (ntfs_mod_SOURCES): New variable.
46471 (ntfs_mod_CFLAGS): Likewise.
46472 (ntfs_mod_LDFLAGS): Likewise.
46473
46474 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
46475 (grub_probe_SOURCES): Likewise.
46476 (grub_emu_SOURCES): Likewise.
46477
46478 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
46479 (grub_emu_SOURCES): Likewise.
46480
46481 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
46482 (grub_emu_SOURCES): Likewise.
f19dbdb7 46483
8f096014 46484 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
46485
46486 * fs/ntfs.c: New file.
46487
9959f7db 464882007-08-02 Bean <bean123ch@gmail.com>
46489
46490 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
46491
46492 * file.h (grub_file): Likewise.
46493
46494 * fshelp.h (grub_fshelp_read_file): Likewise.
46495
46496 * util/i386/pc/grub-setup.c (setup): Likewise.
46497 (save_first_sector): Likewise.
46498 (save_blocklists): Likewise.
f19dbdb7 46499
9959f7db 46500 * fs/affs.c (grub_affs_read_file): Likewise.
46501
46502 * fs/ext2.c (grub_ext2_read_file): Likewise.
46503
46504 * fs/fat.c (grub_fat_read_data): Likewise.
46505
46506 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
46507
46508 * fs/hfs.c (grub_hfs_read_file): Likewise.
46509
46510 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
46511
46512 * fs/jfs.c (grub_jfs_read_file): Likewise.
46513
46514 * fs/minix.c (grub_minix_read_file): Likewise.
46515
46516 * fs/sfs.c (grub_sfs_read_file): Likewise.
46517
46518 * fs/ufs.c (grub_ufs_read_file): Likewise.
f19dbdb7 46519
9959f7db 46520 * fs/xfs.c (grub_xfs_read_file): Likewise.
46521
46522 * command/blocklist.c (read_blocklist): Likewise.
46523 (print_blocklist): Likewise.
46524
0a203f83 465252007-08-02 Marco Gerards <marco@gnu.org>
46526
46527 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
46528 `util/hostfs.c'.
46529
46530 * disk/host.c: New file.
46531
46532 * util/hostfs.c: Likewise.
46533
46534 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
46535 return `GRUB_ERR_BAD_FS'.
46536 * fs/sfs.c (grub_sfs_mount): Likewise.
46537 * fs/xfs.c (grub_xfs_mount): Likewise.
46538
46539 * include/grub/disk.h (enum grub_disk_dev_id): Add
46540 `GRUB_DISK_DEVICE_HOST_ID'.
46541
46542 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
46543
e5dfe777 465442007-07-24 Jerone Young <jerone@gmail.com>
46545
f19dbdb7 46546 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
e5dfe777 46547 modules for compilation.
46548 * conf/powerpc-ieee1275.rmk: Likewise.
46549
46550 * include/multiboot.h: Move multiboot definitions to one file. Rename
46551 many definitions to not get grub specific.
46552 * include/multiboot2.h: Create header with multiboot 2 definitions.
46553 * include/grub/multiboot.h: Header for grub specific function
46554 prototypes and definitions.
46555 * include/grub/multiboot2.h: Likewise.
46556 * include/grub/multiboot_loader.h: Likewise.
46557 * include/grub/i386/pc/multiboot.h: Removed.
46558 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
46559
46560 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
46561 and 2 to allow for one multiboot and module commands.
46562 * loader/multiboot2.c: Add multiboot2 functionality.
46563 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
46564 and definition names.
46565 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
46566 2 functions.
46567 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
46568 ieee1275 specific multiboot2 code.
46569
46570 * kern/i386/pc/startup.S: Change headers and definition names for
46571 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
46572
daf0f0ba 465732007-07-22 Robert Millan <rmh@aybabtu.com>
46574
46575 * geninitheader.sh: Process file specified in first parameter rather
46576 than hardcoding grub_modules_init.lst.
fe6b695a 46577 * geninit.sh: Likewise. Also, construct header name dynamically rather
daf0f0ba 46578 than hardcoding grub_modules_init.h.
46579
46580 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
46581 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
46582 grub_probe_init.[ch] and grub_setup_init.[ch].
46583
46584 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
46585 grub_modules_init.h with grub_emu_init.h.
46586 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
46587 grub_probe_init.[ch] files.
46588 * conf/i386-efi.rmk: Likewise.
46589 * conf/i386-pc.rmk: Likewise.
46590 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
46591 grub_setup_init.[ch] files.
46592
46593 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
46594 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
46595 to initialize modules rather than a list of hardcoded functions.
46596 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
46597 grub_init_all() to initialize modules rather than a list of hardcoded
46598 functions.
46599
54cdc1cc 466002007-07-22 Robert Millan <rmh@aybabtu.com>
46601
46602 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
46603 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
46604
ad0686cc 466052007-07-22 Robert Millan <rmh@aybabtu.com>
46606
46607 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
46608 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
46609 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
46610 flag when running on SmartFirmware.
46611 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
46612 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
46613 was set.
46614
46615 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
46616 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
46617 rather than decreasing it.
46618
46619 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
46620 there's not enough space to do it, fail in the same way as when it
46621 can't be done because there are no partitions.
46622
46623 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
46624 when nvsetenv failed.
46625
969c02ec 466262007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
46627
46628 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
46629 because this rule is automatically generated.
46630 (grub-mkrescue): Removed for the same reason as above.
46631
5a79f472 466322007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
46633
46634 Migrate to GNU General Public License Version 3.
f19dbdb7 46635
5a79f472 46636 * COPYING: Replaced with the plain text version of GPLv3.
46637
46638 * config.guess: Updated from gnulib.
46639 * config.sub: Likewise.
46640
46641 * geninit.sh: Output a GPLv3 copyright notice.
46642 * geninitheader.sh: Likewise.
46643 * genmodsrc.sh: Likewise.
46644 * gensymlist.sh.in: Likewise.
46645
46646 * boot/i386/pc/boot.S: Upgraded to GPLv3.
46647 * boot/i386/pc/diskboot.S: Likewise.
46648 * boot/i386/pc/pxeboot.S: Likewise.
46649 * commands/blocklist.c: Likewise.
46650 * commands/boot.c: Likewise.
46651 * commands/cat.c: Likewise.
46652 * commands/cmp.c: Likewise.
46653 * commands/configfile.c: Likewise.
46654 * commands/echo.c: Likewise.
46655 * commands/help.c: Likewise.
46656 * commands/ls.c: Likewise.
46657 * commands/search.c: Likewise.
46658 * commands/terminal.c: Likewise.
46659 * commands/test.c: Likewise.
46660 * commands/videotest.c: Likewise.
46661 * commands/i386/cpuid.c: Likewise.
46662 * commands/i386/pc/halt.c: Likewise.
46663 * commands/i386/pc/play.c: Likewise.
46664 * commands/i386/pc/reboot.c: Likewise.
46665 * commands/i386/pc/vbeinfo.c: Likewise.
46666 * commands/i386/pc/vbetest.c: Likewise.
46667 * commands/ieee1275/halt.c: Likewise.
46668 * commands/ieee1275/reboot.c: Likewise.
46669 * commands/ieee1275/suspend.c: Likewise.
46670 * disk/loopback.c: Likewise.
46671 * disk/lvm.c: Likewise.
46672 * disk/raid.c: Likewise.
46673 * disk/efi/efidisk.c: Likewise.
46674 * disk/i386/pc/biosdisk.c: Likewise.
46675 * disk/ieee1275/ofdisk.c: Likewise.
46676 * font/manager.c: Likewise.
46677 * fs/affs.c: Likewise.
46678 * fs/ext2.c: Likewise.
46679 * fs/fat.c: Likewise.
46680 * fs/fshelp.c: Likewise.
46681 * fs/hfs.c: Likewise.
46682 * fs/hfsplus.c: Likewise.
46683 * fs/iso9660.c: Likewise.
46684 * fs/jfs.c: Likewise.
46685 * fs/minix.c: Likewise.
46686 * fs/sfs.c: Likewise.
46687 * fs/ufs.c: Likewise.
46688 * fs/xfs.c: Likewise.
46689 * hello/hello.c: Likewise.
46690 * include/grub/acorn_filecore.h: Likewise.
46691 * include/grub/arg.h: Likewise.
46692 * include/grub/bitmap.h: Likewise.
46693 * include/grub/boot.h: Likewise.
46694 * include/grub/cache.h: Likewise.
46695 * include/grub/device.h: Likewise.
46696 * include/grub/disk.h: Likewise.
46697 * include/grub/dl.h: Likewise.
46698 * include/grub/elfload.h: Likewise.
46699 * include/grub/env.h: Likewise.
46700 * include/grub/err.h: Likewise.
46701 * include/grub/file.h: Likewise.
46702 * include/grub/font.h: Likewise.
46703 * include/grub/fs.h: Likewise.
46704 * include/grub/fshelp.h: Likewise.
46705 * include/grub/gzio.h: Likewise.
46706 * include/grub/hfs.h: Likewise.
46707 * include/grub/kernel.h: Likewise.
46708 * include/grub/loader.h: Likewise.
46709 * include/grub/lvm.h: Likewise.
46710 * include/grub/misc.h: Likewise.
46711 * include/grub/mm.h: Likewise.
46712 * include/grub/net.h: Likewise.
46713 * include/grub/normal.h: Likewise.
46714 * include/grub/parser.h: Likewise.
46715 * include/grub/partition.h: Likewise.
46716 * include/grub/pc_partition.h: Likewise.
46717 * include/grub/raid.h: Likewise.
46718 * include/grub/rescue.h: Likewise.
46719 * include/grub/script.h: Likewise.
46720 * include/grub/setjmp.h: Likewise.
46721 * include/grub/symbol.h: Likewise.
46722 * include/grub/term.h: Likewise.
46723 * include/grub/terminfo.h: Likewise.
46724 * include/grub/tparm.h: Likewise.
46725 * include/grub/types.h: Likewise.
46726 * include/grub/video.h: Likewise.
46727 * include/grub/efi/api.h: Likewise.
46728 * include/grub/efi/chainloader.h: Likewise.
46729 * include/grub/efi/console.h: Likewise.
46730 * include/grub/efi/console_control.h: Likewise.
46731 * include/grub/efi/disk.h: Likewise.
46732 * include/grub/efi/efi.h: Likewise.
46733 * include/grub/efi/pe32.h: Likewise.
46734 * include/grub/efi/time.h: Likewise.
46735 * include/grub/i386/linux.h: Likewise.
46736 * include/grub/i386/setjmp.h: Likewise.
46737 * include/grub/i386/types.h: Likewise.
46738 * include/grub/i386/efi/kernel.h: Likewise.
46739 * include/grub/i386/efi/loader.h: Likewise.
46740 * include/grub/i386/efi/time.h: Likewise.
46741 * include/grub/i386/pc/biosdisk.h: Likewise.
46742 * include/grub/i386/pc/boot.h: Likewise.
46743 * include/grub/i386/pc/chainloader.h: Likewise.
46744 * include/grub/i386/pc/console.h: Likewise.
46745 * include/grub/i386/pc/init.h: Likewise.
46746 * include/grub/i386/pc/kernel.h: Likewise.
46747 * include/grub/i386/pc/loader.h: Likewise.
46748 * include/grub/i386/pc/memory.h: Likewise.
46749 * include/grub/i386/pc/multiboot.h: Likewise.
46750 * include/grub/i386/pc/serial.h: Likewise.
46751 * include/grub/i386/pc/time.h: Likewise.
46752 * include/grub/i386/pc/vbe.h: Likewise.
46753 * include/grub/i386/pc/vbeblit.h: Likewise.
46754 * include/grub/i386/pc/vbefill.h: Likewise.
46755 * include/grub/i386/pc/vbeutil.h: Likewise.
46756 * include/grub/i386/pc/vga.h: Likewise.
46757 * include/grub/ieee1275/ieee1275.h: Likewise.
46758 * include/grub/ieee1275/ofdisk.h: Likewise.
46759 * include/grub/powerpc/libgcc.h: Likewise.
46760 * include/grub/powerpc/setjmp.h: Likewise.
46761 * include/grub/powerpc/types.h: Likewise.
46762 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
46763 * include/grub/powerpc/ieee1275/console.h: Likewise.
46764 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
46765 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
46766 * include/grub/powerpc/ieee1275/loader.h: Likewise.
46767 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
46768 * include/grub/powerpc/ieee1275/time.h: Likewise.
46769 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
46770 * include/grub/sparc64/libgcc.h: Likewise.
46771 * include/grub/sparc64/setjmp.h: Likewise.
46772 * include/grub/sparc64/types.h: Likewise.
46773 * include/grub/sparc64/ieee1275/console.h: Likewise.
46774 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
46775 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
46776 * include/grub/sparc64/ieee1275/time.h: Likewise.
46777 * include/grub/util/biosdisk.h: Likewise.
46778 * include/grub/util/getroot.h: Likewise.
46779 * include/grub/util/lvm.h: Likewise.
46780 * include/grub/util/misc.h: Likewise.
46781 * include/grub/util/raid.h: Likewise.
46782 * include/grub/util/resolve.h: Likewise.
46783 * io/gzio.c: Likewise.
46784 * kern/device.c: Likewise.
46785 * kern/disk.c: Likewise.
46786 * kern/dl.c: Likewise.
46787 * kern/elf.c: Likewise.
46788 * kern/env.c: Likewise.
46789 * kern/err.c: Likewise.
46790 * kern/file.c: Likewise.
46791 * kern/fs.c: Likewise.
46792 * kern/loader.c: Likewise.
46793 * kern/main.c: Likewise.
46794 * kern/misc.c: Likewise.
46795 * kern/mm.c: Likewise.
46796 * kern/parser.c: Likewise.
46797 * kern/partition.c: Likewise.
46798 * kern/rescue.c: Likewise.
46799 * kern/term.c: Likewise.
46800 * kern/efi/efi.c: Likewise.
46801 * kern/efi/init.c: Likewise.
46802 * kern/efi/mm.c: Likewise.
46803 * kern/i386/dl.c: Likewise.
46804 * kern/i386/efi/init.c: Likewise.
46805 * kern/i386/efi/startup.S: Likewise.
46806 * kern/i386/pc/init.c: Likewise.
46807 * kern/i386/pc/lzo1x.S: Likewise.
46808 * kern/i386/pc/startup.S: Likewise.
46809 * kern/ieee1275/ieee1275.c: Likewise.
46810 * kern/powerpc/cache.S: Likewise.
46811 * kern/powerpc/dl.c: Likewise.
46812 * kern/powerpc/ieee1275/cmain.c: Likewise.
46813 * kern/powerpc/ieee1275/crt0.S: Likewise.
46814 * kern/powerpc/ieee1275/init.c: Likewise.
46815 * kern/powerpc/ieee1275/openfw.c: Likewise.
46816 * kern/sparc64/cache.S: Likewise.
46817 * kern/sparc64/dl.c: Likewise.
46818 * kern/sparc64/ieee1275/init.c: Likewise.
46819 * kern/sparc64/ieee1275/openfw.c: Likewise.
46820 * loader/efi/chainloader.c: Likewise.
46821 * loader/efi/chainloader_normal.c: Likewise.
46822 * loader/i386/efi/linux.c: Likewise.
46823 * loader/i386/efi/linux_normal.c: Likewise.
46824 * loader/i386/pc/chainloader.c: Likewise.
46825 * loader/i386/pc/chainloader_normal.c: Likewise.
46826 * loader/i386/pc/linux.c: Likewise.
46827 * loader/i386/pc/linux_normal.c: Likewise.
46828 * loader/i386/pc/multiboot.c: Likewise.
46829 * loader/i386/pc/multiboot_normal.c: Likewise.
46830 * loader/powerpc/ieee1275/linux.c: Likewise.
46831 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
46832 * normal/arg.c: Likewise.
46833 * normal/cmdline.c: Likewise.
46834 * normal/command.c: Likewise.
46835 * normal/completion.c: Likewise.
46836 * normal/execute.c: Likewise.
46837 * normal/function.c: Likewise.
46838 * normal/lexer.c: Likewise.
46839 * normal/main.c: Likewise.
46840 * normal/menu.c: Likewise.
46841 * normal/menu_entry.c: Likewise.
46842 * normal/misc.c: Likewise.
46843 * normal/parser.y: Likewise.
46844 * normal/script.c: Likewise.
46845 * normal/i386/setjmp.S: Likewise.
46846 * normal/powerpc/setjmp.S: Likewise.
46847 * normal/sparc64/setjmp.S: Likewise.
46848 * partmap/acorn.c: Likewise.
46849 * partmap/amiga.c: Likewise.
46850 * partmap/apple.c: Likewise.
46851 * partmap/gpt.c: Likewise.
46852 * partmap/pc.c: Likewise.
46853 * partmap/sun.c: Likewise.
46854 * term/gfxterm.c: Likewise.
46855 * term/terminfo.c: Likewise.
46856 * term/efi/console.c: Likewise.
46857 * term/i386/pc/console.c: Likewise.
46858 * term/i386/pc/serial.c: Likewise.
46859 * term/i386/pc/vesafb.c: Likewise.
46860 * term/i386/pc/vga.c: Likewise.
46861 * term/ieee1275/ofconsole.c: Likewise.
46862 * util/biosdisk.c: Likewise.
46863 * util/console.c: Likewise.
46864 * util/genmoddep.c: Likewise.
46865 * util/getroot.c: Likewise.
46866 * util/grub-emu.c: Likewise.
46867 * util/grub-mkdevicemap.c: Likewise.
46868 * util/grub-probe.c: Likewise.
46869 * util/lvm.c: Likewise.
46870 * util/misc.c: Likewise.
46871 * util/raid.c: Likewise.
46872 * util/resolve.c: Likewise.
46873 * util/update-grub.in: Likewise.
46874 * util/update-grub_lib.in: Likewise.
46875 * util/grub.d/00_header.in: Likewise.
46876 * util/grub.d/10_hurd.in: Likewise.
46877 * util/grub.d/10_linux.in: Likewise.
46878 * util/i386/efi/grub-install.in: Likewise.
46879 * util/i386/efi/grub-mkimage.c: Likewise.
46880 * util/i386/pc/grub-install.in: Likewise.
46881 * util/i386/pc/grub-mkimage.c: Likewise.
46882 * util/i386/pc/grub-mkrescue.in: Likewise.
46883 * util/i386/pc/grub-setup.c: Likewise.
46884 * util/i386/pc/misc.c: Likewise.
46885 * util/powerpc/ieee1275/grub-install.in: Likewise.
46886 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
46887 * util/powerpc/ieee1275/misc.c: Likewise.
46888 * video/bitmap.c: Likewise.
46889 * video/video.c: Likewise.
46890 * video/i386/pc/vbe.c: Likewise.
46891 * video/i386/pc/vbeblit.c: Likewise.
46892 * video/i386/pc/vbefill.c: Likewise.
46893 * video/i386/pc/vbeutil.c: Likewise.
46894 * video/readers/tga.c: Likewise.
46895
3572d015 468962007-07-02 Robert Millan <rmh@aybabtu.com>
46897
46898 * conf/i386-efi.rmk: Replace obsolete reference to
46899 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
46900 with util/getroot.c.
46901 * conf/powerpc-ieee1275.rmk: Likewise.
46902 * conf/sparc64-ieee1275.rmk: Likewise.
46903
46904 * util/grub-emu.c (main): Fix unchecked pointer handling.
46905
2c2a681b 469062007-07-02 Robert Millan <rmh@aybabtu.com>
46907
46908 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
46909 invocation to fail, in order to support partition-less media.
46910
46911 * util/i386/pc/grub-install.in: Likewise.
46912
46913 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
46914 which fs or partmap modules are needed (akin to its sister scripts).
46915
46916 Also use grub-probe to get rid of unportable /proc/mounts check.
46917
46918 Print the same informational message that the other scripts do, before
fe6b695a 46919 exiting.
2c2a681b 46920
6193defe 469212007-06-23 Robert Millan <rmh@aybabtu.com>
46922
fe6b695a 46923 * util/update-grub_lib.in (font_path): New function. Determine whether
6193defe 46924 a font file can be found and, if so, echo the GRUB path to it.
46925
46926 * util/update-grub.in: Handle multiple terminals depending on user
46927 input, platform availability and font file presence. Propagate
46928 variables of our findings to /etc/grub.d/ children.
46929
46930 * util/grub.d/00_header.in: Handle multiple terminals, based on
46931 environment setup by update-grub.
46932
eface1dc 469332007-06-23 Robert Millan <rmh@aybabtu.com>
46934
ba50d28f 46935 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
eface1dc 46936
bf697e28 469372007-06-21 Robert Millan <rmh@aybabtu.com>
46938
46939 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
46940 indicate end of data section in kernel image.
46941 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
46942 GRUB_KERNEL_MACHINE_DATA_END.
46943
46944 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
46945 space for it.
46946 * kern/i386/efi/startup.S: Likewise.
46947
46948 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
46949 during image generation. Implement --prefix option to override this
46950 patch.
46951 * util/i386/efi/grub-mkimage.c: Likewise.
46952
46953 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
46954 code to make path relative to its root into a separate function.
46955
46956 * util/i386/pc/grub-install.in: Use newly provided
46957 make_system_path_relative_to_its_root() to convert ${grubdir}, then
46958 pass the result to grub-install --prefix.
46959
baa574b4 469602007-06-13 Robert Millan <rmh@aybabtu.com>
46961
46962 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
46963 DEFAULT_DEVICE_MAP.
46964 * util/grub-emu.c: Use above definitions from misc.h instead of
46965 defining them.
46966 * util/grub-mkdevicemap.c: Likewise.
46967 * util/i386/pc/grub-setup.c: Likewise.
46968 * util/grub-probe.c: Likewise.
46969 (probe): Abort with grub_util_error() when either
46970 grub_guess_root_device or grub_util_get_grub_dev fails.
46971
0215dcbf 469722007-06-12 Robert Millan <rmh@aybabtu.com>
46973
46974 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
46975 "pager" assignment.
46976 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
46977 "pcdata".
46978 * util/grub-probe.c (probe): Likewise for "drive_name".
46979
8af2ab7b 469802007-06-11 Robert Millan <rmh@aybabtu.com>
46981
46982 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
46983 not just the cdrom one.
46984
59d31694 469852007-06-11 Robert Millan <rmh@aybabtu.com>
46986
46987 * util/i386/pc/grub-mkrescue.in: Add "set -e".
46988 Add --pkglibdir=DIR option to override pkglibdir.
46989 Mention --image-type=TYPE in help output.
46990 Fix --grub-mkimage (it was a no-op).
fe6b695a 46991 Abort gracefully when no parameter is given.
59d31694 46992
7ee367e4 469932007-06-11 Robert Millan <rmh@aybabtu.com>
46994
46995 * util/i386/pc/grub-mkrescue.in: New file.
46996 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
46997 * Makefile.in: Handle bin_SCRIPTS.
46998
29b0ed46 469992007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
47000
47001 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
47002 list of video modes.
47003
c0f90770 470042007-06-06 Robert Millan <rmh@aybabtu.com>
47005
47006 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
47007 file doesn't exist, or if it is in a filesystem grub can't read.
47008
47009 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
47010 not abort if GRUB_DRIVE could not be defined. Rearrange generated
47011 header comment to fit in 80 columns when the variables are resolved.
47012
47013 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
47014 could be identified by update-grub. Remove redundant check for
fe6b695a 47015 unifont.pff existence (since convert_system_path_to_grub_path now
c0f90770 47016 handles that).
47017
fb36dc26 470182007-06-04 Robert Millan <rmh@aybabtu.com>
47019
47020 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
47021
47022 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
47023
47024 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
47025
0c68c93e 470262007-06-04 Robert Millan <rmh@aybabtu.com>
47027
47028 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
47029
47030 * include/grub/partition.h: Declare grub_apple_partition_map_init and
47031 grub_apple_partition_map_fini.
47032
47033 * util/biosdisk.c
47034 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
47035 to access >2 TiB disks).
47036
47037 Print disk->total_sectors with %llu instead of %lu, since this
47038 variable is always 64-bit (prevents wrong disk size from being displayed
47039 on either >2 TiB disk or big-endian CPU).
47040
47041 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
47042 into a generic case that supports all (sane) partition maps.
47043
47044 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
47045 breaks big-endian.
47046
47047 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
47048 and grub_apple_partition_map_fini() after that.
47049
0f23eb74 470502007-06-01 Robert Millan <rmh@aybabtu.com>
47051
47052 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
47053
47054 * util/grub.d/00_header.in: Only enable gfxterm when
47055 convert_system_path_to_grub_path() succeeds.
47056
42c71976 470572007-05-20 Robert Millan <rmh@aybabtu.com>
47058
47059 * util/update-grub_lib.in: New file.
47060 * DISTLIST: Add update-grub_lib.in.
47061 * conf/common.rmk: Generate update-grub_lib and install it in
47062 $(lib_DATA).
47063 * Makefile.in: Add install routine for $(lib_DATA).
47064
47065 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
47066 function provided by update-grub_lib to support arbitrary paths of
47067 unifont.pff.
47068 * util/update-grub.in: Use convert_system_path_to_grub_path() to
47069 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
47070
5beb2291 470712007-05-19 Robert Millan <rmh@aybabtu.com>
47072
47073 * commands/i386/cpuid.c: New module.
47074 * DISTLIST: Add it.
47075 * conf/i386-efi.rmk: Enable cpuid.mod.
47076 * conf/i386-pc.rmk: Likewise.
47077
7262eca1 470782007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
47079
47080 * kern/disk.c (grub_disk_read): Check return value of
47081 grub_realloc().
47082
260ba823 470832007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
47084
47085 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
47086 arrays.
47087 * disk/raid.c (grub_raid_open): Likewise.
47088
1ecb6cf2 470892007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
47090
47091 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
47092 stack instead of on the heap.
47093
47094 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
47095 before doing a read on it.
47096
47097 * configure.ac: Only use -fno-stack-protector for the target
47098 environment.
f19dbdb7 47099
21c8cbb1 471002007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
47101
47102 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
47103 __attribute_ ((unused)) to mode_type argument.
47104
47105 * util/getroot.c (grub_guess_root_device): Fix #endif.
f19dbdb7 47106
21c8cbb1 47107 * kern/misc.c (memcmp): Fix prototype.
47108
47109 * include/grub/partition.h [GRUB_UTIL]
47110 (grub_gpt_partition_map_init): Add prototype.
47111 (grub_gpt_partition_map_fini): Likewise.
47112
47113 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
47114 at the right place.
47115
47116 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
47117 (grub_fat_read_data): Likewise.
47118 (grub_fat_find_dir): Likewise.
47119
47120 * font/manager.c (find_glyph): Make table a const.
47121 (grub_font_get_glyph): Remove bitmap from if statement.
f19dbdb7 47122
849d55d3 471232007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
47124
47125 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
47126 code, first search for device in /dev/mapper, then in /dev.
47127 (grub_util_get_grub_dev): New function.
47128 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
47129 prototype.
47130 * util/grub-probe.c (probe): Remove check for RAID, call
47131 grub_util_get_grub_dev() instead of
47132 grub_util_biosdisk_get_grub_dev().
47133 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
47134 grub_util_biosdisk_get_grub_dev().
47135 * util/i386/pc/grub-setup.c (main): Likewise.
47136
8fff7c2f 471372007-05-16 Robert Millan <rmh@aybabtu.com>
47138
47139 * DISTLIST: Update for the latest changes.
47140 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
47141 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
47142 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
47143 grub/util/biosdisk.h.
47144 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
47145 grub/util/biosdisk.h.
47146
48e12b52 471472007-05-16 Robert Millan <rmh@aybabtu.com>
47148
47149 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
47150
46b9d128 471512007-05-16 Robert Millan <rmh@aybabtu.com>
47152
47153 * util/i386/efi/grub-install.in: New.
47154 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
47155 newly added grub-install.
47156 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
47157 include.
47158 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
47159 grub/util/biosdisk.h.
47160 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
47161 grub/util/biosdisk.h.
47162
2d1a40a9 471632007-05-16 Robert Millan <rmh@aybabtu.com>
47164
47165 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
47166 * include/grub/util/biosdisk.h: ... here.
47167 * util/i386/pc/biosdisk.c: Moved to ...
47168 * util/biosdisk.c: ... here.
47169 * util/i386/pc/getroot.c: Moved to ...
47170 * util/getroot.c: ... here.
47171 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
47172 * util/grub-mkdevicemap.c: ... here.
47173 * util/i386/pc/grub-probe.c: Moved to ...
47174 * util/grub-probe.c: ... here.
47175
9e26e3bc 471762007-05-15 Robert Millan <rmh@aybabtu.com>
47177
47178 * util/update-grub.in: Remove duplicated line in grub.cfg header
47179 message.
47180
57f96397 471812007-05-13 Robert Millan <rmh@aybabtu.com>
47182
47183 * util/update-grub.in: Fix a few assumptions about the devices holding
47184 /, /boot and /boot/grub being the same.
47185 * util/grub.d/00_header.in: Likewise.
47186 * util/grub.d/10_hurd.in: Likewise.
47187 * util/grub.d/10_linux.in: Likewise.
47188
47189 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
47190 patterns. Use that to define the `.old' suffix as older than `'.
47191
47192 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
47193
47194 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
47195 the grub.cfg header message.
47196
2e610d62 471972007-05-11 Robert Millan <rmh@aybabtu.com>
47198
47199 * util/update-grub.in: Create device.map if it doesn't already exist,
47200 before attempting to run grub-probe.
47201 Check for grub-probe and grub-mkdevicemap with the same code
47202 grub-install is using.
47203 Remove test mode.
47204
3f6a10ef 472052007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
47206
47207 * Makefile.in: Add the datarootdir autoconf variable.
47208
02e7b75e 472092007-05-09 Robert Millan <rmh@aybabtu.com>
47210
47211 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
f19dbdb7 47212 fail gracefully if dev->disk->partition == NULL.
02e7b75e 47213
75f396cc 472142007-05-07 Robert Millan <rmh@aybabtu.com>
47215
47216 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
47217 determine partition map module.
47218 * util/i386/pc/grub-install.in: Use this feature to decide which
47219 partition module to load, instead of hardcoding pc and gpt.
47220
da65cb36 472212007-05-07 Robert Millan <rmh@aybabtu.com>
47222
47223 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
47224 source directory differs from build directory.
47225
b57d6a91 472262007-05-05 Robert Millan <rmh@aybabtu.com>
47227
47228 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
47229 initialisation.
47230
509d00f1 472312007-05-05 Robert Millan <rmh@aybabtu.com>
47232
47233 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
47234
c48f23ef 472352007-05-05 Robert Millan <rmh@aybabtu.com>
47236
47237 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
47238 command-line arguments via ${GRUB_CMDLINE_LINUX}.
47239
20b97658 472402007-05-05 Robert Millan <rmh@aybabtu.com>
47241
47242 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
47243 (grub_probe_SOURCES): Likewise.
47244 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
47245 GPT and initialize dos_part and bsd_part accordingly.
47246 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
47247 install_bsd_part.
47248 (main): Activate gpt module for use during partition identification,
47249 and deactivate it afterwards.
47250 * util/i386/pc/grub-install.in: Add gpt module to core.img.
47251 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
47252 partition identification, and deactivate it afterwards.
47253
99123174 472542007-05-05 Robert Millan <rmh@aybabtu.com>
47255
47256 * term/i386/pc/console.c (grub_console_fini): Call
47257 grub_term_set_current() before grub_term_unregister().
47258
ebd97f6e 472592007-05-04 Robert Millan <rmh@aybabtu.com>
47260
47261 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
47262 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
47263 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
47264 and update-grub_DATA.
47265 * conf/common.rmk: Build and install update-grub components.
47266 * conf/common.mk: Regenerate.
47267 * util/update-grub.in: New. Core of update-grub.
47268 * util/grub.d/00_header.in: New. Generates grub.cfg header.
47269 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
47270 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
47271 * util/grub.d/README: New. Document grub.d directory layout.
47272
b06a264d 472732007-05-01 Robert Millan <rmh@aybabtu.com>
47274
47275 * util/grub-emu.c: Move initialization functions
47276 grub_util_biosdisk_init() and grub_init_all() before
47277 grub_util_biosdisk_get_grub_dev(), which relies on them.
47278
41f0050e 472792007-04-19 Robert Millan <rmh@aybabtu.com>
47280
47281 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
47282 it is used later.
47283
04582bb3 472842007-04-18 Jerone Young <jerone@gmail.com>
47285
f19dbdb7 47286 * kernel/elf.c: Add missing parenthesis for conditional statement
04582bb3 47287 stanza.
47288
08db4632 472892007-04-10 Jerone Young <jerone@gmail.com>
49892fdf 47290
08db4632 47291 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
47292 continue on and look for device node with real device name.
47293
801b76be 472942007-04-10 Jerone Young <jerone@gmail.com>
f19dbdb7 47295
fe6b695a 47296 * configure.ac: Add argument for autoconf to use transformation
1d543c3e 47297 ability.
47298 * Makefile.in: Add autoconf package transformation code.
47299 * util/i386/pc/grub-install.in: Likewise.
47300 * util/powerpc/ieee1275/grub-install.in: Likewise.
47301
6795c4e1 473022007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
47303
47304 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
47305 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
47306 (EXT2_REVISION): Likewise.
47307 (EXT2_INODE_SIZE): Likewise.
47308 (struct grub_ext2_block_group): Added a missing member
47309 "used_dirs".
47310 (grub_ext2_read_inode): Divide by the inode size in a superblock
47311 instead of 128 to obtain INODES_PER_BLOCK.
47312 Use the macro EXT2_INODE_SIZE instead of directly using
47313 SBLOCK->INODE_SIZE.
47314
d70af616 473152007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
47316
47317 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
47318 superblock instead of the structure size to compute an
47319 offset. This fixes the problem that GRUB could not read a
47320 filesystem when inode size is different from 128-byte.
47321
3b801603 473222007-03-05 Marco Gerards <marco@gnu.org>
47323
47324 * normal/main.c (read_config_file): When "menu" is not set, create
47325 an initial context.
47326
4785bfe4 473272007-02-21 Hollis Blanchard <hollis@penguinppc.org>
47328
47329 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
47330 (HEAP_LIMIT): New macro.
47331 (grub_claim_heap): Claim memory up to `heaplimit'.
47332
a0cbb023 473332007-02-21 Hollis Blanchard <hollis@penguinppc.org>
47334
47335 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
47336 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
47337 (_start): Likewise.
47338 (grub_arch_modules_addr): Return address after `_end'.
47339 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
47340 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
47341 (add_segments): Calculate `_end' from phdr size and location.
47342 (ALIGN_UP): Moved to ...
47343 * include/grub/misc.h: here.
47344 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
47345 New macro.
47346 (GRUB_IEEE1275_MODULE_BASE): Removed.
47347
fd7d8eba 473482007-02-20 Hollis Blanchard <hollis@penguinppc.org>
47349
47350 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
47351 loop boundary.
47352
9b09e6fc 473532007-02-20 Hollis Blanchard <hollis@penguinppc.org>
47354
47355 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
47356 All users updated.
47357 (grub_elf64_load_hook_t): Likewise.
47358 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
47359 debug output.
47360
3ce27299 473612007-02-20 Hollis Blanchard <hollis@penguinppc.org>
47362
47363 * kern/mm.c: Update copyright.
47364 (grub_mm_debug): Correct syntax error.
47365 (grub_mm_dump_free): New function.
47366 (grub_debug_free): Call `grub_free'.
47367 * include/grub/mm.h: Update copyright.
47368 (grub_mm_dump_free): Add declaration.
47369
077d5fee 473702007-02-12 Hollis Blanchard <hollis@penguinppc.org>
47371
47372 * include/grub/ieee1275/ieee1275.h: Update copyright.
47373 * kern/powerpc/ieee1275/init.c: Likewise.
47374 * kern/powerpc/ieee1275/openfw.c: Likewise.
47375
47376 * loader/powerpc/ieee1275/linux.c: Likewise.
47377 * include/grub/elfload.h: Likewise.
47378 * kern/elf.c: Likewise.
47379 (grub_elf32_load): Pass `base' and `size' parameters. Update all
47380 callers.
47381 (grub_elf64_load): Likewise.
47382 (grub_elf32_load_segment): Move to a nested function.
47383 (grub_elf64_load_segment): Likewise.
47384
dc946850 473852007-02-12 Hollis Blanchard <hollis@penguinppc.org>
47386
47387 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
47388 prototype.
47389 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
47390 (grub_heap_len): Likewise.
47391 (HEAP_SIZE): New macro.
47392 (grub_claim_heap): New function.
47393 (grub_machine_init): Don't claim heap directly. Call
47394 `grub_claim_heap'.
47395 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
47396 (grub_available_iterate): New function.
47397
baa2a121 473982007-02-03 Thomas Schwinge <tschwinge@gnu.org>
47399
47400 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
47401 * configure.ac: Use it for testing the HOST and TARGET compilers.
47402
4fe9862e 474032006-12-13 Thomas Schwinge <tschwinge@gnu.org>
47404
47405 * Makefile.in (enable_grub_emu): New variable.
47406 * configure.ac (--enable-grub-emu): New option.
47407 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
47408 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
47409 * conf/i386-pc.rmk: Likewise.
47410 * conf/powerpc-ieee1275.rmk: Likewise.
47411 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
47412
a8aa5762 474132006-12-12 Marco Gerards <marco@gnu.org>
47414
47415 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
47416
47417 * kern/env.c (grub_env_unset): Don't free the member `value' when
47418 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
47419 pointer.
47420
47421 * normal/main.c (current_menu): Removed.
47422 (free_menu): Unset the `menu' environment variable.
47423 (grub_normal_menu_addentry): Make use of the environment variable
47424 `menu', instead of using the global `current_menu'. Allocate
47425 memory for the sourcecode of this entry.
47426 (read_config_file): New argument `nested', changed all callers.
47427 Only in the case of a new context, initialize a new menu. Set the
47428 `menu' environment variable.
47429 (grub_normal_execute): Don't set and unset the environment
47430 variable `menu' here anymore. Only free the menu when leaving the
47431 context.
47432
47433 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
47434 leak.
47435
957b3a3e 474362006-12-11 Marco Gerards <marco@gnu.org>
47437
47438 * normal/menu_entry.c (run): Fix off by one bug so the last line
47439 is executed. Move the loader check to outside the loop.
47440
ef875714 474412006-12-08 Hollis Blanchard <hollis@penguinppc.org>
47442
47443 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
47444
4e739985 474452006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
47446
47447 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
47448 the number of sectors. Reported by Andrey Shuvikov
47449 <mr_hyro@yahoo.com>.
f19dbdb7 47450
790707f2 474512006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
47452
47453 * kern/disk.c (grub_disk_read): When there is a read error, always
47454 try to read only the necessary data.
f19dbdb7 47455
790707f2 47456 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
47457 disk/raid.c.
47458 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
47459 prototype.
47460 [GRUB_UTIL] (grub_raid_fini): Likewise.
47461 [GRUB_UTIL] (grub_lvm_init): Likewise.
f19dbdb7 47462 [GRUB_UTIL] (grub_lvm_fini): Likewise.
790707f2 47463 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
47464 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
47465 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
47466 and grub_raid_fini().
f19dbdb7 47467
03e58196 474682006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
47469
47470 * include/grub/types.h (__unused): Rename to UNUSED.
47471 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
47472 (grub_elf64_size): Likewise.
f19dbdb7 47473
ae4f23bf 474742006-11-03 Hollis Blanchard <hollis@penguinppc.org>
47475
47476 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
47477 grub_error_push and grub_error_pop in the error-handling path.
47478 (grub_elf32_load_segment): Only call grub_file_read with non-zero
47479 length.
47480
2166cc83 474812006-11-03 Hollis Blanchard <hollis@penguinppc.org>
47482
47483 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
47484 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
47485 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47486 (kernel_elf_SOURCES): Likewise.
47487 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
47488 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
47489 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
47490 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
47491 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
47492 (elf_mod_SOURCES): New variable.
47493 (elf_mod_CFLAGS): Likewise.
47494 (elf_mod_LDFLAGS): Likewise.
47495 * include/grub/types.h (__unused): New macro.
47496 * include/grub/elfload.h: New file.
47497 * kern/elf.c: Likewise.
47498 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
47499 (ELF32_LOADMASK): New macro.
47500 (ELF64_LOADMASK): Likewise.
47501 (vmlinux): Removed.
47502 (grub_linux_load32): New function.
47503 (grub_linux_load64): Likewise.
47504 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
47505 Use grub_elf_t instead of grub_file_t.
47506
a09d5aa5 475072006-11-02 Hollis Blanchard <hollis@penguinppc.org>
47508
47509 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
47510 `catch_result' to struct set_color_args.
47511
d976fc51 475122006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
47513
47514 * normal/menu.c: Include grub/script.h.
47515 * normal/menu_entry.c: Likewise.
47516 * include/grub/normal.h: Do not include grub/script.h.
47517
67507549 475182006-10-27 Hollis Blanchard <hollis@penguinppc.org>
47519
47520 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
47521
69203a99 475222006-10-27 Hollis Blanchard <hollis@penguinppc.org>
47523
47524 * kern/disk.c (grub_disk_open): Print debug messages when opening a
47525 disk.
47526 (grub_disk_close): Print debug messages when closing a disk.
47527 (grub_disk_read): Print debug messages when disk read fails.
47528 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
47529 filesystem type.
47530 * kern/partition.c: Include misc.h.
47531 (grub_partition_iterate): Print debug messages when detecting
47532 partition type.
47533
e2b8278c 475342006-10-27 Hollis Blanchard <hollis@penguinppc.org>
47535
47536 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
47537 is negative.
47538 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
47539
97b2f2ff 475402006-10-26 Hollis Blanchard <hollis@penguinppc.org>
47541
47542 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
47543 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
47544
6555d655 475452006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
47546
47547 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
47548 instead of sizeof(lv). Patch by Michael Guntsche.
47549
4d42b77f 475502006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
47551
47552 * disk/lvm.c: Rename VGS to VG_LIST.
47553 (grub_lvm_iterate): Change VGS->LV to VG-LV.
47554 (grub_lvm_open): Likewise.
47555 Thanks to Michael Guntsche for finding this bug.
47556
5d74d927 475572006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
47558
47559 * configure.ac (AC_INIT): Bumped to 1.95.
47560
a1bb27e4 475612006-10-14 Robert Millan <rmh@aybabtu.com>
47562
47563 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
47564 with "/dev/.static/dev/md".
47565
e0994b8b 475662006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
47567
47568 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
47569 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
47570 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
47571 DRIVE_NAME are always freed.
47572
47573 * util/i386/pc/biosdisk.c (make_device_name): Add one into
47574 DOS_PART, as a DOS partition is counted from one instead of zero
47575 now. Reported by Robert Millan.
47576
ddd5cee9 475772006-10-14 Robert Millan <rmh@aybabtu.com>
47578
47579 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
47580 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
47581 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
47582 string returned by grub_guess_root_device.
47583 * util/i386/pc/grub-setup.c: Likewise.
47584 * util/i386/pc/grub-probefs.c: Likewise.
47585
47586 * util/i386/pc/grub-probefs.c: Rename to ...
47587 * util/i386/pc/grub-probe.c: ... this.
47588 * DISTLIST: Remove grub-probefs, add grub-probe.
47589 * conf/i386-efi.rmk: Likewise.
47590 * conf/i386-pc.rmk: Likewise.
47591 * util/i386/pc/grub-install.in: Likewise.
47592
47593 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
47594 choose which information we want to print.
47595
2b002173 475962006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
47597
47598 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
47599 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
47600 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
47601 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
47602 video/readers/tga.c and video/i386/pc/vbeutil.c.
47603
476042006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
47605
47606 Added support for RAID and LVM.
f19dbdb7 47607
2b002173 47608 * disk/lvm.c: New file.
47609 * disk/raid.c: Likewise.
47610 * include/grub/lvm.h: Likewise.
f19dbdb7 47611 * include/grub/raid.h: Likewise.
2b002173 47612 * include/grub/util/lvm.h: Likewise.
47613 * include/grub/util/raid.h: Likewise.
47614 * util/lvm.c: Likewise.
47615 * util/raid.c: Likewise.
47616
47617 * include/grub/disk.h (grub_disk_dev_id): Add
47618 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
47619 (grub_disk_get_size): New prototype.
47620 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
47621 returns a partition.
47622 (grub_disk_get_size): New function.
f19dbdb7 47623
2b002173 47624 * kern/i386/pc/init.c (make_install_device): Copy the prefix
47625 verbatim if grub_install_dos_part is -2.
47626
47627 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
47628 and LVM devices.
47629
47630 * util/i386/pc/grub-setup.c (setup): New argument
47631 MUST_EMBED. Force embedding of GRUB when the argument is
47632 true. Close FILE before returning.
47633 (main): Add support for RAID and LVM.
f19dbdb7 47634
2b002173 47635 * conf/common.rmk: Add RAID and LVM modules.
47636 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
47637 util/lvm.c.
47638 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
47639
47640 * kern/misc.c (grub_strstr): New function.
47641 * include/grub/misc.h (grub_strstr): New prototype.
47642
050548d0 476432006-10-10 Tristan Gingold <tristan.gingold@bull.net>
47644
47645 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
47646
da849d2d 476472006-10-05 Tristan Gingold <tristan.gingold@bull.net>
47648
47649 * kern/misc.c (grub_strtoull): Guess the base only if not
47650 specified.
47651
97b2f2ff 476522006-10-01 Hollis Blanchard <hollis@penguinppc.org>
4f0acd39 47653
47654 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
47655 PowerMac support.
47656
97b2f2ff 476572006-10-01 Hollis Blanchard <hollis@penguinppc.org>
fba51f48 47658
47659 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
47660
47661 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
47662 Remove `flags' argument. All callers changed.
47663 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
47664 (IEEE1275_IHANDLE_INVALID): New variable.
47665 (IEEE1275_CELL_INVALID): New variable.
47666 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
47667 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
47668 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
47669 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
47670 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
47671 codes from Open Firmware. All callers updated.
47672 (grub_ieee1275_next_property): Directly return Open Firmware return
47673 code.
47674 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
47675 Standardize error checking from `grub_ieee1275_get_property'.
47676 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
47677 `devalias' to `aliases'. Correct comments. Consolidate error paths.
47678
97b2f2ff 476792006-10-01 Hollis Blanchard <hollis@penguinppc.org>
cc6d3df3 47680
47681 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
47682 `instance_to_package_args' to `instance_to_path_args'.
47683
47684 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
47685 `grub_ieee1275_chosen'.
47686
47687 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
47688 `grub_ieee1275_interpret'.
47689
97b2f2ff 476902006-09-25 Hollis Blanchard <hollis@penguinppc.org>
02bb8acc 47691
47692 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
47693
97b2f2ff 476942006-09-25 Hollis Blanchard <hollis@penguinppc.org>
663b72f0 47695
47696 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
47697 (__cmpdi): Likewise.
47698
47699 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
47700 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
47701 `grub_ssize_t'.
47702
02bb8acc 47703 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
663b72f0 47704
47705 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
47706 to type `grub_ssize_t'.
47707 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
47708
7f9a8531 477092006-09-22 Marco Gerards <marco@gnu.org>
47710
47711 * normal/script.c (grub_script_create_cmdmenu): Skip leading
47712 newlines.
47713
b5ef1102 477142006-09-22 Marco Gerards <marco@gnu.org>
47715
47716 * commands/echo.c: New file.
47717
47718 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
47719
47720 * conf/common.rmk (echo_mod_SOURCES): New variable.
47721 (echo_mod_CFLAGS): Likewise.
47722 (echo_mod_LDFLAGS): Likewise.
47723
2cff3677 477242006-09-22 Marco Gerards <marco@gnu.org>
47725
47726 * normal/main.c (get_line): Malloc memory instead of using
47727 preallocated memory. Removed the arguments `cmdline' and
47728 `max_len'. Updated all callers.
47729
6ba4688b 477302006-09-22 Marco Gerards <marco@gnu.org>
47731
47732 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
47733 (normal_mod_DEPENDENCIES): Likewise.
47734
47735 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
47736 (normal_mod_DEPENDENCIES): Likewise.
47737
47738 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
47739
e02ac02c 477402006-09-22 Johan Rydberg <jrydberg@gnu.org>
47741
47742 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
47743 programs.
47744 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
47745 (normal_mod_DEPENDENCIES): Likewise.
47746 * conf/i386-pc.mk: Regenerate.
47747 * conf/i386-efi.mk: Likewise
47748 * conf/common.mk: Likewise.
47749 * conf/powerpc-ieee1275.mk: Likewise.
47750 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 47751
8d252e44 477522006-09-22 Robert Millan <rmh@aybabtu.com>
47753
47754 Sync with i386 version.
47755 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
47756 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
47757
209bf7ac 477582006-09-21 Robert Millan <rmh@aybabtu.com>
47759
47760 Import from GRUB Legacy (lib/device.c):
47761 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
47762 (init_device_map) [__linux__]: Add support for I2O devices.
47763
6b146090 477642006-09-14 Marco Gerards <marco@gnu.org>
47765
47766 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
47767 `-melf_i386'.
47768
e38600a8 477692006-09-14 Robert Millan <rmh@aybabtu.com>
2952da5d 47770
47771 * util/i386/pc/grub-install.in: Skip menu.lst when removing
47772 /boot/grub/*.lst.
78fa1790 47773
2952da5d 47774 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
6b146090 47775
2952da5d 47776 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
47777 before adding it to device.map.
47778
01b82a64 477792006-08-15 Johan Rydberg <jrydberg@gnu.org>
47780
fe6b695a 47781 * genmk.rb: Let GCC generate dependencies the first time it
01b82a64 47782 compiles a file; using the -MD option.
47783 * conf/common.mk: Regenerate.
47784 * conf/i386-pc.mk: Likewise.
47785 * conf/i386-efi.mk: Likewise.
47786 * conf/powerpc-ieee1275.mk: Likewise.
47787 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 47788
1064790d 477892006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
47790
47791 Move the prototypes of grub_setjmp and grub_longjmp to
47792 cpu/setjmp.h, so that each architecture may specify different
47793 attributes.
f19dbdb7 47794
1064790d 47795 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
47796 (grub_longjmp): Likewise.
47797 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
47798 (grub_longjmp): Likewise.
47799 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
47800 (grub_longjmp): Likewise.
47801
47802 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
47803 [!GRUB_UTIL] (grub_longjmp): Removed.
47804
29dda3ed 478052006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
47806
47807 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
47808 "color!" method does not return any value.
47809
ad2a06ed 478102006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
47811
47812 * include/grub/bitmap.h: New file.
47813
47814 * include/grub/i386/pc/vbeutil.h: Likewise.
47815
47816 * video/bitmap.c: Likewise.
47817
47818 * video/readers/tga.c: Likewise.
47819
47820 * video/i386/pc/vbeutil.c: Likewise.
47821
47822 * commands/videotest.c: Code cleanup and updated to reflect to new
47823 video API.
47824
47825 * term/gfxterm.c: Likewise.
47826
47827 * video/video.c: Likewise.
47828
47829 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
47830 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
47831 (bitmap_mod_SOURCES): New entry.
47832 (bitmap_mod_CFLAGS): Likewise.
47833 (bitmap_mod_LDFLAGS): Likewise.
47834 (tga_mod_SOURCES): Likewise.
47835 (tga_mod_CFLAGS): Likewise.
47836 (tga_mod_LDFLAGS): Likewise.
47837
47838 * include/grub/video.h (grub_video_blit_operators): New enum type.
47839 (grub_video_render_target): Changed as forward declaration and moved
47840 actual definition to be video driver specific.
47841 (grub_video_adapter.blit_bitmap): Added blitting operator.
47842 (grub_video_adapter.blit_render_target): Likewise.
47843 (grub_video_blit_bitmap): Likewise.
47844 (grub_video_blit_render_target): Likewise.
47845
47846 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
47847 driver specific render target definition.
47848 (grub_video_vbe_map_rgba): Added driver internal helper.
47849 (grub_video_vbe_unmap_color): Updated to use
47850 grub_video_i386_vbeblit_info.
47851 (grub_video_vbe_get_video_ptr): Likewise.
47852
47853 * include/grub/i386/pc/vbeblit.h
47854 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
47855 grub_video_i386_vbeblit_info.
47856 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
47857 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
47858 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
47859 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
47860 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
47861 (grub_video_i386_vbeblit_index_index): Likewise.
47862 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
47863 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
47864 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
47865 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
47866 operator.
47867 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
47868 operator.
47869
47870 * video/i386/pc/vbeblit.c: Updated to reflect changes on
47871 include/grub/i386/pc/vbeblit.h.
47872
47873 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
47874 Updated to use grub_video_i386_vbeblit_info.
47875 (grub_video_i386_vbefill_R8G8B8): Likewise.
47876 (grub_video_i386_vbefill_index): Likewise.
47877 (grub_video_i386_vbefill): Added generic filler.
47878
47879 * video/i386/pc/vbefill.c: Updated to reflect changes on
47880 include/grub/i386/pc/vbefill.h.
47881
47882 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
47883 grub_video_i386_vbeblit_info.
47884 (grub_video_vbe_unmap_color): Likewise.
47885 (grub_video_vbe_blit_glyph): Likewise.
47886 (grub_video_vbe_scroll): Likewise.
47887 (grub_video_vbe_draw_pixel): Removed function.
47888 (grub_video_vbe_get_pixel): Likewise.
47889 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
47890 updated code to use it.
47891 (common_blitter): Added common blitter for render target and bitmap.
47892 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
47893 (grub_video_vbe_blit_render_target): Likewise.
47894
bc8c036d 478952006-07-30 Johan Rydberg <jrydberg@gnu.org>
47896
47897 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
47898 is in text mode if there is no console control protocol instance
47899 available.
47900
684a8eff 479012006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
47902
47903 * include/grub/video.h: Code cleanup.
47904
47905 * include/grub/i386/pc/vbe.h: Likewise.
47906
47907 * video/i386/pc/vbe.c: Likewise.
47908
47909 * video/i386/pc/vbeblit.c: Likewise.
47910
47911 * video/i386/pc/vbefill.c: Likewise.
47912
47913 * video/video.c: Likewise. Also added more comments.
47914
5915059b 479152006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
47916
47917 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
47918 (struct grub_biosdisk_dap): Likewise.
47919
47920 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
47921 linkage settings for all functions.
47922
90ce5d56 479232006-07-12 Marco Gerards <marco@gnu.org>
47924
47925 * configure.ac (--enable-mm-debug): Fix typo.
47926
47927 * genkernsyms.sh.in: Use proper quoting for `CC'.
47928
43e7f879 479292006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
47930
47931 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
47932 (normal_mod_ASFLAGS): Remove "-m32".
47933
4889bdec 479342006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
47935
47936 * util/misc.c: Include config.h.
47937 [!HAVE_MEMALIGN]: Do not include malloc.h.
47938 (grub_memalign): Use posix_memalign, if present. Then, use
47939 memalign, if present. Otherwise, emit an error.
47940
47941 * util/grub-emu.c: Do not include malloc.h.
47942
47943 * include/grub/util/misc.h: Include unistd.h. This is required for
47944 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
47945 D. Eades III <hde@foobar-qux.org>.
47946
47947 * configure.ac (AC_GNU_SOURCE): Added.
47948 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
47949 type.
47950
fd39d4da 479512006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
47952
47953 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
47954 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
47955
b786f3b5 479562006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
47957
47958 * include/grub/types.h (grub_host_addr_t): Rename to
47959 grub_target_addr_t.
47960 (grub_host_off_t): Rename to grub_target_off_t.
47961 (grub_host_size_t): Rename to grub_target_size_t.
47962 (grub_host_ssize_t): Rename to grub_target_ssize_t.
47963 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
47964
47965 * include/grub/kernel.h (struct grub_module_header): Change type
47966 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
47967 (grub_module_info): Likewise.
f19dbdb7 47968
051988bb 479692006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
47970
47971 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
47972 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
47973 Velazquez <jesus.velazquez@gmail.com>.
47974
deae281b 479752006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
47976
47977 Count partitions from 1 instead of 0 in the string representation
47978 of partitions. Still use 0-based internally.
f19dbdb7 47979
deae281b 47980 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
47981 (sun_partition_map_iterate): Use grub_partition_t instead of
47982 struct grub_partition *. Cast DESC->START_CYLINDER to
47983 grub_uint64_t after converting the endian.
47984 (sun_partition_map_probe): Subtract 1 for PARTNUM.
47985 (sun_partition_map_get_name): Add 1 to P->INDEX.
47986
47987 * partmap/pc.c (grub_partition_parse): Subtract 1 for
47988 PCDATA->DOS_PART.
47989 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
47990
47991 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
47992 zero instead of one.
47993 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
47994 (gpt_partition_map_get_name): Add 1 into P->INDEX.
47995
47996 * partmap/apple.c (apple_partition_map_iterate): Change the type
47997 of POS to unsigned.
47998 (apple_partition_map_probe): Subtract 1 for PARTNUM.
47999 (apple_partition_map_get_name): Add 1 into P->INDEX.
48000
48001 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
48002 of POS to unsigned.
48003 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
48004 calculate the offset of a partition.
48005 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
48006 (amiga_partition_map_get_name): Add 1 into P->INDEX.
48007
48008 * partmap/acorn.c (acorn_partition_map_find): Change the type of
48009 SECTOR to grub_disk_addr_t.
48010 (acorn_partition_map_iterate): Likewise.
48011 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
48012 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
48013 top.
48014 (acorn_partition_map_get_name): Add 1 into P->INDEX.
48015
48016 * kern/i386/pc/init.c (make_install_device): Add 1 into
48017 GRUB_INSTALL_DOS_PART.
48018
48019 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
48020 conditional.
48021
524a1e6a 480222006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
48023
48024 Clean up the code to support 64-bit addressing in disks and
48025 files. This change is not enough for filesystems yet.
f19dbdb7 48026
524a1e6a 48027 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
48028 type of "start" to grub_uint64_t.
48029 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
48030 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
48031 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
48032 convert addresses.
48033
48034 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
48035 to grub_disk_addr_t.
48036
48037 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
48038 string.
48039
48040 * partmap/pc.c (pc_partition_map_iterate): Likewise.
48041
48042 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
48043 to char *.
48044
48045 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
48046
48047 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
48048
48049 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
48050
48051 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
48052 to grub_off_t, to detect an error from grub_file_seek.
48053 (grub_multiboot_load_elf32): Likewise.
48054
48055 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
48056 maximum unsigned long value when an overflow is detected.
48057 (grub_strtoull): New function.
48058 (grub_divmod64): Likewise.
48059 (grub_lltoa): use grub_divmod64.
48060
48061 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
48062 grub_disk_addr_t.
48063 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
48064 the pointer to next character. Use grub_strtoull instead of
48065 grub_strtoul.
48066 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
48067 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
48068 respectively.
48069
fe6b695a 48070 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
524a1e6a 48071 return value is signed.
48072 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
48073 test if OFFSET is less than zero, as OFFSET is unsigned now.
48074
48075 * kern/disk.c (struct grub_disk_cache): Change the type of
48076 "sector" to grub_disk_addr_t.
48077 (grub_disk_cache_get_index): Change the type of SECTOR to
48078 grub_disk_addr_t. Calculate the hash with SECTOR casted to
48079 unsigned after shifting.
48080 (grub_disk_cache_invalidate): Change the type of SECTOR to
48081 grub_disk_addr_t.
48082 (grub_disk_cache_unlock): Likewise.
48083 (grub_disk_cache_store): Likewise.
48084 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
48085 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
48086 grub_disk_addr_t and grub_uint64_t, respectively.
48087 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
48088 body, as the value of OFFSET is tweaked by
48089 grub_disk_check_range. Change the types of START_SECTOR, LEN and
48090 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
48091 respectively.
48092 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
48093 body, as the value of OFFSET is tweaked by
48094 grub_disk_check_range. Change the types of LEN and N to
48095 grub_size_t.
48096
48097 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
48098 and "saved_offset" to grub_off_t.
48099 (test_header): Cast BUF to char *.
48100 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
48101 to char *.
48102 (grub_gzio_read): Change the types of OFFSET and SIZE to
48103 grub_off_t and grub_size_t, respectively.
48104
48105 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
48106 Removed.
48107 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
48108 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
48109 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
48110 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
48111 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
48112
48113 * include/grub/types.h (grub_off_t): Unconditionally set to
48114 grub_uint64_t.
48115 (grub_disk_addr_t): Changed to grub_uint64_t.
48116
48117 * include/grub/partition.h (struct grub_partition): Change the
48118 types of "start", "len" and "offset" to grub_disk_addr_t,
48119 grub_uint64_t and grub_disk_addr_t, respectively.
48120 (grub_partition_get_start): Return grub_disk_addr_t.
48121 (grub_partition_get_len): Return grub_uint64_t.
48122
48123 * include/grub/misc.h (grub_strtoull): New prototype.
48124 (grub_divmod64): Likewise.
48125
48126 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
48127 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
48128 grub_off_t, respectively.
48129 All callers and references changed.
48130
48131 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
48132 grub_size_t in "read".
48133 All callers and references changed.
48134
48135 * include/grub/file.h (struct grub_file): Change the types of
48136 "offset" and "size" to grub_off_t and grub_off_t,
48137 respectively. Change the type of SECTOR to grub_disk_addr_t in
48138 "read_hook".
48139 (grub_file_read): Change the type of LEN to grub_size_t.
48140 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
48141 grub_off_t.
48142 (grub_file_size): Return grub_off_t.
48143 (grub_file_tell): Likewise.
48144 All callers and references changed.
48145
48146 * include/grub/disk.h (struct grub_disk_dev): Change the types of
48147 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
48148 "write".
48149 (struct grub_disk): Change the type of "total_sectors" to
48150 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
f19dbdb7 48151 "read_hook".
524a1e6a 48152 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
48153 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
48154 (grub_disk_write): Likewise.
48155 All callers and references changed.
48156
48157 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
48158 char * for grub_strncmp to silence gcc.
48159 (grub_iso9660_mount): Likewise.
48160 (grub_iso9660_mount): Likewise.
48161 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
48162 return statement.
48163 (grub_iso9660_iterate_dir): Likewise.
48164 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
48165
48166 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
48167 LEN to grub_disk_addr_t and grub_size_t, respectively.
48168
48169 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
48170
48171 * fs/jfs.c (grub_jfs_read_file): Likewise.
48172
48173 * fs/minix.c (grub_jfs_read_file): Likewise.
48174
48175 * fs/sfs.c (grub_jfs_read_file): Likewise.
48176
48177 * fs/ufs.c (grub_jfs_read_file): Likewise.
48178
48179 * fs/xfs.c (grub_jfs_read_file): Likewise.
48180
48181 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
48182 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
48183 respectively.
48184
48185 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
48186 BLKNR to -1 instead of returning GRUB_ERRNO.
48187 (grub_ext2_read_file): Change the types of SECTOR and
48188 LEN to grub_disk_addr_t and grub_size_t, respectively.
48189
48190 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
48191 LEN to grub_disk_addr_t and grub_size_t, respectively.
48192
48193 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
48194 grub_file_read.
48195
48196 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
48197 string. Do not cast SECTOR explicitly.
48198
48199 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
48200 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
48201 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
48202 grub_disk_addr_t and grub_size_t, respectively. If the sector is
48203 over 2TB and LBA mode is not supported, raise an error.
48204 (get_safe_sectors): New function.
48205 (grub_biosdisk_read): Use get_safe_sectors.
48206 (grub_biosdisk_write): Likewise.
48207
48208 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
48209 (grub_efidisk_write): Likewise.
48210
48211 * disk/loopback.c (delete_loopback): Cosmetic changes.
48212 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
48213 correctly.
48214 (grub_loopback_open): Likewise.
48215 (grub_loopback_read): Likewise. Also, change the type of POS to
48216 grub_off_t, and fix the usage of grub_memset.
48217
48218 * commands/i386/pc/play.c: Include grub/machine/time.h.
48219
48220 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
48221 print FILE->SIZE.
48222
48223 * commands/configfile.c: Include grub/env.h.
48224
48225 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
48226 GRUB_ERRNO directly instead. Change the type of POS to
48227 grub_off_t. Follow the coding standard.
48228
48229 * commands/blocklist.c: Include grub/partition.h.
48230 (grub_cmd_blocklist): Return an error if the underlying device is
48231 not a disk. Take the starting sector of a partition into account,
48232 if a partition is used.
48233
48234 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
48235 a length field.
48236 (lba_mode): Support 64-bit addresses.
48237 (chs_mode): Likewise.
48238 (copy_buffer): Adapted to the new offsets of a length field and a
48239 segment field.
48240 (blocklist_default_start): Allocate 64-bit space.
48241
48242 * boot/i386/pc/boot.S (force_lba): Removed.
48243 (boot_drive): Moved to under KERNEL_SECTOR.
fe987087 48244 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
524a1e6a 48245 space.
48246 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
48247 is useless.
48248 (lba_mode): Refactored to support a 64-bit address. More size
48249 optimization.
48250 (setup_sectors): Likewise.
48251
53af98ad 482522006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
48253
48254 * DISTLIST: Added include/grub/i386/linux.h. Removed
48255 include/grub/i386/pc/linux.h
48256
48257 * configure.ac (AC_INIT): Bumped to 1.94.
48258
48259 * config.guess: Updated from gnulib.
48260 * config.sub: Likewise.
48261 * install-sh: Likewise.
48262 * mkinstalldirs: Likewise.
48263
b4c1940a 482642006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
48265
48266 * conf/common.rmk (grub_modules_init.lst): Depended on
48267 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
48268 MODSRCFILES.
48269
48270 * genmk.rb (PModule::rule): Reverted the previous change.
48271
cfca1cfd 482722006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
48273
48274 * conf/common.rmk (grub_modules_init.lst): Depends on
48275 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
48276 that the target does not exist before producing.
48277 (grub_modules_init.h): Remove the target before generating.
48278 (grub_emu_init.c): Likewise.
48279
48280 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
48281
aa6d7826 482822006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
48283
48284 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
48285 for the target-specific tests. Make sure that we also have the
48286 up-to-date target variables for those tests.
48287
26c607b9 482882006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
48289
48290 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
48291 (PModule::rule): Likewise.
48292
0162321a 482932006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
48294
48295 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
48296 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
48297 target-specific flags should be prefixed.
48298 (PModule::rule): Likewise.
48299
6c826348 483002006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
48301
48302 * configure.ac (CMP): Check if cmp is available explicitly.
48303
b977bf01 483042006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
48305
48306 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
48307 (target_cpu): New variable.
48308 (pkglibdir): Use target_cpu instead of host_cpu.
f19dbdb7 48309
b977bf01 48310 * util/i386/pc/grub-install.in (host_cpu): Removed.
48311 (target_cpu): New variable.
48312 (pkglibdir): Use target_cpu instead of host_cpu.
48313
48314 * util/genmoddep.c: Removed.
f19dbdb7 48315
b977bf01 48316 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
48317 instead of GRUB_HOST_SIZEOF_VOID_P.
48318 * kern/dl.c: Likewise.
48319
48320 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
48321 ...
48322 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
48323 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
48324 (GRUB_TARGET_SIZEOF_LONG): ... this.
48325 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
48326 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
48327 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
48328 to ...
48329 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
48330 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
48331 (GRUB_TARGET_SIZEOF_LONG): ... this.
48332 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
48333 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
48334 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
48335 to ...
48336 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
48337 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
48338 (GRUB_TARGET_SIZEOF_LONG): ... this.
48339 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
48340 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
48341
48342 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
48343 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
48344 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
48345 instead of GRUB_HOST_SIZEOF_LONG.
48346 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
48347 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
48348 GRUB_CPU_WORDS_BIGENDIAN.
48349 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
48350 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
48351 grub_host_ssize_t.
48352
48353 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
48354 (genmoddep_SOURCES): Likewise.
48355 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
48356 (genmoddep_SOURCES): Likewise.
48357 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
48358 (genmoddep_SOURCES): Likewise.
48359 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
48360 Likewise.
48361 (genmoddep_SOURCES): Likewise.
48362
48363 * genmoddep.awk: New file.
48364
48365 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
48366 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
48367 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
48368 (PModule::rule): Likewise.
48369 (Program::rule): Likewise.
48370 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
48371 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
48372 respectively.
48373
48374 * configure.ac: Rewritten intensively to use host and target
48375 instead of build and host, respectively.
48376
48377 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
48378 (host_cpu): Removed.
48379 (target_cpu): New variable.
48380 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
48381 (BUILD_CC): Removed.
48382 (BUILD_CFLAGS): Likewise.
48383 (BUILD_CPPFLAGS): Likewise.
48384 (TARGET_CC): New variable.
48385 (TARGET_CFLAGS): Likewise.
48386 (TARGET_CPPFLAGS): Likewise.
48387 (TARGET_LDFLAGS): Likewise.
48388 (AWK): Likewise.
48389 (include): Use target_cpu instead of host_cpu.
48390 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
f19dbdb7 48391
b977bf01 48392 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
48393
f09771a1 483942006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
48395
48396 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
48397 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
48398 field 'false' to 'exec_on_false'.
48399 (grub_script_create_cmdif): Renamed argument names to reflect above
48400 changes.
48401
48402 * normal/execute.c (grub_script_execute_cmdif): Likewise.
48403
48404 * normal/script.c (grub_script_create_cmdif): Likewise.
48405
118f4fb3 484062006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
48407
48408 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
48409 top.
48410 (grub_hfsplus_btree_recptr): Likewise.
48411 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
48412 FILEBLOCK both to pass a block number and store next block
48413 number.
48414 (grub_hfsplus_read_block): Rewritten heavily to support an extent
48415 overflow file correctly. Specify errors appropriately, because
48416 fshelp expects that GRUB_ERRNO is set when fails. Reuse
48417 grub_hfsplus_btree_recptr to get the pointer to a found key.
48418 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
48419 is found.
48420
48421 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
48422 linux.mod.
48423 (_linux_mod_SOURCES): New variable.
48424 (_linux_mod_CFLAGS): Likewise.
48425 (_linux_mod_LDFLAGS): Likewise.
48426 (linux_mod_SOURCES): Likewise.
48427 (linux_mod_CFLAGS): Likewise.
48428 (linux_mod_LDFLAGS): Likewise.
48429
48430 * DISTLIST: Added loader/i386/efi/linux.c,
48431 loader/i386/efi/linux_normal.c and
48432 include/grub/i386/efi/loader.h.
48433
48434 * loader/i386/efi/linux.c: New file.
48435 * loader/i386/efi/linux_normal.c: Likewise.
48436 * include/grub/i386/efi/loader.h: Likewise.
48437
89a7d726 484382006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
48439
48440 * commands/blocklist.c: New file.
48441
48442 * DISTLIST: Added commands/blocklist.c.
48443
48444 * term/efi/console.c (grub_console_highlight_color): Use a lighter
43b553ad 48445 color for the background, and a darker color for the foreground.
89a7d726 48446 (grub_console_checkkey): Return READ_KEY.
48447 (grub_console_cls): Set the background to
48448 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
48449
48450 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
48451
48452 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
48453 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
48454
48455 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
48456 prototype.
48457
48458 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
48459 BG. The spec is wrong again.
48460
48461 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
48462 prototype.
48463 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
48464
48465 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
48466 commands/blocklist.c.
48467 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
f19dbdb7 48468
89a7d726 48469 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
48470 (blocklist_mod_SOURCES): New variable.
48471 (blocklist_mod_CFLAGS): Likewise.
48472 (blocklist_mod_LDFLAGS): Likewise.
48473
75c8f258 484742006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
48475
48476 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
48477 duplication.
48478 (lba_mode): Use %eax more intensively to reduce the code size.
48479
da2eb181 484802006-05-20 Marco Gerards <marco@gnu.org>
48481
48482 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
48483
48484 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
48485 for `menuentry'.
48486 (script): Accept leading newlines.
48487 (newlines): New rule to describe 0 or more newlines.
48488 (commands): Accept `command' with trailing newline. Fixed the
48489 order in which arguments were passed to `grub_script_add_cmd'.
48490 Accept commands separated by newlines.
48491 (function): Changed to accept newlines.
48492 (menuentry) Rewritten.
48493
48494 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
48495 front of the list, instead of to the end.
48496
577b4050 484972006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
48498
48499 * util/i386/pc/grub-install.in (bindir): New variable.
48500 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
48501 Shaver <lbgwjl@gmail.com>.
48502
0d6e1189 485032006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
48504
48505 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
48506 grub/machine/linux.h
48507 * loader/i386/pc/linux.c: Likewise.
48508
48509 * include/grub/i386/pc/linux.h: Moved to ...
48510 * include/grub/i386/linux.h: ... here.
48511
48512 * include/grub/i386/linux.h (struct linux_kernel_params): New
48513 struct.
f19dbdb7 48514
31b86e9f 485152006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
48516
48517 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
48518 checking.
48519 (grub_video_vbe_blit_glyph): Likewise.
48520 (grub_video_vbe_blit_bitmap): Likewise.
48521 (grub_video_vbe_blit_render_target): Likewise.
48522
83b984de 485232006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
48524
48525 * configure.ac (--with-platform): Properly quote the square
48526 brackets.
48527
5f0413bd 485282006-05-08 Marco Gerards <marco@gnu.org>
48529
48530 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
48531 this...
48532 (kernel_elf_HEADERS): ...to this. Updated all users.
48533 (grubof_symlist.c): Renamed from this...
48534 (kernel_elf_symlist.c): ...to this. Updated all users.
48535 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
48536 (grubof_SOURCES): Renamed from this...
48537 (kernel_elf_SOURCES): ...to this.
48538 (grubof_HEADERS): Renamed from this...
48539 (kernel_elf_HEADERS): ...to this.
48540 (grubof_CFLAGS): Renamed from this...
48541 (kernel_elf_CFLAGS): ...to this.
48542 (grubof_ASFLAGS): Renamed from this...
48543 (kernel_elf_ASFLAGS): ...to this.
48544 (grubof_LDFLAGS): Renamed from this...
48545 (kernel_elf_LDFLAGS): ...to this.
48546
48547 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
48548 this...
48549 (kernel_elf_HEADERS): ...to this. Updated all users.
48550 (grubof_symlist.c): Renamed from this...
48551 (kernel_elf_symlist.c): ...to this. Updated all users.
48552 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
48553 (grubof_SOURCES): Renamed from this...
48554 (kernel_elf_SOURCES): ...to this.
48555 (grubof_HEADERS): Renamed from this...
48556 (kernel_elf_HEADERS): ...to this.
48557 (grubof_CFLAGS): Renamed from this...
48558 (kernel_elf_CFLAGS): ...to this.
48559 (grubof_ASFLAGS): Renamed from this...
48560 (kernel_elf_ASFLAGS): ...to this.
48561 (grubof_LDFLAGS): Renamed from this...
48562 (kernel_elf_LDFLAGS): ...to this.
48563
48564 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
48565 `kernel.elf' instead of `grubof'.
48566
05568c2e 485672006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
48568
48569 Add --with-platform to configure. Use pkglibdir instead of
48570 pkgdatadir. This is reported by Roger Leigh.
48571
48572 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
48573 (host_vendor): Likewise.
48574 (host_os): Likewise.
48575 (pkgdatadir): Likewise.
48576 (platform): New variable.
48577 (pkglibdir): Likewise.
48578 Use PKGLIBDIR instead of PKGDATADIR.
f19dbdb7 48579
05568c2e 48580 * util/i386/pc/grub-install.in (datadir): Removed.
48581 (host_vendor): Likewise.
48582 (host_os): Likewise.
48583 (pkgdatadir): Likewise.
48584 (platform): New variable.
48585 (pkglibdir): Likewise.
48586 Use PKGLIBDIR instead of PKGDATADIR.
48587
48588 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
48589 instead of GRUB_DATADIR.
48590 (main): Likewise.
48591 * util/i386/pc/grub-mkimage.c (usage): Likewise.
48592 (main): Likewise.
48593 * util/i386/efi/grub-mkimage.c (usage): Likewise.
48594 (main): Likewise.
48595
48596 * configure.ac (--with-platform): New option.
48597 Use PLATFORM instead of HOST_VENDOR to specify a platform.
48598
48599 * Makefile.in: Include a makefile based on PLATFORM instead of
48600 HOST_VENDOR.
48601 (pkgdatadir): Not appended by the machine type.
48602 (pkglibdir): Appended by the machine type.
48603 (host_vendor): Removed.
48604 (platform): New variable.
48605 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
48606 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
48607 (uninstall): Likewise.
48608
4e93851c 486092006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
48610
48611 Use the environment context in the menu. Remove the commands
48612 "default" and "timeout", and use variables instead.
f19dbdb7 48613
4e93851c 48614 * normal/menu.c: Include grub/env.h.
48615 (print_entry): Cast TITLE to silence gcc.
48616 (get_timeout): New function.
48617 (set_timeout): Likewise.
48618 (get_entry_number): Likewise.
48619 (run_menu): Use a default entry, a fallback entry and a timeout
48620 in the environment variables "default", "fallback" and
48621 "timeout". Also, tweak the default entry if it is not within the
48622 current menu entries.
48623 (grub_menu_run): Use a fallback entry in the environment variable
48624 "fallback".
48625
48626 * normal/main.c (read_config_file): Do not initialize
48627 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
48628 NEWMENU->TIMEOUT.
48629 (grub_normal_execute): Use a data slot to store the menu.
48630
48631 * include/grub/normal.h (struct grub_menu): Removed default_entry,
48632 fallback_entry and timeout.
48633 (struct grub_menu_list): Removed.
48634 (grub_menu_list_t): Likewise.
48635 (struct grub_context): Likewise.
48636 (grub_context_t): Likewise.
48637 (grub_context_get): Likewise.
48638 (grub_context_get_current_menu): Likewise.
48639 (grub_context_push_menu): Likewise.
48640 (grub_context_pop_menu): Likewise.
48641 (grub_default_init): Likewise.
48642 (grub_default_fini): Likewise.
48643 (grub_timeout_init): Likewise.
48644 (grub_timeout_fini): Likewise.
48645
48646 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
48647 and timeout.mod.
48648 (normal_mod_SOURCES): Removed normal/context.c.
48649
48650 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
48651 commands/default.c, commands/timeout.c and normal/context.c.
48652 (normal_mod_SOURCES): Removed normal/context.c.
48653
48654 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
48655 commands/timeout.c and normal/context.c.
48656 (normal_mod_SOURCES): Removed normal/context.c.
48657
48658 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
48659 commands/default.c, commands/timeout.c and normal/context.c.
48660 (normal_mod_SOURCES): Removed normal/context.c.
48661
48662 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
48663 timeout.mod.
48664 (default_mod_SOURCES): Removed.
48665 (default_mod_CFLAGS): Likewise.
48666 (default_mod_LDFLAGS): Likewise.
48667 (timeout_mod_SOURCES): Removed.
48668 (timeout_mod_CFLAGS): Likewise.
48669 (timeout_mod_LDFLAGS): Likewise.
48670
48671 * DISTLIST: Removed commands/default.c, commands/timeout.c and
48672 normal/context.c.
48673
48674 * commands/default.c: Removed.
48675 * commands/timeout.c: Likewise.
48676 * normal/context.c: Likewise.
48677
1eb9cc1d 486782006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
48679
48680 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
48681
385bd9c1 486822006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
48683
48684 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
48685 "next" to "prev" for readability.
48686 (struct grub_env_sorted_var): New struct.
48687 (grub_env_context): Renamed to ...
48688 (initial_context): ... this.
48689 (grub_env_var_context): Renamed to ...
48690 (current_context): ... this.
48691 (grub_env_find): Look only at CURRENT_CONTEXT.
48692 (grub_env_context_open): Rewritten to copy exported variables from
48693 previous context.
48694 (grub_env_context_close): Rewritten according to the new
48695 scheme. Also, add an assertion to prevent the initial context from
48696 removed.
48697 (grub_env_insert): Removed the code for the sorted list.
48698 (grub_env_remove): Likewise.
48699 (grub_env_export): Simply mark the variable with
48700 GRUB_ENV_VAR_GLOBAL.
48701 (grub_env_set): A cosmetic change for naming consistency.
48702 (grub_env_get): Likewise.
48703 (grub_env_unset): Likewise.
48704 (grub_env_iterate): Rewritten to sort variables within this
48705 function.
48706 (grub_register_variable_hook): Fixed for naming consistency. Call
48707 grub_env_find again, only if NAME is not found at the first time.
48708 (mangle_data_slot_name): New function.
48709 (grub_env_set_data_slot): Likewise.
48710 (grub_env_get_data_slot): Likewise.
48711 (grub_env_unset_data_slot): Likewise.
48712
48713 * include/grub/env.h (grub_env_var_type): New enum.
48714 (GRUB_ENV_VAR_LOCAL): New constant.
48715 (GRUB_ENV_VAR_GLOBAL): Likewise.
48716 (GRUB_ENV_VAR_DATA): Likewise.
48717 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
48718 "type".
48719 (grub_env_set): Replace VAR with NAME for consistency.
48720 (grub_register_variable_hook): Likewise.
48721 (grub_env_export): Specify the name of the argument.
48722 (grub_env_set_data_slot): New prototype.
48723 (grub_env_get_data_slot): Likewise.
48724 (grub_env_unset_data_slot): Likewise.
48725
7f362539 487262006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
48727
48728 Extend the loader so that GRUB can accept a loader which comes
48729 back to GRUB when a loaded image exits. Also, this change adds
48730 support for a chainloader on EFI.
f19dbdb7 48731
7f362539 48732 * term/efi/console.c: Include grub/misc.h.
48733 (grub_console_checkkey): Display a scan code on the top for
48734 debugging. This will be removed once the EFI port gets stable.
48735 Correct the scan code mapping.
48736
48737 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
48738 allocate memory from larger regions, in order to reduce the number
48739 of allocated regions. Otherwise, the MacOSX loader panics.
48740 (filter_memory_map): Avoid less than 1MB for compatibility with
48741 other loaders.
48742 (add_memory_regions): Allocate from the tail of a region, if
48743 possible, to avoid allocating a region near to 1MB, for the MacOSX
48744 loader.
48745
48746 * kern/efi/init.c (grub_efi_set_prefix): Specify
48747 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
48748
48749 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
48750 argument IMAGE_HANDLE and specify it to get a loaded image.
48751 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
48752 grub_efi_get_loaded_image.
fe6b695a 48753 (grub_efi_get_filename): Divide the length by the size of
7f362539 48754 grub_efi_char16_t.
48755 (grub_efi_get_device_path): New function.
48756 (grub_efi_print_device_path): Print End Device Path nodes. Divide
48757 the length by the size of grub_efi_char16_t for a file path device
48758 path node.
48759
48760 * kern/loader.c (grub_loader_noreturn): New variable.
48761 (grub_loader_set): Accept a new argument NORETURN. Set
48762 GRUB_LOADER_NORETURN to NORETURN.
48763 All callers changed.
48764 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
48765 grub_machine_fini.
48766
48767 * include/grub/efi/efi.h (grub_efi_get_device_path): New
48768 prototype.
48769 (grub_efi_get_loaded_image): Take an argument to specify an image
48770 handle.
48771
48772 * include/grub/loader.h (grub_loader_set): Added one more argument
48773 NORETURN.
48774
48775 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
48776 instead of grub_efi_open_protocol.
48777 (grub_efidisk_get_device_name): Likewise.
48778 (grub_efidisk_close): Print a newline.
48779 (grub_efidisk_get_device_handle): Fixed to use
48780 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
48781 GRUB_EFI_DEVICE_PATH_TYPE.
48782
48783 * disk/efi/efidisk.c (device_path_guid): Moved to ...
48784 * kern/efi/efi.c (device_path_guid): ... here.
48785
48786 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
48787 chain.mod.
48788 (kernel_mod_HEADERS): Added efi/disk.h.
48789 (_chain_mod_SOURCES): New variable.
48790 (_chain_mod_CFLAGS): Likewise.
48791 (_chain_mod_LDFLAGS): Likewise.
48792 (chain_mod_SOURCES): Likewise.
48793 (chain_mod_CFLAGS): Likewise.
48794 (chain_mod_LDFLAGS): Likewise.
48795
48796 * DISTLIST: Added include/grub/efi/chainloader.h,
48797 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
48798
48799 * include/grub/efi/chainloader.h: New file.
48800 * loader/efi/chainloader.c: Likewise.
48801 * loader/efi/chainloader_normal.c: Likewise.
48802
c0111d6e 488032006-04-30 Marco Gerards <marco@gnu.org>
48804
48805 * commands/configfile.c (grub_cmd_source): New function.
48806 (GRUB_MOD_INIT): Register the commands `source' and `.'.
48807 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
48808
df5341da 488092006-04-30 Marco Gerards <marco@gnu.org>
48810
48811 * normal/execute.c (grub_script_execute_cmd): Change the return
48812 type to `grub_err_t'. Correctly return the error.
48813 (grub_script_execute_cmdline): In case a command line is not a
48814 command or a function, try to interpret it as an assignment.
48815
f85934bd 488162006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
48817
48818 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
48819 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
48820 skip a node whose name is obviously invalid as UTF-16,
48821 i.e. contains a NUL character. Stop the iteration when the last
48822 directory entry is found. Instead of using the return value of
48823 grub_hfsplus_btree_iterate_node, store the value in RET and use
48824 it, because the iterator can be stopped by the last directory
48825 entry.
48826
8f8a2cf8 488272006-04-30 Marco Gerards <marco@gnu.org>
48828
48829 * include/grub/env.h (grub_env_export): New prototype. Reported
48830 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
48831
a27e84ce 488322006-04-30 Marco Gerards <marco@gnu.org>
48833
48834 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
48835 size of the extents in a catalog file record.
48836
eaef0553 488372006-04-29 Marco Gerards <marco@gnu.org>
48838
48839 * commands/configfile.c (grub_cmd_configfile): Execute the
48840 configfile within its own context.
48841
48842 * include/grub/env.h (grub_env_context_open): New prototype.
48843 (grub_env_context_close): Likewise.
48844
48845 * kern/env.c (grub_env): Removed.
48846 (grub_env_sorted): Likewise.
48847 (grub_env_context): New variable.
48848 (grub_env_var_context): Likewise.
48849 (grub_env_find): Search both the active context and the global
48850 context.
48851 (grub_env_context_open): New function.
48852 (grub_env_context_close): Likewise.
48853 (grub_env_insert): Likewise.
48854 (grub_env_remove): Likewise.
48855 (grub_env_export): Likewise.
48856 (grub_env_set): Changed to use helper functions to avoid code
48857 duplication.
48858 (grub_env_iterate): Rewritten so both the current context and the
48859 global context are being used.
48860
48861 * normal/command.c (export_command): New function.
48862 (grub_command_init): Register the `export' function.
48863
7b455f4d 488642006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
48865
48866 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
48867 explicitly to suppress gcc's warnings.
48868 * fs/fat.c (grub_fat_find_dir): Likewise.
48869 (grub_fat_label): Likewise.
48870 * fs/xfs.c (grub_xfs_read_inode): Likewise.
48871 (grub_xfs_mount): Likewise.
48872 (grub_xfs_label): Likewise.
48873 * fs/affs.c (grub_affs_mount): Likewise.
48874 (grub_affs_label): Likewise.
48875 (grub_affs_iterate_dir): Likewise.
48876 * fs/sfs.c (grub_sfs_mount): Likewise.
48877 (grub_sfs_iterate_dir): Likewise.
48878 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
48879 * fs/hfs.c (grub_hfs_mount): Likewise.
48880 (grub_hfs_cmp_catkeys): Likewise.
48881 (grub_hfs_find_dir): Likewise.
48882 (grub_hfs_dir): Likewise.
48883 (grub_hfs_label): Likewise.
48884 * fs/jfs.c (grub_jfs_mount): Likewise.
48885 (grub_jfs_opendir): Likewise.
48886 (grub_jfs_getent): Likewise.
48887 (grub_jfs_lookup_symlink): Likewise.
48888 (grub_jfs_label): Likewise.
48889 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
48890 (grub_hfsplus_iterate_dir): Likewise.
48891 (grub_hfsplus_btree_iterate_node): Made static.
48892
48893 * util/grub-emu.c (prefix): New variable.
48894 (grub_machine_set_prefix): New function.
48895 (main): Do not set the environment variable "prefix" here. Only
48896 set PREFIX, which is used later by grub_machine_set_prefix.
48897
48898 * include/grub/video.h: Do not include grub/symbol.h.
48899 (grub_video_register): Not exported. This symbol is not defined in
48900 the kernel.
48901 (grub_video_unregister): Likewise.
48902 (grub_video_iterate): Likewise.
48903 (grub_video_setup): Likewise.
48904 (grub_video_restore): Likewise.
48905 (grub_video_get_info): Likewise.
48906 (grub_video_get_blit_format): Likewise.
48907 (grub_video_set_palette): Likewise.
48908 (grub_video_get_palette): Likewise.
48909 (grub_video_set_viewport): Likewise.
48910 (grub_video_get_viewport): Likewise.
48911 (grub_video_map_color): Likewise.
48912 (grub_video_map_rgb): Likewise.
48913 (grub_video_map_rgba): Likewise.
48914 (grub_video_fill_rect): Likewise.
48915 (grub_video_blit_glyph): Likewise.
48916 (grub_video_blit_bitmap): Likewise.
48917 (grub_video_blit_render_target): Likewise.
48918 (grub_video_scroll): Likewise.
48919 (grub_video_swap_buffers): Likewise.
48920 (grub_video_create_render_target): Likewise.
48921 (grub_video_delete_render_target): Likewise.
48922 (grub_video_set_active_render_target): Likewise.
48923
48924 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
48925 Undefined.
48926 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
48927
48928 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
48929 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
48930 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
48931 instead of $(srcdir)/genkernsyms.sh.
48932
48933 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
48934 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
48935 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
48936 instead of $(srcdir)/genkernsyms.sh.
48937
48938 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
48939 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
48940 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
48941 instead of $(srcdir)/genkernsyms.sh.
48942
48943 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
48944 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
48945 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
48946 instead of $(srcdir)/genkernsyms.sh.
48947
48948 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
48949 genkernsyms.sh.
48950
48951 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
48952 genkernsyms.sh.
48953 (gensymlist.sh): New target.
48954 (genkernsyms.sh): Likewise.
48955
48956 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
48957 genkernsyms.sh.in and gensymlist.sh.in.
48958
48959 * genkernsyms.sh: Removed.
48960 * gensymlist.sh: Likewise.
f19dbdb7 48961
7b455f4d 48962 * genkernsyms.sh.in: New file.
48963 * gensymlist.sh.in: Likewise.
48964
1885bb27 489652006-04-25 Hollis Blanchard <hollis@penguinppc.org>
48966
48967 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
48968 clobber "prefix", since we may have already set it manually.
48969
71538dff 489702006-04-25 Hollis Blanchard <hollis@penguinppc.org>
48971
48972 * kern/misc.c (abort): New alias for grub_abort.
48973
2965c7cc 489742006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
48975
48976 A new machine-specific function "grub_machine_set_prefix" is
48977 defined. This is called after loading modules, so that a prefix
48978 initialization can use modules. Also, this change adds an
48979 intensive debugging feature for the memory manager via the
48980 configure option "--enable-mm-debug".
f19dbdb7 48981
2965c7cc 48982 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
48983 PART.LEN.
48984
48985 * kern/sparc64/ieee1275/init.c (abort): Removed.
48986 (grub_stop): Likewise.
48987 (grub_exit): New function.
48988 (grub_set_prefix): Renamed to ...
48989 (grub_machine_set_prefix): ... this.
48990 (grub_machine_init): Do not call grub_set_prefix.
48991
48992 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
48993 (grub_machine_set_prefix): ... this.
48994 (grub_machine_init): Do not call grub_set_prefix.
48995
48996 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
48997 (grub_machine_init): Do not set the prefix here.
48998
48999 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
49000
49001 * kern/efi/init.c: Include grub/mm.h.
49002 (grub_efi_set_prefix): New function.
49003
49004 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
49005 (grub_efi_get_filename): New function.
49006 (grub_print_device_path): Renamed to ...
49007 (grub_efi_print_device_path): ... this.
49008
49009 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
49010 [MM_DEBUG] (grub_realloc): Likewise.
49011 [MM_DEBUG] (grub_free): Likewise.
49012 [MM_DEBUG] (grub_memalign): Likewise.
49013 [MM_DEBUG] (grub_mm_debug): New variable.
49014 [MM_DEBUG] (grub_debug_malloc): New function.
49015 [MM_DEBUG] (grub_debug_free): New function.
49016 [MM_DEBUG] (grub_debug_realloc): New function.
49017 [MM_DEBUG] (grub_debug_memalign): New function.
49018
49019 * kern/misc.c (grub_abort): Print a newline to distinguish
49020 the message.
49021
49022 * kern/main.c (grub_main): Call grub_machine_set_prefix and
49023 grub_set_root_dev after loading modules. This is necessary when
49024 setting a prefix depends on modules.
49025
49026 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
49027 (grub_efi_print_device_path): ... this.
49028 (grub_efi_get_filename): New prototype.
49029 (grub_efi_set_prefix): Likewise.
49030
49031 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
49032 and grub/disk.h.
49033 (grub_efidisk_get_device_handle): New prototype.
49034 (grub_efidisk_get_device_name): Likewise.
49035
49036 * include/grub/mm.h: Include config.h.
49037 (MM_DEBUG): Removed.
49038 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
49039 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
49040 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
49041 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
49042 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
49043 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
49044 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
49045 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
49046 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
49047
49048 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
49049
49050 * disk/efi/efidisk.c: Include grub/partition.h.
49051 (iterate_child_devices): New function.
49052 (add_device): First, compare only last device path nodes, so that
49053 devices are sorted by the types.
49054 (grub_efidisk_get_device_handle): New function.
49055 (grub_efidisk_get_device_name): Likewise.
49056
49057 * configure.ac (--enable-mm-debug): New option to enable the
49058 memory manager debugging feature. This makes the binary much
49059 bigger, so is disabled by default.
49060
9cacaa17 490612006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
49062
49063 Use grub_abort instead of grub_stop, and grub_exit must be
49064 define in each architecture now. Also, this change adds support
49065 for EFI disks.
f19dbdb7 49066
9cacaa17 49067 * util/i386/pc/grub-probefs.c: Include grub/term.h.
49068 (grub_getkey): New function.
49069 (grub_term_get_current): Likewise.
49070
49071 * util/i386/pc/grub-setup.c: Include grub/term.h.
49072 (grub_getkey): New function.
49073 (grub_term_get_current): Likewise.
49074
49075 * util/misc.c (grub_stop): Renamed to ...
49076 (grub_exit): ... this.
49077
49078 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
49079 (grub_exit): ... this.
49080 (grub_machine_init): Use grub_abort instead of abort.
49081 (grub_stop): Removed.
49082
49083 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
49084 abort.
49085
49086 * kern/i386/pc/startup.S (grub_exit): New function.
49087 (cold_reboot): New label.
49088
49089 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
49090 (grub_efi_init): Call grub_efidisk_init.
49091 (grub_efi_fini): Call grub_efidisk_fini.
49092
49093 * kern/efi/efi.c: Include grub/mm.h.
49094 (grub_efi_console_control_guid): Renamed to ...
49095 (console_control_guid): ... this.
49096 (grub_efi_loaded_image_guid): Renamed to ...
49097 (loaded_image_guid): ... this.
49098 (grub_efi_locate_handle): New function.
49099 (grub_efi_open_protocol): Likewise.
49100 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
49101 GRUB_EFI_CONSOLE_CONTROL_GUID.
49102 (grub_efi_exit): Removed.
49103 (grub_stop): Likewise.
49104 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
49105 (grub_exit): New function.
49106 (grub_print_device_path): Likewise.
49107
49108 * kern/rescue.c (grub_rescue_cmd_exit): New function.
49109 (grub_enter_rescue_mode): Register "exit".
49110
49111 * kern/misc.c (grub_real_dprintf): A cosmetic change.
49112 (grub_abort): New function.
49113
49114 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
49115
49116 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
49117
49118 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
49119
49120 * include/grub/efi/efi.h (grub_efi_exit): Removed.
49121 (grub_print_device_path): New prototype.
49122 (grub_efi_locate_handle): Likewise.
49123 (grub_efi_open_protocol): Likewise.
49124
49125 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
49126 * disk/efi/efidisk.c: Likewise.
49127
49128 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
49129
49130 * include/grub/efi/console_control.h
49131 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
49132
49133 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
49134 last 8 bytes as an array.
49135 (GRUB_EFI_DISK_IO_GUID): New macro.
49136 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
49137 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
49138 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
49139 grub_uint8_t.
49140 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
49141 (struct grub_efi_device_path): Rename the member "sub_type" to
49142 "subtype".
49143 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
49144 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
49145 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
49146 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
49147 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
49148 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
49149 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
49150 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
49151 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
49152 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
49153 (struct grub_efi_pci_device_path): New structure.
49154 (grub_efi_pci_device_path_t): New type.
49155 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
49156 (struct grub_efi_pccard_device_path): New structure.
49157 (grub_efi_pccard_device_path_t): New type.
49158 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
49159 (struct grub_efi_memory_mapped_device_path): New structure.
49160 (grub_efi_memory_mapped_device_path_t): New type.
49161 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
49162 (struct grub_efi_vendor_device_path): New structure.
49163 (grub_efi_vendor_device_path_t): New type.
49164 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
49165 (struct grub_efi_controller_device_path): New structure.
49166 (grub_efi_controller_device_path_t): New type.
49167 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
49168 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
49169 (struct grub_efi_acpi_device_path): New structure.
49170 (grub_efi_acpi_device_path_t): New type.
49171 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
49172 (struct grub_efi_expanded_acpi_device_path): New structure.
49173 (grub_efi_expanded_acpi_device_path_t): New type.
49174 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
49175 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
49176 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
49177 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
49178 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
49179 (struct grub_efi_atapi_device_path): New structure.
49180 (grub_efi_atapi_device_path_t): New type.
49181 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
49182 (struct grub_efi_fibre_channel_device_path): New structure.
49183 (grub_efi_fibre_channel_device_path_t): New type.
49184 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
49185 (struct grub_efi_1394_device_path): New structure.
49186 (grub_efi_1394_device_path_t): New type.
49187 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
49188 (struct grub_efi_usb_device_path): New structure.
49189 (grub_efi_usb_device_path_t): New type.
49190 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
49191 (struct grub_efi_usb_class_device_path): New structure.
49192 (grub_efi_usb_class_device_path_t): New type.
49193 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
49194 (struct grub_efi_i2o_device_path): New structure.
49195 (grub_efi_i2o_device_path_t): New type.
49196 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
49197 (struct grub_efi_mac_address_device_path): New structure.
49198 (grub_efi_mac_address_device_path_t): New type.
49199 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
49200 (struct grub_efi_ipv4_device_path): New structure.
49201 (grub_efi_ipv4_device_path_t): New type.
49202 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
49203 (struct grub_efi_ipv6_device_path): New structure.
49204 (grub_efi_ipv6_device_path_t): New type.
49205 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
49206 (struct grub_efi_infiniband_device_path): New structure.
49207 (grub_efi_infiniband_device_path_t): New type.
49208 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
49209 (struct grub_efi_uart_device_path): New structure.
49210 (grub_efi_uart_device_path_t): New type.
49211 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
49212 (struct grub_efi_vendor_messaging_device_path): New structure.
49213 (grub_efi_vendor_messaging_device_path_t): New type.
49214 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
49215 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
49216 (struct grub_efi_hard_drive_device_path): New structure.
49217 (grub_efi_hard_drive_device_path_t): New type.
49218 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
49219 (struct grub_efi_cdrom_device_path): New structure.
49220 (grub_efi_cdrom_device_path_t): New type.
49221 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
49222 (struct grub_efi_vendor_media_device_path): New structure.
49223 (grub_efi_vendor_media_device_path_t): New type.
49224 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
49225 (struct grub_efi_file_path_device_path): New structure.
49226 (grub_efi_file_path_device_path_t): New type.
49227 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
49228 (struct grub_efi_protocol_device_path): New structure.
49229 (grub_efi_protocol_device_path_t): New type.
49230 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
49231 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
49232 (struct grub_efi_bios_device_path): New structure.
49233 (grub_efi_bios_device_path_t): New type.
49234 (struct grub_efi_disk_io): New structure.
49235 (grub_efi_disk_io_t): New type.
49236 (struct grub_efi_block_io_media): New structure.
49237 (grub_efi_block_io_media_t): New type.
49238 (struct grub_efi_block_io): New structure.
49239 (grub_efi_block_io_t): New type.
49240
49241 * include/grub/misc.h (grub_stop): Removed.
49242 (grub_exit): New prototype.
49243 (grub_abort): Likewise.
49244
49245 * include/grub/disk.h (enum grub_disk_dev_id): Added
49246 GRUB_DISK_DEVICE_EFIDISK_ID.
49247
49248 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
49249 disk/efi/efidisk.c.
49250 (kernel_syms.lst): Remove the target if an error occurs.
49251
49986a9f 492522006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
49253
49254 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
49255 as it was simply too buggy.
49256
970d3b8a 492572006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
49258
49259 * kern/misc.c (grub_lltoa): New function.
49260 (grub_vsprintf): Added support for the long long suffix,
49261 i.e. "ll".
49262
ff04ec24 492632006-04-20 Hollis Blanchard <hollis@penguinppc.org>
49264
49265 * Makefile.in (LDFLAGS): Add variable.
49266 (LD): Remove variable.
49267 * configure.ac: Add -m32 to LDFLAGS.
49268 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
49269 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
49270 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
49271 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
49272 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
49273 variables.
49274 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
49275 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
49276 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
49277
37e5e1a4 492782006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
49279
49280 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
49281 length for unknown glyph.
49282
c352d8dd 492832006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
49284
2eab1c0d 49285 Add support for pre-loaded modules into the EFI port.
f19dbdb7 49286
2eab1c0d 49287 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
49288 completely. Accept one more argument DIR. The caller has changed.
49289
49290 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
49291
49292 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
49293 (grub_efi_loaded_image_guid): New variable.
49294 (grub_efi_get_loaded_image): New function.
49295 (grub_arch_modules_addr): Likewise.
49296
49297 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
49298 prototype.
49299
49300 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
49301 (struct grub_efi_loaded_image): New structure.
49302 (grub_efi_loaded_image_t): New type.
49303
493042006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 49305
c352d8dd 49306 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
49307 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
49308 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
49309
6d01d6b4 493102006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
49311
49312 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
49313
976a4ea0 493142006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
49315
49316 * DISTLIST: Added include/grub/efi/console.h,
49317 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
49318 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
49319
49320 * include/grub/efi/console.h: New file.
49321 * include/grub/efi/time.h: Likewise.
49322 * include/grub/i386/efi/kernel.h: Likewise.
49323 * kern/efi/init.c: Likewise.
49324 * kern/efi/mm.c: Likewise.
49325 * term/efi/console.c: Likewise.
f19dbdb7 49326
976a4ea0 49327 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
49328 (grub_stop): Removed.
49329 (grub_get_rtc): Likewise.
49330 (grub_machine_init): Simply call grub_efi_init.
49331 (grub_machine_fini): Call grub_efi_fini.
49332
49333 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
49334 (grub_efi_output_string): Removed.
49335 (grub_efi_stall): New function.
49336 (grub_stop): Likewise.
49337 (grub_get_rtc): Likewise.
49338
49339 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
49340 (grub_efi_stall): New prototype.
49341 (grub_efi_allocate_pages): Likewise.
49342 (grub_efi_free_pages): Likewise.
49343 (grub_efi_get_memory_map): Likewise.
49344 (grub_efi_mm_init): Likewise.
49345 (grub_efi_mm_fini): Likewise.
49346 (grub_efi_init): Likewise.
49347 (grub_efi_fini): Likewise.
49348
49349 * include/grub/i386/efi/time.h: Do not include
49350 grub/symbol.h. Include grub/efi/time.h.
49351 (GRUB_TICKS_PER_SECOND): Removed.
49352 (grub_get_rtc): Likewise.
49353
49354 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
49355 Added padding. The EFI spec is buggy.
49356 (GRUB_EFI_BLACK): New macro.
49357 (GRUB_EFI_BLUE): Likewise.
49358 (GRUB_EFI_GREEN): Likewise.
49359 (GRUB_EFI_CYAN): Likewise.
49360 (GRUB_EFI_RED): Likewise.
49361 (GRUB_EFI_MAGENTA): Likewise.
49362 (GRUB_EFI_BROWN): Likewise.
49363 (GRUB_EFI_LIGHTGRAY): Likewise.
49364 (GRUB_EFI_BRIGHT): Likewise.
49365 (GRUB_EFI_DARKGRAY): Likewise.
49366 (GRUB_EFI_LIGHTBLUE): Likewise.
49367 (GRUB_EFI_LIGHTGREEN): Likewise.
49368 (GRUB_EFI_LIGHTCYAN): Likewise.
49369 (GRUB_EFI_LIGHTRED): Likewise.
49370 (GRUB_EFI_LIGHTMAGENTA): Likewise.
49371 (GRUB_EFI_YELLOW): Likewise.
49372 (GRUB_EFI_WHITE): Likewise.
49373 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
49374 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
49375 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
49376 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
49377 (GRUB_EFI_BACKGROUND_RED): Likewise.
49378 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
49379 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
49380 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
49381 (GRUB_EFI_TEXT_ATTR): Likewise.
49382
49383 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
49384 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
49385 (kernel_mod_HEADERS): Added efi/time.h.
49386
83709125 493872006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
49388
49389 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
49390 include/grub/efi/api.h, include/grub/efi/console_control.h,
49391 include/grub/efi/efi.h, include/grub/efi/pe32.h,
49392 include/grub/i386/efi/time.h, kern/efi/efi.c,
49393 kern/i386/efi/init.c, kern/i386/efi/startup.S,
49394 and util/i386/efi/grub-mkimage.c.
49395
49396 * Makefile.in (RMKFILES): Added i386-efi.rmk.
49397
49398 * genmk.rb (PModule#rule): Do not export symbols if
49399 #{prefix}_EXPORTS is set to "no".
49400
49401 * conf/i386-efi.mk: New file.
49402 * conf/i386-efi.rmk: Likewise.
49403 * include/grub/efi/api.h: Likewise.
49404 * include/grub/efi/console_control.h: Likewise.
49405 * include/grub/efi/efi.h: Likewise.
49406 * include/grub/efi/pe32.h: Likewise.
49407 * include/grub/i386/efi/time.h: Likewise.
49408 * kern/efi/efi.c: Likewise.
49409 * kern/i386/efi/init.c: Likewise.
49410 * kern/i386/efi/startup.S: Likewise.
49411 * util/i386/efi/grub-mkimage.c: Likewise.
49412
494132006-04-17 Marco Gerards <marco@gnu.org>
bfa2bd9e 49414
49415 * include/grub/script.h: Include <grub/parser.h> and
49416 "grub_script.tab.h".
49417 (struct grub_lexer_param): New struct.
49418 (struct grub_parser_param): Likewise.
49419 (grub_script_create_arglist): Pass the state in an argument.
49420 (grub_script_add_arglist): Likewise.
49421 (grub_script_create_cmdline): Likewise.
49422 (grub_script_create_cmdblock): Likewise.
49423 (grub_script_create_cmdif): Likewise.
49424 (grub_script_create_cmdmenu): Likewise.
49425 (grub_script_add_cmd): Likewise.
49426 (grub_script_arg_add): Likewise.
49427 (grub_script_lexer_ref): Likewise.
49428 (grub_script_lexer_deref): Likewise.
49429 (grub_script_lexer_record_start): Likewise.
49430 (grub_script_lexer_record_stop): Likewise.
49431 (grub_script_mem_record): Likewise.
49432 (grub_script_mem_record_stop): Likewise.
49433 (grub_script_malloc): Likewise.
49434 (grub_script_yylex): Likewise.
49435 (grub_script_yyparse): Likewise.
49436 (grub_script_yyerror): Likewise.
49437 (grub_script_yylex): Likewise.
49438 (grub_script_lexer_init): Return the state.
49439
49440 * normal/lexer.c (grub_script_lexer_state): Removed variable.
49441 (grub_script_lexer_done): Likewise.
49442 (grub_script_lexer_getline): Likewise.
49443 (grub_script_lexer_refs): Likewise.
49444 (script): Likewise.
49445 (newscript): Likewise.
49446 (record): Likewise.
49447 (recording): Likewise.
49448 (recordpos): Likewise.
49449 (recordlen): Likewise.
49450 (grub_script_lexer_init): Return the state instead of setting
49451 global variables.
49452 (grub_script_lexer_ref): Use the newly added argument for state
49453 instead of globals.
49454 (grub_script_lexer_deref): Likewise.
49455 (grub_script_lexer_record_start): Likewise.
49456 (grub_script_lexer_record_stop): Likewise.
49457 (recordchar): Likewise.
49458 (nextchar): Likewise.
49459 (grub_script_yylex2): Likewise.
49460 (grub_script_yylex): Likewise.
49461 (grub_script_yyerror): Likewise.
49462
49463 * normal/parser.y (func_mem): Removed variable.
49464 (menu_entry): Likewise.
49465 (err): Likewise.
49466 (%lex-param): New parser option.
49467 (%parse-param): Likewise.
49468 (script): Always return the AST.
49469 (argument): Pass the state around.
49470 (arguments): Likewise.
49471 (grubcmd): Likewise.
49472 (commands): Likewise.
49473 (function): Likewise.
49474 (menuentry): Likewise.
49475 (if_statement): Likewise.
49476 (if): Likewise.
49477
49478 * normal/script.c (grub_script_memused): Removed variable.
49479 (grub_script_parsed): Likewise.
49480 (grub_script_malloc): Added a state argument. Use that instead of
49481 global variables.
49482 (grub_script_mem_record): Likewise.
49483 (grub_script_mem_record_stop): Likewise.
49484 (grub_script_arg_add): Likewise.
49485 (grub_script_add_arglist): Likewise.
49486 (grub_script_create_cmdline): Likewise.
49487 (grub_script_create_cmdif): Likewise.
49488 (grub_script_create_cmdmenu): Likewise.
49489 (grub_script_add_cmd): Likewise.
49490 (grub_script_parse): Setup the state before calling the parser.
f19dbdb7 49491
e2a8c904 494922006-04-16 Marco Gerards <marco@gnu.org>
6de2ee99 49493
49494 * normal/command.c (grub_command_init): Remove the title command.
49495
49496 * normal/lexer.c (grub_script_yylex): Renamed from this...
49497 (grub_script_yylex2): ... to this.
49498 (grub_script_yylex): New function. Temporary
49499 introduced to filter some tokens.
49500 (grub_script_yyerror): Print a newline.
49501
49502 * normal/main.c (read_config_file): Output information about the
49503 lines that contain errors. Wait for a key after all lines have
49504 been processed. Don't return an empty menu.
49505
49506 * normal/parser.y (func_mem): Don't initialize.
49507 (menu_entry): Likewise.
49508 (err): New variable.
49509 (script): Don't return anything when an error was encountered.
49510 (ws, returns): Removed rules.
49511 (argument): Disabled concatenated variable support.
49512 (arguments): Remove explicit separators.
49513 (grubcmd): Likewise.
49514 (function): Likewise.
49515 (menuentry): Likewise.
49516 (if): Likewise.
49517 (commands): Likewise. Add error handling.
49518
49519 * normal/script.c (grub_script_create_cmdline): If
49520 `grub_script_parsed' is 0, assume the parser encountered an error.
49521
c9a86192 495222006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
49523
49524 * configure.ac: Add support for EFI. Fix the typo
49525 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
49526
70f3b243 495272006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
49528
49529 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
49530 foreign multibyte characters should be shown correctly.
49531
65f201ad 495322006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
49533
49534 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
49535 calculation.
49536 (read_config_file): Made it to close file before returning.
49537
b4b93674 495382006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
49539
49540 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
49541 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
49542 video/i386/pc/vbefill.c.
49543
49544 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
49545 video/i386/pc/vbefill.c.
49546
49547 * include/grub/video.h (grub_video_blit_format): New enum.
49548 (grub_video_mode_info): Added new member blit_format.
49549 (grub_video_get_blit_format): New function prototype.
49550
49551 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
49552 function prototype.
49553 (grub_video_vbe_map_rgb): Likewise.
49554 (grub_video_vbe_unmap_color): Likewise.
49555
49556 * include/grub/i386/pc/vbeblit.h: New file.
49557
49558 * include/grub/i386/pc/vbefill.h: New file.
49559
49560 * video/video.c (grub_video_get_blit_format): New function.
49561 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
49562 (grub_video_vbe_map_rgb): Likewise.
49563 (grub_video_vbe_unmap_color): Likewise.
49564
49565 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
49566 optimized fills.
49567 (grub_video_vbe_blit_render_target): Changed to use more optimized
49568 blits.
49569 (grub_video_vbe_setup): Added detection for optimized settings.
49570 (grub_video_vbe_create_render_target): Likewise.
49571
49572 * video/i386/pc/vbeblit.c: New file.
49573
49574 * video/i386/pc/vbefill.c: New file.
49575
c2379b9c 495762006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
49577
49578 * font/manager.c (grub_font_get_glyph): Removed font fixup from
49579 here...
49580
49581 * util/unifont2pff.rb: ... and moved it to here. Improved argument
49582 parsing to support both hex and dec ranges. If filename was missing
49583 show usage information.
49584
bd0d7896 495852006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
49586
49587 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
49588 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
49589
49590 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
49591 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
49592 (video_mod_SOURCES): Added.
49593 (video_mod_CFLAGS): Likewise.
49594 (video_mod_LDFLAGS): Likewise.
49595 (gfxterm_mod_SOURCES): Likewise.
49596 (gfxterm_mod_CFLAGS): Likewise.
49597 (gfxterm_mod_LDFLAGS): Likewise.
49598 (videotest_mod_SOURCES): Likewise.
49599 (videotest_mod_CFLAGS): Likewise.
49600 (videotest_mod_LDFLAGS): Likewise.
49601 (vesafb_mod_SOURCES): Removed.
49602 (vesafb_mod_CFLAGS): Likewise.
49603 (vesafb_mod_LDFLAGS): Likewise.
49604 (vga_mod_SOURCES): Likewise.
49605 (vga_mod_CFLAGS): Likewise.
49606 (vga_mod_LDFLAGS): Likewise.
49607
49608 * commands/videotest.c: New file.
49609
49610 * font/manager.c (fill_with_default_glyph): Modified to use
49611 grub_font_glyph.
49612 (grub_font_get_glyph): Likewise.
49613 (fontmanager): Renamed from this...
49614 (font_manager): ... to this.
49615
49616 * include/grub/font.h (grub_font_glyph): Added new structure.
49617 (grub_font_get_glyph): Modified to use grub_font_glyph.
49618
49619 * include/grub/misc.h (grub_abs): Added as inline function.
49620
49621 * include/grub/video.h: New file.
49622
49623 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
49624 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
49625 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
49626 (grub_vbe_get_controller_info): Renamed 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_set_pixel_rgb): Removed.
49649 (grub_vbe_set_pixel_index): Likewise.
49650
49651 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
49652 from this...
49653 (grub_vbe_bios_get_controller_info): ... to this.
49654 (grub_vbe_get_mode_info): Renamed from this...
49655 (grub_vbe_bios_get_mode_info): ... to this.
49656 (grub_vbe_set_mode): Renamed from this...
49657 (grub_vbe_bios_set_mode): ... to this.
49658 (grub_vbe_get_mode): Renamed from this...
49659 (grub_vbe_bios_get_mode): ... to this.
49660 (grub_vbe_set_memory_window): Renamed from this...
49661 (grub_vbe_bios_set_memory_window): ... to this.
49662 (grub_vbe_get_memory_window): Renamed from this...
49663 (grub_vbe_bios_get_memory_window): ... to this.
49664 (grub_vbe_set_scanline_length): Renamed from this...
49665 (grub_vbe_set_scanline_length): ... to this.
49666 (grub_vbe_get_scanline_length): Renamed from this...
49667 (grub_vbe_bios_get_scanline_length): ... to this.
49668 (grub_vbe_set_display_start): Renamed from this...
49669 (grub_vbe_bios_set_display_start): ... to this.
49670 (grub_vbe_get_display_start): Renamed from this...
49671 (grub_vbe_bios_get_display_start): ... to this.
49672 (grub_vbe_set_palette_data): Renamed from this...
49673 (grub_vbe_bios_set_palette_data): ... to this.
49674 (grub_vbe_bios_get_controller_info): Fixed problem with registers
49675 getting corrupted after calling it. Added more pushes and pops.
49676 (grub_vbe_bios_set_mode): Likewise.
49677 (grub_vbe_bios_get_mode): Likewise.
49678 (grub_vbe_bios_get_memory_window): Likewise.
49679 (grub_vbe_bios_set_scanline_length): Likewise.
49680 (grub_vbe_bios_get_scanline_length): Likewise.
49681 (grub_vbe_bios_get_display_start): Likewise.
49682 (grub_vbe_bios_set_palette_data): Likewise.
49683
49684 * normal/cmdline.c (cl_set_pos): Refresh the screen.
49685 (cl_insert): Likewise.
49686 (cl_delete): Likewise.
49687
49688 * term/gfxterm.c: New file.
49689
49690 * term/i386/pc/vesafb.c: Removed file.
49691
49692 * video/video.c: New file.
49693
49694 * video/i386/pc/vbe.c (real2pm): Added new function.
49695 (grub_video_vbe_draw_pixel): Likewise.
49696 (grub_video_vbe_get_video_ptr): Likewise.
49697 (grub_video_vbe_get_pixel): Likewise
49698 (grub_video_vbe_init): Likewise.
49699 (grub_video_vbe_fini): Likewise.
49700 (grub_video_vbe_setup): Likewise.
49701 (grub_video_vbe_get_info): Likewise.
49702 (grub_video_vbe_set_palette): Likewise.
49703 (grub_video_vbe_get_palette): Likewise.
49704 (grub_video_vbe_set_viewport): Likewise.
49705 (grub_video_vbe_get_viewport): Likewise.
49706 (grub_video_vbe_map_color): Likewise.
49707 (grub_video_vbe_map_rgb): Likewise.
49708 (grub_video_vbe_map_rgba): Likewise.
49709 (grub_video_vbe_unmap_color): Likewise.
49710 (grub_video_vbe_fill_rect): Likewise.
49711 (grub_video_vbe_blit_glyph): Likewise.
49712 (grub_video_vbe_blit_bitmap): Likewise.
49713 (grub_video_vbe_blit_render_target): Likewise.
49714 (grub_video_vbe_scroll): Likewise.
49715 (grub_video_vbe_swap_buffers): Likewise.
49716 (grub_video_vbe_create_render_target): Likewise.
49717 (grub_video_vbe_delete_render_target): Likewise.
49718 (grub_video_vbe_set_active_render_target): Likewise.
49719 (grub_vbe_set_pixel_rgb): Remove function.
49720 (grub_vbe_set_pixel_index): Likewise.
49721 (index_color_mode): Remove static variable.
49722 (active_mode): Likewise.
49723 (framebuffer): Likewise.
49724 (bytes_per_scan_line): Likewise.
49725 (grub_video_vbe_adapter): Added new static variable.
49726 (framebuffer): Likewise.
49727 (render_target): Likewise.
49728 (initial_mode): Likewise.
49729 (mode_in_use): Likewise.
49730 (mode_list): Likewise.
49731
5f97350b 497322006-03-10 Marco Gerards <marco@gnu.org>
49733
49734 * configure.ac (AC_INIT): Bumped to 1.93.
49735
49736 * DISTLIST: Added `include/grub/hfs.h'.
49737
a3c5c6f8 497382006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
49739
49740 * boot/i386/pc/boot.S (general_error): Before looping, try INT
49741 18H, which might help the BIOS falling back to next boot media.
49742
6de53d26 497432006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
49744
49745 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
49746 Poe Chen <poe.poechen@gmail.com>.
49747
77c4a393 497482006-01-17 Marco Gerards <marco@gnu.org>
49749
49750 * include/grub/normal.h: Include <grub/script.h>.
49751 (grub_command_list): Removed struct.
49752 (grub_command_list_t): Removed type.
49753 (grub_menu_entry): Remove members `num' and `command_list'. Add
49754 members `commands' and `sourcecode'.
49755 * include/grub/script.h: Add inclusion guards.
49756 (grub_script_cmd_menuentry): New struct.
49757 (grub_script_execute_menuentry): New prototype.
49758 (grub_script_lexer_record_start): Likewise.
49759 (grub_script_lexer_record_stop): Likewise.
49760 * normal/execute.c (grub_script_execute_menuentry): New function.
49761 * normal/lexer.c (record, recording, recordpos, recordlen): New
49762 variables.
49763 (grub_script_lexer_record_start): New function.
49764 (grub_script_lexer_record_stop): Likewise.
49765 (recordchar): Likewise.
49766 (nextchar): Likewise.
49767 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
49768 2048 as the buffer size. Add the tokens `menuentry' and `@'.
49769 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
49770 (current_menu): New variable.
49771 (free_menu): Mainly rewritten.
49772 (grub_normal_menu_addentry): New function.
49773 (read_config_file): Rewritten.
49774 * normal/menu.c (run_menu_entry): Mainly rewritten.
fe987087 49775 * normal/menu_entry.c (make_screen): Rewritten the code to insert
77c4a393 49776 the menu entry.
49777 (run): Mainly rewritten.
49778 * normal/parser.y (menu_entry): New variable.
49779 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
49780 (menuentry): New rule.
49781 (command): Add `menuentry'.
49782 (if_statement): Allow additional returns before `fi'.
49783 * normal/script.c (grub_script_create_cmdmenu): New function.
49784
144f1f98 497852006-01-03 Marco Gerards <marco@gnu.org>
49786
49787 * INSTALL: GNU Bison is required.
49788 * configure.ac: Rewritten the test to detect Bison.
49789 * Makefile.in (YACC): New variable. Reported by Xun Sun
49790 <xun.sun.cn@gmail.com>.
49791
af4b2d89 497922006-01-03 Marco Gerards <marco@gnu.org>
49793
49794 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
49795 the HFS+ filesystem to filesystem blocks.
49796 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
49797 GCC warning is silenced.
49798
15643b71 497992006-01-03 Marco Gerards <marco@gnu.org>
49800
49801 * partmap/apple.c (apple_partition_map_iterate): Convert the data
49802 read from disk from big endian to host byte order.
49803
00905879 498042006-01-03 Hollis Blanchard <hollis@penguinppc.org>
49805
49806 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
49807 documentation.
49808 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
49809 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
49810 embedded HFS+ filesystem.
49811 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
49812 (grub_hfs_sblock): Move from here...
49813 * include/grub/hfs.h: To here... New file.
49814 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
49815 documentation.
49816 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
49817 New macros.
49818 (grub_hfsplus_volheader): Change type of member `magic' to
49819 `grub_uint16_t'.
49820 (grub_hfsplus_data): Add new member `embedded_offset'.
49821 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
49822 returned block.
49823 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
49824 Calculate the offset.
49825
8899bc3e 498262005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
49827
49828 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
49829 Removed.
49830 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
49831
ae8c0277 498322005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
49833
49834 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
49835 ENV->NAME is NULL after allocating ENV->VALUE.
49836
07084456 498372005-12-25 Marco Gerards <marco@gnu.org>
49838
49839 * kern/env.c (grub_env_set): Rewritten the error handling code.
49840
4750f5f1 498412005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
49842
49843 * geninit.sh: Made more robust, and more portable.
49844
50214199 498452005-12-25 Marco Gerards <marco@gnu.org>
49846
49847 Add support for Apple HFS+ filesystems.
f19dbdb7 49848
50214199 49849 * fs/hfsplus.c: New file.
49850
49851 * DISTLIST: Added `fs/hfsplus.c'.
49852
49853 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
49854 (hfsplus_mod_SOURCES): New variable.
49855 (hfsplus_mod_CFLAGS): Likewise.
49856 (hfsplus_mod_LDFLAGS): Likewise.
49857 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
49858 (grub_setup_SOURCES): Likewise.
49859 (grub_mkdevicemap_SOURCES): Likewise.
49860 (grub_emu_SOURCES): Likewise.
49861 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
49862
49863 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
49864
49865 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
49866
befaed6c 498672005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
49868
49869 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
49870 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
49871 include/grub/parser.h, include/grub/script.h, kern/parser.c,
49872 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
49873 normal/lexer.c, normal/parser.y, normal/script.c, and
49874 partmap/gpt.c.
49875 Removed kern/sparc64/cache.c.
49876
49877 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
49878 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
49879 grub_emu_init.c.
49880
49881 * configure.ac (AC_INIT): Bumped to 1.92.
49882
6a124103 498832005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
49884
49885 * kern/err.c (grub_error_push): Added new function to support error
49886 stacks.
49887 (grub_error_pop): Likewise.
49888 (grub_error_stack_items): New local variable to support error stacks.
49889 (grub_error_stack_pos): Likewise.
49890 (grub_error_stack_assert): Likewise.
49891 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
49892 stack depth.
49893 (grub_print_error): Added support to print errors from error stack.
49894
49895 * include/grub/err.h (grub_error_push): Added function prototype.
49896 (grub_error_pop): Likewise.
49897
be973c1b 498982005-12-09 Hollis Blanchard <hollis@penguinppc.org>
49899
49900 * configure.ac: Accept `powerpc64' as host_cpu.
49901 (amd64): Rename to `biarch32'.
49902
49903 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
49904 non-cacheline-aligned addresses.
49905
49906 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
49907 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
49908 if `size' is non-zero.
49909
b04216ab 499102005-12-03 Marco Gerards <mgerards@xs4all.nl>
49911
49912 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
49913 and `cd' to make sure the filename is not prefixed with a
49914 directory name.
49915 (pkgdata_MODULES): Add `gpt.mod'.
49916 (gpt_mod_SOURCES): New variable.
49917 (gpt_mod_CFLAGS): Likewise.
49918 (gpt_mod_LDFLAGS): Likewise.
49919
49920 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
49921
49922 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
49923 New macro.
49924
49925 * partmap/gpt.c: New file.
49926
49927 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
49928 GPT partition map is detected.
49929
41730ed9 499302005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
49931
49932 * commands/i386/pc/play.c: New file.
49933 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
49934 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
49935 macros.
f19dbdb7 49936
95dc3643 499372005-11-27 Marco Gerards <mgerards@xs4all.nl>
49938
49939 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
49940 ((unused))' to silence gcc warning.
49941
1569ec51 499422005-11-26 Hollis Blanchard <hollis@penguinppc.org>
49943
49944 * configure.ac: Correct `AC_PROG_YACC' test.
49945
9abde152 499462005-11-22 Hollis Blanchard <hollis@penguinppc.org>
49947
49948 * util/powerpc/ieee1275/grub-install.in: Run the mount point
49949 check before installing files.
49950
44b83271 499512005-11-22 Mike Small <smallm@panix.com>
49952
49953 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
49954 number regex so multidigit numbers are recognized correctly.
49955
499562005-11-22 Mike Small <smallm@panix.com>
49957
49958 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
49959 debugging message before attempting to claim memory.
49960 (grub_rescue_cmd_initrd): Add a claim debugging message and try
49961 multiple addresses in case of failure.
49962
9c12956b 499632005-11-22 Hollis Blanchard <hollis@penguinppc.org>
49964
49965 * term/tparm.c (get_space): Remove empty `if' statement.
49966
49967 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
49968
49969 * kern/parser.c (check_varstate): Rename `state' to 's'.
49970
aeaf81d9 499712005-11-22 Hollis Blanchard <hollis@penguinppc.org>
49972
49973 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
49974 variable definitions to the beginning of each function. Sort stack
49975 variables by size.
49976 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
49977 `buf' argument to `char *'.
49978
79bbb63f 499792005-11-22 Hollis Blanchard <hollis@penguinppc.org>
49980
49981 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
49982 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 49983 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
79bbb63f 49984 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
49985 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
49986 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
49987 configfile.mod, search.mod, gzio.mod and test.mod.
49988 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
49989 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
49990 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
49991 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
49992 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
49993 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
49994 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
49995 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
49996 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
49997 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
49998 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
49999 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
50000 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
50001 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
50002 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
50003 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
50004 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
50005 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
50006 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
50007 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
50008 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
50009 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
50010 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
50011
50012 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
50013 `grep --include'.
50014 (pkgdata_MODULES): Add test.mod.
50015
233b1628 500162005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
50017
50018 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
50019 appending to variables with "+=".
50020 (PModule): Use full pathname to generate *.lst filenames.
50021
50022 * Makefile.in: Fixed list rules moved from genmk.rb.
50023 (.DELETE_ON_ERROR): New special target.
50024 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
50025
50026 * conf/i386-pc.rmk: Include conf/common.mk.
50027 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 50028 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
233b1628 50029 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
50030 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
50031 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
50032 configfile.mod, search.mod, gzio.mod and test.mod.
50033 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
50034 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
50035 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
50036 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
50037 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
50038 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
50039 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
50040 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
50041 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
50042 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
50043 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
50044 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
50045 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
50046 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
50047 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
50048 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
50049 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
50050 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
50051 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
50052 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
50053 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
50054 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
50055 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
50056 here...
50057 * conf/common.rmk: ... to here. New file.
50058
50059 * conf/common.mk: New file.
50060
16f820c8 500612005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
50062
50063 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
50064 (grub_script.tab.c): ... here.
50065
50066 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
50067 (grub_script.tab.c): ... here.
50068
50069 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
50070 (grub_script.tab.c): ... here.
50071
50072 * normal/command.c (grub_command_find): Fixed a memory leak of
50073 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
50074
63ba1554 500752005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
50076
50077 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
50078 "@" which marks the start of a comment on ARM.
50079 (VARIABLE): Likewise.
50080
7f67dc13 500812005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
50082
79bbb63f 50083 Add support for Linux/ADFS partition tables.
7f67dc13 50084
50085 * partmap/acorn.c: New file.
50086
50087 * include/grub/acorn_filecore.h: Likewise.
50088
50089 * DISTLIST: Added `partmap/acorn.c' and
50090 `include/grub/acorn_filecore.h'.
f19dbdb7 50091
7f67dc13 50092 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
50093 `partmap/acorn.c'.
50094 (pkgdata_MODULES): Add `acorn.mod'.
50095 (acorn_mod_SOURCES): New variable.
50096 (acorn_mod_CFLAGS): Likewise.
50097
50098 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
50099 `partmap/acorn.c'.
50100 (pkgdata_MODULES): Add `acorn.mod'.
50101 (acorn_mod_SOURCES): New variable.
50102 (acorn_mod_CFLAGS): Likewise.
50103
50104 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
50105 (pkgdata_MODULES): Add `acorn.mod'.
50106 (acorn_mod_SOURCES): New variable.
50107 (acorn_mod_CFLAGS): Likewise.
50108 (acorn_mod_LDFLAGS): Likewise.
50109
50110 * include/types.h (grub_disk_addr_t): New typedef.
50111
6d099807 501122005-11-13 Marco Gerards <mgerards@xs4all.nl>
50113
50114 * geninit.sh: New file.
50115
50116 * geninitheader.sh: Likewise.
50117
50118 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
50119 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
50120 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
50121 * commands/configfile.c (grub_configfile_init)
50122 (grub_configfile_fini): Likewise.
50123 * commands/default.c (grub_default_init, grub_default_fini):
50124 Likewise.
50125 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
50126 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
50127 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
50128 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
50129 Likewise.
50130 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
50131 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
50132 Likewise.
50133 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
fe6b695a 50134 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
6d099807 50135 Likewise.
50136 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
50137 Likewise.
fe6b695a 50138 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
6d099807 50139 Likewise.
50140 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
50141 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
50142 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
50143 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
50144 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
50145 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
50146 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
50147 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
50148 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
50149 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
50150 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
50151 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
50152 * partmap/amiga.c (grub_amiga_partition_map_init)
50153 (grub_amiga_partition_map_fini): Likewise.
50154 * partmap/apple.c (grub_apple_partition_map_init)
50155 (grub_apple_partition_map_fini): Likewise.
50156 * partmap/pc.c (grub_pc_partition_map_init)
50157 (grub_pc_partition_map_fini): Likewise.
50158 * partmap/sun.c (grub_sun_partition_map_init,
50159 grub_sun_partition_map_fini): Likewise.
50160 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
50161 Likewise.
50162
50163 * util/grub-emu.c: Include <grub_modules_init.h>.
50164 (main): Don't initialize and de-initialize any modules directly,
50165 use `grub_init_all' and `grub_fini_all' instead.
50166
50167 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
50168 `grub_vesafb_mod_init'.
50169 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
50170 all users.
50171 * term/i386/pc/vga.c (grub_vga_init): Renamed to
50172 `grub_vga_mod_init'. Updated all users.
50173 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
f19dbdb7 50174
6d099807 50175 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
50176 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
50177 rules.
50178
50179 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
50180 Generate a function to initialize the module in utilities.
50181 Updated all callers.
50182 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
50183 initialize the module in utilities. Updated all callers.
50184
9046bcf0 501852005-11-09 Hollis Blanchard <hollis@penguinppc.org>
50186
50187 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
50188 escape sequence and a literal ^L to clear the screen.
50189
50190 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
50191 when returning from Open Firmware.
50192
d13ea639 501932005-11-09 Hollis Blanchard <hollis@penguinppc.org>
50194
50195 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
50196 (grub_ofconsole_height): Likewise.
50197 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
50198 manually insert a '\n'.
50199 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
50200 `grub_ofconsole_height'. Return early if these are already set.
50201
a8fcf206 502022005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
50203
50204 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
50205 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
50206 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
50207 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
50208 and `normal/script.c'.
50209 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
50210 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
50211 (test_mod_SOURCES): New variable.
50212 (test_mod_CFLAGS): Likewise.
50213 (test_mod_LDFLAGS): Likewise.
50214 (pkgdata_MODULES): Add `test.mod'.
50215 (grub_script.tab.c): New rule.
50216 (grub_script.tab.h): Likewise.
50217
b6b32745 502182005-11-07 Marco Gerards <mgerards@xs4all.nl>
50219
50220 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
50221 `commands/test.c', `normal/execute.c', `normal/lexer.c',
50222 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
50223 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
50224 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
50225 (test_mod_SOURCES): New variable.
50226 (test_mod_CFLAGS): Likewise.
50227 (pkgdata_MODULES): Add `test.mod'.
50228 (grub_script.tab.c): New rule.
50229 (grub_script.tab.h): Likewise.
50230
daac212a 502312005-11-06 Marco Gerards <mgerards@xs4all.nl>
50232
50233 Add initial scripting support.
50234
50235 * commands/test.c: New file.
50236 * include/grub/script.h: Likewise.
50237 * normal/execute.c: Likewise.
50238 * normal/function.c: Likewise.
50239 * normal/lexer.c: Likewise.
50240 * normal/parser.y: Likewise.
50241 * normal/script.c: Likewise.
50242
50243 * configure.ac: Add `AC_PROG_YACC' test.
f19dbdb7 50244
daac212a 50245 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
50246 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
50247 `normal/function.c' and `normal/script.c'.
50248 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
50249 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
b6b32745 50250 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
50251 variables.
daac212a 50252 (pkgdata_MODULES): Add `test.mod'.
50253 (grub_script.tab.c): New rule.
50254 (grub_script.tab.h): Likewise.
50255
50256 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
50257
50258 * include/grub/normal.h (grub_test_init): New prototype.
50259 (grub_test_fini): Likewise.
f19dbdb7 50260
daac212a 50261 * normal/command.c: Include <grub/script.h>.
50262 (grub_command_execute): Rewritten.
f19dbdb7 50263
daac212a 50264 * util/grub-emu.c (main): Call `grub_test_init' and
50265 `grub_test_fini'.
50266
77500b2b 502672005-11-03 Hollis Blanchard <hollis@penguinppc.org>
50268
50269 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
50270 to 0.
50271 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
50272 there are no pending characters.
50273
e45deb9e 502742005-11-03 Hollis Blanchard <hollis@penguinppc.org>
50275
50276 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
50277 `grub_strndup' to drop device arguments. Replace unnecessary
50278 `grub_strndup' with `grub_strdup'.
50279
4ce32619 502802005-11-03 Hollis Blanchard <hollis@penguinppc.org>
50281
50282 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
50283 `debug' environment variable has been set.
50284
502852005-11-02 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 50286
4ce32619 50287 * Makefile.in (install-local): Use $(DATA).
50288 (uninstall): Likewise.
50289 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
50290 (sbin_UTILITIES): ... to here.
50291 (sbin_SCRIPTS): New variable.
50292 (grub_install_SOURCES): New variable.
50293 * util/powerpc/ieee1275/grub-install.in: New file.
50294 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
50295 variable.
50296 (add_segments): Call `grub_util_get_path'.
50297
25fe6f03 502982005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
50299
50300 From Timothy Baldwin:
50301 * commands/ls.c (grub_ls_list_files): Close FILE with
50302 grub_file_close.
50303 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
50304
04ccf3ec 503052005-10-24 Marco Gerards <mgerards@xs4all.nl>
50306
50307 * include/grub/parser.h: New file.
50308
50309 * kern/parser.c: Likewise.
50310
50311 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
50312 (grub_setup_SOURCES): Likewise.
50313 (grub_probefs_SOURCES): Likewise.
50314 (grub_emu_SOURCES): Likewise.
50315 (kernel_img_HEADERS): Add `parser.h'.
50316
50317 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
50318 (grub_emu_SOURCES): Add `kern/parser.c'.
50319 (grubof_SOURCES): Likewise.
50320
50321 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
50322 (grubof_SOURCES): Add `kern/parser.c'.
50323
50324 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
50325
50326 * kern/misc.c (grub_split_cmdline): Removed function.
50327
50328 * kern/rescue.c: Include <grub/parser.h>.
50329 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
50330 of `grub_split_cmdline'.
50331
50332 * normal/command.c: Include <grub/parser.h>.
50333 (grub_command_execute): Use `grub_parser_split_cmdline' instead
50334 of `grub_split_cmdline'.
50335
50336 * normal/completion.c: Include <grub/parser.h>.
50337 (cmdline_state): New variable.
50338 (iterate_dir): End the filename with a quote depending on the
50339 command line state.
50340 (get_state): new function.
50341 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
50342 split the arguments and determine the current argument. When the
50343 argument string is not quoted, escape all spaces.
50344
6d8f4b0e 503452005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
50346
50347 * normal/sparc64/setjmp.S: New file.
50348
15cf03ed 503492005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
50350
50351 * include/grub/sparc64/libgcc.h: New file.
50352 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
50353 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
50354 normal/sparc64/setjmp.c.
50355
03e8661a 503562005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
50357
50358 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
50359 * kern/sparc64/cache.S: New file.
50360 * kern/sparc64/cache.c: Removed.
50361 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
50362 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
50363 -mtune=ultrasparc.
50364 (COMMON_LDFLAGS): Add -melf64_sparc.
50365 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
50366 (grubof_SOURCES): Use cache.S instead of cache.c.
50367 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
50368 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
50369 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
50370 commented though.
50371 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
50372 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
50373 (linux_mod_CFLAGS): Commented out.
50374 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
50375 out because module isn't built.
50376 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
50377 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
50378 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
50379 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
50380 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
50381 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
50382 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
50383 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
50384 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
50385 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
50386 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
50387 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
50388 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
50389 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
50390
34eeec8a 503912005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
50392
50393 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
50394 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
50395 longer, because HFS should not be used on PC.
50396
708367a3 503972005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
50398
50399 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
50400 consistently within the loop.
50401
6fa1251a 504022005-10-15 Marco Gerards <mgerards@xs4all.nl>
50403
50404 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
50405 directory can not be read.
50406
4801580b 504072005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
50408
50409 * configure.ac (AC_INIT): Increase the version number to 1.91.
50410
50411 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
50412 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
50413 term/i386/pc/serial.c.
50414
219ad426 504152005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
50416
50417 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
50418 file size must be permitted.
50419
50420 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
50421 between %ah and %al.
50422
688e5699 504232005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
50424
50425 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
50426 grub_uint64_t.
50427 Call the hook with a NUL-terminated filename.
50428 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
50429 grub_cpu_to_be32.
50430
50431 * kern/term.c (cursor_state): New variable.
50432 (grub_term_set_current): Reset the cursor state on a new
50433 terminal.
50434 (grub_setcursor): Rewritten to use CURSOR_STATE.
50435 (grub_getcursor): New function.
50436
50437 * include/grub/term.h (grub_getcursor): New prototype.
50438
50439 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
50440 integers on ARM. Reported by Timothy Baldwin
50441 <T.E.Baldwin99@members.leeds.ac.uk>.
50442
bb34586c 504432005-10-11 Marco Gerards <mgerards@xs4all.nl>
50444
50445 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
50446 allocated.
50447 (grub_sfs_dir): Likewise.
50448
9a909877 504492005-10-09 Marco Gerards <mgerards@xs4all.nl>
50450
50451 Add support for the SFS filesystem.
50452
50453 * fs/sfs.c: New file.
50454
50455 * DISTLIST: Added `fs/sfs.c'.
50456
50457 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
50458 (grub_probefs_SOURCES): Likewise.
50459 (grub_emu_SOURCES): Likewise.
50460 (pkgdata_MODULES): Add `sfs.mod'.
50461 (sfs_mod_SOURCES): New variable.
50462 (sfs_mod_CFLAGS): Likewise.
50463 (sfs_mod_LDFLAGS): Likewise.
50464
50465 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
50466 (pkgdata_MODULES): Add `sfs.mod'.
50467 (sfs_mod_SOURCES): New variable.
50468 (sfs_mod_CFLAGS): Likewise.
50469
50470 * util/grub-emu.c (main): Call `grub_sfs_init' and
50471 `grub_sfs_fini'.
50472
50473 * include/grub/fs.h (grub_sfs_init): New prototype.
50474 (grub_sfs_fini): Likewise.
50475
57bdbde3 504762005-10-07 Marco Gerards <mgerards@xs4all.nl>
50477
50478 Add support for the AFFS filesystem.
50479
50480 * fs/affs.c: New file.
50481
50482 * DISTLIST: Added `fs/affs.c'.
50483
50484 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
50485 (grub_probefs_SOURCES): Likewise.
50486 (grub_emu_SOURCES): Likewise.
50487 (pkgdata_MODULES): Add `affs.mod'.
50488 (affs_mod_SOURCES): New variable.
50489 (affs_mod_CFLAGS): Likewise.
50490 (affs_mod_LDFLAGS): Likewise.
50491
50492 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
50493 (pkgdata_MODULES): Add `affs.mod'.
50494 (affs_mod_SOURCES): New variable.
50495 (affs_mod_CFLAGS): Likewise.
50496
50497 * util/grub-emu.c (main): Call `grub_affs_init' and
50498 `grub_affs_fini'.
50499
50500 * include/grub/fs.h (grub_affs_init): New prototype.
50501 (grub_affs_fini): Likewise.
50502
047b67e0 505032005-10-01 Marco Gerards <mgerards@xs4all.nl>
50504
50505 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
50506
59b8208a 505072005-10-01 Marco Gerards <mgerards@xs4all.nl>
50508
50509 * configure.ac: Accept `x86_64' as host_cpu. In that case add
50510 `-m32' to CFLAGS.
50511
50512 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
50513 linking.
f19dbdb7 50514
59b8208a 50515 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
50516 (COMMON_LDFLAGS): New variable.
50517 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
50518 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
50519 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
50520 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
50521 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
50522 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
50523 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
50524 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
50525 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
50526 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
50527 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
50528 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
50529 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
50530 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
50531 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
50532 variables.
50533 (normal_mod_ASFLAGS): Add `-m32'.
50534
50535 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
50536 (grub_host_size_t, grub_host_ssize_t): New types.
50537 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
fe6b695a 50538 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
59b8208a 50539 `GRUB_HOST_SIZEOF_VOID_P'.
50540
50541 * include/grub/kernel.h (struct grub_module_header): Type of
50542 member offset changed to `grub_host_off_t'. Type of member size
50543 changed to `grub_host_size_t'.
50544 (struct grub_module_info): Type of member offset changed to
50545 `grub_host_off_t'. Type of member size changed to
50546 `grub_host_size_t'.
50547
b4093103 505482005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
50549
50550 Make GRUB's kernel compliant to Multiboot Specification.
f19dbdb7 50551
b4093103 50552 * kern/i386/pc/startup.S (multiboot_header): New label.
50553 (multiboot_entry): Likewise.
50554 (multiboot_trampoline): Likewise.
50555
50556 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
50557 Increased to 0x4A0.
50558
50559 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
50560 put parentheses after a question mark.
50561 [!GRUB_UTIL] (my_mod): New variable.
50562
50563 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
50564
b2499b29 505652005-09-28 Marco Gerards <mgerards@xs4all.nl>
50566
50567 Adds support for the XFS filesystem. Btrees are not supported
50568 yet.
50569
50570 * fs/xfs.c: New file.
50571
50572 * DISTLIST: Added `fs/xfs.c'.
50573
50574 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
50575 (grub_probefs_SOURCES): Likewise.
50576 (grub_emu_SOURCES): Likewise.
50577 (pkgdata_MODULES): Add `xfs.mod'.
50578 (xfs_mod_SOURCES): New variable.
50579 (xfs_mod_CFLAGS): Likewise.
50580
50581 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
50582 (pkgdata_MODULES): Add `xfs.mod'.
50583 (xfs_mod_SOURCES): New variable.
50584 (xfs_mod_CFLAGS): Likewise.
50585
50586 * util/grub-emu.c (main): Call `grub_xfs_init' and
50587 `grub_xfs_fini'.
50588
50589 * include/grub/fs.h (grub_xfs_init): New prototype.
50590 (grub_xfs_fini): Likewise.
50591
f19dbdb7 50592
83d37a62 505932005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
50594
50595 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
50596 color modes, allow greater than 16 colors to be configured as
50597 a default palette.
50598
47d2d65e 505992005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
50600
50601 * normal/completion.c (complete_arguments): Add the qualifier
50602 const into OPTIONS.
50603
50604 From Omniflux <omniflux+lists@omniflux.com>:
50605 * include/grub/terminfo.h: New file.
50606 * include/grub/tparm.h: Likewise.
50607 * include/grub/i386/pc/serial.h: Likewise.
50608 * term/terminfo.c: Likewise.
50609 * term/tparm.c: Likewise.
50610 * term/i386/pc/serial.c: Likewise.
50611 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
50612 serial.mod.
50613 (terminfo_mod_SOURCES): New variable.
50614 (terminfo_mod_CFLAGS): Likewise.
50615 (serial_mod_SOURCES): Likewise.
50616 (serial_mod_CFLAGS): Likewise.
50617
48b671ff 506182005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
50619
50620 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
50621 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
50622 and kern/powerpc/ieee1275/cmain.c, respectively.
50623
50624 * boot/powerpc/ieee1275/crt0.S: Moved to ...
50625 * kern/powerpc/ieee1275/crt0.S: ... here.
50626
50627 * boot/powerpc/ieee1275/cmain.c: Moved to ...
50628 * kern/powerpc/ieee1275/cmain.c: ... here.
f19dbdb7 50629
48b671ff 50630 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
50631 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
50632 instead of boot/powerpc/ieee1275/crt0.S and
50633 boot/powerpc/ieee1275/cmain.c, respectively.
50634
50635 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
50636 sectors. It was not used anyway.
50637
09fc77a7 506382005-08-30 Hollis Blanchard <hollis@penguinppc.org>
50639
50640 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
50641 `unused parameter' warning.
50642
003789c7 506432005-08-30 Hollis Blanchard <hollis@penguinppc.org>
50644
50645 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
50646 function.
50647 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
50648 getcharwidth.
50649
67f44c86 506502005-08-28 Marco Gerards <metgerards@student.han.nl>
50651
50652 * include/grub/normal.h (enum grub_completion_type): Added
50653 `GRUB_COMPLETION_TYPE_ARGUMENT'.
50654
50655 * normal/cmdline.c (print_completion): Handle
50656 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
50657 * normal/menu_entry.c (store_completion): Likewise.
50658
50659 * normal/completion.c (complete_arguments): New function.
50660 (grub_normal_do_completion): Call `complete_arguments' when the
50661 current words start with a dash.
50662
0b5abe02 506632005-08-27 Marco Gerards <metgerards@student.han.nl>
50664
50665 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
50666 `gzio.mod' instead of `io.mod').
50667
d9864ee1 506682005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
50669
50670 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
50671 (DISTDIRS): Added io and video.
50672 Rewrite the search routine to make an output consistently.
50673
50674 * DISTLIST: Added conf/sparc64-ieee1275.mk,
50675 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
50676 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
50677 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
50678 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
50679 util/powerpc/ieee1275/misc.c.
f19dbdb7 50680
d9864ee1 50681 * include/grub/gzio.h: New file.
50682 * io/gzio.c: Likewise.
f19dbdb7 50683
d9864ee1 50684 * kern/file.c (grub_file_close): Call grub_device_close only if
50685 FILE->DEVICE is not NULL.
50686
50687 * include/grub/mm.h [!NULL] (NULL): New macro.
50688
50689 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
50690
50691 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
50692 (pkgdata_MODULES): Added gzio.mod.
50693 (gzio_mod_SOURCES): New variable.
50694 (gzio_mod_CFLAGS): Likewise.
50695
50696 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
50697 (pkgdata_MODULES): Added gzio.mod.
50698 (gzio_mod_SOURCES): New variable.
50699 (gzio_mod_CFLAGS): Likewise.
50700
50701 * commands/cat.c: Include grub/gzio.h.
50702 (grub_cmd_cat): Use grub_gzfile_open instead of
50703 grub_file_open.
f19dbdb7 50704
d9864ee1 50705 * commands/cmp.c: Include grub/gzio.h.
50706 (grub_cmd_cmp): Use grub_gzfile_open instead of
50707 grub_file_open.
50708
50709 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
50710 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
50711 grub_file_open.
50712 (grub_rescue_cmd_module): Likewise.
50713
fa46f4b5 507142005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
50715
50716 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
50717 kern/sparc64/ieee1275/init.c because it contains _start.
50718 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
50719
e9211b5d 507202005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
50721
50722 * configure.ac: Add support for sparc64 host with ieee1275
50723 firmware.
50724 * configure: Generated from configure.ac.
50725 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
50726 instead of int.
50727 (grub_ofdisk_read): Likewise.
50728 (grub_ofdisk_open): Use %p to print pointer values, and cast the
50729 pointers as (void *) to remove a warning.
50730 (grub_ofdisk_close): Likewise.
50731 (grub_ofdisk_read): Likewise.
50732 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
50733 returns, so make it return void to remove a warning.
50734 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
50735 Corresponding prototype change.
50736 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
50737 values, and cast the pointers as (void *) to remove a warning.
50738 (grub_mm_dump): Likewise.
50739 * conf/sparc64-ieee1275.mk: New file.
50740 * conf/sparc64-ieee1275.rmk: Likewise.
50741 * include/grub/sparc64/setjmp.h: Likewise.
50742 * include/grub/sparc64/types.h: Likewise.
50743 * include/grub/sparc64/ieee1275/console.h: Likewise.
50744 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
50745 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
50746 * include/grub/sparc64/ieee1275/time.h: Likewise.
50747 * kern/sparc64/cache.c: Likewise.
50748 * kern/sparc64/dl.c: Likewise.
50749 * kern/sparc64/ieee1275/init.c: Likewise.
50750 * kern/sparc64/ieee1275/openfw.c: Likewise.
50751
385c6a92 507522005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
50753
50754 * util/console.c (grub_ncurses_putchar): If C is greater than
50755 0x7f, set C to a question mark.
50756 (grub_ncurses_getcharwidth): New function.
50757 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
50758 getcharwidth.
50759
50760 * normal/menu.c (print_entry): Made aware of Unicode. First,
50761 convert TITLE to UCS-4, and predict the cursor position by
50762 grub_getcharwidth.
50763
50764 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
50765 const to SRC.
50766 * kern/misc.c (grub_utf16_to_utf8): Likewise.
50767
16ccb8b1 507682005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
50769
50770 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
50771 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
50772 grub_strcat.
50773
50774 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
50775 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
50776 grub_strcpy and grub_strlen. Take it into account that a space
50777 character is inserted as a delimiter.
50778
6a85ce79 507792005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
50780
50781 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
fe6b695a 50782 invalid magic in the error.
6a85ce79 50783
50784 * commands/search.c: New file.
f19dbdb7 50785
6a85ce79 50786 * util/grub-emu.c (main): Call grub_search_init and
50787 grub_search_fini.
50788
50789 * kern/rescue.c (grub_rescue_print_disks): Removed.
50790 (grub_rescue_print_devices): New function.
50791 (grub_rescue_cmd_ls): Use grub_device_iterate with
50792 grub_rescue_print_devices instead of grub_disk_dev_iterate with
50793 grub_rescue_print_disks.
50794
50795 * kern/partition.c (grub_partition_iterate): Return the result of
50796 PARTMAP->ITERATE instead of GRUB_ERRNO.
50797
50798 * kern/device.c: Include grub/partition.h.
50799 (grub_device_iterate): New function.
50800
50801 * include/grub/partition.h (grub_partition_iterate): Return int
50802 instead of grub_err_t.
50803
50804 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
50805 prototype.
50806 [GRUB_UTIL] (grub_search_fini): Likewise.
50807
50808 * include/grub/device.h (grub_device_iterate): New prototype.
50809
50810 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
50811 commands/search.c.
50812 (pkgdata_MODULES): Added search.mod.
50813 (search_mod_SOURCES): New variable.
50814 (search_mod_CFLAGS): Likewise.
50815
50816 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
50817 (pkgdata_MODULES): Added search.mod.
50818 (search_mod_SOURCES): New variable.
50819 (search_mod_CFLAGS): Likewise.
50820
50821 * commands/ls.c (grub_ls_list_disks): Renamed to ...
50822 (grub_ls_list_devices): ... this, and use grub_device_iterate.
50823 All callers changed.
50824
50825 * DISTLIST: Added commands/search.c.
50826
ef095434 508272005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
50828
50829 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
50830 conversion.
50831 (grub_getcharwidth): New function.
50832
50833 * kern/misc.c (grub_utf8_to_ucs4): New function.
50834
50835 * include/grub/term.h (struct grub_term): Added a new member
50836 "getcharwidth".
50837 (grub_getcharwidth): New prototype.
50838
50839 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
50840
50841 * term/i386/pc/console.c (map_char): New function. Segregated from
50842 grub_console_putchar.
50843 (grub_console_putchar): Use map_char.
50844 (grub_console_getcharwidth): New function.
50845 (grub_console_term): Specified grub_console_getcharwidth as
50846 getcharwidth.
50847
50848 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
50849 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
50850
50851 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
50852 GRUB_ERRNO.
50853 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
50854 on grub_strtoul completely.
50855 (write_char): Declare local variables in the beginning of the
50856 function.
50857 (grub_vesafb_getcharwidth): New function.
50858 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
50859 getcharwidth.
50860
1f0a95e4 508612005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
50862
50863 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
50864 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
50865 commands/i386/pc/vbetest.c.
50866
50867 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
50868 call grub_vbe_get_controller_info again, because the returned
50869 information is volatile.
50870 (grub_vbe_set_video_mode): Mostly rewritten.
50871 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
50872 grub_vbe_status_t correctly.
50873 (grub_vbe_get_video_mode_info): Likewise.
50874 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
50875 several if statements.
50876
50877 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
50878 * commands/i386/pc/vbeinfo.c: ... this.
50879
50880 * commands/i386/pc/vbe_test.c: Renamed to ...
50881 * commands/i386/pc/vbetest.c: ... this.
50882
50883 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
50884 ...
50885 (grub_cmd_vbeinfo): ... this. Save video modes before
50886 iterating. Skip a video mode, if it is not available, not enough
50887 information is given or it is monochrome. Show the memory
50888 model. Leave the interpretation of MODEVAR to grub_strtoul
50889 completely.
50890 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
50891 (GRUB_MOD_FINI): Likewise.
50892
50893 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
50894 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
50895 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
50896 duplicated grub_env_get. Leave the interpretation of MODEVAR to
50897 grub_strtoul completely.
50898 (real2pm): Removed.
50899 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
50900 (GRUB_MOD_FINI): Likewise.
50901
50902 * normal/misc.c: Include grub/mm.h.
50903
50904 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
50905 vbe_list_modes with vbetest.mod and vbeinfo.mod.
50906 (vbe_list_modes_mod_SOURCES): Removed.
50907 (vbe_list_modes_mod_CFLAGS): Likewise.
50908 (vbe_test_mod_SOURCES): Likewise.
50909 (vbe_test_mod_CFLAGS): Likewise.
50910 (vbeinfo_mod_SOURCES): New variable.
50911 (vbeinfo_mod_CFLAGS): Likewise.
50912 (vbetest_mod_SOURCES): Likewise.
50913 (vbetest_mod_CFLAGS): Likewise.
50914
992ffbbe 509152005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
50916
50917 * normal/misc.c: New file.
50918
50919 * DISTLIST: Added normal/misc.c.
f19dbdb7 50920
992ffbbe 50921 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
50922 DISK to HOOK. Call HOOK with DISK.
50923 * partmap/apple.c (apple_partition_map_iterate): Likewise.
50924 * partmap/pc.c (pc_partition_map_iterate): Likewise.
50925 * partmap/sun.c (sun_partition_map_iterate): Likewise.
50926
50927 * normal/menu_entry.c (struct screen): Added a new member
50928 "completion_shown".
50929 (completion_buffer): New global variable.
50930 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
50931 (store_completion): New function.
50932 (complete): Likewise.
50933 (clear_completions): Likewise.
50934 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
50935 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
50936 a tab, call complete.
50937
50938 * normal/completion.c (disk_dev): Removed.
50939 (print_simple_completion): Likewise.
50940 (print_partition_completion): Likewise.
50941 (print_func): New global variable.
50942 (add_completion): Do not take the arguments WHAT or PRINT any
50943 longer. Added a new argument TYPE. Instead of printing directly,
50944 call PRINT_FUNC if not NULL.
50945 All callers changed.
50946 (complete_device): Use a local variable DEV instead of
50947 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
50948 (grub_normal_do_completion): Take a new argument HOOK. Do not
50949 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
50950 empty string, return NULL instead.
50951 All callers changed.
50952
50953 * normal/cmdline.c (print_completion): New function.
50954
50955 * kern/partition.c (grub_partition_iterate): Add an argument DISK
50956 to HOOK.
50957 All callers changed.
50958
50959 * kern/disk.c (grub_print_partinfo): Removed.
50960
50961 * include/grub/partition.h (struct grub_partition_map): Add a new
50962 argument DISK into HOOK of ITERATE.
50963 (grub_partition_iterate): Add a new argument DISK to HOOK.
50964
50965 * include/grub/normal.h (enum grub_completion_type): New enum.
50966 (grub_completion_type_t): New type.
50967 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
50968 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
50969 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
50970 (GRUB_COMPLETION_TYPE_FILE): Likewise.
50971 (grub_normal_do_completion): Added a new argument HOOK.
50972 (grub_normal_print_device_info): New prototype.
50973
50974 * include/grub/disk.h (grub_print_partinfo): Removed.
50975
50976 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
50977 (normal_mod_SOURCES): Likewise.
50978 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
50979 (normal_mod_SOURCES): Likewise.
50980
50981 * commands/ls.c (grub_ls_list_disks): Use
50982 grub_normal_print_device_info instead of grub_print_partinfo. Free
50983 PNAME.
50984 (grub_ls_list_files): Use grub_normal_print_device_info instead of
50985 duplicating the code.
50986
0bd41162 509872005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
50988
50989 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
f19dbdb7 50990 follow GCS more precisely.
50991 * commands/i386/pc/vbe_test.c: Likewise.
50992 * include/grub/i386/pc/vbe.h: Likewise.
50993 * term/i386/pc/vesafb.c: Likewise.
50994 * video/i386/pc/vbe.c: Likewise.
0bd41162 50995
6323696a 509962005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
50997
50998 * DISTLIST: Added term/i386/pc/vesafb.c
50999 DISTLIST: Added video/i386/pc/vbe.c
51000 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
51001 DISTLIST: Added commands/i386/pc/vbe_test.c.
51002 * commands/i386/pc/vbe_list_modes.c: New file.
51003 * commands/i386/pc/vbe_test.c: Likewise.
51004 * term/i386/pc/vesafb.c: Likewise.
51005 * video/i386/pc/vbe.c: Likewise.
51006 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
51007 (grub_vbe_probe) Added prototype.
51008 (grub_vbe_set_video_mode) Likewise.
51009 (grub_vbe_get_video_mode) Likewise.
51010 (grub_vbe_get_video_mode_info) Likewise.
51011 (grub_vbe_set_pixel_rgb) Likewise.
51012 (grub_vbe_set_pixel_index) Likewise.
51013 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
51014 (pkgdata_MODULES): Added vesafb.mod.
51015 (pkgdata_MODULES): Added vbe_list_modes.mod.
51016 (pkgdata_MODULES): Added vbe_test.mod.
51017 (vbe_mod_SOURCES): Added.
51018 (vbe_mod_CFLAGS): Likewise.
51019 (vesafb_mod_SOURCES): Likewise.
51020 (vesafb_mod_CFLAGS): Likewise.
51021 (vbe_list_modes_mod_SOURCES): Likewise.
51022 (vbe_list_modes_mod_CFLAGS): Likewise.
51023 (vbe_test_mod_SOURCES): Likewise.
51024 (vbe_test_mod_CFLAGS): Likewise.
51025
0a74e62f 510262005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
51027
0a74e62f 51028 * normal/command.c (grub_command_execute): If INTERACTIVE is
51029 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
51030 CMDLINE. Disable the pager if INTERACTIVE is true.
51031 All callers are changed.
51032
51033 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
51034 before reading a config file.
51035 * normal/main.c (read_config_file): Even if a command is not
51036 found, register it if it is within an entry.
51037
51038 * util/grub-emu.c: Include sys/types.h and unistd.h.
51039 (options): Added --hold.
51040 (struct arguments): Added a new member "hold".
51041 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
51042 missing.
51043 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
51044 cleared by a debugger, if it is not zero.
51045
51046 * include/grub/normal.h (grub_command_execute): Add an argument
51047 INTERACTIVE.
51048
e51f85ae 510492005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
51050
51051 * DISTLIST: Added include/grub/i386/pc/vbe.h.
51052
e9c6f39b 510532005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
51054
51055 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
51056 program with another one, because the old one didn't detect a bug
51057 in gcc-3.4. Always use regparm 2, because the new test is still
51058 not enough for gcc-4.0. Someone must investigate a simple test
51059 case which detects a bug in gcc-4.0.
51060
8de3495c 510612005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
51062
51063 * DISTLIST: Added normal/completion.c.
51064
51065 * normal/completion.c: New file.
f19dbdb7 51066
8de3495c 51067 * term/i386/pc/console.c (grub_console_getwh): New function.
51068 (grub_console_term): Assign grub_console_getwh to getwh.
51069
51070 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
51071 function is defined in normal/completion.c as
51072 grub_normal_do_completion.
51073 (grub_cmdline_get): Use grub_normal_do_completion instead of
51074 grub_tab_complete.
51075
51076 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
51077 returns non-zero, otherwise return 0.
51078 (grub_partition_iterate): First, probe the partition map. Then,
51079 call ITERATE only for this partition map.
51080
51081 * kern/misc.c (grub_strncmp): Rewritten.
51082
51083 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
51084 returns non-zero. Otherwise return 0.
51085
51086 * include/grub/partition.h (grub_partition_map_iterate): Return
51087 int instead of void.
51088
51089 * include/grub/normal.h (grub_normal_do_completion): New prototype.
51090
51091 * include/grub/misc.h (grub_strncmp): Change the type of N to
51092 grub_size_t.
51093
51094 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
51095 of void.
51096
51097 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
fe6b695a 51098 unsigned explicitly before comparing it with I.
8de3495c 51099
51100 * kern/main.c (grub_env_write_root): Add the attribute unused into
51101 VAR.
51102
51103 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
51104 normal/completion.c.
51105 (normal_mod_SOURCES): Likewise.
51106 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
51107 (normal_mod_SOURCES): Likewise.
51108
51109 * normal/command.c (grub_iterate_commands): If ITERATE returns
51110 non-zero, return one immediately.
51111
e85e144b 511122005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
51113
51114 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
51115 * kern/i386/pc/startup.S: Updated Global Descriptor table's
51116 descriptions.
51117 (grub_vbe_get_controller_info): New function.
51118 (grub_vbe_get_mode_info): Likewise.
51119 (grub_vbe_set_mode): Likewise.
51120 (grub_vbe_get_mode): Likewise.
51121 (grub_vbe_set_memory_window): Likewise.
51122 (grub_vbe_get_memory_window): Likewise.
51123 (grub_vbe_set_scanline_length): Likewise.
51124 (grub_vbe_get_scanline_length): Likewise.
51125 (grub_vbe_set_display_start): Likewise.
51126 (grub_vbe_get_display_start): Likewise.
51127 (grub_vbe_set_palette_data): Likewise.
51128 * include/grub/i386/pc/vbe.h: New file.
51129
c46153d2 511302005-08-08 Hollis Blanchard <hollis@penguinppc.org>
51131
51132 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
51133 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
51134 * DISTLIST: Likewise.
51135 * kern/ieee1275/of.c: Moved to ...
51136 * kern/ieee1275/ieee1275.c: ... here.
51137
0cb90c45 511382005-08-08 Hollis Blanchard <hollis@penguinppc.org>
51139
51140 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
51141 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
51142 Pass 0 as `end' parameter to grub_strtoul().
51143
a19fb360 511442005-08-08 Hollis Blanchard <hollis@penguinppc.org>
51145
51146 * include/grub/powerpc/ieee1275/console.h: Do not include
51147 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
51148 ifdef.
51149 (grub_console_cur_color): Remove i386-specific prototype.
51150 (grub_console_real_putchar): Likewise.
51151 (grub_console_checkkey): Likewise.
51152 (grub_console_getkey): Likewise.
51153 (grub_console_getxy): Likewise.
51154 (grub_console_gotoxy): Likewise.
51155 (grub_console_cls): Likewise.
51156 (grub_console_setcursor): Likewise.
51157 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
51158 Include <grub/machine/console.h>.
51159 * term/ieee1275/ofconsole.c: Likewise.
51160
4ac9bd04 511612005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
51162
51163 * Makefile.in (LIBLZO): New variable.
51164
51165 * configure.ac: Check for LZO version 2.
51166
51167 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
51168 lzo/lzo1x.h instead of lzo1x.h.
51169
51170 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
51171 of -llzo.
51172
51173 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
51174 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
51175
51176 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
51177 copying the data from PARTITION to P.
51178
f4917dfd 511792005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
51180
51181 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
51182 negative, unload the module.
51183
51184 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
51185 map is "pc_partition_map" but not "pc".
51186 (usage): Fix the description. The options are --boot-image and
51187 --core-image but not --boot-file or --core-file.
51188 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
51189 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
51190 DEFAULT_DIRECTORY.
51191
51192 * util/i386/pc/grub-install.in: Do not specify --boot-file or
51193 --core-file. Specify INSTALL_DEVICE as an argument.
51194
51195 * util/console.c: Include config.h.
51196 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
51197 [HAVE_NCURSES_H]: Include ncurses.h.
51198 [HAVE_CURSES_H]: Include curses.h.
51199 [!A_NORMAL] (A_NORMAL): Defined as zero.
51200 [!A_STANDOUT] (A_STANDOUT): Likewise.
51201
51202 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
51203 -lncurses.
51204 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
51205
51206 * configure.ac: Check for curses libraries and headers.
51207
51208 * Makefile.in (LIBCURSES): New variable.
51209
51210 * genmk.rb (Script::rule): Set the executable bits.
51211
51212 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
51213 name of the PC partition map is "pc_partition_map" but not "pc".
51214
0e143073 512152005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
51216
51217 * util/i386/pc/grub-install.in (grub_probefs): New variable.
51218 (modules): Likewise.
51219 (usage): Added descriptions for --modules and --grub-probefs.
51220 Handle --modules and --grub-probefs. Save the arguments in MODULES
51221 and GRUB_PROBEFS, respectively.
51222 Auto-detect a filesystem module against GRUBDIR. If the result is
51223 empty and modules are not specified explicitly, abort the
51224 installation. Add the result to MODULES.
51225
51226 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
51227 disk/powerpc/ieee1275/ofdisk.c,
51228 include/grub/powerpc/ieee1275/init.h and
51229 term/powerpc/ieee1275/ofconsole.c.
51230 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
51231 term/ieee1275/ofconsole.c.
51232
51233 * include/grub/powerpc/ieee1275/console.h: Resurrected.
51234
51235 * COPYING: Upgraded to the latest version. Only the address of the
51236 FSF office has changed.
f19dbdb7 51237
efd6e6d5 512382005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
51239
51240 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
51241 kern/ieee1275.c with kern/ieee1275/of.c.
51242
51243 * kern/ieee1275.c: Moved to ...
51244 * kern/ieee1275/of.c: ... here.
51245
8ceafda2 512462005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
51247
51248 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
fe6b695a 51249 readability.
8ceafda2 51250
51251 * config.guess: Updated to the latest version from gnulib.
51252 * config.sub: Likewise.
51253 * install.sh: Likewise.
51254 * mkinstalldirs: Likewise.
51255
51256 * include/grub/console.h: Removed. This file is arch-specific. Do
51257 not put this in include/grub.
51258
51259 * include/grub/i386/pc/console.h: Resurrected.
51260
51261 * util/console.c: Include grub/machine/console.h instead of
51262 grub/console.h.
51263 * util/grub-emu.c: Likewise.
51264
267f6cd9 512652005-08-04 Marco Gerards <metgerards@student.han.nl>
51266
51267 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
51268 hardcoded value.
f19dbdb7 51269
267f6cd9 51270 From Vincent Pelletier <subdino2004@yahoo.fr>
51271 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
51272 Redefined to use grub_getwh.
51273 (grub_term): New member named getwh.
51274 (grub_getwh): New prototype.
51275 * kern/term.c (grub_getwh): New function.
51276 * term/i386/pc/console.c (grub_console_getwh): New function.
51277 (grub_console_term): New member `getwh'.
51278 * term/i386/pc/vga.c (grub_vga_getwh): New function.
51279 (grub_vga_term): New member `getwh'.
0b5abe02 51280 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
267f6cd9 51281 grub_ssize_t.
51282 (grub_ofconsole_getw): New function.
51283 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
51284 (grub_ofconsole_term): New field named getwh and new initial
51285 value.
51286
3be7266d 512872005-08-03 Hollis Blanchard <hollis@penguinppc.org>
51288
51289 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
51290 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
51291 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
51292 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
51293 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
51294 of <grub/machine/ieee1275.h>.
51295 * commands/ieee1275/reboot.c: Likewise.
51296 * boot/powerpc/ieee1275/ieee1275.c: Move ...
51297 * kern/ieee1275.c: ... to here. All users updated. Change all
51298 parameter structs to use new type `grub_ieee1275_cell_t'.
51299 * term/powerpc/ieee1275/ofconsole.c: Move ...
51300 * term/ieee1275/ofconsole.c: ... to here. All users updated.
51301 * disk/powerpc/ieee1275/ofdisk.c: Move ...
51302 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
51303 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
51304 to return int.
51305 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
51306 Remove unused prototypes. All users updated.
51307 * include/grub/powerpc/ieee1275/console.h: Removed.
51308 * include/grub/powerpc/ieee1275/ieee1275.h: Define
51309 `grub_ieee1275_cell_t'.
51310 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
51311 Cast comparisons with -1 to the correct type.
51312 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
51313 type to match `grub_ieee1275_entry_fn'.
51314
8b5f3938 513152005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
51316
51317 * DISTLIST: Added util/i386/pc/grub-probefs.c.
51318
51319 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
51320 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
51321 partmap/sun.c.
51322 (grub_probefs_SOURCES): New variable.
51323
51324 * util/i386/pc/grub-probefs.c: New file.
51325
51326 * util/i386/pc/grub-setup.c (main): Call
51327 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
51328 grub_hfs_init and grub_jfs_init to initialize the system. Call
51329 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
51330 grub_pc_partition_map_fini to finish the system.
51331
ea409713 513322005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
51333
51334 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
51335 function.
51336 (grub_multiboot_load_elf32): Likewise.
51337 (grub_multiboot_is_elf64): Likewise.
51338 (grub_multiboot_load_elf64): Likewise.
51339 (grub_multiboot_load_elf): Likewise.
51340 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
51341 an ELF32 or ELF64 file.
51342 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
51343
51344 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
51345 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
51346 NULL before calling FS->LABEL.
51347 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
51348 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
51349 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
51350 before calling FS->LABEL.
51351
141a288b 513522005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
51353
51354 * util/i386/pc/grub-install.in (datadir): New variable.
51355 (libdir): Removed.
51356 (pkgdatadir): New variable.
51357 (pkglibdir): Removed.
51358
0d5f8a54 513592005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
51360
51361 * DISTLIST: Added util/i386/pc/grub-install.in.
51362
51363 * util/i386/pc/grub-install.in: New file.
51364
51365 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
51366 (grub_install_SOURCES): Likewise.
51367
51368 * genmk.rb: Added support for scripts.
51369 (Script): New class.
51370 (scripts): New variable.
51371
51372 * Makefile.in (install-local): Install sbin_SCRIPTS by
51373 INSTALL_SCRIPT.
51374 (uninstall): Remove sbin_SCRIPTS.
51375
51376 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
51377 device, try to get a GRUB device by
51378 grub_util_biosdisk_get_grub_dev.
51379 Free DEST_DEV.
51380
51381 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
51382 description for --device-map.
51383
5f968e1e 513842005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
51385
51386 Change the semantics of variable hooks. They now return strings
51387 instead of error values.
f19dbdb7 51388
5f968e1e 51389 * util/i386/pc/grub-setup.c: Include grub/env.h.
51390 (setup): Use grub_device_set_root instead of grub_env_set.
51391
51392 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
51393 grub_env_get instead of grub_device_set_root and
51394 grub_device_get_root, respectively.
51395
51396 * kern/main.c (grub_env_write_root): New function.
51397 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
51398 grub_env_set instead of grub_device_set_root.
51399
51400 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
51401 many variables.
51402 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
51403 rather than calling ENV->WRITE_HOOK afterwards.
51404 (grub_env_get): Return the result of ENV->READ_HOOK rather than
51405 passing a pointer of a pointer.
51406 (grub_register_variable_hook): Change the types of "read_hook" and
51407 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
51408 respectively.
51409 Allocate the default empty string on the heap, because this string
51410 may be freed later.
51411
51412 * kern/device.c: Include grub/env.h.
51413 (grub_device_set_root): Removed.
51414 (grub_device_get_root): Likewise.
51415 (grub_device_open): Use grub_env_get instead of
51416 grub_device_get_root.
51417
51418 * include/grub/env.h (grub_env_read_hook_t): New type.
51419 (grub_env_write_hook_t): Likewise.
51420 (grub_env_var): Change the types of "read_hook" and "write_hook"
51421 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
51422 (grub_register_variable_hook): Likewise.
51423
51424 * include/grub/device.h (grub_device_set_root): Removed.
51425 (grub_device_set_root): Likewise.
51426
51427 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
51428 make sure that DIRNAME terminates with '/', so that
51429 grub_fat_find_dir will fail if PATH is not a directory.
51430
51431 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
51432 from DIRNAME.
51433 Use the qualifier auto for print_files and print_files_long.
51434 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
51435 as a regular file.
51436 Put a newline only if there is no error.
51437 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
51438 used.
51439
896f0afd 514402005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
51441
51442 * kern/partition.c (grub_partition_probe): Initialize PART to
51443 NULL. Otherwise, when no partition map is registered, this returns
51444 a garbage.
51445
b28b81b2 514462005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
51447
51448 * partmap/apple.c (apple_partition_map_iterate): Check if POS
51449 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
51450 valid.
51451
5f3607e0 514522005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
51453
51454 * commands/ls.c (grub_ls_list_disks): Print the filesystem
51455 information on each device, if it does not have partitions. Print
51456 "Device" instead of "Disk", because this function is not specific
51457 to disk devices.
51458
51459 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
51460 static to ensure that it is put on the memory rather than a
51461 register.
51462
502c87e8 514632005-07-17 Yoshinori Okuji <okuji@enbug.org>
51464
51465 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
51466 (grub_cat_init): Likewise.
51467 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
51468 (options): Likewise.
51469 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
51470 (grub_configfile_init): Likewise.
51471 * font/manager.c (GRUB_MOD_INIT): Likewise.
51472 * commands/help.c (GRUB_MOD_INIT): Likewise.
51473 (grub_help_init): Likewise.
51474 * normal/command.c (grub_command_init): Likewise.
51475 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
51476 * disk/loopback.c (grub_loop_init): Likewise.
51477 (GRUB_MOD_INIT): Likewise.
51478 * commands/ls.c (grub_ls_init): Likewise.
51479 (GRUB_MOD_INIT): Likewise.
51480 (options): Likewise.
51481 * commands/boot.c (grub_boot_init): Likewise.
51482 (GRUB_MOD_INIT): Likewise.
51483 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
51484 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
51485 (GRUB_MOD_INIT): Likewise.
51486 * commands/cmp.c (grub_cmp_init): Likewise.
51487 (GRUB_MOD_INIT): Likewise.
51488
51489 * normal/arg.c: Use <> instead of "" to include header files.
51490 (SHORT_ARG_HELP): New macro.
51491 (SHORT_ARG_USAGE): Likewise.
51492 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
51493 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
51494 descriptions.
51495 (find_short): Check if C is 'h' or 'u' explicitly.
51496 (grub_arg_show_help): Use space characters instead of tabs. Treat
51497 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
51498 are shown with --help and --usage only if they are not used for
51499 the command itself.
51500 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
51501 'h' and 'u'.
51502
51503 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
51504 const into "longarg". Change the type of "shortarg" to int.
51505
f806d18e 515062005-07-17 Yoshinori Okuji <okuji@enbug.org>
51507
51508 * boot/i386/pc/boot.S (boot_drive_check): New label.
51509
51510 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
51511 macro.
51512
51513 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
51514 which do not pass a boot drive correctly. Copied from GRUB Legacy.
51515
e293232b 515162005-07-17 Yoshinori Okuji <okuji@enbug.org>
51517
51518 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
51519 When turning off Gate A20, skip the check and return immediately,
51520 because this is not fatal usually.
51521
ebedfd00 515222005-07-17 Yoshinori Okuji <okuji@enbug.org>
51523
51524 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
51525 be 0x7C00 instead of 0x8000.
51526
51527 * boot/i386/pc/pxeboot.S: Rewritten.
51528
51529 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
51530 EXT_C.
51531 (gate_a20_check_state): Read a byte from 0x108000. Invert the
51532 result.
51533
654fc59f 515342005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
51535
51536 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
51537 robustness. This routine now supports a BIOS call and System
51538 Control Port A to modify the gate A20.
51539
51540 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
51541 Increased to 0x440.
51542
09f9923f 515432005-07-12 Hollis Blanchard <hollis@penguinppc.org>
51544
51545 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
51546 device path and resulting ihandle.
51547 (grub_ofdisk_close): dprintf the ihandle being closed.
51548 (grub_ofdisk_read): dprintf function parameters.
51549 * kern/mm.c (grub_mm_init_region): Likewise.
51550 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
51551 (grub_linux_boot): dprintf the Linux entry point, initrd address and
51552 size, and boot arguments.
51553 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
51554 before loading into memory.
51555 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
51556 before loading into memory.
51557
7ef504d8 515582005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
51559
51560 * kern/mm.c: Added much documentation.
51561 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
51562 8, set to 5 instead of 8.
51563
e0f050c2 515642005-07-10 Yoshinori Okuji <okuji@enbug.org>
51565
51566 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
51567
51568 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
51569 (grub_mkdevicemap_SOURCES): New variable.
51570
51571 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
51572 lib/device.c of GRUB Legacy.
51573
7224189a 515742005-07-10 Yoshinori Okuji <okuji@enbug.org>
51575
51576 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
51577 instead of PATH is NULL.
51578
68c864eb 515792005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
51580
51581 * commands/cmp.c (BUFFER_SIZE): New macro.
51582 (grub_cmd_cmp): Close the right file at the right time. Compare
51583 only data just read. Don't report files of different size as
51584 identical. Dynamically allocate buffers. Move variable
51585 declarations at the beginning of function.
51586
e6f3e614 515872005-07-09 Yoshinori Okuji <okuji@enbug.org>
51588
51589 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
51590 reverse.
51591
f8f1559a 515922004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
51593
51594 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
51595 when backspace is pressed at beginning of line.
51596
39c9d41d 515972005-07-03 Yoshinori Okuji <okuji@enbug.org>
51598
51599 * DISTLIST: Added genfslist.sh.
51600
51601 * normal/main.c (fs_module_list): New variable.
51602 (autoload_fs_module): New function.
51603 (read_fs_list): Likewise.
51604 (grub_normal_execute): Call read_fs_list.
51605
51606 * kern/fs.c (grub_fs_autoload_hook): New variable.
51607 (grub_fs_probe): Added support for auto-loading.
51608
51609 * include/grub/normal.h (struct grub_fs_module_list): New struct.
51610 (grub_fs_module_list_t): New type.
51611
51612 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
51613 (grub_fs_autoload_hook): New prototype.
51614
51615 * genfslist.sh: New file.
f19dbdb7 51616
39c9d41d 51617 * genmk.rb: Added a rule to generate a filesystem list.
51618
121c1d83 516192005-06-30 Marco Gerards <metgerards@student.han.nl>
51620
51621 * configure.ac: Fix the test for cross-compiling.
51622
51623 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
51624 define GRUB_UTIL anymore.
51625
51626 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
51627 so this function works on other systems than just big endian.
51628 (load_modules): Likewise.
51629 (add_segments): Likewise.
51630
e75d76e1 516312005-06-23 Hollis Blanchard <hollis@penguinppc.org>
51632
51633 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
51634 contains `l' modifier, get a long from va_arg().
51635
50b5a0a7 516362005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
51637
51638 * kern/mm.c (grub_free): If the next free block which is being
51639 merged is the first free block, set the first block to the block
51640 being freed.
51641 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
51642
89371b20 516432005-05-08 Hollis Blanchard <hollis@penguinppc.org>
51644
51645 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
51646 `grub_ieee1275_chosen'.
51647
168d6e58 516482005-05-08 Hollis Blanchard <hollis@penguinppc.org>
51649
51650 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
51651 (grub_ieee1275_chosen): New variable.
51652 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
51653 `chosen'.
51654 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
51655 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
51656 Rename first argument to `phandle' for consistency.
51657 (grub_ieee1275_get_property_length): Likewise.
51658 (grub_ieee1275_next_property): Likewise. Change type of first argument
51659 to grub_ieee1275_phandle_t.
51660 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
51661 Move export next to declaration.
51662 (grub_ieee1275_chosen): New variable.
51663 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
51664 Correct cosmetic typo.
51665 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
51666 `grub_ieee1275_chosen'.
51667 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
51668 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
51669 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
51670 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
51671 `grub_ieee1275_chosen'.
51672
ca5baa3f 516732005-05-10 Hollis Blanchard <hollis@penguinppc.org>
51674
51675 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
51676 /chosen/bootargs.
51677 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
51678 /chosen/bootargs as "variable=value" pairs.
51679
708b345f 516802005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
51681
51682 * include/grub/misc.h (grub_dprintf): New macro.
51683 (grub_real_dprintf): New prototype.
51684 (grub_strword): Likewise.
51685 (grub_iswordseparator): Likewise.
51686 * kern/misc.c (grub_real_dprintf): New function.
51687 (grub_strword): Likewise.
51688 (grub_iswordseparator): Likewise.
51689
f4c5e67c 516902005-04-30 Hollis Blanchard <hollis@penguinppc.org>
51691
51692 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
51693 (roundup): Remove macro.
51694 (grub_ieee1275_flags): Make static.
51695 (grub_ieee1275_realmode): Remove.
51696 (grub_ieee1275_test_flag): New function.
51697 (grub_ieee1275_set_flag): Likewise.
51698 (find_options): Rename to `grub_ieee1275_find_options'; update
51699 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
51700 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
51701 (cmain): New prototype.
51702 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
51703 `grub_ieee1275_flags' directly.
51704 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
51705 machine/biosdisk.h.
51706 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
51707 Don't include grub/machine/init.h.
51708 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
51709 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
51710 Remove prototype.
51711 (grub_ieee1275_realmode): Likewise.
51712 (grub_ieee1275_flag): New enum.
51713 (grub_ieee1275_test_flag): New prototype.
51714 (grub_ieee1275_set_flag): New prototype.
51715 * include/grub/powerpc/ieee1275/init.h: Remove file.
51716 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
51717 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
51718 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
51719 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
51720 comment.
51721 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
51722 `grub_ieee1275_test_flag'.
51723 (grub_ieee1275_encode_devname): Likewise.
51724
ed16607e 517252005-04-21 Hollis Blanchard <hollis@penguinppc.org>
51726
51727 * include/grub/powerpc/ieee1275/ieee1275.h
51728 (grub_ieee1275_encode_devname): New prototype.
51729 (grub_ieee1275_get_filename): Likewise.
51730 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
51731 function.
51732 (grub_set_prefix): Likewise.
51733 (grub_machine_init): Call grub_set_prefix.
51734 * kern/powerpc/ieee1275/openfw.c: Fix typos.
51735 (grub_parse_type): New enum.
51736 (grub_ieee1275_get_devargs): New function.
51737 (grub_ieee1275_get_devname): Likewise.
51738 (grub_ieee1275_parse_args): Likewise.
51739 (grub_ieee1275_get_filename): Likewise.
51740 (grub_ieee1275_encode_devname): Likewise.
51741
be369920 517422005-03-30 Marco Gerards <metgerards@student.han.nl>
51743
51744 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
51745 `grub_loader_unset'.
51746
a5ce3a4a 517472005-03-26 Hollis Blanchard <hollis@penguinppc.org>
51748
51749 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
51750 instead of grub_ieee1275_interpret.
51751 (grub_halt_init): New function.
51752 (grub_halt_fini): Likewise.
51753 (GRUB_MOD_INIT): Correct message grammar.
51754 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
51755 instead of grub_ieee1275_interpret.
51756 (grub_reboot_init): New function.
51757 (grub_reboot_fini): Likewise.
51758 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
51759 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
51760 util/i386/pc/misc.c with commands/ieee1275/halt.c,
51761 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
51762 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
51763 function.
51764 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
51765 Add prototype.
51766 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
51767 prototype.
51768 (grub_halt): Likewise.
51769 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
51770 (cmain): Remove __attribute__((unused)).
51771 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
51772 (grub_heap_len): Likewise.
51773 (grub_machine_fini): New function.
51774 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
51775 (grub_halt): Likewise.
51776 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
51777 function.
51778 * util/powerpc/ieee1275/misc.c: New file.
51779
0058f771 517802005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
51781
51782 * DISTLIST: New file.
51783 * gendistlist.sh: Likewise.
f19dbdb7 51784
0058f771 51785 * Makefile.in (COMMON_DISTFILES): Removed.
51786 (BOOT_DISTFILES): Likewise.
51787 (CONF_DISTFILES): Likewise.
51788 (DISK_DISTFILES): Likewise.
51789 (FS_DISTFILES): Likewise.
51790 (INCLUDE_DISTFILES): Likewise.
51791 (KERN_DISTFILES): Likewise.
51792 (LOADER_DISTFILES): Likewise.
51793 (TERM_DISTFILES): Likewise.
51794 (UTIL_DISTFILES): Likewise.
51795 (DISTFILES): Likewise.
51796 (uninstall): Uninstall files in $(pkgdata_DATA).
51797 (DISTLIST): New target.
51798 (distdir): Use the contents of the file DISTLIST to get a list of
51799 distributed files.
51800
46b3b8a5 518012005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
51802
51803 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
51804 descriptor. This is ported from GRUB Legacy.
51805
51806 * gencmdlist.sh: Added an extra semicolon to make it work with
51807 old sed versions. Reported by Robert Bihlmeyer
51808 <robbe@orcus.priv.at>.
51809
5822ff87 518102005-03-08 Yoshinori Okuji <okuji@enbug.org>
51811
51812 Automatic loading of commands is supported.
f19dbdb7 51813
5822ff87 51814 * normal/main.c (read_command_list): New function.
51815 (grub_normal_execute): Call read_command_list.
51816
51817 * normal/command.c (grub_register_command): Return zero or CMD.
51818 Allocate CMD->NAME from the heap.
51819 Initialize CMD->MODULE_NAME to zero.
51820 Find the same name as well. If the same command is found and it is
51821 a dummy command, overwrite members. If it is not a dummy command,
51822 return zero.
51823 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
51824 (grub_command_find): If a dummy command is found, load a module
51825 and retry to find a command only once.
51826
51827 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
51828 make sure that each command is loaded.
51829
51830 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
51831 macro.
51832 (struct grub_command): Remove const from the member `name'.
51833 Add a new member `module_name'.
51834 (grub_register_command): Return grub_command_t.
51835
51836 * commands/help.c (grub_cmd_help): Call grub_command_find to make
51837 sure that each command is loaded.
51838
51839 * genmk.rb (PModule::rule): Specify a module name without the
51840 suffix ".mod" to gencmdlist.sh.
51841
7b1f4b57 518422005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
51843
51844 * gencmdlist.sh: New file.
f19dbdb7 51845
7b1f4b57 51846 * genmk.rb (PModule::rule): Generate a rule for a command list.
51847 Clean command.lst.
51848 Generate command.lst from $(COMMANDFILES).
51849
51850 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
51851 (DATA): Added $(pkgdata_DATA).
51852 (install-local): Install files in $(pkgdata_DATA).
51853
062aaf39 518542005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
51855
51856 * term/i386/pc/vga.c (debug_command): Removed.
51857 (GRUB_MOD_INIT): Do not register the command "debug".
51858
51859 From Hollis Blanchard:
51860 * commands/configfile.c: New file.
51861 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
51862 commands/configfile.c.
51863 (pkgdata_MODULES): Added configfile.mod.
51864 (configfile_mod_SOURCES): New variable.
51865 (configfile_mod_CFLAGS): Likewise.
51866 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
51867 commands/configfile.c.
51868 (pkgdata_MODULES): Added configfile.mod.
51869 (configfile_mod_SOURCES): New variable.
51870 (configfile_mod_CFLAGS): Likewise.
51871 * util/grub-emu.c (main): Call grub_configfile_init and
51872 grub_configfile_fini.
51873 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
51874 prototype.
51875 [GRUB_UTIL] (grub_configfile_fini): Likewise.
f19dbdb7 51876
cee01aa6 518772005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
51878
51879 * normal/arg.c (grub_arg_show_help): Do not show the bug report
51880 address.
51881
51882 * commands/help.c (grub_cmd_help): Do not print newlines after
51883 the last command in print_command_help.
51884
93f3a1d8 518852005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
51886
51887 * commands/default.h: New file.
51888 * commands/timeout.h: Likewise.
51889 * normal/context.c: Likewise.
f19dbdb7 51890
93f3a1d8 51891 * util/misc.c: Do not include sys/times.h.
51892 Include sys/time.h and grub/machine/time.h.
51893 (grub_get_rtc): Rewritten with gettimeofday.
51894
51895 * util/grub-emu.c (main): Call grub_default_init and
51896 grub_timeout_init before grub_normal_init, and call
51897 grub_timeout_fini and grub_default_fini after grub_main.
51898
51899 * util/console.c (grub_ncurses_checkkey): Return the read
51900 character or -1.
51901
51902 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
51903 timeouts.
51904
51905 * normal/main.c (read_config_file): Push MENU. If this fails,
51906 print an error and wait for a user input.
51907 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
51908 If a menu is empty or an error occurs, pop MENU.
51909 (grub_normal_execute): Pop and free MENU after grub_menu_run
51910 returns.
51911
51912 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
51913
51914 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
51915 include time.h.
51916 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
51917 without GRUB_UTIL.
51918 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
51919 time.h.
51920 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
51921 without GRUB_UTIL.
51922
51923 * include/grub/normal.h (struct grub_menu_list): New struct.
51924 (grub_menu_list_t): New type.
51925 (struct grub_context): New struct.
51926 (grub_context_t): New type.
51927 (grub_register_command): Got rid of EXPORT_FUNC.
51928 (grub_unregister_command): Likewise.
51929 (grub_context_get): New prototype.
51930 (grub_context_get_current_menu): Likewise.
51931 (grub_context_push_menu): Likewise.
51932 (grub_context_pop_menu): Likewise.
51933 [GRUB_UTIL] (grub_default_init): Likewise.
51934 [GRUB_UTIL] (grub_default_fini): Likewise.
51935 [GRUB_UTIL] (grub_timeout_init): Likewise.
51936 [GRUB_UTIL] (grub_timeout_fini): Likewise.
51937
51938 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
51939 commands/timeout.c and normal/context.c.
51940 (pkgdata_MODULES): Added default.mod and timeout.mod.
51941 (normal_mod_SOURCES): Added normal/context.c.
51942 (default_mod_SOURCES): New variable.
51943 (default_mod_CFLAGS): Likewise.
51944 (timeout_mod_SOURCES): Likewise.
51945 (timeout_mod_CFLAGS): Likewise.
51946 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
51947 conf/i386-pc.rmk.
51948 (pkgdata_MODULES): Added default.mod and timeout.mod.
51949 (normal_mod_SOURCES): Added normal/context.c.
51950 (default_mod_SOURCES): New variable.
51951 (default_mod_CFLAGS): Likewise.
51952 (timeout_mod_SOURCES): Likewise.
51953 (timeout_mod_CFLAGS): Likewise.
51954
51955 * Makefile.in (all-local): Added $(MKFILES).
51956
4ed2e1dd 519572005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
51958
51959 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
51960 (grub_emu_SOURCES): Likewise.
51961 (pkgdata_MODULES): Add `sun.mod'.
51962 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
51963 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51964 `partmap/sun.c'.
51965 (pkgdata_MODULES): Add `sun.mod'.
51966 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
51967 * include/grub/partition.h (grub_sun_partition_map_init): New
51968 prototype.
51969 (grub_sun_partition_map_fini): Likewise.
51970 * partmap/sun.c: New file.
51971 * util/grub-emu.c (main): Initialize and de-initialize the sun
51972 partitionmap support.
51973
4d4e372e 519742005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
51975
51976 This implements an Emacs-like menu entry editor.
f19dbdb7 51977
4d4e372e 51978 * normal/menu_entry.c: New file.
f19dbdb7 51979
4d4e372e 51980 * util/console.c (grub_ncurses_putchar): Translate some Unicode
51981 characters to ASCII.
51982 (saved_char): New variable.
51983 (grub_ncurses_checkkey): Rewritten completely.
51984 (grub_ncurses_getkey): Likewise.
51985 (grub_ncurses_init): Call raw instead of cbreak.
51986
51987 * normal/menu.c (print_entry): Do not put a space.
51988 (init_page): Renamed to ...
51989 (grub_menu_init_page): ... this. All callers changed.
51990 (edit_menu_entry): Removed.
51991 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
51992
51993 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
51994
51995 * kern/misc.c (grub_vprintf): Call grub_refresh.
51996
51997 * normal/menu.c (DISP_LEFT): Renamed to ...
51998 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
51999 * normal/menu.c (DISP_UP): Renamed to ...
52000 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
52001 * normal/menu.c (DISP_RIGHT): Renamed to ...
52002 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
52003 * normal/menu.c (DISP_DOWN): Renamed to ...
52004 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
52005 * normal/menu.c (DISP_HLINE): Renamed to ...
52006 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
52007 * normal/menu.c (DISP_VLINE): Renamed to ...
52008 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
52009 * normal/menu.c (DISP_UL): Renamed to ...
52010 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
52011 * normal/menu.c (DISP_UR): Renamed to ...
52012 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
52013 * normal/menu.c (DISP_LL): Renamed to ...
52014 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
52015 * normal/menu.c (DISP_LR): Renamed to ...
52016 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
52017 * normal/menu.c (TERM_WIDTH): Renamed to ...
52018 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
52019 * normal/menu.c (TERM_HEIGHT): Renamed to ...
52020 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
52021 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
52022 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
52023 * normal/menu.c (TERM_MARGIN): Renamed to ...
52024 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
52025 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
52026 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
52027 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
52028 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
52029 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
52030 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
52031 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
52032 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
52033 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
52034 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
52035 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
52036 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
52037 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
52038 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
52039 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
52040 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
52041 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
52042 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
52043 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
52044 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
52045 All callers changed.
52046
52047 * include/grub/normal.h: New prototype.
52048
52049 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
52050 normal/menu_entry.c.
52051 (normal_mod_SOURCES): Likewise.
52052 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
52053 (normal_mod_SOURCES): Likewise.
52054
e6b92c8a 520552005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
52056
52057 * include/grub/normal.h (grub_halt_init): New prototype.
52058 (grub_halt_fini): Likewise.
52059 (grub_reboot_init): Likewise.
52060 (grub_reboot_fini): Likewise.
52061
52062 * util/grub-emu.c: Include signal.h.
52063 (main_env): New global variable.
52064 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
52065 catch C-c.
52066 (grub_machine_fini): New function.
52067 (main): Call grub_halt_init and grub_reboot_init before
52068 grub_main, and grub_reboot_fini and grub_halt_fini after it.
52069 Call setjmp with MAIN_ENV to go back afterwards.
52070 Call grub_machine_fini right before return.
52071
52072 * include/grub/util/misc.h: Include setjmp.h.
52073 (main_env): New prototype.
52074
52075 * include/grub/kernel.h (grub_machine_fini): New prototype.
52076 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
52077 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
52078
52079 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
52080 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
52081 * term/i386/pc/console.c (grub_console_fini): Likewise.
f19dbdb7 52082
e6b92c8a 52083 * util/i386/pc/misc.c: New file.
f19dbdb7 52084
e6b92c8a 52085 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
52086 util/i386/pc/misc.c, commands/i386/pc/halt.c and
52087 commands/i386/pc/reboot.c.
52088
c642636f 520892005-02-14 Guillem Jover <guillem@hadrons.org>
52090
52091 * include/grub/dl.h (grub_dl_check_header): New prototype.
52092 (grub_arch_dl_check_header): Change return type to grub_err_t,
52093 remove size parameter and export function. Update all callers.
52094 * kern/dl.c (grub_dl_check_header): New function.
52095 (grub_dl_load_core): Use `grub_dl_check_header' instead of
52096 `grub_arch_dl_check_header'. Check ELF type. Check if sections
52097 are inside the core.
52098 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
52099 independent ELF header checks.
52100 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
52101 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
52102 `grub_dl_check_header' instead of explicit checks. Check for the
52103 ELF type.
52104 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
52105 `grub_dl_check_header' instead of explicit checks. Remove arch
52106 specific ELF header checks.
52107
e6b92c8a 52108 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
52109 argument SIZE.
52110
5eabe94b 521112005-02-13 Hollis Blanchard <hollis@penguinppc.org>
52112
52113 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
52114 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
52115
1b14a681 521162005-02-12 Hollis Blanchard <hollis@penguinppc.org>
52117
52118 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
f19dbdb7 52119 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
1b14a681 52120 (part_map_iterate): Clear `grub_errno' and return 0 if
f19dbdb7 52121 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
1b14a681 52122 * partmap/amiga.c (amiga_partition_map_iterate): Return
52123 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
52124 * partmap/apple.c (apple_partition_map_iterate): Likewise.
52125
aca108aa 521262005-02-01 Guillem Jover <guillem@hadrons.org>
52127
52128 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
52129 help info.
52130
c9f9c556 521312005-01-31 Marco Gerards <metgerards@student.han.nl>
52132
52133 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
52134 Removed prototype.
52135 (grub_rescue_cmd_linux): New prototype.
52136 (grub_rescue_cmd_initrd): Likewise.
52137 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
52138 `bi_rec'.
52139 (grub_linux_release_mem): Release the memory for the initrd.
52140 (grub_load_linux): Renamed from this...
52141 (grub_rescue_cmd_linux): ...To this. Changed all callers.
52142 Changed `entry' not to be static. Loop over memory regions to
52143 find another one when the default fails.
52144 (grub_rescue_cmd_initrd): New function.
52145 (grub_linux_init): Remove function.
52146 (grub_linux_fini): Likewise.
52147 (GRUB_MOD_INIT): Register `initrd'.
52148 (GRUB_MOD_FINI): Unregister `initrd'.
52149 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
52150 Function removed.
52151 (grub_linux_normal_fini): Likewise.
52152 (GRUB_MOD_INIT): Register `initrd'.
52153 (GRUB_MOD_FINI): Unregister `initrd'.
52154
990cf3aa 521552005-01-31 Marco Gerards <metgerards@student.han.nl>
52156
52157 * commands/help.c: New file.
52158 * normal/arg.c (show_help): Renamed to...
52159 (grub_arg_show_help): ... this.
52160 * commands/i386/pc/halt.c: New file.
52161 * commands/i386/pc/reboot.c: Likewise.
52162 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
52163 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
52164 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
52165 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
52166 variables.
52167 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
52168 `commands/help.c'.
52169 (pkgdata_MODULES): Add `help.mod'.
52170 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
52171 * grub/i386/pc/init.h (grub_reboot): New prototype.
52172 (grub_halt): Likewise.
52173 * include/grub/normal.h (grub_arg_show_help): New prototype.
52174 (grub_help_init): Likewise.
52175 (grub_help_fini): Likewise.
52176 * util/grub-emu.c (main): Initialize and deinitialize the help
52177 command.
52178
52179 * normal/cmdline.c (grub_cmdline_get): Doc fix.
52180
52181 * normal/command.c (grub_command_init): Fixed the description of
52182 the `set' and `unset' commands.
52183
521842005-01-31 Marco Gerards <metgerards@student.han.nl>
0f79cdc1 52185
52186 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
52187 function.
52188 * commands/ieee1275/halt.c: New file.
52189 * commands/ieee1275/reboot.c: Likewise.
52190 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
52191 `__attribute__ ((unused))'. Some GCS related fixed.
52192 (grub_suspend_init) [GRUB_UTIL]: Function removed.
52193 (grub_suspend_fini): Likewise.
52194 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
52195 and `halt.mod'.
52196 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
52197 (halt_mod_CFLAGS): New variables.
52198 * include/grub/powerpc/ieee1275/ieee1275.h
52199 (grub_ieee1275_interpret): New prototype.
52200
1ab09cc7 522012005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
52202
52203 * include/grub/misc.h (memmove): New prototype.
52204 (memcpy): Likewise.
52205
8b8cbdb2 522062005-01-22 Hollis Blanchard <hollis@penguinppc.org>
52207
52208 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
52209 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
52210
e3741a27 522112005-01-22 Marco Gerards <metgerards@student.han.nl>
52212
52213 * kern/misc.c (grub_strndup): Function rewritten.
52214
776bd780 522152005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
52216
52217 * normal/menu.c (TERM_WIDTH): Macro redefined.
52218 (TERM_TOP_BORDER_Y): Likewise.
52219 (draw_border): Replaced while-loop by a for-loop. Make the number
52220 of lines consistent with the number of lines displayed in
52221 print_entries. Added a margin below the rectangle.
52222 (print_entry): Make the entry fit in the rectangle.
52223 (print_entries): Display the scroll arrows next to the right
52224 border.
52225
78026bce 522262005-01-21 Marco Gerards <metgerards@student.han.nl>
52227
52228 * fs/minix.c (grub_minix_find_file): Reserve more space for
52229 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
52230 `grub_strncpy' to copy `path' into it.
52231
67bbaf0f 522322005-01-21 Marco Gerards <metgerards@student.han.nl>
52233
52234 Add the loopback device, a device via which files can be accessed
52235 as devices.
f19dbdb7 52236
67bbaf0f 52237 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
52238 (pkgdata_MODULES): Add loopback.mod.
52239 (loopback_mod_SOURCES): New variable.
52240 (loopback_mod_CFLAGS): Likewise.
52241 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
52242 `disk/loopback.c'.
52243 (pkgdata_MODULES): Add loopback.mod.
52244 (loopback_mod_SOURCES): New variable.
52245 (loopback_mod_CFLAGS): Likewise.
52246 * disk/loopback.c: new file.
52247 * include/grub/normal.h (grub_loop_init): New prototype.
52248 (grub_loop_fini): New prototype.
52249 * util/grub-emu.c (main): Initialize and de-initialize loopback
52250 support.
52251 * include/grub/disk.h (grub_disk_dev_id): Add
52252 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
52253
6f1c18bd 522542005-01-20 Hollis Blanchard <hollis@penguinppc.org>
52255
52256 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
52257 function.
52258 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
52259 (suspend_mod_SOURCES): New variable.
52260 (suspend_mod_CFLAGS): Likewise.
52261 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
52262 New prototype.
52263 * commands/ieee1275/suspend.c: New file.
52264
b38551da 522652005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
52266
52267 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
f19dbdb7 52268 ((unused))' to `__attribute__ ((used))'.
b38551da 52269 (GRUB_MOD_FINI): Likewise.
52270 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
52271 * genmk.rb (PModule): Assign space to common symbols when linking
52272 modules.
52273
777aff39 522742005-01-20 Marco Gerards <metgerards@student.han.nl>
52275
52276 * include/grub/mm.h (grub_mm_init_region): Change the type of the
52277 `unsigned' arguments to `grub_size_t'.
52278 (grub_malloc): Likewise.
52279 (grub_realloc): Likewise.
52280 (grub_memalign): Likewise.
52281 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
52282 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
52283 * util/misc.c (grub_malloc): Likewise.
52284 (grub_realloc): Likewise.
52285 * kern/mm.c (get_header_from_pointer): Change the casts to
52286 `unsigned' into a cast to `grub_size_t'.
52287
52288 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
52289 point to `currnode' when `currnode' is changed.
52290
52291 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
52292 Schottelius <nico-linux@schottelius.org>.
52293
d0ff18e1 522942005-01-09 Hollis Blanchard <hollis@penguinppc.org>
52295
52296 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
52297 (note_path): Remove variable.
52298 (GRUB_IEEE1275_NOTE_NAME): New macro.
52299 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
52300 (grub_ieee1275_note_hdr): New structure.
52301 (grub_ieee1275_note_desc): Likewise.
52302 (grub_ieee1275_note): Likewise.
52303 (load_note): Remove `dir' argument. All callers updated. Remove
52304 `note_img' and `path'. Do not load a file from `note_path'.
52305 Initialize a struct grub_ieee1275_note and write that to `out'.
52306 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
52307
4ca7004c 523082005-01-05 Marco Gerards <metgerards@student.han.nl>
52309
52310 * util/misc.c (grub_util_read_image): Revert last change. It
52311 called `grub_util_read_at', which seeks from the beginning of the
52312 file.
52313
0b412211 523142005-01-04 Hollis Blanchard <hollis@penguinppc.org>
52315
52316 * TODO: Add note about endianness in grub-mkimage.
52317 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
52318 section.
52319 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
52320 (grub_mkimage_SOURCES): New target.
52321 * include/grub/kernel.h (grub_start_addr): Remove variable.
52322 (grub_end_addr): Likewise.
52323 (grub_total_module_size): Likewise.
52324 (grub_kernel_image_size): Likewise.
52325 (GRUB_MODULE_MAGIC): New constant.
52326 (grub_module_info): New structure.
52327 (grub_arch_modules_addr): New prototype.
52328 (grub_get_end_addr): Remove prototype.
52329 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
52330 * include/grub/powerpc/ieee1275/kernel.h: New file.
52331 * include/grub/util/misc.h (grub_util_get_fp_size): New
52332 prototype.
52333 (grub_util_read_at): Likewise.
52334 (grub_util_write_image_at): Likewise.
52335 * kern/main.c (grub_get_end_addr): Remove function.
52336 (grub_load_modules): Call grub_arch_modules_addr instead of using
52337 grub_end_addr. Look for a grub_module_info struct in memory. Use
52338 the grub_module_info fields instead of calling grub_get_end_addr
52339 as loop conditions. Move grub_add_unused_region code here.
52340 (grub_add_unused_region): Remove function.
52341 * kern/i386/pc/init.c: Include grub/cache.h.
52342 (grub_machine_init): Remove call to grub_get_end_addr. Remove
52343 one call to add_mem_region.
52344 (grub_arch_modules_addr): New function.
52345 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
52346 (grub_total_module_size): Likewise.
52347 Include grub/machine/kernel.h.
52348 (grub_arch_modules_addr): New function.
52349 * util/grub-emu.c (grub_end_addr): Remove variable.
52350 (grub_total_module_size): Likewise.
52351 (grub_arch_modules_addr): New function.
52352 * util/misc.c: Include unistd.h.
52353 (grub_util_get_fp_size): New function.
52354 (grub_util_read_at): Likewise.
52355 (grub_util_write_image_at): Likewise.
52356 (grub_util_read_image): Call grub_util_read_at.
52357 (grub_util_write_image): Call grub_util_write_image_at.
52358 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
52359 additional memory in kernel_img for a struct grub_module_info.
52360 Fill in that grub_module_info.
52361 * util/powerpc/ieee1275/grub-mkimage.c: New file.
52362
458786f8 523632005-01-03 Hollis Blanchard <hollis@penguinppc.org>
52364
52365 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
52366 New function.
52367 * include/grub/powerpc/ieee1275/ieee1275.h
52368 (grub_ieee1275_milliseconds): New prototype.
52369 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
52370 Change to 1000.
52371 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
52372 grub_ieee1275_milliseconds.
52373
ac507d1b 523742005-01-03 Hollis Blanchard <hollis@penguinppc.org>
52375
52376 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
52377 variable.
52378 (find_options): New function.
52379 (cmain): Call find_options.
52380 * include/grub/powerpc/ieee1275/ieee1275.h
52381 (grub_ieee1275_realmode): New extern variable.
52382 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
52383 grub_map if grub_ieee1275_realmode is false.
52384
6b8fd1c4 523852004-12-29 Marco Gerards <metgerards@student.han.nl>
52386
52387 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
52388 lines are inserted and make it work like readline. Reported by
52389 Vincent Pelletier <subdino2004@yahoo.fr>.
52390
8514a1e0 523912004-12-28 Marco Gerards <metgerards@student.han.nl>
52392
52393 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
52394
52395 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
52396 `kern/powerpc/cache.S'.
52397
924b6140 523982004-12-27 Marco Gerards <metgerards@student.han.nl>
52399
52400 * genmk.rb: Handle the `Program' class in the main loop. Written
52401 by Johan Rydberg <jrydberg@gnu.org>.
52402 (Program): New class.
52403 (programs): New variable.
52404 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
52405 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
52406 instead of "grub/kernel.h". Include <grub/machine/init.h>.
52407 (help_arch): Function removed.
52408 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
52409 `powerpc/libgcc.h' and `loader.h'.
52410 (pkgdata_PROGRAMS): New variable.
52411 (sbin_UTILITIES): Variable removed.
52412 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
52413 (grubof_SOURCES): Variable re-defined so it only includes the
52414 core functionality.
52415 (grubof_CFLAGS): Remove `-DGRUBOF'.
52416 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
52417 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
52418 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
52419 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
52420 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
52421 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
52422 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
52423 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
52424 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
52425 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
52426 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
52427 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
52428 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
52429 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
52430 (pc_mod_CFLAGS): New variables.
52431 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
52432 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
52433 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
52434 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
52435 Moved from here...
52436 * include/grub/i386/pc/init.h (grub_os_area_addr)
52437 (rub_os_area_size): ... to here.
52438 * include/grub/powerpc/ieee1275/ieee1275.h
52439 (grub_ieee1275_entry_fn): Export symbol.
52440 * include/grub/powerpc/ieee1275/init.h: New file.
52441 * include/grub/powerpc/libgcc.h: Likewise.
52442 * include/grub/cache.h: Likewise.
52443 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
52444 <hollis@penguinppc.org>.
52445 * kern/dl.c: Include <grub/cache.h>.
52446 (grub_dl_flush_cache): New function.
52447 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
52448 for this module.
52449 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
52450 (grub_console_init): Removed prototypes.
52451 (grub_machine_init): Don't initialize the modules anymore.
52452 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
52453 static.
52454 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
52455 Macro undef removed.
52456 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
52457 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
52458 relocation `R_PPC_REL32'. Return an error when the relocation is
52459 unknown.
52460 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
52461 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
52462 * util/misc.c (grub_arch_sync_caches): Likewise.
52463
e4b47e0c 524642004-12-19 Marco Gerards <metgerards@student.han.nl>
52465
52466 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
52467 `symlist.c', add `grubof_symlist.c'.
52468 (symlist.c): Variable removed.
52469 (grubof_HEADERS): Variable added.
52470 (grubof_symlist.c): New target.
52471 (kernel_syms.lst): Use `grubof_HEADERS' instead of
52472 `kernel_img_HEADERS'.
52473 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
52474 * kern/powerpc/dl.c: New file.
52475 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
52476 Function removed.
52477 (grub_arch_dl_relocate_symbols): Likewise.
52478 (grub_register_exported_symbols): Likewise.
52479
4ceb3636 524802004-12-13 Marco Gerards <metgerards@student.han.nl>
52481
52482 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
52483 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
52484 to fail instead. Reported by Vincent Pelletier
52485 <subdino2004@yahoo.fr>.
52486
52487 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
52488 it is not allocated. Reported by Vincent Pelletier
52489 <subdino2004@yahoo.fr>.
52490
52491 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
52492 output so the output looks better.
f19dbdb7 52493
3f1578fe 524942004-12-04 Marco Gerards <metgerards@student.han.nl>
52495
52496 Modulize the partition map support and add support for the amiga
52497 partition map.
f19dbdb7 52498
3f1578fe 52499 * commands/ls.c: Include <grub/partition.h> instead of
52500 <grub/machine/partition.h>.
52501 * kern/disk.c: Likewise.
52502 * kern/rescue.c: Likewise.
52503 * loader/i386/pc/chainloader.c: Likewise.
52504 * normal/cmdline.c: Likewise.
52505 * kern/powerpc/ieee1275/init.c: Likewise.
52506 (grub_machine_init): Call `grub_pc_partition_map_init',
52507 `grub_amiga_partition_map_init' and
52508 `grub_apple_partition_map_init'.
52509 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
52510 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
52511 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
52512 `partition.h' and `pc_partition.h'.
52513 (grub_setup_SOURCES): Remove
52514 `disk/i386/pc/partition.c'. Add `kern/partition.c',
52515 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
52516 (grub_emu_SOURCES): Likewise.
52517 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
52518 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
52519 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
52520 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
52521 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
52522 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
52523 (grubof_SOURCES): Likewise.
52524 * disk/i386/pc/partition.c: File removed.
52525 * disk/powerpc/ieee1275/partition.c: Likewise.
52526 * include/grub/powerpc/ieee1275/partition.h: Likewise.
52527 * include/grub/i386/pc/partition.h: Likewise.
52528 * kern/partition.c: New file.
52529 * partmap/amiga.c: Likewise.
52530 * partmap/apple.c: Likewise.
52531 * partmap/pc.c: Likewise.
52532 * include/grub/partition.h: Likewise..
52533 * include/grub/pc_partition.h: Likewise.
52534 * util/grub-emu.c: Include <grub/partition.h> instead of
52535 <grub/machine/partition.h>.
52536 (main): Call `grub_pc_partition_map_init',
52537 `grub_amiga_partition_map_init' and
52538 `grub_apple_partition_map_init' and deinitialize afterwards.
52539 * util/i386/pc/biosdisk.c: Include `#include
52540 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
52541 `<grub/machine/partition.h>'.
52542 * util/i386/pc/grub-setup.c: Likewise.
52543 * util/i386/pc/biosdisk.c: Likewise.
52544 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
52545 partition information in case of a PC partition.
52546 * util/i386/pc/grub-setup.c: Include `#include
52547 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
52548 `<grub/machine/partition.h>'.
52549 (setup): Only access the PC specific partition information in case
52550 of a PC partition.
52551
0ef4ced9 525522004-11-17 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 52553
0ef4ced9 52554 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
52555 (grub_longjmp): Likewise.
52556 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
52557 20.
52558 * normal/powerpc/setjmp.S: New file.
52559 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
52560 `normal/powerpc/setjmp.S'.
52561 (grubof_CFLAGS): Add `-DGRUBOF'.
52562 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
52563 [GRUB_UTIL && !GRUBOF].
f19dbdb7 52564
19950e29 525652004-11-16 Marco Gerards <metgerards@student.han.nl>
52566
52567 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
52568 property named `name'. Correctly handle the error returned by
52569 `grub_ieee1275_finddevice' if a device can not be opened.
52570
a2fea427 525712004-11-02 Hollis Blanchard <hollis@penguinppc.org>
52572
52573 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
52574 `actual' for negativity.
52575 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
52576 kern/fshelp.c.
52577
41ea0ea3 525782004-11-01 Marco Gerards <metgerards@student.han.nl>
52579
52580 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
52581 (PAGE_OFFSET): New macro.
52582 (CRTC_ADDR_PORT): Likewise.
52583 (CRTC_DATA_PORT): Likewise.
52584 (START_ADDR_HIGH_REGISTER): Likewise.
52585 (START_ADDR_LOW_REGISTER): Likewise.
52586 (GRAPHICS_ADDR_PORT): Likewise.
52587 (GRAPHICS_DATA_PORT): Likewise.
52588 (READ_MAP_REGISTER): Likewise.
52589 (INPUT_STATUS1_REGISTER): Likewise.
52590 (INPUT_STATUS1_VERTR_BIT): Likewise.
52591 (page): New variable.
52592 (wait_vretrace): New function.
52593 (set_read_map): Likewise.
52594 (set_start_address): Likewise.
52595 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
52596 the right page.
52597 (check_vga_mem): Take the page into account.
52598 (write_char): Likewise.
52599 (write_cursor): Likewise.
52600 (scroll_up): Likewise. Copy the page to the page that is not
52601 shown and switch between both pages.
52602 (grub_vga_putchar): Fix off by one error.
52603 (grub_vga_cls): Wait for the vertical retrace. Take the page into
52604 account.
52605
ad0bd20b 526062004-11-01 Marco Gerards <metgerards@student.han.nl>
52607
52608 Add support for iso9660 (including rockridge).
f19dbdb7 52609
ad0bd20b 52610 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
52611 (iso9660_mod_SOURCES): New variable.
52612 (iso9660_mod_CFLAGS): Likewise.
52613 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
52614 * include/grub/fs.h (grub_iso9660_init): New prototype.
52615 * util/grub-emu.c (main): Call `grub_iso9660_init'.
52616 * fs/iso9660.c: New file.
52617
52618 * include/grub/misc.h (grub_strncat): New prototype.
52619 * kern/misc.c (grub_strncat): New function.
f19dbdb7 52620
ad0bd20b 52621 * fs/hfs.c (grub_hfs_mount): Translate the error
52622 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
52623 * fs/jfs.c (grub_jfs_mount): Likewise.
52624 * fs/ufs.c (grub_ufs_mount): Likewise.
52625
a5477a59 526262004-10-28 Hollis Blanchard <hollis@penguinppc.org>
52627
52628 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
52629 which initialized BAT registers.
52630 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
52631 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
52632 Move from here...
52633 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
52634 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
52635 ... to here.
52636 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
52637 (grub_mapclaim): Likewise.
52638 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
52639 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
52640 hand.
52641
9304c1f8 526422004-10-19 Hollis Blanchard <hollis@penguinppc.org>
52643
52644 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
52645 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
52646 -ffreestanding and -msoft-float.
52647
86f4ae25 526482004-10-15 Hollis Blanchard <hollis@penguinppc.org>
52649
52650 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
52651 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
52652 set in grub_ieee1275_flags.
52653
38912228 526542004-10-14 Hollis Blanchard <hollis@penguinppc.org>
52655
52656 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
52657 prototype.
52658 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
52659 grub_console_init first.
52660 Change the memory range used for grub_ieee1275_claim and
52661 grub_mm_init_region.
52662 Print an error message if the claim fails.
52663 Include <grub/misc.h>.
52664
d1923dc8 526652004-10-13 Hollis Blanchard <hollis@penguinppc.org>
52666
52667 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
52668 Call grub_children_iterate for device nodes of type `scsi',
52669 `ide', or `ata'.
52670 (grub_ofdisk_open): Remove manual device alias resolution.
52671 Fix memory leak when device cannot be opened.
f19dbdb7 52672 * include/grub/powerpc/ieee1275/ieee1275.h
d1923dc8 52673 (grub_children_iterate): New prototype.
52674 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
52675 New function.
52676 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
52677 Return -1 if args.size was -1.
52678
4512e4f3 526792004-10-11 Hollis Blanchard <hollis@penguinppc.org>
52680
52681 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
52682 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
52683 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
52684 Open Firmware's memory for it; claim memory from _start to _end.
52685 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
52686 (_end): New extern.
52687 (_start): Zero BSS from __bss_start to _end.
52688 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
52689 New extern.
52690 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
52691
4d61feb0 526922004-10-11 Hollis Blanchard <hollis@penguinppc.org>
52693
ad0bd20b 52694 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
52695 -1 if args.base was -1.
4d61feb0 52696
026fa2f9 526972004-10-08 Hollis Blanchard <hollis@penguinppc.org>
52698
52699 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
52700 escape sequence instead of a literal ^L. Also call
52701 grub_ofconsole_gotoxy.
52702
9f2220ef 527032004-10-03 Hollis Blanchard <hollis@penguinppc.org>
52704
52705 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
52706 void * arguments to grub_addr_t. All callers updated. Also make
52707 the `result' argument optional.
52708 (grub_ieee1275_release): change void * arguments to grub_addr_t.
52709 All callers updated.
52710
8a572cd7 527112004-09-22 Hollis Blanchard <hollis@penguinppc.org>
52712
52713 * commands/ls.c (grub_ls_list_files): Use the string following the
52714 initial ')', if present, as the filesystem path.
52715 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
52716
52717 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
52718
18aa81f2 527192004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
52720
52721 Make the source code of the menu interface more readable.
f19dbdb7 52722
18aa81f2 52723 * normal/menu.c: Include grub/mm.h.
52724 (TERM_WIDTH): New macro.
52725 (TERM_HEIGHT): Likewise.
52726 (TERM_INFO_HEIGHT): Likewise.
52727 (TERM_MARGIN): Likewise.
52728 (TERM_SCROLL_WIDTH): Likewise.
52729 (TERM_TOP_BORDER_Y): Likewise.
52730 (TERM_LEFT_BORDER_X): Likewise.
52731 (TERM_BORDER_WIDTH): Likewise.
52732 (TERM_MESSAGE_HEIGHT): Likewise.
52733 (TERM_BORDER_HEIGHT): Likewise.
52734 (TERM_NUM_ENTRIES): Likewise.
52735 (TERM_FIRST_ENTRY_Y): Likewise.
52736 (TERM_ENTRY_WIDTH): Likewise.
52737 (TERM_CURSOR_X): Likewise.
52738 (draw_border): Use macros instead of magic numbers.
52739 (print_entry): Likewise.
52740 (print_entries): Likewise.
52741 (run_menu): Likewise. Also, handle the key 'e'.
52742 (run_menu_entry): Ignore empty command lines.
52743 (print_message): Added a new argument EDIT. If EDIT is true,
52744 print a different message.
52745 (init_page): Likewise.
52746 (edit_menu_entry): New function. Not implemented yet.
52747
b47efe30 527482004-09-17 Marco Gerards <metgerards@student.han.nl>
52749
52750 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
52751 can be loaded from normal mode.
f19dbdb7 52752
b47efe30 52753 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
52754 `multiboot.mod'.
52755 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
52756 (multiboot_mod_CFLAGS): New variables.
52757 * loader/i386/pc/linux_normal.c: New file.
f19dbdb7 52758 * loader/i386/pc/multiboot_normal.c: Likewise.
52759
b47efe30 52760 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
52761 attribute `unused'.
f19dbdb7 52762
b47efe30 52763 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
52764 `fdiro' to read the mode information from instead of `diro'.
52765
52766 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
52767 looking up a symlink.
52768
52769 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
52770 macro.
52771 * normal/command.c (grub_command_execute): Don't parse the
52772 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
52773 flags of the command.
52774
52775 * normal/menu.c (grub_menu_run): Fix typo.
52776
da75ac71 527772004-09-14 Hollis Blanchard <hollis@penguinppc.org>
52778
52779 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
52780
52781 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
52782 `y + 1' instead of `y - 1'.
52783
52784 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
f19dbdb7 52785
062b24c2 527862004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
52787
52788 From Hollis Blanchard <hollis@penguinppc.org>:
52789 * kern/misc.c (memmove): New alias for grub_memmove.
52790 (memcmp): New alias for grub_memcmp.
52791 (memset): New alias for grub_memset.
f19dbdb7 52792 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
062b24c2 52793 Change "int handle" to "grub_ieee1275_phandle_t handle".
f19dbdb7 52794 * include/grub/powerpc/ieee1275/ieee1275.h
062b24c2 52795 (grub_ieee1275_get_property): Likewise.
f19dbdb7 52796
8ddad845 527972004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
52798
52799 Added normal mode command `chainloader' as module chain.mod, which
52800 depends on normal.mod and _chain.mod.
f19dbdb7 52801
8ddad845 52802 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
52803 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
52804 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
52805 Deleted prototype.
52806 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
52807 but arguments parsing moved to ...
52808 (grub_chainloader_cmd): ... here. New function.
52809 * include/grub/i386/pc/chainloader.h: New file.
52810 * loader/i386/pc/chainloader_normal.c: Likewise.
52811
2c1f4ce3 528122004-09-11 Marco Gerards <metgerards@student.han.nl>
52813
52814 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
52815 (grub_mkimage_LDFLAGS): Likewise.
52816 (grub_emu_SOURCES): Likewise.
52817 (kernel_img_HEADERS): Added fshelp.h.
52818 * fs/ext2.c: Include <grub/fshelp.h>.
52819 (FILETYPE_REG): New macro.
52820 (FILETYPE_INO_REG): Likewise.
52821 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
52822 Changed all users.
52823 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
52824 all users.
52825 (grub_fshelp_node): New struct.
52826 (grub_ext2_data): Added member `diropen'. Changed member `inode'
52827 to a pointer.
52828 (grub_ext2_get_file_block): Removed function.
52829 (grub_ext2_read_block): New function.
52830 (grub_ext2_read_file): Replaced parameter `data' by `node'.
52831 This function was written.
52832 (grub_ext2_mount): Read the root inode. Create a diropen struct.
52833 (grub_ext2_find_file): Removed function.
52834 (grub_ext2_read_symlink): New function.
52835 (grub_ext2_iterate_dir): Likewise.
52836 (grub_ext2_open): Rewritten.
52837 (grub_ext2_dir): Rewritten.
52838 * include/grub/fshelp.h: New file.
52839 * fs/fshelp.c: Likewise.
52840
3c52136a 528412004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
52842
52843 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
52844 (print_message): Add a missing newline.
52845 (run_menu): Added timeout support.
52846 (run_menu_entry): New local function.
52847 (grub_menu_run): Added support for booting.
52848
52849 * kern/loader.c (grub_loader_is_loaded): New function.
52850
52851 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
52852 (grub_get_rtc): Exported.
52853
52854 * include/grub/i386/pc/time.h: Include grub/symbol.h.
52855 (grub_get_rtc): Exported.
52856
52857 * include/grub/normal.h (struct grub_command_list): Remove
52858 constant from the member `command'.
52859
52860 * include/grub/loader.h (grub_loader_is_loaded): Declared.
52861
52862 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
52863
52864 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
52865
aa033560 528662004-08-28 Marco Gerards <metgerards@student.han.nl>
52867
52868 Add support for the JFS filesystem.
52869
52870 * fs/jfs.c: New file.
52871 * include/grub/fs.h (grub_jfs_init): New prototype.
52872 (grub_jfs_fini): New prototype.
52873 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
52874 (grub_emu_SOURCES): Likewise.
52875 (pkgdata_MODULES): Add jfs.mod.
52876 (jfs_mod_SOURCES): New variable.
52877 (jfs_mod_CFLAGS): Likewise.
52878 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
52879 (grubof_SOURCES): Likewise.
52880 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
52881
52882 * fs/fat.c (grub_fat_find_dir): Convert the filename little
52883 endian to the host endian.
52884 (grub_fat_utf16_to_utf8): Move function from there...
52885 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
fe987087 52886 the endianness of the source string anymore.
aa033560 52887 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
52888
94bc45af 528892004-08-24 Marco Gerards <metgerards@student.han.nl>
52890
52891 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
52892 (grub_boot_fini) [GRUB_UTIL]: Likewise.
52893 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
52894 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
f19dbdb7 52895
94bc45af 52896 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
52897 (grub_hfs_iterate_dir): Make the function static. Add prototypes
52898 for `node_found' and `it_dir'.
52899 (grub_hfs_dir): Add prototype for `dir_hook'.
52900
52901 * fs/minix.c (grub_minix_get_file_block): Add prototype for
52902 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
52903 and `indir32' to silence a gcc warning.
52904
52905 * include/grub/fs.h (grub_hfs_init): New prototype.
52906 (grub_hfs_fini): Likewise.
f19dbdb7 52907
52908
97543f08 529092004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
52910
52911 Each disk device has its own id now. This is useful to make use
52912 of multiple disk devices.
f19dbdb7 52913
97543f08 52914 * include/grub/disk.h (grub_disk_dev_id): New enum.
52915 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
52916 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
52917
52918 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
52919 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
52920
52921 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
52922 GRUB_DISK_DEVICE_OFDISK_ID as an id.
52923
52924 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
52925 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
52926
52927 * include/grub/disk.h (struct grub_disk_dev): Added a new member
52928 "id" which is used by the cache manager.
52929
52930 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
52931 of just "GRUB".
52932
64372eb4 529332004-08-18 Marco Gerards <metgerards@student.han.nl>
52934
52935 * fs/hfs.c: New file.
52936 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
52937 (grub_emu_SOURCES): Likewise.
52938 (pkgdata_MODULES): Add hfs.mod.
52939 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
52940 (grubof_SOURCES): Likewise.
52941 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
52942
52943 * include/grub/misc.h (grub_strncasecmp): Add prototype.
52944 * kern/misc.c (grub_strncasecmp): Add function.
52945
cc61b58f 529462004-08-14 Marco Gerards <metgerards@student.han.nl>
52947
52948 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
52949 with parentheses.
52950
52951 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
52952 (grub_ext2_dir): In case the directory entry type is unknown, read
52953 it from the inode.
52954
0ef123f6 529552004-08-02 Peter Bruin <pjbruin@dds.nl>
52956
52957 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
52958 grub_load_linux instead of grub_rescue_cmd_linux as second
52959 argument of grub_rescue_register_command.
52960
52961 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
52962
a447c5df 529632004-07-27 Marco Gerards <metgerards@student.han.nl>
52964
52965 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
52966 function.
52967 * commands/boot.c: Remove the check for `GRUB_UTIL'.
52968 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
52969 `loader/powerpc/ieee1275/linux.c',
52970 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
52971 * include/grub/powerpc/ieee1275/ieee1275.h
52972 (grub_ieee1275_release): New prototype.
52973 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
52974 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
52975 normal, boot, linux and linux_normal.
52976 * loader/powerpc/ieee1275/linux.c: New file.
52977 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
52978
5a9e3546 529792004-07-12 Marco Gerards <metgerards@student.han.nl>
52980
52981 * normal/arg.c (grub_arg_parse): Correct error handling after
52982 reallocating the argumentlist (check if `argl' is not null instead
52983 of checking if `args' is not null).
52984 * kern/mm.c (grub_realloc): Return the same pointer when using the
52985 same region, instead of returning the header address.
52986
e15199cb 529872004-07-11 Marco Gerards <metgerards@student.han.nl>
52988
52989 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
52990 one block instead of two when looking for the initial partition.
52991 (grub_partition_probe): Initialize the local variable `p' with 0.
52992 Use base 10 for the grub_strtoul call.
52993 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
52994 need for one local variable.
52995 (grub_strtoul): Don't add the new value to `num', instead of that
52996 just assign it.
52997
020616c2 529982004-07-11 Marco Gerards <metgerards@student.han.nl>
52999
53000 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
53001 (pxeboot_img_SOURCES): New variable.
53002 (pxeboot_img_ASFLAGS): Likewise.
53003 (pxeboot_img_LDFLAGS): Likewise.
53004 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
53005 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
53006 <lode_leroy@hotmail.com>.
53007
6c51eb64 530082004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
53009
53010 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
53011 there was no input.
53012
cfb12aff 530132004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
53014
53015 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
53016 the history buffer logic.
53017
6eabba74 530182004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
53019
53020 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
53021 (FILETYPE_INO_SYMLINK): New macros.
53022 (grub_ext2_find_file): Check if the node is a directory using the
53023 inode stat information instead of using the filetype in the
53024 dirent. Exclude the first character of an absolute symlink.
53025 (grub_ext2_dir): Mask out the filetype part of the mode member of
53026 the inode.
53027
66e19ef8 530282004-05-24 Marco Gerards <metgerards@student.han.nl>
53029
53030 Add support for UFS version 1 and 2. Add support for the minix
53031 filesystem version 1 and 2, both the variants with 14 and 30 long
53032 filenames.
f19dbdb7 53033
66e19ef8 53034 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
53035 fs/minix.c.
53036 (grub_emu_SOURCES): Likewise.
53037 (pkgdata_MODULES): Add ufs.mod and minix.mod.
53038 (ufs_mod_SOURCES): New variable.
53039 (ufs_mod_CFLAGS): Likewise.
53040 (minix_mod_SOURCES): Likewise.
53041 (minix_mod_CFLAGS): Likewise.
53042 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
53043 fs/minix.c.
53044 (grubof_SOURCES): Likewise.
53045 * fs/ufs.c: New file.
53046 * fs/minix.c: New file.
53047 * include/grub/fs.h (grub_ufs_init): New prototype.
53048 (grub_ufs_fini): Likewise.
53049 (grub_minix_init): Likewise.
53050 (grub_minix_fini): Likewise.
53051 * util/grub-emu.c (main): Initialize and deinitialize UFS and
53052 minix fs.
53053
cc2e748a 530542004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
53055
53056 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
53057 commands/ls.c, commands/terminal.c, commands/boot.c,
53058 commands/cmp.c and commands/cat.c.
53059 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
53060
53061 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
53062 "env.h"
53063
4b13b216 530642004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
53065
53066 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
53067 and grub_, respectively. Because the conversion is trivial and
53068 mechanical, I omit the details here. Please refer to the CVS
53069 if you need more information.
53070
6a142551 530712004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
53072
53073 * include/pupa: Renamed to ...
53074 * include/grub: ... this.
53075 * util/i386/pc/pupa-mkimage.c: Renamed to ...
53076 * util/i386/pc/grub-mkimage.c: ... this.
53077 * util/i386/pc/pupa-setup.c: Renamed to ...
53078 * util/i386/pc/grub-setup.c: ... this.
53079 * util/pupa-emu.c: Renamed to ...
53080 * util/grub-emu.c: ... this.
53081
e56cdf21 530822004-03-29 Marco Gerards <metgerards@student.han.nl>
53083
53084 Add support for the newworld apple macintosh (PPC). This has been
53085 tested on the powerbook 2000 only. It only adds support for
53086 generic ieee1275 functions, console and disk support. This should
53087 be easy to port to other architectures with support for Open
53088 Firmware.
f19dbdb7 53089
e56cdf21 53090 * configure.ac: Accept the powerpc as host_cpu. In the case of
53091 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
53092 specific tests are only executed while building for the i386.
53093 Inverse test for crosscompile.
53094 * genmk.rb (Utility): Allow assembler files.
53095 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
53096 * conf/powerpc-ieee1275.rmk: New file.
53097 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
53098 * disk/powerpc/ieee1275/partition.c: Likewise.
53099 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
53100 * include/pupa/powerpc/ieee1275/console.h: Likewise.
53101 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
53102 * include/pupa/powerpc/ieee1275/time.h: Likewise.
53103 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
53104 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
53105 * include/pupa/powerpc/ieee1275/loader.h
53106 * include/pupa/powerpc/setjmp.h: Likewise.
53107 * include/pupa/powerpc/types.h: Likewise.
53108 * kern/powerpc/ieee1275/init.c: Likewise.
53109 * kern/powerpc/ieee1275/openfw.c: Likewise.
53110 * term/powerpc/ieee1275/ofconsole.c: Likewise.
53111
53112 These files were written by Johan Rydberg
53113 (jrydberg@night.trouble.net) and I only modified them slightly.
f19dbdb7 53114
e56cdf21 53115 * boot/powerpc/ieee1275/cmain.c: New file.
53116 * boot/powerpc/ieee1275/crt0.S: Likewise.
53117 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
53118 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
53119
8c8cc205 531202004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
53121
53122 * Makefile.in: Update copyright.
53123 * genmodsrc.sh: Likewise.
53124 * gensymlist.sh: Likewise.
53125 * term/i386/pc/vga.c: Indent correctly.
53126
53127 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
53128 bugreporting address.
53129 * util/i386/pc/pupa-setup.c (usage): Likewise,
53130 (main): Call pupa_ext2_init and pupa_ext2_fini.
53131
f19dbdb7 53132 * fs/fat.c (log2): Renamed to ...
8c8cc205 53133 (fat_log2): ... this.
53134 All callers changed.
53135 * kern/misc.c (memcpy): Alias to pupa_memmove.
53136 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
53137 lvalue cast.
53138 * util/console.c (pupa_ncurses_fini): Return 0.
53139
53140 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
53141 Move fail label here.
53142 [__GNU__]: Don't warn when using stat.
53143 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
53144 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
53145 long int. Use strtol instead of strtoul.
f19dbdb7 53146
db1771cf 531472004-03-14 Marco Gerards <metgerards@student.han.nl>
53148
53149 * commands/boot.c: New file.
53150 * commands/cat.c: Likewise.
53151 * commands/cmp.c: Likewise.
53152 * commands/ls.c: Likewise.
53153 * commands/terminal.c: Likewise.
53154 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
53155 (pupa_register_command): Changed interface to match the new
53156 argument parser.
53157 (pupa_command_execute): Changed (almost rewritten) so it uses
53158 pupa_split_command. Added support for setting variables using the
53159 syntax `foo=bar'.
53160 (rescue_command): Changed to work with the new argument parser.
53161 (terminal_command): Moved from here to commands/terminal.c.
53162 (set_command): New function.
53163 (unset_command): New function.
53164 (insmod_command): New function.
53165 (rmmod_command): New function.
53166 (lsmod_command): New function.
53167 (pupa_command_init): Don't initialize the command terminal
53168 anymore. Initialize the commands set, unset, insmod, rmmod and
53169 lsmod.
53170 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
53171 (kernel_img_HEADERS): Add arg.h and env.h.
53172 (pupa_mkimage_LDFLAGS): Add kern/env.c.
53173 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
53174 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
53175 normal/arg.c.
53176 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
53177 terminal.mod.
53178 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
53179 (boot_mod_SOURCES): New variable.
53180 (terminal_mod_SOURCES): Likewise.
53181 (ls_mod_SOURCES): Likewise.
53182 (cmp_mod_SOURCES): Likewise.
53183 (cat_mod_SOURCES): Likewise.
53184
53185 * normal/arg.c: New file.
53186 * kern/env.c: Likewise.
53187 * include/pupa/arg.h: Likewise.
53188 * include/pupa/env.h: Likewise.
53189 * font/manager.c (font_command): Changed to match argument parsing
53190 interface changes.
53191 (PUPA_MOD_INIT): Likewise.
53192 * hello/hello.c (pupa_cmd_hello): Likewise.
53193 (PUPA_MOD_INIT): Likewise.
53194 * include/pupa/disk.h: Include <pupa/device.h>.
53195 (pupa_print_partinfo): New prototype.
53196 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
53197 (pupa_dl_get_prefix): Likewise.
53198 * include/pupa/misc.h: Include <pupa/err.h>.
53199 (pupa_isgraph): New prototype.
53200 (pupa_isdigit): Likewise.
53201 (pupa_split_cmdline): Likewise.
53202 * include/pupa/normal.h: Include <pupa/arg.h>.
53203 (pupa_command): Changed the prototype of the member `func' to
53204 match the argument parsing interface. Added member `options'.
53205 (pupa_register_command): Updated to match function.
53206 (pupa_arg_parse): New prototype.
53207 (pupa_hello_init) [PUPA_UTIL]: New prototype.
53208 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
53209 (pupa_ls_init) [PUPA_UTIL]: Likewise.
53210 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
53211 (pupa_cat_init) [PUPA_UTIL]: Likewise.
53212 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
53213 (pupa_boot_init) [PUPA_UTIL]: Likewise.
53214 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
53215 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
53216 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
53217 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
53218 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
53219 * kern/disk.c: Include <pupa/file.h>.
53220 (pupa_print_partinfo): New function.
53221 * kern/dl.c: Include <pupa/env.h>.
53222 (pupa_dl_dir): Variable removed.
53223 (pupa_dl_load): Use the environment variable `prefix' instead of
53224 the variable pupa_dl_dir.
53225 (pupa_dl_set_prefix): Function removed.
53226 (pupa_dl_get_prefix): Likewise.
53227 * kern/i386/pc/init.c: Include <pupa/env.h>.
53228 (pupa_machine_init): Use the environment variable `prefix' instead of
53229 using pupa_dl_set_prefix to set the prefix.
53230 * kern/main.c: Include <pupa/env.h>.
53231 (pupa_set_root_dev): Use the environment variable `prefix' instead of
53232 using pupa_dl_get_prefix to get the prefix.
53233 * kern/misc.c: Include <pupa/env.h>.
53234 (pupa_isdigit): New function.
53235 (pupa_isgraph): Likewise.
53236 (pupa_ftoa): Likewise.
53237 (pupa_vsprintf): Added support for printing values of the type
53238 `double'. Make it possible to format variable output when using
53239 formatting like `%1.2%f'.
53240 (pupa_split_cmdline): New function.
53241 * kern/rescue.c: Include <pupa/env.h>.
53242 (next_word): Removed function.
53243 (pupa_rescue_cmd_prefix): Likewise.
53244 (pupa_rescue_cmd_set): New function.
53245 (pupa_rescue_cmd_unset): New function.
53246 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
53247 split the command line instead of splitting it here. Added
53248 support for setting variables using the syntax `foo=bar'. Don't
53249 initialize the prefix command anymore. Initialized the set and
53250 unset commands.
53251 * normal/cmdline.c: Include <pupa/env.h>.
53252 (pupa_tab_complete): Added prototypes for print_simple_completion,
53253 print_partition_completion, add_completion, iterate_commands,
53254 iterate_dev, iterate_part and iterate_dir. Moved code to print
53255 partition information from here to kern/disk.c.
fe6b695a 53256 (pupa_cmdline_run): Don't check if the function exists anymore.
db1771cf 53257 * normal/main.c: Include <pupa/env.h>.
53258 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
53259 instead of using pupa_dl_get_prefix to get the prefix.
53260 * term/i386/pc/vga.c: Include <pupa/arg.h>.
53261 (check_vga_mem): Cast pointers to `void *' to silence a gcc
53262 warning.
53263 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
53264 (pupa_vga_setcolor): Declare unused variables with `__attribute__
53265 ((unused))' to silence a gcc warning.
53266 (pupa_vga_setcolor): Likewise.
53267 (debug_command): Changed to match argument parsing
53268 interface changes.
53269 * util/pupa-emu.c: Include <pupa/env.h>.
53270 (options): Added 0's for unused fields to silence a gcc warning.
53271 (argp): Likewise.
53272 (main): Use the environment variable `prefix' instead of using
53273 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
53274 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
53275 and terminal.
53276
53277 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
53278 * util/misc.c: Include <malloc.h>.
53279 (pupa_malloc): Rewritten so errors are correctly reported.
53280 (pupa_realloc): Likewise.
53281 (pupa_memalign): Likewise.
53282 (pupa_mm_init_region): Declare unused variables with
53283 `__attribute__ ((unused))' to silence a gcc warning.
53284 * normal/i386/setjmp.S: Remove tab at the end of the file to
53285 silence a gcc warning.
53286 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
53287 variables with `__attribute__ ((unused))' to silence a gcc
53288 warning.
53289 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
53290 local variable i unsigned to silence a gcc warning.
53291
53292 * kern/term.c: Include <pupa/misc.h>.
53293 (pupa_more_lines): New variable.
53294 (pupa_more): Likewise.
53295 (pupa_putcode): When the pager is active pause at the end of every
53296 screen.
53297 (pupa_set_more): New function.
53298 * include/pupa/term.h (pupa_set_more): New prototype.
53299
53300
3b1139cb 533012004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
53302
53303 Now this project is GRUB 2 rather than PUPA. The location of
53304 the CVS repository was moved to GRUB's.
f19dbdb7 53305
3b1139cb 53306 * configure.ac: Use bug-grub as the reporting address.
53307 Use GRUB instead of PUPA.
53308 Change the version number to 1.90.
53309
8367695c 533102004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
53311
53312 * genkernsyms.sh: Updated copyright information.
53313 * genmk.rb: Likewise.
53314 * genmodsrc.sh: Likewise.
53315 * gensymlist.sh: Likewise.
53316 * boot/i386/pc/boot.S: Likewise.
53317 * boot/i386/pc/diskboot.S: Likewise.
53318 * disk/i386/pc/biosdisk.c: Likewise.
53319 * disk/i386/pc/partition.c: Likewise.
53320 * font/manager.c: Likewise.
53321 * fs/ext2.c: Likewise.
53322 * fs/fat.c: Likewise.
53323 * include/pupa/boot.h: Likewise.
53324 * include/pupa/device.h: Likewise.
53325 * include/pupa/disk.h: Likewise.
53326 * include/pupa/dl.h: Likewise.
53327 * include/pupa/elf.h: Likewise.
53328 * include/pupa/err.h: Likewise.
53329 * include/pupa/file.h: Likewise.
53330 * include/pupa/font.h: Likewise.
53331 * include/pupa/fs.h: Likewise.
53332 * include/pupa/kernel.h: Likewise.
53333 * include/pupa/loader.h: Likewise.
53334 * include/pupa/misc.h: Likewise.
53335 * include/pupa/mm.h: Likewise.
53336 * include/pupa/net.h: Likewise.
53337 * include/pupa/normal.h: Likewise.
53338 * include/pupa/rescue.h: Likewise.
53339 * include/pupa/setjmp.h: Likewise.
53340 * include/pupa/symbol.h: Likewise.
53341 * include/pupa/term.h: Likewise.
53342 * include/pupa/types.h: Likewise.
53343 * include/pupa/i386/setjmp.h: Likewise.
53344 * include/pupa/i386/types.h: Likewise.
53345 * include/pupa/i386/pc/biosdisk.h: Likewise.
53346 * include/pupa/i386/pc/boot.h: Likewise.
53347 * include/pupa/i386/pc/console.h: Likewise.
53348 * include/pupa/i386/pc/init.h: Likewise.
53349 * include/pupa/i386/pc/kernel.h: Likewise.
53350 * include/pupa/i386/pc/linux.h: Likewise.
53351 * include/pupa/i386/pc/loader.h: Likewise.
53352 * include/pupa/i386/pc/memory.h: Likewise.
53353 * include/pupa/i386/pc/multiboot.h: Likewise.
53354 * include/pupa/i386/pc/partition.h: Likewise.
53355 * include/pupa/i386/pc/time.h: Likewise.
53356 * include/pupa/i386/pc/vga.h: Likewise.
53357 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
53358 * include/pupa/util/getroot.h: Likewise.
53359 * include/pupa/util/misc.h: Likewise.
53360 * include/pupa/util/resolve.h: Likewise.
53361 * kern/device.c: Likewise.
53362 * kern/disk.c: Likewise.
53363 * kern/dl.c: Likewise.
53364 * kern/err.c: Likewise.
53365 * kern/file.c: Likewise.
53366 * kern/fs.c: Likewise.
53367 * kern/loader.c: Likewise.
53368 * kern/main.c: Likewise.
53369 * kern/misc.c: Likewise.
53370 * kern/mm.c: Likewise.
53371 * kern/rescue.c: Likewise.
53372 * kern/term.c: Likewise.
53373 * kern/i386/dl.c: Likewise.
53374 * kern/i386/pc/init.c: Likewise.
53375 * kern/i386/pc/lzo1x.S: Likewise.
53376 * kern/i386/pc/startup.S: Likewise.
53377 * loader/i386/pc/chainloader.c: Likewise.
53378 * loader/i386/pc/linux.c: Likewise.
53379 * loader/i386/pc/multiboot.c: Likewise.
53380 * normal/cmdline.c: Likewise.
53381 * normal/command.c: Likewise.
53382 * normal/main.c: Likewise.
53383 * normal/menu.c: Likewise.
53384 * normal/i386/setjmp.S: Likewise.
53385 * term/i386/pc/console.c: Likewise.
53386 * term/i386/pc/vga.c: Likewise.
53387 * util/console.c: Likewise.
53388 * util/genmoddep.c: Likewise.
53389 * util/misc.c: Likewise.
53390 * util/pupa-emu.c: Likewise.
53391 * util/resolve.c: Likewise.
53392 * util/unifont2pff.rb: Likewise.
53393 * util/i386/pc/biosdisk.c: Likewise.
53394 * util/i386/pc/getroot.c: Likewise.
53395 * util/i386/pc/pupa-mkimage.c: Likewise.
53396 * util/i386/pc/pupa-setup.c: Likewise.
53397
e6eced71 533982004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
53399
53400 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
53401 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
53402 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
53403 reading and reset it after reading.
53404 (pupa_ext2_close): Return PUPA_ERR_NONE.
53405
53406 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
53407 Correct value.
53408 (struct linux_kernel_header): Add kernel_version and
53409 initrd_addr_max.
53410 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
53411 pupa_file_read succeeds.
53412 (pupa_rescue_cmd_initrd): Implement.
53413
5aded270 534142003-12-03 Marco Gerards <metgerards@student.han.nl>
53415
53416 * fs/ext2.c (pupa_ext2_label): New function.
53417 (pupa_ext2_fs): Added label.
53418 * fs/fat.c (pupa_fat_label): New function.
53419 (pupa_fat_fs): Added label.
53420 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
53421
53422 * kern/misc.c (pupa_strndup): New function.
53423 * include/pupa/misc.h (pupa_strndup): New prototype.
53424
53425 * include/pupa/normal.h: Include <pupa/err.h>.
53426 (pupa_set_history): New prototype.
53427 (pupa_iterate_commands): New prototype.
53428 * normal/cmdline.c: Include <pupa/machine/partition.h>,
53429 <pupa/disk.h>, <pupa/file.h>.
53430 (hist_size): New variable.
53431 (hist_lines): Likewise.
53432 (hist_end): Likewise.
53433 (hist_used): Likewise.
53434 (pupa_set_history): New function.
53435 (pupa_history_get): Likewise.
53436 (pupa_history_add): Likewise.
53437 (pupa_history_replace): Likewise.
53438 (pupa_tab_complete): Likewise.
53439 (pupa_cmdline_run): Added tab completion and history buffer. Tab
53440 completion shows partitionnames while completing partitions, this
53441 feature was suggested by Jeff Bailey.
53442 * normal/command.c (pupa_iterate_commands): New function.
53443 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
53444 (pupa_normal_init): Initialize history buffer.
53445 (PUPA_MOD_INIT): Likewise.
53446 (pupa_normal_fini): Free the history buffer.
53447 (PUPA_MOD_FINI): Likewise.
53448
53449 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
53450 key.
53451
53452 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
53453 * configure.ac [i386]: Check for regparam bug.
53454 (NESTED_FUNC_ATTR) [! i386]: Defined.
53455
1f7315a3 534562003-11-17 Marco Gerards <metgerards@student.han.nl>
53457
53458 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
53459 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
53460 (pupa_emu_SOURCES): New variable.
53461 (pupa_emu_LDFLAGS): Likewise.
53462 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
53463 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
53464 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
53465 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
53466 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
53467 (pupa_jmp_buf): New typedef.
53468 (pupa_setjmp) [PUPA_UTIL]: New macro.
53469 (pupa_longjmp) [PUPA_UTIL]: Likewise.
53470 * include/pupa/term.h (struct pupa_term): New member `refresh'.
53471 (pupa_refresh): New prototype.
53472 * include/pupa/util/getroot.h: New file.
53473 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
53474 it.
53475 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
53476 (pupa_rescue_cmd_cat): Likewise.
53477 (pupa_rescue_cmd_ls): Likewise.
53478 (pupa_rescue_cmd_testload): Likewise.
53479 (pupa_rescue_cmd_lsmod): Likewise.
53480 * normal/cmdline.c (pupa_cmdline_get): Likewise.
53481 * normal/menu.c (run_menu): Likewise.
53482 * kern/term.c (pupa_cls): Likewise.
53483 (pupa_refresh): New function.
53484 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
53485 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
53486 * util/console.c: New file.
f19dbdb7 53487
1f7315a3 53488 * util/i386/pc/getroot.c: New file.
53489 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
53490 (pupa_putchar): New function.
53491 (pupa_refresh): Likewise.
53492 (xgetcwd): Function moved to ...
53493 (strip_extra_slashes): Likewise.
53494 (get_prefix): Likewise.
f19dbdb7 53495 * util/i386/pc/getroot.c: ... here.
1f7315a3 53496 (find_root_device): Function moved and renamed to...
53497 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
53498 Changed all callers.
53499 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
53500 and renamed to...
53501 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
53502 Changed all callers.
53503 * util/misc.c (pupa_memalign): New function.
53504 (pupa_mm_init_region): Likewise.
53505 (pupa_register_exported_symbols): Likewise.
53506 (pupa_putchar): Function removed.
53507 * util/pupa-emu.c: New file.
53508
9a5c1ade 535092003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
53510
53511 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
53512 (_multiboot_mod_SOURCES): New variable.
53513 (_multiboot_mod_CFLAGS): Likewise.
53514 * loader/i386/pc/multiboot.c: New file.
53515 * include/pupa/i386/pc/multiboot.h: Likewise.
53516 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
53517 (pupa_multiboot_real_boot): New function.
53518 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
53519 (pupa_multiboot_real_boot): New prototype.
53520 (pupa_rescue_cmd_multiboot): Likewise
53521 (pupa_rescue_cmd_module): Likewise.
53522
53523 * kern/loader.c (pupa_loader_set): Continue when
53524 pupa_loader_unload_func() fails.
53525 (pupa_loader_unset): New function.
53526 * include/pupa/loader.h (pupa_loader_unset): New prototype.
53527
53528 * kern/misc.c (pupa_stpcpy): New function.
53529 * include/pupa/misc.h (pupa_stpcpy): New prototype.
53530
8e72a9c0 535312003-11-12 Marco Gerards <metgerards@student.han.nl>
53532
53533 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
53534 for available extensions.
53535
53536 * include/pupa/i386/pc/time.h: New file.
53537 * kern/disk.c: Include <pupa/machine/time.h>.
53538 (PUPA_CACHE_TIMEOUT): New macro.
53539 (pupa_last_time): New variable.
53540 (pupa_disk_open): Flush the cache when there was a timeout.
53541 (pupa_disk_close): Reset the timer.
53542 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
53543 pupa_currticks.
53544 * util/misc.c: Include <sys/times.h>
53545 (pupa_get_rtc): New function.
53546
c4adbd32 535472003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
53548
53549 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
53550 as blocks.
53551 (pupa_ext2_get_file_block): Use blocks member.
53552
53553 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
53554 first block. Return -1 instead of pupa_errno on error.
53555
bfd30f06 535562003-10-27 Marco Gerards <metgerards@student.han.nl>
53557
53558 * README: In the pupa-mkimage example use _chain instead of chain
53559 and ext2 instead of fat.
53560 * TODO: Replace ext2fs with jfs as an example. Add an item for
53561 adding journal playback for ext2fs.
53562 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
53563 (pkgdata_MODULES): Added ext2.mod.
53564 (ext2_mod_SOURCES): New variable.
53565 (ext2_mod_CFLAGS): Likewise.
53566 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
53567 * include/pupa/misc.h (pupa_strncpy): New prototype.
53568 (pupa_strcat): Likewise.
53569 (pupa_strncmp): Likewise.
53570 * kern/misc.c (pupa_strcat): Enable function.
53571 (pupa_strncpy): New function.
53572 (pupa_strncmp): Likewise.
53573 * fs/ext2.c: New file.
f19dbdb7 53574
bfd30f06 53575 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
53576 when the read failed before retrying.
53577 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
53578 (_FILE_OFFSET_BITS): Likewise.
53579 * configure.ac: Added AC_SYS_LARGEFILE.
53580
98d15063 535812003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
53582
53583 * genmk.rb (PModule#rule): Make sure to get only symbol names
53584 from the output of nm.
59cad637 53585 Reported by Robert Millan <rmh.grub@aybabtu.com>.
98d15063 53586
18d9c7cd 535872003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
53588
53589 I forgot to check in these changes for a long time. This adds
53590 incomplete support for VGA console, and this is still very
53591 buggy. Also, a lot of consideration is required for I18N,
53592 UNICODE, and VGA font issues. Therefore, assume that this is
53593 such that "better than nothing".
f19dbdb7 53594
18d9c7cd 53595 * font/manager.c: New file.
53596 * include/pupa/font.h: Likewise.
53597 * include/pupa/i386/pc/vga.h: Likewise.
53598 * term/i386/pc/vga.c: Likewise.
53599 * util/unifont2pff.rb: Likewise.
53600
53601 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
53602 (pkgdata_MODULES): Added vga.mod and font.mod.
53603 (vga_mod_SOURCES): New variables.
53604 (vga_mod_CFLAGS): Likewise.
53605 (font_mod_SOURCES): Likewise.
53606 (font_mod_CFLAGS): Likewise.
53607
53608 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
53609
53610 * include/pupa/term.h: Include pupa/err.h.
f19dbdb7 53611 (struct pupa_term): Added init and fini.
18d9c7cd 53612 Changed the argument of putchar to pupa_uint32_t.
53613
53614 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
53615 (pupa_console_real_putchar): New prototype.
53616 (pupa_console_putchar): Removed.
53617 (pupa_console_checkkey): Exported.
53618 (pupa_console_getkey): Likewise.
53619
53620 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
53621 characters.
53622
53623 * kern/term.c (pupa_term_set_current): Rewritten.
53624 (pupa_putchar): Likewise.
53625 (pupa_putcode): New function.
53626
53627 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
53628 (pupa_console_real_putchar): ... this.
53629 (pupa_vga_set_mode): New function.
53630 (pupa_vga_get_font): Likewise.
53631
53632 * normal/command.c: Include pupa/term.h.
53633 (terminal_command): New function.
53634 (pupa_command_init): Register the command "terminal".
53635
53636 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
53637 (DISP_UP): Likewise.
53638 (DISP_RIGHT): Likewise.
53639 (DISP_DOWN): Likewise.
53640 (DISP_HLINE): Likewise.
53641 (DISP_VLINE): Likewise.
53642 (DISP_UL): Likewise.
53643 (DISP_UR): Likewise.
53644 (DISP_LL): Likewise.
53645 (DISP_LR): Likewise.
53646
53647 * term/i386/pc/console.c (pupa_console_putchar): New function.
f19dbdb7 53648
977329f5 536492003-02-08 NIIBE Yutaka <gniibe@m17n.org>
53650
53651 * util/resolve.c (pupa_util_resolve_dependencies): BUG
53652 FIX. Reverse the path_list.
53653
53654 * include/pupa/normal.h: Export pupa_register_command and
53655 pupa_unregister_command.
53656
53657 * hello/hello.c (pupa_cmd_hello): New module.
53658 * conf/i386-pc.rmk: Added hello.mod.
53659
1f5ab428 536602003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
53661
53662 * kern/i386/pc/lzo1x.S: New file.
f19dbdb7 53663
1f5ab428 53664 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
53665 (compress_kernel): New variable.
53666 (generate_image): Heavily modified to support compressing a
53667 large part of the core image.
53668
53669 * util/misc.c (pupa_util_read_image): Fix a file descriptor
53670 leak.
53671 (pupa_util_load_image): New function.
53672
53673 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
53674 (pupa_compressed_size): New variable.
53675 (codestart): Enable Gate A20 here.
53676 Decompress the compressed part of the core image.
53677 Rearrange the code to put functions and variables which are
53678 required for initialization in the non-compressed part.
53679 Include lzo1x.S.
53680
53681 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
53682 here.
53683
53684 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
53685
f19dbdb7 53686 * include/pupa/i386/pc/kernel.h
1f5ab428 53687 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
53688 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
53689 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
53690 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
53691 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
53692
53693 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
53694
53695 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
53696 (Utility#rule): Likewise.
53697
53698 * configure.ac: Check if LZO is available.
53699
ce5bf700 537002003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
53701
53702 * include/pupa/normal.h: New file.
53703 * include/pupa/setjmp.h: Likewise.
53704 * include/pupa/i386/setjmp.h: Likewise.
53705 * normal/cmdline.c: Likewise.
53706 * normal/command.c: Likewise.
53707 * normal/main.c: Likewise.
53708 * normal/menu.c: Likewise.
53709 * normal/i386/setjmp.S: Likewise.
f19dbdb7 53710
ce5bf700 53711 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
53712 (pupa_rescue_cmd_initrd): Likewise.
53713
53714 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
53715 Likewise.
53716
53717 * kern/i386/pc/startup.S (translation_table): New variable.
53718 (translate_keycode): New function.
53719 (pupa_console_getkey): Call translate_keycode.
53720
53721 * kern/rescue.c (attempt_normal_mode): New function.
53722 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
53723 it failed, print a message.
53724
53725 * kern/mm.c (pupa_real_malloc): Print more information when a
53726 free magic is broken.
53727 (pupa_free): If the first free header is not free actually, set
53728 it to P.
53729
53730 * kern/main.c (pupa_load_normal_mode): Just load the module
53731 "normal".
53732 (pupa_main): Don't print the message
53733 "Entering into rescue mode..." here.
53734
53735 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
53736 Declared.
53737 (pupa_rescue_cmd_initrd): Likewise.
53738 (pupa_rescue_cmd_initrd): Likewise.
53739
53740 * include/pupa/symbol.h (FUNCTION): Specify the type.
53741 (VARIABLE): Likewise.
53742
53743 * include/pupa/err.h (pupa_err_t): Added
53744 PUPA_ERR_UNKNOWN_COMMAND.
53745
53746 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
53747 (pupa_dl_get_prefix): Likewise.
53748
53749 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
53750 Added _chain.mod and _linux.mod instead of chain.mod and
53751 linux.mod.
53752 (chain_mod_SOURCES): Renamed to ...
53753 (_chain_mod_SOURCES): ... this.
53754 (chain_mod_CFLAGS): Renamed to ...
53755 (_chain_mod_CFLAGS): ... this.
53756 (linux_mod_SOURCES): Renamed to ...
53757 (_linux_mod_SOURCES): ... this.
53758 (linux_mod_CFLAGS): Renamed to ...
53759 (_linux_mod_CFLAGS): ... this.
53760 (normal_mod_SOURCES): New variable.
53761 (normal_mod_CFLAGS): Likewise.
53762 (normal_mod_ASFLAGS): Likewise.
53763
537642003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
53765
53766 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
53767 possible.
53768
fe6b695a 53769 * kern/dl.c (pupa_dl_ref): Refer depending modules
ce5bf700 53770 recursively.
53771 (pupa_dl_unref): Unrefer depending modules recursively.
53772 Don't call pupa_dl_unload implicitly, because PUPA can crash if
53773 a module is unloaded before one depending on that module is
53774 unloaded.
53775 (pupa_dl_unload): Unload depending modules explicitly,
53776 if possible.
53777
c04da074 537782003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
53779
53780 * include/pupa/i386/pc/linux.h: New file.
53781 * loader/i386/pc/linux.c: Likewise.
f19dbdb7 53782
c04da074 53783 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
53784 Removed.
53785 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
53786 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
53787 of PUPA_CHAINLOADER_BOOT_SECTOR.
53788
53789 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
53790 (pupa_linux_prot_size): New variable.
53791 (pupa_linux_tmp_addr): Likewise.
53792 (pupa_linux_real_addr): Likewise.
53793 (pupa_linux_boot_zimage): New function.
53794 (pupa_linux_boot_bzimage): Likewise.
53795
53796 * kern/i386/pc/init.c (struct mem_region): New structure.
53797 (MAX_REGIONS): New macro.
53798 (mem_regions): New variable.
53799 (num_regions): Likewise.
53800 (pupa_os_area_addr): Likewise.
53801 (pupa_os_area_size): Likewise.
53802 (pupa_lower_mem): Likewise.
53803 (pupa_upper_mem): Likewise.
53804 (add_mem_region): New function.
53805 (compact_mem_regions): Likewise.
53806 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
53807 the size of the conventional memory and that of so-called upper
53808 memory (before the first memory hole).
53809 Instead of adding each found region to free memory, use
53810 add_mem_region and add them after removing overlaps.
53811 Also, add only 1/4 of the upper memory to free memory. The rest
53812 is used for loading OS images. Maybe this is ad hoc, but this
53813 makes it much easier to relocate OS images when booting.
53814
53815 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
53816 (pupa_enter_rescue_mode): Don't register initrd and module.
53817
53818 * kern/mm.c: Include pupa/dl.h.
53819
53820 * kern/main.c: Include pupa/file.h and pupa/device.h.
53821
53822 * kern/loader.c (pupa_loader_load_module_func): Removed.
53823 (pupa_loader_load_module): Likewise.
53824
53825 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
53826 ``.o''.
53827
53828 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
53829 (pupa_linux_tmp_addr): Likewise.
53830 (pupa_linux_real_addr): Likewise.
53831 (pupa_linux_boot_zimage): Likewise.
53832 (pupa_linux_boot_bzimage): Likewise.
53833
53834 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
53835 (pupa_upper_mem): Likewise.
53836 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
53837 module is too dangerous.
53838
53839 * include/pupa/loader.h (pupa_os_area_addr): Declared.
53840 (pupa_os_area_size): Likewise.
53841 (pupa_loader_set): Remove the first argument. Loader doesn't
53842 manage modules or initrd any longer.
53843 (pupa_loader_load_module): Removed.
53844
53845 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
53846 (linux_mod_SOURCES): New variable.
53847 (linux_mod_CFLAGS): Likewise.
53848
a13f9237 538492003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
53850
53851 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
53852 the length of a blocklist correctly.
53853
53854 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
53855 Use ioctl only if the OS file is a block device.
53856 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
53857 not very useful for normal files.
53858
53859 * kern/main.c (pupa_set_root_dev): New function.
53860 (pupa_load_normal_mode): Likewise.
53861 (pupa_main): Call those above.
53862
53863 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
53864 pupa_uint16_t.
53865
53866 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
53867
a5ffe966 538682003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
53869
53870 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
53871 (setup): Configure the installed partition information and the
53872 dl prefix.
53873
53874 * loader/i386/pc/chainloader.c (my_mod): New variable.
53875 (pupa_chainloader_unload): New function.
53876 (pupa_rescue_cmd_chainloader): Refer itself.
53877 (PUPA_MOD_INIT): Save its own module in MY_MOD.
53878
53879 * kern/i386/pc/startup.S (install_partition): Removed.
53880 (version_string): Likewise.
53881 (config_file): Likewise.
53882 (pupa_install_dos_part): New variable.
53883 (pupa_install_bsd_part): Likewise.
53884 (pupa_prefix): Likewise.
53885 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
53886
53887 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
53888 and pupa/misc.h.
53889 (make_install_device): New function.
53890 (pupa_machine_init): Set the dl prefix.
53891
53892 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
53893 (buf): Renamed to ...
53894 (linebuf): ... this.
53895 (pupa_rescue_cmd_prefix): New function.
53896 (pupa_rescue_cmd_insmod): Likewise.
53897 (pupa_rescue_cmd_rmmod): Likewise.
53898 (pupa_rescue_cmd_lsmod): Likewise.
53899 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
53900 rmmod and lsmod.
53901
53902 * kern/mm.c (pupa_memalign): If failed even after invalidating
53903 disk caches, unload unneeded modules and retry.
53904
53905 * kern/misc.c (pupa_memmove): New function.
53906 (pupa_memcpy): Removed.
53907 (pupa_strcpy): New function.
53908 (pupa_itoa): Made static.
53909
53910 * kern/dl.c (pupa_dl_iterate): New function.
53911 (pupa_dl_ref): Likewise.
53912 (pupa_dl_unref): Likewise.
53913 (pupa_dl_unload): Return if succeeded or not.
53914 (pupa_dl_unload_unneeded): New function.
53915 (pupa_dl_unload_all): Likewise.
53916 (pupa_dl_init): Renamed to ...
53917 (pupa_dl_set_prefix): ... this.
53918 (pupa_dl_get_prefix): New function.
53919
53920 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
53921 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
53922 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
53923 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
53924 (pupa_install_dos_part): Declared.
53925 (pupa_install_bsd_part): Likewise.
53926 (pupa_prefix): Likewise.
53927 (pupa_boot_drive): Likewise.
53928
53929 * include/pupa/types.h: Fix a typo.
53930
53931 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
53932 pupa_memmove.
53933 (pupa_memmove): Declared.
53934 (pupa_strcpy): Likewise.
53935
53936 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
53937 pupa_mod_init takes one argument, its own module.
53938 (pupa_dl_unload_unneeded): Declared.
53939 (pupa_dl_unload_all): Likewise.
53940 (pupa_dl_ref): Likewise.
53941 (pupa_dl_unref): Likewise.
53942 (pupa_dl_iterate): Likewise.
53943 (pupa_dl_init): Renamed to ...
53944 (pupa_dl_set_prefix): ... this.
53945 (pupa_dl_get_prefix): Declared.
53946
53947 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
f19dbdb7 53948 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
a5ffe966 53949 unloaded.
53950 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
53951 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
53952
53953 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
53954 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
53955
012d7999 539562003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
53957
53958 * util/i386/pc/pupa-setup.c (setup): Define the internal
53959 function find_first_partition_start at the top level, because GCC
53960 3.0.x cannot compile internal functions in deeper scopes
53961 correctly.
53962 (find_root_device): Use lstat instead of stat.
53963 Don't follow symbolic links.
53964 Fix the path-constructing code.
53965
53966 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
53967 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
53968 by a BLKGETSIZE ioctl first, because block devices don't fill
53969 the member st_mode of the structure stat on Linux.
53970 [__linux__] (linux_find_partition): Use a temporary buffer
53971 REAL_DEV for the working space. Copy it to DEV before returning.
53972 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
53973 buffer cache consistent.
53974 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
53975 strncmp. The previous value was merely wrong.
53976 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
53977
53978 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
53979 FAT size is 12. The previous value was merely wrong.
53980
53981 * kern/main.c (pupa_main): Don't split the starting message from
53982 newlines.
53983
53984 * kern/term.c (pupa_putchar): Put CR after LF instead of before
53985 LF, because BIOS goes crazy about character attributes in this
53986 case.
53987
1cc73a62 539882003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
53989
53990 * include/i386/pc/util/biosdisk.h: New file.
53991 * util/i386/pc/biosdisk.c: Likewise.
53992 * util/i386/pc/pupa-setup.c: Likewise.
f19dbdb7 53993
1cc73a62 53994 * Makefile.in (INCLUDE_DISTFILES): Added
53995 include/pupa/i386/pc/util/biosdisk.h.
53996 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
53997 directory util/i386/pc.
53998 (install-local): Added a rule for sbin_UTILITIES.
53999 (uninstall): Likewise.
54000
54001 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
54002
54003 * util/misc.c (xrealloc): New function.
54004 (pupa_malloc): Likewise.
54005 (pupa_free): Likewise.
54006 (pupa_realloc): Likewise.
54007 (pupa_stop): Likewise.
54008 (pupa_putchar): Likewise.
54009
54010 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
54011
54012 * include/pupa/util/misc.h (xrealloc): Declared.
54013
54014 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
54015 macro.
54016 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
54017 (PUPA_BOOT_MACHINE_BPB_END): ... this.
54018
54019 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
54020 [PUPA_UTIL] (pupa_fat_fini): Likewise.
54021
54022 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
54023 way should be implemented.
54024 [PUPA_UTIL] (pupa_fat_fini): Likewise.
54025
54026 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
54027 the size of NAME for safety.
54028 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
54029 0x88.
54030
54031 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
54032 (pupa_setup_SOURCES): Likewise.
54033
54034 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
54035
08b70fe8 540362002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
54037
54038 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
54039 bunch of pushl's from pusha, because this destroys the return
54040 value.
54041
62ddcc8f 540422002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
54043
54044 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
54045 This means that any missing prototypes could be fatal. Also, you
54046 must take care when writing assembly code. See the comments at
54047 the beginning of startup.S, for more details.
f19dbdb7 54048
62ddcc8f 54049 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
54050 compilation mechanism.
54051 (pupa_chainloader_real_boot): Likewise.
54052 (pupa_biosdisk_rw_int13_extensions): Likewise.
54053 (pupa_biosdisk_rw_standard): Likewise.
54054 (pupa_biosdisk_check_int13_extensions): Likewise.
54055 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
54056 (pupa_biosdisk_get_diskinfo_standard): Likewise.
54057 (pupa_get_memsize): Likewise.
54058 (pupa_get_mmap_entry): Likewise.
54059 (pupa_console_putchar): Likewise.
54060 (pupa_console_setcursor): Likewise.
54061 (pupa_getrtsecs): Use pushl instead of push.
54062
54063 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
54064 memory instead of the stack for a mmap entry, because some
54065 BIOSes may ignore the maximum size and overflow.
54066
54067 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
54068
54069 * genmk.rb (PModule#rule): Compile automatically generated
54070 sources with module-specific CFLAGS as well as other sources.
54071
9962ed99 540722002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
54073
54074 * configure.ac: Check ld.
54075 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
54076 respectively, before checking endianness and sizes.
54077
54078 * Makefile.in (LD): New variable.
f19dbdb7 54079
abdfc3c5 540802002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
54081
54082 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
54083
6a161fa9 540842002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
54085
54086 * Changelog: New file.
54087