]> git.proxmox.com Git - grub2.git/blame - ChangeLog
New functional test for sleep function.
[grub2.git] / ChangeLog
CommitLineData
04b02857
VS
12013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
2
3 New functional test for sleep function.
4
5 This test allows to check sleep without qemu. Keep qemu version as
6 well as functional test won't notice if all clocks are going too fast
7 or too slow.
8
39711101
VS
92013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10
11 Add explicit sysv_abi on amd64 asm routines.
12
d99af4f0
VS
132013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14
15 * grub-core/commands/efi/lsefisystab.c: Use %lld to show
16 num_table_entries.
17
71043684
VS
182013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
19
20 * include/grub/test.h: Use gnu_printf rather than printf on GRUB
21 functions.
22
111bf5db
VS
232013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
24
25 * grub-core/loader/i386/linux.c: Use grub_addr_t rather than long when
26 appropriate.
27
24ca71c9
VS
282013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
29
30 * grub-core/loader/i386/linux.c: Use %p rather than %lx for pointers.
31
48ba5c0c
VS
322013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
33
34 * grub-core/kern/elfXX.c: Use grub_addr_t rather than long when
35 appropriate.
36
8ae67045
VS
372013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
38
39 * grub-core/disk/loopback.c: Use sequential IDs rather than pointer.
40
41 In case of quick removal of loopback and adding another one it may
42 get same ID, confusing the cache system.
43
ed559310
VS
442013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
45
46 * grub-core/commands/acpi.c: Use grub_addr_t rather than long when
47 appropriate.
48
8fa26279
VS
492013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
50
51 * grub-core/kern/i386/coreboot/cbtable.c: Use char * arithmetic rather
52 than converting to long.
53
6f5f3337
VS
542013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
55
56 * grub-core/disk/cryptodisk.c: Rename "n" to "last_cryptodisk_id".
57
e7c418c5
VS
582013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
59
60 * util/grub-mkimagexx.c (relocate_addresses): Display offset rather
61 than almost useless pointer.
62
7e47e27b
VS
632013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
64
65 Add gcc_struct to all packed structures when compiling with mingw.
66
67 Just "packed" doesn't always pack the way we expect.
68
ae8159b9
VS
692013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
70
71 * include/grub/i386/coreboot/lbio.h: Add missing attribute (packed).
72
74e7ad66
VS
732013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
74
75 * util/grub-pe2elf.c: Fix handling of .bss.
76
814442ba
VS
772013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
78
79 Implement windows flavour of EFI install routines.
80
5f5bb107
VS
812013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
82
83 * conf/Makefile.extra-dist: Adjust path to conf/i386-cygwin-img-ld.sc.
84
a24725cc
VS
852013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
86
87 Change grub_install_register_efi interface to pass GRUB device.
88
89 This allows grub_install_register_efi to request partition info
90 directly.
91
38933cee
VS
922013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
93
94 Workaround cygwin bug when using \\?\Volume{GUID} syntax.
95
6d3cfe50
VS
962013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
97
98 Do not use TCHAR string functions as they are not available on cygwin.
99
4bad23a1
VS
1002013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
101
102 Workaround windows bug when querying EFI system partition parameters.
103
6a5fe132
VS
1042013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
105
106 * grub-core/kern/i386/qemu/init.c (resource): Decrease struct size
107 by using bitfields.
108
bc8fcf4b
VS
1092013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
110
111 * grub-core/boot/i386/qemu/boot.S: Add missing EXT_C.
112
60b967be
VS
1132013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
114
115 Make i386-* other than i386-pc compileable under cygwin.
116
6dc33377
VS
1172013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
118
119 Fix definition of grub_efi_hard_drive_device_path. Take care that
120 existing code would work even if by some reason bogus definition is
121 used by EFI implementations.
122
f2c6ff15
VS
1232013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
124
125 * grub-core/osdep/windows/hostdisk.c: Fix cygwin compilation.
126
6b8a1625
VS
1272013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
128
129 * grub-core/osdep/windows/blocklist.c: Add missing cast in printf
130 invocation.
131
954c723a
VS
1322013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
133
134 * util/config.c: Remove trailing newline from distributor in simple
135 parsing.
136
607a39f9
VS
1372013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
138
139 * include/grub/efi/api.h: Rename protocol and interface to avoid
140 conflict.
141
df6fedca
VS
1422013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
143
144 * .gitignore: Add .exe variants. Add missing files. Remove few outdated
145 entries.
146
f684d7e1
VS
1472013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
148
149 * grub-core/osdep/exec.c: Use unix version on cygwin.
150
0df77d79
VS
1512013-12-13 Vladimir Serbinenko <phcoder@gmail.com>
152
153 Implement multiboot2 EFI BS specification.
154
dafff9ce
VS
1552013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
156
157 * grub-core/normal/charset.c: Fix premature line wrap and crash.
158 Crash happened only in some cases like a string starting at the
159 half of the screen of same length.
160
6644d973
VS
1612013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
162
163 * include/grub/efiemu/efiemu.h: Sync configuration table declaration
164 with EFI counterpart.
165
44bbfa33
VS
1662013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
167
168 Propagate the EFI commits to x86-efi specific parts.
169
3e3dff24
VS
1702013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
171
172 * grub-core/commands/efi/lssal.c: Fix terminating condition.
173
316dda71
VS
1742013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
175
176 Introduce grub_efi_packed_guid and use it where alignment is not
177 guaranteed.
178
219401b8
VS
1792013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
180
181 * include/grub/efi/api.h (grub_efi_device_path): Define length as
182 unaligned u16 rather than u8[2].
183
30d00537
VS
1842013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
185
186 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Add checks
187 for relocation range.
188
979742bc
VS
1892013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
190
191 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Handle
192 non-function pcrel21b relocation. It happens with .text.unlikely
193 section.
194
16c8f785
LL
1952013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
196
197 * make MAX_USABLE_ADDRESS platform-specific
198 * grub-core/kern/efi/mm.c: add Vladimir's new BYTES_TO_PAGES_DOWN macro.
199
3f1423e7
LL
2002013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
201
202 * grub-core/lib/fdt.c: change memcpy => grub_memcpy
203
dd73313c
JM
2042013-12-09 Jon McCune <jonmccune@google.com>
205
206 * Add --no-rs-codes flag to optionally disable reed-solomon codes
207 in grub-install and grub-bios-setup for x86 BIOS targets.
208
eaf01c25
VS
2092013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
210
211 Add missing compile and link options for sparc64-emu.
212
7a148da6
VS
2132013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
214
215 Implement sparc64 trampolines (needed for sparc64-emu).
216
21eee750
VS
2172013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
218
219 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Check
220 range of R_SPARC_HI22.
221 Implement R_SPARC_LM22.
222
7b54b626
VS
2232013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
224
225 * grub-core/kern/powerpc/dl_helper.c (grub_arch_dl_get_tramp_got_size):
226 Do not explicitly check for symbol table as it's already checked in
227 platform-independent layer.
228
9a945e2a
VS
2292013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
230
231 * grub-core/kern/emu/cache.c [__ia64__]: Use our cache cleaning routine
232 on ia64 as __clear_cache is a dummy on ia64.
233
4f4ea1b4
VS
2342013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
235
236 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
237 Do not explicitly check for symbol table as it's already checked in
238 platform-independent layer.
239
fe4ae213
CW
2402013-12-09 Colin Watson <cjwatson@ubuntu.com>
241
242 * util/grub-mkconfig.in: Add missing newline to output.
243
78b2b0a1
VS
2442013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
245
246 * grub-core/kern/ia64/efi/init.c (grub_arch_sync_caches): Move to ...
247 * grub-core/kern/ia64/cache.c (grub_arch_sync_caches): ... here.
248
d14772c4
VS
2492013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
250
251 * grub-core/kern/emu/main.c: Silence missing prototypes to allow emu
252 compilation with GCC <= 4.2.
253 * grub-core/kern/emu/argp_common.c: Likewise.
254
388f3cd0
VS
2552013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
256
257 * include/grub/kernel.h [__sparc__]: Restrict sparc64-ieee1275 to
258 right platform rather than leaking to sparc64-emu.
259
11e4167a
VS
2602013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
261
262 * grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
263 But ensure that the variables in question are indeed unsigned.
264
fa7eb63d
VS
2652013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
266
267 * grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
268
50b3a68d
VS
2692013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
270
271 Remove grub_memalign on emu.
272
fbbfb6ab
VS
2732013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
274
275 * grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
276 truncate incomplete lines but instead flushes them.
277
a19293cb
VS
2782013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
279
280 Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
281 and implement windows variant.
282
d5c14e1e
VS
2832013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
284
285 Fix mips-emu compilation.
286
b75db69a
VS
2872013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
288
289 * configure.ac: Check for freetype library usability.
290
c311ced5
VS
2912013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
292
293 Make arm-emu work.
294
c8fd2ddf
VS
2952013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
296
297 * util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.
298
c50e5f45
AB
2992013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
300
301 * docs/grub.texi (Environment): Update color_normal and color_highlight
302 defaults (light-gray instead of white).
303
bb05e313
AB
3042013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
305
306 * grub-core/normal/main.c (INIT): Set default color to light-gray
307 to match GRUB_TERM_DEFAULT_NORMAL_COLOR (i.e. rescue mode), Linux
308 and apparently BIOS defaults.
309
f23bc651
VS
3102013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
311
312 Transform -C option to grub-mkstandalone to --core-compress available
313 in all grub-install flavours.
314
4c4ea9c7
VS
3152013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
316
317 Merge GRUBFS and GRUB_FS variables.
318
92e9352d
AB
3192013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
320
321 Revert commit 69ca97c820, it caused failures when using OS device name
322 in grub-install. Instead just strip off parenthesis in grub-install
323 if (hdX) was passed.
324
f585c905
AB
3252013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
326
327 * util/grub-install.c (push_partmap_module): Add helper to convert
328 partmap names to module names and use it in probe_mods(). Fixes
329 failure to find partmap modules in diskfilter case.
330
5ff24907
VS
3312013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
332
333 * configure.ac: Make unifont mandatory on coreboot.
334
0277eab7
VS
3352013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
336
337 * configure.ac: Skip unifont 6.3 pcf and bdf.
338
4861b6c8
VS
3392013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
340
341 * Makefile.am: Remove partial font files if generation failed.
342
3100cdc7
AB
3432013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
344
345 * util/misc.c (grub_qsort_strcmp): Add qsort helper function to sort
346 strings.
347 * include/grub/util/misc.h: Define it ...
348 * util/grub-install.c (device_map_check_duplicates): ... and use it.
349
ad73cc33
AB
3502013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
351
352 * util/grub.d/30_os-prober.in: Fix use of grub-probe instead of
353 ${grub_probe}.
354
41822625
VS
3552013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
356
357 Don't add -mlong-calls when compiling with clang.
358
896f483d
VS
3592013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
360
361 * configure.ac: Fix a typo.
362
8c534b85
VS
3632013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
364
365 Revamp relocation handling.
366
367 Move more code to common dl.c. Add missing veneers for arm and arm64.
368 Decreases kernel size by 70 bytes on i386-pc (40-50 compressed)
369
a846dd4b
VS
3702013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
371
372 * util/grub-mkimagexx.c: Fix reloc section generation for ia64.
373
aa437b58
MG
3742013-12-05 Mike Gilbert <floppym@gentoo.org>
375
376 * INSTALL: Raise minimum python version to 2.6.
377 * gentpl.py: Use python3-style print function.
378
b0f311f4
VS
3792013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
380
381 * util/grub-install.c: Mention Boot* variable.
382
59b38922
CW
3832013-12-05 Colin Watson <cjwatson@ubuntu.com>
384
385 * grub-core/osdep/linux/hostdisk.c
386 (grub_util_find_partition_start_os): Initialise start to avoid
387 spurious compiler warning.
388
0480665b
CW
3892013-12-05 Colin Watson <cjwatson@ubuntu.com>
390
391 On Linux, read partition start offsets from sysfs if possible, to
392 cope with block device drivers that don't implement HDIO_GETGEO.
393 Fixes Ubuntu bug #1237519.
394
395 * grub-core/osdep/linux/hostdisk.c (sysfs_partition_path): New
396 function.
397 (sysfs_partition_start): Likewise.
398 (grub_util_find_partition_start_os): Try sysfs_partition_start
399 before HDIO_GETGEO.
400
bbeee1c4
LL
4012013-12-05 Leif Lindholm <leif.lindholm@linaro.org>
402
403 * grub-core/kern/fdt.c: Update struct size when adding node.
404
e5ed2f69
VS
4052013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
406
407 Handle unaligned .bss on sparc64.
408
409 Current code improperly assumes that both __bss_start and _end are
410 aligned to 8-bytes. Eliminating this assumption and explicitly align
411 modules.
412
4a73746a
VS
4132013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
414
415 * grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
416 so it doesn't land in the middle of loaded image.
417
382b500e
VS
4182013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
419
420 * configure.ac: Move all warning options that may be absent in
421 gcc >= 3.1 to optional.
422
423 Note: while this allows to compile with older GCC, official requirements
424 remain the same and no support for older GCC.
425
3a82f8bb
CW
4262013-12-04 Colin Watson <cjwatson@ubuntu.com>
427
428 Copying the themes directory in grub-shell isn't
429 parallel-test-friendly and breaks on the second test when the source
430 directory is read-only (as in "make distcheck"). Instead, add a
431 hidden --themes-directory option to grub-mkrescue et al, and use it
432 in grub-shell.
433
e3046431
VS
4342013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
435
436 * conf/Makefile.common (CFLAGS_GNULIB): Remove -Wno-old-style-definition
437 as it's no longer necessarry.
438
bdb6090d
VS
4392013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
440
441 * configure.ac: Allow compilation with older GCC for ARM.
442
b73b70eb
VS
4432013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
444
445 * configure.ac: Add -no-integrated-as if {addme|ame} isn't supported.
446 * INSTALL: Note that GRUBwas successfully compiled with clang 3.2 for
447 ppc.
448
8a3f0a24
VS
4492013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
450
451 * grub-core/kern/emu/main.c: Ignore missing prototype for main.
452
6f07c4e4
VS
4532013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
454
455 Pass font config to config.h and not by TARGET_CFLAGS as adding
456 arguments doesn't work if TARGET_CFLAGS is specified on command
457 line.
458
60d5e9cb
VS
4592013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
460
461 * configure.ac: Add -Wvla if compiler supports it.
462
cd15c394
VS
4632013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
464
465 * grub-core/osdep/windows/emuconsole.c (grub_console_putchar):
466 Remove variable length arrays.
467 * grub-core/term/efi/console.c (grub_console_putchar): Likewise.
468
bb6e299c
VS
4692013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
470
471 * grub-core/kern/i386/qemu/init.c: Remove variable length arrays.
472
85eb579a
VS
4732013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
474
475 * include/grub/types.h: Declare all byteswaps as inline functions
476 except compile-time ones.
477
478 Solves variable shadowing in constructions like
479 cpu_to_le (le_to_cpu(x) + 1).
480
47f88cc9
VS
4812013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
482
483 * grub-core/kern/efi/efi.c: Remove variable length arrays.
484
40b5739f
VS
4852013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
486
487 * grub-core/kern/uboot/init.c (uboot_timer_ms): Fix overflow after 71
488 minutes.
489
234d9346
VS
4902013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
491
492 * grub-core/disk/ieee1275/ofdisk.c: Remove variable length arrays.
493 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
494
0c0eab52
CW
4952013-12-03 Colin Watson <cjwatson@ubuntu.com>
496
497 * grub-core/Makefile.core.def (setjmp): Distribute
498 lib/arm64/setjmp.S.
499
44d48847 5002013-12-03 Colin Watson <cjwatson@ubuntu.com>
8f236c14
CW
501
502 Add a new timeout_style environment variable and a corresponding
503 GRUB_TIMEOUT_STYLE configuration key for grub-mkconfig. This
504 controls hidden-timeout handling more simply than the previous
505 arrangements, and pressing any hotkeys associated with menu entries
506 during the hidden timeout will now boot the corresponding menu entry
507 immediately.
508
509 GRUB_HIDDEN_TIMEOUT=<non-empty> + GRUB_TIMEOUT=<non-zero> now
510 generates a warning, and if it shows the menu it will do so as if
511 the second timeout were not present. Other combinations are
512 translated into reasonable equivalents.
513
10955cda
CW
514 Based loosely on work by Franz Hsieh. Fixes Ubuntu bug #1178618.
515
9e4e6ddf
VS
5162013-12-02 Vladimir Serbinenko <phcoder@gmail.com>
517
518 * util/config.c: Add missing pointer adjustment.
519 Reported by: qwertial
520
5037aa9a
AB
5212013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
522
523 * grub-core/kern/arm64/dl_helper.c: Include grub/arm64/reloc.h
524 directly, not via `cpu' link, to fix libgrub.pp generation.
525
8a952d20
VS
5262013-11-30 Leif Lindholm <leif.lindholm@linaro.org>
527
528 New port arm64-efi.
529
be0d4555
AB
5302013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
531
532 * docs/grub.texi (sleep): Document exit codes.
533
d74b9a1d
VS
5342013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
535
536 Ensure that -mno-unaligned-access or some equivalent option is used.
537
35de6d4b
VS
5382013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
539
540 * grub-core/lib/libgcrypt/mpi/longlong.h: Fix compilation error with
541 -march=armv3.
542
ce55ed03
VS
5432013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
544
545 Remove leftover GRUB_IA64_DL_TRAMP_SIZE.
546
8ddf84bf
CW
5472013-11-29 Colin Watson <cjwatson@ubuntu.com>
548
549 * docs/grub-dev.texi (Font Metrics): Exclude @image command from DVI
550 builds, since we don't have an EPS version of font_char_metrics.png.
551 Add leading dot to image extension per the Texinfo documentation.
552
fd0df6d0
CW
5532013-11-29 Colin Watson <cjwatson@ubuntu.com>
554
555 * util/grub-gen-asciih.c: Include FT_SYNTHESIS_H rather than
556 <freetype/ftsynth.h>, fixing build with FreeType 2.5.1.
557 * util/grub-gen-widthspec.c: Likewise.
558 * util/grub-mkfont.c: Likewise.
559
69ca97c8
AB
5602013-11-29 Andrey Borzenkov <arvidjaar@gmail.com>
561
562 * util/grub-setup.c (main): Move parsing of (hdX) syntax to ...
563 * util/setup.c (SETUP): ... here. Fixes regression: grub-install
564 failed to install on (hdX).
565 * util/grub-setup.c (get_device_name): Remove, not needed after
566 above change.
567
eec893ae
VS
5682013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
569
570 * grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.
571
621e167f
VS
5722013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
573
574 * util/grub-fstest.c: Remove variable length arrays.
575
d54f647a
VS
5762013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
577
578 * grub-core/osdep/linux/ofpath.c: Check return value of read.
579
c8a0f1b2
VS
5802013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
581
582 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
583 computing crc32 rather than handling with md fundtions directly.
584
726409a5
VS
5852013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
586
587 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
588 checking fwstart.img rather than md fundtions directly.
589
422e6e88
VS
5902013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
591
592 * util/grub-mkrescue.c (main): Check that fread succeeded.
593
af1faca3
VS
5942013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
595
596 * conf/Makefile.common: Remove -mexplicit-relocs and
597 -DUSE_ASCII_FALLBACK on yeeloong.
598
599 -DUSE_ASCII_FALLBACK is already added by font snippets.
600 -mexplicit-relocs isn't needed is compiler/assemblera are
601 configured properly.
602 If they're not we shouldn't attempt to fix it by ourselves.
603 Binary compare between before and after shows no difference.
604
469021b4
VS
6052013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
606
607 * grub-core/Makefile.core.def: Remove libgnulib.a and use its
608 sources in dependencies directly.
609
610 This was the only instance of "library" in core config. A bug was
611 reported that -fno-stack-protector wasn't passed to it. Instead of
612 figuring out why it failed just remove this construction used
613 needlessly.
614
83c256ba
VS
6152013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
616
617 * grub-core/osdep/unix/password.c (grub_password_get): Check that
618 fgets succeeded.
619
b67422d3
FL
6202013-11-27 Francesco Lavra <francescolavra.fl@gmail.com>
621
622 * docs/grub.texi (ls): Fix command description in case of a device name
623 passed as argument.
624
2d76b4d8
VS
6252013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
626
627 Eliminate variable length arrays in grub_vsnprintf_real.
628
629 A bit tricky because this function has to continue to work without
630 heap for short strings. Fixing prealloc to 32 arguments is reasonable
631 but make all stack references use 32-bit offset rather than 8-bit one.
632 So split va_args preparsing to separate function and put the prealloc
633 into the caller.
634
4f954122
VS
6352013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
636
637 Introduce grub_util_file_sync and use it instead of fsync(fileno(f)).
638 Fixes build for windows.
639
b1f742c1
VS
6402013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
641
642 * gentpl.py: Don't generate platform-dependent conditionals for
643 platform-independent targets.
644
16ef26fd
CW
6452013-11-27 Colin Watson <cjwatson@ubuntu.com>
646
647 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect): Remove
648 references to mdadm from otherwise generic code.
649 (grub_util_exec_pipe): Likewise.
650 (grub_util_exec_pipe_stderr): Likewise.
651 * grub-core/osdep/unix/getroot.c (grub_util_pull_lvm_by_command):
652 This function calls vgs, not mdadm; adjust variable names
653 accordingly.
654
cf8c80ff 6552013-11-27 Colin Watson <cjwatson@ubuntu.com>
ab4f1501
CW
656
657 Generate Makefile.*.am directly from gentpl.py, eliminating the use
658 of Autogen. The Autogen definitions files remain intact as they
659 offer a useful abstraction.
660
5c7206e4
CW
6612013-11-27 Colin Watson <cjwatson@ubuntu.com>
662
663 Add grub_util_disable_fd_syncs call to turn grub_util_fd_sync calls
664 into no-ops, and use it in programs that copy files but do not need
665 to take special care to sync writes (grub-mknetdir, grub-rescue,
666 grub-mkstandalone).
667
fc3f2b72
CW
6682013-11-26 Colin Watson <cjwatson@ubuntu.com>
669
670 * tests/util/grub-fs-tester.in: Execute xorriso from $PATH rather
671 than hardcoding /usr/local/bin/xorriso.
672
1e4b3587
VS
6732013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
674
675 Add PCI command activation to all PCI drivers as required for coreboot
676 and maybe some other firmwares.
677
9208367d
VS
6782013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
679
680 * grub-core/Makefile.am: Reduce gratuituous differences between Apple
681 and non-Apple variants of efiemu compile.
682
67b9b7af
AB
6832013-11-25 Andrey Borzenkov <arvidjaar@gmail.com>
684
685 * configure.ac: Add explicit check for linking format of
686 efiemu64; save it as EFIEMU64_LINK_FORMAT.
687 * grub-core/Makefile.am: Use EFIEMU64_LINK_FORMAT instead of
688 hardcoding linking format.
689
bee1b5ce
VS
6902013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
691
692 * util/grub-mknetdir.c: Look for platform directories under pkglibdir
693 and not pkgdatadir.
694
07e3b047
CW
6952013-11-25 Colin Watson <cjwatson@ubuntu.com>
6962013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
697
698 Add a --locale-directory option to grub-install and related tools.
699
700 * include/grub/util/install.h (GRUB_INSTALL_OPTIONS): Add
701 --locale-directory option.
702 (enum grub_install_options): Add
703 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
704 * util/grub-install-common.c (grub_install_help_filter): Handle
705 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
706 (grub_install_parse): Likewise.
707 (get_localedir): New function to check for a user-provided option
708 before trying grub_util_get_localedir.
709 (copy_locales): Use get_localedir rather than
710 grub_util_get_localedir. Handle differing locale directory layouts.
711 (grub_install_copy_files): Likewise.
712
61e1b9a4
VS
7132013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
714
715 * grub-core/osdep/unix/platform.c (get_ofpathname): Trim ending newline.
716 Don't rely on PATH_MAX.
717
c98dd165
VS
7182013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
719
720 * grub-core/genmoddep.awk: Use more portable && rather than and.
721
ff1c277e
VS
7222013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
723
724 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Create _edata by placing
725 an object after data. While it doesn't seem right solution, it
726 works well enough and OSX isn't main compilation platform.
727
c8f7614b
VS
7282013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
729
730 * gentpl.py: Add -ed2016 in order to make objconv accept our binary.
731 While it doesn't seem right solution, it works well enough and
732 OSX isn't main compilation platform.
733
246a434f
VS
7342013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
735
736 * configure.ac: Add -static to LDFLAGS when using apple linker to
737 prevent it from pulling in dynamic linker.
738
5c066a81
VS
7392013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
740
741 Apple assembly doesn't handle symbol arithmetic well. So define an
742 offset symbol in boot.S and use it.
743
78f961ef
VS
7442013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
745
746 Apple assembly doesn't handle symbol arithmetic well. So instead
747 of getting addres of kernel_sector + 4 define kernel_sector_high.
748 It also makes code more readable.
749
09bc0a57
VS
7502013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
751
752 With Apple assembly in .macro environvemnt you have to use $$ instead
753 of $. So introduce new preprocessor macro MACRO_DOLLAR(x) which expands
754 to $$x on Apple and to $x on everything else.
755
b700a427
VS
7562013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
757
758 * grub-core/Makefile.am: Use correct TARGET_OBJCONV rather than
759 OBJCONV.
760
4480b95d
VS
7612013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
762
763 * grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple
764 and non-Apple. This instruction is shorter and faster,
765 so no reason not to use it on both.
766
e77c81f6
VS
7672013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
768
769 * grub-core/lib/reed_solomon.c: Use section _text, _text rather than
770 .text when compiling for Apple.
771
971dbee5
VS
7722013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
773
774 * grub-core/term/arc/console.c: Add missing cast to silence warning.
775
6f2e82be
VS
7762013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
777
778 * grub-core/boot/i386/pc/boot.S: Fix floppy probe. Due to missing
779 %dx restore the probe worked on non-existant drive. Reorganize the
780 code a little bit to free 2 bytes necessary for push/pop.
781
9eec9699
VS
7822013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
783
784 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
785 Add missing cast to silence warning.
786
5ae5c54c
KPA
7872013-11-23 Keshav Padram Amburay <the.ridikulus.rat@gmail.com>
788
789 * util/grub-install.c (update_nvram): Support --no-nvram flag
790 for EFI targets.
791
7b04fe6c
VS
7922013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
793
794 * INSTALL: Add note about sparc64/ia64 with clang (unsupported).
795
e67566ce
VS
7962013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
797
798 * util/garbage-gen.c: Add missing include of sys/time.h.
799
f93ddcfd
VS
8002013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
801
802 Don't add -mflush-func if it's not supported by compiler.
803
1bba40f5
VS
8042013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
805
806 Move common BIOS/coreboot memory map declarations to
807 include/grub/i386/memory_raw.h and eliminate duplicate declarations.
808
f65e14dc
AB
8092013-11-22 Andrey Borzenkov <arvidjaar@gmail.com>
810
811 * Makefile.am: Add util/garbage-gen.c to EXTRA_DIST.
812
14a94bba
VS
8132013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
814
815 * INSTALL: Document why older clang versions aren't appropriate.
816
8109c5d4
VS
8172013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
818
819 * INSTALL: Document about clang for mips.
820
a92b5cb8
VS
8212013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
822
823 * grub-core/lib/libgcrypt/mpi/longlong.h: Use C version with mips
824 clang.
825
4a23e2fe
VS
8262013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
827
828 Add *-xen to the list of grub-install-common platforms.
829
a3ba7410
VS
8302013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
831
832 * configure.ac: Do not enforce -mcmodel=large. It's not necessarry with
833 3 last commits.
834
e1c22419
VS
8352013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
836
837 * grub-core/kern/xen/init.c: Do not map more pages than we can address.
838
189090ce
VS
8392013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
840
841 * grub-core/kern/efi/mm.c: Limit allocations to 2GiB when not compiling
842 with -mcmodel=large.
843
1a5b7b40
VS
8442013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
845
846 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Add
847 range-checking for 32-bit quantities.
848
9cf12b20
VS
8492013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
850
851 * configure.ac: Compile with -fPIC when compiling with clang on
852 mips.
853
63a45330
VS
8542013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
855
856 * configure.ac: Add -no-integrated-as on mips(el) to TARGET_CCASFLAGS
857 when compiling with clang.
858
4a0aaad0
VS
8592013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
860
861 clang emits calls to abort () under some unknown conditions.
862 Export abort () when compiling with clang.
863
095bb1bf
VS
8642013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
865
866 * docs/grub-dev.texi: Document stack and heap sizes.
867
3937bd96
VS
8682013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
869
870 * include/grub/i386/pc/memory.h: Decrease
871 GRUB_MEMORY_MACHINE_SCRATCH_SIZE and increase
872 GRUB_MEMORY_MACHINE_PROT_STACK_SIZE.
873 The binary doesn't change (checked). It's more to better reflect actual
874 usage.
875
ddb3efc9
VS
8762013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
877
878 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Ensure
879 at compile time that enough of scratch size is available.
880
4e42521d
VS
8812013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
882
883 * grub-core/kern/x86_64/efi/callwrap.S: Fix stack alignment.
884 Previously we misaligned stack by 8 in startup.S and compensated
885 for it in callwrap.S. According to ABI docs (EFI and sysv amd64)
886 right behaviour is to align stack in startup.S and keep it aligned
887 in callwrap.S. startup.S part was committed few commits before. This
888 takes care of callwrap.S.
889 Reported by: Gary Lin.
890
054efe54
VS
8912013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
892
893 * grub-core/boot/mips/startup_raw.S: Handle the case of gap between
894 .data and .bss. May happen if compiler and assembly use different
895 alignment.
896
a0e1befb
VS
8972013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
898
899 On MIPS handle got16 relocations to local symbols in an ABI-compliant
900 way.
901
c36c73f6
VS
9022013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
903
904 Add support for a new magic symbol _gp_disp on mips to handle PIC
905 binaries.
906
6f4a19f5
VS
9072013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
908
909 Use $t9 for indirect calls from asm to C as PIC ABI requires.
910
0d8f04cd
VS
9112013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
912
913 Remove -march=mips3 from TARGET_CCASFLAGS as it creates linking problem
914 when rest of GRUB is compiled for hisher stepping. Instead use
915 .set mips3/.set mips1 around cache and sync opcodes.
916
49060520
VS
9172013-11-21 Vladimir Serbinenko <phcoder@gmail.com>
918
919 Unify GOT/trampoline handling between PPC, MIPS and IA64 as they
920 do essentially the same thing, do it in similar way.
921
c6a823e2
CW
9222013-11-21 Colin Watson <cjwatson@ubuntu.com>
923
924 * util/grub-mkrescue.c (main): If a source directory is not
925 specified, read platform-specific files from subdirectories of
926 pkglibdir, not pkgdatadir.
927
b7f9aedf
CW
9282013-11-21 Colin Watson <cjwatson@ubuntu.com>
929
930 * grub-core/normal/progress.c: Remove unused file.
931
7dd0a303
VS
9322013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
933
934 * grub-core/lib/crypto.c (grub_crypto_hash): Remove variable length
935 array.
936
ca120e31
VS
9372013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
938
939 * util/grub-mkconfig.in: Say explicit "grub configuration" rather
940 than grub.cfg.
941
48eb35cd
VS
9422013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
943
944 * coreboot.cfg: Add missing file.
945
7f20dbbc
VS
9462013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
947
948 * Makefile.am: Allow STRIP to be empty when creating windowszip.
949
55e706c9
AK
9502013-11-19 Axel Kellermann <axel.kellermann@gmx.de>
951
952 * util/grub.d/30_os-prober.in: Add GRUB_OS_PROBER_SKIP_LIST to
953 selectively skipping systems.
954
4e7d433d
CW
9552013-11-19 Colin Watson <cjwatson@ubuntu.com>
956
957 * Makefile.util.def (grub-mkimage): Add
958 grub-core/osdep/aros/config.c to extra_dist.
959 * conf/Makefile.extra-dist (EXTRA_DIST): Add docs/autoiso.cfg,
960 docs/osdetect.cfg, grub-core/gnulib-fix-null-deref.diff,
961 grub-core/gnulib-fix-width.diff, grub-core/gnulib-no-abort.diff, and
962 grub-core/gnulib-no-gets.diff.
963
7d44ff7d
VS
9642013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
965
966 Add automated filesystem checking based on scripts I've used now for
967 quite some time locally. Most of the test require root so they are
968 skipped when run without necessarry privelegies.
969
a8c3e5e3
CW
9702013-11-19 Colin Watson <cjwatson@ubuntu.com>
971
972 * util/grub-install.c (main): Adjust info messages to match
973 installed paths of grub-bios-setup and grub-sparc64-setup.
974
4402db3e
CW
9752013-11-19 Colin Watson <cjwatson@ubuntu.com>
976
977 * util/grub-install-common.c (copy_locales): Consistently use
978 grub_util_get_localedir () rather than LOCALEDIR.
979 (grub_install_copy_files): Likewise.
980
7960d3e1
JT
9812013-11-19 Josh Triplett <josh@joshtriplett.org>
982
983 * grub-core/kern/x86_64/efi/startup.S (_start): Align the stack to a
984 16-byte boundary, as required by the x86-64 ABI, before calling
985 grub_main. In some cases, GCC emits code that assumes this
986 alignment, which crashes if not aligned. The EFI firmware is also
987 entitled to assume that stack alignment without checking.
988
d53f4900
JT
9892013-11-18 Josh Triplett <josh@joshtriplett.org>
990
991 * grub-core/mmap/efi/mmap.c (grub_mmap_register): Round up/down to
992 4k page boundaries as expected by firmware rather than 1k
993 boundaries.
994 (grub_mmap_malign_and_register): Likewise.
995
bb2b275b
VS
9962013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
997
998 * tests/grub_func_test.in: Decrease RAM size to 512M. With less
999 fragmentation 512M is enough.
1000
45bf8b3a
VS
10012013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1002
1003 * grub-core/kern/mm.c (grub_real_malloc): Decrease cut-off of moving the
1004 pointer to 32K. This is the size of cache element which is the most
1005 common allocation >1K. This way the pointer is always around blocks
1006 of 32K and so we keep performance while decreasing fragmentation.
1007
39ff43c5
VS
10082013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1009
1010 * grub-core/kern/mm.c (grub_real_malloc): Don't update the pointer to
1011 current memory when allocating large chunks. This significantly
1012 decreases memory fragmentation.
1013
60870be8
CW
10142013-11-18 Colin Watson <cjwatson@ubuntu.com>
1015
1016 * tests/gzcompress_test.in: Skip if gzip is not installed (unlikely,
1017 but for symmetry).
1018 * tests/lzocompress_test.in: Skip if lzop is not installed.
1019 * tests/xzcompress_test.in: Skip if xz is not installed.
1020
a1f00cc5
CW
10212013-11-18 Colin Watson <cjwatson@ubuntu.com>
1022
1023 * util/grub-mkrescue.c (main): Fix typo.
1024
74e632fe
VS
10252013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1026
1027 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Update
1028 clock frequency to 200 MHz,
1029
efb8de49
VS
10302013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1031
1032 * tests/util/grub-shell.in: Increase console size to 1024x1024.
1033
b7526e78
VS
10342013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1035
1036 * Makefile.am (default_payload.elf): Add pata to loaded modules.
1037 Load config file from (cbfsdisk)/etc/grub.cfg.
1038
b40ce651
VS
10392013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1040
1041 * util/grub-install-common.c (grub_install_copy_files): Fix module
1042 destination directory.
1043
1e8e2e78
CW
10442013-11-18 Colin Watson <cjwatson@ubuntu.com>
1045
1046 * tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo
1047 files have not been built.
1048
3bf4088b
CW
10492013-11-18 Colin Watson <cjwatson@ubuntu.com>
1050
1051 * grub-core/osdep/unix/hostdisk.c (grub_util_make_temporary_file):
1052 Handle errors from mkstemp.
1053 (grub_util_make_temporary_dir): Handle errors from mkdtemp.
1054
35c2851c
VS
10552013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1056
1057 * tests/util/grub-shell.in: Use -cdrom and don't force cdrom
1058 on primary master on pseries.
1059
ea7c1a7d
VS
10602013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1061
1062 * grub-core/tests/videotest_checksum.c: Don't reload unifont if it's
1063 already loaded. This saves memory needed for tests,
1064
96adefdb
VS
10652013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1066
1067 * util/grub-mkrescue.c (main): Fix a typo to make yeeloong part
1068 work again.
1069
5e3cb8a7
VS
10702013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1071
1072 * grub-core/term/terminfo.c (grub_cmd_terminfo): Fix a typo to make -g
1073 work again.
1074
256ee7ac
VS
10752013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1076
1077 * tests/util/grub-shell.in: For powerpc tests put the CD-ROM as primary
1078 master since with some combinations of qemu and firmware only primary
1079 IDE channel is available.
1080
f8b4c3b6
VS
10812013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1082
1083 * grub-core/tests/gfxterm_menu.c: Skip high-resolution tests on
1084 low-memory platforms where we don't have enough memory for them.
1085 * grub-core/tests/videotest_checksum.c: Likewise.
1086
4bf70320
VS
10872013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1088
1089 * grub-core/tests/cmdline_cat_test.c: Don't reload unifont if it's
1090 already loaded. This saves memory needed for tests,
1091
a284320e
VS
10922013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1093
1094 Fix handling of install lists.
1095
2df8f43d
VS
10962013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1097
1098 * grub-core/lib/sparc64/setjmp.S: Force spilling of current window.
1099
6f1bc8bc
VS
11002013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1101
1102 On i386-ieee1275 we run in paged mode. So we need to explicitly map
1103 the devices before accessing them.
1104
04f39f6d
VS
11052013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1106
1107 * grub-core/lib/relocator.c (grub_mm_check_real): Accept const char *
1108 as file argument.
1109
35d4761c
VS
11102013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1111
1112 * grub-core/normal/cmdline.c (grub_cmdline_get): Plug memory leak.
1113
33d02a42
VS
11142013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1115
1116 * grub-core/kern/file.c (grub_file_open): Free file->name on failure.
1117 (grub_file_close): Free file->name.
1118
7bbb60cf
VS
11192013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1120
1121 * grub-core/commands/verify.c (free_pk): Plug memory leak.
1122 (grub_load_public_key): Likewise.
1123 (grub_verify_signature_real): Likewise.
1124 (grub_cmd_verify_signature): Likewise.
1125
da93d675
VS
11262013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1127
1128 * grub-core/commands/legacycfg.c (grub_legacy_check_md5_password): Plug
1129 memory leak.
1130
59c943ec
VS
11312013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1132
1133 * grub-core/lib/powerpc/setjmp.S (grub_setjmp): Save r31.
1134 (grub_longjmp): Restore r31.
1135 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Reserve space for r31.
1136
4336b5d8
VS
11372013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1138
1139 * util/grub-mkrescue.c (make_image_fwdisk_abs): Insert all partmap
1140 modules to be in line with make_image_abs.
1141
44ce3a93
VS
11422013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1143
1144 * include/grub/mips/setjmp.h (grub_jmp_buf): Fix buffer size.
1145
1146 setjmp.S uses 12 entries but buffer is declared with only 11 entries.
1147
7d400406
IC
11482013-11-17 Ian Campbell <ijc@hellion.org.uk>
1149
1150 * grub-core/disk/uboot/ubootdisk.c: Include SCSI disks.
1151
77dae919
VS
11522013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1153
1154 * tests/grub_func_test.in: Increase memory reservation as on EFI we need
1155 to leave some memory to firmware.
1156
0ab8e025
VS
11572013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1158
1159 * grub-core/tests/cmdline_cat_test.c (cmdline_cat_test): Ignore errors
1160 of loading gfxterm as gfxterm is embed in kernel on some platforms.
1161 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Likewise.
1162 Load gfxmenu.
1163
b80c2d6d
VS
11642013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1165
1166 * tests/core_compress_test.in: Use full arguments as grub-mkimage-extra
1167 now needs full arguments.
1168
6aa6077b
VS
11692013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1170
1171 * util/grub-mkrescue.c (main): Add trailing \n in
1172 .disk_label.contentDetails to be in line with previous shell script.
1173
66c00cb1
VS
11742013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1175
1176 * util/grub-mkrescue.c (main): Use right source file for bootinfo.txt.
1177
3a129dba
VS
11782013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1179
1180 * util/grub-install-common.c (grub_install_parse): Recognize
1181 --compress=none like shell script did.
1182
8df6eff6
VS
11832013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1184
1185 * include/grub/misc.h: Replace check for __sparc64__ with one for
1186 __sparc__ as __sparc64__ isn't actually defined.
1187
889ebe92
VS
11882013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1189
1190 * tests/util/grub-shell.in: Use escc-ch-b on powerpc. This is missing
1191 counterpart of fixing the naming of escc ports.
1192
d4d55b29
VS
11932013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1194
1195 * util/grub-install-common.c (platforms): Fix the order of entries and
1196 remove useless field val.
1197
55e2c84f
VS
11982013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1199
1200 * util/grub-install.c: Add new option --no-bootsector to skip
1201 installing of bootsector. Accept --grub-setup=/bin/true as
1202 backwards-compatible synonym.
1203
cd46aa6c
VS
12042013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
1205
1206 * util/grub-install.c (device_map_check_duplicates): Fix incorrect
1207 order of qsort arguments (number of elements vs. element size).
1208
12092013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1210
1211 Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir
1212 the function of these files exceeds what can be sanely handled in shell
1213 in posix-comaptible way. Also writing it in C extends the functionality
1214 to non-UNIX-like OS and minimal environments.
1215
9ef81064
VS
12162013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1217
1218 * grub-core/kern/arm/cache.S: Don't switch back to ARM mode when
1219 compiling to thumb2.
1220 * grub-core/kern/arm/cache_armv7.S: Likewise.
1221 * grub-core/lib/arm/setjmp.S: Likewise.
1222
11a77932
LL
12232013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
1224
1225 * grub-core/kern/arm/uboot/startup.S: delete superflouous save of r8
1226 in grub_uboot_syscall
1227
080603f0
VS
12282013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1229
1230 Decrease stack usage in lexer.
1231
1232 We have only 92K of stack and using over 4K per frame is wasteful
1233
1234 * grub-core/script/yylex.l (yyalloc), (yyfree), (yyrealloc): Declare
1235 as macros so that compiler would remove useless structure on stack.
1236 Better solution would be to fix flex not to put this structure on
1237 the stack but flex is external program.
1238
4f84ae0e
VS
12392013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1240
1241 Decrease stack usage in signature verification.
1242
1243 We have only 92K of stack and using over 4K per frame is wasteful
1244
1245 * grub-core/commands/verify.c (grub_load_public_key): Allocate on heap
1246 rather than stack.
1247 (grub_verify_signature_real): Likewise.
1248
e6a6182d
VS
12492013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1250
1251 Decrease stack usage in mdraid 0.9x.
1252
1253 We have only 92K of stack and using over 4K per frame is wasteful
1254
1255 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Allocate on heap
1256 rather than stack.
1257
1a454efe
VS
12582013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1259
1260 Decrease stack usage in BtrFS.
1261
1262 We have only 92K of stack and using over 4K per frame is wasteful
1263
1264 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Allocate on heap
1265 rather than stack.
1266
7b5d51d8
VS
12672013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1268
1269 Decrease stack usage in JFS.
1270
1271 We have only 92K of stack and using over 4K per frame is wasteful
1272
1273 * grub-core/fs/jfs.c (getblk): Allocate on heap rather than on
1274 stack. Note: this function is recursive.
1275 (grub_jfs_read_inode): Read only part we care about.
1276
593865b9
LL
12772013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
1278
1279 * grub-core/kern/arm/uboot/startup.S: fix grub_uboot_syscall va_arg
1280 handling
7b5d51d8 1281
31c0cd43
AB
12822013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
1283
1284 * configure.ac: Restore -nostdlib for libgcc symbols tests.
1285
c2fdb331
AB
12862013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
1287
1288 * docs/grub.texi (Environment): Document cmdpath.
1289
9e18dfe2
AB
12902013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
1291
1292 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
1293 Remove "unused" attribute from arguments, they are used.
1294
59ba9d14
CW
12952013-11-15 Colin Watson <cjwatson@debian.org>
1296
1297 * .gitignore: Only ignore grub-mk* at the top level.
1298
23012db9
CW
12992013-11-15 Colin Watson <cjwatson@ubuntu.com>
1300
1301 * util/grub-reboot.in (usage): Fix a typo.
1302
6fcec439
VS
13032013-11-15 Vladimir Serbinenko <phcoder@gmail.com>
1304
1305 Replace libgcc version of ctz with our own.
1306
1307 On upcoming arm64 port libgcc ctz* are not usable in standalone
1308 environment. Since we need ctz* for this case and implementation is
1309 in C we may as well use it on all concerned platforms.
1310
a9f25a08
VS
13112013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1312
1313 * configure.ac: Probe for linking format rather than guessing it based
1314 on target_os.
1315
c7995256
VS
13162013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1317
1318 * grub-core/disk/xen/xendisk.c (grub_xendisk_fini): Set state to
1319 "1" prior to handoff.
1320
1321 Reported by: M A Young.
1322
e1aa5b66
VS
13232013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1324
1325 * grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add
1326 \0 to all files.
1327
1328 Reported by: M A Young.
1329
da5ed5cf
VS
13302013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1331
1332 * grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
1333 compilation on NetBSD.
1334
5757a93e
VS
13352013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1336
1337 * acinclude.m4: Don't add -P on initial nm test.
1338
1339 Note: even though this patch postdates Andrey's it bears 14 Nov as
1340 date due to timezone difference.
1341
a5986276
AB
13422013-11-15 Andrey Borzenkov <arvidjaar@gmail.com>
1343
1344 * grub-core/Makefile.core.def (signature_test): Add missing
1345 tests/signatures.h.
1346
0de172a0
CW
13472013-11-14 Colin Watson <cjwatson@ubuntu.com>
1348
1349 * util/grub-install_header: Set localedir here, since this file is
1350 where it's used.
1351 * util/grub-install.in: Remove setting of localedir.
1352 * util/grub-mkrescue.in: Likewise.
1353
da45f43c
VS
13542013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1355
1356 * Makefile.am (default_payload.elf): Add uhci, ohci and usb_keyboard.
1357
20aea949
VS
13582013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1359
1360 * configure.ac: Move nm checks to the end.
1361 Call grub_PROG_NM_WORKS.
1362 * acinclude.m4: New check grub_PROG_NM_WORKS.
1363 Use $TARGET_CFLAGS -c when compiling test binary.
1364
1326b9ae
CW
13652013-11-14 Colin Watson <cjwatson@ubuntu.com>
1366
1367 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Remove
1368 unused variables.
1369
1fe26ab4
MG
13702013-11-14 Matthew Garrett <mjg@redhat.com>
1371
1372 * grub-core/kern/main.c (grub_set_prefix_and_root): Set variable
1373 cmdpath to firmware directory.
1374
83e9c273
VS
13752013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1376
1377 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Reset the pointer
1378 at the start of second iteration.
1379
ec525c18
VS
13802013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1381
1382 * grub-core/Makefile.am (efiemu64.o): Explicitly set link format.
1383
93fcc7ad
VS
13842013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1385
1386 * Makefile.am (default_payload.elf): New target for easier coreboot
1387 build.
1388
57ffe934
VS
13892013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1390
1391 * grub-core/kern/arm/cache_armv6.S: Remove special handling for
1392 clang (not necessarry with -no-integrated-as).
1393 * include/grub/symbol.h [__arm__]: Likewise.
1394
2312f06c
VS
13952013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1396
1397 * configure.ac: Use -no-integrated-as on arm with clang.
1398 * INSTALL: Mention ARM compilation with clang.
1399
2416415c
VS
14002013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1401
1402 * conf/Makefile.common (CCASFLAGS_PLATFORM) [COND_arm]: Add
1403 -mthumb-interwork.
1404
5da55172
CW
14052013-11-14 Colin Watson <cjwatson@ubuntu.com>
1406
1407 * grub-core/fs/ext2.c (grub_ext2_read_block): Factor out common
1408 code for indirect block handling.
1409
1410 Saves 185 bytes on compressed image.
1411
da770328
PFS
14122013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1413
1414 Fix make clean.
1415
1416 * Makefile.am: Remove build-grub-* in make clean.
1417
f02e6b56
PFS
14182013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1419
1420 New files to gitignore.
1421
1422 * .gitignore: Add build-grub-gen-asciih, build-grub-gen-widthspec,
1423 build-grub-mkfont, and grub-emu-lite. Remove .bzrignore.
1424
035a26c1
LL
14252013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
1426
1427 * grub-core/kern/arm/misc.S: Make thumb2-compatible.
1428
bc8a6137
LL
14292013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
1430
1431 * .gitignore: fix rules for .dep* and add *.a post git migration
1432
6fe506b0
CW
14332013-11-13 Colin Watson <cjwatson@ubuntu.com>
1434
1435 * configure.ac (AM_INIT_AUTOMAKE): Require at least version 1.10.1,
1436 to match INSTALL.
1437
81a2e438
CW
14382013-11-13 Colin Watson <cjwatson@ubuntu.com>
1439
1440 * grub-core/kern/misc.c: Don't redirect divisions in the
1441 GRUB_UTIL case.
1442 * include/grub/misc.h: Likewise.
1443
9b45c073
CW
14442013-11-13 Colin Watson <cjwatson@ubuntu.com>
1445
1446 * grub-core/osdep/unix/emuconsole.c (put): Pacify the compiler on
1447 systems that require checking the return value of write.
1448
11b2a9b7
CW
14492013-11-13 Colin Watson <cjwatson@ubuntu.com>
1450
1451 * util/grub-install.in (efi_quiet): Fix inverted logic: make
1452 efibootmgr quiet when --debug is not used, rather than when it is.
1453
d743d22d
CW
14542013-11-13 Colin Watson <cjwatson@ubuntu.com>
1455
1456 * gentpl.py (define_macro_for_platform_dependencies): Remove
1457 first (and thus unused) of two definitions for this function.
1458 (platform_dependencies): Likewise.
1459
11da14b5
CW
14602013-11-13 Colin Watson <cjwatson@ubuntu.com>
1461
1462 * acinclude.m4 (grub_apple_cc): Remove; since the removal of nested
1463 functions, we only need to check this for the target, not the host.
1464 * configure.ac (grub_apple_cc): Likewise.
1465
2bdd0719
VS
14662013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1467
1468 * grub-core/kern/arm/cache.c (probe_caches): Move asm part to ...
1469 * grub-core/kern/arm/cache_armv6.S: ... here. This allows this
1470 asm to stay in arm even if surrounding is thumb.
1471
5e77d9cf
VS
14722013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1473
1474 * grub-core/kern/arm/misc.S: Add __muldi3 and __aeabi_lmul. Those
1475 helper functions are needed for thumb.
1476
7d511625
VS
14772013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1478
1479 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
1480 level / 3 division explicitly unsigned. Saves few bytes.
1481
81023dbd
VS
14822013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1483
1484 * grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
1485
b2e9294f
VS
14862013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1487
1488 * grub-core/normal/datetime.c (grub_get_weekday): Use if rather than
1489 division.
1490
16a22c38
VS
14912013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1492
1493 * grub-core/kern/uboot/init.c: Move grub_uboot_machine_type and
1494 grub_uboot_boot_data to asm part.
1495
c9cd02c9
VS
14962013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1497
1498 * grub-core/kern/arm/uboot/startup.S: Remove = by replacing with
1499 literal load.
1500 (grub_uboot_syscall): Save/restore r9 and align stack.
1501
81498615
VS
15022013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1503
1504 * grub-core/kern/arm/cache.S: Replace = with explicit litteral load.
1505
ea57de18
VS
15062013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1507
1508 * include/grub/symbol.h (END) [__arm__]: New macros. Replace all .end
1509 occurencies with END.
1510
d0d1e3da
CW
15112013-11-13 Colin Watson <cjwatson@ubuntu.com>
1512
1513 * util/grub-editenv.c (help_filter, argp): Document how to delete
1514 the whole environment block.
1515 Reported by Dan Jacobson. Fixes Debian bug #726265.
1516
3809f016
CW
15172013-11-13 Colin Watson <cjwatson@ubuntu.com>
1518
1519 * docs/grub.texi (Internationalisation, Supported kernels): Fix
1520 sectioning.
1521
46d8a203
JT
15222013-11-13 Josh Triplett <josh@joshtriplett.org>
1523
1524 * grub-core/normal/term.c (grub_set_more): Use bool logic rather than
1525 increment/decrement.
1526
513eeb61
VS
15272013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1528
1529 * grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when
1530 compiling with clang.
1531
bc379c1a
VS
15322013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1533
1534 * grub-core/kern/arm/uboot/startup.S: Use .org rather than assigning
1535 ".".
1536
15372013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
286551b4 1538
16057d6b
VS
1539 Redirect all divisions to grub_divmod64.
1540
f649a6a8
VS
15412013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1542
1543 * grub-core/term/tparm.c (tparam_internal): Use unsigned divisions.
1544
ef28ee8b
VS
15452013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1546
1547 Add missing includes of loader.h.
1548
300f48c5
VS
15492013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1550
1551 * configure.ac: Allow disabling themes.
1552
2d357558
LS
15532013-11-12 Lukas Schwaighofer <lukas@schwaighofer.name>
1554
1555 * util/grub.d/20_linux_xen.in: Don't decompress initrd.
1556
0c62a5b2
VS
15572013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1558
1559 * grub-core/term/at_keyboard.c: Don't poll non-functional AT controller
1560 until it becomes operational.
1561
b0720b49
VS
15622013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1563
1564 * grub-core/Makefile.core.def (legacy_password_test): Disable
1565 on platforms where no legacycfg is compiled.
1566 * grub-core/tests/lib/functional_test.c: Tolerate failure to
1567 load legacy_password_test.
1568
d5bab2c0
VS
15692013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1570
1571 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
1572
3ea0ccb3
VS
15732013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1574
1575 * grub-core/efiemu/prepare.c: Remove variable length arrays.
1576
08772054
VS
15772013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1578
1579 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
1580 strict-aliasing warning.
1581 (fsync): Silence cast warning.
1582
1dcb2715
VS
15832013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1584
1585 * grub-core/commands/verify.c: Remove variable length arrays.
1586 Load gcry_dsa/gcry_rsa automatically.
1587
61c22fdf
VS
15882013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1589
1590 * grub-core/tests/signature_test.c: New test.
1591
431e57a7
VS
15922013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1593
1594 * grub-core/disk/cryptodisk.c (luks_script_get): Adapt to new procfs
1595 API.
1596
b521bb81
VS
15972013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1598
1599 * grub-core/tests/legacy_password_test.c (vectors): Make static.
1600 * grub-core/tests/pbkdf2_test.c (vectors): Likewise.
1601
7d06b24e
VS
16022013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1603
1604 * grub-core/tests/setjmp_test.c: Reset counter to 0 before starting.
1605
3bbeade4
VS
16062013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1607
1608 * grub-core/fs/proc.c: Allow \0 in proc files.
1609
ba82db7a
VS
16102013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1611
1612 * grub-core/tests/xnu_uuid_test.c: Fix assert message.
1613
801564c8
VS
16142013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1615
1616 * grub-core/tests/xnu_uuid_test.c: Fix copyright year.
1617
ac8cac1d
VS
16182013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1619
1620 * grub-core/fs/ext2.c: Remove variable length arrays.
1621
4b85f122
VS
16222013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1623
1624 * grub-core/lib/crypto.c (grub_crypto_cbc_decrypt): Remove variable
1625 length arrays.
1626
c35fcdc0
VS
16272013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1628
1629 * grub-core/disk/AFSplitter.c: Remove variable length arrays.
1630 * grub-core/disk/cryptodisk.c: Likewise.
1631 * grub-core/disk/geli.c: Likewise.
1632 * grub-core/disk/luks.c: Likewise.
1633
15decd26
VS
16342013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1635
1636 * grub-core/tests/legacy_password_test.c: New test.
1637 * grub-core/commands/legacycfg.c: Remove variable length arrays.
1638
9c6482b8
VS
16392013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1640
1641 * grub-core/lib/pbkdf2.c: Remove variable length arrays.
1642
41f26e0e
VS
16432013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1644
1645 * grub-core/tests/pbkdf2_test.c: New test.
1646
2def6616
VS
16472013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1648
1649 * grub-core/lib/xzembed/xz_dec_stream.c: Remove variable length arrays.
1650
9e34a34e
VS
16512013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1652
1653 * grub-core/io/lzopio.c: Remove variable length arrays.
1654
5ccaf904
VS
16552013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1656
1657 * include/grub/crypto.h: Add maximums on hash size and cipher block
1658 size.
1659
44a387e0
VS
16602013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1661
1662 * grub-core/commands/xnu_uuid.c: Remove variable length arrays.
1663
a388e255
VS
16642013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1665
1666 * grub-core/tests/xnu_uuid_test.c: New test.
1667
a1ef7718
VS
16682013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1669
1670 * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
1671 covers it).
1672
65ddb300
VS
16732013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1674
1675 * grub-core/commands/hashsum.c: Remove variable length arrays.
1676
31747dd5
VS
16772013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1678
1679 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
1680 condition.
1681 * tests/grub_func_test.in: Increase memory allocation.
1682
6a74c4df
VS
16832013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1684
1685 * grub-core/osdep/unix/getroot.c [HAVE_STRUCT_STATFS_F_FSTYPENAME
1686 && HAVE_STRUCT_STATFS_F_MNTFROMNAME]: Include sys/param.h and
1687 sys/mount.h.
1688
394c3e0a
VS
16892013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1690
1691 * grub-core/osdep/apple/hostdisk.c (grub_util_get_fd_size): Rename to ..
1692 (grub_util_get_fd_size_os): ...this.
1693 (grub_hostdisk_flush_initial_buffer): New empty function.
1694
60d31116
VS
16952013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1696
1697 * grub-core/gensyminfo.sh.in: Handle the case of portable output
1698 without --defined-only.
1699
8445b011
VS
17002013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1701
1702 * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
1703 rip-relative addressing in prologue.
1704
8506a641
VS
17052013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1706
1707 * include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
1708 * grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
1709
66acd9d6
VS
17102013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1711
1712 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
1713 Add missing semicolon.
1714
348d0535
VS
17152013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1716
1717 * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen.
1718
0d2d30bb
VS
17192013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1720
1721 * configure.ac: Check for lzma.h for enabling liblzma and allow
1722 manual disabling.
1723
631187be
VS
17242013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1725
1726 Add missing includes of loader.h.
1727
e756ec82
FZ
17282013-11-11 Fam Zheng <famcool@gmail.com>
1729
1730 * util/grub.d/30_os-prober.in: Add minix entry.
1731
87d62d7d
VS
17322013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1733
1734 * grub-core/loader/i386/coreboot/chainloader.c (load_segment): Use
1735 right buffer for temporary load.
1736
5460cfeb
VS
17372013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1738
1739 * grub-core/loader/i386/coreboot/chainloader.c: Support tianocore.
1740
89977306
VS
17412013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1742
1743 * grub-core/loader/i386/coreboot/chainloader.c: Support lzma-compressed
1744 payload.
1745
3617c59b
VS
17462013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1747
1748 * include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
1749 not Types.h.
1750 * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
1751 environment.
1752 (LzmaDec_InitDicAndState): Make static.
1753
881c6a10
VS
17542013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1755
1756 * util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
1757
2024ade2
VS
17582013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1759
1760 * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
1761
1762 Reported by: Aaro Koskinen <aaro.koskinen@iki.fi>
1763
674ad4f6
VS
17642013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1765
1766 * docs/grub-dev.texi: Replace bzr references with git ones.
1767
5b99970e
AB
17682013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
1769
1770 * docs/grub.texi (Simple configuration): Remove reference to
1771 grub-reboot from saved default entry description - grub-default
1772 does not use it anymore.
1773
3c2304d5
VS
17742013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1775
1776 * configure.ac: Make efiemu test cflags match the cflags efiemu is
1777 compiled with.
1778
80cfd940
AB
17792013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
1780
1781 * docs/grub.texi (Simple configuration): Document GRUB_DISABLE_SUBMENU.
1782
33690255
VS
17832013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1784
1785 Fix grub_machine_fini bitrot.
1786
1787 Reported by: Glenn Washburn.
1788
c61471fc
VS
17892013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1790
1791 * configure.ac: Remove leftover -fnested-funcions -Wl,-allow_execute.
1792
54da019f
VS
17932013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1794
1795 * grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and
1796 -DELF.
1797 * grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
1798 instead of ELF*.
1799
18002013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
28668d80
VS
1801
1802 * configure.ac: Restore CFLAGS to TARGET_CFLAGS before external tests.
1803 Add -march=core2 when testing compile of efiemu64.
1804
1805 Thanks Andrey Borzenkov for spotting this.
1806
9612ebc0
VS
18072013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
1808
1809 Add new ports: i386-xen and x86_64-xen. This allows running GRUB in
1810 XEN PV environment and load kernels.
1811
1a46a3a4
VS
18122013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
1813
1814 * grub-core/loader/i386/multiboot_mbi.c: Handle space in command line.
1815 * grub-core/loader/multiboot_mbi2.c: Likewise.
1816
2df12551
VS
18172013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
1818
1819 * grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
1820 handling.
1821
3c980381
VS
18222013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
1823
1824 * grub-core/commands/i386/cmostest.c: Add new command "cmosset".
1825
1826 Tested by: Denis 'GNUtoo' Carikli.
1827
800f63d3
VS
18282013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1829
1830 * grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
1831
9f8acdaa
VS
18322013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1833
5620eb53
VS
1834 * grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
1835 Use to get rounded angle rather than truncated.
1836
18372013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1838
1839 * grub-core/term/serial.c: Add option for enabling/disabling
9f8acdaa
VS
1840 RTS/CTS flow control.
1841
2dc1eb6c
VS
18422013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1843
1844 * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
1845 divisions.
1846
b9563c94
VS
18472013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1848
1849 * grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
1850 Use grub_fatal rather than divide by zero.
1851 * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
1852
d6d8e9a9
VS
18532013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1854
1855 * include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
1856 truncate.
1857 (grub_fixed_fsf_divide): Likewise.
1858
d06de6c8
VS
18592013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1860
1861 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Avoid
1862 division by-zero and senseless negative divisions.
1863
6af7d49b
VS
18642013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1865
1866 * grub-core/gfxmenu/gui_circular_progress.c (circprog_paint): Avoid
1867 division by-zero and senseless negative divisions.
1868 (circprog_set_property): Don't accept negative num_ticks.
1869
bcfa6d72
VS
18702013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1871
1872 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Avoid
1873 division by-zero and senseless negative divisions.
1874
dd7f792c
VS
18752013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1876
1877 * configure.ac: Use elf_*_fbsd on kfreebsd.
1878
d061fda7
VS
18792013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1880
1881 * grub-core/tests/div_test.c: New test.
1882
4db22500
VT
18832013-11-08 Vladimir Testov <vladimir.testov@rosalab.ru>
1884
1885 * grub-core/gfxmenu/gui_box.c: Updated to work with area status.
1886 * grub-core/gfxmenu/gui_canvas.c: Likewise.
1887 * grub-core/gfxmenu/view.c: Likewise.
1888 * grub-core/video/fb/video_fb.c: Introduce new functions:
1889 grub_video_set_area_status, grub_video_get_area_status,
1890 grub_video_set_region, grub_video_get_region.
1891 * grub-core/video/bochs.c: Likewise.
1892 * grub-core/video/capture.c: Likewise.
1893 * grub-core/video/video.c: Likewise.
1894 * grub-core/video/cirrus.c: Likewise.
1895 * grub-core/video/efi_gop.c: Likewise.
1896 * grub-core/video/efi_uga.c: Likewise.
1897 * grub-core/video/emu/sdl.c: Likewise.
1898 * grub-core/video/radeon_fuloong2e.c: Likewise.
1899 * grub-core/video/sis315pro.c: Likewise.
1900 * grub-core/video/sm712.c: Likewise.
1901 * grub-core/video/i386/pc/vbe.c: Likewise.
1902 * grub-core/video/i386/pc/vga.c: Likewise.
1903 * grub-core/video/ieee1275.c: Likewise.
1904 * grub-core/video/i386/coreboot/cbfb.c: Likewise.
1905 * include/grub/video.h: Likewise.
1906 * include/grub/video_fb.h: Likewise.
1907 * include/grub/fbfill.h: Updated render_target structure.
1908 grub_video_rect_t viewport, region, area
1909 int area_offset_x, area_offset_y, area_enabled
1910 * include/grub/gui.h: New helper function
1911 grub_video_bounds_inside_region.
1912 * docs/grub-dev.texi: Added information about new functions.
1913
c6b755df
VS
19142013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1915
1916 * grub-core/kern/mm.c (grub_real_malloc): Use AND rather than MOD
1917 for alignment.
1918
e2a68100
VS
19192013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1920
1921 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
1922 missing attribute.
1923 * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
1924
c4f11a2a
VS
19252013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1926
1927 * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
1928 simple division on arm and ia64.
1929
e0a7bffa
VS
19302013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1931
1932 * grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
1933 link with libgcc.
1934
38b864ea
VS
19352013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1936
1937 * include/grub/symbol.h (FUNCTION), (VARIABLE): Fix precedence logic.
1938
12359faf
VS
19392013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1940
1941 * include/grub/symbol.h (FUNCTION), (VARIABLE) [__arm__]: Use % as
1942 prefix symbol, not @.
1943
9fdc64a9
VS
19442013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1945
1946 * INSTALL: Add note about older gcc and clang.
1947
665c575b
VS
19482013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1949
1950 * tests/util/grub-shell.in: Boot as hdd on ppc by default.
1951
47dcf7b1
VS
19522013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1953
1954 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
1955 NULL pointer dereference.
1956
d59849b2
VS
19572013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
1958
1959 * grub-core/Makefile.am: Do not include libgcc.h when compiling with
1960 clang.
1961
7a3f4a18
VS
19622013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
1963
1964 * grub-core/kern/powerpc/dl.c: Add missing pragma to silence cast-align
1965 warnings.
1966
7f084087
VS
19672013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
1968
1969 * grub-core/net/net.c (grub_net_route_unregister): Remove unused
1970 function.
1971 * grub-core/loader/i386/xnu.c (hextoval): Likewise.
1972 * grub-core/disk/geli.c (ascii2hex): Likewise.
1973
d5524ca8
VS
19742013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
1975
1976 * configure.ac: Run linker tests without -Werror.
1977 Define TARGET_LDFLAGS_STATIC_LIBGCC and TARGET_LIBGCC.
1978 Change all occurences of -static-libgcc resp -lgcc to
1979 TARGET_LDFLAGS_STATIC_LIBGCC resp TARGET_LIBGCC.
1980
390cd7ca
VS
19812013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
1982
1983 * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
1984
60375a88
VS
19852013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
1986
1987 Allow compiling with clang (not really supported though).
1988
1989 * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
1990 unconditionally.
1991 * configure.ac: Add -no-integrated-as when using clangfor asm files.
1992 Add -mrtd -mregparm=3 on i386 when not using clang.
1993 * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
1994
dd07e0c4
VS
19952013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
1996
1997 * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
1998 bindings.
1999 * grub-core/lib/reed_solomon.c: Likewise.
2000 * include/grub/i386/gdb.h: Likewise.
2001 * include/grub/i386/pc/int.h: Likewise.
2002 * include/grub/i386/pc/pxe.h: Likewise.
2003 * include/grub/ieee1275/ieee1275.h: Likewise.
2004
9d3ae8ec
VS
20052013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2006
2007 Import libgcrypt 1.5.3.
2008
c12936c5
VS
20092013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2010
2011 * configure.ac: Don't add -Wcast-align on x86.
2012
cdc17f60
VS
20132013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2014
2015 * configure.ac: Add -freg-struct-return on all platforms that
2016 support it.
2017
b35ec299
VS
20182013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2019
2020 * acinclude.m4: Use -Werror on parameter tests.
2021 * configure.ac: Likewise.
2022
05f3a0d7
VS
20232013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2024
2025 * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
2026
c966a489
VS
20272013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2028
2029 * configure.ac: Check that -malign-loops works rather than assuming that
2030 either -falign-loops or -malign-loops work.
2031
bb0c57ec
VS
20322013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2033
2034 * configure.ac: Remove -fnested-functions. We don't need it anymore.
2035
24f4e57c
VS
20362013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2037
2038 * configure.ac: Prevent cflags leaking to subsequent tests by always
2039 resetting cflags to target_cflags in target tests.
2040
ac319fbc
VS
20412013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2042
2043 * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
2044 function.
2045
4bfe934c
VS
20462013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2047
2048 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
2049
40a5bfde
VS
20502013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2051
2052 * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
2053
a67c755e
VS
20542013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2055
2056 * grub-core/normal/cmdline.c (grub_cmdline_get):
2057 Remove nested functions.
2058
87a04a2d
VS
20592013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2060
2061 * tests/test_sha512sum.in: Make it work on emu.
2062
c03995d2
VS
20632013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2064
2065 * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
2066 functions.
2067 (grub_bidi_line_logical_to_visual): Likewise.
2068
ec0ebb3f
VS
20692013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2070
2071 Remove vestiges of -Wunsafe-loop-optimisations.
2072
2073 * conf/Makefile.common (CFLAGS_GNULIB): Remove
2074 -Wno-unsafe-loop-optimisations.
2075 * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
2076 pragma.
2077 * grub-core/io/gzio.c: Likewise.
2078 * grub-core/script/parser.y: Likewise.
2079 * grub-core/script/yylex.l: Likewise.
2080 * util/grub-mkfont.c: Likewise.
2081
6ab537e3
VS
20822013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2083
2084 * util/grub-mkfont.c (process_cursive): Remove nested function.
2085
e6c368d4
VS
20862013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2087
2088 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
2089 (grub_boot_time): Likewise.
2090
4f1cfd22
VS
20912013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2092
2093 * include/grub/symbol.h (FUNCTION): Use @function rather than
2094 "function".
2095 (VARIABLE): Likewise.
2096
6d5a4cee
VS
20972013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2098
2099 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
2100
f06c2172
VS
21012013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2102
2103 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
2104 (parse_dhcp_vendor): Likewise.
2105
7cb24eb5
VS
21062013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2107
2108 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
2109
f30c692c
VS
21102013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2111
2112 * grub-core/gettext/gettext.c (main_context), (secondary_context):
2113 Define after defining type and not before.
2114
8b66bb5d
VS
21152013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2116
2117 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
2118 type.
2119 (grub_gcm_decrypt): Likewise.
2120 (algo_decrypt): Likewise.
2121 (grub_zfs_decrypt_real): Transform error type.
2122
5d17fd0f
VS
21232013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2124
2125 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
2126
ac35a0f7
VS
21272013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2128
2129 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
2130 (grub_usbms_cbi_reset): Likewise.
2131 (grub_usbms_bo_reset): Likewise.
2132 (grub_usbms_reset): Likewise.
2133 (grub_usbms_attach): Likewise.
2134 (grub_usbms_transfer_cbi): Likewise.
2135
3ee08697
VS
21362013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2137
2138 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
2139 "checksum = checksum;".
2140
70bb6c85
VS
21412013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2142
2143 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
2144 entry_type.
2145
c7f34744
VS
21462013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2147
2148 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
2149 BIOS disk check.
2150
3f63b4d8
VS
21512013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2152
2153 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
2154 type.
2155 (grub_ehci_fini_hw): Likewise.
2156 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
2157
dac6ce73
VS
21582013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2159
2160 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
2161 return grub_usb_err_t for cosistency. All users updated.
2162
5701750c
VS
21632013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2164
2165 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
2166 assigning to itself.
2167
9e236169
GLD
21682013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
21692013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2170
2171 Issue separate DNS queries for ipv4 and ipv6
2172
2173 Adding multiple questions on a single DNS query is not supportted by
2174 most DNS servers. This patch issues two separate DNS queries
2175 sequentially for ipv4 and then for ipv6.
2176
2177 Fixes: https://savannah.gnu.org/bugs/?39710
2178
2179 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
2180 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
2181 * (grub_net_dns_lookup): Now using separated dns packages.
2182 * (grub_cmd_nslookup): Add error condition.
2183 * (grub_cmd_list_dns): Print DNS option.
2184 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
2185 --prefer-ipv4, and --prefer-ipv6.
2186 * include/grub/net.h (grub_dns_option_t): New enum.
2187 * (grub_net_network_level_address): option added.
2188
339eacce
VT
21892013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
2190
2191 * grub-core/video/fb/video_fb.c: Merge two blit functions
2192 into one.
2193
810f991b
VS
21942013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
2195
2196 * grub-core/term/terminfo.c: Add sequences for home and end.
2197
386571a2
VS
21982013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
2199
2200 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
2201 graphics console.
2202
3fe63754
VS
22032013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
2204
2205 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
2206 add mode 0x12.
2207
76681e71
VS
22082013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2209
2210 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
2211 e-mail by Per Öberg.
2212
46522fb7
VS
22132013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2214
2215 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
2216 name.
2217
e7d09ac4
AB
22182013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
2219
2220 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
2221 emu platforms.
2222 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
2223
67508925
VS
22242013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2225
2226 * docs/grub.texi: Document usage of menuentry id.
2227
0c62124e
VS
22282013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2229
2230 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
2231
9b5d4eed
PL
22322013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
2233
2234 * grub-core/commands/i386/nthibr.c: New command.
2235
79054c1d
VS
22362013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2237
2238 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
2239
44d47bbe
VS
22402013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2241
2242 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
2243 coordinate.
2244
323de05b
VS
22452013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2246
2247 Support GRUB_DISABLE_SUBMENU config.
2248
2249 Inspired by patch from Prarit Bhargava.
2250
5a01722e
VS
22512013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2252
2253 * docs/grub.texi: Mention RSA support.
2254
1106c3f0
VS
22552013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2256
2257 * grub-core/commands/verify.c: Add RSA support.
2258
a1dcc2cb
VS
22592013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2260
2261 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
2262 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
2263 device is known to be ATAPI.
2264
ee7fb780
MF
22652013-11-03 Mike Frysinger <vapier>
2266
2267 * configure.ac: Don't add target-prefix.
2268
5ade4a42
VS
22692013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2270
2271 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
2272 variables.
2273
6cd66043
VS
22742013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2275
2276 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
2277 if language is English.
2278
090d7c81
VS
22792013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2280
2281 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
2282
dd614590
VS
22832013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2284
2285 * configure.ac: Don't add -m32/-m64 on emu.
2286
a8686589 22872013-11-02 neil
2288
2289 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
2290 broken linux headers.
2291
fb9f12a0
VS
22922013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2293
2294 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
2295
e25f8e1f
VS
22962013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2297
2298 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
2299 Reed-Solomon recovery if more than half of redundancy info is 0.
2300
4685200f
VS
23012013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2302
2303 * util/grub-mount.c: Handle symlinks to directories.
2304
1397f0b5
VS
23052013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2306
2307 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
2308 find_file recursively for symlink.
2309
8b3e6eb6
VS
23102013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2311
2312 * tests/util/grub-shell.in: Copy themes.
2313
a0c9d5c6
VS
23142013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2315
2316 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
2317
5cf9459c
VS
23182013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2319
2320 * configure.ac: Use 0x8000 for address instead of 8000.
2321
e7b66a28
VS
23222013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2323
2324 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
2325 signature.
2326
203f53fb
VS
23272013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2328
2329 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
2330 variable.
2331
02663ee9
VS
23322013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2333
2334 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
2335
f169f65e
VS
23362013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2337
2338 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
2339 file_progress_read_hook.
2340 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
2341
2855a0fc
VS
23422013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2343
2344 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
2345 and double.
2346
bf0f3a8c
VS
23472013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
2348
2349 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
2350
cb72aa18
VS
23512013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
2352
2353 Rewrite blocklist functions in order to get progress when
2354 reading large extents and decrease amount of blocklist hook calls.
2355
896f9135
VS
23562013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
2357
2358 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
2359 of SI suffixes.
2360
89295a06
VS
23612013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
2362
2363 Support --base-clock for serial command to handle weird cards with
2364 non-standard base clock.
2365
eb03ede0
VS
23662013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
2367
2368 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
2369 strncpy.
2370 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
2371 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
2372 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
2373 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
2374 + strcpy rather than strncpy.
2375
8fbe5c7d
VS
23762013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
2377
2378 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
2379 (check_pool_label): Likewise. Fixes overflow.
2380 (nvlist_find_value): Fix comparison.
2381
e54b8f53
VS
23822013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
2383
2384 * include/grub/misc.h (grub_strcat): Removed. All users changed to
2385 more appropriate functions.
2386
fa9b3dca
VS
23872013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
2388
2389 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
2390 realloc.
2391
9a021c55
VS
23922013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
2393
2394 * util/grub-mkrescue.in: Do not use UUID search on EFI.
2395
80e8b13a
VS
23962013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
2397
2398 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
2399 on core size.
2400
b61599ac
VS
24012013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2402
2403 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
2404
a602dc54
VS
24052013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2406
2407 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
2408 (initialize_tables): reset tl and td to NULL after freeing.
2409
93c12075
VS
24102013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2411
2412 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
2413
1ca4b75e
VS
24142013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2415
2416 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
2417 of supported tags.
2418
329550c4
VS
24192013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2420
2421 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
2422
00bfa988
VS
24232013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2424
2425 * grub-core/loader/multiboot.c: Add support for multiboot kernels
2426 quirks.
2427
81afc5cc
VS
24282013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2429
2430 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
2431 a page in protected space.
2432
cb3c4a47
VS
24332013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2434
2435 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
2436 allocate space for zero-sized modules.
2437
954f7bf5
VS
24382013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2439
2440 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
2441
526d3d25
FL
24422013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
2443
2444 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
2445
74124c34
VS
24462013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2447
2448 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
2449 safeguards. Fixes a crash with i386/pc/console.c.
2450
5177391e
VS
24512013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2452
2453 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
2454 and grub_hostfs_init.
2455
64db14b0
VS
24562013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2457
2458 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
2459 windows method on other platforms without good stat as well.
2460
effe2036
VS
24612013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2462
2463 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
2464
82591fa6 24652013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
e11cb726 2466
82591fa6
VS
2467 Make / in btrfs refer to real root, not the default volume.
2468 Modify mkrelpath to work even if device is mounted with subvolid option.
2469
24702013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
2471
2472 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
e11cb726
AB
2473 extra_dist.
2474 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
2475 extra_dist.
2476
30fd7198
VS
24772013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
2478
2479 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
2480 fails.
2481
8d179dae
BC
24822013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
2483
2484 * docs/autoiso.cfg: New file.
2485
3bc9c8cf
VS
24862013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
2487
2488 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
2489 COND_GRUB_PE2ELF conditions.
2490
8b46b0ea
VS
24912013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
2492
2493 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
2494 "vnd", "rd" and "fd" disks.
2495
442b86de
VS
24962013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
2497
2498 Move grub_disk_write out of kernel into disk.mod.
2499
04dea7e6
VS
25002013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
2501
2502 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
2503 handling.
2504
25052013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
a8f15bce
VS
2506
2507 * grub-core/kern/misc.c (grub_abort): Make static
2508
04dea7e6 25092013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
a60dae7e
VS
2510
2511 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
2512 transform invalid unicode codepoints.
2513
04dea7e6 25142013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
891b713b
VS
2515
2516 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
2517 \0 checking.
2518
03dcac7f
VS
25192013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
2520
2521 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
2522
c81acb7f
VS
25232013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2524
2525 Consolidate cpuid code.
2526
c1bee646
VS
25272013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2528
2529 Move cpuid code to cpuid.h and TSC code to tsc.c.
2530
f37bf9c7
GS
25312013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
2532
2533 * util/grub.d/00_header.in: Don't use LANG if it's not set.
2534
4021132b
GS
25352013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
2536
2537 * util/grub-mkconfig.in: Replace $0 with $self.
2538 * util/grub-reboot.in: Likewise.
2539 * util/grub-set-default.in: Likewise.
2540
3ace8d75
BC
25412013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
2542
2543 * docs/osdetect.cfg: New file.
2544
1e6ad6a6
BC
25452013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
2546
2547 * tests/util/grub-shell.in: Add new --debug option.
2548
188929eb
BC
25492013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
2550
2551 * tests/test_unset.in: New test.
2552
7994a09a
BC
25532013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
2554
2555 * tests/test_sha512sum.in: New test.
2556
2a8a7585
VS
25572013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2558
2559 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
2560 * include/grub/misc.h: Remove strncat.
2561 * grub-core/lib/posix_wrap/string.h: Likewise.
2562
cf8d6bbd
VS
25632013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2564
2565 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
2566 Try to handle more than 0xFFFF packets.
2567 Reported by: Bernhard Übelacker <bernhardu>.
2568 He also spotted few overflows in first version of this patch.
2569
6d1fc99a
VS
25702013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2571
2572 * tests/date_unit_test.c: New test.
2573
10bafa1c
VS
25742013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2575
2576 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
2577 of first three years after start of validity of unixtime.
2578
b1c6d037
VS
25792013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2580
2581 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
2582 division as the one making more sense.
2583 (update_screen): Likewise.
2584 (complete): Likewise.
2585
5f4028d4
VS
25862013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2587
2588 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
2589
a2856736
VS
25902013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2591
2592 Make char and string width grub_size_t rather than grub_ssize_t.
2593
0a7e52b2
VS
25942013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2595
2596 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
2597 unsigned.
2598 (grub_history_replace): Likewise.
2599
42829573
VS
26002013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2601
2602 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
2603 appropriate.
2604
3523b8d8
VS
26052013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2606
2607 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
2608 appropriate.
2609
d43c6489
VS
26102013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2611
2612 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
2613 Use unsigned divisions rather than signed variants.
2614
f690f8b0
VS
26152013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2616
2617 * grub-core/video/readers/png.c (grub_png_convert_image): Use
2618 unsigned arithmetics.
2619 Add missing break.
2620
74ff2c05
VS
26212013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2622
2623 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
2624
fb56391e
VS
26252013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2626
2627 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
2628 rather than signed one.
2629 (recovery): Likewise.
2630
40f29060
VS
26312013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2632
2633 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
2634
c64577a5
VS
26352013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2636
2637 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
2638 than signed.
2639
c16535a8
JM
26402013-10-25 Jon McCune <jonmccune@google.com>
2641
2642 * docs/grub.texi: Cleanup security documentation around signatures.
2643
6673d8e7
VS
26442013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2645
2646 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
2647
a105d375
VS
26482013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2649
2650 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
2651 than int.
2652
af81ed88
VS
26532013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2654
2655 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
2656 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
2657 functions when compiling for kernel.
2658
ea899a57
VS
26592013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2660
2661 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
2662 unsigned long long when using %llu.
2663
c6dc6fa1
VS
26642013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2665
2666 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
2667 terminal after updating progress.
2668
ad2dc003
VS
26692013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2670
2671 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
2672 argument. We don't disable Gate A20 in this code.
2673
b46684ae
VS
26742013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2675
2676 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
2677 Conceptually based on change in branch "vbe-on-coreboot".
2678
f70d5c07
RM
26792013-10-24 Robert Millan <rmh@gnu.org>
2680
2681 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
2682 numeric constants with their symbolic equivalent.
2683 Taken from branch "vbe-on-coreboot".
2684
bca274b4
VS
26852013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
2686
2687 * docs/grub.texi: Fix ordering and use pxref rather than xref.
2688
238f0489
VS
26892013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
2690
2691 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
2692 divmod64 for offset division.
2693
863c590b
PFS
26942013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2695
2696 Rename .bzrignore to .gitignore. Add "*.o" rule.
2697
2698 * .bzrignore: Renamed to...
2699 * .gitignore: ...this.
2700
84a0e969
PFS
27012013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2702
2703 Add new progress module that displays the load progress of files.
2704
2705 * grub-core/lib/progress.c: New file.
2706 * grub-core/Makefile.core.def (progress): New module.
2707 * grub-core/kern/file.c (grub_file_open): File name added.
2708 * (grub_file_read): Progress hook added.
2709 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
2710 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
2711 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
2712 * include/grub/file.h (struct grub_file): Add progress module members.
2713 * include/grub/term.h (struct grub_term_output): Likewise.
2714 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
2715 Terminal velocity added.
2716 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
2717 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
2718 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
2719 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
2720 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
2721 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
2722 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
2723 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
2724 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
2725 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
2726 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
2727 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
2728
0d711431
VS
27292013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
2730
2731 Verify signatures of signatures unless --skip-sig is specified.
2732
f8401f76
VS
27332013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
2734
2735 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
2736 \0 checking.
2737
2738 Saves 70 bytes on compressed image.
2739
ac1feb61
VS
27402013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
2741
2742 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
2743 check.
2744
2745 Saves 10 bytes on compressed image.
2746
00f72e89
VS
27472013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
2748
2749 * grub-core/kern/misc.c (grub_isprint): Move to ...
2750 * include/grub/misc.h (grub_isprint): ... here. Make inline.
2751
2752 Saves 20 bytes on compressed image due to remving exporting.
2753
067e6ae7
VS
27542013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
2755
2756 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
2757
2758 Saves 5 bytes on compressed image.
2759
64a6c791
VS
27602013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
2761
2762 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
2763 function get_utf8.
2764
2765 Saves 379 bytes on compressed image.
2766
979d9f52
VS
27672013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
2768
2769 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
2770
1437da54
VS
27712013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
2772
2773 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
2774
2775 Saves 40 bytes on compressed image.
2776
d9ee2269
VS
27772013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
2778
2779 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
2780 mask rather than 64-bit type.
2781
2782 Saves 20 bytes on compressed image.
2783
63efa602
VS
27842013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
2785
2786 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
2787 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
2788
47601ffe
VS
2789 Saves 273 bytes on compressed image.
2790
2cc679ad
VS
27912013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
2792
2793 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
2794 variable length arrays.
2795
2796 Saves 50 bytes on compressed image.
2797
2e4659b8
VS
27982013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
2799
2800 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
2801
2a40badf
VS
28022013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
2803
2804 * grub-core/fs/ufs.c: Remove variable length arrays.
2805
1ba6b9b9
VS
28062013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
2807
2808 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
2809
f3e39341
VS
28102013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
2811
2812 * grub-core/fs/zfs.c: Remove variable length arrays.
2813 Reduces zfs.mod by 160 bytes (208 compressed).
2814
71523935
VS
28152013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
2816
2817 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
2818
28153eb8
VS
28192013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
2820
2821 * grub-core/net/arp.c: Remove variable length arrays.
2822 * grub-core/net/bootp.c: Likewise.
2823 * grub-core/net/dns.c: Likewise.
2824 * grub-core/net/icmp6.c: Likewise.
2825 * grub-core/net/net.c: Likewise.
2826
88ce4cd7
VS
28272013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
2828
2829 * grub-core/fs/ntfs.c: Remove variable length arrays.
2830 Increases ntfs.mod by 64 bytes (but decreases by 3 when
2831 compressed).
2832
66123940
VS
28332013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
2834
2835 * grub-core/fs/hfs.c: Remove variable length arrays.
2836 Reduces hfs.mod by 8 bytes (52 compressed).
2837
0927e5bd
VS
28382013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
2839
2840 * grub-core/fs/udf.c: Remove variable length arrays.
88ce4cd7 2841 Increases udf.mod by 128 bytes (but decreases by 13 when
0927e5bd
VS
2842 compressed).
2843
9c12ac97
VS
28442013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
2845
2846 * grub-core/fs/iso9660.c: Remove variable length arrays.
88ce4cd7 2847 Increases iso9660.mod by 200 bytes (but decreases by 79 when
9c12ac97
VS
2848 compressed).
2849
97ec2d71
VS
28502013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
2851
2852 * grub-core/fs/nilfs2.c: Remove variable length arrays.
88ce4cd7 2853 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
97ec2d71
VS
2854 compressed).
2855
156e4ea0
VS
28562013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
2857
2858 * grub-core/fs/xfs.c: Remove variable length arrays.
2859 Reduces xfs.mod by 40 bytes (43 compressed).
2860
3b502c29
VS
28612013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
2862
2863 * grub-core/fs/fshelp.c: Remove variable length arrays.
2864 Reduces fshelp.mod by 116 bytes (23 compressed).
2865
c7037f1d
VS
28662013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
2867
2868 * grub-core/normal/completion.c: Remove variable length arrays.
2869 * grub-core/normal/menu_entry.c: Likewise.
2870
2871 Reduces normal.mod by 496 bytes.
2872
a07e6ad0
VS
28732013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
2874
2875 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
2876 by 356 bytes (158 compressed).
2877
2359bf88
VS
28782013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
2879
2880 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
2881 by 364 bytes (169 compressed).
2882
d28e1163
VS
28832013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
2884
2885 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
2886 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
2887 * include/grub/types.h (grub_unaligned_uint64_t): New type.
2888
e89c2d48
VS
28892013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2890
2891 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
2892 bitmasks to small structures of size chosen to fit in registers.
2893
7abdac8e
VS
28942013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2895
2896 * conf/Makefile.common: Use -freg-struct-return on i386. This
2897 decreases code size and improves performance.
2898
518864c0
VS
28992013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2900
2901 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
2902
bbd2b539
VS
29032013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2904
2905 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
2906 "(null)" string.
2907 Simplify expressions to save around 256 bytes in kernel.img.
2908 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
2909
99519c15
VS
29102013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2911
2912 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
2913 Use GRUB_UTIL_FD_O_* rather than O_*.
2914
20285765
VS
29152013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2916
2917 Add haiku-specific functions.
2918
887c0bb6
VS
29192013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2920
2921 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
2922
cd78a56f
VS
29232013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2924
2925 Move stat () and device mode checking into OS-dependent files as
2926 long as performance doesn't suffer.
2927
a4012f07
VS
29282013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2929
2930 Split make_system_path_relative_to_its_root into separate file
2931 relpath.c from getroot.c as it's common between unix and haiku
2932 but otherwise haiku doesn't use any functions from unix getroot.c.
2933
31de274d
VS
29342013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2935
2936 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
2937 New function.
2938 (grub_util_is_special_file): Likewise.
2939
40346de6
VS
29402013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2941
2942 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
2943 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
2944
d3923ab9
VS
29452013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2946
2947 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
2948 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
2949
663f6eb1
VS
29502013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2951
2952 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
2953 (load_image): Likewise.
2954
44d1c20a
VS
29552013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2956
2957 * util/grub-render-label.c: Move backend part to ...
2958 * util/render-label.c: ... here.
2959
d0a116ee
VS
29602013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
2961
2962 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
2963 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
2964
b47fcae6
VS
29652013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
2966
2967 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
2968
0f7c00c1
VS
29692013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
2970
2971 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
2972 CD-ROM in case when it's declared as having subpartitions.
2973
29013cba
VS
29742013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
2975
2976 Don't add -lm on haiku.
2977
2978 * configure.ac: Define BUILD_LIBM to -lm on most platforms
2979 and empty on haiku.
2980 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
2981 -lm.
2982
e8559d24
VS
29832013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
2984
2985 * configure.ac: Use -melf_*_haiku as target on haiku.
2986
8104063c
VS
29872013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
2988
2989 * Makefile.util.def: Add util/setup.c to extra_dist.
2990
fc3182c7
VS
29912013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
2992
2993 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
2994 unknown types through.
2995
f90a3cc0
VS
29962013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
2997
2998 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
2999 (grub_util_check_char_device): Likewise.
3000 * include/grub/emu/getroot.h: Likewise.
3001
1e3e7419
VS
30022013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3003
3004 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
3005 memset rather than inline static function.
3006
92c88fc8
VS
30072013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3008
3009 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
3010 not doing embedded decompressor.
3011
3cd910a2
VS
30122013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3013
3014 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
3015 shadowing.
3016 * grub-core/kern/disk.c: Likewise.
3017 * grub-core/kern/misc.c: Likewise.
3018 * include/grub/parser.h: Likewise.
3019 * include/grub/script_sh.h: Likewise.
3020 * include/grub/zfs/zfs.h: Likewise.
3021
7b3aca00
VS
30222013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3023
3024 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
3025
97dfe7e4
VS
30262013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3027
3028 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
3029 defined before trying to use it.
3030
bf919aa9
VS
30312013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3032
3033 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
3034 warning.
3035
f4ccf29d
VS
30362013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3037
3038 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
3039 Use __unused__ rather than __used__ on gcc < 3.2.
3040
0d3a6f85
VS
30412013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3042
3043 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
3044 gcc < 4.0.
3045 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
3046
757e3eb7
VS
30472013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3048
3049 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
3050
fb320faf
VS
30512013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3052
3053 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
3054 * include/grub/emu/misc.h: Likewise.
3055
ea73acd2
VS
30562013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3057
3058 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
3059 cur_color.
3060
71237a6f
VT
30612013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
3062
3063 * grub-core/tests/checksums.h: Regenerated due to progress bar
3064 get_minimal_size changes.
3065
3d46c22f
BC
30662013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
3067
3068 Added `tr' command support.
3069
3070 * grub-core/commands/tr.c: New file.
3071 * grub-core/Makefile.core.def: Build rules for new module.
3072
3073 * tests/grub_cmd_tr.in: New test.
3074 * Makefile.util.def: Build rules for new test.
3075
47e0a61f
VT
30762013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
3077
3078 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
3079
946fd073
VT
30802013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
3081
3082 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
3083 * docs/gurb.texi: Likewise.
3084
9c13c576
VT
30852013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
3086
3087 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
3088 Pixmap highlighted section with east and west slices was displayed
3089 incorrectly due to negative width of the central slice.
3090
ad543f12
VT
30912013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
3092
3093 * docs/grub.texi: Graphical options information update.
3094 Removed outdated. Updated current. Inserted missed.
3095
6176a0cd
VS
30962013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3097
3098 * docs/grub.texi: Mention few new platform-specific commands.
3099
9688cae2
VS
31002013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3101
3102 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
3103 currently used so this doesn't really have any effect.
3104 Reported by: Douglas Ray <dougray>
3105
f7b69a3f
VS
31062013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3107
3108 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
3109 compilation but prevents gcc from displaying messages in non-Latin
3110 alphabets.
3111 * conf/Makefile.common: Likewise.
3112
ceca6ddf
HY
31132013-10-16 Hiroyuki YAMAMORI
3114
3115 Handle Japanese special keys.
3116 Reported by: Hiroyuki YAMAMORI.
3117 Codes supplied by: Hiroyuki YAMAMORI.
3118
ac48d334
VT
31192013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
3120
3121 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
3122
b2b71bff
VT
31232013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
3124
3125 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
3126 * docs/grub.texi: Likewise.
3127
669fc449
VS
31282013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3129
3130 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
3131 value in case of incomplete read.
3132 (grub_util_fd_write): Likewise.
3133
59381678
VS
31342013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3135
3136 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
3137
bacfefbb
VS
31382013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3139
3140 * util/grub-editenv.c (create_envblk_file): More from here ...
3141 * util/editenv.c (grub_util_create_envblk_file): ... to here.
3142
f7c49570
VS
31432013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3144
3145 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
3146 canonicalize file name before doing the rest.
3147
7b83ca44
VS
31482013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3149
3150 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
3151 mingw32.
3152
df1e64c9
VS
31532013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3154
3155 Define grub_util_is_directory/regular/special_file and
3156 use OS-dependent versions rather than to rely on stat().
3157
ec16e026
VS
31582013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3159
3160 * util/grub-mkimage.c: Move backend part to ...
3161 * util/mkimage.c: ... here.
3162
4b4eeb3c
VS
31632013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3164
3165 Allow compilation with mingw64 albeit with warnings due to lack of
3166 %llx/%llu.
3167
3168 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
3169 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
3170 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
3171 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
3172 on mingw64.
3173 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
3174
f4e0adc0
VS
31752013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3176
3177 Remove leftover references to some of the system headers.
3178
e0127364
VS
31792013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3180
3181 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
3182 read.
3183
20d53541
VS
31842013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3185
3186 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
3187 of strerror.
3188
5a869940
VS
31892013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3190
3191 Split out blocklist retrieving from setup.c to
3192 grub-core/osdep/blocklist.c and add windows implementation since
3193 generic version doesn't work on NTFS on Windows due to aggressive
3194 unflushable cache.
3195
c06c7520
VS
31962013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3197
3198 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
3199 files.
3200
8f53bb3f
VS
32012013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3202
3203 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
3204 Cut tailing newline. Remove arbitrary limitation. Always use
3205 grub_util_tchar_to_utf8.
3206
148f1007
VS
32072013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3208
3209 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
3210 * tests/printf_unit_test.c (printf_test): Add %% tests.
3211 Reported by: Paulo Flabiano Smorigo.
3212
af3b06be
VS
32132013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3214
3215 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
3216 implement fsync.
3217
27f9d02e
VS
32182013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3219
3220 * configure.ac: Check for nvlist_lookup_string in nvpair since we
3221 use nvlist_lookup_string and don't use nvlist_print.
3222
f6a81f0a
VS
32232013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3224
3225 Add wrappers around rename, unlink, mkdir, opendir, readdir and
3226 closedir to handle filename charset translation.
3227
d7750b32
VS
32282013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3229
3230 * include/grub/emu/hostdisk.h: Move file operations to
3231 * include/grub/emu/hostfile.h: ... here.
3232
2859196e
VS
32332013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3234
3235 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
3236 unicode path.
3237
c018c968
VS
32382013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3239
3240 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
3241
7e45abce
VS
32422013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3243
3244 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
3245 and remove export.h.
3246
23934da2
VS
32472013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3248
3249 * grub-core/kern/emu/error.c: Removed.
3250 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
3251 explicitly as it's already in libgnu.a.
3252
c11ebcc8
VS
32532013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3254
3255 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
3256 config-util.h include.
3257
70671037
VS
32582013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3259
3260 Split emunet into platform-dependent and GRUB-binding parts. Keep
3261 platform-dependent part in kernel for easy access to OS functions.
3262
25ac643a
VS
32632013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3264
3265 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
3266 open/read/write.
3267
69ca5876
VS
32682013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3269
3270 * grub-core/osdep/windows/emuconsole.c: New file.
3271
d9d68ef0
AB
32722013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
3273
3274 * conf/Makefile.extra-dist: Add osdep/*/init.c
3275
58e211cc
VS
32762013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3277
3278 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
3279
588744d0
VS
32802013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3281
3282 * util/grub-probe.c (probe): Separate different drives in hint-str
3283 by spaces and not newlines.
3284 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
3285
44016e52
AB
32862013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
3287
3288 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
3289 Handle CD-ROMs.
3290
6de9ee86
VS
32912013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3292
3293 Pass-through unknown E820 types. It required reorganisation of mmap
3294 module.
3295
f8f3f155
AB
32962013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
3297
3298 * Makefile.util.def: Add osdep/init.c to grub-mount files.
3299
b73249d2
VS
33002013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3301
3302 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
3303 fseeko.
3304
dac86b18 33052013-10-14 qwertial <qwertial>
3306
3307 * grub-core/gdb_grub.in: Fix overflow and wrong field.
3308
17614b84
JM
33092013-10-14 Jon McCune <jonmccune@google.com>
3310
3311 * docs/grub.texi: Document new signatures possibility.
3312
6de292cb
VS
33132013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3314
3315 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
3316
84379b61
VS
33172013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3318
3319 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
3320 missing prototype.
3321 (grub_util_tchar_to_utf8): Likewise.
3322
21d85db1
VS
33232013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3324
3325 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
3326 * grub-core/kern/emu/main.c: Add missing include.
3327 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
3328 Don't call grub_util_init_nls.
3329 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
3330 Likewise.
3331
66a1b3ee
VS
33322013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
3333
3334 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
3335 stat.
3336
e19bec17
VS
33372013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
3338
3339 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
3340
ee8c1b29
VS
33412013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
3342
3343 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
3344
bb338aaf
VS
33452013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
3346
3347 Add a wrapper for fopen. On unix-like systems just pass-through. On
3348 windows use unicode version.
3349
ae5540d3
VS
33502013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
3351
3352 Move set_program_name and init_nls to host_init. On windows
3353 fix in this fuction console and argument charset as well.
3354
4cd3c4fe
AB
33552013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
3356
3357 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
3358 GRUB_ENABLE_CRYPTODISK.
3359
3360 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
3361 GRUB_ENABLE_CRYPTODISK.
3362 * util/grub-mkconfig_lib.in: Likewise.
3363
78170f3e
CCZ
33642013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
3365
3366 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
3367
3414b6c0
MC
33682013-10-12 Melki Christian <Christian.melki@saabgroup.com>
3369
3370 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
3371 error when enabling debug.
3372
6d0740e8
IB
33732013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
3374
3375 * configure.ac: Use -melf_*_obsd on openbsd.
3376
ff2d4dc4
VS
33772013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
3378
3379 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
3380
eac6ae82
VS
33812013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
3382
3383 * include/grub/misc.h: Use gnu_printf rather than printf as format
3384 template since our functions are independent of libc.
3385
ba9baabe
VS
33862013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
3387
3388 * util/grub-setup.c (setup): Move copying of partition table as
3389 futher up as possible to avoid possible overwrite by floppy routines.
3390
33912013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
60d4f0bb
VS
3392
3393 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
3394
145e2369
VT
33952013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
3396
3397 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
3398 * docs/grub.texi: Likewise.
3399
3530bc9d
VS
34002013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
3401
3402 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
3403 it's mostly unused. Move vestiges to the callers.
3404
fb9f59c3
VS
34052013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
3406
3407 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
3408 version of salt and hash. Use grub_snprintf rather than snprintf.
3409
9be1c255
VS
34102013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
3411
3412 * docs/grub.texi: Fix problem with braces.
3413
ed8c0887
VS
34142013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
3415
3416 * conf/Makefile.extra-dist: Fix extra-dist list.
3417 * grub-core/Makefile.core.def: Likewise.
3418
f72ab14e
VS
34192013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
3420
3421 * docs/grub.texi: Document disk names used on Windows and AROS.
3422
2fe53a22
VS
34232013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
3424
3425 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
3426 with AROS devs.
3427 * grub-core/osdep/aros/hostdisk.c: Likewise.
3428
71c1d67a
VS
34292013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
3430
3431 Avoid including hostfile.h when not necessarry as it pulls
3432 in OS-specific headers which may redefine generic names
3433 like "far".
3434
ad297ec7
VT
34352013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
3436
3437 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
3438 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
3439 scrollbar_bottom_pad
3440 * docs/grub.texi: Likewise.
3441
6e9e5dc9
VT
34422013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
3443
3444 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
3445
761c718b
VS
34462013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
3447
3448 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
3449
37149a2f
VS
34502013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
3451
3452 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
3453 Removed.
3454 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
3455 Made static.
3456
3837a151
VS
34572013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
3458
3459 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
3460 leftover.
3461
caca1c70
VS
34622013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
3463
3464 Move OS-specific driver configuration to grub_util_fd_open. This
3465 moves OS-dependent parts from kern/emu/hostdisk.c to
3466 grub-core/osdep/*/hostdisk.c.
3467
f7676b70
VS
34682013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
3469
3470 * util/grub-mkimage.c (generate_image): Use size_t instead of
3471 grub_size_t.
3472 * util/grub-mkimagexx.c (locate_sections): Likewise.
3473 (load_image): Likewise.
3474
22f98db2
VS
34752013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
3476
3477 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
3478 size_t.
3479 (grub_util_write_image): Likewise.
3480
b102ce69
VS
34812013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3482
3483 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
3484 get random when no RNG is available.
3485 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
3486
acbbe5cb
VS
34872013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3488
3489 * include/grub/util/lvm.h: Removed.
3490
2112fb3f
VS
34912013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3492
3493 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
3494 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
3495
79f78fbf
VS
34962013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3497
3498 * grub-core/osdep/windows/sleep.c: Add missing config.h.
3499
c2e6f705
VS
35002013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3501
3502 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
3503
aabe433a
VS
35042013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3505
3506 * grub-core/net/drivers/emu/emunet.c: Move to ..
3507 * grub-core/osdep/linux/emunet.c: ..here.
3508
9a2c903f
VS
35092013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3510
3511 * util/ieee1275/ofpath.c: Move to ...
3512 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
3513 * grub-core/osdep/basic/ofpath.c: ..here.
3514
4a445f58
VS
35152013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3516
3517 Move password-querying (util-version) routines to grub-core/osdep.
3518
c1ca4244
VS
35192013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3520
3521 Move sleep routines to grub-core/osdep.
3522
672fa55e
VS
35232013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3524
3525 Move OS-dependent files to grub-core/osdep and document it.
3526
a5b0365a
VS
35272013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3528
3529 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
3530 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
3531
29072e99
VS
35322013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3533
3534 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
3535
f8772ea7
VS
35362013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3537
3538 * util/misc.c: Remove leftover inclusion of malloc.h.
3539
a1a315e7
VS
35402013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3541
3542 * include/grub/setjmp.h: Remove leftover GRUBOF.
3543
cef86fef
VS
35442013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3545
3546 * util/raid.c: Fold into ...
3547 * util/getroot_linux.c: ... here. Make all functions static.
3548
c4cf25ee
VS
35492013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3550
3551 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
3552 macros to GRUB ones.
3553
53a5f5c2
VT
35542013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3555
3556 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
3557 occasional bug. If there are too many boot entries or too low
3558 scrollbar height then we need to use another formula to calculate
3559 the position and size of the scrollbar thumb.
3560
de300af2
VS
35612013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3562
c4cf25ee 3563 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
de300af2 3564
c5827364
VT
35652013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3566
3567 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
3568 * docs/grub.texi: Likewise.
3569
dd2ed8b0
VT
35702013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3571
3572 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
3573 viewport.
3574
7286c384
VT
35752013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3576
ffdfc1f3
VT
3577 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
3578 minimal width calculations.
7286c384 3579
ea547e14
VS
35802013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
3581
3582 * docs/grub.texi: Update note on colors on emu console.
3583
b726be76
VS
35842013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
3585
3586 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
3587 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
3588 it's FS and not GRUB limitation.
3589
a5f6ade6
VS
35902013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
3591
3592 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
3593
3b0f3aa2
VS
35942013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
3595
3596 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
3597
1db38304
ST
35982013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
3599
3600 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
3601 kernels by version order.
3602
fb295fc0
VS
36032013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
3604
3605 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
3606
47345010
VS
36072013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
3608
3609 Add AROS hostdisk and getroot routines.
3610
bf25f879
VS
36112013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
3612
3613 Make cryptodisk and diskfilter probe data retrievable programmatically
3614 and not just printable.
3615
24ca4512
VS
36162013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
3617
3618 Split random retrieving code into separate files.
3619
c7c177f0
VS
36202013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
3621
3622 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
3623 R_ARM_V4BX.
3624
d71b45ae
VS
36252013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
3626
3627 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
3628 condition.
3629 * grub-core/tests/fake_input.c: Likewise.
3630 * grub-core/tests/cmdline_cat_test.c: Likewise.
3631
e44b9a83
VS
36322013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
3633
3634 * grub-core/video/capture.c: Do not do finalization when .fini
3635 is called as there is explicit capture_end.
3636
4fa60739
VS
36372013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
3638
3639 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
3640 changing windows to avoid crash.
3641
17c8bc37
VS
36422013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
3643
3644 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
3645
9d4d7977
VS
36462013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
3647
3648 * po/exclude.pot: Add several strings to exclude.
3649
0caa407c
VS
36502013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
3651
3652 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
3653
9ae393da
VS
36542013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
3655
3656 * autogen.sh: Add ./util/grub-gen-widthspec.c and
3657 ./util/grub-gen-asciih.c to exclude list.
3658
498d5033
VS
36592013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
3660
3661 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
3662 and don't mark error strings for translation.
3663
7d93298f
VS
36642013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
3665
3666 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
3667 properly in case of missing block size.
3668
b2cae20c
VS
36692013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
3670
3671 * grub-core/lib/arm/setjmp.S: Add missing license section.
3672
3896d6b4
VS
36732013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
3674
3675 * po/swiss.sed: Add replacement for key names and for term computer.
3676
ebc1da55
VT
36772013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
3678
3679 * grub-core/gfxmenu/theme_loader.c: New global options for the
3680 theme background image handling. desktop-image-scale-method,
3681 desktop-image-h-align, desktop-image-v-align.
3682 * grub-core/gfxmenu/view.c: Likewise.
3683 * include/gfxmenu_view.h: Likewise.
3684 * include/bitmap_scale.h: Proportional scale functions introduced.
3685 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
3686 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
3687 cases of unexpected input variables for scale functions.
3688 * docs/grub.texi: Updated documentation for new options.
3689
c5739143
VS
36902013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
3691
3692 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
3693
be74aeb3
VT
36942013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
3695
3696 * grub-core/tests/checksums.h: Corrected due to changes in
3697 bilinear interpolation function.
3698
d999ac72
VT
36992013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
3700
3701 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
3702 to eliminate artefacts in bilinear interpolation.
3703
2b131610
VS
37042013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
3705
3706 * grub-core/video/readers/tga.c: Support paletted tga.
3707
de6e5ff8
VS
37082013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
3709
3710 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
3711 incorrect cbcr setting when in color mode.
3712
fa31ee9c
VS
37132013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
3714
3715 * grub-core/video/readers/png.c: Support paletted images and clean up
3716 greyscale support.
3717
e84f8188
VS
37182013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
3719
3720 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
3721 usage of wrong table which resulted in mishandling of 4-byte
3722 sequences.
3723
37242013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
2237daf2
VS
3725
3726 * grub-core/term/terminfo.c: Add Home and End key sequences.
3727
d72bff09
VS
37282013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
3729
3730 * grub-core/video/readers/png.c (grub_png_decode_image_header):
3731 Fix formula for computing total number of bytes.
3732
29648c5d
VS
37332013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
3734
3735 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
3736 image processing, fix big-endian and support grayscale.
3737
4a876492
VS
37382013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
3739
3740 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
3741 Correctly will with maximum transparency when using index color.
3742
3ccf16df
VS
37432013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
3744
3745 * grub-core/video/readers/png.c: Support grayscale
3746
37472013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
e9c492a0
VS
3748
3749 * grub-core/video/readers/jpeg.c: Support grayscale.
3750
3ccf16df 37512013-09-26 Jon McCune <jonmccune@google.com>
0340bdbc
JM
3752
3753 * grub-core/commands/loadenv.c: Support skipping signature check
3754 and variable names filtering.
3755
30b7f58f
VS
37562013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
3757
3758 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
3759 * grub-core/kern/emu/hostfs.c: Likewise.
3760 * util/getroot_unix.c: Likewise.
3761
bab7b1eb
VS
37622013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
3763
3764 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
3765 Migrate all explicit defines to this new one.
3766
43b1c99d
VS
37672013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
3768
3769 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
3770 grub_util_fd_strerror when using grub_util_fd_*.
3771 (grub_util_fd_open_device): Likewise.
3772 (grub_util_biosdisk_read): Likewise.
3773 (grub_util_biosdisk_write): Likewise.
3774 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
3775 (grub_util_fd_strerror): Likewise.
3776 (grub_util_fd_sync): Likewise.
3777 (grub_util_fd_close): Likewise.
3778 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
3779 (grub_util_fd_close): Likewise.
3780 (grub_util_fd_strerror): Likewise.
3781 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
3782 function proto rather than macro.
3783 (grub_util_fd_sync): Likewise.
3784 (grub_util_fd_open): Likewise.
3785 (grub_util_fd_strerror): New proto.
3786
e8fd80bc
VS
37872013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
3788
3789 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
3790 platforms on which it doesn't work.
3791
bf645fda
VS
37922013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
3793
3794 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
3795 stat immediately to where it's used.
3796
5177ba14
VS
37972013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
3798
3799 * util/getroot.c (grub_util_check_block_device): Move to ...
3800 * util/getroot_unix.c (grub_util_check_block_device): ... here.
3801 * util/getroot.c (grub_util_check_char_device): Move to ...
3802 * util/getroot_unix.c (grub_util_check_char_device): ... here.
3803
9db826e1
VS
38042013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
3805
3806 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
3807 disk closing logic.
3808
49120085
AB
38092013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
3810
3811 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
3812
b3328b68
AB
38132013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
3814
3815 * docs/grub.texi (File name syntax): Document ZFS filenames
3816 (/volume@snapshot/...).
3817
3fff48ab
VS
38182013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
3819
3820 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
3821 Always return full path. Fixes a problem with mkrelpath.
3822
39cfdaa9
PFS
38232013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3824
3825 * util/grub-install.in: Add GPT PReP support.
3826 * util/grub-probe.c (probe): Support GPT partition type.
3827 (main): Support -t gpt_parttype.
3828
7c680e1f 38292013-09-23 Aleš Nesrsta <starous@volny.cz>
3830
3831 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
3832
890bdabe
MM
38332013-09-23 Massimo Maggi <me@massimo-maggi.eu>
3834
3835 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
3836
9c262ff9
TH
38372013-09-23 Tim Hardeck <thardeck>
3838
3839 * util/grub.d/10_hurd.in: Filter out character for the class.
3840 * util/grub.d/10_kfreebsd.in: Likewise.
3841 * util/grub.d/10_linux.in: Likewise.
3842 * util/grub.d/20_linux_xen.in: Likewise.
3843
d755342a
MC
38442013-09-23 Melki Christian <Christian.melki@saabgroup.com>
3845
3846 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
3847 "changed".
3848
68b77707
JT
38492013-09-23 Josh Triplett <josh@joshtriplett.org>
3850
3851 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
3852 boot partition.
3853
efa68bfa
VS
38542013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
3855
3856 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
3857 doesn't use posix_wrap. Keep literal -fno-builtin however.
3858
d9104204
VS
38592013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
3860
3861 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
3862
c248781a 38632013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
38642013-09-23 neil
3865
5830df88 3866 * configure.ac: Do not enable -Wmissing-noreturn as its
3867 usefulness is limited and creates problems on some OS notably with
3868 code generated by bison.
3869
38702013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
38712013-09-23 neil
3872
3873 * configure.ac: Do not explicitly enable -Waddress as it's not
c248781a 3874 supported by all gcc and when it is, it's already enabled by -Wall.
3875
621bed69
VS
38762013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
3877
3878 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
3879 desactivated use of EDID at all.
3880
71764dc8 38812013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
38822013-09-23 neil
3883
3884 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
3885 video if no text is available.
3886
affce7d4 38872013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1bd73025
VS
38882013-09-23 neil
3889
3890 * configure.ac: Substitute TARGET_RANLIB.
3891
38922013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
38932013-09-23 neil
affce7d4
VS
3894
3895 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
3896
3897 Based on patches from AROS.
3898
0e8daad0 38992013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1bd73025 39002013-09-23 neil
0e8daad0
VS
3901
3902 * grub-core/Makefile.am: Override STRIP and RANLIB.
3903 * configure.ac: compute TARGET_RANLIB.
3904 * INSTALL: Document TARGET_RANLIB
3905
3906 Based on patches from AROS.
3907
3f7d9c82
VS
39082013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
3909
3910 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
3911 that floppies are unpartitioned.
3912
bca8873a
VS
39132013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
3914
3915 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
3916 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
3917
39182013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
3919
3920 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
3921 less nice but more portable.
3922 * grub-core/lib/posix_wrap/wchar.h: Likewise.
3923
a47a78be
VS
39242013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
3925
3926 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
3927 for cheat_fd.
3928 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
3929 functions.
3930 (grub_cryptodisk_cheat_insert): Likewise.
3931 (grub_cryptodisk_close): Likewise.
3932
e85a5d5c
VS
39332013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
3934
3935 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
3936 Use windows path for DEFAULT_DIRECTORY.
3937
dad9fa6b
VS
39382013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
3939
3940 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
3941 difference was likely just gcc version, not anything mingw-related.
3942
7e518ca8
VS
39432013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
3944
3945 Use Winapi on both cygwin and mingw32 to share more code between both.
3946
d68d0157
AB
39472013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
3948
3949 * util/grub-install.in: Add --grub-editenv option.
3950 * util/grub-install_header (grub_compress_file): Explicitly check for
3951 plain file to avoid cp error.
3952
775b284d
AB
39532013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
3954
3955 * docs/grub.texi (Device syntax): Document new LVM UUID based device
3956 names; fix LVM driver name (lvm, not lv).
3957 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
3958 names.
3959
3ff4063d
VS
39602013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
3961
3962 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
3963 files rather than one file with loads of #if's.
3964 * util/getroot.c: Likewise.
3965
287faafe
VS
39662013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
3967
3968 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
3969
d1983764
VS
39702013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
3971
3972 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
3973 GNU/Hurd to the list of checked PRNG.
3974
15ce95c4
VS
39752013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
3976
3977 * configure.ac: On FreeBSD use -melf_*_fbsd format.
3978
207862dd 39792013-09-21 Ales Nesrsta <starous@volny.cz>
3980
7c680e1f 3981 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
207862dd 3982
63653cfd
VS
39832013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
3984
3985 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
3986 * grub-core/disk/lvm.c: Add LVM UUIDs.
3987 * util/getroot.c: Use LVM UUIDs whenever possible.
3988
f5d3e7ef
AB
39892013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
3990
3991 * docs/grub.texi (Networking commands): Add documentation for
3992 network related commands.
3993
53c6b7d6
VS
39942013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
3995
3996 * util/getroot.c (grub_util_open_dm): Check major rather than the name
3997 to determine if device is handled by devmapper.
3998 (convert_system_partition_to_system_disk): Likewise.
3999 (get_dm_uuid): Don't check explicitly if device is mapped, it's
4000 already done in grub_util_open_dm.
4001
e70d6736
LL
40022013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
4003
4004 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
4005 Clean up stack manipulation (sync_caches_armv*)
4006
90379808
VS
40072013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
4008
4009 * util/lvm.c: Remove since unused. Remove remaining references.
4010
386701a8
VS
40112013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
4012
4013 Handle the case of partitioned LVM properly.
4014
4015 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
4016 Stop on meeting LVM, mpath or DMRAID.
4017 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
4018 (read_device_map): Likewise.
4019 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
4020 device is full disk rather than erroring out on LVM and similar cases.
4021
53070787
VS
40222013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
4023
4024 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
4025
1bc783bd
VS
40262013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
4027
4028 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
4029 4K before the end.
4030 Reported by: Leif Lindholm
4031
436ad5c3
PW
40322013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
40332013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
4034
4035 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
4036 codes.
4037
607319c9
CW
40382013-09-18 Colin Watson <cjwatson@ubuntu.com>
4039
4040 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
4041 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
4042
d404d154
DR
40432013-09-18 Douglas Ray <dougray@cpan.org>
4044
4045 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
4046 as secure.
4047
28851ef6
AN
40482013-09-18 Aleš Nesrsta <starous@volny.cz>
4049
4050 * docs/grub.texi: Fix broken link.
4051
897c3bc6
MC
40522013-09-18 Melki Christian <Christian.melki@saabgroup.com>
4053
4054 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
4055 to break endless loop.
4056
f1630459
VS
40572013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
4058
4059 * util/grub-fstest.c: Fix several printf formats.
4060 * util/grub-mkimage.c: Likewise.
4061 * util/grub-mkimagexx.c: Likewise.
4062 * util/grub-script-check.c: Likewise.
4063
64463dfd
VS
40642013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
4065
4066 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
4067 error.
4068
48972495
VS
40692013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
4070
4071 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
4072
5dd5e64b
VS
40732013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
4074
4075 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
4076 removed in current versions cygwin_conv_*.
4077
1c1f31e5
VS
40782013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
4079
4080 * configure.ac: Disable efiemu runtime on cygwin.
4081
c546a259
VS
40822013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
4083
4084 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
4085 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
4086
81690478
VS
40872013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4088
4089 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
4090 error message.
4091
6b87c10a
VS
40922013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4093
4094 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
4095 windows variant.
4096 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
4097 data.
4098
8f0baaac
VS
40992013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4100
4101 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
4102 when on x86 and not cygwin.
4103 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
4104 -Wl,-melf_x86_64.
4105
b224c266
VS
41062013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4107
4108 * configure.ac: Set CPP to build one when checkoing for freetype for
4109 build.
4110
506b336b
VS
41112013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4112
4113 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
4114 [!GRUB_BUILD]: Remove has_argument.
4115
8c8c87b7
VS
41162013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4117
4118 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
4119 Replace with a dummy.
4120
7dc5ca13
VS
41212013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4122
4123 * configure.ac: Don't change host_os from mingw to cygwin.
4124
c3302aa5
VS
41252013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4126
4127 * configure.ac: Change target_os from windows to cygwin.
4128
7b780018
VS
41292013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4130
4131 Handle grub-pe2elf and grub-mkfont for cases when build != host.
4132
4133 * Makefile.am (build-grub-mkfont): Don't include gnulib.
4134 (build-grub-gen-asciih): Likewise.
4135 (build-grub-gen-widthspec): Likewise.
4136 * Makefile.util.def (grub-pe2elf): Remove.
4137 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
4138 * configure.ac: Separate tests for build.
4139 Move ./build-grub-pe2elf to grub-core.
4140 Fix typo.
4141 * grub-core/Makefile.am (build-grub-pe2elf): New target.
4142 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
4143 defined.
4144 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
4145 constants.
4146 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
4147 * util/grub-pe2elf.c: Simplify not to rely on getopt.
4148 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
4149
984cfd8a
VS
41502013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4151
4152 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
4153 mingw32 as well based on grub_util_get_disk_size.
4154 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
4155 grub_util_get_fd_size.
4156 (sync): Removed.
4157 (fsync): Moved to ...
4158 * grub-core/kern/emu/misc.c (fsync): ... here.
4159
f82d79c9
VS
41602013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4161
4162 * include/grub/mm.h (grub_extend_alloc): Remove.
4163 * grub-core/loader/i386/pc/plan9.c: Use own version of
4164 grub_extend_alloc with appropriate types.
4165
fd7dd66d
VS
41662013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4167
4168 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
4169
43ffba7c
VS
41702013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4171
4172 * util/getroot.c: Include sys/wait.h only when we need waitpid.
4173
3c7eac44
VS
41742013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4175
4176 Fix dependencies on cygwin.
4177
4178 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
4179 dependencies when used and defined.
4180 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
4181
bdb5ba47
VS
41822013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4183
4184 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
4185 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
4186
ed7fbf43
VS
41872013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4188
4189 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
4190 implementation available to cause compile-time rather than runtime
4191 error.
4192
fc46e9fc
VS
41932013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4194
4195 * util/grub-fstest.c: Don't check for symlinks on windows.
4196
7f68269a
VS
41972013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4198
4199 * INSTALL: Mention unavailability of man pages when cross-compiling.
4200
8ed358e0
VS
42012013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4202
4203 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
4204 and gcry_log_bug.
4205 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
4206
fc97214f
VS
42072013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4208
4209 * INSTALL: Document cross-compilation.
4210 * acinclude.m4: Determine whether nm support -P and --defined-only.
4211 * configure.ac: Add TARGET_ to all variables pertaining to target
4212 that don't have it yet.
4213 * gentpl.py: Likewise.
4214 * grub-core/Makefile.am: Likewise.
4215 * grub-core/genmod.sh.in: Likewise.
4216 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
4217 as well.
4218
ca1fb563
IB
42192013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
4220
4221 * configure.ac: Remove -Wempty-body. It's not essential and needs
4222 recent gcc.
4223
0031b229
IB
42242013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
4225
4226 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
4227 * util/getroot.c: Likewise.
4228
54ea2f44
VS
42292013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4230
4231 * grub-core/disk/ahci.c: Add needed explicit cast.
4232 * grub-core/lib/backtrace.c: Likewise.
4233 * grub-core/net/ip.c: Likewise.
4234 * grub-core/net/tcp.c: Likewise.
4235 * grub-core/net/udp.c: Likewise.
4236
3c601f8c
VS
42372013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4238
4239 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
4240
1d679dda
VS
42412013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4242
4243 * util/import_gcry.py: Add final newline in visibility.h.
4244
00c28dd9
VS
42452013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4246
4247 * conf/Makefile.common: Fix typo.
4248
32af299a
VS
42492013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4250
4251 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
4252
e733cf52
VS
42532013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4254
4255 * Makefile.am (widthspec.h): Fix typo.
4256 * util/grub-gen-widthspec.c: Likewise.
4257
c6b066f2
VS
42582013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4259
4260 Move ascii.h and widthspec.h generation to a separate build-time-only
4261 tool.
4262
ad1fe3f9 42632013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
4264
4265 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
4266 Always fill bootdisk info and improve check for NetBSD disklabel.
4267
92a52dd4
VS
42682013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
4269
4270 * conf/Makefile.extra-dist: Add util/bin2h.c.
4271 Reported by: floppym.
4272
b2e9d276
VS
42732013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
4274
4275 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
4276
7b966834
VS
42772013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
4278
4279 * configure.ac: Disable unifont and starfield if no freetype was found.
4280
d5c1eef1
VS
42812013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
4282
4283 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
4284 on NetBSD and OpenBSD.
4285
66345b50 42862013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
03dafa17
VT
4287
4288 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
4289
66345b50 42902013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
224a55bb
VT
4291
4292 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
4293 reduced. Inheritant options are processed during the theme loading.
4294
66345b50 42952013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
58ec39c6
VT
4296
4297 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
4298
369508b3
AS
42992013-08-14 Avik Sil <aviksil@in.ibm.com>
4300
4301 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
4302
43032013-08-14 Avik Sil <aviksil@in.ibm.com>
412ce916
AS
4304
4305 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
4306 using qemu.
4307
6f27a3f6
PFS
43082013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4309
4310 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
4311 remove-potcdate.sed.
4312
c6ed362a
AB
43132013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
4314
4315 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
4316 unused attribute from pull argument.
4317
5e7d9464
AB
43182013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
4319
4320 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
4321 memory leak.
4322
dea55e2a
AB
43232013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
4324
4325 * util/getroot.c (pull_lvm_by_command): add --separator option
4326 to vgs call to disable padding of output to 10 characters.
4327
f0b94ded
VS
43282013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
4329
4330 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
4331 here ...
4332 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
4333 here.
4334
b828fb5d
VS
43352013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
4336
4337 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
4338 length.
4339
7c9d0c39
VS
43402013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
4341
4342 Fix handling of build-time grub-bin2h and grub-mkfont when doing
4343 full Canadian cross. Tested with build=x86_64, host=arm,
4344 target=ppc-ieee1275.
4345
816719c8
VS
43462013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
4347
4348 * configure.ac: Error if no $BUILD_CC could be found.
4349 Reported by: DevHC.
4350
2af2353b
VS
43512013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
4352
4353 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
4354 i386-multiboot.
4355
797abd0a
VS
43562013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
4357
4358 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
4359 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
4360
36e87d25
CW
43612013-08-13 Colin Watson <cjwatson@ubuntu.com>
4362
4363 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
4364 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
4365 falling back to the partition device, otherwise a later call to this
4366 function may fail spuriously.
4367 Reported by Axel Beckert. Fixes Debian bug #708614.
4368
273349fe
GS
43692013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
4370
4371 * autogen.sh: Replace find -not by the POSIX-compliant find !.
4372
418f86c6
GS
43732013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
4374
4375 Prevent shadowing of stdlib's devname(3) on BSD.
4376
4377 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
4378 and devlast to diskname and disklast, respectively.
4379
c137aea0
CW
43802013-08-11 Colin Watson <cjwatson@ubuntu.com>
4381
4382 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
4383
272dc8df 43842013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
b4743461
VT
4385
4386 * docs/grub.texi: Introduce terminal window position options:
4387 terminal-left: terminal window's left position
4388 terminal-top: terminal window's top position
4389 terminal-width: terminal window's width
4390 terminal-height: terminal window's height
4391 terminal-border: terminal window's border width
4392 * grub-core/gfxmenu/theme-loader.c: Likewise.
4393 * include/grub/gfxmenu_view.h: Likewise.
4394 * po/exlude.pot: Likewise.
4395 * grub-core/gfxmenu/view.c: Likewise.
4396 Also updated minimal window size.
4397 Also terminal_sanity_check function has been introduced.
272dc8df
VT
4398 * grub-core/tests/checksums.h: Update (terminal window height
4399 is adjusted now for low resolution screen)
b4743461 4400
748a4533
VS
44012013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
4402
4403 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
4404 position).
4405
fca5f944
VS
44062013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
4407
4408 * po/exclude.pot: Add few recent exceptions.
4409
4f47d809
VS
44102013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
4411
4412 * tests/grub_func_test.in: Add unicode.pf2.
4413
a62ae90c
VS
44142013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
4415
4416 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
4417 standard rather than noral color, in line with other terminals.
4418
4ed41392
VS
44192013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
4420
4421 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
4422 analysis.
4423
3719fbc5
VS
44242013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
4425
4426 * grub-core/loader/arm/linux.c: Change printf to dprintf.
4427
459b1d91
VS
44282013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
4429
4430 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
4431 inappropriate printf.
4432
f4e1ab9d
AB
44332013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
4434
4435 * .bzrignore: Remove grub-core/lib/dtc-grub,
4436 grub-core/Makefile.libfdt.def
4437 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
4438
fa471bfa
VS
44392013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
4440
4441 * include/grub/video.h (grub_video_register): Keep double-linked as
4442 well as single-linked invariants.
4443 Reported by: qwertial.
4444
d65be02b
VS
44452013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
4446
4447 * grub-core/commands/nativedisk.c (get_uuid): Handle
4448 GRUB_DISK_DEVICE_UBOOTDISK_ID.
4449
ba8bc620
VT
44502013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
4451
4452 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
4453 maximum of NW, N, NE heights instead of N's height and maximum of
4454 NW, W, SW widths instead of W's width. (So the box will be always
4455 correctly drawn)
4456
4f0ad029
GS
44572013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
4458
4459 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
4460 Fix misuse of variable count.
4461
43d53b72
LL
44622013-07-18 Leif Lindholm <leif.lindholm@arm.com>
44632013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
44642013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
5bac5d9a 4465
43d53b72
LL
4466 New ports to arm-uboot and arm-efi.
4467 Mostly by Leif Lindholm with some additions from
4468 Francesco Lavra and cleanup by Vladimir Serbinenko.
141430a2 4469
88f8d146
VS
44702013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
4471
4472 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
4473 and not before.
4474 Reported by: Leon Drugi.
4475
3f42504c
VS
44762013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
4477
4478 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
4479 Reported by: Paulo Flabiano Smorigo.
4480
d110499b
VT
44812013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
4482
4483 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
4484
a8674ad3
VT
44852013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
4486
4487 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
4488
286fe4b3
VS
44892013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
4490
4491 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
4492
1bd57aa3
VS
44932013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
4494
4495 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
4496
7a87d69f
AB
44972013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
4498
4499 * grub-core/net/bootp.c: Export net_* variables.
4500 * grub-core/net/net.c: Likewise.
4501
b2182299
VS
45022013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
4503
4504 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
4505
795b3dc0
VS
45062013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
4507
4508 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
4509
68714c43
VS
45102013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
4511
4512 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
4513
af211bab
VS
45142013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
4515
4516 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
4517
0036f02d
MM
45182013-07-14 Massimo Maggi <me@massimo-maggi.eu>
4519
4520 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
4521 <= 0.
4522
6d0ddff3
MM
45232013-07-14 Massimo Maggi <me@massimo-maggi.eu>
4524
4525 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
4526 functions.
4527
038016f4
MM
45282013-07-14 Massimo Maggi <me@massimo-maggi.eu>
4529
4530 * grub-core/fs/zfs/zfs_lz4.c: New file.
4531 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
4532
776bdce2
MM
45332013-07-14 Massimo Maggi <me@massimo-maggi.eu>
4534
4535 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
4536
c71dbd40
MM
45372013-07-14 Massimo Maggi <me@massimo-maggi.eu>
4538
4539 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
4540 (check_pool_label): Likewise.
4541 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
4542
45432013-07-14 Massimo Maggi <me@massimo-maggi.eu>
53618046
MM
4544
4545 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
4546
8e67b50f
AB
45472013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
4548
4549 * docs/grub.texi (Commands): Document postition parameters
4550 for menuentry command.
4551
f5ae3717
AB
45522013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
4553
4554 * util/grub-mknetdir.in: Remove stray line from help output.
4555
9c28da2a
VS
45562013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
4557
4558 Remove early sm712 init as there is no reason for it (the "watchdog"
4559 effect was due to wrong GPIO map).
4560
139072b8
VS
45612013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
4562
4563 * grub-core/commands/pcidump.c: Remove static variables.
4564
c6a61bda
VS
45652013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
4566
4567 * grub-core/commands/sleep.c: Refresh screen before sleeping.
4568
51369614
VS
45692013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
4570
4571 * configure.ac: Move delimiter after the infos.
4572
efa8640a
VS
45732013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
4574
4575 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
4576
6f80a7b2
VS
45772013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
4578
4579 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
4580 not filling whole 8x16 space.
4581
a2371e19
VS
45822013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
4583
4584 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
4585
64fce2d8
VS
45862013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
4587
4588 * configure.ac: Indicate which liblzma is used if any.
4589
eb272d84
PW
45902013-06-21 Paul Wise <pabs3@bonedaddy.net>
45912013-06-21 Craig Sanders <savannah@taz.net.au>
4592
4593 * util/grub-reboot.in: Document submenu usage.
4594
a9e5abee
CW
45952013-06-25 Colin Watson <cjwatson@ubuntu.com>
4596
4597 * .bzrignore: Update with a number of new test-related files.
4598
e639c204
CW
45992013-06-25 Colin Watson <cjwatson@ubuntu.com>
4600
4601 * util/grub-script-check.c: Fail on scripts containing no
4602 commands, to guard against corrupted grub-mkconfig setups that
4603 produce no useful output.
4604 * tests/grub_script_no_commands.in: New test.
4605 * Makefile.util.def (grub_script_no_commands): Add.
4606 Reported by Hans Putter. Fixes Debian bug #713886.
4607
a4c89b17
AB
46082013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
4609
4610 * grub-core/disk/diskfilter.c: Forgot to remove comment
4611 from previous commit.
4612
5b06b53c
AB
46132013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
4614
4615 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
4616 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
4617
702da5c9
AB
46182013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
4619
4620 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
4621
aa62a5b7
AB
46222013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
4623
4624 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
4625 rescan diskfilter devices until nothing new is found.
4626
4aa237c8
VS
46272013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
4628
4629 Fix casts when compiling coreboot-specific code for 64-bit EFI.
4630
93d8479b
VS
46312013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
4632
4633 Don't try to detect cbfs on *-emu.
4634
837222cc
VS
46352013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
4636
4637 * grub-core/term/gfxterm.c: USe right background color when scrolling.
4638
99c971af
VS
46392013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
4640
4641 Add support for processed coreboot payload chainloading.
4642
e6930a45
VS
46432013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
4644
4645 Enable coreboot information commands even when not loaded as
4646 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
4647
5027af38
VS
46482013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
4649
4650 Support for cbfs. Also factor out the part which is common
4651 for all archives to a separate module. This splits tar from cpio
4652 as they are very different but keeps cpio, cpio_be, odc and newc
4653 together since they're very similar.
4654
a5b55c4b
DM
46552013-06-15 David Michael <fedora.dm0@gmail.com>
4656
4657 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
4658 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
4659
0301a8b3
VS
46602013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
4661
4662 * tests/grub_script_eval.in: Really add the eval test.
4663
3d84cb17
VS
46642013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
4665
4666 Move flavour-specific parts out of common cpio.c file and
4667 rename remaining to cpio_common.c
4668
593e430c
AB
46692013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
4670
4671 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
4672 off new function grub_script_execute_new_scope. Change callers to use
4673 either of them as appropriate.
4674 * grub-core/commands/eval.c: New command eval.
4675 * docs/grub.texi (Commands): Document it.
4676
63c29849
AB
46772013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
4678
4679 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
4680 to fetch values when listing.
4681
cc284112
AB
46822013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
4683
4684 Fix make dist on non-pc.
4685
46862013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
b8578da6
FL
4687
4688 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
4689 without a device name.
4690
69544d1e
VS
46912013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4692
4693 Remove enable_executable_check as it's not needed anymore.
4694 Reported by: dougray.
4695
96dbe648
VS
46962013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4697
4698 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
4699 ambigouos RAID before discovering RAIDs on top of it.
4700 Reported by: bodom.
4701
ccfc0bdb
VS
47022013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4703
4704 Fix typo (failback vs fallback).
4705
f2587088
AB
47062013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
4707
4708 * util/grub.d/30_os-prober.in: Add support for probing EFI
4709 System Partition (as of os-prober 1.58).
4710
cec5cf0c
VS
47112013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
4712
4713 * configure.ac: Add yet another path to unifont. For parabola.
4714
e40b4596
JT
47152013-05-30 Josh Triplett <josh@joshtriplett.org>
4716
4717 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
4718 handling to copy the killed characters to the kill buffer as
4719 UCS4 stored as grub_uint32_t rather than as 8-bit characters
4720 stored as char. Eliminates UCS4 truncation and corruption
4721 observed when killing characters with Ctrl-u and yanking them
4722 back with Ctrl-y.
4723
fc4c4fdd
VS
47242013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
4725
4726 Detach optional parts of gfxterm and integrate in with coreboot init.
4727
6570b205
VS
47282013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
4729
4730 Move blit and fill dispatcher to appropriate files to decrease export
4731 and relocation overhead.
4732
b8323067
VS
47332013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
4734
4735 * grub-core/font/font.c, include/grub/font.h: Inline simple font
4736 functions.
4737
3cc1878f
VS
47382013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
4739
4740 * grub-core/Makefile.am: Fix compilation problem with some
4741 automake versions.
4742
4b80e43c
VS
47432013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
4744
4745 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
4746
57e0c20c
VS
47472013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
4748
4749 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
4750 automake versions.
4751
4fd42c53
VS
47522013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
4753
4754 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
4755 SSDT.
4756
1e908b34
RS
47572013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
4758
4759 * grub-core/partmap/dfly.c: New partition map.
4760
1359e474
VS
47612013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
4762
4763 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
4764 checking.
4765 Reported by: Francesco Lavra.
4766
17806392
AB
47672013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
4768
4769 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
4770 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
4771 false conditions.
4772 * conf/Makefile.common: define dist_grubconf_DATA
4773
cdce14fa
VS
47742013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4775
4776 Progressively skip menu elements on small terminals rather
4777 than crashing.
4778
c8d6cc3c
VS
47792013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4780
4781 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
4782 to avoid losing last column.
4783
a73b31ce
VS
47842013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4785
4786 * po/exclude.pot: Add missing string "%C".
4787
1202c764
VS
47882013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4789
4790 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
4791 after the test.
4792
50268344
VS
47932013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
4794
4795 * util/grub-install.in: Gettextize "Not found" message.
4796
62b15edf
VS
47972013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
4798
4799 Fix distfiles list.
4800 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
4801
48022013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
a9c0b699
PFS
4803
4804 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
4805 present.
4806 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
4807
709ad61b
VS
48082013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
4809
4810 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
4811
d128901a
VS
48122013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
4813
4814 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
4815 attribute since structure is not necessarily aligned.
4816
34b22f5c
AB
48172013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
4818
4819 * docs/grub.texi (Device syntax): Clarify description of network
4820 drives.
4821
0f7e980b
VS
48222013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
4823
4824 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
4825 for vasprintf presence.
4826
30b03dc2
VS
48272013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
4828
4829 * util/grub-install.in: Handle efibootmgr presence check.
4830 Reported by: Leif Lindholm.
4831
0dc11c08
VS
48322013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
4833
4834 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
4835 new strings to translate.
4836
f8024c3f
VS
48372013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
4838
4839 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
4840 yet another string (pun intended) to translate.
4841
b4c1da62
VS
48422013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
4843
4844 * po/POTFILES-shell.in: Autogenerate it.
4845
0ef7478b
VS
48462013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
4847
4848 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
4849
8200fa15
VS
48502013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
4851
4852 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
4853 misnomer.
4854
091945b2
AB
48552013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
4856
4857 * docs/grub.texi (Network): Add description of net_default_interface,
4858 net_default_ip and net_default_mac. Rewrite variables description
4859 to emphasize that they are per-interface.
4860
0e7b2e32
VS
48612013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
4862
4863 New test: cmdline and cat.
4864
16f7c8f6
VS
48652013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
4866
4867 * grub-core/commands/cat.c: Show UTF-8 characters.
4868
3e912fda
VS
48692013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
4870
4871 * conf/Makefile.common: Poison float and double on non-emu.
4872
ee0220bc
VS
48732013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
4874
4875 * configure.ac: Don't disable extended registers on emu.
4876
89e0240c
VS
48772013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
4878
4879 * configure.ac: Don't use extended registers on x86_64.
4880 Reported by: Peter Jones.
4881
e56d9637
VS
48822013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
4883
4884 * grub-core/term/efi/console.c: Fix compile error.
4885
8098f655
VS
48862013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
4887
4888 Compressed HFS+ support.
4889
16940e07
VS
48902013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
4891
4892 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
4893 pixel".
4894
c5dbc13d
VS
48952013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
4896
4897 Menu color test.
4898
011f8ae8
VS
48992013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
4900
4901 * grub-core/tests/setjmp_test.c: New test.
4902
2aa072d7
VS
49032013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
4904
4905 New variables 'net_default_*' to determine MAC/IP of default interface.
4906
43fe02cb
VS
49072013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
4908
4909 * tests/gettext_strings_test.in: A test to check for strings not
4910 marked for translation.
4911
bed06142
VS
49122013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
4913
4914 * autogen.sh: Exclude unused libgcrypt files from translation.
4915
fb2666b5
VS
49162013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
4917
4918 Simplify few strings.
4919
d22840ec
VS
49202013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
4921
4922 Mark few forgotten strings for translation.
4923
e34092fd
VS
49242013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
4925
4926 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
4927 rather than printf.
4928
47cf82b4
VS
49292013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
4930
4931 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
4932 rather than printf.
4933 * grub-core/video/readers/tga.c: Likewise.
4934
1eed0e6e
VS
49352013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
4936
4937 * tests/priority_queue_unit_test.cc: New test.
4938
c5b7697b
VS
49392013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
4940
4941 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
4942 than printf.
4943
5945c2f8
AB
49442013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
4945
4946 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
4947 variable for one time boot menu entry.
4948
fa292343
B
49492013-05-05 Bean <bean123ch@gmail.com>
4950
4951 * grub-core/commands/testspeed.c: New command testspeed.
4952
310d4214
VS
49532013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
4954
4955 Factor-out human-size printing.
4956
85002bf3
VS
49572013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4958
4959 Agglomerate more mallocs to speed-up gfxterm.
4960
22b06e96
VS
49612013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4962
4963 Speed-up gfxterm by slightly agglomerating mallocs.
4964
b7c036bc
VS
49652013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4966
4967 More video checks.
4968
92323d1f
VS
49692013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4970
4971 Speed-up gfxterm by saving intermediate results in index+alpha
4972 format.
4973
0fb356a3
VS
49742013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4975
4976 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
4977 test.
4978
44dea3f9
VS
49792013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4980
4981 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
4982 line of timeout as it may contain the rest of long line.
4983
14af86e4
VS
49842013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4985
4986 * grub-core/normal/main.c: Fix freed memory dereference.
4987
03f7c8c3
VS
49882013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4989
4990 Fix several memory leaks.
4991
c686014c
VS
49922013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4993
4994 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
4995
0788a695
VS
49962013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4997
4998 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
4999
daf01d61
VS
50002013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5001
5002 Fix test -a and -o precedence.
5003 Reported by: adrian15.
5004
82ae74d7
VS
50052013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5006
5007 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
5008
8cec7bd4
AB
50092013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
5010
5011 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
5012 and add it as source to functional_test module.
5013
aa73d688
VS
50142013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5015
5016 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
5017
c104b6f9
VS
50182013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5019
5020 New series of tests for gfxterm and gfxmenu.
5021
7391c4d5
VS
50222013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5023
5024 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
5025 the theme path relative to $prefix/themes.
5026
cff50118
VS
50272013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5028
5029 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
5030 Fix order bug.
5031 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
5032
7c332bdc
VS
50332013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5034
5035 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
5036 descriptor.
5037
a4f9a5ff
VS
50382013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5039
5040 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
5041 grub_gfxmenu_timeout_notifications.
5042 (grub_gfxmenu_view_destroy): Likewise.
5043
b5a2114d
VS
50442013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5045
5046 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
5047
a8905e8a
VS
50482013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5049
5050 Several fixes to ieee1275 and big-endian video.
5051
813c1622
VS
50522013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5053
5054 Add missing exports on mips.
5055
3f3e7326
VS
50562013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5057
5058 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
5059 if no unifont is found.
5060 Restore original keyboard.
5061
095accd1
VS
50622013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5063
5064 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
5065 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
5066
50361660
VS
50672013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5068
5069 First automated video test (running videotest and comparing results)
5070
cd0f6eec
VS
50712013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5072
5073 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
5074 instead of 2 to have full RGB/CMY test pattern.
5075
3f9634e5
VS
50762013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
5077
5078 Add few more tests.
5079
583e5b64
VS
50802013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
5081
5082 * include/grub/arc/arc.h: Account for missing "other" peripheral on
5083 ARCS. All users updated.
5084
aa7bcb99
VS
50852013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
5086
5087 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
5088
95ef1a54
VS
50892013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
5090
5091 * grub-core/partmap/amiga.c: Fix size of checksummed block.
5092
46546fc5
VS
50932013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5094
5095 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
5096 Reported by: qwertial.
5097
3476e0ef
VT
50982013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
5099
5100 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
5101 with syntax "XXX deg"/"XXX °".
5102
96f33fed
VS
51032013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5104
5105 Make PCI init in i386-qemu port more robust.
5106
51072013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
dc5a311a
VT
5108
5109 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
5110 cached view is reused.
5111 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
5112 open boot menus.
5113
c53b4e67
VS
51142013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5115
5116 Unify more code in grub-install_header.
5117
f7457fb2
VS
51182013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5119
5120 Add few new tests.
5121
e2f27a8c
VS
51222013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5123
5124 Enforce disabling of firmware disk drivers when native drivers kick in.
5125
ef9d8cd5
VS
51262013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5127
5128 * grub-core/commands/nativedisk.c: Customize the list of modules on
5129 platform. Don't try to search for disks already using native drivers.
5130
f7bf6c31
VS
51312013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5132
5133 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
5134 platforms.
5135
bdc4add8
VS
51362013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5137
5138 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
5139 handling of variables containing backslash.
5140
e9e46c9a
VS
51412013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5142
5143 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
5144 dereference.
5145 Reported by: qwertial.
5146
0e90dee8
VS
51472013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5148
5149 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
5150
e0aacf24
VS
51512013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5152
5153 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
5154 dereference.
5155 Reported by: qwertial.
5156
3c0003c3
VS
51572013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5158
5159 * docs/grub.texi: Add a comment about usefullness of nativedisk.
5160
adb7d667
VS
51612013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5162
5163 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
5164
7cd0df84
VS
51652013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5166
5167 New command `nativedisk'.
5168
02adbb93
VS
51692013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5170
5171 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
5172 * grub-core/loader/i386/bsd.c: Likewise.
5173
9fb0fd4f
VS
51742013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5175
5176 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
5177
bd69257a
VS
51782013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5179
5180 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
5181 grub_get_unaligned16 rather than shifts.
5182
178c2764
VS
51832013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5184
5185 * grub-core/kern/file.c: Use const char * rather than casting to
5186 non-const.
5187
eadfad24
VS
51882013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5189
5190 * grub-core/commands/probe.c: Add missing grub_device_close.
5191
9f73ebd4
VS
51922013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5193
5194 * INSTALL: Document linguas.sh.
5195
965fa829
VS
51962013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5197
5198 Remove POTFILES.in and regenerate it in autogen.sh.
5199
d417ddc4
VS
52002013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5201
5202 Move --directory/--override-directorry to grub-install_header and unify.
5203
f97ec546
VS
52042013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5205
5206 * grub-core/term/morse.c: Macroify dih and dah.
5207
b2d7470c
PFS
52082013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5209
5210 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
5211
141e2a78
VS
52122013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
5213
5214 * grub-core/term/ns8250.c: Systematically probe ports by writing
5215 to SR before using them.
5216
1dd70ebd
PFS
52172013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5218
5219 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
5220 disks.
5221 (check_sas): Get sas_adress info.
5222
c796a107
VS
52232013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
5224
5225 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
5226 ports.
5227
43168646
LD
52282013-04-27 Leon Drugi <eyak>
5229
5230 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
5231 BSS clearing.
5232
e7b8fd08
VS
52332013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
5234
5235 Core compression test.
5236
17f9fd29
VS
52372013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
5238
5239 Implement grub_machine_get_bootlocation for ARC.
5240
dc2a6c8b
VS
52412013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
5242
5243 Improve AHCI detection and command issuing.
5244
f25a2ba6
VS
52452013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5246
5247 Fix pseries test.
5248
a6393224
VS
52492013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5250
5251 Make 'make check' work on emu.
5252
db99fbe8
VS
52532013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5254
5255 Replace libcurses with our own vt100 handling for the ease of testing
5256 and decreasing prerequisites.
5257
b24ca7cd
VS
52582013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5259
5260 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
5261
63314aa4
VS
52622013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5263
5264 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
5265 compile when not needed.
5266
c1b00fff
VS
52672013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5268
5269 * tests/pseries_test.in: New test.
5270
f93e89ef
VS
52712013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5272
5273 Add test to check that different boot mediums work.
5274
c4b456d3
VS
52752013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5276
5277 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
5278 ofw limited ISO support.
5279
5fe67f39
VS
52802013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5281
5282 * configure.ac: Fix loongson conditional.
5283
7f63a64f
VS
52842013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5285
5286 Enable mipsel-arc.
5287
b04b5990
VS
52882013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5289
5290 Add serial on ARC platform.
5291
88d2f302
VS
52922013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5293
5294 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
5295 commit.
5296
86eb23bc
VS
52972013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5298
5299 * tests/partmap_test.in: Add missing double semicolon.
5300
eec3bb75
VS
53012013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5302
5303 * util/grub-mkrescue.in: Fix loongson filename.
5304
e0810df3
VS
53052013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5306
5307 * util/grub-mkrescue.in: Move all files that don't have a location
5308 set in stone under /boot/grub. Use ISO hard links rather than copies
5309 to save some space.
5310
65a6b30b
VS
53112013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5312
5313 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
5314 bogus SLOF values.
5315
6aff0107
VS
53162013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5317
5318 Make check work on mips-arc.
5319
5e013e56
VS
53202013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5321
5322 * util/grub-mkrescue.in: Alias sashARCS as sash.
5323
d1989e2e
VS
53242013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5325
5326 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
5327 it's serial.
5328
1a25e72c
VS
53292013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5330
5331 * util/grub-install.in: Fix target fo qemu_mips.
5332 Fix extension on EFI.
5333
a59a9826
VS
53342013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5335
5336 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
5337 in front of chosen entry to mark it even if highlighting is lost.
5338
1a40f80c
VS
53392013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5340
5341 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
5342 gfxpayload=keep if cbfb is active.
5343
e343549c
VS
53442013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5345
5346 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
5347
45fbd9a2
VS
53482013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5349
5350 Add missing video ids to coreboot and ieee1275 video.
5351
ab1440bd
VS
53522013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5353
5354 * util/grub-mkrescue.in: Add mips-arc support.
5355
cdeb8324
VS
53562013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5357
5358 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
5359
8528c879
VS
53602013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5361
5362 Move mips-arc link address. Previous link address was chosen
5363 in belief that RAM on SGI platforms grows down while in fact it
5364 grows up from an unusual base.
5365
17fca573
VS
53662013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
5367
5368 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
5369 Fix a type which prevented CD-ROM and floppy boot.
5370
d178788e
VS
53712013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
5372
5373 Support coreboot framebuffer.
5374
5375 * grub-core/video/i386/coreboot/cbfb.c: New file.
5376
fe4c3e7e
VS
53772013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
5378
5379 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
5380 detecting too small regions.
5381
ec2dd179
VS
53822013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
5383
5384 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
5385
872dac83
VS
53862013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
5387
5388 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
5389 Remove dprintf.
5390 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
5391
90ec4b7f
VS
53922013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
5393
5394 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
5395 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
5396 * grub-core/loader/powerpc/ieee1275/linux.c
5397 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
5398
f32555dd
VS
53992013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
5400
5401 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
5402 Look for /boot-rom as well as /rom/boot-rom.
5403
38649799
VS
54042013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
5405
5406 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
5407 handling when creating text_layer failed.
5408 * grub-core/video/video.c (grub_video_create_render_target):
5409 Set result to 0 on error.
5410 (grub_video_delete_render_target): Do not dereference NULL.
5411
aeace7f7
VS
54122013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
5413
5414 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
5415 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
5416 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
5417 (grub_linux_load64): Mask out 2 high bits.
5418
4eafa175
AB
54192013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
5420
5421 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
5422 more place.
5423
daaa64bd
VS
54242013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
5425
5426 Add support for pseries and other bootinfo machines to grub-mkrescue.
5427
5428 Tested by: Paulo Flabiano Smorigo.
5429
d0d2daa6
VS
54302013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
5431
5432 * util/grub-mkrescue.in: Add GPT for EFI boot.
5433
b193e100
VS
54342013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
5435
5436 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
5437 It improves performance in qemu.
5438
a0f8f3ac
VS
54392013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
5440
5441 * build-aux/snippet: Add missing gnulib files.
5442
284df0e2
AB
54432013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
5444
5445 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
5446
740201f3
AB
54472013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
5448
5449 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
5450
a7e03923
PJ
54512013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
54522013-04-15 Peter Jones <pjones@redhat.com>
5453
5454 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
5455 sectors.
5456 Based on patch by Peter Jones.
5457
25fc51a8
VS
54582013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5459
5460 Fix DMRAID partition handling.
5461
88017d47
VS
54622013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5463
5464 * tests/grub_cmd_date.in: Skip on sparc64.
5465
fa7d914e
VS
54662013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5467
5468 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
5469 firmware error messages.
5470
cbe57a48
VS
54712013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5472
5473 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
5474 source and destination differ.
5475
21aecce0
VS
54762013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5477
5478 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
5479 detection.
5480
25092d29
VS
54812013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
5482
5483 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
5484 match config-util.h to avoid warnings and increase compatibility.
5485
79451522 54862013-04-14 Szymon Janc <szymon@janc.net.pl>
25092d29 54872013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
79451522
VS
5488
5489 Add option to compress files on install/image creation.
5490
78b7d77b
VS
54912013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
5492
5493 * docs/grub-dev.texi: Rearrange menu to match the section order.
5494 Reported by: Bryan Hundven.
5495
cc2fa5ec
VS
54962013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
5497
5498 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
5499
b49fe879
VS
55002013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
5501
5502 Move GRUB out of system area when using xorriso 1.2.9 or later.
5503
5351da81
VS
55042013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
5505
5506 * tests/grub_cmd_date.in: Add missing exit 1.
5507
c9d586ea
VS
55082013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
5509
5510 * tests/partmap_test.in: Skip on sparc64.
5511
3f729741
VS
55122013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
5513
5514 Support grub-shell on sparc64.
5515
8ca86b3a
VS
55162013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
5517
5518 Support mkrescue on sparc64.
5519
aa1af9bb
VS
55202013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
5521
5522 Allow IEEE1275 ports on path even if it wasn't detected automatically.
5523 Needed on OpenBIOS due to incomplete device tree.
5524
ac4fea79
VS
55252013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
5526
5527 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
5528 would be otherwise excluded.
5529
55302013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
87206f2c
VS
5531
5532 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
5533 Inline name defines used only once.
5534
fe22b071
VS
55352013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
5536
5537 Fix memory leaks in ofnet.
5538 Reported by: Francesco Lavra.
5539
9d21381b
VS
55402013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5541
5542 * docs/man/grub-glue-efi.h2m: Add missing file.
5543
07aec23c
VS
55442013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5545
5546 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
5547
67ab8353
VS
55482013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5549
5550 Better support Apple Intel Macs on CD.
5551
ba44ca6d
VS
55522013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5553
5554 Replace stpcpy with grub_stpcpy in tools.
5555
bbdd6305
VS
55562013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5557
5558 Handle Japanese special keys.
5559 Reported by: Hiroyuki YAMAMORI.
5560 Codes supplied by: Hiroyuki YAMAMORI.
5561
8573d302
VS
55622013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5563
5564 * util/grub-mkimage.c: Document memdisk implying --prefix.
5565
d70dbab7
VS
55662013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5567
5568 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
5569 much we can do about it anyway.
5570
51a4c3e3
AN
55712013-04-12 Aleš Nesrsta <starous@volny.cz>
5572
5573 Fix handling of split transfers.
5574
92c8f58d
VS
55752013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5576
5577 * grub-core/net/http.c: Fix bad free.
5578
b7d17a49
VS
55792013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5580
5581 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
5582 than buffer size.
5583
a3d566d4
VS
55842013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5585
5586 Disable partmap check on i386-ieee1275 due to openfirmware issues.
5587
a936af56
VS
55882013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5589
5590 * tests/util/grub-shell.in: Fix it on powerpc.
5591
51212234
VS
55922013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5593
5594 Turn off QEMU ACPI-way since new releases don't have shutdown port
5595 anymore.
5596
a21eec9e
VS
55972013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5598
5599 * docs/grub.texi: Update coreboot status info.
5600
e3734b84
VS
56012013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5602
5603 * tests/grub_cmd_date.in: New test for datetime.
5604
f9d40055
VS
56052013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5606
5607 * tests/partmap_test.in: Fix missing qemudisk setting.
5608
dbc56d8f
VS
56092013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5610
5611 Support i386-ieee1275 grub-mkrescue and make check on it.
5612
a79b8a15
VS
56132013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5614
5615 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
5616 feature for it.
5617
48f39bb4
VS
56182013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5619
5620 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
5621 GRUB_CMDLINE_XEN_DEFAULT.
5622 Reported by: Marc Warne (GigaTux) <gigatux>
5623
053cfcdd
VS
56242013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5625
5626 Import new gnulib.
5627
93cd84df
VS
56282013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5629
5630 Use ACPI shutdown intests as traditional port was removed.
5631
f4b1fa4f
AB
56322013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
5633
5634 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
5635 distinction.
5636
49818a59
VS
56372013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5638
5639 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
5640 Fix few warining messages and leaks while on it.
5641
9277a306
AB
56422013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
5643
5644 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
5645 links under grub-core/lib/libgcrypt-grub/mpi.
5646
d5e2a158
VS
56472013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5648
5649 Fix ia64-efi image generation on big-endian machines. Deduplicate
5650 some code while on it.
5651 Reported by: Leif Lindholm.
5652
18866643
AB
56532013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
5654
5655 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
5656 as extra_dist.
5657
ca53deb8
AB
56582013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
5659
5660 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
5661
d4c4b8e1
BH
56622013-04-08 Bryan Hundven <bryanhundven@gmail.com>
5663
5664 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
5665 texinfo-5.1.
5666
47043f95
VS
56672013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5668
5669 * grub-core/normal/term.c: Few more fixes for menu entry editor
5670 rendering.
5671 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
5672
a3216068
VS
56732013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
5674
5675 * grub-core/normal/term.c: Few more fixes for menu entry editor
5676 rendering.
5677 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
5678
21026747
AB
56792013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
5680
5681 * conf/Makefile.extra-dist (EXTRA_DIST): Add
5682 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
5683
59624ca8
AB
56842013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
5685
5686 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
5687 instead of hardcoding grub.mo.
5688
1f44478c
FN
56892013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
5690
5691 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
5692
eeada7b1
VS
56932013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5694
5695 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
5696 grub-core/disk/geli.c.
5697
132867de
VS
56982013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5699
5700 * util/grub-mkfont.c: Prefer enum to #define.
5701
de73de17
VS
57022013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5703
5704 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
5705
1865baa7
VS
57062013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5707
5708 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
5709
ce7d92a9
VS
57102013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5711
5712 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
5713
52eab656
VS
57142013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5715
5716 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
5717
98b23b95
VS
57182013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5719
5720 * include/grub/bsdlabel.h: Use enums.
5721
0467a5dd
VS
57222013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5723
5724 Move GRUB_CHAR_BIT to types.h.
5725
16cc9f03
AB
57262013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
5727
5728 * docs/grub.texi: Document more user commands.
5729
3152aecb
AB
57302013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
5731
5732 * docs/grub.texi: Document menuentry --id option.
5733
c506fc30
FL
57342013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
5735
5736 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
5737
aa428238
VS
57382013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5739
5740 Unify file copying setup across different install scripts. Add
5741 options for performing partial install.
5742
efe0cdda
PJ
57432013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
57442013-04-04 Peter Jones <pjones@redhat.com>
5745
5746 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
5747
f75835bd
VS
57482013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5749
5750 Use TSC as a possible time source on i386-ieee1275.
5751
2cd5ce6c
VS
57522013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5753
5754 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
5755 Init err.
5756
c9625630
VS
57572013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5758
5759 * util/grub-setup.c (setup): Handle some corner cases.
5760
be008941
VS
57612013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5762
5763 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
5764
1a78d573
VS
57652013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
5766
5767 * grub-core/commands/verify.c: Save verified file to avoid it being
5768 tampered with after verification was done.
5769
db8ff59f
VS
57702013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
5771
5772 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
5773 reported width by one to compensate for curesor algorithm problem.
5774
91bf46b1
VS
57752013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
5776
5777 Fix screen corruption in menu entry editor and simplify the code
5778 flow while on it.
5779
a7b1d693
AB
57802013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
5781
5782 * util/grub-mount.c (fuse_init): Return error if fuse_main
5783 failed.
5784
31df9ad8
FL
57852013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
5786
5787 * include/grub/elf.h: Add missing ARM relocation codes and fix
5788 existing ones.
5789
07f392eb
VT
57902013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
5791
5792 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
5793
9efd73ec 57942013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
c3578acf
VT
57952013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
5796
5797 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
5798 into account when calculating radius.
5799
58002013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
9efd73ec
VT
5801
5802 * grub-core/gfxmenu/view.c: Fix off-by-one error.
5803
4985ddaa
VT
58042013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
5805
5806 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
5807
8c3635ff
RS
58082013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
5809
5810 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
5811 missing closing bracket.
5812
74a35e69
RS
58132013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
5814
5815 * INSTALL: Mention xorriso requirement.
5816
40f1c000
AB
58172013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
5818
5819 * grub-core/commands/verify.c: Fix hash algorithms values for
5820 the first three hashes - they start with 1, not with 0.
5821
e75fdee4
VS
58222013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
5823
5824 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
5825 Try terminating EFI services several times due to quirks in some
5826 implementations.
5827
33028f4c
CW
58282013-03-26 Colin Watson <cjwatson@ubuntu.com>
5829
5830 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
5831 skipping Event, Device, Processor, PowerRes, ThermalZone, and
5832 BankField extended opcodes.
5833 (get_sleep_type): Add minimal scope handling (just enough to
5834 handle setting the scope to the root path).
5835 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
5836 * include/grub/acpi.h: Add enumeration values for Event, Device,
5837 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
5838
33871a10
VT
58392013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
5840
5841 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
5842 memory leak.
5843
8990963a
VS
58442013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
5845
5846 * grub-core/disk/ahci.c: Give more time for AHCI request.
5847
daae8f9e
VS
58482013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
5849
5850 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
5851 command.
5852
6a7fb94b
VS
58532013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
5854
5855 Replace the region at 0 from coreboot tables to available in BSD
5856 memory map.
5857
ff99babd
VS
58582013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
5859
5860 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
5861 non-BIOS platforms.
5862
30d6b1b2
VS
58632013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
5864
5865 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
5866 platforms.
5867
6ccd0b31
VS
58682013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
5869
5870 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
5871 handling of multi-device filesystems.
5872
23c9cc04
VS
58732013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
5874
5875 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
5876 platforms.
5877
ce50dbd7
VS
58782013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
5879
5880 Add new 'proc' filesystem framework and put luks_script into it.
5881
d975e8d5
VS
58822013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
5883
5884 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
5885 and qemu.
5886
e73ba5e8
VS
58872013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
5888
5889 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
5890
92750e4c
VS
58912013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
5892
5893 Add ability to generate newc additions on runtime.
5894
0ec45a68
VS
58952013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
5896
5897 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
5898 description.
5899
320abd43
VS
59002013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
5901
5902 * po/POTFILES.in: Regenerate.
5903
d7a6506e
VS
59042013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
5905
5906 * grub-core/commands/verify.c (hashes): Add several hashes
5907 from the spec.
5908
8fe05def
VS
59092013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
5910
5911 Slight improve in USB-related boot-time checkpoints.
5912
524e2766
VS
59132013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
5914
5915 * grub-core/commands/boottime.c: Fix copyright header.
5916
cc19857a
VS
59172013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
5918
5919 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
5920 coreboot tables content. Support for cbmemc.
5921
ef8810e9
VS
59222013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
5923
5924 Fix a conflict between ports structures with 2 controllers of
5925 same kind.
5926
e9dabdfa
VS
59272013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
5928
5929 * include/grub/boottime.h: Add missing file.
5930
f6df57d2
VS
59312013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
5932
5933 Initialize USB ports in parallel to speed-up boot.
5934
d745dda7
VS
59352013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
5936
5937 Fix USB devices not being detected when requested
5938 due to delayed attach.
5939
e5a2dd7b
VS
59402013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
5941
e744219b
VS
5942 Implement boot time analysis framework.
5943
59442013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
5945
5946 Remove get_endpoint_descriptor and change all functions needing
e5a2dd7b
VS
5947 descriptor to just receive it as argument rather than endpoint
5948 address.
5949
5dd6f587
VS
59502013-03-19 Aleš Nesrsta <starous@volny.cz>
5951
5952 Better estimate the maximum USB transfer size.
5953
2f1071d5
VS
59542013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
5955
5956 Resend a packet if we got the wrong buffer in status.
5957
46ecfc49
VS
59582013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5959
5960 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
5961 multiplication rather than division.
5962
ea811130
VS
59632013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5964
5965 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
5966 than divisions.
5967
d2789cf0
VS
59682013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5969
5970 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
5971 operations to have intended shifts and not divisions.
5972
a9c94590
VS
59732013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5974
5975 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
5976 intended shifts rather than division.
5977
84cfe81b
VS
59782013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5979
5980 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
5981 computation for some years before epoch. Avode confusing division
5982 while on it.
5983
21344ef6
VS
59842013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5985
5986 * grub-core/video/i386/pc/vbe.c
5987 (grub_video_vbe_print_adapter_specific_info): Replace division by
5988 shifts.
5989
3f2b4d1a
VS
59902013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5991
5992 Adjust types in gdb module to have intended unsigned shifts rather than
5993 signed divisions.
5994
3dac5878
VS
59952013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5996
5997 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
5998 maximum size is 4G - 1 on hfs
5999
5341c0fb
VS
60002013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6001
6002 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
6003
fc3ff2a2
VS
60042013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6005
6006 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
6007 function.
6008
81455e8e
AB
60092013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
6010
6011 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
6012 causing gcc error with gcc 4.7.1.
6013
efd4f117
NZ
60142013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
6015
6016 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
6017 dereference null pointer. While the code is technically correct, gcc
6018 may eliminate a null check if pointer is already dereferenced.
6019
e11645f4
NZ
60202013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
6021
6022 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
6023 OOM check.
6024 * grub-core/normal/term.c (read_terminal_list): Likewise.
6025
77468368
VS
60262013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
6027
6028 Lift up core size limits on some platforms. Fix potential memory
6029 corruption with big core on small memory systems. Document remaining
6030 limits.
6031
f6b58fe5
VS
60322013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
6033
6034 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
6035 gotoxy to 0,0.
6036
19ce697d
VS
60372013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6038
6039 Remove all trampoline support. Add -Wtrampolines when
6040 present. Remove symbols used for trampolines to make
6041 link fail if trampolines are present.
6042
73b5d90f
VS
60432013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6044
6045 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
6046 append out of its parent.
6047
cb758e96
VS
60482013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6049
6050 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
6051 parent.
6052
3188131f
VS
60532013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6054
6055 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
6056 all vars to a macro. All users updated.
6057
e42b2514
VS
60582013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6059
6060 * grub-core/disk/ieee1275/nand.c: Fix compilation on
6061 i386-ieee1275.
6062
83e1a1a1
VS
60632013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6064
6065 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
6066
1d5a880f
VS
60672013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6068
6069 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
6070
6e4146c4
VS
60712013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6072
6073 Move to more hookless approach in IEEE1275 devices handling.
6074
99fcda8a
VS
60752013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6076
6077 * grub-core/kern/term.c (grub_term_normal_color),
6078 (grub_term_highlight_color): Add back lost defaults.
6079
73bf57e2
VS
60802013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6081
6082 Make elfload not use hooks. Opt for flags and iterators instead.
6083
7f8c105f
VS
60842013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6085
6086 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
6087 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
6088
396d4091
VS
60892013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6090
6091 * grub-core/script/execute.c (gettext_append): Remove nested functions.
6092
60932013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6094
6095 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
6096 hook pass-through parameter. All users updated and unnested.
6097
74a27421
VS
60982013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6099
6100 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
6101 out of its parent.
6102
b46d4213
VS
61032013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6104
6105 * grub-core/fs/hfs.c: Remove nested functions.
6106
e114c3cc
VS
61072013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6108
6109 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
6110 the context through.
6111 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
6112
f9b7d780
VS
61132013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6114
6115 * util/grub-editenv.c (list_variables): Move print_var out of its
6116 parent.
6117
ca9c2608
VS
61182013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6119
6120 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
6121 function.
6122
5d983f5f
VS
61232013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6124
6125 * grub-core/gentrigtables.c: Make tables const.
6126
3056d3e7
VS
61272013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6128
6129 Remove nested functions from videoinfo iterators.
6130
e2303774
VS
61312013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6132
6133 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
6134 for 64-bit platforms.
6135
f42e3a2f
VS
61362013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6137
6138 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
6139 a FOR_CHILDREN macro.
6140
be174e5e
VS
61412013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6142
6143 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
6144 platform from firmware path.
6145
0789b672
VS
61462013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6147
6148 Enable linux16 on non-BIOS systems for i.a. memtest.
6149
6150 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
6151 correctly.
6152 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
6153
005a9c32
VS
61542013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6155
6156 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
6157 Fix end of table condition.
6158
ff2b3cd9
VS
61592013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6160
6161 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
6162 out of its parent.
6163
4fc40ff8
VS
61642013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6165
6166 * grub-core/fs/jfs.c: Remove nested functions.
6167
be42d97a
VS
61682013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6169
6170 * grub-core/fs/minix.c: Remove nested functions.
6171
99373ce4
VS
61722013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6173
6174 * grub-core/fs/iso9660.c: Remove nested functions.
6175
5aec2afe
VS
61762013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6177
6178 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
6179 of parent function.
6180
6c69e691
VS
61812013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6182
6183 * util/grub-fstest.c: Remove nested functions.
6184
43c91882
VS
61852013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6186
6187 * grub-core/loader/machoXX.c: Remove nested functions.
6188
4eb8b756
CW
61892013-02-27 Colin Watson <cjwatson@ubuntu.com>
6190
6191 Remove nested functions from disk and file read hooks.
6192
6193 * include/grub/disk.h (grub_disk_read_hook_t): New type.
6194 (struct grub_disk): Add read_hook_data member.
6195 * include/grub/file.h (struct grub_file): Likewise.
6196 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
6197 argument.
6198
6199 Update all callers.
6200
df6da5a5
AB
62012012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
6202
6203 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
6204 Fix off by one error in enumerating extended partitions.
6205
21aecde5
AB
62062013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
6207
6208 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
6209 memory leak if device name is not found.
6210
f1a19118
AB
62112013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
6212
6213 * grub-core/normal/menu_entry.c (update_screen): remove
6214 unused variable `off' which caused scroll down arrow to be always shown.
6215
958bfd20
AB
62162013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
6217
6218 * grub-core/normal/menu_entry.c (insert_string): fix off by one
6219 access to unallocated memory.
6220
b7b78edb
AB
62212013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
6222
6223 * Makefile.util.def: Add partmap/msdos.c to common library.
6224 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
6225 * grub-core/disk/ldm.c: Check for existence of
6226 GRUB_PC_PARTITION_TYPE_LDM.
6227
28d468d6
VS
62282013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
6229
6230 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
6231 sizes and display sector size.
6232
d55ffb02
VS
62332013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
6234
6235 Implement new command cmosdump.
6236
b5ea6ce0
VS
62372013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6238
6239 Support Openfirmware disks with non-512B sectors.
6240
6241 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
6242 size of the disk.
6243 * (grub_ofdisk_get_block_size): New function.
6244 * (grub_ofdisk_prepare): Use the correct block size.
6245 * (grub_ofdisk_read): Likewise.
6246 * (grub_ofdisk_write): Likewise.
6247 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
6248 New proto.
6249
cc0e476f
VS
62502013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
6251
6252 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
6253
c5dbdc33
VS
62542013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6255
6256 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
6257 on first error.
6258
3f078c0f
VS
62592013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6260
6261 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
6262 freeing it.
6263
66a93674
VS
62642013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6265
6266 Implement USBDebug (full USB stack variant).
6267
c9f0c134
VS
62682013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6269
6270 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
6271 unless they have unexpected values.
6272
cfe1288b
VS
62732013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6274
6275 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
6276 grub_print_error.
6277
e42b9969
VS
62782013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6279
6280 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
6281 zero-out of port structure.
6282
cf94fd62
VS
62832013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
6284
6285 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
6286 of extended attributes.
6287
f81ef4b5
AB
62882013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
6289
6290 * util/grub-install.in: change misleading comment about
6291 device.map creation
6292
af18fdb4
VS
62932013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
6294
6295 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
6296 when menu highlight color isn't set.
6297
08bcec50
M
62982013-01-27 C. Masloch <pushbx@38.de>
6299
6300 Improve FreeDOS direct loading support compatibility.
6301
6302 * include/grub/i386/relocator.h (grub_relocator16_state):
6303 New member ebp.
6304 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
6305 variable.
6306 (grub_relocator16_boot): Handle %ebp.
6307 * grub-core/lib/i386/relocator16.S: Likewise.
6308 * grub-core/loader/i386/pc/freedos.c:
6309 Load BPB to pass kernel which partition to load from.
6310 Check that kernel file is not too large.
6311 Set register dl to BIOS unit number as well.
6312
7782b8a6
CW
63132013-01-22 Colin Watson <cjwatson@ubuntu.com>
6314
6315 * util/grub-reboot.in (usage): Document the need for
6316 GRUB_DEFAULT=saved.
6317 * util/grub-set-default.in (usage): Likewise.
6318 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
6319
e661c180
VS
63202013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
6321
6322 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
6323 than defining WORDS_BIGENDIAN manually.
6324
1c22ca9a
VS
63252013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
6326
6327 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
6328 invariants.
6329
d44892fe
CW
63302013-01-21 Colin Watson <cjwatson@ubuntu.com>
6331
6332 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
6333 nested.
6334 (blit_comb: add_device_width): Likewise.
6335
5fdbaed1
CW
63362013-01-21 Colin Watson <cjwatson@ubuntu.com>
6337
6338 Remove nested functions from USB iterators.
6339
6340 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
6341 (grub_usb_controller_iterate_hook_t): Likewise.
6342 (grub_usb_iterate): Add hook_data argument.
6343 (grub_usb_controller_iterate): Likewise.
6344 (struct grub_usb_controller_dev.iterate): Likewise.
6345
6346 Update all implementations and callers.
6347
4250985a
VS
63482013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
6349
6350 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
6351 margin when not needed.
6352
7d8848f3
VS
63532013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
6354
bc136973 6355 Make color variables global instead of it being per-terminal.
7d8848f3
VS
6356
63572013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
6358
bc136973
VS
6359 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
6360 asterisk.
7d8848f3 6361
ed12a003
CW
63622013-01-21 Colin Watson <cjwatson@ubuntu.com>
6363
6364 Fix powerpc and sparc64 build failures caused by un-nesting memory
6365 map iterators.
6366
6a0db449
CW
63672013-01-21 Colin Watson <cjwatson@ubuntu.com>
6368
6369 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
6370 parameter declarations.
6371
ccd86b21
VS
63722013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
6373
6374 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
6375
822b726b
VS
63762013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
6377
6378 Improve spkmomdem reliability by adding a separator between bytes.
6379
115c2cc1
CW
63802013-01-21 Colin Watson <cjwatson@ubuntu.com>
6381
6382 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
6383 an Acer registration utility with several sightings in the wild.
6384 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
6385
fc524edf
CW
63862013-01-21 Colin Watson <cjwatson@ubuntu.com>
6387
6388 Remove nested functions from filesystem directory iterators.
6389
6390 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
6391 (struct grub_fs.dir): Add hook_data argument.
6392
6393 Update all implementations and callers.
6394
53d3e4e3
CW
63952013-01-21 Colin Watson <cjwatson@ubuntu.com>
6396
6397 * docs/grub.texi (Multi-boot manual config): Fix typo for
6398 "recommended".
6399
c821711f
LL
64002013-01-20 Leif Lindholm <leif.lindholm@arm.com>
6401
6402 * util/grub-mkimage.c (main): Postpone freeing arguments.output
6403 until after its use in generate_image.
6404
6a0debbd
CW
64052013-01-20 Colin Watson <cjwatson@ubuntu.com>
6406
6407 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
6408 initrd size to addr_min, since the initrd will be allocated after
6409 this address.
6410
f41e08db
AB
64112013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
6412
6413 * conf/Makefile.common: Fix autogen rules to pass definition
6414 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
6415
77529e0f
LL
64162013-01-20 Leif Lindholm <leif.lindholm@arm.com>
6417
6418 * include/grub/elf.h: Update ARM definitions based on binutils.
6419
b879aa7b
VS
64202013-01-20 Aleš Nesrsta <starous@volny.cz>
6421
6422 Split long USB transfers into short ones.
6423
8eb8284d
AB
64242013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
6425
6426 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
6427 is interrupted by ESC.
6428
08dad2dc
VS
64292013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
6430
6431 * util/grub-script-check.c (main): Uniform the error message.
6432
6c724b85
CW
64332013-01-20 Colin Watson <cjwatson@ubuntu.com>
6434
6435 Remove nested functions from ELF iterators.
6436
25239370
CW
64372013-01-20 Colin Watson <cjwatson@ubuntu.com>
6438
6439 Remove nested functions from device iterators.
6440
6441 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
6442 (grub_arc_iterate_devs): Add hook_data argument.
6443 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
6444 (struct grub_ata_dev.iterate): Add hook_data argument.
6445 * include/grub/device.h (grub_device_iterate_hook_t): New type.
6446 (grub_device_iterate): Add hook_data argument.
6447 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
6448 (struct grub_disk_dev.iterate): Add hook_data argument.
6449 (grub_disk_dev_iterate): Likewise.
6450 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
6451 Likewise.
6452 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
6453 Likewise.
6454 * include/grub/partition.h (grub_partition_iterate_hook_t): New
6455 type.
6456 (struct grub_partition_map.iterate): Add hook_data argument.
6457 (grub_partition_iterate): Likewise.
6458 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
6459 (struct grub_scsi_dev.iterate): Add hook_data argument.
6460
6461 Update all callers.
6462
6c0314d6
CW
64632013-01-20 Colin Watson <cjwatson@ubuntu.com>
6464
6465 Fix typos for "developer" and "development".
6466
600dc5f1
VS
64672013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
6468
6469 Add license header to spkmodem-recv.c.
6470
17334a6b
VS
64712013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
6472
6473 Rewrite spkmodem to use PIT for timing. Double the speed.
6474
7d462559
VS
64752013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
6476
6477 Add new command pcidump.
6478
b78d6c32
VS
64792013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
6480
6481 New terminal outputs using serial: morse and spkmodem.
6482
34f71cb8
VS
64832013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
6484
6485 Improve bidi handling in entry editor.
6486
4542e71b
VS
64872013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
6488
6489 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
6490 argument to prevent name collision.
6491
09fd6d82
CW
64922013-01-15 Colin Watson <cjwatson@ubuntu.com>
6493
6494 Remove nested functions from script reading and parsing.
6495
6496 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
6497 getline_data argument, passed to getline.
6498 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
6499 getline_data argument, passed to grub_parser_split_cmdline.
6500 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
6501 lexerstate->getline_data to lexerstate->getline.
6502 (grub_script_lexer_init): Add getline_data argument, saved in
6503 lexerstate->getline_data.
6504 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
6505 argument, passed to grub_script_parse.
6506 * grub-core/script/script.c (grub_script_parse): Add getline_data
6507 argument, passed to grub_script_lexer_init.
6508 * include/grub/parser.h (grub_parser_split_cmdline): Update
6509 prototype. Update all callers to pass appropriate getline data.
6510 (struct grub_parser.parse_line): Likewise.
6511 (grub_rescue_parse_line): Likewise.
6512 * include/grub/reader.h (grub_reader_getline_t): Add void *
6513 argument.
6514 * include/grub/script_sh.h (struct grub_lexer_param): Add
6515 getline_data member.
6516 (grub_script_parse): Update prototype. Update all callers to pass
6517 appropriate getline data.
6518 (grub_script_lexer_init): Likewise.
6519 (grub_normal_parse_line): Likewise.
6520
6521 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
6522 data argument.
6523 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
6524 static instead of nested. Rename to ...
6525 (grub_parser_execute_getline): ... this.
6526 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
6527 data argument.
6528 * grub-core/normal/main.c (read_config_file: getline): Make static
6529 instead of nested. Rename to ...
6530 (read_config_file_getline): ... this.
6531 (grub_normal_read_line): Add unused data argument.
6532 * grub-core/script/execute.c (grub_script_execute_sourcecode:
6533 getline): Make static instead of nested. Rename to ...
6534 (grub_script_execute_sourcecode_getline): ... this.
6535 * util/grub-script-check.c (main: get_config_line): Make static
6536 instead of nested.
6537
d0d4b8a0
CW
65382013-01-15 Colin Watson <cjwatson@ubuntu.com>
6539
6540 Remove nested functions from memory map iterators.
6541
6542 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
6543 argument, passed to hook.
6544 * grub-core/kern/i386/coreboot/mmap.c
6545 (grub_linuxbios_table_iterate): Likewise.
6546 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
6547 instead of nested.
6548 (grub_machine_mmap_iterate): Add hook_data argument.
6549 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
6550 Add hook_data argument, passed to hook.
6551 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
6552 Likewise.
6553 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
6554 Likewise.
6555 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
6556 Likewise.
6557 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
6558 Likewise.
6559 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
6560 Likewise.
6561 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
6562 Likewise.
6563 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
6564 (grub_machine_mmap_iterate): Likewise.
6565 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
6566 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
6567 prototype.
6568 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
6569 Remove NESTED_FUNC_ATTR from here and from all users.
6570 (grub_mmap_iterate): Update prototype.
6571 (grub_efi_mmap_iterate): Update prototype. Update all callers to
6572 pass appropriate hook data.
6573 (grub_machine_mmap_iterate): Likewise.
6574
6575 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
6576 static instead of nested.
6577 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
6578 Rename to ...
6579 (lsmmap_hook): ... this.
6580 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
6581 Likewise.
6582 (grub_efiemu_mmap_fill: fill_hook): Likewise.
6583 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
6584 heap_init): Likewise.
6585 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
6586 Rename to ...
6587 (mmap_iterate_hook): ... this.
6588 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
6589 Likewise.
6590 * grub-core/lib/ieee1275/relocator.c
6591 (grub_relocator_firmware_get_max_events: count): Likewise.
6592 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
6593 to ...
6594 (grub_relocator_firmware_fill_events_iter): ... this.
6595 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
6596 hook): Likewise. Rename to ...
6597 (grub_relocator_alloc_chunk_align_iter): ... this.
6598 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
6599 Rename to ...
6600 (generate_e820_mmap_iter): ... this.
6601 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
6602 Rename to ...
6603 (count_hook): ... this.
6604 (grub_linux_boot: hook): Likewise. Rename to ...
6605 (grub_linux_boot_mmap_find): ... this.
6606 (grub_linux_boot: hook_fill): Likewise. Rename to ...
6607 (grub_linux_boot_mmap_fill): ... this.
6608 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
6609 hook): Likewise. Rename to ...
6610 (grub_fill_multiboot_mmap_iter): ... this.
6611 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
6612 hook): Likewise. Rename to ...
6613 (count_hook): ... this.
6614 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
6615 hook): Likewise. Rename to ...
6616 (grub_fill_multiboot_mmap_iter): ... this.
6617 * grub-core/loader/powerpc/ieee1275/linux.c
6618 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
6619 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
6620 Likewise. Rename to ...
6621 (alloc_phys_choose): ... this.
6622 (determine_phys_base: get_physbase): Likewise.
6623 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
6624 find_hook): Likewise.
6625 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
6626 (malloc_hook: count_hook): Likewise.
6627 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
6628 Likewise. Rename to ...
6629 (lower_hook): ... this.
6630 (grub_mmap_get_upper: hook): Likewise. Rename to ...
6631 (upper_hook): ... this.
6632 (grub_mmap_get_post64: hook): Likewise. Rename to ...
6633 (post64_hook): ... this.
6634 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
6635 Likewise. Rename to ...
6636 (lower_hook): ... this.
6637 (grub_mmap_get_upper: hook): Likewise. Rename to ...
6638 (upper_hook): ... this.
6639 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
6640 (grub_mmap_iterate: fill_hook): Likewise.
6641 (fill_mask): Pass addr and mask within a single struct.
6642 (grub_cmd_badram: hook): Make static instead of nested. Rename
6643 to ...
6644 (badram_iter): ... this.
6645 (grub_cmd_cutmem: hook): Likewise. Rename to ...
6646 (cutmem_iter): ... this.
6647
22099030
VS
66482013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
6649
6650 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
6651 delimit path in strings using quotes.
6652 * util/getroot.c (grub_guess_root_devices): Likewise.
6653 (grub_make_system_path_relative_to_its_root): Likewise.
6654 * util/grub-probe.c (probe): Likewise.
6655 * util/ieee1275/ofpath.c (find_obppath): Likewise.
6656 (xrealpath): Likewise.
6657
4a9950ec
VS
66582013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
6659
6660 Fix compilation with older compilers.
6661
6662 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
6663 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
6664 declarations.
6665 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
6666 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
6667 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
6668 identifier with b.
6669 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
6670 * include/grub/crypto.h: Add type defines.
6671 * util/import_gcrypth.sed: Remove duplicate type defines.
6672
adcc6020
VS
66732013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
6674
6675 New command list_trusted.
6676
6677 * grub-core/commands/verify.c (grub_cmd_list): New function.
6678
a4528937
CW
66792013-01-13 Colin Watson <cjwatson@ubuntu.com>
6680
6681 * util/grub-mkimage.c (generate_image): Fix "size of public key"
6682 info message.
6683
ca3a7446
CW
66842013-01-13 Colin Watson <cjwatson@ubuntu.com>
6685
6686 Remove nested functions from PCI iterators.
6687
6688 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
6689 passed to hook. Update all callers to pass appropriate hook data.
6690 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
6691 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
6692 Remove NESTED_FUNC_ATTR from here and from all users.
6693 (grub_pci_iterate): Update prototype.
6694 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
6695 instead of nested. Rename to ...
6696 (grub_cs5536_find_iter): ... this.
6697 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
6698 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
6699 Likewise.
6700 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
6701 Likewise.
6702 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
6703 Likewise.
6704 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
6705 Likewise.
6706 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
6707 * grub-core/video/radeon_fuloong2e.c
6708 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
6709 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
6710 find_card): Likewise.
6711 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
6712 Likewise.
6713
f8e98fee
VS
67142013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6715
6716 * grub-core/commands/verify.c: Mark messages for translating.
6717
055b36b6
VS
67182013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6719
6720 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
6721 fatal.
6722
f7ff879b
VS
67232013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6724
6725 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
6726 fatal.
6727
67282013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4d7219f9
VS
6729
6730 * autogen.sh: Do not try to delete nonexistant files.
6731 * util/import_gcrypth.sed: Add some missing header removals.
6732
01323d49
CW
67332013-01-12 Colin Watson <cjwatson@ubuntu.com>
6734
6735 Clean up dangling references to grub-setup.
6736 Fixes Ubuntu bug #1082045.
6737
6738 * docs/grub.texi (Images): Refer generally to grub-install rather
6739 than directly to grub-setup.
6740 (Installing GRUB using grub-install): Remove direct reference to
6741 grub-setup.
6742 (Device map) Likewise.
6743 (Invoking grub-install): Likewise.
6744 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
6745 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
6746 * util/grub-install.in (usage): Likewise.
6747
6748 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
6749 Apply to grub-bios-setup and grub-sparc64-setup rather than to
6750 grub-setup.
6751 * configure.ac: Remove grub_setup output variable.
6752
6753 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
6754 to grub-bios-setup.
6755 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
6756 grub-setup to grub-sparc64-setup.
6757
5e3b8dcb
VS
67582013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
6759
6760 Import gcrypt public-key cryptography and implement signature checking.
6761
535714bd
VS
67622013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6763
6764 * grub-core/fs/ntfs.c: Ue more appropriate types.
6765 * grub-core/fs/ntfscomp.c: Likewise.
6766 * include/grub/ntfs.h: Likewise.
6767
3e4f3566
VS
67682013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6769
6770 Support Apple FAT binaries on non-Apple platforms.
6771
6772 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
6773 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
6774 Likewise.
6775 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
6776 Apple FAT binaries.
6777
4dedb13f
VS
67782013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6779
6780 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
6781 sector devices.
6782
f8861eaf
CW
67832013-01-07 Colin Watson <cjwatson@ubuntu.com>
6784
6785 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
6786 explicitly zeroing elements.
6787 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
6788 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
6789 of elements in a structure already allocated using grub_zalloc.
6790 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
6791
86065b0a
CW
67922013-01-07 Colin Watson <cjwatson@ubuntu.com>
6793
6794 * docs/grub.texi (grub_cpu): New subsection.
6795 (grub_platform): Likewise.
6796
c6f1e92f
VS
67972013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
6798
6799 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
6800
f797ec85
VS
68012013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
6802
6803 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
6804 divisions.
6805
033d0b4b
VS
68062013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
6807
6808 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
6809 * grub-core/fs/ntfscomp.c: Likewise.
6810 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
6811 (grub_ntfs_comp): Likewise.
6812
21d1b9a0
VS
68132013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
6814
6815 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
6816 Rename to ...
6817 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
6818 of groups_per_block. All users updated.
6819
10ca8645
VS
68202013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
6821
6822 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
6823 grub_error properly.
6824 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
6825 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
6826
a4c3ed4c
VS
68272013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
6828
6829 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
6830 always in /boot/zfs.
6831 Reported by: Yuta Satoh.
6832
0b716507
YS
68332013-01-03 Yuta Satoh <nigoro>
6834
6835 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
6836 ${grub_probe}
6837
00c05e22
VS
68382013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
6839
6840 * configure.ac: Extend -Wno-trampolines to host.
6841
dadddb76
VS
68422013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
6843
6844 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
6845 entry->len = 0.
6846
54ce53ca
CW
68472013-01-03 Colin Watson <cjwatson@ubuntu.com>
6848
6849 * docs/grub.texi (Invoking grub-mkrelpath): New section.
6850 (Invoking grub-script-check): Likewise.
6851
8912efca
CW
68522013-01-03 Colin Watson <cjwatson@ubuntu.com>
6853
6854 * docs/grub.texi (Invoking grub-mount): New section.
6855 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
6856
c3fc8394
CW
68572013-01-02 Colin Watson <cjwatson@ubuntu.com>
6858
6859 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
6860 test failures, so that a failing unit test correctly causes 'make
6861 check' to fail.
6862
45d26abb
CW
68632013-01-02 Colin Watson <cjwatson@ubuntu.com>
6864
6865 Fix failing printf test.
6866
6867 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
6868 '$' in the correct order when collecting type information.
6869
971dd2c6
CW
68702013-01-02 Colin Watson <cjwatson@ubuntu.com>
6871
6872 * docs/grub.texi (configfile): Explain environment variable
6873 handling.
6874 (source): New section.
6875 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
6876
5c67ea6c
CW
68772012-12-31 Colin Watson <cjwatson@ubuntu.com>
6878
6879 Remove several trivially-unnecessary uses of nested functions.
6880
6881 * grub-core/commands/i386/pc/sendkey.c
6882 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
6883 instead of nested.
6884 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
6885 Rename to ...
6886 (legacy_file_getline): ... this.
6887 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
6888 Likewise.
6889 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
6890 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
6891 to ...
6892 (probe_dummy_iter): ... this.
6893 * grub-core/kern/i386/coreboot/mmap.c
6894 (grub_linuxbios_table_iterate: check_signature): Likewise.
6895 * grub-core/kern/parser.c (grub_parser_split_cmdline:
6896 check_varstate): Likewise. Mark inline.
6897 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
6898 an additional parameter.
6899 (find_long: fnd_long): Likewise. Pass two additional parameters.
6900 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
6901 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
6902 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
6903 Likewise. Rename to ...
6904 (grub_cmos_find_port_iter): ... this.
6905 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
6906 Rename to ...
6907 (find_rtc_iter): ... this.
6908
6909 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
6910 function directly into the function body, since it is only called
6911 once.
6912
33a68ac6
CW
69132012-12-30 Colin Watson <cjwatson@ubuntu.com>
6914
6915 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
6916 __attribute__ ((unused)).
6917 * grub-core/video/bochs.c (find_card): Likewise.
6918 * grub-core/video/cirrus.c (find_card): Likewise.
6919 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
6920 * grub-core/video/sis315pro.c (find_card): Likewise.
6921 * grub-core/video/sm712.c (find_card): Likewise.
6922
608b647a
CW
69232012-12-28 Colin Watson <cjwatson@ubuntu.com>
6924
6925 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
6926 Fixes Savannah bug #37821.
6927
fd49ceb3
CW
69282012-12-28 Colin Watson <cjwatson@ubuntu.com>
6929
6930 Apply program name transformations at build-time rather than at
6931 run-time. Fixes Debian bug #696465.
6932
6933 * acinclude.m4 (grub_TRANSFORM): New macro.
6934 * configure.ac: Create output variables with transformed names for
6935 most programs.
6936 * util/bash-completion.d/grub-completion.bash.in: Use
6937 pre-transformed variables for program names.
6938 * util/grub-install.in: Likewise.
6939 * util/grub-kbdcomp.in: Likewise.
6940 * util/grub-mkconfig.in: Likewise.
6941 * util/grub-mkconfig_lib.in: Likewise.
6942 * util/grub-mknetdir.in: Likewise.
6943 * util/grub-mkrescue.in: Likewise.
6944 * util/grub-mkstandalone.in: Likewise.
6945 * util/grub-reboot.in: Likewise.
6946 * util/grub-set-default.in: Likewise.
6947 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
6948 * tests/util/grub-shell-tester.in: Remove unused assignment.
6949 * tests/util/grub-shell.in: Likewise.
6950 * util/grub.d/00_header.in: Likewise.
6951
7024b3c0
CW
69522012-12-28 Colin Watson <cjwatson@ubuntu.com>
6953
6954 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
6955
6956 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
6957 HAVE_RAW_DECL_GETS.
6958 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
6959
e3501b13
VS
69602012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
6961
6962 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
6963 Reported by: Eriks Latosheks <foresterlv>.
6964
b40c88a9
VS
69652012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6966
6967 * docs/grub.texi (Network): Update instructions on generating netboot
6968 image.
6969
ce96d01c
VS
69702012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6971
6972 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
6973 around device name if necessarry.
6974
0f596201
PFS
69752012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6976
6977 * util/grub-install.in: Follow the symbolic link parameter added
6978 to the file command.
6979
600d5bdb
AB
69802012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
6981
6982 * util/grub-install.in: Remove stale TODO.
6983
64ebd2f4
PFS
69842012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6985
6986 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
6987 dynamic allocation for the bootpath buffer.
6988
74b2fe3e
DTB
69892012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
6990
6991 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
6992 window too small.
6993
969b804f
VS
69942012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6995
6996 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
6997 argument rather than font name. All users updated.
6998 (grub_gfxterm_set_window): Likewise.
6999
b9f5ebd6
VT
70002012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
7001
7002 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
7003 from working.
7004
258f43b7
VS
70052012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7006
7007 * util/getroot.c (convert_system_partition_to_system_disk): Support
7008 nbd disks.
7009
cc1ce5f9
VS
70102012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7011
7012 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
7013 infinite loop on corrupted FS.
7014
e77a16ca
VS
70152012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
7016
7017 Fix big-endian mtime.
7018
7019 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
7020 together sec and usec.
7021 (grub_ufs_dir): Use correct byteswapping for UFS time.
7022
d9c48c7b
VS
70232012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
7024
7025 Support big-endian UFS1.
7026
7027 * Makefile.util.def (libgrubmods): Add ufs_be.c
7028 * grub-core/Makefile.core.def (ufs1_be): New module.
7029 * grub-core/fs/ufs_be.c: New file.
7030 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
7031 the file.
7032
2f9f40ba
LL
70332012-11-28 Leif Lindholm <leif.lindholm@arm.com>
7034
7035 * include/grub/types.h: Fix functionality unaffecting typo in
7036 GRUB_TARGET_WORDSIZE conditional macro.
7037
48ff0889
PFS
70382012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7039
7040 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
7041
03711240
GS
70422012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
7043
7044 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
7045 that /netbsd appears first (when it exists).
7046
a31b11bd
CJ
70472012-10-12 Christoph Junghans <ottxor@gentoo.org>
7048
7049 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
7050 Fixes Savannah bug #37558.
7051
e8a5d5d4
CW
70522012-10-12 Colin Watson <cjwatson@ubuntu.com>
7053
7054 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
7055 description of extract_entries_configfile.
7056
70572012-10-05 Colin Watson <cjwatson@ubuntu.com>
39525c22
CW
7058
7059 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
7060 preferred_address.
7061 (grub_cmd_linux): Likewise.
7062 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
7063 preferred_lifetime. Update all users.
7064
288c757d
CW
70652012-09-26 Colin Watson <cjwatson@ubuntu.com>
7066
7067 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
7068 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
7069
0d35da3f
CW
70702012-09-26 Colin Watson <cjwatson@ubuntu.com>
7071
7072 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
7073 errors from grub-probe to /dev/null, not stdout.
7074
b78c3127
VS
70752012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
7076
7077 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
7078 sector 1.
7079
473959f0
CW
70802012-09-24 Colin Watson <cjwatson@ubuntu.com>
7081
7082 * util/grub-install.in: Make the error message if $source_dir
7083 doesn't exist more useful.
7084
794c8c33
CW
70852012-09-22 Colin Watson <cjwatson@ubuntu.com>
7086
7087 Fix grub-emu build on FreeBSD.
7088
7089 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
7090 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
7091 headers on Linux.
7092 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
7093 implementation is currently Linux-specific.
7094 * util/getroot.c (exec_pipe): Define only on Linux or when either
7095 libzfs or libnvpair is unavailable.
7096 (find_root_devices_from_poolname): Remove unused path variable.
7097
86d08fdb
CW
70982012-09-19 Colin Watson <cjwatson@ubuntu.com>
7099
7100 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
7101 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
7102 should fit before end == 63.
7103
735abf54
CW
71042012-09-19 Colin Watson <cjwatson@ubuntu.com>
7105
7106 * util/grub-setup.c (write_rootdev): Remove unused core_img
7107 parameter. Update all callers.
7108 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
7109 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
7110 GRUB_SETUP_BIOS.
7111
140acd3c
VS
71122012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
7113
7114 * util/grub-mkconfig_lib.in (grub_tab): New variable.
7115 (grub_add_tab): New function.
7116 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
7117 * util/grub.d/10_illumos.in: Likewise.
7118 * util/grub.d/10_kfreebsd.in: Likewise.
7119 * util/grub.d/10_linux.in: Likewise.
7120 * util/grub.d/10_netbsd.in: Likewise.
7121 * util/grub.d/10_windows.in: Likewise.
7122 * util/grub.d/10_xnu.in: Likewise.
7123 * util/grub.d/20_linux_xen.in: Likewise.
7124 * util/grub.d/30_os-prober.in: Likewise.
7125
7ddffdad
VS
71262012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
7127
7128 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
7129 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
7130 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
7131 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
7132 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
7133 ieee1275-nocursor.
7134 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
7135 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
7136
4e092454
VS
71372012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
7138
7139 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
7140 le-conversion.
7141 Reported by: BURETTE, Bernard.
7142
735abf54 71432012-09-17 Colin Watson <cjwatson@ubuntu.com>
a2fc3924
CW
7144
7145 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
7146 from comment.
7147
dfd39dbd
CW
71482012-09-14 Colin Watson <cjwatson@ubuntu.com>
7149
7150 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
7151 IEEE1275 machines. Fixes powerpc-emu compilation.
7152 * include/grub/terminfo.h: Likewise.
7153
3bfa763c
VS
71542012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
7155
7156 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
7157 a const pointer.
7158 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
7159 const pointer.
7160 (efiemu_set_variable): Make vendor_guid a const pointer.
7161
250e475b
VS
71622012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
7163
7164 Don't require grub-mkconfig_lib to generate manpages for programs.
7165
7166 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
7167 dependencies, don't add grub-mkconfig_lib.
7168 (program): Pass empty adddeps.
7169 (script): Pass grub-mkconfig_lib as adddeps.
7170
592fd0e4
VS
71712012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
7172
7173 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
7174 * util/getroot.c (grub_find_device): Likewise.
7175 (get_mdadm_uuid): Likewise.
7176 (grub_util_is_imsm): Likewise.
7177 (grub_util_pull_device): Likewise.
7178 * util/grub-probe.c (probe): Likewise.
7179
801a3027
BG
71802012-09-10 Benoit Gschwind <gschwind>
7181
7182 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
7183 (devs): Add devpath_8.
7184
c5052c81
PJ
71852012-09-08 Peter Jones <pjones@redhat.com>
7186
7187 * grub-core/Makefile.core.def (efifwsetup): New module.
7188 * grub-core/commands/efi/efifwsetup.c: New file.
7189 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
7190 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
7191 New define.
7192 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
7193
8e832f71
JS
71942012-09-05 Jiri Slaby <jslaby@suse.cz>
7195
7196 * configure.ac: Add SuSe path.
7197
f0f55752
CW
71982012-09-05 Colin Watson <cjwatson@ubuntu.com>
7199
7200 * NEWS: Fix typo.
7201
ecadc4c2
CW
72022012-09-05 Colin Watson <cjwatson@ubuntu.com>
7203
7204 * util/import_gcry.py: Sort cipher_files, to make build system
7205 generation more deterministic.
7206
64498f25
VS
72072012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7208
7209 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
7210 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
7211 (grub_set_datetime): Likewise.
7212
9cc836a2
VS
72132012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7214
7215 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
7216 warnings.
7217
bcfcea01
VS
72182012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7219
7220 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
7221
a4099485
VS
72222012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7223
7224 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
7225
265c162a
CW
72262012-09-04 Colin Watson <cjwatson@ubuntu.com>
7227
7228 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
7229 required for checkouts from bzr, but it may be useful for users or
7230 distributors wishing to update translations against a tarball
7231 distribution, and it can be helpful for the tarball to be a superset
7232 of what's in bzr.
7233
3d171e95
CW
72342012-09-04 Colin Watson <cjwatson@ubuntu.com>
7235
7236 * Makefile.am (EXTRA_DIST): Add
7237 grub-core/tests/boot/linux.init-mips.S,
7238 grub-core/tests/boot/linux.init-ppc.S, and
7239 grub-core/tests/boot/linux-ppc.cfg.
7240
f2c2503e
CW
72412012-09-04 Colin Watson <cjwatson@ubuntu.com>
7242
7243 * grub-core/mmap/mips/loongson: Remove empty directory.
7244
72452012-09-04 Colin Watson <cjwatson@ubuntu.com>
dd77d2be
CW
7246
7247 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
7248 gone.
7249
ab2163d5
CW
72502012-09-04 Colin Watson <cjwatson@ubuntu.com>
7251
7252 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
7253 grub-sparc64-setup.
7254
ce938140
GS
72552012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
7256
7257 * configure.ac: Strengthen the test for working -nostdinc -isystem.
7258
529f58a5
GS
72592012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
7260
7261 * po/POTFILES.in: Regenerated.
7262
16cf79e9
GS
72632012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
7264
7265 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
7266 (NetBSD): New subsection.
7267
39b27f1e 72682012-07-22 Ales Nesrsta <starous@volny.cz>
7269
7270 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
7271 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
7272
a885261b
VS
72732012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
7274
7275 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
7276 * util/grub.d/10_hurd.in: Add missing quoting.
7277 * util/grub.d/10_illumos.in: Likewise.
7278 * util/grub.d/10_kfreebsd.in: Likewise.
7279 * util/grub.d/10_linux.in: Likewise.
7280 * util/grub.d/20_linux_xen.in: Likewise.
7281
7bd29c01
VS
72822012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
7283
7284 New command `lsefi'.
7285
7286 * grub-core/Makefile.core.def (lsefi): New module.
7287 * grub-core/commands/efi/lsefi.c: New file.
7288 * include/grub/efi/api.h: Add more GUIDs.
7289
ac625d8f
VS
72902012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
7291
7292 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
7293 (grub_bsd_elf32_hook): Likewise.
7294 (grub_bsd_elf64_size_hook): Likewise.
7295 (grub_bsd_elf64_hook): Likewise.
7296 (grub_bsd_load_elf): Likewise.
7297
e73bb801
VS
72982012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
7299
7300 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
7301 if hash function is unavailable.
7302 (dec_stream_header): Likewise.
7303
e81db8b5
VS
73042012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
7305
7306 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
7307 filter state.
7308
d187a1c3
VS
73092012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
7310
7311 Fix coreboot compilation.
7312
7313 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
7314 (grub_vga_text_init_real): ... this.
7315 (grub_vga_text_fini): Rename to ...
7316 (grub_vga_text_fini_real): ... this.
7317
91a05f64
VS
73182012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
7319
7320 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
7321
6af96df7
VS
73222012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7323
7324 * grub-core/lib/legacy_parse.c: Support clear and testload.
7325
4d569e12
VS
73262012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7327
7328 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
7329
073b57bb
VS
73302012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7331
7332 * grub-core/fs/ext2.c: Experimental support for 64-bit.
7333
a706f4cc
VS
73342012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7335
7336 * grub-core/net/tftp.c (ack): Fix endianness problem.
7337 (tftp_receive): Likewise.
7338 Reported by: Michael Davidsaver.
7339
e7850aa9
VS
73402012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7341
7342 * gentpl.py: Make mans depend on grub-mkconfig_lib.
7343
73442012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7345
7346 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
7347 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
7348 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
7349
35692881
VS
73502012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7351
7352 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
7353 efi_mmap_size.
7354 Reported by: Stuart Hayes.
7355
c35fc5bd
VS
73562012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
7357
7358 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
7359
7360 * grub-core/Makefile.core.def (mda_text): New module.
7361 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
7362 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
7363 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
7364 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
7365 here.
7366 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
7367 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
7368 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
7369 here.
7370 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
7371 to ..
7372 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
7373 ... here
7374 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
7375 here.
7376 * grub-core/term/i386/vga_common.c: Removed.
7377 * include/grub/i386/vga_common.h: Likewise.
7378 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
7379 (grub_vga_cr_bw_read): Likewise.
7380 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
7381 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
7382 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
7383 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
7384 grub_vga_cr_read/grub_vga_cr_write.
7385 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
7386
5f91f701
VS
73872012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
7388
7389 * configure.ac: Bump version to 2.00.
7390 * grub-core/normal/main.c (features): Add feature_200_final.
7391
0c4f85f6
VS
73922012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
73932012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
7394
7395 * NEWS: Fix unclarity and language mistakes.
7396
f923ad22
VS
73972012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
7398
7399 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
7400 additional size to 3 pages.
7401 Reported by: Stuart Hayes.
7402
d22029ba
VS
74032012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
7404
7405 * NEWS: Add 2.00 entry.
7406
58eee08f
VS
74072012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
7408
7409 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
7410 put explicit "/" for empty path.
7411 (wildcard_expand): Improve dprintf.
7412
c59bdff7
VS
74132012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
7414
7415 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
7416 it's equal to currnode. This can happen with "" symlink.
7417
5e6a440a
YB
74182012-06-27 Yves Blusseau <blusseau@zetam.org>
7419
7420 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
7421 echo shell command by printf command.
7422
73a68bcb
VS
74232012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
7424
7425 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
7426 the value returned by firmware is the maximal position, not diumension.
7427 (grub_terminfo_output_state): Use a more sane fallback.
7428
392a603b
VS
74292012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
7430
7431 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
7432
42d0867f
VS
74332012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
7434
7435 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
7436 frequency to 150 MHz.
7437
489509f4
VS
74382012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
7439
7440 Apple fixes.
7441
7442 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
7443 __APPLE_
7444 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
7445 definition.
7446 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
7447
9f3fc883
VS
74482012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
7449
7450 Handle slash in HFS label.
7451
7452 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
7453 (grub_hfs_dir): Tanslate slash.
7454 (grub_hfs_label): Don't translate slash.
7455
54853fd7
VS
74562012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
7457
7458 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
7459 network protocol listing since it introduces problematic dependency on
7460 net module.
7461
4dc02ddf
VS
74622012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
7463
7464 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
7465
c50c867d
VS
74662012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
7467
7468 Init video early on yeeloong to avoid being rebooted by watchdog.
7469
7470 * grub-core/Makefile.am (gensm712): New target.
7471 (sm712_start.S): Likewise.
7472 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
7473 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
7474 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
7475 description.
7476 * include/grub/vga.h: Move registry definitions to...
7477 * include/grub/vgaregs.h: ... here.
7478
5f92c8a1
VS
74792012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
7480
7481 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
7482 signedness.
7483
e9e6f111
VS
74842012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
7485
7486 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
7487 platforms with firmware disk drivers in the core.
7488
754ad9eb
VS
74892012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
7490
7491 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
7492 informative verbose message.
7493 (read_lv): Handle 64-bit segment size.
7494
315654c2
VS
74952012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
7496
7497 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
7498
fb022c79
VS
74992012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
7500
7501 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
7502 character but still remove trainling spaces.
7503 (grub_fat_label): Ignore archive flag.
7504
8645f72c
VS
75052012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
7506
7507 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
7508 cast between linux_kernel_header and linux_kernel_params.
7509
36498496
VS
75102012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
7511
7512 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
7513 type for size.
7514 (grub_raid6_recover_func_t): Likewise.
7515 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
7516 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
7517
0b5ea6b8
VS
75182012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
7519
7520 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
7521
650cfcfe
GS
75222012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
7523
7524 Fix overflow.
7525
7526 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
7527 [__NetBSD__]: Add explicit cast before bitshift.
7528
8a4d6a44
VS
75292012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
7530
7531 * configure.ac: Bump to 2.00~rc1.
7532
2fb97ed3
VS
75332012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
7534
7535 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
7536 half of $a0.
7537
1fa097dc
VS
75382012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
75392012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
7540
7541 * docs/grub.texi: Fix search syntax.
7542 (Multi-boot manual config): Put msdos rather than GPT example.
7543 Grammar corrections.
7544
c890ba78
VS
75452012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
7546
7547 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
7548
0f92dca7
VS
75492012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
7550
7551 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
7552
3988c4a0
VS
75532012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
7554
7555 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
7556 message on double free. Put the value of magic in case of mismatch.
7557
9e86d4c5
VS
75582012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
7559
7560 Speed-up video on yeeloong.
7561
7562 * grub-core/video/sm712.c (framebuffer): Remove render_target and
7563 add cached_ptr.
7564 (grub_video_sm712_video_fini): Unmap cached_ptr.
7565 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
7566 (grub_video_sm712_set_active_render_target): Removed.
7567 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
7568 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
7569 sync caches.
7570
ed24c312
VS
75712012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
7572
7573 Avoid flushing the same line multiple times on loongson.
7574
7575 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
7576 Step in 32 bytes and not 1 byte.
7577 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
7578 Likewise.
7579
d1718e7d
VS
75802012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
7581
7582 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
7583 subvolumes.
7584
982f1909
VS
75852012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
7586
7587 Implement flow control for http.
7588
7589 * grub-core/net/http.c (parse_line): Handle response 206.
7590 (http_receive): Stall if too many packets are in the queue.
7591 (http_establish): Fix range header.
7592 (http_seek): Fix double free.
7593 (http_close): Likewise.
7594 (http_packets_pulled): New function.
7595 (grub_http_protocol): Set http_seek
7596 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
7597 (ack_real): Set window depending on i_stall.
7598 (grub_net_send_tcp_packet): Likewise.
7599 (grub_net_tcp_stall): New function.
7600 (grub_net_tcp_unstall): Likewise.
7601 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
7602 (grub_net_tcp_unstall): Likewise.
7603
bd407d6e
VS
76042012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
7605
7606 * grub-core/net/tftp.c: Decrease stall to 50 packets.
7607
c7564b8e
VS
76082012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
7609
7610 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
7611
a3706162
VS
76122012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
7613
7614 * tests/util/grub-shell.in: Fix a typo.
7615
b27069e0
VS
76162012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
7617
7618 Implement flow control for tftp.
7619
7620 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
7621 packets but stop only if stop condition is satisfied.
7622 (grub_net_fs_read_real): Call packets_pulled after real read. Use
7623 `stall' instead of `eof' as stop condition.
7624 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
7625 (http_err): Likewise.
7626 * grub-core/net/tftp.c (ack): Replace the first argument with data
7627 instead of socket.
7628 (tftp_receive): Stall if too many packets are in wait queue.
7629 (tftp_packets_pulled): New function.
7630 (grub_tftp_protocol): Set packets_pulled.
7631 * include/grub/net.h (grub_net_packets): New field count.
7632 (grub_net_put_packet): Increment count.
7633 (grub_net_remove_packet): Likewise.
7634 (grub_net_app_protocol): New field `packets_pulled'.
7635 (grub_net): New field `stall'.
7636
6b9cfac6
VS
76372012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
7638
7639 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
7640 sync part to handle them.
7641
f35abd81
VS
76422012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
7643
7644 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
7645 * grub-core/net/drivers/ieee1275/ofnet.c
7646 (grub_ieee1275_net_config_real): Likewise.
7647
0e7ec820
VS
76482012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
7649
7650 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
7651 the direct route for server/gateway.
7652
9d611a31
VS
76532012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
7654
7655 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
7656 IP address to server name since we may not hame the DNS.
7657
418f45ab
VS
76582012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
7659
7660 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
7661 freeing random buffer on failure.
7662 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
7663
44a0efc1
VS
76642012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
7665
7666 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
7667
531e2241
VS
76682012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
7669
7670 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
7671 reserved bytes.
7672 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
7673 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
7674 Handle malloc error correctly.
7675
cde393c9
VS
76762012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
7677
7678 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
7679 blocks.
7680
538478d0
VS
76812012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
7682
7683 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
7684 increment.
7685
9b55efe0
VS
76862012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
7687
7688 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
7689 none is explicitly specified.
7690
9eb832c3
VS
76912012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
7692
7693 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
7694 while reallocating.
7695
d6b7c7c9
VS
76962012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
7697
7698 Respect netmask from bootp/dhcp.
7699
7700 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
7701 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
7702 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
7703 into ...
7704 (grub_net_add_ipv4_local): ... this.
7705 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
7706 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
7707 (grub_net_add_ipv4_local): New proto.
7708
67caf9eb
VS
77092012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
7710
7711 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
7712 determining EFI memory map size.
7713
43657558
VS
77142012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
7715
7716 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
7717
eb6d0dd3
VS
77182012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
7719
7720 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
7721 when looking for partition separator.
7722
31230544
VS
77232012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
7724
7725 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
7726 Escape commas.
7727
918a2517
VS
77282012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
7729
7730 Restructure FAT driver to avoid hook in label reading as it hits a
7731 GCC bug.
7732
7733 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
7734 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
7735 (grub_fat_iterate_dir): Split into ...
7736 (grub_fat_iterate_init): ... this, ...
7737 (grub_fat_iterate_fini): ... this, ...
7738 (grub_fat_iterate_dir_next): ... and this. All users updated.
7739
9f1d654e
VS
77402012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
7741
7742 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
7743 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
7744 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
7745 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
7746 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
7747 New fields last_key and last_key_time.
7748 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
7749 extended key-esc into extended key-extended key.
7750
52f0f643
VS
77512012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
7752
7753 Avoid unnecessary memcpy of whole video buffer.
7754
7755 * grub-core/video/fb/video_fb.c (dirty): New struct.
7756 (framebuffer): Add members current_dirty and previous_dirty.
7757 (dirty): New function.
7758 (grub_video_fb_fill_rect): Update dirty.
7759 (common_blitter): Likewise.
7760 (grub_video_fb_scroll): Likewise.
7761 (doublebuf_blit_update_screen): Copy only dirty part.
7762 (doublebuf_pageflipping_update_screen): Likewise.
7763 (grub_video_fb_doublebuf_blit_init): Init dirty.
7764 (doublebuf_pageflipping_init): Likewise.
7765 (grub_video_fb_setup): Likewise.
7766
e169a180
VS
77672012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
7768
7769 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
7770 poll rate.
7771
48556879
VS
77722012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
7773
7774 Fix wildcard regexp dot and other special characters handling.
7775 Reported by: Robert Mabee.
7776
7777 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
7778 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
7779 (split_path): Trigger expansion on '?'.
7780 (unescape): New function.
7781 (wildcard_expand): Unescape parts copied without globbing.
7782 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
7783 (grub_script_arglist_to_argv): Don't unescape expansions.
7784
0494408e
VS
77852012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
7786
7787 * include/grub/net.h (grub_net_card): New member txbufsize.
7788 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
7789 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
7790 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
7791 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
7792 txbufsize.
7793 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
7794 compatible property to check for macs. Set
7795 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
7796 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
7797 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
7798 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
7799 (send_card_buffer): Use txbuf.
7800 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
7801 nested function out of the parent while on it.
7802
cc35fe8f
VS
78032012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
7804
7805 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
7806 presence check.
7807 (grub_ieee1275_net_config_real): Fix config pointer.
7808
970a0a09
VS
78092012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
7810
7811 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
7812 filename parsing to non-block devices.
7813
3e19bf87
VS
78142012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
7815
7816 * grub-core/kern/device.c (grub_device_open): Remove dead code.
7817
c62d1a0c
VS
78182012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
7819
7820 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
7821 All users updated.
7822
ef76bec3
VS
78232012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
7824
7825 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
7826 UUID search command even if hints probing failed.
7827
78282012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
555c786d
VS
7829
7830 * po/POTFILES.in: Regenerated.
7831
70aaf305
VS
78322012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
7833
7834 Speed-up video on fuloong.
7835
7836 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
7837 New function.
7838 (grub_pci_device_unmap_range): Handle non-cached address.
7839 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
7840 add direct_ptr.
7841 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
7842 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
7843 (grub_video_sis315pro_set_active_render_target): Removed.
7844 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
7845 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
7846 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
7847 sync caches.
7848 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
7849 New proto.
7850
10400f0b
VS
78512012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
7852
7853 * docs/grub.texi (Multi-boot manual config): New section.
7854
ba67e2c6
VS
78552012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
7856
7857 Avoid slow read-back from VRAM.
7858
7859 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
7860 Move from here ...
7861 * grub-core/video/fb/video_fb.c
7862 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
7863 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
7864 (front_target): Remove front_target. Add pages.
7865 (grub_video_fb_init): Skip setting front_pages.
7866 (grub_video_fb_fini): Likewise.
7867 (doublebuf_blit_update_screen): Use pages.
7868 (grub_video_fb_doublebuf_blit_init): Likewise.
7869 (doublebuf_pageflipping_init): Allocate offscreen buffer.
7870 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
7871 (grub_video_fb_setup): Prefer doublebuffing.
7872
377c98cb
VS
78732012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
7874
7875 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
7876 gzio.
7877
eac49cff
VS
78782012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
7879
7880 Add loongson tests.
7881
7882 * tests/util/grub-shell.in: Handle loongson.
7883 * tests/partmap_test.in: Add loongson to the list of platform using ATA
7884 drivers.
7885 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
7886 Reboot instead of shutdown if REBOOT is defined.
7887
0321415e
VS
78882012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
7889
7890 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
7891 sized ports since unlike on real hardware qemu supports only 32-bit
7892 regs.
7893
3f2bdd8f
VS
78942012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
7895
7896 * Makefile.util.def (grub-mkrescue): Enable on loongson.
7897 * util/grub-mkrescue.in: Handle loongson.
7898
29a049c9
VS
78992012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
7900
7901 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
7902 Set is_part appropriately.
7903 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
7904 names. Canonicalize partition without full disk.
7905
4abde346
VS
79062012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
7907
7908 Revert usb-quiesce since it's wrong.
7909
7910 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
7911 (grub_ofdisk_init): Don't do quiesce.
7912
61f1d93b
VS
79132012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
7914
7915 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
7916 PowerMac workaround to Xserves as well.
7917 Information supplied by: Benjamin Herrenschmidt.
7918
a09eb541
VS
79192012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
7920
7921 Don't assume that beginning address is also the entry point on ppc.
7922
7923 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
7924 (grub_linux_boot): Use linux_entry.
7925 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
7926 (grub_linux_load64): Likewise.
7927
505b3c9b
VS
79282012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
7929
7930 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
7931
cbe0b4ef
VS
79322012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
7933
7934 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
7935 needlessly lose the console.
7936
3006e981
VS
79372012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
7938
7939 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
7940 space.
7941
4e5a96b0
VS
79422012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
7943
7da036bb
VS
7944 Remove non-functional EFI grub_get_rtc. Put a better fatal message
7945 than current grub_get_rtc() not implemented when booted with
7946 coreboot without TSC.
7947
7948 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
7949 Add machine/time.h to kernel headers on loongson.
7950 * grub-core/Makefile.core.def (kernel): Remove
7951 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
7952 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
7953 (grub_get_rtc): Likewise.
7954 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
7955 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
7956 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
7957 * grub-core/kern/i386/tsc.c (grub_tsc_init)
7958 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
7959 rather than installing known non-working time source.
7960 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
7961 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
7962 * include/grub/time.h: Don't include machine/time.h.
7963 * include/grub/efi/time.h: Removed.
7964 * include/grub/i386/efi/time.h: Likewise.
7965 * include/grub/i386/ieee1275/time.h: Likewise.
7966 * include/grub/powerpc/ieee1275/time.h: Likewise.
7967 * include/grub/sparc64/ieee1275/time.h: Likewise.
7968 * include/grub/x86_64/efi/time.h: Likewise.
7969
79702012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
7971
7972 Remove dot on i and j when combining with above diacritics.
4e5a96b0
VS
7973
7974 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
7975 value.
7976 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
7977 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
7978 with dotless variants when any combining above is present.
7979
5561c22d
VS
79802012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
7981
7982 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
7983 text and not binary.
7984
96f7e60e
VS
79852012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
7986
7987 Stop polling as soon as we have the packet we were waiting for.
7988
7989 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
7990 All users updated.
7991 * grub-core/net/arp.c (have_pending): New var.
7992 (pending_req): Likewise.
7993 (grub_net_arp_send_request): Fill pending_req and use have_pending as
7994 stop indicator.
7995 (grub_net_arp_receive): Set have_pending.
7996 * grub-core/net/dns.c (recv_data): New field stop.
7997 (recv_hook): Set stop.
7998 (grub_net_dns_lookup): Init stop and use as stop condition.
7999 * grub-core/net/http.c (http_establish): Use headers_recv as stop
8000 condition.
8001 * grub-core/net/net.c (grub_net_poll_cards): New argument
8002 stop_condition. Stop when it goes true.
8003 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
8004 indicator.
8005 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
8006
3e747239
VS
80072012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
8008
8009 Keep TX and RX buffers on EFI rather than always allocate new ones.
8010
8011 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
8012 card. All users updated.
8013 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
8014 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
8015 (get_card_packet): Likewise.
8016 (grub_efinet_findcards): Init new fields.
8017
f695e99a
VS
80182012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
8019
8020 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
8021 compilation error on sparc64.
8022
9e5e66d1
VS
80232012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
8024
8025 Use ITC on IA64 rather than broken routine based on daytime.
8026
8027 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
8028 ia64.
8029 (grub_get_rtc) [__ia64__]: Likewise.
8030 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
8031 (get_itc): New function.
8032 (grub_rtc_get_time_ms): Likewise.
8033 (grub_machine_init): Calibrate ITC.
8034 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
8035 Keep only on non-ia64. Don't export since it's broken and used only
8036 if TSC is unavailable.
8037
a1767404
VS
80382012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
8039
8040 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
8041 even if it's used.
8042 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
8043 Skip if parent is unused.
8044
34b2bced
VS
80452012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8046
8047 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
8048
5e619f40
VS
80492012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8050
8051 Fix wildcard escaping.
8052
8053 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
8054 * grub-core/script/execute.c (wildcard_escape): .. to here.
8055 Don't escape dot.
8056 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
8057 * grub-core/script/execute.c (wildcard_unescape): .. to here.
8058 Don't escape dot.
8059 * grub-core/script/execute.c (gettext_append): Always escape.
8060 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
8061 * grub-core/script/yylex.l: Don't cut away the escaping.
8062 * tests/grub_script_echo1.in: Add tests with wildcard.
8063
c8ca5855
VS
80642012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8065
8066 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
8067 (ftdi_hw_configure): Likewise.
8068 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
8069 define.
8070 (real_config): Handle 1.5 stop bits.
8071 (pl2303_hw_configure): Likewise.
8072
7183452c
VS
80732012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8074
8075 * Makefile.am: Add ppc linux bootcheck.
8076 * grub-core/tests/boot/linux-ppc.cfg: New file.
8077 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
8078
f57c84cd
VS
80792012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8080
8081 * tests/grub_script_expansion.in: Skip network protocols.
8082
ecfc6207
VS
80832012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8084
8085 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
8086
8d03d284
VS
80872012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8088
8089 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
8090 --rom-directory.
8091 Add -graft-points.
8092
61c42af0
VS
80932012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8094
8095 ESCC serial driver for conducting sautomated tests in qemu.
8096 Not tested on real hardware.
8097
8098 * include/grub/serial.h (grub_serial_port): New field escc_desc.
8099 * grub-core/term/ieee1275/escc.c: New file.
8100 * grub-core/Makefile.core.def (escc): New module.
8101
08fd1291
VS
81022012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8103
8104 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
8105 invalid on error.
8106 (serial_hw_fetch): Don't read invalid handle.
8107 (serial_hw_put): Don't write into invalid handle.
8108
08dafeea
VS
81092012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8110
8111 Add a 1.5 stop bits value.
8112
8113 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
8114 * include/grub/serial.h (grub_serial_stop_bits_t): Add
8115 GRUB_SERIAL_STOP_BITS_1_5.
8116
9068fdcf
VS
81172012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8118
8119 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
8120 value rather than let it uninited.
8121
f4d5820f
VS
81222012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8123
8124 * grub-core/commands/wildcard.c (+check_file): New function.
8125 (wildcard_expand): Don't expand to non-existing files, expand with
8126 suffix and not attempt to expand if not needed.
8127
3d2de9a7
VS
81282012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8129
8130 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
8131 out of partitions containing other partitions.
8132
c5c81ff9
VS
81332012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8134
8135 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
8136 on some qemu versions with GRUB.
8137
8138 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
8139 define.
8140 (grub_openbsd_bootarg_pcibios): New struct.
8141 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
8142 Add PCIINFO.
8143
08a14e0b
VS
81442012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8145
8146 * tests/util/grub-shell.in: Trim firmware output on EFI.
8147
cede3ca3
VS
81482012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8149
8150 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
8151 and coreboot since it's already in kernel.
8152
558d3a60
VS
81532012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8154
8155 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
8156 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
8157 to here. New return value start. All users updated.
8158 Recursively scan linear mappings.
8159 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
8160 proto.
8161 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
8162 Use grub_util_get_dm_node_linear_info.
8163 * util/getroot.c (convert_system_partition_to_system_disk): Use
8164 grub_util_info rather than grub_dprintf.
8165 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
8166
60fde14d
VS
81672012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8168
8169 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
8170
8171 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
8172 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
8173
24bd8838
VS
81742012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8175
8176 * include/grub/types.h (grub_set_unaligned64): New function.
8177 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
8178 (setup): Likewise.
8179
7bc06a49
VS
81802012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8181
8182 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
8183 (grub_ofdisk_fini): Quiesce USB devices.
8184
49cea015
VS
81852012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8186
8187 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
8188 caches.
8189
8dcbe03b
VS
81902012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8191
8192 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
8193
5b258735
VS
81942012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8195
8196 * grub-core/disk/pata.c (grub_pata_pio_read)
8197 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
8198 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
8199
37ba07eb
VS
82002012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8201
8202 Extend automated tests to qemu-mips.
8203
8204 * Makefile.am: reorganise tests and enable qemu-mips.
8205 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
8206 * grub-core/tests/boot/linux.init-mips.S: New file.
8207 * tests/partmap_test.in: Handle ata0 disks.
8208 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
8209 non-pc i386.
8210
070038f8
VS
82112012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8212
8213 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
8214 ia64.
8215 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
8216 quotes while on it.
8217
004be2cd
VS
82182012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8219
8220 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
8221 (grub_halt): Likewise.
8222 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
8223
b1622487
VS
82242012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8225
8226 * grub-core/term/serial.c (grub_serial_register)
8227 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
8228 the behaviour in line with x86 platforms.
8229
b7b4ab33
VS
82302012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8231
8232 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
8233 (grub_ata_strncpy): Likewise.
8234 (grub_ata_identify): Add missing byteswaps.
8235
5e3535ae
VS
82362012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8237
8238 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
8239 byte-swap.
8240 (screen_read_char): Likewise.
8241 (grub_vga_text_cls): Likewise.
8242
c21b17e6
VS
82432012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8244
8245 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
8246 filenames.
8247 (make_file_path): Likewise.
8248
bf293dec
VS
82492012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8250
8251 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
8252 machines.
8253 Tested by: Paulo Flabiano Smorigo.
8254 Crucial information about API supplied by: Coleen <Last name unknown>.
8255 Reviewed by: Coleen <Last name unknown>.
8256
81f6ef0e
VS
82572012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
8258
8259 * util/grub-mkimage.c: Disable -Wcast-align.
8260
7284143a
VS
82612012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
8262
8263 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
8264 as they are fatal.
8265
b99f3e00
VS
82662012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
8267
8268 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
8269
944f752d
VS
82702012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
8271
8272 * util/grub-probe.c (escape_of_path): Fix double free.
8273
6cce6f38
VS
82742012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
8275
8276 * grub-core/commands/videoinfo.c (hook): Show pitch.
8277
1e1eb50e
VS
82782012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
8279
8280 * util/grub.d/20_linux_xen.in: Skip xen-syms.
8281
1c715b5a
VS
82822012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
8283
8284 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
8285 (probe): Add ieee1275 to OFW devices.
8286
007ae52d
VS
82872012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
8288
8289 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
8290
4557a36d
VS
82912012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
8292
8293 Handle IBM OFW path.
8294
8295 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
8296 available.
8297 (of_path_of_scsi): Handle vdevice.
8298
efbeefe9
VS
82992012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
8300
8301 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
8302 Allocate in multiples of 16 to avoid adding a few bytes free region the
8303 windows bugs upon.
8304
15a940bb
VS
83052012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
8306
8307 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
8308 Allocate in multiples of 16 to avoid adding a few bytes free region the
8309 windows bugs upon.
8310 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
8311
6e5efd60
VS
83122012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
8313
8314 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
8315 resolutions.
8316 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
8317 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
8318
0d3d137e
IS
83192012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
8320
8321 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
8322
45dbe300
VS
83232012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
8324
8325 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
8326 resulted in \\ at the end of the line.
8327
6d8db947
VS
83282012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
8329
8330 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
8331 (grub_parser_cmdline_state): Likewise.
8332 (grub_parser_split_cmdline): Likewise.
8333
de89d338
VS
83342012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
8335
8336 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
8337 /dev/root and /dev/dm-*.
8338
00d41dee
VS
83392012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
8340
8341 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
8342 fix partially stale display.
8343
f95d1f11
VS
83442012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
8345
8346 * grub-core/normal/menu_entry.c (backward_char): Use right line for
8347 substraction.
8348
6297e197
VS
83492012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
8350
8351 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
8352 Fix MBR remapping workaround.
8353 (grub_util_biosdisk_read) [__linux__]: Likewise.
8354
8a7ecad3
VS
83552012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
8356
8357 * util/grub-install.in: Check for ieee1275 and not ieee1276.
8358
2b34f944
VS
83592012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
8360
8361 * configure.ac: Bump to beta6.
8362
684aef11
CW
83632012-05-31 Christer Weinigel <christer@weinigel.se>
8364
8365 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
8366
05b0bb91
VS
83672012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
8368
8369 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
8370 (grub_cmd_linux): Likewise.
8371
bda36bfa
CW
83722012-05-31 Christer Weinigel <christer@weinigel.se>
8373
8374 Fix EHCI low-speed.
8375
8376 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
8377 (GRUB_EHCI_MULT_TWO): Likewise.
8378 (GRUB_EHCI_MULT_THREE): Likewise.
8379 (GRUB_EHCI_CMASK_MASK): New enum value.
8380 (GRUB_EHCI_SMASK_MASK): Likewise.
8381 (GRUB_EHCI_CMASK_OFF): Likewise.
8382 (GRUB_EHCI_SMASK_OFF): Likewise.
8383 (grub_ehci_pci_iter): Enable periodic schedule.
8384 (grub_ehci_parse_notrun): Likewise.
8385 (grub_ehci_restore_hw): Likewise.
8386 (grub_ehci_setup_qh): Set flags for low speed transfers.
8387 (grub_ehci_find_qh): Use periodic list for low speed.
8388 (grub_ehci_setup_transfer): Check periodic queue as well.
8389 (grub_ehci_check_transfer): Likewise.
8390 (grub_ehci_cancel_transfer): Cancel periodic transfer.
8391
e12bcb1c
PFS
83922012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8393
8394 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
8395 parameter is used.
8396
bcc75fb3
PJ
83972012-05-31 Peter Jones <pjones@redhat.com>
8398
8399 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
8400 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
8401 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
8402
f19cb95e
VS
84032012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
8404
8405 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
8406 uninited variable. Allocate at least setup_sects.
8407
a4e5ca80
VS
84082012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
8409
8410 Fix handling of EFI with big memory maps.
8411
8412 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
8413 (real_mode_mem): Likewise.
8414 (real_mode_target): Likewise.
8415 (real_mode_pages): Likewise.
8416 (prot_mode_pages): Likewise.
8417 (linux_params): New var.
8418 (linux_cmdline): Likewise.
8419 (free_pages): Don't set real mode variables.
8420 (allocate_pages): Don't allocate real mode memory.
8421 (grub_e820_add_region): Remove the limit.
8422 (grub_linux_boot): Allocate and copy real mode memory.
8423 (grub_linux_unload): Free linux_cmdline.
8424 (grub_cmd_linux): Use temporary storage for parameters.
8425 (grub_cmd_initrd): Likewise.
8426 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
8427 (linux_kernel_params): Make it 1K big.
8428
ddb73558
VS
84292012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
8430
8431 * Makefile.util.def: Remove -Wno-format.
8432 * grub-core/Makefile.core.def: Likewise.
8433
1c4afb60
VS
84342012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
8435
8436 * tests/cmp_unit_test.c: Add missing failure message.
8437 * tests/example_unit_test.c: Likewise.
8438 * tests/printf_unit_test.c: Likewise.
8439
941e3a6d
VS
84402012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
8441
8442 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
8443 relaxation of protective MBR requirements.
8444
b105df76
VS
84452012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
8446
8447 * configure.ac: Add condition for COND_HOST_XNU.
8448 * Makefile.util.def (10_xnu): New script.
8449 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
8450
84e1569e
VS
84512012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
8452
8453 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
8454 objconv bug.
8455
130c0f77
VS
84562012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
8457
8458 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
8459 Binary on other platforms stays identical.
8460
6fd0b143
VS
84612012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
8462
8463 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
8464 Apple.
8465
0af1751d
VS
84662012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
8467
8468 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
8469
176d5f7d
VS
84702012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
8471
8472 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
8473 rather than defining size_t ourselves to avoid conflict.
8474
7de5e20a
VS
84752012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
8476
8477 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
8478 initialisation to avoid __bzero reference.
8479
f7143efe
VS
84802012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
8481
8482 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
8483 version.
8484 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
8485 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
8486 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
8487 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
8488 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
8489
e6ad0555
VS
84902012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
8491
8492 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
8493 * grub-core/kern/misc.c: Likewise.
8494 * grub-core/loader/i386/xnu.c: Likewise.
8495 * include/grub/i386/tsc.h: Likewise.
8496 * include/grub/symbol.h: Likewise.
8497
4a5a3c4a
VS
84982012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
8499
8500 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
8501 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
8502 on older compiler.
8503
037f6d90
VS
85042012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
8505
8506 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
8507 Implement Apple flavour.
8508 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
8509
f7194551
VS
85102012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
8511
8512 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
8513 (memmove) [__APPLE__]: Likewise.
8514 (memcpy) [__APPLE__]: Likewise.
8515 (memset) [__APPLE__]: Likewise.
8516 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
8517 (memmove) [__APPLE__]: Likewise.
8518 (memcpy) [__APPLE__]: Likewise.
8519 (memset) [__APPLE__]: Likewise.
8520
85a730ca
VS
85212012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
8522
8523 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
8524 dependency discard.
8525
40e80b94
VS
85262012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8527
8528 * grub-core/normal/main.c (read_config_file): Provide config_file and
8529 config_directory.
8530 * util/grub.d/41_custom.in: Use config_directoy when available.
8531
9da59c32
VS
85322012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8533
8534 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
8535 (grub_bfs_dir): Likewise.
8536
2787ae53
PJ
85372012-05-27 Peter Jones <pjones@redhat.com>
8538
8539 The old code gives arguments to a printf function which can't work
8540 correctly, and the compiler complains.
8541
8542 * grub-core/tests/example_functional_test.c (example_test): Add
8543 missing text.
8544 * grub-core/tests/lib/test.c (add_failure): Rewrite.
8545 * include/grub/test.h (grub_test_assert_helper): New declaration.
8546 (grub_test_assert): Use grub_test_assert_helper.
8547
526ef13d
VS
85482012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8549
8550 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
8551 (exfctest): ... this to avoid overlong filenames.
8552 All users updated.
8553
20dd511c
VS
85542012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8555
8556 Handle "." and ".." on squashfs.
8557
8558 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
8559 Make inode numbers into stack.
8560 (grub_squash_read_symlink): Use stack.
8561 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
8562 (make_root_node): Fill stack.
8563 (grub_squash_open): Use stack.
8564
1d80c62a
VS
85652012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8566
8567 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
8568 freeing.
8569
d336f652
VS
85702012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8571
8572 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
8573 stderr on test calls.
8574
8b43f587
VS
85752012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8576
8577 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
8578
80a3dc3f
VS
85792012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8580
8581 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
8582
47e297d4
VS
85832012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8584
8585 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
8586 "..".
8587
df042ccb
VS
85882012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8589
8590 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
8591 (grub_hfsplus_iterate_dir): Add "." and "..".
8592
fc977f48
VS
85932012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8594
8595 * grub-core/fs/cpio.c (canonicalize): Handle "..".
8596 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
8597
f3250e5f
VS
85982012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8599
8600 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
8601 (find_path): Handle "." and "..".
8602
fd8ed4c5
VS
86032012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8604
8605 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
8606 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
8607 (grub_affs_iterate_dir): Handle hardlinks.
8608
4ce776d2
MG
86092012-05-26 Matthew Garrett <mjg@redhat.com>
8610
8611 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
8612 (grub_efi_console_fini): Likewise.
8613 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
8614 (grub_video_gop_fill_mode_info): Rename to ...
8615 (grub_video_gop_fill_real_mode_info): ... this.
8616 (grub_video_gop_fill_mode_info): New function.
8617 (grub_video_gop_setup): Setup double framebuffer.
8618 (grub_video_gop_get_info_and_fini): Use original framebuffer.
8619 Free offscreen.
8620 (grub_video_gop_swap_buffers): Copy framebuffer.
8621 (grub_video_gop_fini): Free offscreen buffer.
8622 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
8623 New enum.
8624 (grub_efi_gop_blt_pixel): New struct.
8625
683031ba
VS
86262012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
8627
8628 * gentpl.py: Remove error disabling for objconv.
8629
c2deb798
VS
86302012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
8631
8632 * configure.ac: Remove -Wunitialized as it's not available on older
8633 compilers.
8634
86352012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
77ceedb6
VS
8636
8637 Fix extent overflow comparator.
8638
8639 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
8640 (grub_hfsplus_read_block): Set type.
8641 (grub_hfsplus_cmp_extkey): Compare type.
8642
d6b1fd36
VS
86432012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
8644
8645 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
8646
0a9aa0f6
VS
86472012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
8648
8649 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
8650 than 0.
8651
8360e159
VS
86522012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
8653
8654 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
8655 (dejavu_bold_14.pf2): New target.
8656
501b9e4b
VS
86572012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
8658
8659 * configure.ac: Fix djvu font detection.
8660
7026b0e2
VS
86612012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
8662
8663 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
8664 ext* instead of ext2.
8665
c2a51ade
VS
86662012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
8667
8668 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
8669 name with \0.
8670
8f803a5d
JU
86712012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
8672
8673 * docs/grub-dev.texi: Remove dot from .png.
8674
13c6353f
VS
86752012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
8676
8677 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
8678 protective entry in any slot.
8679 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
8680 if protective entry is found in any slot.
8681
8682 Protective entry in non-first slot make no sense but is a widespread
8683 brain damage.
8684
4cf6be1b
VS
86852012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
8686
8687 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
8688
937d1c44
VS
86892012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
8690
8691 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
8692 with old reiserfs.
8693 (grub_reiserfs_open): Don't free root.
8694
021d90ec
VS
86952012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
8696
8697 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
8698 after freeing for safety.
8699
967b2b64
VS
87002012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
8701
8702 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
8703 Reported by: Jordan Uggla.
8704
34274d02
JU
87052012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
8706
967b2b64
VS
8707 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
8708 actual implementation. Specifically, clarify that the grub menu will
8709 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
8710 passed.
34274d02 8711
dcaaae9d
BH
87122012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
8713
8714 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
8715 of r0.
8716
7086ad52
VS
87172012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
8718
8719 Remove unjustified hard dependency of normal.mod on gfxterm.
8720
8721 * include/grub/term.h (grub_term_output): New member fullscreen.
8722 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
8723 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
8724 (grub_gfxterm): Set .fullscreen.
8725 * grub-core/normal/menu.c (menu_init): Use fullscreen.
8726 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
8727
37ed2c9b
VS
87282012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
8729
8730 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
8731 mentioning possible problems with non-ASCII (non-compliant) ISOs.
7086ad52 8732 Mention case-insensitive AFFS, SFS and JFS.
37ed2c9b 8733
a4469c88
VS
87342012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
8735
8736 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
8737
4e461486
VS
87382012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
8739
8740 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
8741 a bad FS.
8742
aa78f5c4
VS
87432012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
8744
8745 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
8746 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
8747
197626b5
VS
87482012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
8749
8750 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
8751 (grub_jfs_mount): Fill caseins.
8752 (grub_jfs_find_file): Respect caseins.
8753
8ad3f28c
VS
87542012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
8755
8756 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
8757 through UTF-16.
8758
0c6c324e
VS
87592012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
8760
8761 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
8762 New argument origpath. All users updated.
8763
c6666ba6
VS
87642012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
8765
8766 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
8767 (read_attr): Ensure that we read start of possibly compressed block.
8768
e28e5fe5
VS
87692012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
8770
8771 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
8772 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
8773 All users updated.
8774
5fc23ab2
VS
87752012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
8776
8777 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
8778 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
8779 (dejavu.pf2): Replace with ...
8780 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
8781 this.
8782
79dbc21c
VS
87832012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
8784
8785 * util/grub.d/20_linux_xen.in: Add missing line.
8786
d2fcfb0c
VS
87872012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
8788
8789 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
8790 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
8791 (grub_utf16_to_utf8): Likewise.
8792
5560e9d6
VS
87932012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
8794
8795 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
8796 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
8797 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8798 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
8799 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
8800 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
8801
88022012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
bfb320c6
VS
8803
8804 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
8805 a bad FS.
8806
5560e9d6 88072012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
def3df75
VS
8808
8809 * grub-core/fs/udf.c (read_string): Bail out on size=0.
8810 (grub_udf_read_symlink): Handle read_string failure.
8811
5eae3175
VS
88122012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
8813
8814 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
8815 comment.
8816
c1ad82db
VS
88172012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
8818
8819 Fix handling of UDF symlinks.
8820
8821 * grub-core/fs/udf.c (read_string): New argument outbuf.
8822 All users updated.
8823 (grub_ufs_read_symlink): Rename to ...
8824 (grub_udf_read_symlink): ... this. All users updated.
8825 Handle symlinks with more than one component.
8826
33eca6e0
VS
88272012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
8828
8829 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
8830 symlinks. Replace leading colon with a slash.
8831
57f4a70b
VS
88322012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
8833
8834 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
8835 filename.
8836
38c8ee20
VS
88372012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
8838
8839 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
8840 match in inner node.
8841
2e57f28f
VS
88422012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
8843
8844 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
8845 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
8846 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
8847 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
8848 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
8849 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
8850 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
8851 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
8852 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
8853
fe8c2f11
VS
88542012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
8855
8856 Use grub-probe and not cmp to check that disk is empty.
8857
8858 * util/grub-install.in: Use grub-probe for zero-check.
8859 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
8860 (probe): Handle PRINT_ZERO_CHECK.
8861 (argp_parser): Handle -t zero_check.
8862
88632012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
f1a6254c
VS
8864
8865 Flush block cache on adding disk to device map.
8866
8867 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
8868 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
8869 adding.
8870 (read_device_map): Likewise.
8871 (open_device): Flush on opening.
8872
690434e8
VS
88732012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
8874
8875 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
8876 (handle_symlink): Fix off-by-one error.
8877 Canonicalize the target.
8878 (grub_cpio_dir): Canonicalize the name.
8879 Fix memory leak.
8880 Set directory.
8881 (grub_cpio_open): Canonicalize the name.
8882
742d2be6
VS
88832012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
8884
8885 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
8886 handling.
8887
3244fe96
VS
88882012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
8889
8890 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
8891 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
8892
8aeb1837
VS
88932012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
8894
8895 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
8896 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
3244fe96 8897 All users updated.
8aeb1837 8898
9133fd05
VS
88992012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
8900
8901 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
8902 counterpart.
8903
6d521c5b
VS
89042012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
8905
8906 Fix UFS1 big file support.
8907
8908 * grub-core/fs/ufs.c (INODE): Removed.
8909 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
8910 64-bit.
8911 (INODE_MODE): Simplify.
8912 (grub_ufs_inode): Use uint64_t for size and not int64_t.
8913 (grub_ufs_lookup_symlink): Don't use INODE.
8914
21b82e17
VS
89152012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
8916
8917 Fix minixfs with non-power-of-two blocks since it's supported by minix.
8918
8919 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
8920 (grub_minix_data): Replace log_block_size with block_size.
8921 (grub_minix_read_file): Use block_size but avoid 64-bit division.
8922 (grub_minix_mount): Fill block_size.
8923
89242012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
319621d0
VS
8925
8926 * configure.ac: Bump to beta5.
8927
f417ed04
VS
89282012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
8929
8930 Fix wrapped HFS+ handling.
8931
8932 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
8933 blocks_start. All users updated.
8934 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
8935 wrapping offset.
8936 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
8937
607d282b
VS
89382012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
8939
8940 Fix long symlinks on reiserfs.
8941
8942 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
8943 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
8944 (grub_reiserfs_iterate_dir): Save size for non-directories.
8945 (grub_reiserfs_open): Don't reread stat block as we already know the
8946 size.
8947 (grub_reiserfs_read): Split into...
8948 (grub_reiserfs_read_real): ... and ...
8949 (grub_reiserfs_read): ...this.
8950
ae16024d
VS
89512012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
8952
8953 Fix non-indexed JFS.
8954
8955 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
8956 (grub_jfs_data): New field namecomponentlen.
8957 (grub_jfs_mount): Fill namecomponentlen.
8958 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
8959
eea1e26e
VS
89602012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
8961
8962 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
8963 * tests/grub_script_echo1.in: Add tests.
8964
df760f77
VS
89652012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
8966
8967 * util/grub-install.in: Ignore empty devicetree directory.
8968
5efb817d
B
89692012-05-08 Bean <bean123ch@gmail.com>
8970
8971 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
8972 All users updated.
8973 (free_rsm): Free header as well.
8974 (free_old_fragments): Fix memory leak.
8975 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
8976 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
8977 (destroy_pq): Likewise.
8978 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
8979
668ea6d2
VS
89802012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
8981
8982 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
8983 resulting hash as a precaution.
8984
1739b1fe
VS
89852012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
8986
8987 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
8988 '_' in variable names.
8989 * grub-core/net/net.c (grub_net_network_level_interface_register):
8990 Likewise.
8991
6ae485aa
VS
89922012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
8993
8994 Fix AFFS with non-512B blocks.
8995
8996 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
8997 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
8998 (grub_affs_data): Replace blocksize with log_blocksize.
8999 (grub_affs_read_block): Fix non-512B blocks.
9000 (grub_affs_read_symlink): Likewise.
9001 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
9002 (grub_affs_read): Fix non-512B blocks.
9003 (grub_affs_label): Likewise.
9004 (grub_affs_mtime): Likewise.
9005 (grub_affs_mount): Fix block detection routine.
9006
d20fab84
VS
90072012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
9008
9009 Add filesystem mtime to AFFS.
9010
9011 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
9012 (aftime2ctime): New function.
9013 (grub_affs_dir): Use aftime2ctime.
9014 (grub_affs_label): Fix return value.
9015 (grub_affs_mtime): New function.
9016 (grub_affs_fs): Add mtime.
9017
e87b10f5
VS
90182012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
9019
9020 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
9021 UTF-8.
9022
7dceec9b
VS
90232012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
9024
9025 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
9026 UTF-8.
9027
2f48221f
VS
90282012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
9029
9030 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
9031
dacd85cf
VS
90322012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
9033
9034 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
9035 flags.
9036 (FLAGS_CASE_SENSITIVE): New enum value.
9037 (cache_entry): New struct.
9038 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
9039 cache_size and cache.
9040 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
9041 Add log_blocksize and fshelp_flags.
9042 (grub_sfs_read_extent): Handle non-512 blocks.
9043 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
9044 (grub_sfs_read_file): Handle non-512 blocks.
9045 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
9046 fshelp_flags.
9047 (grub_sfs_read_symlink): Handle non-512 blocks.
9048 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
9049 (grub_sfs_dir): Free cache.
9050 (grub_sfs_close): Likewise.
9051
24e9a854
VS
90522012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
9053
9054 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
9055 filesystems.
9056
62ace64d
VS
90572012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
9058
9059 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
9060
83b2e89c
VS
90612012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
9062
9063 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
9064
75ccaea3
VS
90652012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
9066
9067 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
9068 (grub_sfs_read_extent): Likewise.
9069 (grub_sfs_read_block): Likewise.
9070 (grub_sfs_mount): Likewise.
9071 (grub_sfs_iterate_dir): Likewise.
9072 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
9073 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
9074
1b8463f2
VS
90752012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9076
9077 Fix errors on compressed NTFS with 512B clusters.
9078
9079 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
9080 types.
9081 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
9082 not 0.
9083 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
9084 Relax check for inline extents.
9085 (ntfscomp): Return correct -1 on error and not 0.
9086
4f8e368f
VS
90872012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9088
9089 * util/grub-install.in: Fix handling of prefix containing spaces.
9090
6f5d5ee8
VS
90912012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9092
9093 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
9094 (grub_squash_read_data): Fix offset byte-swapping.
9095
ce41ab7a
VS
90962012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9097
9098 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
9099 per common usage and preffered in several parts of code.
9100 (grub_memcmp): Likewise.
9101 (grub_strncmp): Likewise.
9102 * include/grub/misc.h (grub_strcasecmp): Likewise.
9103 (grub_strncasecmp): Likewise.
9104 * Makefile.util.def (cmp_test): New test.
9105 (grub_script_strcmp): Likewise.
9106 * tests/cmp_unit_test.c: New file.
9107 * tests/grub_script_strcmp.in: Likewise.
9108 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
9109
49717bf4
VS
91102012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9111
9112 * include/grub/pci.h: Move enums into no-asm part.
9113
0a308f64
VS
91142012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9115
9116 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
9117
1796965f
ST
91182012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
9119
9120 * util/getroot.c (find_hurd_root_device): Try to make error message
9121 and comments to translators clearer.
9122
4e9b2819
VS
91232012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9124
9125 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
9126
076aeb50
VS
91272012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9128
9129 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
9130 btrfs.
9131
19424d94
VS
91322012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9133
9134 * docs/grub.cfg: Update.
9135
ebb73076
VS
91362012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9137
9138 * docs/grub.texi (PXE): Remove not present variables.
9139
9a1b669c
VS
91402012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9141
9142 * grub-core/net/net.c (defserver_set_env): New function.
9143 (defserver_get_env): Likewise.
9144 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
9145
d38bf7d3
VS
91462012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9147
9148 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
9149 entries.
9150
91512012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
11858300
VS
9152
9153 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
9154 * grub-core/kern/emu/hostdisk.c: Likewise.
9155
e5e4ca48
ST
91562012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
9157
9158 Handle hurd userspace partitions.
9159
9160 * util/getroot.c (find_hurd_root_device): New function.
9161 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
9162
56bb5dd5
VS
91632012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9164
9165 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
9166 names.
9167 Reported by: Bastian Blank.
9168
9e8bc27a
VS
91692012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9170
9171 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
9172 crossing page boundary.
9173
aa01499d
VS
91742012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9175
9176 Fix B-tree search in BFS, especially in presence of non-ASCII
9177 characters.
9178
9179 * grub-core/fs/bfs.c (bfs_strcmp): New function.
9180 (find_in_b_tree): Use standard bsearch + btree algorithm.
9181
57006035
VS
91822012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9183
9184 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
9185 and so on.
9186
9d34bb85
MG
91872012-05-03 Matthew Garrett <mjg@redhat.com>
91882012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9189
9190 Suspend broadcom cards in order to stop their DMA.
9191
9192 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
9193 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
9194 (pci): Don't build on x86 EFI.
9195 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
9196 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
9197 New function.
9198 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
9199 stop_broadcom if running on EFI.
9200 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
9201 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
9202 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
9203 (grub_pci_find_capability): New proto.
9204
01aab997
VS
92052012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9206
9207 * docs/grub.texi: Remove dot from the extension as it apparently
9208 doesn't work with some makeinfo versions.
9209
fbd8dca6
VS
92102012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9211
9212 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
9213 with GRUB expectance.
9214
dab797f4
VS
92152012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9216
9217 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
9218
1516bfb4
VS
92192012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9220
9221 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
9222 zero after directory block since last entry may be not 0-terminated if
9223 it ends on block boundary. Use continue instead of if spanning whole
9224 loop.
9225
a3a0eace
VS
92262012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9227
9228 Support 4K sectors UDF inline files.
9229
9230 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
9231 (grub_udf_extended_file_entry): Likewise.
9232 (grub_fshelp_node): Name the anonymous union. Put block at the end.
9233 All users updated.
9234 (get_fshelp_size): New function.
9235 (grub_udf_read_icb): Read whole block.
9236 (grub_udf_iterate_dir): Likewise.
9237 (grub_udf_dir): Likewise.
9238 (grub_udf_open): Likewise.
9239
c82f16c1
VS
92402012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9241
9242 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
9243
59fd2aac
VS
92442012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9245
9246 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
9247 inline symlinks in addition to workaround.
9248
3b4afb4d
VS
92492012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9250
9251 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
9252
f45c794a
VS
92532012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9254
9255 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
9256
f25cecbd
VS
92572012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9258
9259 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
9260
bb9a34e8
VS
92612012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
9262
9263 Fix reiserfs big seek times.
9264
9265 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
9266 exact. All users updated.
9267 (grub_reiserfs_read): Use nearest btree search for seeking.
9268 Fix return value on error.
9269
dc478aea
VS
92702012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
9271
9272 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
9273 entries.
9274 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
9275 * docs/grub.texi: Update menuentry description.
9276
8db10f47
VS
92772012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
9278
9279 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
9280 crash when embedding onto filesystem.
9281
bcb288ed
VS
92822012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
9283
9284 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
9285 name.
9286
a626fdd7
VS
92872012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9288
9289 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
9290
b2f68477
VS
92912012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9292
9293 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
9294 commit.
9295
ba15b2af
B
92962012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
92972012-05-01 Bean <bean123ch@gmail.com>
9298
9299 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
9300
a188012e
VS
93012012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9302
9303 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
9304 Special behaviour for len = 0 to read whole file isn't used anywhere and
9305 can cause buffer ovewrflows in several places.
9306
f0a53ed2
VS
93072012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9308
9309 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
9310
5ed554f0
VS
93112012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9312
9313 Handle RAIDZ on non-512B sectors.
9314
9315 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
9316 max_children_ashift.
9317 (fill_vdev_info_real): Fill max_children_ashift.
9318 (read_device): Use max_children_ashift.
9319
ddc58357
VS
93202012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9321
9322 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
9323
e3282399
VS
93242012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9325
9326 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
9327 disk names.
9328 * docs/grub.texi: Update device.map parts.
9329
ee618bd4
VS
93302012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9331
9332 Don't scan into non-diskfilter devices having diskfilter names.
9333
9334 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
9335 (scan_disk): New argument accept_diskfilter. Fix recursion depth
9336 handling.
9337 (scan_disk_hook): New function.
9338
bdf88864
B
93392012-04-29 Bean <bean123ch@gmail.com>
9340
9341 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
9342 allocation.
9343
32745f51
MK
93442012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
9345
9346 * configure.ac: Detect starfield theme font path
9347 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
9348
bc95c8c0
VS
93492012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
9350
9351 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
9352 geometry on serial consoles.
9353
147fbcab
VS
93542012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
9355
9356 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
9357 because of network consoles.
9358
0f42c889
VS
93592012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
9360
9361 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
9362 handling.
9363
4a3594c9
VS
93642012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
9365
9366 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
9367 falls on Q syndrom.
9368
5cb53879
VS
93692012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
9370
9371 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
9372 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
9373
b282dfe5
VS
93742012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
9375
9376 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
9377 Allocate at lest 8192 for temporary buffer as required for lzo.
9378
daa59f47
VS
93792012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
9380
9381 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
9382 to cluster_bits, since it's already added in.
9383 (grub_fat_read_data): Likewise.
9384
986748ce
VS
93852012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
9386
9387 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
9388 as long as cluster size is multiple of 512 bytes.
9389
a20f6ad0
VS
93902012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
9391
9392 * util/grub-mkrescue.in: Fix locale directory.
9393
385f9abb
VS
93942012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
9395
9396 * grub-core/kern/emu/hostdisk.c (map): Make static.
9397
1c557d30
B
93982012-04-23 Bean <bean123ch@gmail.com>
9399
9400 * util/grub-fstest.c (fstest): Add missing break.
9401
524b5d3a
ST
94022012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
9403
9404 Fix hurd build.
9405
9406 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
9407 not define nr variable.
fe4824e9 9408 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
9409 find_root_devices_from_poolname, find_root_devices_from_libzfs,
9410 grub_find_device): Do not define.
524b5d3a 9411
9a06490c
VS
94122012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
9413
9414 Fix kfreebsd compile and behaviour.
9415
9416 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
9417 format-security.
9418 * util/getroot.c: Fix wait.h include.
9419 (grub_guess_root_devices): Error if grub_find_device fails.
9420 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
9421 (grub_util_get_dev_abstraction): Likewise.
9422 (grub_util_pull_device): Likewise.
9423 (grub_util_get_grub_dev): Likewise.
9424 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
9425
48143d96
VS
94262012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
9427
9428 Fix and unify wholedisk detection.
9429
9430 * util/getroot.c (convert_system_partition_to_system_disk): New argument
9431 is_part. All users updated.
9432 (device_is_wholedisk): Removed.
9433 (grub_util_biosdisk_get_grub_dev): Use is_part.
9434
ebbd24f3
VS
94352012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
9436
9437 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
9438 mode.
9439
56f7aa1e
VS
94402012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
9441
9442 * configure.ac: Bump to beta4.
9443
9c815e01
VS
94442012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
9445
9446 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
9447 --fs-uuid --set UUID syntax.
9448
59e2651a
VS
94492012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
9450
9451 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
9452 disunification.
9453
54e03cfc
VS
94542012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
9455
9456 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
9457
81092a75
MK
94582012-04-18 Mads Kiilerich <mads@kiilerich.com>
9459
9460 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
9461
f8315e14
MG
94622012-04-18 Mike Gilbert <floppym@gentoo.org>
9463
9464 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
9465
1501ac21
B
94662012-04-18 Bean <bean123ch@gmail.com>
9467
9468 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
9469 place.
9470
cb7f944e
VS
94712012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
9472
9473 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
9474 users updated.
9475 (grub_util_biosdisk_read): Handle Linux partitions not exactly
9476 corresponding to GRUB partitions.
9477 (grub_util_biosdisk_write): Likewise.
9478
b72d44a1
VS
94792012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
9480
9481 Scan mdraid before LVM.
9482
9483 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
9484 (grub_diskfilter_register_front): ... this.
9485 (grub_diskfilter_register_back): New function.
9486 All users of grub_diskfilter_register updated.
9487
33d918b8
VS
94882012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
9489
9490 * util/grub-install.in: Fix an automatic target detection bug.
9491
c6ca973d
VS
94922012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
9493
9494 * util/grub-install.in: New option --efi-directory.
9495
b41be562
VS
94962012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
9497
9498 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
9499 boot services if we have no other choice.
9500
95012012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
9502
9503 * util/grub-mknetdir.in: Rename --override-directory to --directory and
9504 document it.
9505 * tests/util/grub-shell.in: Update to --directory.
9506
e0595a73
VS
95072012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
9508
9509 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
9510
4ed80652
VS
95112012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
9512
9513 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
9514 (grub_minix_read_file): Likewise.
9515 (grub_minix_read_inode): Likewise.
9516 (grub_minix_find_file): Likewise.
9517 (grub_minix_dir): Likewise.
9518
56008077
VS
95192012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
9520
9521 * util/grub-setup.c (setup): Fix partition handling and blocklist
9522 check.
9523
ee520775
VS
95242012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
9525
9526 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
9527 redundant buggy overlap check.
9528
16fc9293
VS
95292012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
9530
9531 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
9532 and grub-mknetdir.
9533
9bab65c4
VS
95342012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
9535
9536 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
9537 kh.loadflags on pre-2.00 kernels.
9538
3c491b47
VS
95392012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
9540
9541 Terminate UNDI and PXE before launching the payload to avoid problems
9542 with DMA.
9543
9544 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
9545 (grub_loader_flags): ... this. All users updated.
9546 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
9547 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
9548 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
9549 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
9550 function.
9551 (grub_pxe_restore): Likewise.
9552 (fini_hnd): New var.
9553 (GRUB_MOD_INIT): Register shutdown hook.
9554 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
9555 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
9556 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
9557 (grub_loader_set): Rename second argument to flags.
9558
851ffada
VS
95592012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
9560
9561 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
9562 written bytes.
9563 (grub_get_num_of_utf8_bytes): New function.
9564 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
9565 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
9566 executing it.
9567 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
9568 (grub_ucs4_to_utf8): Change return type.
9569
491c57a8
VS
95702012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
9571
9572 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
9573 warning.
851ffada
VS
9574 * grub-core/fs/bfs.c (hop_level): Likewise.
9575 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
491c57a8 9576
756773df
VS
95772012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
9578
9579 * grub-core/lib/adler32.c: Recode due to license unclearness.
9580
fd556a96
VS
95812012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
9582
9583 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
9584 (test_header): Likewise.
9585
9f9d3f69
VS
95862012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
9587
9588 Fix --help formatting.
9589
9590 * util/grub-mkconfig_lib.in (print_option_help): New function.
9591 (grub_fmt): Likewise.
9592 * util/grub-install.in: Use print_option_help and grub_fmt.
9593 * util/grub-kbdcomp.in: Likewise.
9594 * util/grub-mkconfig.in: Likewise.
9595 * util/grub-mknetdir.in: Likewise.
9596 * util/grub-mkrescue.in: Likewise.
9597 * util/grub-mkstandalone.in: Likewise.
9598 * util/grub-reboot.in: Likewise.
9599 * util/grub-set-default.in: Likewise.
9600 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
9601
561ec77e
VS
96022012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
9603
9604 * linguas.sh: Remove autogenerated *.po.
9605
7ec2b021
VS
96062012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
9607
9608 * po/README: Move language fetcing to ...
9609 * linguas.sh: ... here.
9610 * po/README: Point to linguas.sh.
9611
a88f3270
VS
96122012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
9613
9614 * po/README: Exclude ko.po due to disclaimer problems.
9615
d61357ce
VS
96162012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
9617
9618 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
9619 len = 0.
9620 (grub_gettext_translate_real): Handle 0th string.
9621 (grub_gettext_translate): Ensure that "" isn't translated.
9622
505e41dc
VS
96232012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
9624
9625 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
9626 TRANSLATORS comment.
9627 (grub_diskfilter_print_partmap): Propagate changing of error into
9628 warning.
9629
e44092db
VS
96302012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
9631
9632 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
9633 to uint64_t to prevent overflow.
9634 (grub_diskfilter_lv): Increase start_extent and extent_count
9635 to uint64_t to prevent overflow.
9636
9b83956a
VS
96372012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
9638
9639 * configure.ac: Increase version.
9640
da0d5b3f
VS
96412012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
9642
9643 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
9644
9645 * po/Rules-translit: New file.
9646 * po/arabic.sed: Likewise.
9647 * po/cyrillic.sed: Likewise.
9648 * po/greek.sed: Likewise.
9649 * po/hebrew.sed: Likewise.
9650 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
9651 * po/Makefile.in.in: Add extra_dist4.
9652
ac66b453
VS
96532012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
9654
9655 Handle big-endian minixfs (fixes minixfs tests on bigendian).
9656
9657 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
9658 modify names. Introduce MODE_BIGENDIAN.
9659 * grub-core/fs/minix_be.c: New file.
9660 * grub-core/fs/minix2_be.c: Likewise
9661 * grub-core/fs/minix3_be.c: Likewise.
9662 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
9663 minix3_be.
9664 * grub-core/Makefile.core.def (minix_be): New module.
9665 (minix2_be): Likewise.
9666 (minix3_be): Likewise.
9667
96682012-04-01 Felix <email@hamburg.de>
9669
9670 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
9671 (devs): Add MBP 2011.
9672
0a2d5a82
VS
96732012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
9674
9675 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
9676
d1625889
VS
96772012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
9678
9679 * grub-core/normal/cmdline.c (print_completion): New field
9680 prompt_len.
9681 (grub_cmdline_get): Handle width properly.
9682
6d36a236
VS
96832012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
9684
9685 * grub-core/commands/lsacpi.c (options): Add missing terminator.
9686
9576977e
VS
96872012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
9688
9689 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
6d36a236 9690 after 29th of February.
9576977e 9691
d73ff15d
VS
96922012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
9693
9694 Fix exfat endianness handling.
9695
9696 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
9697 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
9698 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
9699 Byte-swap utf16 when necessary.
9700 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
9701
bbb39a45
AB
97022012-03-31 Anton Blanchard <anton@samba.org>
97032012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
9704
9705 Fix btrfs endianness handling.
9706
9707 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
9708 (lower_bound): Make root uint64_t. Use root in le.
9709 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
9710 (find_path): Fix template key init.
9711 (grub_btrfs_dir): Fix mtime byteswap.
9712 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
9713
354e0af7
VS
97142012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
9715
9716 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
9717 recursion_depth. Break infinite resursions. All users updated.
9718
4e75f21c
VS
97192012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
9720
9721 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
9722 after free.
9723 Reported by: Peter Jones.
9724
25581802
AB
97252012-03-31 Anton Blanchard <anton@samba.org>
9726
9727 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
9728 8 bit values.
9729
08fbf92e
VS
97302012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
9731
9732 * util/grub-install.in: Fix nvram call for PreP.
9733
5d1182a6
VS
97342012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
9735
9736 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
9737 the error when some elements are missing into a warning.
9738
3f8cdd90
VS
97392012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
9740
9741 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
9742
51006716
CW
97432012-03-28 Colin Watson <cjwatson@ubuntu.com>
9744
9745 * docs/grub.texi (Invoking grub-probe): New section.
9746 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
9747
e1bd676b
VS
97482012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
9749
9750 Fix tab and wide character handling in editor and menu.
9751
9752 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
9753 agglomerate control characters with combining marks.
9754 (bidi_line_wrap): Allow break on tab.
9755 (grub_unicode_get_comb_start): New function.
9756 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
9757 and tab correctly.
9758 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
9759 with a space.
9760 * grub-core/normal/term.c (print_ucs4_terminal): New argument
9761 fixed_tab_size. All users updated.
9762 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
9763 (grub_term_getcharwidth): Handle \t.
9764 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
9765 and copy.
9766
22e6a774
VS
97672012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
9768
9769 Handle big-endian mdraid.
9770
9771 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
9772 * grub-core/Makefile.core.def (mdraid09_be): New module.
9773 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
9774 rather than grub_le_to_cpu* and grub_cpu_to_le*.
9775 * grub-core/disk/mdraid_linux_be.c: New file.
9776
3c0eae66
VS
97772012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
9778
9779 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
9780
b6cf74c9
VS
97812012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
9782
9783 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
9784 missing quotes which caused confusion among translators.
9785
83c93b9c
VS
97862012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
9787
9788 * util/grub-mkconfig_lib.in: Fix typo.
9789
ac6fd218
VS
97902012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
9791
9792 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
9793 spaces.
9794 * tests/grub_script_leading_whitespace.in: New file.
9795 * Makefile.util.def (grub_script_leading_whitespace): New test.
9796
ba287dd8
VS
97972012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
9798
9799 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
9800 to work.
9801
d2d58d0a
VS
98022012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
9803
9804 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
9805 starts with control character.
9806
0382d9bb
VS
98072012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
9808
9809 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
9810 overflow.
9811 (grub_gdb_outbuf): Likewise.
9812
d83ff9f9
VS
98132012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
9814
9815 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
9816 zero terminator. Fixes a crash.
9817
2282da4a
VS
98182012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
9819
9820 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
9821 beyond 4 GiB.
9822 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
9823 images independently of preffered adderss field.
9824
0ae4f0bd
VS
98252012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
9826
9827 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
9828 * grub-core/commands/regexp.c: Likewise.
9829 * grub-core/loader/i386/linux.c: Likewise.
9830 * grub-core/partmap/msdos.c: Likewise.
9831 * grub-core/script/execute.c: Likewise.
9832 * grub-core/term/gfxterm.c: Likewise.
9833
546fbe9b
VS
98342012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
9835
9836 Add variable parsing in $"..." and fix several mismatches with bash.
9837
9838 * Makefile.util.def (grub_script_gettext): New test.
9839 * grub-core/script/execute.c (parse_string): New function.
9840 (gettext_append): Likewise.
9841 (grub_script_arglist_to_argv): Use gettext_append.
9842 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
9843 * tests/grub_script_gettext.in: New file.
9844
9fdb2d7b
VS
98452012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
9846
9847 Fix handling of leading spaces in scripts.
9848
9849 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
9850 spaces.
9851 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
9852 other than skipping \r. All users updated.
9853 * tests/grub_script_echo1.in: Add space-related tests.
9854 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
9855
1a1ac4f6
VS
98562012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
9857
9858 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
9859
b63d89b6
VS
98602012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
9861
9862 * configure.ac: Bump up the version to beta2.
9863
17f38c0f
VS
98642012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
9865
9866 Fix gettext reload bugs (e.g. inability to disable gettext
9867 once enabled).
9868
9869 * grub-core/gettext/gettext.c: Encapsulate all static variables in
9870 main_context and secondary_context. All functions updated.
9871 (grub_gettext_translate): Rename to ...
9872 (grub_gettext_translate_real): ... this. Return NULL on failed
9873 translate.
9874 (grub_gettext_translate): Handle secondary context.
9875 (grub_gettext_delete_list): Close file and zero-out the context.
9876 (grub_mofile_open): Don't call grub_gettext_delete_list.
9877 Don't close file.
9878 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
9879 if locale="" to avoid pointless error message.
9880 (grub_gettext_env_write_lang): Update lang even if load fails.
9881 Handle secondary context.
9882 (grub_gettext_reread_prefix): New function.
9883 (read_main): Likewise.
9884 (read_secondary): Likewise.
9885 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
9886 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
9887 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
9888 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
9889
8e56f870
VS
98902012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
9891
9892 * configure.ac: Decrease warning level to avoid spurious warnings and
9893 to be able to compile with GCC 4.2.
9894 * Makefile.util.def: Remove -Wno-error=logical-op.
9895
82f6d455
WB
98962012-03-10 William Bittner <william.bittner@gmail.com>
9897
9898 * util/import_unicode.py: Add missing brackets around string for
9899 python 3 support.
9900
1ecd61a4
VS
99012012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
9902
9903 Fix efi chainloader on network root.
9904
9905 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
9906 network devices.
9907 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
9908 New function.
9909
14361ee8
VS
99102012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
9911
9912 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
9913 unused show_text member.
9914 * docs/grub.texi: Document "text" property.
9915
922aabf3
VS
99162012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
9917
9918 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
9919 in dprintf.
9920
ec316771
VS
99212012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
9922
9923 Fix IMSM handling on Fedora.
9924
9925 * util/getroot.c (grub_util_is_imsm): New function.
9926 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
9927
0f021838
VS
99282012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
9929
9930 * Makefile.am: Strip gold section.
9931 * conf/Makefile.common: Likewise.
9932 * gentpl.py: Likewise.
9933 * grub-core/Makefile.core.def: Likewise.
9934 * grub-core/genmod.sh.in: Likewise.
9935
1039c8eb
VS
99362012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
9937
9938 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
9939 * util/grub.d/20_linux_xen.in: Likewise.
9940 Based on Debian patch.
9941
6dd412cd
VS
99422012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
9943
9944 * util/grub.d/10_linux.in: Fix syntax error resulting in
9945 Richard Laager's patch.
9946 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
9947
3fd8bae5
VS
99482012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
9949
9950 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
9951 dependencies.
9952
7eea1671
RL
99532012-03-10 Richard Laager <rlaager@wiktel.com>
9954
9955 * util/grub.d/10_linux.in: Fix ZFS root passing.
9956
e8e0566b
VS
99572012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
9958
9959 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
9960 * grub-core/commands/xnu_uuid.c: Likewise.
9961 * grub-core/loader/efi/appleloader.c: Likewise.
9962 * grub-core/script/execute.c: Likewise.
9963 * grub-core/script/main.c: Likewise.
9964 * util/grub-mkfont.c: Likewise.
9965
1acc5b1f
VS
99662012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
9967
9968 * util/grub-mkfont.c (options): Use more appropriate "select" that
9969 "set" for face index.
9970
35d70620
VS
99712012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
9972
9973 * util/grub-editenv.c (options): Gettextize command summaries.
9974
c9eb96b5
VS
99752012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
9976
9977 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
9978 "out of memory" error messagge.
9979
1f493136
VS
99802012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
9981
9982 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
9983 of diskfilter for diskfilter on diskfilter support.
9984
6d790129
VS
99852012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
9986
9987 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
9988
005f46c9
VS
99892012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
9990
9991 * util/grub-install.in: Check for themes/starfield/theme.txt and not
9992 themes/starfield.
9993
c8f778a0
VS
99942012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
9995
9996 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
9997
de1e64eb
VS
99982012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
9999
10000 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
10001
c6d54211
VS
100022012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10003
10004 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
10005 of error message.
10006
dd390777
VS
100072012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
10008
10009 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
10010
5fd1c522
VS
100112012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
10012
10013 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
10014 message.
c6d54211 10015 * util/grub-install.in: Fix and gettextize error message.
5fd1c522 10016
fae01f6c
VS
100172012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
10018
10019 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
10020 Gettextize.
10021 * util/grub-mount.c (options): Likewise.
10022
292fdaff
VS
100232012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
10024
10025 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
10026 gettextize.
10027 * grub-core/commands/search_wrap.c (options): Likewise.
10028
ecdbae77
VS
100292012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
10030
10031 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
10032
52bfedfa
VS
100332012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
10034
10035 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
10036 size calculation.
10037 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
10038 none is known.
10039
55b20e58
VS
100402012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
10041
10042 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
10043 "temporary" since it's used in identifier and is limited in space.
10044
fda9d101
VS
100452012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
10046
10047 * po/POTFILES.in: Regenerate. Include *.h since they contain
10048 translatable strings as well.
10049
6a0295e2
VS
100502012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
10051
10052 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
10053 byte-swap on big-endian.
10054 Reported by: Lennart Sorensen
10055
807fb77c
VS
100562012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
10057
10058 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
10059 (allocate_pages): Improve dprintf.
10060 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
10061 code32_start. Fill code32_start and kernel_alignment in params.
10062 (grub_cmd_initrd): Use prot_init_space.
10063
61ac50ba
VS
100642012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10065
10066 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
10067
abdd26dd
VS
100682012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10069
10070 * util/grub-install.in: Add missing dot at the end of sentence.
10071
6e69da9c
VS
100722012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10073
10074 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
10075 * grub-core/commands/videotest.c: Likewise.
10076 * grub-core/loader/i386/linux.c: Likewise.
10077
4a929343
VS
100782012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10079
10080 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
10081 sentence.
10082 Reported by: Milo Casagrande.
10083
bb51c6c6
VS
100842012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10085
10086 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
10087 * grub-core/commands/gptsync.c: Likewise.
10088 * grub-core/commands/hashsum.c: Likewise.
10089 * grub-core/commands/i386/pc/sendkey.c: Likewise.
10090 * grub-core/commands/legacycfg.c: Likewise.
10091 * grub-core/io/gzio.c: Likewise.
10092 * grub-core/net/net.c: Likewise.
10093 * grub-core/term/gfxterm.c: Likewise.
10094 * grub-core/term/terminfo.c: Likewise.
10095 * grub-core/tests/test_blockarg.c: Likewise.
10096 * grub-core/video/video.c: Likewise.
10097 * util/grub-install.in: Likewise.
10098 * util/grub-mkfont.c: Likewise.
10099
b2b149cb
VS
101002012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10101
10102 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
10103
c7c080ad
VS
101042012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10105
10106 * grub-core/commands/search_wrap.c (options): Fix a typo.
bb51c6c6 10107 Reported by: David Prévot.
c7c080ad 10108
f2e243c0
VS
101092012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10110
10111 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
10112 description.
10113
09963c76
VS
101142012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10115
10116 * util/grub-script-check.c (main): Fix a syntax error message which was
10117 unclear.
10118
a50514a8
VS
101192012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10120
10121 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
10122
4650daec
VS
101232012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10124
10125 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
10126 messages.
10127
101282012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
97ebda9b
VS
10129
10130 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
10131 without argument.
10132 * util/grub-mount.c (options): Likewise.
10133
bbc5a342
VS
101342012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
10135
10136 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
10137
ef292a87
VS
101382012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
10139
10140 * grub-core/net/http.c: Add TRANSLATORS comments.
10141 * grub-core/normal/cmdline.c: Likewise.
10142 * grub-core/normal/misc.c: Likewise.
10143 * grub-core/partmap/msdos.c: Likewise.
10144 * grub-core/parttool/msdospart.c: Likewise.
10145 * grub-core/script/execute.c: Likewise.
10146 * grub-core/script/main.c: Likewise.
10147 * grub-core/term/terminfo.c: Likewise.
10148 * grub-core/video/bitmap.c: Likewise.
10149 * util/grub-install.in: Likewise.
10150 * util/grub-mkimage.c: Likewise.
10151 * util/grub-mklayout.c: Likewise.
10152 * util/grub-setup.c: Likewise.
10153
0fc19bd0
VS
101542012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
10155
10156 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
10157 with similar messages in grub-fstest.
10158
d95862ef
VS
101592012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
10160
10161 * util/grub-install.in: Unify "option requires an argument" message
10162 with similar messages in other files.
10163 * util/grub-mkconfig.in: Likewise.
10164
b7308f90
VS
101652012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
10166
10167 * util/grub-set-default.in: Replace printf with gettext_printf (the
10168 string in in question is already translated from grub-reboot)
10169
559dc587
VS
101702012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
10171
10172 * configure.ac: Bump up the version to beta1.
10173
1a11761f
VS
101742012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10175
10176 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
10177 case when min_align = 0.
10178
24539abd
VS
101792012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10180
10181 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
10182 and fix a case when line_start overflows.
10183
32bd735b
VS
101842012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10185
10186 * util/grub-reboot.in (usage): Mention id posibility.
10187 * util/grub-set-default.in (usage): Likewise.
10188
1a2fd1e6
VS
101892012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10190
10191 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
10192 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
10193 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
10194 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
10195 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
10196 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
10197 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
10198
90eeab76
VS
101992012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10200
10201 * grub-core/commands/menuentry.c (options): Remove
10202 GRUB_ARG_OPTION_REPEATABLE.
10203 Reported by: Andreas Vogel
10204
5ad1be82
AV
102052012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
10206
10207 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
10208
cb055286
HE
102092012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
10210
10211 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
10212 error.
10213
93b1cd79
VS
102142012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10215
10216 Use sort -V by the idea of Georgi Georgiev.
10217
10218 * util/grub-mkconfig_lib.in (version_sort): New function.
10219 (version_test_numeric): Use version_sort.
10220
0cdc126c
VS
102212012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10222
10223 Use submenus in grub-mkconfig.
10224
10225 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
10226 * util/grub-mkconfig_lib.in (grub_quote): New function.
10227 (gettext_printf): Use gettext and not gettext_quoted to fix several
10228 messages.
10229 * util/grub.d/10_hurd.in: Use submenus.
10230 * util/grub.d/10_kfreebsd.in: Likewise.
10231 * util/grub.d/10_linux.in: Likewise.
10232 * util/grub.d/10_netbsd.in: Likewise.
10233 * util/grub.d/20_linux_xen.in: Likewise.
10234 * util/grub.d/30_os-prober.in: Likewise.
10235 * util/grub.d/10_illumos.in: Add missing quoting.
10236 * util/grub.d/10_windows.in: Likewise.
10237
d9bef9bc
VS
102382012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10239
10240 Fix menu title instability bug.
10241
10242 * grub-core/commands/menuentry.c (options): New option --id.
10243 (grub_normal_add_menu_entry): New argument id. All users updated.
10244 (grub_cmd_menuentry): Handle --id.
10245 (grub_menu_init): Accept unknown arguments.
10246 * grub-core/normal/main.c (features): Add feature_menuentry_id and
10247 feature_menuentry_options.
10248 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
10249 saved_entry.
10250 (get_entry_number): Match with id as well.
10251 * include/grub/menu.h (grub_menu_entry): New member id.
10252 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
10253 * util/grub.d/00_header.in: Define menuentry_id_option.
10254 * util/grub.d/10_hurd.in: Define id.
10255 * util/grub.d/10_illumos.in: Likewise.
10256 * util/grub.d/10_kfreebsd.in: Likewise.
10257 * util/grub.d/10_linux.in: Likewise.
10258 * util/grub.d/10_netbsd.in: Likewise.
10259 * util/grub.d/10_windows.in: Likewise.
10260 * util/grub.d/20_linux_xen.in: Likewise.
10261 * util/grub.d/30_os-prober.in: Likewise.
10262
102632012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
0d31b7df
VS
10264
10265 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
10266 "scope" with "body".
10267
7c8d0ce7
VS
102682012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
10269
10270 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
10271 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
10272 prot_size and prot_file_size.
10273
49de079b
VS
102742012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
10275
10276 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
10277 All users updated. If easily=1 require raid-5/-6 to be full.
10278 (is_node_readable): Likewise.
10279 (scan_devices): Scan incomplete but readable LVs at the end.
10280 (grub_diskfilter_memberlist): Pull missing devices.
10281 (insert_array): Skip scanning until device is complete or scan is
10282 done otherwise.
10283 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
10284 check.
10285 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
10286 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
10287
aff05d45
MG
102882012-03-03 Matthew Garrett <mjg@redhat.com>
102892012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
10290
10291 Avoid EFI boot services when loading Linux.
10292
10293 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
10294 avoid_efi_bootservices. All users updated.
10295 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
10296 argument avoid_efi_bootservices. All users updated.
10297 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
10298 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
10299 align, min_align, relocatable, prefered_address. All users updated.
10300 Allocate avoiding boot services if kernel is relocatable.
10301 (grub_cmd_linux): Check if kernel is relocatable.
10302 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
10303 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
10304 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
10305 avoid_efi_boot_services.
10306 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
10307 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
10308 (linux_kernel_params): Likewise.
10309
3935dde2
MG
103102012-03-03 Matthew Garrett <mjg@redhat.com>
103112012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
10312
10313 Use EDID on EFI.
10314
10315 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
10316 datasize_out.
10317 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
10318 modes. Set gop_handle.
10319 (grub_video_gop_get_edid): New function.
10320 (grub_gop_get_preferred_mode): Likewise.
10321 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
10322 (grub_video_efi_gop_adapter): Set .get_edid.
10323 * include/grub/efi/edid.h: New file.
10324 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
10325
32107ec0
VS
103262012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
10327
10328 * util/grub-install.in: Load efivars unconditionally.
10329
e70a2c50
VS
103302012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
10331
10332 * po/Rules-piglatin: Change suffix from .po-update-en to
10333 .po-update-en-piglatin.
10334
8f9cace1
VS
103352012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
10336
10337 Add a pig farm.
10338
10339 * po/piglatin.sed: New file.
10340 * po/en@piglatin.header: Likewise.
10341 * po/Rules-piglatin: Likewise.
10342 * po/README: Add en@piglatin to autogenerated languages.
10343
8f95d002
VS
103442012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
10345
10346 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
10347 "Command for ...".
10348 * grub-core/commands/hdparm.c (options): Use "Display" rather than
10349 "Check" since we don't check anything.
10350 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
10351 is 64-bit one.
10352 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
10353 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
10354 (grub_md_sha512_real): Likewise.
10355
805a8dcc
VS
103562012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
10357
10358 * grub-core/commands/gptsync.c: Fix typographic quoting.
10359 * grub-core/commands/ieee1275/suspend.c: Likewise.
10360 * grub-core/commands/parttool.c: Likewise.
10361 * grub-core/commands/search_wrap.c: Likewise.
10362 * grub-core/commands/videoinfo.c: Likewise.
10363 * grub-core/gfxmenu/gui_label.c: Likewise.
10364 * grub-core/hello/hello.c: Likewise.
10365 * grub-core/kern/emu/main.c: Likewise.
10366 * grub-core/net/net.c: Likewise.
10367 * grub-core/normal/menu.c: Likewise.
10368 * grub-core/normal/menu_text.c: Likewise.
10369 * grub-core/normal/misc.c: Likewise.
10370 * util/grub-editenv.c: Likewise.
10371 * util/grub-install.in: Likewise.
10372 * util/grub-kbdcomp.in: Likewise.
10373 * util/grub-mkconfig.in: Likewise.
10374 * util/grub-mknetdir.in: Likewise.
10375 * util/grub-mkrescue.in: Likewise.
10376 * util/grub-mkstandalone.in: Likewise.
10377 * util/grub-reboot.in: Likewise.
10378 * util/grub-set-default.in: Likewise.
10379 * util/grub-setup.c: Likewise.
10380 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
10381
40211ab8
VS
103822012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10383
10384 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
10385 * grub-core/commands/keystatus.c: Likewise.
10386 * grub-core/commands/loadenv.c: Likewise.
10387 * grub-core/commands/probe.c: Likewise.
10388 * grub-core/commands/regexp.c: Likewise.
10389 * grub-core/commands/true.c: Likewise.
10390 * grub-core/commands/videoinfo.c: Likewise.
10391 * grub-core/disk/cryptodisk.c: Likewise.
10392 * grub-core/disk/ldm.c: Likewise.
10393 * grub-core/disk/loopback.c: Likewise.
10394 * grub-core/disk/luks.c: Likewise.
10395 * grub-core/fs/zfs/zfsinfo.c: Likewise.
10396 * grub-core/kern/disk.c: Likewise.
10397 * grub-core/kern/emu/hostdisk.c: Likewise.
10398
0c7d99c7
VS
103992012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10400
10401 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
10402 * util/grub-install.in: Add missing quote in the comment.
10403
e7d2559b
VS
104042012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10405
10406 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
10407 * grub-core/commands/lsmmap.c: Likewise.
10408 * grub-core/commands/minicmd.c: Likewise.
10409 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
10410 * grub-core/commands/regexp.c: Likewise.
10411 * grub-core/gdb/gdb.c: Likewise.
10412 * grub-core/term/gfxterm.c: Likewise.
10413 * util/grub-mkconfig.in: Likewise.
10414 * util/grub-mkfont.c: Likewise.
10415 * util/grub-mklayout.c: Likewise.
10416 * util/grub-mknetdir.in: Likewise.
10417 * util/grub-mkrescue.in: Likewise.
10418 * util/grub.d/30_os-prober.in: Likewise.
10419
49ce9e50
VS
104202012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10421
10422 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
10423 with "Direct color" and "Packed" with "Packed pixel".
10424 (grub_cmd_videoinfo): Simplify legend.
10425
e4b791fa
VS
104262012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10427
10428 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
10429 absolutely unclear error message.
10430
fd1265cb
VS
104312012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10432
10433 * util/grub-mkstandalone.in: Remove confusing leftover print.
10434
8822a8a0
VS
104352012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10436
10437 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
10438 comments.
10439 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
10440 (GRUB_MOD_INIT): Likewise.
10441 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
10442 VGA mode.
10443 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
10444 comments.
10445 * util/grub-install.in (usage): Likewise.
10446 Spell ID in whole letters.
10447 Add missing ending dot.
10448 Quote variables.
10449 * util/grub-reboot.in: Fix capitalisation.
10450 * util/grub-set-default.in: Likewise.
10451
937fd0cc
VS
104522012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10453
10454 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
10455 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
10456 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
10457 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
10458 Disable -Werror for -Wdeprecated-declarations.
10459 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
10460 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
10461 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
10462 (grub_util_get_grub_dev): Make luks handling dependent on
10463 HAVE_DEVICE_MAPPER and not __linux__.
10464 (get_win32_path): Fix format security.
10465 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
10466 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
10467 Don't try grub_find_zpool_from_dir.
10468 (grub_make_system_path_relative_to_its_root) [!__linux__]:
10469 #ifdef-out paresdir.
10470
1bab1ae3
VS
104712012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10472
10473 * util/grub-pe2elf.c (usage): Add missing noreturn.
10474 (write_section_data): Rename name to shname to avoid shadowing.
10475 (write_symbol_table): Rename name to symname to avoid shadowing.
10476 Fix write_reloc_section call.
10477
ef023e42
VS
104782012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10479
10480 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
10481 to ensure that it's after the last byte of .text.
10482
48afcb75
VS
104832012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10484
10485 * util/ieee1275/ofpath.c (my_isdigit): New function.
10486 (trailing_digits): Use my_isdigit.
10487 (strip_trailing_digits): Likewise.
10488
88d51eff
VS
104892012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10490
10491 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
10492 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
10493
17edc2ba
VS
104942012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10495
10496 * grub-core/kern/i386/pc/startup.S: Define __start.
10497
ad5518d7
VS
104982012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10499
10500 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
10501 strip already transforms he format.
10502
9e95e1bf
VS
105032012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10504
10505 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
10506
9cc3ee5c
VS
105072012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10508
10509 * util/grub-install.in: Add missing gettext init.
10510 * util/grub-kbdcomp.in: Likewise.
10511 * util/grub-mkconfig.in: Likewise.
10512 * util/grub-mknetdir.in: Likewise.
10513 * util/grub-mkrescue.in: Likewise.
10514 * util/grub-mkstandalone.in: Likewise.
10515 * util/grub-reboot.in: Likewise.
10516 * util/grub-set-default.in: Likewise.
10517 * util/grub.d/00_header.in: Likewise.
10518 * util/grub.d/10_hurd.in: Likewise.
10519 * util/grub.d/10_windows.in: Likewise.
10520 * util/grub.d/30_os-prober.in: Likewise.
10521 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
10522
49e08a06
VS
105232012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10524
10525 * po/Rules-swiss: Fix header comment.
10526
3809cb41
AV
105272012-02-29 Andreas Vogel <anvoit>
10528
10529 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
10530 resulted in leak of arguments.
10531
fa6ec573
VS
105322012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10533
10534 * grub-core/boot/i386/pc/startup_raw.S: Use separate
10535 reed_solomon_size const definition instead of computing it since
10536 Apple assembler doesn't support the later.
10537
22899b9c
VS
105382012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10539
10540 * gentpl.py (kernel): Rewrite Apple part.
10541
a132afc3
VS
105422012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10543
10544 * include/grub/kernel.h (FOR_MODULES): Check module magic.
10545
9d742bd4
VS
105462012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10547
10548 * util/grub-mkimagexx.c (locate_sections): Support non-standard
10549 ELF section gap.
10550 (load_image): Likewise.
10551
f04a9a21
VS
105522012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10553
10554 * configure.ac: Fix a typo in previous commit.
10555
46cf439c
VS
105562012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10557
10558 Don't add -Wl,-N on Apple platform.
10559
10560 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
10561 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
10562
c4c48c54
VS
105632012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10564
10565 * grub-core/Makefile.core.def (lzma_decompress): Use
10566 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
10567
31a12124
VS
105682012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10569
10570 * grub-core/genmod.sh.in: Rewrite the Apple part.
10571
4f3aa1af
VS
105722012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10573
10574 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
10575 comparison.
10576
7bd8b0c7
VS
105772012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10578
10579 * acinclude.m4 (grub_CHECK_PIC): New test.
10580 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
10581
97304d7c
VS
105822012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10583
10584 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
10585 to avoid the warning.
10586
fb883812
VS
105872012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10588
10589 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
10590 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
10591 after. All users updated.
10592
a121c964
VS
105932012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10594
10595 Use the common size routine in hostfs so we can read disks as well.
10596
10597 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
10598 (grub_util_get_fd_size): ... this. Return size in bytes.
10599 All users updated.
10600 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
10601 grub_util_get_fd_size.
10602
c66d6410
VS
106032012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10604
10605 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
10606 Add blocksize retrieval.
10607
dfc8aeb0
VS
106082012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10609
10610 * configure.ac: Restore CFLAGS after efiemu check.
10611
403e25a5
VS
106122012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10613
10614 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
10615 Apple bug.
10616
382775d1
VS
106172012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10618
10619 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
10620
6fd4e6e4
VS
106212012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10622
10623 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
10624 (grub_cmd_halt): Likewise.
10625
bea359d6
VS
106262012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10627
10628 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
10629 for local arithmetics.
10630 Break %sp init into 2 instructions.
10631 Add 0 byte at the end.
10632
32eb6ee1
VS
106332012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10634
10635 * grub-core/disk/diskfilter.c (read_segment): Initialise err
10636 before loops.
10637
e8377389
VS
106382012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10639
10640 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
10641 for context.
10642
8cb17de7
VS
106432012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10644
10645 * grub-core/disk/ldm.c (make_vg): Init part.name.
10646 (grub_ldm_detect): Silence spurious warning.
10647 (grub_util_is_ldm): Likewise.
10648
595717e6
VS
106492012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10650
10651 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
10652 sane value to avoid a spurious warning.
10653
c4b7e588
VS
106542012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10655
10656 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
10657 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
10658
59824957
VS
106592012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10660
10661 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
10662 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
10663
70115b99
VS
106642012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10665
10666 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
10667 hardcoding the relevant info.
10668
56733740
VS
106692012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10670
10671 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
10672 missing const qualifiers.
10673 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
10674
43481481
VS
106752012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10676
10677 * util/getroot.c [__APPLE__]: Add missing includes.
10678 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
10679
3cb38f01
VS
106802012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10681
10682 * util/grub-mkimage.c (generate_image): Silence spurious warning.
10683
d9dbf11e
VS
106842012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10685
10686 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
10687 avoid conflicts.
10688
0c42a45d
VS
106892012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10690
10691 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
10692
46c34eb0
VS
106932012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10694
10695 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
10696 and grub_file_close call.
10697
99ce1597
VS
106982012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10699
10700 Add LZSS Mach-O support (needed for new xnu kernelcache).
10701
10702 * grub-core/Makefile.core.def (xnu): Add file lzss.c
10703 * grub-core/loader/lzss.c: New file.
10704 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
10705 on Mach-O open failure.
10706 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
10707 Don't free cmdsXX in uncompressedXX is set.
10708 (grub_macho_file): Init new fields.
10709 New argument is_64bit. All users updated.
10710 Handle compressed. Error out if no suitable architecture is found.
10711 Don't close file.
10712 (grub_macho_open): New argument is_64bit. All users updated.
10713 * grub-core/loader/macho32.c: Add defines for new fields.
10714 * grub-core/loader/macho64.c: Likewise.
10715 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
10716 (grub_macho_parse): Handle compressed.
10717 Defer actual processing if compressed.
10718 (grub_macho_cmds_iterate): Decompress if compressed. New argument
10719 "filename". All users updated.
10720 (grub_macho_size): New argument "filename". All users updated.
10721 (grub_macho_get_entry_point): Likewise.
10722 (grub_macho_load): Handle compressed.
10723 * include/grub/macho.h (grub_macho_lzss_header): New struct.
10724 (GRUB_MACHO_LZSS_OFFSET): New define.
10725 (grub_decompress_lzss): New proto.
10726 * include/grub/machoload.h (grub_macho_file): New fields to handle
10727 compressed.
10728 (grub_macho_contains_macho64): Remove proto.
10729 (grub_macho_contains_macho32): Likewise.
10730 * util/grub.d/30_os-prober.in: Use kernel cache if available.
10731
ebd17d6f
VS
107322012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10733
10734 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
10735
2702b4e4
VS
107362012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
10737
10738 Fix make dist.
10739
10740 * Makefile.am (starfield_theme_files): New var.
10741 (starfield_DATA): Use starfield_theme_files.
10742 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
10743 Add bootcheck-related files.
10744 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
10745 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
10746 and font_char_metrics.txt.
10747 * grub-core/Makefile.core.def (kernel): Update extra_dist.
10748 (setjmp): Add lib/ia64/longjmp.S.
10749 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
10750 * po/POTFILES.in: Regenerate.
10751 * po/Rules-swiss: use DISTFILES.common.extra2 and not
10752 DISTFILES.common.extra1.
10753 * util/devicemap.c: Removed.
10754 * grub-core/lib/i386/relocator_backward.S: Likewise.
10755 * util/import_gcry.py: Remove unused files. Add extra_dist for
10756 ChangeLog.
10757
cf1adfdf
VS
107582012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
10759
10760 * grub-core/gettext/gettext.c (grub_mofile_open): Call
10761 grub_gettext_delete_list before changing grub_gettext_max to avoid
10762 running out of array bounds.
10763
107642012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7acd2ae1
VS
10765
10766 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
10767 grub_vga_text_init/grub_vga_text_fini.
10768
cf1adfdf 107692012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
629e6a33
VS
10770
10771 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
10772
541d92e9
VS
107732012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10774
10775 * configure.ac: Bump to 2.00~beta0.
10776
7931dddf
VS
107772012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10778
10779 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
10780 missing initialisation.
10781
f1b16fa3
VS
107822012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10783
10784 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
10785
83ddae23
VS
107862012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10787
10788 Support v2 xnu boot arguments.
10789
10790 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
10791 New argument fsbfreq_out.
10792 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
10793 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
10794 be used.
10795 * grub-core/loader/machoXX.c (grub_macho_load): New argument
10796 darwin_version.
10797 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
10798 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
10799 (grub_xnu_boot_params): Rename to ...
10800 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
10801 (grub_xnu_boot_params_v2): New struct.
10802
dc693fe6
VS
108032012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10804
10805 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
10806 zeroing of CRC field before computing CRC.
10807
5a6e39c2
VS
108082012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10809
10810 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
10811 Change order of allocations to decrease fragmentation.
10812
6c21f5d7
VS
108132012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10814
10815 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
10816
cfe456dc
CW
108172012-02-27 Colin Watson <cjwatson@ubuntu.com>
10818
10819 Use write-combining MTRR to speed up video with buggy BIOSes.
10820
10821 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
10822 (cpuid): New define.
10823 (rdmsr): Likewise.
10824 (wrmsr): Likewise.
10825 (mtrr_base): Likewise.
10826 (mtrr_mask): Likewise.
10827 (grub_vbe_enable_mtrr_entry): New function.
10828 (grub_vbe_enable_mtrr): Likewise.
10829 (grub_vbe_disable_mtrr): Likewise.
10830 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
10831 control off to BIOS.
10832 (grub_video_vbe_init): Fill mtrr.
10833 (grub_video_vbe_fini): Disable mtrr.
10834 (grub_video_vbe_get_info_and_fini): Likewise.
10835 (grub_video_vbe_setup): Enable mtrr.
10836
e3c78337
CW
108372012-02-27 Colin Watson <cjwatson@ubuntu.com>
10838
10839 * include/grub/partition.h (grub_partition_map): Change prototype of
10840 embed to take a maximum value for nsectors.
10841 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
10842 * include/grub/fs.h (grub_fs): Likewise.
10843 * grub-core/partmap/msdos.c (embed_signatures): New array.
10844 (pc_partition_map_embed): Check for and avoid sectors matching any
10845 of the signatures in embed_signatures, up to max_nsectors.
10846 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
10847 returned sector map to max_nsectors.
10848 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
10849 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
10850 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
10851 * util/grub-setup.c (setup): Allow for the embedding area being
10852 split into multiple blocklists. Tell dest_partmap->embed the
10853 maximum number of sectors we care about.
10854
108552012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10856
10857 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
10858 Specify blocklist_install and reserver_first_sector for all fs.
10859 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
10860 blocklists.
10861
984b973f
VS
108622012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10863
10864 * util/grub-install.in: Clarify strings.
10865 Fix source dir check.
10866
f122e0d6
RL
108672012-02-27 Richard Laager <rlaager@wiktel.com>
10868
10869 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
10870 "zfs" and "fuse.zfs" as synonyms.
10871
071114bb
VS
108722012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10873
10874 * configure.ac: Put platform and target_cpu substitutions back since
10875 they are used for directories.
10876
817e6abc
RL
108772012-02-27 Richard Laager <rlaager@wiktel.com>
108782012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10879
10880 * util/grub.d/10_linux.in: Add ZFS-related arguments.
10881 * util/grub.d/20_linux_xen.in: Likewise.
10882
897b7419
RL
108832012-02-27 Richard Laager <rlaager@wiktel.com>
10884
10885 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
10886 with full paths.
10887
a414bd15
RL
108882012-02-27 Richard Laager <rlaager@wiktel.com>
10889
10890 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
10891 unescape.
10892
30ac48c4
VS
108932012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10894
10895 Don't use insecure popen in getroot.
10896
10897 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
10898 (exec_pipe): ... here.
10899 (find_root_devices_from_poolname): Use exec_pipe.
10900
53f13848
VS
109012012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10902
10903 Remove platform and target_cpu replacement.
10904
10905 * configure.ac: Remove platform and target_cpu substitutions.
10906 * tests/util/grub-shell.in: Use modinfo.
10907 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
10908 explicitly.
10909
90cb2803
VS
109102012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10911
10912 Autodetect platform in grub-install but allow override.
10913
10914 * util/grub-install.in: Autodetect platform. Support --target and
10915 --directory. Read platform from modinfo.sh.
10916
b9136427
VS
109172012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10918
10919 Support btrfs multi-volume probe.
10920
10921 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
10922 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
10923 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
10924 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
10925 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
10926 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
10927 grub_find_root_devices_from_btrfs if on btrfs.
10928
c36e5cd1
VS
109292012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10930
10931 Remove any awareness of *.c util files about target.
10932
10933 * Makefile.util.def (grub-setup): Split to ...
10934 (grub-bios-setup): ... and this.
10935 (grub-sparc64-setup): ... and this.
10936 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
10937 * docs/man/grub-setup.h2m: Split into ...
10938 * docs/man/grub-sparc64-setup.h2m: ... this.
10939 * docs/man/grub-bios-setup.h2m: ... and this.
10940 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
10941 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
10942 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
10943 (grub_target_addr_t): Remove.
10944 (grub_target_size_t): Remove.
10945 (grub_target_ssize_t): Remove.
10946 * util/grub-install.in: Use new grub-*-setup.
10947 * util/grub-mkimagexx.c (Elf_Word): New define.
10948 (Elf_Half): Likewise.
10949 (Elf_Section): Likewise.
10950 (ELF_ST_TYPE): Likewise.
10951 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
10952 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
10953
584b2f8a
VS
109542012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10955
10956 Replace grub_target_addr with more appropriate types.
10957
10958 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
10959 grub_target_addr with grub_addr.
10960 * grub-core/commands/iorw.c (grub_cmd_read): Replace
10961 grub_target_addr with grub_port.
10962 (grub_cmd_write): Likewise.
10963 * grub-core/commands/memrw.c (grub_cmd_read): Replace
10964 grub_target_addr with grub_addr.
10965 (grub_cmd_write): Likewise.
10966 * grub-core/video/efi_uga.c (find_line_len): Likewise.
10967
5a0dc6fb
VS
109682012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10969
10970 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
10971 const qualifier for vendor_guid.
10972
786aff6e
VS
109732012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10974
10975 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
10976 const qualifier.
10977 (efiemu_memequal): Likewise.
10978 (find_variable): Likewise.
10979
49017b17
VS
109802012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10981
10982 Fix missing console prototype on qemu-mips.
10983
10984 * include/grub/mips/qemu_mips/console.h: New file.
10985
c5988629
MG
109862012-02-27 Matthew Garrett <mjg@redhat.com>
109872012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10988
10989 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
10990 * include/grub/efi/efi.h: Likewise.
10991 * include/grub/efi/api.h: Add guid for EFI-specified variables.
10992 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
10993 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
10994 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
10995 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
10996 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
10997
e33f8d69
MG
109982012-02-27 Matthew Garrett <mjg@redhat.com>
10999
11000 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
11001
fb312cd9
VS
110022012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11003
11004 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
11005 error.
11006
7134247c
VS
110072012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11008
11009 * configure.ac: Remove inappropriate use of program_transform_name
11010 on grubdir and bootdir but allow explicit specification of those
11011 variables.
11012
6a313124
VS
110132012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11014
11015 * util/grub-mknetdir.in (grub_prefix): Removed.
11016 (subdir): Use @bootdirname@ and @grubdirname@.
11017
2311c5ca
VS
110182012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11019
11020 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
11021
7d5d60f7
VS
110222012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11023
11024 * po/POTFILES.in: Regenerated.
11025
8151bc82
VS
110262012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11027
11028 Remove improper use of program_transform_name on pkglibrootdir.
11029
11030 * configure.ac (pkglibrootdir): Removed.
11031 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
11032 * util/grub-mkimage.c: Likewise.
11033
b4a6a533
VS
110342012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11035
11036 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
11037 warning.
11038
668f304f
VS
110392012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11040
11041 * util/grub-install.in: Use file identifier if no UUID is available
11042 or user explicitly prompted for it.
11043
665f2341
NP
110442012-02-27 Navdeep Parhar <nparhar@gmail.com>
11045
11046 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
11047 (freebsd_get_zfs): New function.
11048 (grub_freebsd_boot): Pass zfs UUID.
11049 (grub_cmd_freebsd): Set zfs UUID.
11050
8151bc82 110512012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
1240a58a
VS
11052
11053 * conf/Makefile.common (platformdir): Base on pkglibdir and not
11054 pkglibrootdir.
11055
e4c498a1
MG
110562012-02-27 Mike Gilbert <floppym@gentoo.org>
11057
11058 Add configure flag to control libzfs integration.
11059
11060 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
11061
1e9a9a3f
VS
110622012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11063
11064 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
11065 device.
11066 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
11067 small devices.
11068
036985b8
VS
110692012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11070
11071 Remove grub_{modname}_init and grub_{modname}_fini. They should never
11072 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
11073 be used on non-modules.
11074
11075 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
11076 Rename to grub_boot_init.
11077 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
11078 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
11079 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
11080 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
11081 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
11082 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
11083 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
11084 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
11085 includes.
11086 (grub_machine_init): Remove empty inits.
11087 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
11088 includes.
11089 (grub_machine_init): Remove empty inits.
11090 * grub-core/term/arc/console.c: Remove explicit proto.
11091 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
11092 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
11093 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
11094 grub_at_keyboard_fini.
11095 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
11096 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
11097 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
11098 grub_gfxterm_fini.
11099 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
11100 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
11101 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
11102 grub_vgatext_fini.
11103 * grub-core/term/ieee1275/console.c: Remove explicit proto.
11104 * grub-core/term/serial.c (GRUB_MOD_INIT)
11105 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
11106 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
11107 grub_serial_fini.
11108 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
11109 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
11110 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
11111 grub_terminfo_fini.
11112 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
11113 (GRUB_MOD_FINI): Likewise.
11114 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
11115 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
11116 (GRUB_MOD_FINI) [LOONGSON]: Rename to
11117 grub_video_radeon_fuloong2e_fini.
11118 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
11119 [LOONGSON]: Rename to grub_video_sis315pro_init.
11120 (GRUB_MOD_FINI) [LOONGSON]: Rename to
11121 grub_video_sis315pro_fini.
11122 * grub-core/video/sm712.c (GRUB_MOD_INIT)
11123 [LOONGSON]: Rename to grub_video_sm712_init.
11124 (GRUB_MOD_FINI) [LOONGSON]: Rename to
11125 grub_video_sm712_fini.
11126 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
11127 (grub_at_keyboard_fini): Likewise.
11128 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
11129 Don't declare grub_{modname}_init.
11130 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
11131 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
11132 New proto.
11133 (grub_keylayouts_fini) [!EMU]: Likewise.
11134 * include/grub/serial.h (grub_serial_init) [!EMU]:
11135 New proto.
11136 (grub_serial_fini) [!EMU]: Likewise.
11137 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
11138 New proto.
11139 (grub_terminfo_fini) [!EMU]: Likewise.
11140 * include/grub/video.h (grub_font_init) [!EMU]:
11141 New proto.
11142 (grub_font_fini) [!EMU]: Likewise.
11143 (grub_gfxterm_init) [!EMU]: Likewise.
11144 (grub_gfxterm_fini) [!EMU]: Likewise.
11145 (grub_video_sm712_init) [!EMU]: Likewise.
11146 (grub_video_sm712_fini) [!EMU]: Likewise.
11147 (grub_video_sis315pro_init) [!EMU]: Likewise.
11148 (grub_video_sis315pro_fini) [!EMU]: Likewise.
11149 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
11150 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
11151
d5534665
VS
111522012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11153
11154 Make nand a prefix for nand devices.
11155
11156 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
11157
10133b5f
VS
111582012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11159
11160 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
11161 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
11162
8e307a62
VS
111632012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11164
11165 * include/grub/env.h (grub_env_find): Remove prototype.
11166 * grub-core/kern/env.c (grub_env_find): Make static.
11167 (grub_env_set): Remove useless set.
11168
a4c65f34
VS
111692012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11170
11171 * grub-core/kern/i386/realmode.S: Remove useless align.
11172
d87893d5
VS
111732012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11174
11175 * include/grub/dl.h (grub_dl_load_file): Don't export.
11176
50159add
VS
111772012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11178
11179 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
11180 grub_dprintf.
11181
b2582b84
VS
111822012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11183
11184 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
11185 grub_errors.
11186 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
11187 not reloading whole superblock but only the part which is really needed.
11188 Remove useless grub_errors.
11189 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
11190 grub_errors.
11191
e2a83395
VS
111922012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11193
11194 Don't export grub_get_rtc.
11195
11196 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
11197 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
11198
e7d2a906
VS
111992012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11200
11201 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
11202
6cf1363b
VS
112032012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11204
11205 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
e7d2a906 11206 argument since it can be deduced from diskfilter. All users updated.
6cf1363b 11207
eece3349
VS
112082012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11209
11210 Remove prio_list.
11211
11212 * include/grub/list.h (grub_prio_list): Removed.
11213 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
11214 GRUB_COMMAND_PRIO_MASK.
11215 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
11216 GRUB_COMMAND_FLAG_ACTIVE.
11217 (grub_prio_list_insert): Removed.
11218 (grub_prio_list_remove): Likewise.
11219 (GRUB_AS_PRIO_LIST): Likewise.
11220 (GRUB_AS_PRIO_LIST_P): Likewise.
11221 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
11222 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
11223 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
11224 * grub-core/kern/command.c (grub_register_command_prio): Inline
11225 the prio_list code.
11226 (grub_unregister_command): Likewise.
11227
94f064b4
VS
112282012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11229
11230 Fix interrupt mixup from previous commit.
11231
11232 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
11233 (grub_realidt): New var.
11234 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
11235 Load idt.
11236 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
11237 New declaration.
11238 (grub_relocator16_boot): Set grub_relocator16_idt.
11239 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
11240 (LOCAL(realidt)): ... this.
11241 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
11242 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
11243 (grub_realidt): New variable.
11244
27317084
VS
112452012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11246
11247 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
11248 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
11249 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
11250 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
11251 Gettextize.
11252 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
11253 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
11254 * po/POTFILES.in: Regenerate.
11255
47b40053
VS
112562012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11257
11258 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
11259 errors.
11260
2b343101
VS
112612012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11262
11263 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
11264 \0.
11265 (add_length): Likewise.
11266
ff27c3dd
LK
112672012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
112682012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
11269
11270 GDB serial and backtrace support.
11271
11272 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
11273 (prot_to_real): Likewise.
11274 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
11275 * grub-core/Makefile.core.def (backtrace): New module.
11276 (gdb): Likewise.
11277 * grub-core/gdb/cstub.c: New file.
11278 * grub-core/gdb/gdb.c: Likewise.
11279 * grub-core/gdb/i386/idt.c: Likewise.
11280 * grub-core/gdb/i386/machdep.S: Likewise.
11281 * grub-core/gdb/i386/signal.c: Likewise.
11282 * grub-core/lib/i386/backtrace.c: Likewise.
4cebfa1a 11283 * grub-core/lib/backtrace.c: Likewise.
ff27c3dd
LK
11284 * include/grub/backtrace.h: Likewise.
11285 * include/grub/gdb.h: Likewise.
11286 * include/grub/i386/gdb.h: Likewise.
11287
112882012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
585031cb
VS
11289
11290 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
11291 New function.
11292 (add_length): Likewise.
11293 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
11294 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
11295 proto.
11296 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
11297 __argp_get_display_len.
11298
ff27c3dd 112992012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7e8fac16
VS
11300
11301 $"..." support in scripts.
11302
11303 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
11304 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
11305 * grub-core/script/yylex.l: Likewise.
11306 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
11307 value.
11308
ff27c3dd 113092012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
15eff5d9
VS
11310
11311 * gentpl.py: Remove obsolete pkglib_DATA handling.
11312
ff27c3dd 113132012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
fc847818
VS
11314
11315 Don't transform PACKAGE_TARNAME following a discussion on autoconf
11316 mailing list.
11317
11318 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
11319 * util/grub-kbdcomp.in: Likewise.
11320 * util/grub-mkconfig.in: Likewise.
11321 * util/grub-mkconfig_lib.in: Likewise.
11322 * util/grub-mknetdir.in: Likewise.
11323 * util/grub-mkrescue.in: Likewise.
11324 * util/grub-mkstandalone.in: Likewise.
11325 * util/grub-reboot.in: Likewise.
11326 * util/grub-set-default.in: Likewise.
11327 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11328
ff27c3dd 113292012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
47454da5
VS
11330
11331 Remove GRUB_PREFIX.
11332
11333 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
11334 * util/grub.d/00_header.in: Compute prefix in the only place it's still
11335 used for backward compatibility.
11336
ff27c3dd 113372012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
22c7ce85
VS
11338
11339 Add new all_video module.
11340
11341 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
11342 * grub-core/Makefile.core.def (all_video): New module.
11343 * grub-core/genmoddep.awk: Generate dependency of all_video from
11344 video.lst.
11345 * grub-core/lib/fake_module.c: New file.
11346 * grub-core/normal/main.c (features): Add feature_all_video_module.
11347 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
11348 don't do explicit search again.
47454da5 11349 insmod all_video in load_video if available.
22c7ce85 11350
ff27c3dd 113512012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
67093bc0
VS
11352
11353 Another round of string clarification and adding TRANSLATORS comments.
11354
ff27c3dd 113552012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
ad7b7b85
VS
11356
11357 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
11358
ff27c3dd 113592012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8b282ad2
VS
11360
11361 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
11362 to grub_ssize_t.
11363 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
11364 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
11365
ff27c3dd 113662012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
d43ad754
VS
11367
11368 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
11369 trailing newline implicitly. All users updated.
11370
ff27c3dd 113712012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
a9c7fd1c
VS
11372
11373 Implement serial on IEEE1275 and EFI.
11374
11375 * docs/grub.texi (Platform-specific limitations): Fix the columen video
11376 on emu. Mention arc and emu as the only platforms without serial
11377 support.
11378 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
11379 ieee1275 platforms.
11380 * grub-core/term/efi/serial.c: New file.
11381 * grub-core/term/ieee1275/serial.c: Likewise.
11382 * grub-core/term/serial.c (grub_serial_find): Disable direct port
11383 specification if no ns8250 driver is available.
11384 (grub_cmd_serial): Likewise.
11385 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
11386 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
11387 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
11388 (grub_efi_parity_type_t): New type.
11389 (grub_efi_stop_bits_t): Likewise.
11390 (grub_efi_serial_io_interface): New struct.
11391 * include/grub/serial.h (grub_serial_port): Make 'broken' field
11392 available for all interfaces.
11393 Add EFI and IEEE1275 fields.
11394 (grub_ofserial_init): New proto.
11395 (grub_efiserial_init): Likeiwse.
11396 * util/grub.d/00_header.in: Don't check for the presence of serial
11397 module.
11398
ff27c3dd 113992012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
0ec82090
VS
11400
11401 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
11402 name as if it was an alias.
11403
114076ef
VS
114042012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
11405
11406 * grub-core/commands/lsacpi.c (options): Fix typo.
11407
6a656b0e
VS
114082012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
11409
11410 Convert grub-emu to argp.
11411
11412 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
11413 emu.
11414 * util/argp_common.c: Rename to ...
11415 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
11416 Add missing includes.
11417 * grub-core/kern/emu/main.c: Convert to argp.
11418 * po/POTFILES.in: Regenerate.
11419 * util/grub-install.in (usage): Make first letter lowcase in messages
11420 for uniformity.
11421 * util/grub-setup.c (options): Likewise.
11422
1e3f8ae8
VS
114232012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
11424
11425 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
11426 Put back accidently commented-out code.
11427
ed167a80
VS
114282012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
11429
11430 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
11431 loop check using Brent algorithm.
11432 (grub_hfsplus_btree_search): Likewise.
11433
6753c0ec
VS
114342012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
11435
11436 * util/grub-install.in: Fix usage of wrong device for PreP install.
11437
4e27343f
VS
114382012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
11439
11440 * conf/Makefile.common (CFLAGS_GNULIB): Add
11441 -Wno-unsafe-loop-optimizations.
11442 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
11443 on tools.
11444 * grub-core/commands/legacycfg.c: Add pragma to skip
11445 -Wunsafe-loop-optimizations.
11446 (check_password_md5_real): Fix loop counter type.
11447 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
11448 reading.
11449 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
11450 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
11451 loop condition.
11452 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
11453 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
11454 * grub-core/net/net.c (grub_net_route_address): Add safety loop
11455 condition.
11456 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
11457 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
11458 avoid possible infinite loops.
11459 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
11460 and -Wunsafe-loop-optimizations.
11461 * grub-core/script/yylex.l: Likewise.
11462 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
11463 (print_glyphs): Avoid infinite loops.
11464 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
11465
697f18b0
GS
114662012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
11467
11468 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
11469 to avoid infinite loop.
11470 (disp_acpi_rsdt_table): Likewise.
11471
274416e8
VS
114722012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
11473
11474 * grub-core/font/font.c (grub_font_load): Add support for default
11475 path for fonts ($prefix/fonts).
11476 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
11477 for checking if string is a path.
11478 * grub-core/normal/main.c (features): Add feature_default_font_path.
11479 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
11480 * util/grub.d/00_header.in: Use default directory if possible.
11481 * util/grub-install.in: Install unicode.pf2.
11482
b3e08622
VS
114832012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
11484
11485 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
11486 * po/Rules-swiss: New file.
11487 * po/swiss.sed: Likewise.
11488
fe42ce09
VS
114892012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
11490
11491 * grub-core/fs/btrfs.c (find_device): Fix typos.
11492 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
11493 * util/grub-mkrelpath.c (argp_parser): Likewise.
11494 Reported by: Yuri Chornoivan.
11495
72f1d065
DO
114962012-02-23 Dalet Omega <daletomega@gmail.com>
11497
11498 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
11499 for usual informative messages.
11500
c5884973
DO
115012012-02-23 Dalet Omega <daletomega@gmail.com>
11502
11503 Starfield theme.
11504
11505 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
11506 * conf/Makefile.common: Define starfielddir.
11507 * configure.ac: Configure starfield.
11508 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
11509 * themes/starfield/README: Likewise.
11510 * themes/starfield/blob_w.png: Likewise.
11511 * themes/starfield/boot_menu_c.png: Likewise.
11512 * themes/starfield/boot_menu_e.png: Likewise.
11513 * themes/starfield/boot_menu_n.png: Likewise.
11514 * themes/starfield/boot_menu_ne.png: Likewise.
11515 * themes/starfield/boot_menu_nw.png: Likewise.
11516 * themes/starfield/boot_menu_s.png: Likewise.
11517 * themes/starfield/boot_menu_se.png: Likewise.
11518 * themes/starfield/boot_menu_sw.png: Likewise.
11519 * themes/starfield/boot_menu_w.png: Likewise.
11520 * themes/starfield/slider_c.png: Likewise.
11521 * themes/starfield/slider_n.png: Likewise.
11522 * themes/starfield/slider_s.png: Likewise.
11523 * themes/starfield/src/blob_nw.xcf: Likewise.
11524 * themes/starfield/src/bootmenu/: Likewise.
11525 * themes/starfield/src/bootmenu/center.xcf: Likewise.
11526 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
11527 * themes/starfield/src/bootmenu/side.xcf: Likewise.
11528 * themes/starfield/src/slider_c.xcf: Likewise.
11529 * themes/starfield/src/slider_n.xcf: Likewise.
11530 * themes/starfield/src/slider_s.xcf: Likewise.
11531 * themes/starfield/src/terminalbox/: Likewise.
11532 * themes/starfield/src/terminalbox/center.xcf: Likewise.
11533 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
11534 * themes/starfield/src/terminalbox/side.xcf: Likewise.
11535 * themes/starfield/starfield.png: Likewise.
11536 * themes/starfield/terminal_box_c.png: Likewise.
11537 * themes/starfield/terminal_box_e.png: Likewise.
11538 * themes/starfield/terminal_box_n.png: Likewise.
11539 * themes/starfield/terminal_box_ne.png: Likewise.
11540 * themes/starfield/terminal_box_nw.png: Likewise.
11541 * themes/starfield/terminal_box_s.png: Likewise.
11542 * themes/starfield/terminal_box_se.png: Likewise.
11543 * themes/starfield/terminal_box_sw.png: Likewise.
11544 * themes/starfield/terminal_box_w.png: Likewise.
11545 * themes/starfield/theme.txt: Likewise.
11546
17d73325
VS
115472012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
11548
11549 * util/grub.d/00_header.in: Add missing export theme.
11550
dbebaf92
VS
115512012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11552
11553 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
11554 already included.
11555 Reported by: Eren D.
11556
3d68bffb
VS
115572012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11558
11559 * conf/Makefile.common (grubdatadir): Removed.
11560 (Makefile.am): Move eveything grubdata to pkgdata.
11561
4b59234d
VS
115622012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11563
11564 * grub-core/commands/acpihalt.c (get_sleep_type):
11565 Remove unused variable.
11566
463dcadc
VS
115672012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11568
11569 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
11570 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
11571 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
11572 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
11573 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
11574 i18n with gettext no-op.
11575 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
11576 GRUB_ACPI_OPCODE_STRING_CONST.
11577 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
11578 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
11579
e5b90c82
VS
115802012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11581
11582 * po/POTFILES.in: Regenerate.
11583
2a704ca9
VS
115842012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11585
11586 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
11587 -Wno-error=missing-noreturn.
11588
84f9d341
VS
115892012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11590
11591 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
11592 condition to avoid possibly infinite loops.
11593 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
11594 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
11595
d46683f9
VS
115962012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11597
11598 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
11599 condition to avoid possibly infinite loops.
11600
c44866b2
VS
116012012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11602
11603 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
11604 on show_error.
11605
96790539
VS
116062012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11607
11608 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
11609
1ba7e295
VS
116102012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11611
11612 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
11613
21ffe8f1
VS
116142012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11615
11616 * util/bin2h.c (usage): Add missing attribute noreturn.
11617
0ccb6b3c
VS
116182012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11619
11620 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
11621 if the size isn't divisible by 512.
11622
b00d7fb6
VS
116232012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11624
11625 Make list_push and list_remove functions rather than inline functions
11626 to decrease size and avoid aliasing violations.
11627
11628 * include/grub/list.h (grub_list_push): Move to ...
11629 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
11630 * include/grub/list.h (grub_list_remove): Move to ...
11631 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
11632
9d369087
VS
116332012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11634
11635 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
11636 and -Wunused-result.
11637
af0250d9
VS
116382012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
11639
11640 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
11641 Reported by: Seth Goldberg
11642
aad32b14
VS
116432012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
11644
11645 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
11646
ac96441c
ST
116472012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
11648
11649 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
11650 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
11651 command line.
11652 * docs/grub.texi (Simple configuration): Document
11653 GRUB_CMDLINE_GNUMACH.
11654
116552012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
80a71213
VS
11656
11657 * conf/Makefile.common (platform_SCRIPTS): New variable.
11658 (platform_PROGRAMS): Likewise.
11659 * gentpl.py: Mark *,module and *.image for install.
11660 * grub-core/gdb_grub.in: Add a notice of expected environment.
11661 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
11662 (gmodule.pl): Likewise.
11663
ac96441c 116642012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
a8f16eab
VS
11665
11666 Replace grub_checkkey with grub_getkey_noblock.
11667
11668 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
11669 (grub_getkey_noblock): ... this. All users updated.
11670
ac96441c 116712012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
b500bcfe
VS
11672
11673 * grub-core/kern/emu/console.c: Move to ...
11674 * grub-core/term/emu/console.c: ...here.
11675 (grub_ncurses_getkey): Fix return value if no key is detected.
11676
e51b5666
VS
116772012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11678
11679 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
11680 (grub_unit_test_fini): Likewise.
11681 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
11682
116832012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11684
11685 * include/grub/test.h (GRUB_UNIT_TEST)
11686
d9a62292
VS
116872012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11688
11689 * grub-core/script/execute.c (grub_script_break): Clarify logic.
11690 Better error handling.
11691 (grub_script_return): Likewise.
11692 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
11693
77c9182f
VS
116942012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11695
11696 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
11697 rimplicit redifinition.
11698
edb13cf9
VS
116992012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11700
11701 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
11702 GRUB.
11703
a9e9dc7c
VS
117042012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11705
11706 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
11707 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
11708 prompt here.
11709
b4ba8e02
VS
117102012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11711
11712 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
11713 as GRUB_ERR_BUG. Don't malloc if no device is available.
11714
dded5540
VS
117152012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11716
11717 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
11718 Mark calling with invalid term as GRUB_ERR_BUG.
11719
0cf69874
VS
117202012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11721
11722 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
11723 packets rather than raising an error.
11724
59bfe502
VS
117252012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11726
11727 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
11728 in if.
11729
db5fc596
VS
117302012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11731
11732 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
11733 diagnostic to dprintf.
11734 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
11735
e4b7f404
VS
117362012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11737
11738 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
11739 device name.
11740
e7b02f9e
VS
117412012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11742
11743 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
11744 (grub_ntfs_iterate_dir): Likewise.
11745
0331e102
VS
117462012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11747
11748 Efiemu stylistic fixes and gettext.
11749
11750 * grub-core/efiemu/i386/loadcore32.c
11751 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
11752 * grub-core/efiemu/i386/loadcore64.c
11753 (grub_arch_efiemu_relocate_symbols64): Likewise.
11754 * grub-core/efiemu/i386/pc/cfgtables.c
11755 (grub_machine_efiemu_init_tables): Likewise.
11756 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
11757 (grub_efiemu_loadcore_initXX): Add a filename argument.
11758 All users updated.
11759 Improved error message.
11760 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
11761 Add a filename argument.
11762 All users updated.
11763 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
11764 Reclassify double relocation as GRUB_ERR_BUG.
11765
306fc074
VS
117662012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11767
11768 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
11769 handling.
11770
794d8ef2
VS
117712012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11772
11773 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
11774 on partition.
11775
117762012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
f991dd3c
VS
11777
11778 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
11779
794d8ef2 117802012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
d61386e2
VS
11781
11782 Improve string. Gettextize.
11783
78dde88e
VS
117842012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
11785
11786 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
11787 utils.
11788 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
11789
4786a90f
VS
117902012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
11791
11792 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
11793 [GRUB_UTIL]: New function.
11794 (insert_array) [GRUB_UTIL]: Store partmaps.
11795 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
11796 partmaps.
11797 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
11798 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
11799 (probe_abstraction): Print diskfilter and not raid.
11800 Reported by: Lennart Sorensen
11801
0b6225bd
VS
118022012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
11803
11804 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
11805 * util/grub-mkimagexx.c (MASK3): New define.
11806 (add_value_to_slot_20b): Use MASK3.
11807 (add_value_to_slot_21): Likewise.
11808 (relocate_addresses): Fix format specification.
11809 (load_image): Explicitly init symtab_section.
11810
b055f8f6
VS
118112012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
11812
11813 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
11814 (grub_util_biosdisk_get_grub_dev): Fix format specification.
11815
b77c2fb7
VS
118162012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
11817
11818 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
11819 on powerpc.
11820 Reported by: Lennart Sorensen
11821
e3ec28ab
VS
118222012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
11823
11824 * gentpl.py: Add missing license header.
11825 * docs/grub.texi: Update copyright year.
11826
c8d9ead6
GS
118272012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
11828
11829 Source grub-mkconfig_lib from the build directory at build time.
11830 Suggested by: Vladimir Serbinenko.
11831
11832 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
11833 * util/grub-install.in: Define pkgdatadir if not already set, and source
11834 grub-mkconfig_lib from there.
11835 * util/grub-kbdcomp.in: Likewise.
11836 * util/grub-mkconfig.in: Likewise.
11837 * util/grub-mknetdir.in: Likewise.
11838 * util/grub-mkrescue.in: Likewise.
11839 * util/grub-mkstandalone.in: Likewise.
11840 * util/grub-reboot.in: Likewise.
11841 * util/grub-set-default.in: Likewise.
11842 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11843
ebcecdf1
VS
118442012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11845
11846 Increase warning level.
11847
11848 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
11849 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
11850 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
11851 (TARGET_CFLAGS): Likewise.
11852 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
11853 * grub-core/Makefile.core.def (decompressor_xz): Add
11854 -Wno-unreachable-code.
11855 (normal): Add -Wno-redundant-decls.
11856 (xzio): Add -Wno-unreachable-code.
11857 (lzopio): Add -Wno-redundant-decls -Wno-error.
11858 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
11859 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
11860 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
11861 * grub-core/kern/dl.c: Add exception to -Wcast-align.
11862 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
11863 * grub-core/kern/i386/coreboot/init.c: Add exception to
11864 -Wsuggest-attribute=noreturn.
11865 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
11866 * grub-core/kern/ia64/dl_helper.c: Likewise.
11867 * grub-core/kern/mips/dl.c: Likewise.
11868 * grub-core/kern/sparc64/dl.c: Likewise.
11869 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
11870 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
11871 (memcmp): Likewise.
11872 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
11873 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
11874 * grub-core/loader/mips/linux.c: Likewise.
11875 * grub-core/loader/multiboot_elfxx.c: Likewise.
11876 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
11877 * grub-core/video/sm712.c: Add exception to -Wcast-align.
11878 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
11879 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
11880 fixme.
11881 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
11882 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
11883 Fix prototype.
11884
37bb97fe
VS
118852012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11886
11887 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
11888 address.
11889
29a3550b
VS
118902012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11891
11892 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
11893 Avoid improper use of strings.
11894 (grub_cmd_legacy_initrdnounzip): Likewise.
11895
dfdffd0d
VS
118962012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11897
11898 * include/grub/emu/misc.h (grub_util_warn): Add missing format
11899 attribute.
11900 (grub_util_info): Likewise.
11901 (grub_util_error): Likewise.
11902
102fae4a
VS
119032012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11904
11905 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
11906 * util/grub-fstest.c (fstest): Likewise.
11907
7e94d044
VS
119082012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11909
11910 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
11911 (grub_md_sha512_real): Likewise.
11912 (grub_util_get_geli_uuid): Likewise.
11913 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
11914 (grub_util_biosdisk_open): Fix format specification.
11915 Respect format security.
11916 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
11917 (xrealloc): Likewise.
11918 (xasprintf): Likewise.
11919
5ebd9769
VS
119202012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11921
11922 * util/import_gcry.py: Include grub/crypto.h in init.c.
11923
495fc8c1
VS
119242012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11925
11926 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
11927 (generate_image): Make prefix a const char *.
11928 Fix format specifications. Respect format security.
11929 Avoid void * arithmetics.
11930 Avoid shadowing.
11931 (argp_parser): Remove unused variable. Respect format security.
11932 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
11933 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
11934 (count_funcs): Remove unused variable.
11935 (relocate_addresses): Fix format specification.
11936 Disable x86-64 with elf32. Remove unused variables.
11937 (add_fixup_entry): Avoid shadowing.
11938 (make_reloc_section): Fix format specification.
11939 Use assert.
11940 (locate_sections): Fix format specifications.
11941 (load_image): Avoid shadowing.
11942
043c2ea3
VS
119432012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11944
11945 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
11946 Fix format specifications. Respect format security.
11947 Don't translate already translated grub_errmsg.
11948 (argp_parser): Remove unused variable
11949
3ec65a81
VS
119502012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11951
11952 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
11953
a4d9fe4a
VS
119542012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11955
11956 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
11957 (main): Likewise. Use xmalloc. Respect format security.
11958
15b81d49
VS
119592012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11960
11961 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
11962 a const char *.
11963 (argp_parser): Remove unused variable.
11964
31731fc0
VS
119652012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11966
11967 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
11968 (add_pixel): Make static.
11969 (add_font): Likewise.
11970 (write_string_section): Make name and str a const char *.
11971 (write_be16_section): Make name a const char *.
11972 (print_glyphs): Make static.
11973 (write_font_ascii_bitmap): Likewise.
11974 (write_font_width_spec): Likewise.
11975 (write_font_pf2): Likewise.
11976 (argp_parser): Remove unused variable.
11977 Respect format security.
11978 (main): Avoid shadowing. Respect format security.
11979
0809527b
VS
119802012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11981
11982 * util/grub-editenv.c (argp_parser): Make static.
11983 (create_envblk_file): Use xmalloc.
11984 (open_envblk_file): Likewise.
11985 Resepect format security.
11986 (set_variables): Respect format security.
11987
45b0c8b7
VS
119882012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11989
11990 * util/getroot.c (grub_find_device): Respect format security.
11991 (get_mdadm_uuid): Remove unused variable.
11992 (grub_util_pull_device): Dont call gettext on already translated
11993 grub_errmsg.
11994 (find_system_device): Remove unused variable.
11995 (grub_util_get_grub_dev): Likewise.
11996 (grub_make_system_path_relative_to_its_root): Respect format security.
11997
1b024b4e
VS
119982012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11999
12000 * util/grub-fstest.c (execute_command): Make first argument
12001 a const char *.
12002 (read_file): Avoid shadowing.
12003 Reuse underlying error message if device open fails.
12004 (cmd_cmp): Respect format security.
12005 (root): Make const char *.
12006 (fstest): Remove args argument and use global copy.
12007 Respect format security.
12008 (argp_parser): Make static.
12009 (main): Make default_root const char *.
12010
5d1d4e28
VS
120112012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12012
12013 * util/grub-mount.c (root): Make const char *.
12014 (execute_command): Make first argument a const char *.
12015 (fuse_init): Respect format security.
12016 (argp_parser): Make static. Remove unused variable.
12017 (main): Make default_root a const char *.
12018 Respect format security.
12019
36eb7379
VS
120202012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12021
12022 * util/grub-probe.c (probe): Don't call gettext on already translated
12023 grub_errmsg.
12024 Remove unused variables.
12025 (argp_parser): Remove unused variable.
12026
76fb2ea9
VS
120272012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12028
12029 * util/grub-script-check.c (argp_parser): Remove unused variable.
12030 (main): Rename read to curread to avoid shadowing.
12031
56c98584
VS
120322012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12033
12034 * util/misc.c (grub_util_write_image_at): Fix format specification.
12035 (grub_util_write_image): Likewise.
12036 (grub_script_execute_argument_to_string): Removed (unused).
12037 (grub_script_execute_menuentry): Likewise.
12038 (grub_putchar): Likewise.
12039
164ebb48
VS
120402012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12041
12042 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
12043 (FUNCTION) [GRUB_UTIL]: Likewise.
12044 (VARIABLE) [GRUB_UTIL]: Likewise.
12045
44318d61
VS
120462012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12047
12048 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
12049 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
12050
31a26002
VS
120512012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12052
12053 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
12054 buffer.
12055
120562012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12057
12058 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
12059 (LzmaEnc_SaveState): Removed (unused).
12060 (LzmaEnc_RestoreState): Likewise.
12061 (LzmaEnc_InitPriceTables): Made static.
12062 (LzmaEnc_Construct): Likewise.
12063 (LzmaEnc_FreeLits): Likewise.
12064 (LzmaEnc_Destruct): Likewise.
12065 (LzmaEnc_Init): Likewise.
12066 (LzmaEnc_InitPrices): Likewise.
12067 (LzmaEnc_Finish): Likewise.
12068 (LzmaEnc_PrepareForLzma2): Removed (unused).
12069 (LzmaEnc_MemPrepare): Likewise.
12070 (LzmaEnc_GetNumAvailableBytes): Likewise.
12071 (LzmaEnc_GetCurBuf): Likewise.
12072 (LzmaEnc_CodeOneMemBlock): Likewise.
12073
6fa67967
VS
120742012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12075
12076 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
12077 (grub_util_ldm_embed): Likewise.
12078
9a7428e6
VS
120792012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12080
12081 * util/grub-editenv.c (print_var): Rename name to varname to
12082 avoid shadowing.
12083 (main): Rename index to curindex to avoid shadowing.
31a26002 12084 Make filename a const char *.
9a7428e6 12085
4f96abd1
VS
120862012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12087
12088 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
12089 to arg_getline to avoid shadowing.
12090
44d10dad
VS
120912012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12092
12093 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
12094 disk_ to avoid shadowing.
12095
340ba63e
VS
120962012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12097
12098 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
12099 curindex to avoid shadowing.
12100 Make static.
12101 (MatchFinder_GetNumAvailableBytes): Make static.
12102
22965bce
VS
121032012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12104
12105 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
12106 avoid shadowing.
12107
7b5784d4
VS
121082012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12109
12110 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
12111 argument from encrypt to do_encrypt to avoid shadowing.
12112
6f48ca01
VS
121132012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12114
12115 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
12116 incorrect nesting of #if's.
12117
a4ea2dff
VS
121182012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12119
12120 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
12121 checks which are always false on some platforms.
12122 (grub_cmd_lsacpi): Likewise.
12123 * grub-core/kern/misc.c (grub_strtoul): Likewise.
12124 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
12125 Likewise.
12126
def9fc1b
VS
121272012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12128
12129 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
12130 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
12131
a67b2a04
VS
121322012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12133
12134 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
12135 re_dfa_t to avoid breaking alignment invariants.
12136 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
12137 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
12138
44c6828d
VS
121392012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12140
12141 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
12142 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
12143
bebe0dd0
VS
121442012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12145
12146 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
12147 Fix declaration.
12148
a9cdb3cf
VS
121492012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12150
12151 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
12152 conserve alignment invariants.
12153 (grub_ehci_ehcc_read16): Likewise.
12154 (grub_ehci_oper_read32): Likewise.
12155 (grub_ehci_oper_write32): Likewise.
12156 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
12157 Conserve alignment invariants.
12158
ccc3b1b8
VS
121592012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12160
12161 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
12162 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
12163 declarations.
12164
987fbd95
VS
121652012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12166
12167 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
12168 Remove unused variable.
12169
0df363f3
VS
121702012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12171
12172 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
12173 Remove set in if.
12174
b2c0c4a6
VS
121752012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12176
12177 * include/grub/net.h: Remove double declarations.
12178
690c531f
VS
121792012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12180
12181 Remove "payload" command in ia64 Linux loader since I couldn't
12182 find any evidence of it being used for anything.
12183 Replace "relocate" command with an environment variable
12184
12185 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
12186 fields.
12187 (ia64_boot_payload): Removed.
12188 (last_payload): Likewise.
12189 (RELOCATE_OFF): Likewise.
12190 (RELOCATE_ON): Likewise.
12191 (RELOCATE_FORCE): Likewise.
12192 (relocate): Likewise.
12193 (free_pages): Don't free payloads.
12194 (grub_load_elf64): Use common error messages.
12195 Use "linux_relocate" variable.
12196 Increase the space after boot_params.
12197 (grub_cmd_payload): Removed.
12198 (grub_cmd_relocate): Likewise.
12199 (grub_cmd_fpswa): Improve messages.
12200 (cmd_payload): Removed.
12201 (cmd_relocate): Likewise.
12202 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
12203 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
12204
01783768
VS
122052012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12206
12207 Convert UHCI to DMA framework.
12208
12209 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
12210 (grub_uhci_pci_iter): Fill new members
12211 (grub_alloc_td): Use P2V and V2P functions.
12212 (grub_free_queue): Likewise.
12213 (grub_alloc_qh): Likewise.
12214 (grub_uhci_setup_transfer): Likewise.
12215 (grub_uhci_check_transfer): Likewise.
12216
43206939
VS
122172012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12218
12219 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
12220 Remove assignment in if while on it.
12221
571e140e
VS
122222012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12223
12224 * util/grub-mkstandalone.in: Fix modules directory.
12225
a9d96eeb
VS
122262012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12227
12228 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
12229 on i386-pc target.
12230 (argp_parser): Accept "auto" as compression specification.
12231
e4e37e8d
VS
122322012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12233
12234 Fix `help' with unloaded modules.
12235
12236 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
12237 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
12238 (grub_dyncmd_dispatcher): Small stylistic fix.
12239 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
12240 explicit help is requested.
12241
e1ea3ade
VS
122422012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12243
12244 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
12245 Explicitly init restart while on it.
12246
27556881
VS
122472012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12248
12249 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
12250 uninited variable.
12251
d65f6b36
VS
122522012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
12253
12254 * util/grub-mknetdir.in: Use . rather than source for POSIX
12255 compatibility.
12256
0a1e473c
VS
122572012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
12258
12259 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
12260
ce6647c8
VS
122612012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
12262
12263 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
12264 variable.
12265
66747894
VS
122662012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
12267
12268 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
12269 without quotes.
12270
71645f6e
VS
122712012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
12272
12273 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
12274
0e1c1f61
VS
122752012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
12276
12277 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
12278 iteration of partitions.
12279
9c4b5c13
VS
122802012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
12281
12282 Improve gettext support. Stylistic fixes and error handling fixes while
12283 on it.
12284
215c90cb
VS
122852012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
12286
12287 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
12288 part. Instead setup the correct stack in RM.
12289 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
12290 for stack.
12291 * include/grub/i386/relocator_private.h: New file.
12292
b5c1f9bf
VS
122932012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
12294
12295 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
12296 argument.
12297 * util/grub-fstest.c (options): Add missing DEVICE part.
12298
b525fd83
VS
122992012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
12300
12301 Clarify and unify messages.
12302
12303 * grub-core/commands/hashsum.c (options): Unify messages.
12304 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
12305 literal-only message as translatable.
12306 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
12307 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
12308 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
12309 commands.
12310 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
12311 key, not the key used to unlock. Clarify what it's used for.
12312 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
12313 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
12314 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
12315 * util/grub-editenv.c (options): Unify "verbose" message.
12316 * util/grub-fstest.c (read_file): Unify error message.
12317 (fstest): Add quotes around commands.
12318 (options): Unify "verbose" message.
12319 * util/grub-install.in: Add quotes around variable name.
12320 * util/grub-kbdcomp.in: Unify error message.
12321 * util/grub-mkfont.c (main): Likewise.
12322 * util/grub-mkrescue.in: Likewise.
12323 * util/grub-mklayout.c (options): Unify "verbose" message.
12324 * util/grub-mkstandalone.in: Unify help and verbose messages.
12325 * util/grub-mount.c (options): Unify "verbose" message.
12326 * util/grub-probe.c (options): Likewise.
12327 * util/grub-script-check.c (options): Likewise.
12328 * util/grub-setup.c (setup): Unify no-terminator message.
12329 (options): Use DEVICE and not DEV.
12330 Unify "verbose" message.
12331 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
12332
0ae70393
VS
123332012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
12334
12335 Improve and unify messages.
12336
12337 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
12338 name. All users updated.
12339 Print filename in error.
12340 (read_device_map): Print filename in error.
12341 * util/getroot.c (grub_guess_root_devices): Print filename in error.
12342 (grub_util_get_os_disk): Likewise.
12343 (grub_util_biosdisk_get_grub_dev): Likewise.
12344 (grub_util_check_block_device): Likewise.
12345 (grub_util_check_char_device): Likewise.
12346 (grub_make_system_path_relative_to_its_root): Likewise.
12347 * util/grub-editenv.c (create_envblk_file): Likewise.
12348 (open_envblk_file): Likewise.
12349 (write_envblk): Likewise.
12350 * util/grub-fstest.c (cmd_cp): Likewise.
12351 (cmd_cat): Likewise.
12352 (cmd_cmp): Likewise.
12353 * util/grub-menulst2cfg.c (main): Likewise.
12354 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
12355 (write_font_width_spec): Likewise.
12356 (write_font_pf2): Likewise.
12357 * util/grub-mkimage.c (generate_image): New argument outname.
12358 All users updated.
12359 Remove unreacheable message.
12360 (options): Unify messages.
12361 (help_filter): Likewise.
12362 * util/grub-mklayout.c (usage): Removed (unused).
12363 (main): Print filename in error.
12364 * util/grub-mkrescue.in: Fix wrong quoting.
12365 * util/grub-setup.c (setup): Print filename in error.
12366 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
12367 (check_sas): Likewise.
12368 * util/misc.c (grub_util_get_fp_size): Removed.
12369 (grub_util_get_image_size): Print filename in error.
12370 (grub_util_read_at): Removed.
12371 (grub_util_read_image): Print filename in error.
12372 (grub_util_load_image): Likewise.
12373 (grub_util_write_image_at): New argument filename. All users updated.
12374 Print filename in error.
12375 (grub_util_write_image): New argument filename. All users updated.
12376 Print filename in error.
12377 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
12378 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
12379
0a96117d
VS
123802012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
12381
12382 * grub-core/Makefile.core.def (pxechain): New module.
12383 * grub-core/loader/i386/pc/pxechainloader.c: New file.
12384 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
12385 function.
12386 (grub_pc_net_config_real): Use grub_pxe_get_cached.
12387 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
12388
aca002f7
VS
123892012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
12390
12391 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
12392 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
12393 * include/grub/err.h (grub_error_saved): New struct.
12394 (grub_errmsg): Make array size explicit.
12395 * include/grub/misc.h (grub_error_save): New function.
12396 (grub_error_load): Likewise.
12397 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
12398 (grub_error_push): Update `errno' member name.
12399 (grub_error_pop): Likewise
12400 * grub-core/net/tftp.c (tftp_data): New member save_err.
12401 (tftp_receive): Save error.
12402 (tftp_open): Restore error.
12403
a51dab13
VS
124042012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
12405
12406 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
12407 to real mode down to execute A20-related code in protected mode as
12408 intended.
12409
eb6e6649
GS
124102012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
12411
12412 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
12413 NULL when the argument `level' has an unexpected value.
12414
92cd0f6e
VS
124152012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
12416
12417 Move platform-dependent files from $prefix to $prefix/$platform.
12418
12419 * config.h.in (GRUB_TARGET_CPU): New definition.
12420 (GRUB_PLATFORM): Likewise.
12421 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
12422 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
12423 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
12424 * grub-core/kern/dl.c (grub_dl_load): Likewise.
12425 * grub-core/normal/autofs.c (read_fs_list): Likewise.
12426 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
12427 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
12428 * grub-core/normal/term.c (read_terminal_list): Likewise.
12429 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
12430 $prefix/locale.
12431 (grub_gettext_init_ext): Likewise.
12432 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
12433 grub_platform.
12434 * util/grub-install.in: Update directories.
12435 * util/grub-mknetdir.in: Likewise.
12436 * util/grub-mkrescue.in: Likewise.
12437
db606889
VS
124382012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
12439
12440 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
12441 grub_error framework. All users updated.
12442
c39992a4
VS
124432012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
12444
12445 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
12446 lists (by always binsearching), improve caching (cache strings
12447 used for binsearch, not only results), improve
12448 maintainability (by using more structured binary search) and correct
12449 error handling.
12450
1e5ec32f
VS
124512012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
12452
12453 * grub-core/script/execute.c (grub_script_return): Fix warning.
12454
ac576cde
VS
124552012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
12456
12457 * grub-core/script/execute.c (grub_script_return): Fix potential
12458 NULL-dereference.
12459 Reported by: Jim Meyering.
12460
498453f6
VS
124612012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12462
12463 * po/POTFILES.in: Regenerate.
12464 * util/grub-install.in: Gettextize the strings missed in first pass.
12465
8be63f2e
VS
124662012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12467
12468 * Makefile.util.def (grub-mkdevicemap): Removed.
12469 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
12470 * include/grub/util/deviceiter.h: Removed.
12471 * util/deviceiter.c: Likewise.
12472 * util/getroot.c (grub_util_get_os_disk): New function.
12473 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
12474 replacement for EFI.
12475 * util/grub-mkdevicemap.c: Removed.
12476 * util/grub-probe.c (probe): Handle PRINT_DISK.
12477 (argp_parser): Handle -t disk.
12478
8e1e4e39
VS
124792012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12480
12481 * util/grub-mkfont.c: Migrate to argp.
12482 * util/grub-mklayout.c: Likewise.
12483 * util/grub-mkpasswd-pbkdf2.c: Likewise.
12484 * util/grub-mkrelpath.c: Likewise.
12485 * util/grub-probe.c: Likewise.
12486 * util/grub-script-check.c: Likewise.
12487
4459819a
VS
124882012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12489
12490 * util/grub-reboot.in: Add missing datarootdir.
12491 Add missing newline.
12492 * util/grub-set-default.in: Add missing datarootdir.
12493 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
12494 * util/grub-mkrescue.in: Likewise.
12495
f65741c7
VS
124962012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12497
12498 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
12499
c1a33466
VS
125002012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12501
12502 * util/grub-kbdcomp.in: Add decent help and gettextize.
12503 * docs/man/grub-kbdcomp.h2m: New file.
12504
c76899a0
VS
125052012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12506
12507 Migrate grub-mkimage.c to argp.
12508
12509 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
12510 (grub-setup): Likewise.
12511 * util/grub-setup.c (print_version): Move to ...
12512 * util/argp_common.c (print_version): ... here.
12513 * util/grub-setup.c (argp_program_version_hook): Move to ...
12514 * util/argp_common.c (argp_program_version_hook): ... here.
12515 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
12516 safety.
12517 * util/grub-mkimage.c (main): Migrate to argp.
12518
57db0757
VS
125192012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12520
12521 * util/grub-mkrescue.in: Use same message as
12522 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
12523 for better translations.
12524
18534ad9
VS
125252012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12526
12527 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
12528 options with generic grub-mkrescue.in with the goal of future
12529 merge.
12530
c84ba308
VS
125312012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12532
12533 * grub-core/kern/mm.c: Add missing include of i18n.h
12534 * grub-core/lib/relocator.c: Likewise.
12535
347998c2
VS
125362012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12537
12538 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
12539 error.
12540 (allocate_pages): Check return value.
12541 Replace fatal with error.
12542 (grub_linux_boot): Replace printf with dprintf.
12543 Check find_mmap_size return value.
12544 Replace fatal with error.
12545 Don't call grub_machine_fini.
12546 (grub_load_elf64): Replace printf with dprintf.
12547 (grub_cmd_linux): Likewise.
12548 (grub_cmd_initrd): Likewise.
12549 (grub_cmd_payload): Likewise.
12550
c779226e
VS
125512012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12552
12553 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
12554 message.
12555 * grub-core/video/radeon_fuloong2e.c
12556 (grub_video_radeon_fuloong2e_setup): Likewise.
12557 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
12558 * grub-core/video/video.c (grub_video_set_mode): Don't override
12559 standard out of memory message.
12560
dc87d45a
GS
125612012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
12562
12563 NetBSD disk wedge support.
12564
12565 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
12566 [__NetBSD__]: Handle NetBSD disk wedges.
12567 * util/getroot.c (convert_system_partition_to_system_disk)
12568 [__NetBSD__]: Likewise.
12569
055f856f
MW
125702012-02-03 Mark Wooding <mdw@distorted.org.uk>
12571
12572 * util/grub-mkconfig.in: Use umask rather than chmod to create
12573 grub.cfg.new to avoid insecure grub.cfg.
12574
4a9f8346
VS
125752012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12576
12577 * grub-core/commands/ls.c: Gettextize.
12578 * grub-core/commands/setpci.c: Likewise.
12579 * grub-core/commands/videotest.c: Likewise.
12580 * grub-core/disk/geli.c: Likewise.
12581 * grub-core/kern/mm.c: Likewise.
12582 * grub-core/lib/relocator.c: Likewise.
12583 * grub-core/loader/efi/appleloader.c: Likewise.
12584 * grub-core/loader/i386/xnu.c: Likewise.
12585 * grub-core/loader/ia64/efi/linux.c: Likewise.
12586 * grub-core/loader/xnu.c: Likewise.
12587 * grub-core/net/dns.c: Likewise.
12588 * grub-core/net/net.c: Likewise.
12589 * grub-core/script/lexer.c: Likewise.
12590 * grub-core/script/parser.y: Likewise.
12591 * grub-core/script/yylex.l: Likewise.
12592 * util/getroot.c: Likewise.
12593 * util/grub-setup.c: Likewise.
12594
a646a366
VS
125952012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12596
12597 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
12598 number.
12599
54e2be26
VS
126002012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12601
12602 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
12603
f7c71e68
VS
126042012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12605
12606 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
12607 macro.
12608 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
12609 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
12610
a32d5c71
VS
126112012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12612
12613 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
12614 * util/grub-install.in: Gettextize.
12615 * util/grub-mkconfig.in: Likewise.
12616 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
12617 if not available.
12618 (grub_warn): Gettextize.
12619 * util/grub-mknetdir.in: Gettextize.
12620 * util/grub-mkrescue.in: Likewise.
12621 * util/grub-mkstandalone.in: Likewise.
12622 * util/grub-reboot.in: Likewise.
12623 * util/grub-set-default.in: Likewise.
12624 * util/grub.d/00_header.in: Likewise.
12625 * util/grub.d/10_hurd.in: Likewise.
12626 * util/grub.d/10_kfreebsd.in: Likewise.
12627 * util/grub.d/10_linux.in: Likewise.
12628 * util/grub.d/10_netbsd.in: Likewise.
12629 * util/grub.d/10_windows.in: Likewise.
12630 * util/grub.d/20_linux_xen.in: Likewise.
12631 * util/grub.d/30_os-prober.in: Likewise.
12632 * po/POTFILES-shell.in: Regenerate.
12633
69edd81a
RL
126342012-02-03 Richard Laager <rlaager@wiktel.com>
12635
12636 * util/grub-mkimage.c (main): Fix format-security warning.
12637 * util/grub-mkrelpath.c (main): Likewise.
12638 * util/grub-probe.c (main): Likewise.
12639
65f08dbf
RL
126402012-02-03 Richard Laager <rlaager@wiktel.com>
12641
12642 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
12643 failure.
12644 Put back lost PRINT_DRIVE.
12645
e9084abe
RL
126462012-02-03 Richard Laager <rlaager@wiktel.com>
12647
12648 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
12649 (grub_guess_root_devices): Replace strlen with sizeof.
12650 Avoid crash.
12651 (find_root_devices_from_poolname): Remove unused variable.
12652 Handle raidzN.
12653
cf5f7ee7
VS
126542012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12655
12656 Support install on multi-device filesystems.
12657
12658 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
12659 (grub_guess_root_devices): ...this. Return char **. All users updated.
12660 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
12661 Removed.
12662 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
12663 (find_root_devices_from_poolname): ... here.
12664 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
12665 Support zfs-fuse.
12666 (grub_guess_root_device): Rename to ...
12667 (grub_guess_root_devices): ... this. Return char **. All users updated.
12668 * util/grub-install.in: Handle multi-device filesystems.
12669 * util/grub-probe.c (probe). Make device_names a char **. Add delim
12670 argument. All users updated.
12671 Handle multi-device filesystems.
12672 Use 'delim' as separator.
12673 Remove device check to allow filesystems on file.
12674 (main): Support -0 argument. Handle multi-device.
12675 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
12676 Fix a cross-device check while on it.
12677 (arguments): Remove root_dev.
12678 (argp_parser): Remove -r.
12679 (main): Remove root_dev.
12680
2f53a9ed
VS
126812012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
12682
12683 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
12684
17e1d934
VS
126852012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
12686
12687 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
12688 symbol.
12689 Reported by: NODA, Kai <nodakai>.
12690
d3e3fab5
VS
126912012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
12692
12693 Fix ehci on amd64.
12694
12695 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
12696 pointers.
12697 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
12698 (grub_ehci_setup_qh): Likewise.
12699 (grub_ehci_find_qh): Likewise.
12700 (grub_ehci_transaction): Likewise.
12701 (grub_ehci_setup_transfer): Likewise.
12702 (grub_ehci_check_transfer): Likewise.
12703 (grub_ehci_portstatus): Likewise.
12704 (grub_ehci_detect_dev): Likewise.
12705 (grub_ehci_transfer_controller_data): New field td_last_phys.
12706 (grub_ehci_setup_transfer): Fill td_last_phys.
12707 (grub_ehci_check_transfer): Use td_last_phys.
12708
3008675b
SG
127092012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
12710
12711 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
12712 if no submenu is present.
12713
fc9b5652
AN
127142012-02-01 Aleš Nesrsta <starous@volny.cz>
12715
12716 CBI support.
12717
12718 * include/grub/usb.h (grub_usbms_protocol_t): New values
12719 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
12720 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
12721 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
12722 (grub_usbms_dev): Add subclass, protocol and intrpt.
12723 Remove in_maxsz and out_maxsz.
12724 (grub_usbms_reset): Rename to ...
12725 (grub_usbms_bo_reset): .. this.
12726 (grub_usbms_cbi_cmd): New function.
12727 (grub_usbms_cbi_reset): Likewise.
12728 (grub_usbms_reset): Likewise.
12729 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
12730 (grub_usbms_transfer): Rename to ...
12731 (grub_usbms_transfer_bo): ... this.
12732 (grub_usbms_transfer_cbi): Likewise.
12733 (grub_usbms_transfer): Likewise.
12734
a2b81d53
AN
127352012-02-01 Aleš Nesrsta <starous@volny.cz>
127362012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
12737
12738 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
12739 the support for the CS5536 modification thereos and few bugfixes.
12740
12741 * grub-core/Makefile.core.def (ehci): New module.
12742 * grub-core/bus/usb/ehci.c: New file.
12743 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
12744 port and hubaddr. All users updated.
12745 Save port and hubaddr into dev structure.
12746 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
12747 define.
12748 * include/grub/pci.h (grub_dma_phys2virt): New function.
12749 (grub_dma_virt2phys): Likewise.
12750 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
12751
b1d51f02
VS
127522012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
12753
12754 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
12755 check as some mkfs implementations omit it.
12756
fc694106
VS
127572012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
12758
12759 * docs/grub.texi (Unicode): Mention identifier and space limitations.
12760
6c0920e3
VS
127612012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
12762
12763 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
12764 Add new member volname2.
12765 (grub_jfs_label): Use volname2 if available.
12766
d1a46f9a
VS
127672012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
12768
12769 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
12770 over last_mounted as seen in image generated by mkfs.nilfs2.
12771 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
12772
dec8ed14
VS
127732012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
12774
12775 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
12776 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
12777 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
12778
7397c69b
VS
127792012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
12780
12781 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
12782 over the sector.
12783
b3fe42ad
VS
127842012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
12785
12786 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
12787 subvolume name (by removing a bogus and useless check).
12788
10476bb0
VS
127892012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
12790
12791 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
12792 sizeof while on it.
12793
9c08ad87
VS
127942012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
12795
12796 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
12797 (grub_scsi_read_capacity10): ... this.
12798 (grub_scsi_read_capacity16): New function.
12799 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
12800 0xffffffff.
12801 Fix off-by-one error.
12802 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
12803 64-bit unsigned.
12804 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
12805 (grub_scsi_read_capacity10): ... this.
12806 (grub_scsi_read_capacity_data): Rename to ...
12807 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
12808 (grub_scsi_read_capacity16): New struct.
12809 (grub_scsi_read_capacity16_data): Likewise.
12810 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
12811 grub_scsi_cmd_read_capacity10.
12812 New command grub_scsi_cmd_read_capacity16.
12813
bc8d0f45
VS
128142012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
12815
12816 SCSI >2TiB support.
12817
12818 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
12819 (grub_scsi_write16): Likewise.
12820 (grub_scsi_read): Use read16 when necessary.
12821 (grub_scsi_write): Likewise.
12822 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
12823 (grub_scsi_write16): Likewise.
12824 (grub_scsi_cmd_t): Add READ16 and WRITE16.
12825
cc774926
VS
128262012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
12827
12828 SCSI write support (for usbms mainly).
12829
12830 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
12831 a const pointer.
12832 (grub_scsi_write): Implement.
12833 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
12834
67639fd7
VS
128352012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
12836
12837 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
12838 variable.
12839
9079d3ed
VS
128402012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
12841
12842 * grub-core/lib/posix_wrap/string.h (memchr): New function.
12843
c6a6f204
VS
128442012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
12845
12846 * po/POTFILES.in: Regenerate.
12847
ecbf8cd1
VS
128482012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
12849
12850 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
12851 with grub_printf to avoid unnecessary fatal failure.
12852
0b3b3b38
VS
128532012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
12854
12855 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
12856 (INT_MAX): Likewise.
12857 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
12858 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
12859 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
12860 (strcpy): Likewise.
12861 (strstr): Likewise.
12862 (strchr): Likewise.
12863 (strncpy): Likewise.
12864 (strcat): Likewise.
12865 (strncat): Likewise.
12866 (strcoll): Likewise.
12867 * include/grub/types.h (GRUB_SHRT_MAX): New define.
12868 (GRUB_INT_MAX): Likewise.
12869
db7337a3
VS
128702012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
12871
12872 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
12873 unexpected error.
12874 (optimize_utf8): Likewise.
12875 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
12876
f37c87e1
VS
128772012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
12878
12879 * grub-core/boot/i386/pc/lnxboot.S: Use
12880 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
12881 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
12882 location.
12883 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
12884 definition.
12885 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
12886
63fe43f3
VS
128872012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
12888
12889 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
12890 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
12891 now to avoid double free.
12892 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
12893 hostdisk.
12894 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
12895 * util/grub-probe.c (escape_of_path): Always return a new copy.
12896 (print_full_name): Escape path.
12897 (probe): Don't call grub_util_devname_to_ofpath on NULL.
12898 Fix hints on abstractions.
12899
ebe2c961
VS
129002012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
12901
12902 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
12903 Don't add "root" line if no compatibility hont is available.
12904 Suggested by: Seth Goldberg.
12905
2b5336a2
VS
129062012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
12907
12908 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
12909 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
12910 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
12911 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
12912
74310bd8
VS
129132012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
12914
12915 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
12916
c30582ba
VS
129172012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
12918
12919 * util/grub-pe2elf.c (ehdr): Make static.
12920 (shdr): Likewise.
12921 (num_sections): Likewise.
12922 (offset): Likewise.
12923
5f47782c
VS
129242012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
12925
12926 Eliminate ofpath limits and possible overflows.
12927
12928 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
12929 (OF_PATH_MAX): Removed.
12930 (MAX_DISK_CAT): New const.
12931 (find_obppath): Use allocated rather than preallocated buffer.
12932 Return result. Argument of_path removed. All users updated.
12933 Add missing fdstat.
12934 (xrealpath): New function.
12935 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
12936 Allocate rather than use preallocated buffer. All users updated.
12937 (__of_path_common): Use allocated rather than preallocatecd buffer.
12938 Return result. Argument of_path removed. All users updated.
12939 (vendor_is_ATA): Read only needed part form the file.
12940 (check_sas): Allocate depending on contents rather than fixed.
12941 (main) [STANDALONE]: Handle NULL result.
12942
f990cbf9
VS
129432012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
12944
12945 * grub-core/normal/completion.c (iterate_dev): Close the disk.
12946
9c6e84b8
VS
129472012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
12948
12949 Cryptodisk write support.
12950
12951 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
12952 (grub_cryptodisk_decrypt): Moved logic to ...
12953 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
12954 (grub_cryptodisk_write): Implement.
12955 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
12956 (grub_util_fd_write): ... this. Make global.
12957 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
12958
87cf9744
VS
129592012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
12960
12961 * include/grub/list.h (grub_list_remove): Don't crash if element is
12962 removed twice.
12963
ca8c0baf
VS
129642012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
12965
12966 Rename ofconsole to console.
12967
12968 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
12969 as sysnonym to console.
12970 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
12971 * grub-core/term/ieee1275/console.c: ... this. All users updated.
12972 Rename grub_ofconsole_ to grub_console_. All users updated
12973 (grub_console_term_output): Rename "ofconsole" to "console".
12974 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
12975 as "console".
12976
64c8b8f6
VS
129772012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
12978
12979 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
12980 handling.
12981 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
12982 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
12983 GRUB_DISK_DEVICE_FILE_ID.
12984
f6c434d5
VS
129852012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
12986
12987 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
12988 and improve performance.
12989
5858b42d
VS
129902012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
12991
12992 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
12993 missing ieee1275/ prefix on whole disk.
12994
4ed3c26b
VS
129952012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
12996
12997 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
12998 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
12999
df71143e
VS
130002012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13001
13002 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
13003
076e7c0f
VS
130042012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13005
13006 Merge common RAID and LVM logic to an abstract diskfilter.
13007 Add LDM support using the same framework.
13008
13009 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
13010 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
13011 (libgrubmods): Remove grub-core/disk/raid.c and
13012 grub-core/partmap/gpt.c.
13013 * grub-core/Makefile.core.def (ldm): New module.
13014 (raid): Renamed to diskfilter. All users updated.
13015 * grub-core/disk/raid.c: Moved to ...
13016 * grub-core/disk/diskfilter.c: ... here.
13017 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
13018 (lv_num): New var.
13019 (find_array): Renamed to ...
13020 (find_lv): ... this. Support multi-LV. Skip nameless LVs
13021 (grub_is_array_readable): Renamed to ...
13022 (grub_is_lv_readable): ... this. Support multinode hierarchy.
13023 (insert_array): New argument id.
13024 (is_node_readable): New function.
13025 (scan_device): Rename to ...
13026 (scan_disk): .. this. Restrict to one disk.
13027 (scan_devices): New function.
13028 (grub_diskfilter_iterate): Support multi-LV.
13029 Skip invisible and nameless LVs.
13030 (grub_diskfilter_memberlist): Support multi-LV.
13031 (grub_diskfilter_read_node): New function.
13032 (grub_raid_read): Most of logic moved to ...
13033 (read_segment): ... here
13034 (read_lv): New function.
13035 (grub_diskfilter_get_vg_by_uuid): New function.
13036 (grub_diskfilter_make_raid): Likewise.
13037 * grub-core/disk/ldm.c: New file.
13038 * grub-core/disk/lvm.c (vg_list): Removed.
13039 (lv_count): Likewise.
13040 (scan_depth): Likewise.
13041 (is_lv_readable): Likewise.
13042 (grub_lvm_getvalue): Advance pointer past the number.
13043 (find_lv): Removed.
13044 (do_lvm_scan): Refactored into ...
13045 (grub_lvm_detect): ... this. Support raid.
13046 (grub_lvm_iterate): Removed.
13047 (grub_lvm_memberlist): Likewise.
13048 (grub_lvm_open): Likewise.
13049 (grub_lvm_close): Likewise.
13050 (read_lv): Likewise.
13051 (read_node): Likewise.
13052 (is_node_readable): Likewise.
13053 (is_lv_readable): Likewise.
13054 (grub_lvm_read): Likewise.
13055 (grub_lvm_write): Likewise.
13056 (grub_lvm_dev): Use diskfilter
13057 (GRUB_MOD_INIT): Likewise.
13058 (GRUB_MOD_FINI): Likewise.
13059 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
13060 new interface.
13061 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
13062 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
13063 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
13064 grub_diskfilter_read_node.
13065 Fix a bug with xor.
13066 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
13067 grub_diskfilter_read_node.
13068 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
13069 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
13070 (grub_disk_dev_iterate): Move from here...
13071 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
13072 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
13073 Make global.
13074 (grub_hostdisk_find_partition_start): Likewise.
13075 (grub_hostdisk_os_dev_to_grub_drive): New function.
13076 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
13077 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
13078 * util/getroot.c (make_device_name): ... here.
13079 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
13080 Move to ...
13081 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
13082 * grub-core/kern/emu/hostdisk.c
13083 (convert_system_partition_to_system_disk): Move to ...
13084 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
13085 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
13086 * util/getroot.c (device_is_wholedisk): ... here.
13087 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
13088 * util/getroot.c (find_system_device): ... here.
13089 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
13090 Move to ...
13091 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
13092 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
13093 Move to ...
13094 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
13095 Handle LDM.
13096 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
13097 Move to ...
13098 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
13099 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
13100 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
13101 DISKFILTER.
13102 * include/grub/raid.h: Renamed to ...
13103 * include/grub/diskfilter.h: ... this.
13104 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
13105 (GRUB_RAID_LAYOUT_*): Make into array.
13106 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
13107 (grub_diskfilter_vg): New struct.
13108 (grub_diskfilter_pv_id): Likewise.
13109 (grub_raid_member): Removed.
13110 (grub_raid_array): Likewise.
13111 (grub_diskfilter_pv): New struct.
13112 (grub_diskfilter_lv): Likewise.
13113 (grub_diskfilter_segment): Likewise.
13114 (grub_diskfilter_node): Likewise.
13115 (grub_diskfilter_get_vg_by_uuid): New proto.
13116 (grub_raid_register): Inline.
13117 (grub_diskfilter_unregister): Likewise.
13118 (grub_diskfilter_make_raid): New proto.
13119 (grub_diskfilter_vg_register): Likewise.
13120 (grub_diskfilter_read_node): Likewise.
13121 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
13122 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
13123 (grub_util_is_ldm): Likewise.
13124 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
13125 (grub_hostdisk_find_partition_start): Likewise.
13126 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
13127 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
13128 New definition.
13129 (grub_gpt_partition_map_iterate): New proto.
13130 * include/grub/lvm.h (grub_lvm_vg): Removed.
13131 (grub_lvm_pv): Likewise.
13132 (grub_lvm_lv): Likewise.
13133 (grub_lvm_segment): Likewise.
13134 (grub_lvm_node): Likewise.
13135 * util/getroot.c [...]
13136 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
13137 (probe_abstraction): Likewise.
13138 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
13139 (main): Remove dead logic.
13140
8a7f9b9c
VS
131412012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
13142
13143 Simplify root device discover and don't fail when trying to open
13144 incorrect devices.
13145
13146 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
13147 function.
13148 (get_diskname_from_path): Likewise.
13149 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
13150 of iterating.
13151
30545b85
VS
131522012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
13153
13154 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
13155
28ea58cf
VS
131562012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
13157
13158 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
13159 pastthe end.
13160
692dabca
VS
131612012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
13162
13163 * util/grub-install.in: Add missing \.
13164 Reported by: gentoofan
13165
f6e4ea70
VS
131662012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
13167
13168 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
13169 (direct_read): Use correct compressed size.
13170 (grub_squash_read_data): Likewise.
13171
131722012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
ca1dacea
VS
13173
13174 * docs/grub.texi (Platform limitations): New section.
13175 (Platform-specific operations): Likewise.
13176 * docs/grub-dev.texi (Porting): Likewise.
13177
76261110
VS
131782012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
13179
13180 IEEE1275 disk write support.
13181
13182 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
13183 const void *.
13184 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
13185 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
13186 and seek loginc to ...
13187 (grub_ofdisk_prepare): ... here.
13188 (grub_ofdisk_write): Implement.
13189
fc36d603
VS
131902012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
13191
13192 ARC disk write support.
13193
13194 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
13195 (reopen): New argument writable. All users updated.
13196 Handle required access mode.
13197 (grub_arcdisk_write): Implement.
13198 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
13199 (grub_arc_firmware_vector): Make buffer to write a const buffer.
13200
e06c2e7a
VS
132012012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
13202
13203 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
13204 (read_sblock): Don't attempt to read superblocks outside the disk size.
13205
ff447958
VS
132062012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
13207
13208 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
13209 first superblock to find the second one when possible.
13210
9e88df39
VS
132112012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
13212
13213 * util/grub-install.in: Fix an ARC bug.
13214 Print a warning if no platform-specific setup is available.
13215
bb26e4ff
VS
132162012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
13217
13218 Use static allocation rather than scratch pointer in reed_solomon.
13219 It decreases its size significantly and avoids a variable in .text.
13220
13221 * grub-core/lib/reed_solomon.c (scratch): Removed.
13222 (chosenstat): New const or static array.
13223 (sigma): Likewise.
13224 (errpot): Likewise.
13225 (errpos): Likewise.
13226 (sy): Likewise.
13227 (mstat): Likewise.
13228 (errvals): Likewise.
13229 (eqstat): Likewise.
13230 (pol_evaluate): Replace x with log_x argument. All users updated.
13231 (syndroms): Removed.
13232 (gauss_solve): Use statically allocated arrays.
13233 (rs_recover): Likewise.
13234 Calculate syndroms directly.
13235 (decode_block): Use statically allocated arrays.
13236 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
13237 (main) [TEST]: Allow -DTEST -DSTANDALONE.
13238
2e13ede5
VS
132392012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
13240
13241 Eliminate fixed limit on reed solomon decoder length.
13242
13243 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
13244 rather than hardcoding the address.
13245 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
13246 no_reed_solomon_length.
13247 Move gate_a20 to no-reed-solomon part.
13248 Don't force a particular size of no reed-solomon part.
13249 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
13250 Removed.
13251 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
13252 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
13253
f8a9ab12
VS
132542012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
13255
13256 * grub-core/commands/wildcard.c (match_files): Handle filenames
13257 without explicit device.
13258 (wildcard_expand): Don't add explicit device if not already present.
13259 * tests/grub_script_echo1.in: Add a new expansion test.
13260
87edb894
VS
132612012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
13262
13263 Replace single-linked with double-linked lists. It results in more
13264 compact and more efficient code.
13265
13266 * grub-core/kern/list.c (grub_list_push): Moved from here ...
13267 * include/grub/list.h (grub_list_push): ... to here. Set prev.
13268 (grub_list_remove): Moved from here ...
13269 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
13270 (grub_prio_list_insert): Set prev.
13271 * include/grub/list.h (grub_list): Add prev. All users updated.
13272
48b391e9
VS
132732012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
13274
13275 Handle newer autotools. Add some missing quotes while on it.
13276
13277 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
13278 (pkglib_DATA): Move grub-mkconfig_lib from here ...
13279 (pkgdata_DATA): ... here.
13280 * Makefile.util.def (update-grub_lib): Removed.
13281 * conf/Makefile.common (pkglib_DATA): Removed.
13282 (pkglib_SCRIPTS): Likewise.
13283 (pkgdata_DATA): New variable.
13284 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
13285 needed.
13286 Add missing quotes.
13287 Remove unused variable while on it.
13288 * tests/util/grub-shell.in: Likewise.
13289 * util/grub-install.in: Likewise.
13290 * util/grub-mkconfig.in: Likewise.
13291 * util/grub-mknetdir.in: Likewise.
13292 * util/grub-mkrescue.in: Likewise.
13293 * util/grub-mkstandalone.in: Likewise.
13294 * util/grub.d/00_header.in: Likewise.
13295 * util/grub.d/10_hurd.in: Likewise.
13296 * util/grub.d/10_illumos.in: Likewise.
13297 * util/grub.d/10_kfreebsd.in: Likewise.
13298 * util/grub.d/10_linux.in: Likewise.
13299 * util/grub.d/10_netbsd.in: Likewise.
13300 * util/grub.d/10_windows.in: Likewise.
13301 * util/grub.d/20_linux_xen.in: Likewise.
13302 * util/grub.d/30_os-prober.in: Likewise.
13303 * util/update-grub_lib.in: Removed.
13304
133052012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
e555f379
SG
13306
13307 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
13308 a workaround for intel problem.
13309
66832792
PRP
133102012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
133112012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
133122012-01-23 pfsmorigo
13313
13314 * util/grub-install.in: Support dd'in into PreP partition.
13315 * util/grub-probe.c (probe): Support discovering partition type.
13316 (main): Support -t msdos_parttype.
13317
7816a17e
VS
133182012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
13319
13320 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
13321 infinite recursion using counter.
13322 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
13323 init to skip it if the magic check fails.
13324 (dec_stream_header): Init s->crc32.
13325
8f9d3a8c
ZB
133262012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
133272012-01-22 Zachary Bedell <pendorbound@gmail.com>
133282012-01-22 Richard Laager <rlaager@wiktel.com>
13329
13330 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
13331 All users updated.
13332 (find_bestub): Determine correct size.
13333 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
13334 (scan_disk): Align the size down.
13335 Call check pool before find_bestub to have ashift.
13336
b055dd32
VS
133372012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13338
13339 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
13340 dprintf in no-malloc zone.
13341
d779e9bd
ML
133422012-01-22 Mario Limonciello <mario_limonciello@dell.com>
13343
13344 * configure.ac: Add back in test for limits.h.
13345
b508af69
VS
133462012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
13347
13348 Support 4K-sector NTFS.
13349
13350 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
13351 (grub_ntfs_data): Remove blocksize.
13352 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
13353 Remove data argument. All users updated.
13354
dad9c8b5
VS
133552012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
13356
13357 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
13358 being in .text to avoid dprel references.
13359 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
13360 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
13361 (grub_arch_highmemsize): Likewise.
13362 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
13363 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
13364 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
13365
d43a777e
VS
133662012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
13367
13368 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
13369
13370 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
13371 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
13372
34e4208f
VS
133732012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
13374
13375 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
13376 GRUB_UTIL.
13377 (grub_set_datetime_cmos): Likewise.
13378
3ec0fc1c
VS
133792012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
13380
13381 Make XZ compression parameters dependent on target and not host CPU.
13382
13383 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
13384 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
13385
22489834
VS
133862012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
13387
13388 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
13389 set but not used variable.
13390
8502fbca
VS
133912012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13392
13393 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
13394 created when no uuid support is compiled into mkfs.reiser.
13395
76df2068
VS
133962012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13397
13398 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
13399 (utf8_to_macroman): Do the opposite.
13400 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
13401
64e3f8f6
VS
134022012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13403
13404 * configure.ac: Refise build qemu_mips w/o unifont.
13405
9c271078
VS
134062012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13407
13408 Eliminate grub_min/grub_max prone to overflow usage.
13409
13410 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
13411 (poll_nonroot_hub): Likewise.
13412 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
13413 (grub_affs_label): Likewise.
13414 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
13415 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
13416 (grub_hfs_label): Likewise.
13417 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
13418 * grub-core/fs/zfs/zfs.c (MIN): Remove.
13419 (zap_leaf_array_equal): Use grub_size. Remove MIN.
13420 (zap_leaf_array_get): Likewise.
13421 (dnode_get_path): Likewise.
13422 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
13423 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
13424 * grub-core/script/execute.c (grub_script_break): Likewise.
13425 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
13426 grub_max.
13427 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
13428 * include/grub/misc.h (grub_min): Removed.
13429 (grub_max): Likewise.
13430
80662dbc
VS
134312012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
13432
13433 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
13434 direct.inode = 0.
13435
e6da1467
VS
134362012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13437
13438 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
13439
b1ac4cb1
VS
134402012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13441
13442 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
13443
b4bf7c3b
VS
134442012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13445
13446 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
13447 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
13448
8ee1101a
VS
134492012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13450
13451 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
13452 rather than a hack for grub_strncasemap.
13453
134542012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13455
13456 Support multiple initrds
13457 Note: part of this was accidently committed in r3739.
13458
13459 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
13460 initrd.
13461 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
13462 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
13463 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
13464 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
13465 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
13466
4d1e2bc9
VS
134672012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13468
13469 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
13470 disks with unknown size.
13471 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
13472
75b49ebe
VS
134732012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13474
13475 Remove defines pertaining to arbitrary limits not affecting GRUB
13476 anymore.
13477
13478 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
13479 (EXT2_MAX_SYMLINKCNT): Likewise.
13480 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
13481 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
13482 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
13483 (GRUB_PXE_MAX_BLKSIZE): Likewise.
13484 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
13485 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
13486 (DN_MAX_OBJECT_SHIFT): Likewise.
13487 (DN_MAX_OFFSET_SHIFT): Likewise.
13488 (DN_MAX_OBJECT): Likewise.
13489 (DNODES_PER_LEVEL_SHIFT): Likewise.
13490 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
13491 (SPA_MAXBLOCKSIZE): Likewise.
13492 (SPA_BLOCKSIZES): Likewise.
13493 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
13494 (MZAP_MAX_BLKSZ): Likewise.
13495
74a1dce7
VS
134962012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13497
13498 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
13499 handle NULL appropriately.
13500 Remove MIN.
13501
30c7d3ce
VS
135022012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
13503
13504 Fix efiemu.
13505
13506 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
13507 cpu/types.h.
13508 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
13509 * configure.ac: Fix efiemu check.
13510
3c76ea0c
VS
135112012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
13512
13513 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
13514 grub_probe.
13515 Reported by: adamwill
13516
7e532280
SG
135172012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
13518
13519 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
13520
30492374
VS
135212012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13522
13523 Fix handling of wide characters in gfxterm.
13524
13525 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
13526 (clear_char): Likewise.
13527 (paint_char): Skip code == NULL chars.
13528 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
13529
e70cb72f
VS
135302012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13531
13532 * grub-core/normal/charset.c: Move comment to right place.
13533
5c827cf9
VS
135342012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
13535
13536 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
13537 (GRUB_AFFS_FLAG_FFS): Put back where it was.
13538 (grub_affs_mount): Revert the correct version checking.
13539
53603892
VS
135402012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
13541
13542 * docs/grub.texi (Unicode): Mention several other unsupported features.
13543
ff094b9b
VS
135442011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
13545
13546 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
13547 case statements as compile-time one.
13548 (direct_read): Prevent spurious warnings.
13549 (grub_squash_read_data): Likewise.
13550
c029da8a
VS
135512011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
13552
13553 Various squash4 fixes and LZO and XZ support.
13554
13555 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
13556 Add xzembed source files.
13557 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
13558 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
13559 (grub_squash_inode): New subtype long_dir.
13560 (SQUASH_TYPE_LONG_DIR): New inode type.
13561 (COMPRESSION): New enum.
13562 (XZBUFSIZ): New const.
13563 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
13564 (read_chunk): Use data->decompress.
13565 (zlib_decompress): New function.
13566 (lzo_decompress): Likewise.
13567 (xz_decompress): Likewise.
13568 (squash_mount): Set new data fields.
13569 (grub_squash_iterate_dir): Handle long dir.
13570 (squash_unmount): Free xzdec and xzbuf.
13571 (grub_squash_open): Check ino type.
13572 (direct_read): Stylistic fixes. Use data->decompress.
13573 (grub_squash_read_data): Likewise.
13574 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
13575 (get_byte): Likewise.
13576 (grub_zlib_disk_read): Removed.
13577 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
13578 (GRUB_POSIX_BOOL_DEFINED): New define.
13579 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
13580 * grub-core/lib/xzembed/xz.h: Addmissing includes.
13581 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
13582 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
13583
7a45a539
VS
135842011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
13585
13586 Don't override more informative errors.
13587
13588 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
13589 * grub-core/font/font.c (open_section): Likewise.
13590 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
13591 filename. Don't override errors.
13592 (grub_cmd_openbsd_ramdisk): Don't override errors.
13593 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
13594 (grub_cmd_initrd): Likewise.
13595 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
13596 (grub_cmd_initrd): Likewise.
13597 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
13598 (grub_cmd_linux): Likewise.
13599 (grub_cmd_initrd): Likewise.
13600 (grub_cmd_payload): Likewise.
13601 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
13602 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
13603 (grub_cmd_module): Likewise.
13604 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
13605 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
13606 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
13607 (grub_cmd_xnu_mkext): Likewise.
13608 (grub_cmd_xnu_ramdisk): Likewise.
13609 (grub_xnu_check_os_bundle_required): Likewise.
13610 (grub_xnu_load_kext_from_dir): Likewise.
13611 (grub_cmd_xnu_kextdir): Likewise.
13612 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
13613
b2d004db
VS
136142011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13615
13616 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
13617 as 1024 in block size field. Found on one of my test images.
13618 Small optimisation while on it.
13619
ec000eac
VS
136202011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13621
13622 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
13623 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
13624 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
13625 performance fixes while on it.
13626 (grub_sfs_close): Fix memory leak while on it.
13627 (grub_sfs_label): Convert Latin1 to UTF-8.
13628
f50e1165
VS
136292011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13630
13631 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
13632 space to avoid overflows.
13633 (grub_hfs_label): Convert from macroman to UTF-8.
13634
2ae254de
VS
136352011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13636
13637 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
13638
0108f491
VS
136392011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13640
13641 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
13642
f45f5f89
VS
136432011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13644
13645 * unicode: Import Unicode 6.0 data.
13646
4d8c4765
VS
136472011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13648
63fa8ef9
VS
13649 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
13650 outside of range.
13651
136522011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13653
13654 Avoid cutting in the middle of UTF-8 character.
4d8c4765
VS
13655
13656 * include/grub/charset.h (grub_getend): New function.
13657 * grub-core/script/function.c (grub_script_function_find): Use
13658 grub_getend.
13659 * grub-core/normal/completion.c (add_completion): Likewise.
13660
f3cb4a4e
VS
136612011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13662
13663 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
13664 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
13665 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
13666 (GRUB_UNICODE_TAG_END): Likewise.
13667 (GRUB_UNICODE_LAST_VALID): Likewise.
13668
5da8dbc5
VS
136692011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13670
13671 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
13672 len and make it smaller. All users updated.
13673 * util/import_unicode.py: Put length and not end character.
13674 Check length.
13675
8569f13d
VS
136762011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13677
13678 Make better Unicode-compliant and unify some UTF-8 code pathes.
13679
13680 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
13681 valid character.
13682 (grub_is_valid_utf8): Use grub_utf8_process.
13683 Check resulting code range.
13684 (grub_utf8_to_ucs4): Use grub_utf8_process.
13685 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
13686 valid character.
13687
cc4fddf5
VS
136882011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13689
13690 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
13691
bbc47747
VS
136922011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13693
13694 * docs/grub.texi (Filesystems): Mention AFS.
13695
f63d6bf4
VS
136962011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13697
13698 * docs/grub.texi (Filesystems): Clarify restrictions.
13699 (Regexp): Mention non-Unicode regexp behaviour.
13700 (Other): Mention non-Unicode matching behaviour.
13701
74bbf0db
VS
137022011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
13703
f63d6bf4 13704 Make HFS implementation use MacRoman.
74bbf0db
VS
13705
13706 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
13707 (macroman): New const array.
13708 (macroman_to_utf8): New function.
13709 (utf8_to_macroman): Likewise.
13710 (grub_hfs_find_dir): Use utf8_to_macroman.
13711 (grub_hfs_dir): Use macroman_to_utf8.
13712 Set case_insensitive.
13713
4ea0316e
VS
137142011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
13715
13716 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
13717
d3c13cbd
VS
137182011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
13719
13720 Integrate hints into autogeneration scripts.
13721
13722 * docs/grub.texi (Filesystems): Add a hostdisk example.
13723 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
13724 (grub-probe): Add ofpath.
13725 * gentpl.py: Remove group nosparc64.
13726 * grub-core/commands/search.c (cache_entry): New struct.
13727 (cache): New var.
13728 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
13729 * grub-core/commands/search_wrap.c (options): Add platform-specific
13730 hint options.
13731 (grub_cmd_search): Handle platform-specific hints.
13732 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
13733 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
13734 (grub_util_biosdisk_data): Likewise.
13735 (grub_util_biosdisk_open): Set device_map.
13736 (read_device_map): Handle "" as indication of no map.
13737 Set device_map.
13738 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
13739 (grub_util_biosdisk_get_compatibility_hint): New function.
13740 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
13741 * include/grub/emu/hostdisk.h
13742 (grub_util_biosdisk_get_compatibility_hint): New proto.
13743 * util/grub-install.in: Don't call grub-mkdevicemap.
13744 Add platform-specific hint to load.cfg.
13745 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
13746 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
13747 hints. Set root preliminary to compatibility hint, not to OS name.
13748 * util/grub-probe.c (PRINT_*): Add hints.
13749 (print): Make static.
13750 (escape_of_path): New function.
13751 (guess_bios_drive): Likewise.
13752 (guess_efi_drive): Likewise.
13753 (guess_baremetal_drive): Likewise.
13754 (print_full_name): Likewise.
13755 (probe): Handle hints.
13756 (main): Likewise.
13757 * util/ieee1275/devicemap.c: Removed.
13758 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
13759 updated.
13760 (grub_util_devname_to_ofpath): Return NULL on failure.
13761
13762 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
13763 resource leak.
13764 * util/getroot.c (grub_util_pull_device): Fix memory leak.
13765
13766 * po/POTFILES.in: Regenerated.
13767
13768 Allow purely long options
13769
13770 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
13771 (SHORT_ARG_USAGE): Likewise.
13772 (grub_arg_show_help): Compare opt with help_options.
13773 (parse_option): Receive opt as argument. If makes big simplificatons.
13774 All users updated
13775
00ce2df3
VS
137762011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
13777
13778 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
13779 Restructure to avoid warning.
13780
e77e325f
VS
137812011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
13782
13783 * util/grub-install.in: Account for possible escaped comma in device
13784 name.
13785
165099ea
VS
137862011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
13787
13788 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
13789 channel.
13790
ce4a999d
VS
137912011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
13792
13793 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
13794 allocation and zero-setting.
13795 (grub_ieee1275_get_devname): Check that alias is complete.
13796
379586ad
VS
137972011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
13798
13799 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
13800 unaligned segments.
13801
9197b0ad
VS
138022011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
13803
13804 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
13805 prefix.
13806 (grub_ofdisk_open): Check and discard ieee1275 prefix.
13807 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
13808 Add ieee1275 prefix.
13809
edddb7f9
VS
138102011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
13811
13812 * docs/grub.texi (Filesystems): Update.
13813
a1a8b1b9
VS
138142011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
13815
13816 Support odc, newc and bigendian cpio formats.
13817
13818 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
13819 * grub-core/Makefile.core.def (newc): New module.
13820 (odc): Likewise.
13821 (cpio_be): Likewise.
13822 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
13823 (MAGIC): Likewise.
13824 (MAGIC2): Likewise.
13825 (head) [MODE_ODC]: Adapt for the format.
13826 (head) [MODE_NEWC]: Likewise.
13827 (head) [!MODE_*]: Write fields of interest as arrays.
13828 (MAGIC_USTAR): Removed.
13829 (read_number) [MODE_NEWC]: Change to hex.
13830 (read_number) [!MODE_*]: Parse binary arrays.
13831 (grub_cpio_find_file): Factor out the code for better structure and
13832 always use read_number.
13833 (grub_cpio_mount): Use MAGIC and MAGIC2.
13834 (grub_cpio_dir): Exit on first hook non-0 return.
13835 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
13836 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
13837 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
13838 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
13839 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
13840 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
13841 * grub-core/fs/newc.c: New file.
13842 * grub-core/fs/odc.c: Likewise.
13843 * grub-core/fs/cpio_be.c: Likewise.
13844
58eba9ee
VS
138452011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
13846
13847 Fix handling of tar numbers occupying the whole field.
13848
13849 * grub-core/fs/cpio.c (read_number): New function.
13850 (grub_cpio_find_file): Use read_number instead of strtoull.
13851
a54a0e12
VS
138522011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
13853
13854 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
13855 occupying the whole field size.
13856
a6120aca
LA
138572011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
13858
13859 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
13860
a93964ce
VS
138612011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
13862
13863 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
13864
3ea1ca46
SG
138652011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
13866
13867 * grub-core/Makefile.core.def (lzma_decompress): Add missing
13868 TARGET_IMG_LDFLAGS.
13869
b87f7ef2
VS
138702011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
13871
13872 * util/getroot.c (ESCAPED_PATH_MAX): New define.
13873 (mountinfo_entry): Increase the field size to take escaping into
13874 account.
13875 (find_root_device_from_libzfs): Add one byte to size of strings for
13876 security.
13877
62092395
VS
138782011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
13879
13880 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
13881 an assert.
13882 * util/grub-setup.c (setup): Likewise.
13883
1f0b1a77
VS
138842011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
13885
13886 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
13887 _LzmaDecodeA.
13888
8eba9997
VS
138892011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
13890
13891 * docs/grub.texi (Internationalisation): New section.
13892
dd0c91e9
VS
138932011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
13894
13895 * docs/grub.texi (Loopback booting): New section.
13896
138972011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
86717cbe
K
13898
13899 * util/grub-mkstandalone.in: Fix minor typo errors.
13900
198e150a
VS
139012011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
13902
13903 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
13904
13905 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
13906 net/icmp.c and net/icmp6.c.
13907 (http): New module.
13908 (priority_queue): Likewise.
13909 * grub-core/io/bufio.c: Rewritten.
13910 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
13911 TYPE_WITH_CONFIGFILE_OPTION.
13912 (legacy_commands): Add bootp and dhcp.
13913 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
13914 (grub_legacy_parse): Likewise.
13915 * grub-core/lib/priority_queue.c: New file.
13916 * grub-core/net/arp.c: Add missing license header.
13917 (arp_find_entry): Removed.
13918 (arp_find_entry): Likewise.
13919 (grub_net_arp_resolve): Rename to ...
13920 (grub_net_arp_send_request): ...this.
13921 (grub_net_arp_receive): New card argument.
13922 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
13923 Set router and DNS server.
13924 (grub_net_configure_by_dhcp_ack): Handle routing information.
13925 (grub_cmd_bootp): Set checksum.
13926 (grub_bootp_init): Remove net_dhcp.
13927 * grub-core/net/dns.c: New file.
13928 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
13929 completion.
13930 (get_card_packet): Handle allocation.
13931 (grub_efinet_findcards): Set mtu.
13932 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
13933 (get_card_packet): Handle allocation.
13934 (emucard): Set mtu.
13935 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
13936 (GRUB_MOD_INIT): Set mtu.
13937 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
13938 mtu.
13939 (get_card_packet): Handle allocation.
13940 (grub_ofnet_findcards): Set mtu.
13941 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
13942 assert.
13943 (grub_net_recv_ethernet_packet): Handle IPv6.
13944 * grub-core/net/http.c: New file.
13945 * grub-core/net/icmp.c: Likewise.
13946 * grub-core/net/icmp6.c: Likewise.
13947 * grub-core/net/ip.c (ip6addr): New type.
13948 (ip6hdr): Likewise.
13949 (reassemble): Likewise.
13950 (cmp): New function.
13951 (reassembles): New variable.
13952 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
13953 (id): New variable.
13954 (send_fragmented): New function.
13955 (grub_net_send_ip_packet): Rename to ...
13956 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
13957 Handle non-UDP.
13958 (grub_net_recv_ip_packets): Rename to ...
13959 (handle_dgram): ... this. Check checksum. Handle non-UDP.
13960 (free_rsm): New function.
13961 (free_old_fragments): Likewise.
13962 (grub_net_recv_ip4_packets): New function.
13963 (grub_net_send_ip6_packet): Likewise.
13964 (grub_net_send_ip_packet): Likewise.
13965 (grub_net_recv_ip6_packets): Likewise.
13966 (grub_net_recv_ip_packets): Likewise.
13967 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
13968 (LINK_LAYER_CACHE_SIZE): New const.
13969 (link_layer_find_entry): New function.
13970 (grub_net_link_layer_add_address): Likewise.
13971 (grub_net_link_layer_resolve_check): Likewise.
13972 (grub_net_link_layer_resolve): Likewise.
13973 (grub_net_ipv6_get_slaac): Likewise.
13974 (grub_net_ipv6_get_link_local): Likewise.
13975 (grub_cmd_ipv6_autoconf): Likewise.
13976 (parse_ip): Handle one number representation.
13977 (parse_ip6): New functoion.
13978 (match_net): Handle IPv6.
13979 (grub_net_resolve_address): Handle IPv6 and DNS.
13980 (grub_net_resolve_net_address): Handle IPv6.
13981 (route_cmp): New function.
13982 (grub_net_route_address): Find best route.
13983 (grub_net_addr_to_str): Handle IPv6.
13984 (grub_net_addr_cmp): New function.
13985 (grub_net_add_addr): Register local route.
13986 (print_net_address): Handle net address.
13987 (grub_net_poll_cards): Retransmit TCP.
13988 (grub_net_poll_cards_idle_real): Likewise.
13989 (have_ahead): New function.
13990 (grub_net_seek_real): Use underlying seek.
13991 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
13992 * grub-core/net/tcp.c: New file.
13993 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
13994 (cmp): New function.
13995 (ack): Likewise.
13996 (tftp_receive): Handle unordered input.
13997 (destroy_pq): New function.
13998 (tftp_close): Close pq.
13999 * grub-core/net/udp.c: Put missing license header.
14000 (grub_net_udp_socket): New function.
14001 (udp_socket_register): Likewise.
14002 (grub_net_udp_close): Likewise.
14003 (grub_net_recv_udp_packet): Check checksum.
14004 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
14005 * include/grub/misc.h (grub_memchr): New function.
14006 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
14007 (grub_net_card_driver): Return buf in recv.
14008 (grub_net_slaac_mac_list): New struct.
14009 (grub_network_level_protocol_id): Add ipv6.
14010 (grub_net_network_level_addr): Likewise.
14011 (grub_net_network_level_net_addr): Likewise.
14012 (grub_net_app_protocol): Add seek.
14013 (grub_net_socket): Removed.
14014 (grub_net_sockets): Likewise.
14015 (grub_net_socket_register): Likewise.
14016 (grub_net_socket_unregister): Likewise.
14017 (FOR_NET_SOCKETS): Likewise.
14018 (grub_net_add_addr): Add const.
14019 (GRUB_NET_BOOTP_*): New enum.
14020 (grub_net_addr_cmp): New proto.
14021 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
14022 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
14023 (grub_net_hwaddr_to_str): NEw proto.
14024 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
14025 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
14026 (grub_dns_init): New proto.
14027 (grub_dns_fini): Likewise.
14028 (grub_net_tcp_retransmit): Likewise.
14029 (grub_net_link_layer_add_address): Likewise.
14030 (grub_net_link_layer_resolve_check): Likewise.
14031 (grub_net_link_layer_resolve): Likewise.
14032 (grub_net_dns_lookup): Likewise.
14033 (grub_net_add_dns_server): Likewise.
14034 (grub_net_remove_dns_server): Likewise.
14035 (GRUB_NET_TRIES): New const.
14036 (GRUB_NET_INTERVAL): Likewise.
14037 * include/grub/net/arp.h: Mostly rewritten.
14038 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
14039 * include/grub/net/ip.h: Mostly rewritten.
14040 * include/grub/net/netbuff.h: Indent.
14041 * include/grub/net/tcp.h: New file.
14042 * include/grub/net/udp.h: Mostly rewritten.
14043 * include/grub/priority_queue.h: New file.
14044 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
14045 (grub_swap_bytes64_compile_time): Likewise.
14046 (grub_cpu_to_be16_compile_time): Likewise.
14047 (grub_cpu_to_be32_compile_time): Likewise.
14048 (grub_cpu_to_be64_compile_time): Likewise.
14049 (grub_be_to_cpu64_compile_time): Likewise.
14050
215c1800
VS
140512011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
14052
14053 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
14054 UINT_TO_PTR with cast.
14055
c17e546c
VS
140562011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14057
14058 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
14059 don't use them.
14060
ff6b18b6
VS
140612011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14062
14063 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
14064 already there.
14065
70ffcc93
VS
140662011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14067
14068 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
14069 confusing ipxe.
14070
e5f4d260
VS
140712011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14072
14073 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
14074 Add missing const attribute.
14075 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
14076 Likewise.
14077 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
14078 Likewise.
14079
8e54b4b7
VS
140802011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14081
14082 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
14083 misaligned access.
14084 (serpent_setkey): Likewise.
14085 (serpent_encrypt_internal): Likewise.
14086 (serpent_decrypt_internal): Likewise.
14087 (serpent_encrypt): Don't put an alignment-increasing cast.
14088 (serpent_decrypt): Likewise.
14089 (serpent_test): Likewise.
14090
813c0a2b
VS
140912011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14092
14093 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
14094
f2b60fbd
VS
140952011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14096
14097 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
14098
14099 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
14100 grub_addr_t casts.
14101 (PTR_TO_UINT64): Likewise.
14102 (PTR_TO_UINT32): Likewise.
14103
5ef5c511
VS
141042011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14105
14106 * util/grub-mkimage.c (generate_image): Decrease the higher limit
14107 because of stack.
14108 * util/grub-setup.c (setup): Don't add redundancy past the higher load
14109 limit.
14110
c476e6df
VS
141112011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14112
14113 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
14114 text_width > available width a bit more gracefully.
14115
384ad7cc
VS
141162011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14117
14118 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
14119 current address calculation.
14120
96f8caf8
VS
141212011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14122
14123 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
14124 stack.
14125 (encode_block): Likewise.
14126
276b7a8b
VS
141272011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14128
14129 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
14130 certainety.
14131
e3fd394a
VS
141322011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14133
14134 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
14135 non-RS part to avoid RS messing with GDT.
14136 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
14137 Increase to suit in realmode routines.
14138
141392011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14140
14141 * grub-core/kern/i386/realmode.S: Increase alignment.
14142 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
14143
ee9c2e7a
VS
141442011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14145
14146 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
14147 be deterministic.
14148 (syndroms): Compute 0 syndrom.
14149 (rs_recover): Use 0 syndrom.
14150
7a7f7cc9
VS
141512011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14152
14153 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
14154
a14b16d1
VS
141552011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14156
14157 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
14158 brackets.
14159
9f59e9fc
VS
141602011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14161
ca1b552c
VS
14162 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
14163 account.
14164 (get_top_pad): Likewise.
14165 (get_right_pad): Likewise.
14166 (get_bottom_pad): Likewise.
14167
141682011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14169
14170 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
9f59e9fc 14171
e739d698
VS
141722011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14173
14174 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
14175 attribute as the structure isn't guaranteed to be properly aligned.
14176 (grub_efi_pci_device_path): Likewise.
14177 (grub_efi_pccard_device_path): Likewise.
14178 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
14179 specify the size of `memory_type'.
14180 (grub_efi_vendor_device_path): Likewise.
14181 (grub_efi_controller_device_path): Likewise.
14182 (grub_efi_acpi_device_path): Likewise.
14183 (grub_efi_expanded_acpi_device_path): Likewise.
14184 (grub_efi_atapi_device_path): Likewise.
14185 (grub_efi_scsi_device_path): Likewise.
14186 (grub_efi_fibre_channel_device_path): Likewise.
14187 (grub_efi_1394_device_path): Likewise.
14188 (grub_efi_usb_device_path): Likewise.
14189 (grub_efi_usb_class_device_path): Likewise.
14190 (grub_efi_i2o_device_path): Likewise.
14191 (grub_efi_mac_address_device_path): Likewise.
14192 (grub_efi_ipv4_device_path): Likewise.
14193 (grub_efi_ipv6_device_path): Likewise.
14194 (grub_efi_infiniband_device_path): Likewise.
14195 (grub_efi_uart_device_path): Likewise.
14196 (grub_efi_vendor_messaging_device_path): Likewise.
14197 (grub_efi_hard_drive_device_path): Likewise.
14198 (grub_efi_cdrom_device_path): Likewise.
14199 (grub_efi_vendor_media_device_path): Likewise.
14200 (grub_efi_file_path_device_path): Likewise.
14201 (grub_efi_protocol_device_path): Likewise.
14202 (grub_efi_piwg_device_path): Likewise.
14203 (grub_efi_bios_device_path): Likewise.
14204
cb8f88ea
VS
142052011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14206
14207 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
14208 (grub_ucs4_to_utf8_alloc): Likewise.
14209 (grub_ucs4_to_utf8): Likewise.
14210 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
14211 (grub_ucs4_to_utf8_alloc): Likewise.
14212
309e5352
VS
142132011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14214
14215 AFFS never uses unicode.
14216
14217 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
14218 (grub_latin1_to_utf8): New inline function.
14219 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
14220
e7987e1b
VS
142212011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14222
14223 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
14224 overflow.
14225
efc2616e
VS
142262011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14227
14228 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
14229 (grub_squash_dirent_header): Likewise.
14230 (read_chunk): Don't double swap.
14231 (grub_squash_iterate_dir): Fix swap sizes.
14232
3c349f5a
VS
142332011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14234
14235 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
14236
b453412d
VS
142372011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14238
14239 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
14240 (grub_hfs_iterate_dir): Likewise.
14241
12e9d4d1
VS
142422011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14243
14244 Fix video on platforms where unaligned access is forbidden.
14245 Make several optimisations while on it.
14246
14247 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
14248 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
14249 (grub_video_fbblit_replace_32bit_1bit): Likewise.
14250 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
14251 Disable.
14252 (grub_video_fbblit_replace_16bit_1bit):
14253 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
14254 (grub_video_fbblit_replace_8bit_1bit): Likewise.
14255 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
14256 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
14257 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
14258 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
14259 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
14260 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
14261 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
14262 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
14263 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
14264 (grub_video_fbblit_replace_index_RGB888): Likewise.
14265 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
14266 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
14267 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
14268 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
14269 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
14270 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
14271 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
14272 Disable.
14273 (grub_video_fbblit_blend_XXX565_1bit):
14274 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
14275 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
14276 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
14277 void *.
14278 * grub-core/video/fb/video_fb.c (common_blitter)
14279 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
14280 (grub_video_fb_create_render_target_from_pointer)
14281 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
14282 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
14283 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
14284 definition.
14285 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
14286
ace96609
VS
142872011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14288
14289 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
14290 HH22 and HM10 relocations.
14291
fd261d73
VS
142922011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14293
14294 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
14295
e59b7857
VS
142962011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14297
14298 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
14299 allocation succeeded.
14300
9b4baaa4
VS
143012011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14302
14303 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
14304 argument a u8 pointer. All users updated.
14305 Handle unaligned buffers.
14306
dc713193
VS
143072011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14308
14309 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
14310 add_part to workaround compiler bug.
14311
30dd48c2
VS
143122011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14313
14314 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
14315
0c6087a8
VS
143162011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14317
14318 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
14319 Reserve alignment invariants.
14320 (grub_multiboot_load): Likewise.
14321 (retrieve_video_parameters): Likewise.
14322 (grub_multiboot_make_mbi): Likewise.
14323
c2e77777
VS
143242011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14325
14326 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
14327 incorrect pointer.
14328
b70b6d11
VS
143292011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14330
14331 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
14332 (grub_pata_pio_write): Likewise.
14333
02a2bf83
VS
143342011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14335
14336 Add noreturn attributes and remove unreachable code.
14337
14338 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
14339 code.
14340 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
14341 code. Mark as noreturn.
14342 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
14343 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
14344 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
14345 unreachable code.
14346 * grub-core/kern/main.c (grub_main): Mark as noreturn.
14347 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
14348 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
14349 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
14350 * include/grub/kernel.h (grub_main): Mark as noreturn.
14351 * include/grub/reader.h (grub_rescue_run): Likewise.
14352
2019d09e
VS
143532011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14354
14355 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
14356 redundant declaration.
14357
d1c501ee
VS
143582011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14359
14360 * include/grub/net.h (grub_net_network_level_interfaces): Remove
14361 redundant declaration.
14362 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
14363
61664420
VS
143642011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14365
14366 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
14367 to ensure alignment.
14368 (grub_hdparm_print_identify): Make argument uint16 * to ensure
14369 alignment. Ensure tmp alignment.
14370 (grub_cmd_hdparm): Ensure buf alignment.
14371 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
14372 to ensure alignment.
14373 (grub_ata_dumpinfo): Ensure text alignment.
14374 (grub_atapi_identify): Preserve alignment invariant.
14375 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
14376
0d51ee20
VS
143772011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14378
14379 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
14380 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
14381 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
14382 * include/grub/misc.h (grub_reboot)
14383 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
14384 (grub_halt) [__mips__]: Likewise.
14385
753ef8c1
VS
143862011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14387
14388 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
14389 Remove redundant declaration.
14390 (grub_mmap_get_post64): Likewise.
14391 (grub_mmap_get_upper): Likewise.
14392 (grub_mmap_get_lower): Likewise.
14393
85c85365
VS
143942011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14395
14396 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
14397 uint32_t * to ensure alignment.
14398 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
14399
a23f2cc4
VS
144002011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14401
93018f64
VS
14402 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
14403 uint16_t * to ensure alignment.
14404 (sun_pc_partition_map_iterate): Make `block' a union to ensure
14405 alignment.
14406
144072011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14408
14409 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
a23f2cc4
VS
14410 to ensure alignment.
14411 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
14412
58acccd6
VS
144132011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14414
14415 * grub-core/fs/ntfs.c (u16at): Make into inline function.
14416 Handle unaligned pointers.
14417 (u32at): Likewise.
14418 (u64at): Likewise.
14419 (fixup): Use byte access instead of v16at.
14420 (find_attr): Fix imporper usage of v32at.
14421 (read_data): Likewise.
14422 (list_file): Handle byte-swapping and unaligned strings.
14423 (grub_ntfs_label): Likewise.
14424
9b05cad7
VS
144252011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14426
14427 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
14428 as it's not necessarily aligned.
14429
b3950b84
VS
144302011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14431
14432 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
14433 redundant declaration.
14434 (grub_serial_init): Likewise.
14435 (grub_terminfo_init): Likewise.
14436
fcd232b7
VS
144372011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14438
14439 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
14440 function.
14441 (ZAP_HASH_IDX): Likewise.
14442 (ZAP_LEAF_HASH_SHIFT): Likewise.
14443 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
14444 (LEAF_HASH): Likewise.
14445 (ZAP_LEAF_NUMCHUNKS): Likewise.
14446 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
14447 alignment invariants. Return pointer. All users updated.
14448 (ZAP_LEAF_ENTRY): Make into inline function.
14449 (NBBY): Removed.
14450 (xor): LIkewise.
14451 (xor_out): Use grub_crypto_xor.
14452 (dnode_get_path): Use grub_get_unaligned.
14453 (nvlist_find_value): Likewise.
14454 (grub_zfs_nvlist_lookup_uint64): Likewise.
14455 (grub_zfs_nvlist_lookup_string): Likewise.
14456 (get_nvlist_size): Likewise.
14457 (grub_zfs_open): Likewise.
14458 (fill_fs_info): Likewise.
14459 (grub_zfs_dir): Likewise.
14460 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
14461 alignment invariants.
14462 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
14463 necessarily aligned.
14464
f138623a
VS
144652011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14466
14467 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
14468
564840dc
VS
144692011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14470
14471 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
14472 arithmetic to conserve alignment invariants.
14473
9b40df20
VS
144742011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14475
14476 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
14477 redundant declaration.
14478 (grub_efiemu_mm_obtain_request): Likewise.
14479 (grub_efiemu_prepare): Likewise.
14480
d1c930f9
VS
144812011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14482
14483 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
14484 to match types.
14485
4c5f3056
VS
144862011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14487
14488 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
14489 case of aunaligned recptr.
14490 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
14491 alignment.
14492 (grub_hfsplus_btree_search): Handle unaligned index.
14493
728cba91
VS
144942011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14495
14496 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
14497 to get freetag and skip.
14498
eb561f31
VS
144992011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14500
14501 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
14502 array.
14503 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
14504 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
14505
20993fbb
VS
145062011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14507
14508 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
14509 name for checksum and fix allocation algorithm.
14510
1f313b94
VS
145112011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14512
14513 * include/grub/types.h (grub_properly_aligned_t): New type.
14514 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
14515 (grub_get_unaligned16): Add explicit casts.
14516 (grub_get_unaligned32): Likewise.
14517 (grub_get_unaligned64): Likewise.
14518 (grub_set_unaligned16): New function.
14519 (grub_set_unaligned32): Likewise.
14520
47ae27ec
VS
145212011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14522
14523 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
14524
78c2cd1c
VS
145252011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14526
14527 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
14528 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
14529 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
14530
53072f9b
VS
145312011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14532
14533 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
14534 conditionals.
14535
055dc239
VS
145362011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14537
14538 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
14539 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
14540
496bd074
VS
145412011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14542
14543 Unify and improve RAID and crypto xor.
14544
14545 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
14546 changed to grub_crypto_xor
14547 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
14548 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
14549 Use bigger types when possible.
14550
ef6e4335
VS
145512011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14552
14553 * grub-core/disk/raid.c (scan_devices): Fix condition.
14554
5d048bf2
VS
145552011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14556
14557 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
14558 Make name a const ptr.
14559
ee533335
VS
145602011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14561
14562 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
14563 first argument a const pointer.
14564 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
14565 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
14566 proto.
14567 (grub_children_iterate): Likewise.
14568 (grub_machine_mmap_iterate): Remove redundant declaration.
14569
cc8f3668
VS
145702011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14571
14572 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
14573 (grub_cmd_acpi) [!x86]: Disable EBDA.
14574
c5fc563a
VS
145752011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14576
14577 Enable UTF8 in gnulib regexp.
14578
14579 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
14580 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
14581 (isupper): Use grub_isupper.
14582 (isascii): New inline function.
14583 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
14584 * grub-core/lib/posix_wrap/wctype.h: Likewise.
14585 * grub-core/normal/charset.c (grub_utf8_process): New function.
14586 (grub_utf8_to_utf16): Use grub_utf8_process.
14587 (grub_encode_utf8_character): New function.
14588 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
14589 * include/grub/charset.h (grub_utf8_process): New declaration.
14590 (grub_encode_utf8_character): Likewise.
14591 * include/grub/misc.h (grub_islower): New inline function.
14592 (grub_isupper): Likewise.
14593 (grub_strchrsub): Moved down to fix the definitions.
14594
0af2346f
VS
145952011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14596
14597 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
14598 specification.
14599
74dbd244
VS
146002011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14601
14602 * include/grub/loader.h (grub_loader_register_preboot_hook):
14603 Use struct preboot * and not void * for handle. All users updated.
14604 (grub_loader_unregister_preboot_hook): Likewise.
14605
1bc8f60d
VS
146062011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
14607
14608 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
14609 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
14610 UTF-16-BE. All users updated.
14611 (grub_hfsplus_cmp_catkey): Fix unicode handling.
14612 (grub_hfsplus_iterate_dir): Likewise.
14613 (grub_hfsplus_label): Likewise.
14614
48d6e456
VS
146152011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
14616
14617 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
14618
bf3a3857
VS
146192011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
14620
14621 Add missing const qualifiers.
14622
14623 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
14624 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
14625 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
14626 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
14627 (grub_lvm_check_flag): Likewise.
14628 * grub-core/efiemu/i386/coredetect.c
14629 (grub_efiemu_get_default_core_name): Likewise
14630 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
14631 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
14632 * grub-core/fs/ntfs.c (fixup): Likewise.
14633 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
14634 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
14635 (fzap_lookup): Likewise.
14636 (zap_lookup): Likewise.
14637 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
14638 * grub-core/lib/legacy_parse.c (check_option): Likewise.
14639 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
14640 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
14641 (grub_freebsd_add_meta_module): Likewise.
14642 (grub_cmd_freebsd_module): Likewise.
14643 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
14644 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
14645 (grub_xnu_writetree_get_size): Likewise.
14646 (grub_xnu_writetree_toheap_real): Likewise.
14647 (grub_xnu_find_key): Likewise.
14648 (grub_xnu_create_key): Likewise.
14649 (grub_xnu_create_value): Likewise.
14650 (grub_xnu_register_memory): Likewise.
14651 (grub_xnu_check_os_bundle_required): Likewise.
14652 (grub_xnu_scan_dir_for_kexts): Likewise.
14653 (grub_xnu_load_kext_from_dir): Likewise.
14654 * grub-core/normal/color.c (color_list): Likewise.
14655 * grub-core/normal/completion.c (current_word): Likewise.
14656 * grub-core/normal/menu_entry.c (insert_string): Likewise.
14657 * grub-core/term/serial.c (grub_serial_find): Likewise.
14658 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
14659 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
14660 Likewise.
14661 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
14662 (grub_freebsd_add_meta_module): Likewise.
14663 * include/grub/lib/arg.h (grub_arg_option): Likewise.
14664 * include/grub/net.h (grub_net_card_driver): Likewise.
14665 (grub_net_card): Likewise.
14666 (grub_net_app_protocol): Likewise.
14667 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
14668 * include/grub/serial.h (grub_serial_find): Likewise.
14669 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
14670 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
14671 (grub_xnu_create_value): Likewise.
14672 (grub_xnu_find_key): Likewise.
14673 (grub_xnu_scan_dir_for_kexts): Likewise.
14674 (grub_xnu_load_kext_from_dir): Likewise.
14675
14676 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
14677 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
14678 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
14679 Moved from here ...
14680 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
14681
112b4837
CW
146822011-11-28 Colin Watson <cjwatson@ubuntu.com>
14683
14684 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
14685
49e891ac
VS
146862011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
14687
14688 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
14689 (read_device): Fix size calculation.
14690
fd258e5c
RM
146912011-11-25 Robert Millan <rmh@gnu.org>
14692
14693 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
14694 (find_root_device_from_libzfs): Add zpool output parser to be used
14695 as fallback when libzfs isn't available.
14696
78845dc2
SG
146972011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
14698
14699 * po/Makefile.in.in: Add missing escape-continuation.
14700
adac5211
VS
147012011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
14702
14703 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
14704
10b64f1c
VS
147052011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
14706
14707 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
14708
bb416954
VS
147092011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
14710
14711 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
14712
bdfe9eeb
VS
147132011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
14714
14715 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
14716
581ffa8a
VS
147172011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14718
14719 * grub-core/lib/adler32.c: Add missing license specification.
14720 * grub-core/lib/crc64.c: Likewise.
14721 * grub-core/loader/i386/pc/plan9.c: Likewise.
14722 * grub-core/partmap/plan.c: Likewise.
14723
2536cf64
LK
147242011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
14725
14726 Add facility to debug GRUB with gdb under qemu.
14727
14728 * grub-core/gdb_grub.in: New file.
14729 * grub-core/gmodule.pl.in: Likewise.
14730 * grub-core/Makefile.core.def (gmodule.pl): New script.
14731 (gdb_grub): Likewise.
14732
bc108a4a
VS
147332011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14734
14735 * util/grub-mount.c (argp_parser): Accept relative pathes.
14736 * util/grub-fstest.c (argp_parser): Likewise.
14737
111c1778
VS
147382011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14739
14740 Plan9 support.
14741
14742 * Makefile.util.def (libgrubmods): Add
14743 grub-core/partmap/plan.c.
14744 * docs/grub.texi: Notice Plan9 support.
14745 * grub-core/Makefile.core.def (plan9): New module.
14746 (part_plan): Likewise.
14747 * grub-core/loader/i386/pc/plan9.c: New file.
14748 * grub-core/partmap/plan.c: Likewise.
14749 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
14750 define.
14751 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
14752 * include/grub/mm.h (grub_extend_alloc): New inline function.
14753
c30be3b6
VS
147542011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14755
14756 Make Reed-Solomon faster by using power of generator representation of
14757 GF(256)*.
14758
14759 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
14760 (gf_double_t): Likewise.
14761 (gf_invert): Removed.
14762 (gf_powx): New array.
14763 (gf_powx_inv): Likewise.
14764 (scratch): Move higher.
14765 (gf_reduce): Removed.
14766 (gf_mul): Use powx.
14767 (gf_invert): Likewise.
14768 (init_inverts): Replaced with ...
14769 (init_powx): ...this. All users updated.
14770 (pol_evaluate): Replace multiplications with additions.
14771 (rs_encode): Likewise.
14772 (gauss_eliminate): Call gf_invert.
14773 (grub_reed_solomon_add_redundancy): Call init_powx.
14774 (grub_reed_solomon_recover): Call init_powx unconditionally.
14775
fa5aeffc
VS
147762011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
14777
14778 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
14779
a346b81c
VS
147802011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
14781
14782 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
14783 disk->partiton for safety.
14784
d89ee414
VS
147852011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
14786
14787 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
14788 Fix a memory leak.
14789 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
14790
91ee7b6d
VS
147912011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
14792
14793 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
14794
91e5a33d
VS
147952011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
14796
14797 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
14798
9edd7be2
VS
147992011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
14800
14801 Fix spaces handling in proc/self/mountinfo.
14802
14803 * util/getroot.c (unescape): New function.
14804 (grub_find_root_device_from_mountinfo): Use unescape.
14805
ba102053
VS
148062011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
14807
14808 Support ZFS embedding.
14809
14810 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
14811 (grub_zfs_fs): Register grub_zfs_embed.
14812
aa94b870
VS
148132011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
14814
14815 Fix MIPS compilation.
14816
14817 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
14818 * include/grub/offsets.h: Rename decompressor fields from
14819 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
14820 * util/grub-mkimage.c (image_targets): Use new names.
14821
5fbdac14
VS
148222011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
14823
14824 Defer multiboot device parsing until we're in compressed part.
14825
14826 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
14827 bsd_part. setdevice has fallen into disuse.
14828 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
14829 (bsd_part): Likewise.
14830 (boot_dev): New variable.
14831 (multiboot_trampoline): Don't parse multiboot device.
14832 Pass multiboot device in %edx.
14833 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
14834 grub_boot_device.
14835 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
14836 Likewise.
14837 * grub-core/kern/i386/pc/startup.S: Save edx.
14838 (grub_boot_drive): Removed.
14839 (grub_install_dos_part): Likewise.
14840 (grub_install_bsd_part): Likewise.
14841 (grub_boot_device): New variable.
14842 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
14843 (grub_install_bsd_part): Likewise.
14844 (grub_boot_drive): Likewise.
14845 (grub_boot_device): New variable.
14846 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
14847 Removed.
14848 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
14849 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
14850 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
14851 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
14852 * util/grub-install.in: Remove redundant condition.
14853
691cbb58
VS
148542011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
14855
14856 Fix bug introduced by previous commit.
14857
14858 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
14859
60240b8b
VS
148602011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
14861
14862 Use decompressors framework on i386-pc. It increases core size
14863 by 46 bytes but improves compatibility and maintainability.
14864
14865 * grub-core/Makefile.core.def (lzma_decompress): New image.
14866 (kernel): Add i386_pc_ldflags.
14867 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
14868 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
14869 to real_to_prot, prot_to_real and device info.
14870 * include/grub/offsets.h: Renamed decompressor offsets.
14871 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
14872 (image_target_desc): Remove raw_size and rename decompressor fields.
14873 (compress_kernel): Handle lzma.
14874 (generate_image): Handle decompressors on i386-pc.
14875
e9d3421c
VS
148762011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
14877
14878 * configure.ac: Add -fno-asynchronous-unwind-tables.
14879
2b23074a
VS
148802011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
14881
14882 Move assembly code to C by using intwrap. It increases core size
14883 by 88 bytes but improves compatibility and maintainability.
14884
14885 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
14886 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
14887 ... here. Translated to C.
14888 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
14889 * grub-core/term/i386/pc/console.c (grub_console_getkey):
14890 ... here. Translated to C.
14891 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
14892 * grub-core/term/i386/pc/console.c (grub_console_getxy):
14893 ... here. Translated to C.
14894 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
14895 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
14896 ... here. Translated to C.
14897 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
14898 * grub-core/term/i386/pc/console.c (grub_console_cls):
14899 ... here. Translated to C.
14900 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
14901 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
14902 ... here. Translated to C.
14903 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
14904 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
14905 Translated to C.
14906 * grub-core/term/i386/pc/console.c (int10_9): New function.
14907 (grub_console_putchar): Likewise.
14908 * include/grub/i386/pc/console.h: Removed the not anymore shared
14909 functions.
14910
678f4b67
VS
149112011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
14912
14913 Move grub_chainloader_real_boot out of the kernel.
14914
14915 * grub-core/Makefile.am: Remove machine/loader.h.
14916 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
14917 Removed.
14918 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
14919 variable.
14920 (grub_relocator16_keep_a20_enabled): Likewise.
14921 (grub_relocator16_boot): Fill new variables.
14922 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
14923 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
14924 relocator.
14925 (grub_chainloader_unload): Likewise.
14926 (grub_chainloader_cmd): Likewise.
14927 * include/grub/i386/pc/loader.h: Removed.
14928 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
14929 and esi. All initialisers updated.
14930
4626edf6
VS
149312011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
149322011-11-12 Colin Watson <cjwatson@ubuntu.com>
14933
14934 * Makefile.util.def (grub-mount): New util.
14935 * .bzrignore: Add grub-mount.
14936 * configure.ac: Check for fuse and enable grub-mount if available.
14937 * docs/man/grub-mount.h2m: New file.
14938 * util/grub-mount.c: Likewise.
14939
10f0117b
VS
149402011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
14941
14942 * grub-core/commands/efi/fixvideo.c: Gettextize.
14943 * grub-core/commands/hashsum.c: Likewise.
14944 * grub-core/commands/i386/cmostest.c: Likewise.
14945 * grub-core/commands/i386/pc/drivemap.c: Likewise.
14946 * grub-core/commands/i386/pc/lsapm.c: Likewise.
14947 * grub-core/commands/i386/pc/sendkey.c: Likewise.
14948 * grub-core/commands/lsmmap.c: Likewise.
14949 * grub-core/commands/menuentry.c: Likewise.
14950 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
14951 * grub-core/commands/setpci.c: Likewise.
14952 * grub-core/loader/i386/bsd.c: Likewise.
14953 * grub-core/loader/i386/linux.c: Likewise.
14954 * util/getroot.c: Likewise.
14955 * util/grub-editenv.c: Likewise.
14956 * util/grub-fstest.c: Likewise.
14957 * util/grub-mkfont.c: Likewise.
14958 * util/grub-mkimage.c: Likewise.
14959 * util/grub-mkpasswd-pbkdf2.c: Likewise.
14960 * util/grub-pe2elf.c: Likewise.
14961 * util/grub-probe.c: Likewise.
14962 * util/grub-setup.c: Likewise.
14963 * util/ieee1275/ofpath.c: Likewise.
14964 * util/misc.c: Likewise.
14965 * util/raid.c: Likewise.
14966
566f779b
RM
149672011-11-11 Robert Millan <rmh@gnu.org>
14968
14969 * util/getroot.c (grub_util_get_geom_abstraction): Remove
14970 __attribute__((unused)) from `os_dev', which *is* being used.
14971
b50787de
VS
149722011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
14973
14974 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
14975 forgotten define.
14976 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
14977 GRUB_IA64_DL_GOT_ALIGN.
14978 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
14979 GRUB_IA64_DL_TRAMP_ALIGN.
14980
119d11c8
VS
149812011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
14982
14983 Replace grub_fatal with normal errors in i386 linux loader.
14984
14985 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
14986 (allocate_pages): Check find_efi_mmap_size return value.
14987 (grub_e820_add_region): Return error.
14988 (grub_linux_boot): Check mmap return value.
14989
6e0632e2
VS
149902011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
14991
14992 * grub-core/commands/acpihalt.c: Gettextized.
14993 * grub-core/commands/cacheinfo.c: Likewise.
14994 * grub-core/commands/cmp.c: Likewise.
14995 * grub-core/commands/efi/loadbios.c: Likewise.
14996 * grub-core/commands/gptsync.c: Likewise.
14997 * grub-core/commands/ieee1275/suspend.c: Likewise.
14998 * grub-core/commands/legacycfg.c: Likewise.
14999 * grub-core/commands/memrw.c: Likewise.
15000 * grub-core/commands/minicmd.c: Likewise.
15001 * grub-core/commands/parttool.c: Likewise.
15002 * grub-core/commands/time.c: Likewise.
15003 * grub-core/commands/videoinfo.c: Likewise.
15004 * grub-core/disk/geli.c: Likewise.
15005 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
15006 * grub-core/disk/luks.c: Likewise.
15007 * grub-core/disk/lvm.c: Likewise.
15008 * grub-core/font/font_cmd.c: Likewise.
15009 * grub-core/fs/zfs/zfscrypt.c: Likewise.
15010 * grub-core/fs/zfs/zfsinfo.c: Likewise.
15011 * grub-core/gfxmenu/view.c: Likewise.
15012 * grub-core/kern/emu/hostdisk.c: Likewise.
15013 * grub-core/kern/emu/main.c: Likewise.
15014 * grub-core/kern/emu/misc.c: Likewise.
15015 * grub-core/kern/emu/mm.c: Likewise.
15016 * grub-core/kern/mips/arc/init.c: Likewise.
15017 * grub-core/kern/mips/loongson/init.c: Likewise.
15018 * grub-core/kern/partition.c: Likewise.
15019 * grub-core/lib/i386/halt.c: Likewise.
15020 * grub-core/lib/mips/arc/reboot.c: Likewise.
15021 * grub-core/lib/mips/loongson/reboot.c: Likewise.
15022 * grub-core/loader/i386/pc/chainloader.c: Likewise.
15023 * grub-core/loader/i386/xnu.c: Likewise.
15024 * grub-core/loader/multiboot.c: Likewise.
15025 * grub-core/net/bootp.c: Likewise.
15026 * grub-core/net/net.c: Likewise.
15027 * grub-core/normal/term.c: Likewise.
15028 * grub-core/partmap/bsdlabel.c: Likewise.
15029 * grub-core/parttool/msdospart.c: Likewise.
15030 * grub-core/term/gfxterm.c: Likewise.
15031 * grub-core/term/terminfo.c: Likewise.
15032 * grub-core/video/i386/pc/vbe.c: Likewise.
15033 * util/grub-menulst2cfg.c: Likewise.
15034 * util/grub-mkdevicemap.c: Likewise.
15035 * util/grub-mklayout.c: Likewise.
15036 * util/grub-mkrelpath.c: Likewise.
15037 * util/grub-script-check.c: Likewise.
15038 * util/ieee1275/grub-ofpathname.c: Likewise.
15039 * util/resolve.c: Likewise.
15040
073aa7a9
VS
150412011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15042
15043 Support %1$d syntax.
15044
15045 * tests/printf_unit_test.c: New file.
15046 * Makefile.util.def (printf_test): New test.
15047 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
15048
c76b5417
VS
150492011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15050
15051 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
15052 fix.
15053
df067ad1
VS
150542011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15055
15056 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
15057 dprintf.
15058 * grub-core/font/font.c (grub_font_load): Likewise.
15059
5b289bc5
VS
150602011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15061
15062 * util/grub-macho2img.c: Add comment concerning gettext.
15063 * grub-core/lib/legacy_parse.c: Likewise.
15064
c1860f87
VS
150652011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15066
15067 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
15068 (grub_xvasprintf): Likewise.
15069
d35d0d37
VS
150702011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15071
15072 Add const keyword to grub_env_get and gettextize week days.
15073
15074 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
15075 (grub_read_hook_datetime): Return const char *.
15076 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
15077 updated.
15078 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
15079 Mark for gettext.
15080 (grub_get_weekday_name): Return const char *. Call gettext.
15081 * grub-core/script/argv.c (grub_script_argv_append): Receive const
15082 char * and len as the argument. All users updated.
15083 (grub_script_argv_split_append): Receive const char *.
15084 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
15085 * include/grub/env.h (grub_env_get): Likewise.
15086 (grub_env_read_hook_t): Return const char *.
15087 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
15088 (grub_script_argv_split_append): Likewise.
15089
9aed8a71
VS
150902011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15091
15092 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
15093
067fdf00
VS
150942011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15095
15096 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
15097 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
15098
a8bd9d39
VS
150992011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15100
15101 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
15102 Fix prototype.
15103
f7ce5baf
VS
151042011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15105
15106 Fix mips compilation.
15107
15108 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
15109 normal decoder.
15110 (hashes): Use in embed decoder as well (for sizes).
15111 (dec_stream_header): Fix embed decompressor logic.
15112 (dec_stream_footer): Likewise.
15113
9bb182f3
VS
151142011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15115
15116 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
15117 an error and not a fatal on unrecognised relocation types.
15118
63a9e6f6
VS
151192011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15120
15121 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
15122 Issue error rather than printf on unknown arguments.
15123
4c458569
VS
151242011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15125
15126 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
15127 Make buf a const.
15128
e2d22baf
VS
151292011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15130
15131 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
15132 Fix module name.
15133
53dc8590
VS
151342011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15135
15136 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
15137 leftover debug printf.
15138
6c189294
VS
151392011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15140
15141 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
15142
f7688369
VS
151432011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15144
15145 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
15146 A stylistic fix.
15147
11a775a3
VS
151482011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15149
15150 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
15151
33f784e8
SL
151522011-11-10 Shea Levy <slevy@tieronedesign.com>
15153
15154 Allow all modules to perform serial IO
15155
15156 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
15157 * include/grub/serial.h (grub_serial_port_configure): New inline
15158 function.
15159 (grub_serial_port_fetch): Likewise.
15160 (grub_serial_port_put): Likewise.
15161 (grub_serial_port_fini): Likewise.
15162 (grub_serial_find): New proto.
15163
f6276525
VS
151642011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
15165
15166 Put symlink at the end of the node and fix a potential
15167 memory corruption.
15168
15169 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
15170 Make symlink into an array.
15171 (set_rockridge): Set have_symlink and alloc_dirents.
15172 (grub_iso9660_read_symlink): Use new layout.
15173 (grub_iso9660_iterate_dir): Fix memory corruption.
15174 Use new layout.
15175 (grub_iso9660_dir): Set have_symlink.
15176 (grub_iso9660_open): Likewise.
15177
c3591189
VS
151782011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
15179
15180 Remove local keyword.
15181
15182 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
15183 (version_test_gt): Likewise.
15184 (version_find_latest): Likewise.
15185 (gettext_printf): Likewise.
15186 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
15187
cb544caa
VS
151882011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
15189
15190 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
15191
45bd824d
VS
151922011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
15193
15194 Fix ZFS memory and resource leaks.
15195
15196 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
15197 All users updated.
15198 Free type on exit.
15199 (fill_vdev_info): New parameter inserted. All users updated.
15200 (check_pool_label): Likewise.
15201 (scan_disk): Likewise.
15202 (scan_devices): Close non-inserted disks.
15203 (fzap_iterate): Free l.
15204 (unmount_device): Free children descripto memory.
15205
ad9a2f44
VS
152062011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
15207
15208 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
15209 argument (access out of bounds).
15210
6b68db81
VS
152112011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
15212
15213 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
15214 >= 6 drives.
15215
28840fda
VS
152162011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
15217
15218 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
15219 Fix declaration.
15220
8a5a3a5b
VS
152212011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
15222
15223 Fix several memory leaks.
15224
15225 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
15226 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
15227 (grub_cpio_dir): Likewise.
15228 * grub-core/fs/fat.c (grub_fat_label): Likewise.
15229 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
15230 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
15231 (grub_romfs_label): Likewise.
15232 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
15233 (squash_unmount): New function.
15234 (grub_squash_dir): Fix memory leak.
15235 (grub_squash_open): Likewise.
15236 (grub_squash_read): Likewise.
15237 (grub_squash_mtime): Likewise.
15238 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
15239 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
15240 * util/grub-fstest.c (fstest): Likewise.
15241
57b01250
VS
152422011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
15243
15244 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
15245 avoid accessing beyond the array.
15246
19e81ba7
VS
152472011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
15248
15249 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
15250
52b656c0
VS
152512011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
15252
15253 Several AFFS fixes.
15254
15255 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
15256 (GRUB_AFFS_FLAG_FFS): Removed.
15257 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
15258 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
15259 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
15260 (grub_fshelp_node): Make block 32-bit.
15261 Add block_cache and last_block_cache.
15262 (grub_affs_read_block): Fill and use block cache.
15263 (grub_affs_read_file): Removed.
15264 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
15265 boot block.
15266 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
15267 safety.
15268 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
15269 space.
15270 (grub_affs_close): Free block cache.
15271 (grub_affs_read): Use grub_fshelp_read_file directly.
15272
438a746a
VS
152732011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15274
15275 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
15276 with no error set.
15277
49a45021
VS
152782011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15279
15280 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
15281 used variable.
15282 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
15283 Likewise.
15284
3ae17eb8
VS
152852011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15286
15287 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
15288
15289 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
15290 byteswap when needed.
15291
27610c38
VS
152922011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15293
15294 Fix FreeBSD compilation.
15295
15296 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
15297 to avoid circular dependency.
15298 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
15299 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
15300 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
15301
4a19b601
VS
153022011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15303
15304 Fix ZFS crypto error types.
15305
15306 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
15307 (grub_gcm_decrypt): Likewise.
15308 (grub_zfs_load_key_real): Fix error code type. Handle possible error
15309 from PBKDF2.
15310
958ee221
VS
153112011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15312
15313 Illumos support.
15314
15315 * Makefile.util.def (10_illumos): New script.
15316 * configure.ac: Set COND_HOST_ILLUMOS.
15317 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
15318 Support Illumos calls.
15319 (find_partition_start) [__sun__]: Likewise.
15320 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
15321 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
15322 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
15323 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
15324 device.
15325 * util/grub-probe.c (probe) [__sun__]: Do character check.
15326 * util/grub.d/10_illumos.in: New file.
15327
cac14fb6
VS
153282011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15329
15330 Support escaped commas in hostdisk.
15331
15332 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
15333 (find_grub_drive): Use unescape_cmp.
15334 (make_device_name): Escape commas.
15335
78e08dc3
VS
153362011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15337
15338 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
15339
9f421dd1
VS
153402011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15341
15342 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
15343 variable.
15344
ed64e9e2
VS
153452011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15346
15347 Support trampoline jumps on powerpc.
15348
15349 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
15350 __ia64__ path.
15351 (grub_dl_load_segments): Set mod->sz.
15352 (grub_dl_flush_cache): Flush whole space occupied by module, not just
15353 segments.
15354 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
15355 (jump): Likewise.
15356 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
15357 function.
15358 (trampoline): New struct.
15359 (trampoline_template): New const.
15360 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
15361 * include/grub/dl.h (grub_dl): Add sz element.
15362 [__powerpc__]: Follow __ia64__.
15363 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
15364 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
15365 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
15366 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
15367
3084ede4
VS
153682011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15369
15370 ZFS crypto support.
15371
15372 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
15373 * grub-core/Makefile.core.def (zfscrypt): New module.
15374 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
15375 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
15376 it. All users updated.
15377 (grub_zfs_decrypt): New var.
15378 (grub_zfs_load_key): Likewise.
15379 (zio_checksum_functions): Add SHA256+MAC.
15380 (zio_checksum_verify): Handle incomplete comparison due to MAC.
15381 (zio_read): Handle encrypted blocks.
15382 (zap_verify): Remove incorrect check.
15383 (fzap_iterate): Handle non-standard fzap.
15384 (zap_iterate): Likewise.
15385 (zap_iterate_u64): New function.
15386 (dnode_get_fullpath): Load keys.
15387 * grub-core/fs/zfs/zfscrypt.c: New file.
15388 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
15389 (grub_crypto_ecb_encrypt): Make input const.
15390 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
15391 (grub_crypto_ecb_encrypt): Make input const.
15392 (GRUB_CIPHER_AES): New macro.
15393 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
15394 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
15395 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
15396 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
15397 prefix. All users updated.
15398 (grub_zfs_add_key): New proto.
15399 (grub_zfs_decrypt): Likewise.
15400 (grub_zfs_load_key): Likewise.
15401 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
15402 * util/grub-fstest.c (options): Add -K option.
15403 (argp_parser): Likewise.
15404
b632b404
VS
154052011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
15406
15407 Support zle compression on ZFS.
15408
15409 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
15410 (decomp_table): Add zle.
15411 * include/grub/zfs/zio.h (zio_compress): Add zle.
15412
c7ba4f69
VS
154132011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
15414
15415 Support BtrFS embedding.
15416
15417 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
15418 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
15419 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
15420 * util/grub-setup.c (setup): Use fs embedding if available.
15421 Add additional sanity check.
15422
455377d9
VS
154232011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
15424
15425 * util/grub-install.in: Fix condition for config_opt.
15426
c2fd16ca
VS
154272011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
15428
15429 Support third redundancy strip on raidz3.
15430
15431 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
15432 Return error on singularity. All users updated.
15433 (read_device): Don't stop on 3rd failure on raidz3.
15434
8622923b
VS
154352011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
15436
15437 Support case-insensitive ZFS subvolumes.
15438
15439 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
15440 All users updated.
15441 (zap_hash): Likewise.
15442 (name_cmp): New function.
15443 (zap_leaf_array_equal): New parameter case_insensitive.
15444 All users updated.
15445 (zap_leaf_lookup): Likewise.
15446 (fzap_lookup): Likewise.
15447 (zap_lookup): Likewise.
15448 (dnode_get_path): New parameter case_insensitive. Retrieve case
15449 sensitiviness of a volume. All users updated.
15450 (dnode_get_fullpath): New parameter case_insensitive.
15451 All users updated.
15452 (grub_zfs_dir): Set info.case_insensitiveness.
15453
95f2e860
VS
154542011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
15455
15456 Support second redundancy strip on raidz(2,3).
15457
15458 * grub-core/fs/zfs/zfs.c (powx): New array.
15459 (powx_inv): Likewise.
15460 (poly): New const.
15461 (xor_out): New function.
15462 (gf_mul): Likewise.
15463 (recovery): Likewise.
15464 (read_device): Use second redundancy strip.
15465
11ee4389
VS
154662011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
15467
15468 Use a power of generator representation of GF(256) multiplication group
15469 to save space time and complexity.
15470
15471 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
15472 (raid6_table2): Likewise.
15473 (powx): New array.
15474 (powx_inv): Likewise.
15475 (poly): New const.
15476 (grub_raid_block_mul): Replace with ...
15477 (grub_raid_block_mulx): ...this.
15478 (grub_raid6_init_table): Rewritten.
15479 (grub_raid6_recover): Use power of generator representation.
15480
09e2763f
VS
154812011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
15482
15483 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
15484 for the right device.
15485
8bec9a28
VS
154862011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
15487
15488 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
15489 expected by grub-mkimage and it's more clear since there is no implicit
15490 padding.
15491
dbd3a32e
VS
154922011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
15493
15494 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
15495 disk.
15496 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
15497
182c872a
PMH
154982011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
15499
15500 * util/grub-mkrescue.in: Fix handling xorriso option.
15501
1e51cabd
VS
155022011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
15503
15504 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
15505 NULL.
15506
9cc3581d 155072011-11-03 crocket <crockabiscuit@gmail.com>
15508
15509 * util/grub.d/10_linux.in: Add Slackware initrd naming.
15510
158dc1ea
VS
155112011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
15512
15513 XZ CRC64 and SHA256 support.
15514
15515 * Makefile.util.def (libgrubmods): Add crc64.c.
15516 * grub-core/Makefile.core.def (crc64): New module.
15517 * grub-core/lib/crc64.c: New file.
15518 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
15519 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
15520 Fix the type.
15521 (MAX_HASH_SIZE): New define.
15522 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
15523 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
15524 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
15525 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
15526 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
15527 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
15528 Handle non-crc32 hashes.
15529 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
15530 (dec_stream_header): Handle non-crc32 hashes.
15531 (dec_stream_footer): Likewise.
15532 (dec_block_header): Likewise.
15533 (dec_main): Likewise.
15534 (xz_dec_init): Likewise.
15535 (xz_dec_reset): Likewise.
15536 (xz_dec_end): Likewise.
15537 * util/import_gcry.py: Add CRC64 line.
15538
9d9b3d2f
VS
155392011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
15540
15541 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
15542 as well.
15543
7d0ac931
VS
155442011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
15545
15546 Make reiserfs label retrieval similar to other *_label functions.
15547
15548 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
15549 (REISERFS_MAX_LABEL_LENGTH): Removed.
15550 (REISERFS_LABEL_OFFSET): Likewise.
15551 (grub_reiserfs_label): Rewritten.
15552
155532011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
15554
15555 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
15556 field.
15557
cf5ba824
VS
155582011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
15559
15560 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
15561
17744004
VS
155622011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
15563
15564 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
15565 drive failure on both raidz and raidz2.
15566
aca5aefc
VS
155672011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
15568
15569 Fix RAIDZ(2) for >= 5 devices.
15570
15571 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
15572 asize argument. All users updated.
15573
ce8ca56e
VS
155742011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15575
15576 Fix RAIDZ(2).
15577
15578 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
15579 (fill_vdev_info_real): Set ashift.
15580 (read_device): Rewrite RAIDZ part based on reverse engineering.
15581
7c01e783
VS
155822011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
15583
15584 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
15585 don't report potentially unavialiable fields in debug output.
15586 (find_path): Fix double-free and memory leak.
15587
ce109e84
VS
155882011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
15589
15590 Read label on UFS1.
15591
15592 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
15593 (grub_ufs_fs): Always set .label.
15594
87661123
VS
155952011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
15596
15597 Use shifts in UFS.
15598
15599 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
15600 (grub_ufs_data): New field log2_blksz.
15601 (grub_ufs_read_file): Use shifts.
15602 (grub_ufs_mount): Check block size and logarithm it.
15603
46bc1dc2
VS
156042011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
15605
15606 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
15607 long symlinks.
15608
19ee2987
VS
156092011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
15610
15611 Handle symlinks and long names on tar and cpio.
15612
15613 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
15614 (ATTR_FILE): Likewise.
15615 (ATTR_DIR): Likewise.
15616 (ATTR_LNK): Likewise.
15617 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
15618 (grub_cpio_find_file): Fill mode, handle linkname field as well as
15619 L and K entries.
15620 (grub_cpio_mount): Zero-fill data.
15621 (handle_symlink): New function.
46bc1dc2
VS
15622 (grub_cpio_dir): Handle symlinks.
15623 (grub_cpio_open): Likewise.
15624 (grub_cpio_close) [MODE_USTAR]: Free linkname.
19ee2987 15625
c83a08d8
VS
156262011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
15627
15628 Fix iso9660 filename limitations and fix memory leaks.
15629
15630 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
15631 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
15632
45cdd3ea
VS
156332011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
15634
15635 Fix JFS file name length limitations.
15636
15637 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
15638 (grub_jfs_diropen): Fix maximum filename length.
15639 (grub_jfs_getent): Fix filename length.
15640 (grub_jfs_lookup_symlink): Fix size checks.
15641
94ef05c2
VS
156422011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
15643
15644 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
15645 string.
15646
785ab8c7
VS
156472011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
15648
eb0b6b45
VS
15649 Leverage BFS implementation to read AFS.
15650
15651 * Makefile.util.def (libgrubmods): Add afs.c.
15652 * grub-core/Makefile.core.def (afs): New module
15653 * grub-core/fs/afs.c: New file.
15654 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
15655
156562011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
15657
15658 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
785ab8c7 15659
c4a1628f
VS
156602011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
15661
15662 * grub-core/fs/bfs.c: Run indent.
15663
5825b379
VS
156642011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
15665
15666 BFS implementation based on the specification.
15667
15668 * grub-core/fs/bfs.c: New file.
15669 * Makefile.util.def (libgrubmods): Add bfs.c.
15670 * grub-core/Makefile.core.def (bfs): New module.
15671
42b2a706
VS
156722011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
15673
15674 * util/grub-fstest.c (cmd_cp): Clarify error message.
15675 (cmd_cmp): Likewise.
15676
61b99bfc
YB
156772011-10-30 Yves Blusseau <blusseau@zetam.org>
15678
15679 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
15680 and befs_be.
15681
faba3d16
VS
156822011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
15683
15684 Remove afs and befs because of copyright problem.
15685
15686 * grub-core/fs/afs.c: Removed.
15687 * grub-core/fs/afs_be.c: Removed.
15688 * grub-core/fs/befs.c: Removed.
15689 * grub-core/fs/befs_be.c: Removed.
15690 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
15691 * grub-core/Makefile.core.def (afs): Removed.
15692 (afs_be): Likewise.
15693 (befs): Likewise.
15694 (befs_be): Likewise.
15695
c39224b0
VS
156962011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
15697
15698 Prefer rockridge over Joliet.
15699
15700 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
15701 to ...
15702 (set_rockridge): ... here.
15703 (grub_iso9660_mount): Check rockridge on the primary label when
15704 discovering. Ignore Joliet if Rockridge is present.
15705
e551115a
VS
157062011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
15707
15708 Use shifts in nilfs2.
15709
15710 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
15711 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
15712 (grub_nilfs2_palloc_entries_per_group): Replace with ...
15713 (grub_nilfs2_log_palloc_entries_per_group): ... this.
15714 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
15715 (grub_nilfs2_entries_per_block): Replaced with ...
15716 (grub_nilfs2_log_entries_per_block_log): ... this.
15717 (grub_nilfs2_blocks_per_group): Replaced with ...
15718 (grub_nilfs2_blocks_per_group_log): ... this.
15719 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
15720 (grub_nilfs2_blocks_per_desc_block_log): ... this.
15721 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
15722 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
15723 (grub_nilfs2_palloc_entry_offset): Replaced ...
15724 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
15725 (grub_nilfs2_dat_translate): Use shifts.
15726 (grub_nilfs2_read_inode): Likewise.
15727 (GRUB_MOD_INIT): Ensure that logs are correct.
15728
564dd58c
VS
157292011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
15730
15731 Use shifts in minix filesystem.
15732
15733 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
15734 (GRUB_MINIX_ZONE2SECT): Likewise.
15735 (grub_minix_data): Replace block_size with log_block_size.
15736 (grub_minix_read_file): Use shifts.
15737 (grub_minix_mount): Check block size and take a logarithm.
15738
ed9ba06d
VS
157392011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
15740
15741 Use shifts in squash4.
15742
15743 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
15744 (squash_mount): Check block size and take logarithm.
15745 (direct_read): Use shifts.
15746
ad03fe76
VS
157472011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
15748
15749 Correct befs block counting logic.
15750
15751 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
15752 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
15753 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
15754 (grub_afs_read_inode): Use block_shift.
15755 (RANGE_SHIFT): New definition.
15756 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
15757 unexpected conditions, use shifts and appropriate types.
15758 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
15759
6563f63d
VS
157602011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
15761
15762 * grub-core/disk/raid.c (scan_devices): Check partition.
15763 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
15764
5b1ae25f
VS
157652011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
15766
15767 Support BFS (befs) UUID.
15768
15769 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
15770 (grub_afs_small_data_element_header): New struct.
15771 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
15772 (grub_afs_read_attribute) [MODE_BFS]: New function.
15773 (grub_afs_iterate_dir): Allocate for complete inode.
15774 (grub_afs_mount): Likewise.
15775 (grub_afs_uuid) [MODE_BFS]: New function.
15776 (grub_afs_fs) [MODE_BFS]: Add .uuid.
15777
f8d82408
VS
157782011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
15779
15780 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
15781 (zfs_unmount): Fix memory leak.
15782
5773fb64
VS
157832011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15784
15785 Support NTFS reparse points.
15786
15787 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
15788 (symlink_descriptor): New struct.
15789 (grub_ntfs_read_symlink): New function.
15790 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
15791 (grub_ntfs_open): Likewise.
15792
91c3fdde
VS
157932011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15794
15795 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
15796
3be82e10
VS
157972011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15798
15799 fstest xnu_uuid subcommand.
15800
15801 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
15802 grub-core/commands/xnu_uuid.c.
15803 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
15804 (fstest): Handle xnu_uuid.
15805 (options): Document xnu_uuid.
15806 (argp_parser): Parse xnu_uuid.
15807
8e32442e
VS
158082011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15809
15810 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
15811 -l argument. Add newline at the end if printing.
15812 (GRUB_MOD_INIT): Document -l.
15813
52a05075
VS
158142011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15815
15816 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
15817
1869edb5
VS
158182011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15819
15820 ZFS multi-device and version 33 support.
15821
15822 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
15823 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
15824 (grub_zfs_data): Add multidev-ice-related fields.
15825 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
15826 (dva_get_offset): Make dva const.
15827 (zfs_fetch_nvlist): New function.
15828 (fill_vdev_info_real): Likewise.
15829 (fill_vdev_info): Likewise.
15830 (check_pool_label): Likewise.
15831 (scan_disk): Likewise.
15832 (scan_devices): Likewise.
15833 (read_device): Likewise.
15834 (read_dva): Likewise.
15835 (zio_read_gang): Use read_dva.
15836 (zio_read_data): Likewise.
15837 (zap_leaf_lookup): Add missing endian conversion.
15838 (zap_verify): Add missing endian conversion. All users updated.
15839 (fzap_lookup): Likewise.
15840 (fzap_iterate): Likewise.
15841 (dnode_get_path): Handle SA bonus.
15842 (nvlist_find_value): Make input const. All users updated.
15843 (unmount_device): New function.
15844 (zfs_unmount): Use unmount_device.
15845 (zfs_mount): Use scan_disk.
15846 (zfs_mtime): New function.
15847 (grub_zfs_open): Handle system attributes.
15848 (fill_fs_info): Likewise.
15849 (grub_zfs_dir): Likewise.
15850 (grub_zfs_fs): Add mtime.
15851 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
15852 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
15853 (SA_MTIME_OFFSET): Likewise.
15854 (SA_SYMLINK_OFFSET): Likewise.
15855 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
15856 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
15857 (fstest): Support zfsinfo.
15858 (argp_parser): Likewise.
15859
186b4028
VS
158602011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15861
15862 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
15863 error.
15864
158652011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5587329c
VS
15866
15867 ZFS fixes.
15868
15869 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
15870 sharing the same block. Iterate over correct number of indices.
15871 (dnode_get_path): Handle symlinks correctly.
15872
c0584900
VS
158732011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
15874
15875 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
15876
67e2bd71
VS
158772011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
15878
15879 Read label on HFS+.
15880
15881 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
15882 (grub_hfsplus_btree_search): Fix types.
15883 (grub_hfsplus_label): Implement.
15884
e9cc6b7b
VS
158852011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
15886
15887 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
15888
19832ddb
VS
158892011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
15890
15891 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
15892
66b40850
VS
158932011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
15894
15895 Fix symlink handling on iso9660.
15896
15897 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
15898 All users updated.
15899 (grub_iso9660_susp_iterate): Accept zero-size iterate.
15900 (grub_iso9660_read_symlink): Moved most of code ...
15901 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
15902
db821363
VS
159032011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
15904
15905 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
15906 Use union to avoid breaking strict-aliasing rules.
15907
e1211949
VS
159082011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
15909
15910 Support multi-extent iso files.
15911
15912 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
15913 Add node.
15914 (grub_fshelp_node): Revamp. All users updated.
15915 (FLAG_*): New enum.
15916 (read_node): New function.
15917 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
15918 All users updated.
15919 (grub_iso9660_mount): Don't attempt to read sua when there is none.
15920 (get_node_size): New function.
15921 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
15922 entries.
15923 Fix memory leak on . and ..
15924 (grub_iso9660_read): Use read_node.
15925 (grub_iso9660_close): Free node.
15926
d4888031
VS
159272011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
15928
15929 Fix tar 4G limit and handle paths containing dot.
15930
15931 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
15932 (canonicalize): New function.
15933 (grub_cpio_find_file): Use canonicalize. Store offs in
15934 grub_disk_addr_t.
15935 (grub_cpio_dir): Use grub_disk_addr_t.
15936 (grub_cpio_open): Likewise.
15937
9f12e664
VS
159382011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
15939
15940 Fix handling of uncompressed blocks on squashfs and break 4G limit.
15941
15942 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
15943 unused flags.
15944 (grub_squash_inode): Add long_file and block_size.
15945 (grub_squash_cache_inode): New struct.
15946 (grub_squash_dirent): Make types into enum.
15947 (SQUASH_TYPE_LONG_REGULAR): New type.
15948 (grub_squash_frag_desc): Add field size.
15949 (SQUASH_BLOCK_FLAGS): New enum.
15950 (grub_squash_data): Use grub_squash_cache_inode.
15951 (grub_fshelp_node): Make ino_chunk 64-bit.
15952 (read_chunk): Minor argument change. All users updated.
15953 (squash_mount): Use correct le_to_cpu.
15954 (grub_squash_open): Handle LONG_REGULAR.
15955 (direct_read): New function.
15956 (grub_squash_read_data): Handle blocks correctly.
15957
9f326fba
VS
159582011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
15959
15960 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
15961
f4d9b64b
VS
159622011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
15963
15964 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
15965
5bbd28b8
VS
159662011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
15967
15968 Fix 2G limit on ZFS.
15969
15970 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
15971 types.
15972 (uberblock_verify): Likewise.
15973 (dmu_read): Likewise.
15974 (grub_zfs_read): Likewise. Remove invalid cast.
15975
68c72069
VS
159762011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
15977
15978 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
15979 (grub_jfs_blkno): Fix incorrect shift.
15980 (grub_jfs_read_file): Use more appropriate types.
15981
6e536dc8
VS
159822011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
15983
15984 Support triple indirect on minix2 and minix3.
15985
15986 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
15987 Declare triple_indir_zone.
15988 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
15989 indirect.
15990
e0864e7a
VS
159912011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
15992
15993 Minix FS fixes.
15994
15995 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
15996 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
15997 Rename ctime to mtime. All users updated.
15998 (grub_minix_get_file_block): Fix types and double indirect computations.
15999
89481cab
VS
160002011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16001
16002 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
16003 if no label is found.
16004 (grub_fat_iterate_dir): Fix file size type.
16005 (grub_fat_iterate_dir): Likewise.
16006
f646e143
VS
160072011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16008
16009 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
16010 save some space.
16011 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
16012 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
16013
534d769e
VS
160142011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16015
16016 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
16017
e084ba18
VS
160182011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16019
16020 * util/import_gcry.py: Accept space between # and include.
16021
3471ecdf
VS
160222011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16023
16024 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
16025
124df5f6
VS
160262011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16027
16028 Fine grainely disable warnings on lexer. Remove Wno-error on it.
16029
16030 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
16031 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
16032 yylex_strncpy.
16033 * grub-core/script/yylex.l: Add fine-grained #pragma.
16034
4defb8d5
VS
160352011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16036
16037 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
16038 New inline function.
16039 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
16040 Likewise.
16041 (memset) [GRUB_UTIL]: Likewise.
16042 (memcmp) [GRUB_UTIL]: Likewise.
16043
4e94ae65
VS
160442011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16045
16046 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
16047 inline function rather than a define.
16048
18c575e5
VS
160492011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16050
16051 * util/grub-setup.c: Add missing include.
16052
f8bc22a8
VS
160532011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16054
16055 * util/ieee1275/grub-ofpathname.c: Add missing include.
16056
3ce69fc9
VS
160572011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16058
16059 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
16060 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
16061 Likewise.
16062
d1e293bb
VS
160632011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16064
16065 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
16066 grub_memcmp usage.
16067
7a5c54a4
VS
160682011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16069
16070 * util/grub-install.in: Add datarootdir as per automake manual
16071 suggestion.
16072 * util/grub-mknetdir.in: Likewise.
16073
160742011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
7bec1053
VS
16075
16076 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
16077 suggestion.
16078 * util/grub.d/10_kfreebsd.in: Likewise.
16079 * util/grub.d/10_linux.in: Likewise.
16080 * util/grub.d/10_netbsd.in: Likewise.
16081 * util/grub.d/10_windows.in: Likewise.
16082 * util/grub.d/20_linux_xen.in: Likewise.
16083
766f7d08
VS
160842011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
16085
16086 Remove redundant grub_kernel_image_size.
16087
16088 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
16089 _edata and _start.
16090 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
16091 the small code. It moves it only by few bytes but simplifies the code.
16092 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
16093 _start.
16094 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
16095 (grub_kernel_image_size): Removed.
16096 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
16097 (grub_kernel_image_size): Removed.
16098 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
16099 compiled with Apple toolchain.
16100 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
16101 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
16102 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
16103 (grub_total_module_size): Likewise.
16104 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
16105 Removed.
16106 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
16107 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
16108 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
16109 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
16110 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
16111 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
16112 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
16113 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
16114 Removed.
16115 (grub_total_module_size): Removed.
16116 * util/grub-mkimage.c (image_target_desc): Remove image_size.
16117 (image_targets): Likewise.
16118 Set .compressed_size to no field on sparc.
16119 (generate_image): Remove kernel_image_size handling.
16120
fcf1d672
SJ
161212011-10-19 Szymon Janc <szymon@janc.net.pl>
16122
16123 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
16124 NULL pointer dereference.
16125
de9c615e
VS
161262011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
16127
16128 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
16129 done with a dedicated section.
16130
16131 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
16132 Ensure the correct position of boot_path.
16133 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
16134 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
16135 other fields.
16136 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
16137 * include/grub/boot.h: Removed. All references removed.
16138 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
16139 Removed.
16140 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
16141
e55599dc
VS
161422011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
16143
16144 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
16145 name.
16146
36dd20ad
VS
161472011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
16148
16149 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
16150
f8f72eb8
VS
161512011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
16152
16153 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
16154 Don't add the bogus brackets.
16155
a374751b
VS
161562011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
16157
16158 ExFAT support.
16159
16160 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
16161 * grub-core/Makefile.core.def (exfat): New module.
16162 * grub-core/fs/exfat.c: New file.
16163 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
16164 (GRUB_FAT_ATTR_*): Make into an enum.
16165 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
16166 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
16167 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
16168 (GRUB_FAT_MAXFILE): Removed.
16169 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
16170 (grub_current_fat_bpb_t): New type.
16171 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
16172 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
16173 (grub_fat_dir_node_t): New type.
16174 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
16175 (fat_log2) [MODE_EXFAT]: Removed.
16176 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
16177 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
16178 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
16179 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
16180 (grub_fat_label) [MODE_EXFAT]: New function.
16181 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
16182 reserved_first_sector to 0.
16183
544c2487
VS
161842011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
16185
16186 Move grub_reboot out of the kernel.
16187
16188 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
16189 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
16190 * grub-core/lib/efi/reboot.c: ... here.
16191 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
16192 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
16193 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
16194 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
16195 * grub-core/lib/i386/reboot_trampoline.S: ... here.
16196 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
16197 * grub-core/lib/ieee1275/reboot.c: ... here.
16198 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
16199 * grub-core/lib/mips/arc/reboot.c: ... here.
16200 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
16201 * grub-core/lib/mips/loongson/reboot.c: ...here.
16202 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
16203 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
16204 * include/grub/emu/misc.h (grub_reboot): New function declaration.
16205 * include/grub/i386/reboot.h: New file.
16206 * include/grub/mips/loongson/ec.h: Fix includes.
16207 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
16208 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
16209 * grub-core/lib/i386/reboot.c: New file.
16210
a97501d2
VS
162112011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
16212
16213 Make grub_prefix into module to fix the arbitrary limit and save
16214 some space.
16215
16216 * grub-core/kern/emu/main.c (grub_prefix): Removed.
16217 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
16218 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
16219 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
16220 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
16221 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
16222 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
16223 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
16224 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
16225 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
16226 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
16227 * include/grub/ia64/efi/kernel.h: Removed.
16228 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
16229 (grub_prefix): Removed.
16230 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
16231 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
16232 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
16233 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
16234 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
16235 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
16236 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
16237 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
16238 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
16239 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
16240 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
16241 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
16242 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
16243 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
16244 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
16245 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
16246 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
16247 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
16248 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
16249 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
16250 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
16251 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
16252 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
16253 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
16254 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
16255 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
16256 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
16257 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
16258 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
16259 from module.
16260 * util/grub-mkimage.c (image_target_desc): Removed prefix and
16261 prefix_end.
16262 (image_targets): Likewise.
16263 (generate_image): Put prefix as a module.
16264
39705fad
VS
162652011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16266
16267 Replace grub_module_iterate with FOR_MODULES.
16268
16269 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
16270 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
16271 (grub_efi_modules_addr): ...this.
16272 * grub-core/kern/efi/init.c (grub_modbase): New variable.
16273 (grub_efi_init): Set grub_modbase.
16274 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
16275 (grub_modbase): New variable.
16276 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
16277 (grub_modbase): New variable.
16278 (grub_machine_init): Set grub_modbase.
16279 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
16280 (grub_modbase): New variable.
16281 (grub_machine_init): Set grub_modbase.
16282 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
16283 (grub_modbase): New variable.
16284 (grub_machine_init): Set grub_modbase.
16285 * grub-core/kern/main.c (grub_module_iterate): Remove.
16286 (grub_modules_get_end): Use grub_modbase.
16287 (grub_load_modules): Use FOR_MODULES.
16288 (grub_load_config): Likewise.
16289 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
16290 (grub_modbase): New variable.
16291 (grub_machine_init): Set grub_modbase.
16292 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
16293 (grub_modbase): New variable.
16294 (grub_machine_init): Set grub_modbase.
16295 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
16296 Removed.
16297 (grub_modbase): New variable.
16298 (grub_machine_init): Set grub_modbase.
16299 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
16300 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
16301 (grub_module_iterate): Likewise.
16302 (grub_modbase): New variable declaration.
16303 (FOR_MODULES): New macro.
16304
2afb7f6c
VS
163052011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16306
16307 * configure.ac: Check for __ctzdi2 and __ctzsi2.
16308 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
16309
366e34fa
VS
163102011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16311
16312 Fix few obvious type discrepancies.
16313
16314 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
16315 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
16316 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
16317 variable.
16318 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
16319 and connected types.
16320 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
16321 offset.
16322 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
16323 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
16324 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
16325 and connected types.
16326
177b960e
VS
163272011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16328
16329 Fix python 3.x incompatibilities.
16330
16331 * gentpl.py: Put brackets around print strings.
16332 * util/import_gcry.py: Open explicitly as utf-8.
16333 Use in instead of has_key.
16334
3b619ae1
VS
163352011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16336
16337 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
16338 (GRUB_XFS_INO_AGBITS): Make into inline function.
16339 (GRUB_XFS_INO_INOINAG): Likewise.
16340 (GRUB_XFS_INO_AG): Likewise.
16341 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
16342 (GRUB_XFS_EXTENT_OFFSET): Likewise.
16343 (GRUB_XFS_EXTENT_BLOCK): Likewise.
16344 (GRUB_XFS_EXTENT_SIZE): Likewise.
16345 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
16346 (GRUB_XFS_NEXT_DIRENT): Likewise.
16347 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
16348 (grub_xfs_read_file): Fix offset type.
16349
8bcebcb8
RM
163502011-10-15 Robert Millan <rmh@gnu.org>
16351
16352 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
16353
0017e5ef
RM
163542011-10-15 Robert Millan <rmh@gnu.org>
16355
16356 Fix build problem on FreeBSD and GNU/kFreeBSD.
16357
16358 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
16359
d8919552
VS
163602011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
16361
16362 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
16363
16364 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
16365 types.
16366 (grub_hfsplus_btree_recoffset): Likewise.
16367 (grub_hfsplus_btree_recptr): Likewise.
16368 (grub_hfsplus_find_block): Likewise.
16369 (grub_hfsplus_btree_search): Likewise.
16370 (grub_hfsplus_read_block): Likewise.
16371 (grub_hfsplus_read_file): Likewise.
16372 (grub_hfsplus_mount): Likewise.
16373 (grub_hfsplus_btree_iterate_node): Likewise.
16374 (grub_hfsplus_btree_search): Likewise.
16375 (grub_hfsplus_iterate_dir): Likewise.
16376 (grub_hfsplus_read): A small code simplification.
16377
c81296b6
VS
163782011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
16379
16380 * grub-core/kern/emu/hostdisk.c
16381 (convert_system_partition_to_system_disk): Don't assume that children
16382 of mapper nodes are mapper nodes.
16383
0eb8ffb1
VS
163842011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
16385
16386 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
16387 * include/grub/misc.h (grub_isxdigit): New function.
16388 * grub-core/video/colors.c (my_isxdigit): Removed. All users
16389 switched to grub_isxdigit.
16390 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
16391 number starting with a letter.
16392
a98f4a08
RM
163932011-10-09 Robert Millan <rmh@gnu.org>
16394
16395 LVM support for FreeBSD and GNU/kFreeBSD.
16396
16397 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
16398 GNU/kFreeBSD.
16399 (LVM_DEV_MAPPER_STRING): Move from here ...
16400 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
16401 * util/getroot.c: Include `<grub/util/lvm.h>'.
16402 (grub_util_get_dev_abstraction): Enable
16403 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
16404 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
16405 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
16406 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
16407 support it.
16408 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
16409 GNU/kFreeBSD.
16410 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
16411 when LVM abstraction is required for ${GRUB_DEVICE}.
16412
050e8e90
SJ
164132011-10-06 Szymon Janc <szymon@janc.net.pl>
16414
16415 Add support for LZO compression in GRUB:
16416 - import of minilzo library,
16417 - LZO decompression for btrfs,
16418 - lzop files decompression.
16419
16420 * grub-core/io/lzopio.c: New file.
16421 * grub-core/lib/adler32.c: Likewise.
16422 * grub-core/lib/minilzo/lzoconf.h: Likewise.
16423 * grub-core/lib/minilzo/lzodefs.h: Likewise.
16424 * grub-core/lib/minilzo/minilzo.c: Likewise.
16425 * grub-core/lib/minilzo/minilzo.h: Likewise.
16426 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
16427 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
16428 grub-core/lib/minilzo/minilzo.c to common.
16429 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
16430 cflags in cppflags.
16431 * grub-core/Makefile.core.def (btrfs): Likewise.
16432 * grub-core/Makefile.core.def (lzopio): New module.
16433 (adler32): Likewise.
16434 * grub-core/fs/btrfs.c: Include minilzo.h.
16435 (GRUB_BTRFS_COMPRESSION_LZO): New define.
16436 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
16437 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
16438 (grub_btrfs_lzo_decompress): New function.
16439 (grub_btrfs_extent_read): Add support for LZO compression type.
16440 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
16441 (GRUB_USHRT_MAX): Likewise.
16442 (GRUB_UINT_MAX): Likewise.
16443 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
16444 (UINT_MAX): Likewise.
16445 (CHAR_BIT): Likewise.
16446 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
16447 grub-core/lib/posix_wrap/limits.h
16448 (UCHAR_MAX): Likewise.
16449 * include/grub/file.h (grub_file_filter_id): New compression filter
16450 GRUB_FILE_FILTER_LZOPIO.
16451 * include/grub/file.h (grub_file_filter_id): Set
16452 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
16453 * include/grub/types.h (grub_get_unaligned16): New function.
16454 (grub_get_unaligned32): Likewise.
16455 (grub_get_unaligned64): Likewise.
16456 * util/import_gcry.py (cryptolist): Add adler32.
16457
0eb8ffb1
VS
164582011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
16459
16460 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
16461 in perspective decreases the complexity of build system and fixes
16462 compilation right now.
16463
ce79cc99 164642011-10-01 Ales Nesrsta <starous@volny.cz>
16465
16466 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
16467 (fixed problem related to using UHCI with coreboot).
16468
8667a314
BC
164692011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
16470
16471 * gentpl.py: Use Autogen macros so that the output template file
16472 (Makefile.tpl) size is reduced.
16473
fc5efcc0
MK
164742011-09-29 Mads Kiilerich <mads@kiilerich.com>
16475
16476 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
16477 extra_dist.
16478
d1ab689d
ML
164792011-09-29 Mario Limonciello <mario_limonciello@dell.com>
16480
16481 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
16482 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
16483
c05de032
ML
164842011-09-29 Mario Limonciello <mario_limonciello@dell.com>
16485
16486 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
16487 _fullpath.
16488
cca7ccd8
ML
164892011-09-29 Mario Limonciello <mario_limonciello@dell.com>
16490
16491 Remove extra declaration of sleep for mingw32.
16492
16493 * util/misc.c (sleep) [__MINGW32__]: Removed.
16494 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
16495
e0b0dc83
GS
164962011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
16497
16498 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
16499 type and packname.
16500 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
16501 Resurrected.
16502 (NETBSD_BTINFO_BOOTWEDGE): New definition.
16503 (grub_netbsd_btinfo_bootwedge): New struct.
16504 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
16505 New function.
16506 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
16507
91a1a164
TH
165082011-09-28 Thomas Haller <thomas.haller@fen-net.de>
16509
16510 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
16511 loader.
16512
2ded951e
AB
165132011-09-28 Andreas Born <futur.andy@googlemail.com>
16514
16515 Fix incorrect identifiers in bash-completion.
16516
16517 * util/bash-completion.d/grub-completion.bash.in
16518 (_grub_mkpasswd-pbkdf2): Rename to ...
16519 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
16520 (_grub_script-check): Rename to ...
16521 (_grub_script_check): ... this. All users updated.
16522
69915030
VS
165232011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
16524
16525 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
16526 Return 0 if disk isn't biosdisk.
16527
20fd15f9
GS
165282011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
16529
16530 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
16531 on NetBSD.
16532 * Makefile.util.def (grub-fstest): Likewise.
16533
1a7d7db9
GS
165342011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
16535
16536 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
16537 Get sector size from disk label.
16538
2221ab6c
CW
165392011-09-05 Colin Watson <cjwatson@ubuntu.com>
16540
16541 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
16542 */README* as well as README*.
16543 Reported by: Axel Beckert.
16544
ca51c4a0
VS
165452011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
16546
16547 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
16548 case of less than 256 MiB of RAM.
16549
ab80f326
VS
165502011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
16551
16552 * grub-core/commands/wildcard.c (make_regex): Handle @.
16553
4155e697
VS
165542011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
16555
16556 * util/grub-install.in: Move cryptodisk logic to appropriate place.
16557
ab178c08
SJ
165582011-08-21 Szymon Janc <szymon@janc.net.pl>
16559
16560 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
16561 AC_LANG_CONFTEST macros.
16562
7dc3c686
SJ
165632011-08-20 Szymon Janc <szymon@janc.net.pl>
16564
16565 Add grub-fstest option to uncompress data for commands.
16566
16567 * util/grub-fstest.c (uncompress): New var.
16568 (options): New option -u.
16569
fe8d4a7b
SJ
165702011-08-20 Szymon Janc <szymon@janc.net.pl>
16571
16572 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
16573 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
16574
a5219af1
SJ
165752011-08-20 Szymon Janc <szymon@janc.net.pl>
16576
16577 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
16578 file type was not recognized correctly (not gzip or corrupted).
16579
f87abff5
VS
165802011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
16581
16582 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
16583 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
16584
d94497ea
VS
165852011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
16586
16587 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
16588 loongson.
16589 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
16590 video_radeon_fuloong2e.
16591 * grub-core/video/radeon_fuloong2e.c: New file.
16592 * include/grub/video.h (grub_video_id_t): Add new ID
16593 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
16594
0d1fd011
VS
165952011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
16596
16597 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
16598 define.
16599 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
16600 that PRID matches the detected subplatform and reset the subplatform
16601 if it doesn't.
16602
84beb0ee
VS
166032011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
16604
16605 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
16606
1227c133
VS
166072011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
16608
16609 Fix PCI iterating on functions >= 4.
16610
16611 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
16612 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
16613 Removed.
16614 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
16615 (grub_pci_read): Fix bitmask.
16616 (grub_pci_read_word): Likewise.
16617 (grub_pci_read_byte): Likewise.
16618 (grub_pci_write): Likewise.
16619 (grub_pci_write_word): Likewise.
16620 (grub_pci_write_byte): Likewise.
16621
9594c689
VS
166222011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
16623
16624 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
16625 can still be specified in TARGET_CFLAGS)
16626
14a2562c
VS
166272011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
16628
16629 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
16630
16631 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
16632 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
16633 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
16634 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
16635 (FULOONG): Rename to ...
16636 (FULOONG2F): ... this. All users updated.
16637 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
16638 (machtype_fuloong2f_str): ... this.
16639 (machtype_fuloong2e_str): New string.
16640 Check for machtype_fuloong2e_str.
16641 * grub-core/loader/mips/linux.c (loongson_machtypes)
16642 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
16643 * grub-core/term/serial.c (loongson_defserial)
16644 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
16645 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
16646 loongson_defserial.
16647 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
16648 Rename to ...
16649 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
16650 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
16651 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
16652 to IMAGE_FULOONG2F_FLASH. All users updated.
16653 (image_targets): Rename images.
16654 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
16655
b526cbb6
SJ
166562011-08-19 Szymon Janc <szymon@janc.net.pl>
16657
16658 Make enable of disk cache statistics code configurable.
16659
16660 * configure.ac: --enable-cache-stats added.
16661 * config.h.in (DISK_CACHE_STATS): New define.
16662 * grub-core/Makefile.core.def (cacheinfo): New command.
16663 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
16664 * grub-core/commands/cacheinfo.c: New file.
16665 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
16666 moved to cacheinfo.c.
16667 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
16668 debug code.
16669 * include/grub/disk.h: Likewise.
16670
fb739ccd
SJ
166712011-08-19 Szymon Janc <szymon@janc.net.pl>
16672
16673 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
16674 * grub-core/Makefile.am: Likewise.
16675
2bba8cfd
VS
166762011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
16677
16678 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
16679 non-zero pull.
16680
43526629
VS
166812011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
16682
16683 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
16684 All users updated.
16685 (grub_jfs_lookup_symlink): Use correct starting inode.
16686
5c144cc8
VS
166872011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
16688
16689 * util/grub-setup.c (main): Add missing gcry initialisation.
16690
b1257f65
VS
166912011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
16692
16693 Don't accept text modes on EFI when booting Linux.
16694
16695 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
16696 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
16697
828bc390
ML
166982011-08-15 Mario Limonciello <mario_limonciello@dell.com>
166992011-08-15 Colin Watson <cjwatson@ubuntu.com>
16700
16701 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
16702 use of "/path/.." as in grub-install for EFI as well as handling
16703 symlinks correctly.
16704 Fixes Debian bug #637768.
16705
5f60ccac
CW
167062011-08-15 Colin Watson <cjwatson@ubuntu.com>
16707
16708 * util/grub-probe.c: Remove duplicate #include.
16709
6dc212f9
RM
167102011-08-10 Robert Millan <rmh@gnu.org>
16711
16712 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
16713
16714 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
16715 function.
16716 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
16717 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
16718
66816d85
RM
167192011-08-03 Robert Millan <rmh@gnu.org>
16720
16721 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
16722 la_array as packed.
16723 Reported by: Zachary Bedell
16724
20168fca
CW
167252011-07-26 Colin Watson <cjwatson@ubuntu.com>
16726
16727 * configure.ac: The Loongson port requires grub-mkfont due to its
16728 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
16729 be built.
16730
303b6246
CW
167312011-07-26 Colin Watson <cjwatson@ubuntu.com>
16732
16733 * util/grub-install.in: Don't source grub-mkconfig_lib until after
16734 processing arguments (otherwise help2man fails when GRUB has not yet
16735 been installed).
16736
6795300e
VS
167372011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
16738
41aa28ea
VS
16739 New script grub-mkstandalone.
16740
16741 * Makefile.util.def (grub-mkstandalone): New script.
16742 * docs/man/grub-mkstandalone.h2m: New file.
16743 * util/grub-mkstandalone.in: Likewise.
16744
167452011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
16746
16747 Support ATA disks with 4K sectors.
6795300e
VS
16748
16749 * include/grub/ata.h (grub_ata): New member log_sector_size.
16750 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
16751 (grub_ata_identify): Read sector size.
16752 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
16753
92227597
VS
167542011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
16755
16756 * util/grub-install.in: Don't use uhci outside of x86.
16757
c77069f5
VS
167582011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
16759
16760 * util/grub-mkrescue.in: Add missing quotes.
16761
167622011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
b70e4cb0
VS
16763
16764 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
16765 dereference.
16766
583168a2
VS
167672011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
16768
16769 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
16770
6be1c01f
VS
167712011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
16772
16773 * include/grub/video.h: add missing EXPORT_FUND on
16774 grub_video_edid_checksum and grub_video_edid_preferred_mode.
16775
a1167439
VS
167762011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
16777
16778 * include/grub/mips/kernel.h: Fix define conflict.
16779
bf66054f
VS
167802011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
16781
16782 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
16783 all four ways.
16784
8fc4fa45
CW
167852011-07-21 Colin Watson <cjwatson@ubuntu.com>
16786
16787 Preferred resolution detection for VBE.
16788
16789 * grub-core/video/video.c (grub_video_edid_checksum): New function.
16790 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
16791 the Flat Panel extension, in line with the X.org VESA driver.
16792 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
16793 New function.
16794 (grub_vbe_bios_get_ddc_capabilities): Likewise.
16795 (grub_vbe_bios_read_edid): Likewise.
16796 (grub_vbe_get_preferred_mode): Likewise.
16797 (grub_video_vbe_setup): When the mode is "auto", try to get the
16798 preferred mode from VBE, and use the largest mode that is no larger
16799 than the preferred mode (some BIOSes expose a preferred mode that is
16800 not in their mode list!). If this fails, fall back to 640x480 as a
16801 safe conservative choice.
16802 (grub_video_vbe_get_edid): New function.
16803 (grub_video_vbe_adapter): Add get_edid.
16804 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
16805 (struct grub_video_adapter): Add get_edid.
16806 (grub_video_edid_checksum): Add prototype.
16807 (grub_video_edid_preferred_mode): Likewise.
16808 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
16809 structure.
16810
16811 * grub-core/commands/videoinfo.c (print_edid): New function.
16812 (grub_cmd_videoinfo): Print EDID if available.
16813
16814 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
16815 is more appropriate on a wider range of platforms than 640x480.
16816 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
16817 documentation.
16818
ca5572a9
VS
168192011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
16820
16821 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
16822
e4bcf625
VS
168232011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
16824
16825 * po/POTFILES.in: Regenerate.
16826
c4edd548
VS
168272011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
16828
16829 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
16830 incorrect memory usage.
16831
16a2bab0
VS
168322011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
16833
16834 * util/grub-install.in: Source grub-mkconfig_lib.
16835
2e418de6
VS
168362011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
16837
16838 Remove getroot.c from core on emu platform.
16839
16840 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
16841 kern/emu/raid.c.
16842 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
16843 useless.
16844 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
16845 * util/getroot.c (get_win32_path): ... here.
16846 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
16847 * util/getroot.c (fini_libzfs): ... here.
16848 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
16849 * util/getroot.c (grub_get_libzfs_handle): ... here.
16850 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
16851 Moved from here...
16852 * util/getroot.c (grub_find_zpool_from_dir): ... here.
16853 * grub-core/kern/emu/misc.c
16854 (grub_make_system_path_relative_to_its_root): Moved from here...
16855 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
16856 * grub-core/kern/emu/getroot.c: Moved from here ...
16857 * util/getroot.c: ... here. All users updated.
16858 * grub-core/kern/emu/raid.c: Moved from here ...
16859 * util/raid.c: ... here. All users updated.
16860
def9832a
VS
168612011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
16862
16863 * po/POTFILES.in: Regenerate.
16864
cd8fe79a
VS
168652011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
16866
16867 Fix compilation on GNU/Linux.
16868
16869 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
16870 Disable geli.
16871 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
16872 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
16873 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
16874
a251b719
VS
168752011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
168762011-07-07 Michael Gorven <michael@gorven.za.net>
168772011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
16878
16879 LUKS and GELI support.
16880
16881 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
16882 grub-core/disk/luks.c, grub-core/disk/geli.c,
16883 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
16884 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
16885 grub-core/lib/arg.c.
16886 (libgrubmods.a): Remove gcrypts cflags and cppflags.
16887 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
16888 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
16889 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
16890 (grub-bin2h): Add libgcry.a.
16891 (grub-mkimage): Likewise.
16892 (grub-mkrelpath): Likewise.
16893 (grub-script-check): Likewise.
16894 (grub-editenv): Likewise.
16895 (grub-mkpasswd-pbkdf2): Likewise.
16896 (grub-pe2elf): Likewise.
16897 (grub-fstest): Likewise.
16898 (grub-mkfont): Likewise.
16899 (grub-mkdevicemap): Likewise.
16900 (grub-probe): Likewise.
16901 (grub-ofpath): Likewise.
16902 (grub-mklayout): Likewise.
16903 (example_unit_test): Likewise.
16904 (grub-menulst2cfg): Likewise.
16905 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
16906 * grub-core/Makefile.core.def (cryptodisk): New module.
16907 (luks): Likewise.
16908 (geli): Likewise.
16909 * grub-core/disk/AFSplitter.c: New file.
16910 * grub-core/disk/cryptodisk.c: Likewise.
16911 * grub-core/disk/geli.c: Likewise.
16912 * grub-core/disk/luks.c: Likewise.
16913 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
16914 grub_util_is_lvm.
16915 (grub_util_get_dm_abstraction): New function.
16916 (grub_util_follow_gpart_up): Likewise.
16917 (grub_util_get_geom_abstraction): Likewise.
16918 (grub_util_get_dev_abstraction): Use new functions.
16919 (grub_util_pull_device): Pull GELI and LUKS.
16920 (grub_util_get_grub_dev): Handle LUKS and GELI.
16921 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
16922 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
16923 (follow_geom_up): Removed.
16924 (grub_util_fd_seek): New function.
16925 (open_device): Use grub_util_fd_seek.
16926 (nread): Rename to ..
16927 (grub_util_fd_read): ... this. All users updated.
16928 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
16929 (grub_crypto_cbc_decrypt): Likewise.
16930 (grub_crypto_hmac_write): Likewise.
16931 (grub_crypto_hmac_buffer): Likewise.
16932 (grub_password_get): Extend to util.
16933 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
16934 New member modname.
16935 (gcry_md_spec) [GRUB_UTIL]: Likewise.
16936 * include/grub/cryptodisk.h: New file.
16937 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
16938 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
16939 LUKS and GELI.
16940 (grub_util_follow_gpart_up): New proto.
16941 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
16942 (grub_util_fd_read): Likewise.
16943 (grub_cryptodisk_cheat_mount): Likewise.
16944 (grub_util_cryptodisk_print_uuid): Likewise.
16945 (grub_util_get_fd_sectors): Likewise.
16946 * util/grub-fstest.c (mount_crypt): New var.
16947 (fstest): Mount crypto if requested.
16948 (options): New option -C.
16949 (argp_parser): Parse -C.
16950 (main): Init and fini gcry.
16951 * util/grub-install.in: Support cryptodisk install.
16952 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
16953 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
16954 cryptodisk.
16955 (prepare_grub_to_access_device): Likewise.
16956 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
16957 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
16958 (probe_cryptodisk_uuid): New function.
16959 (probe_abstraction): Likewise.
16960 (probe): Use new functions.
16961 * util/import_gcry.py: Create Makefile.utilgcry.def.
16962 Add modname member.
16963
9bfdcbbc
VS
169642011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
16965
16966 Lazy device scanning.
16967
16968 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
16969 (grub-setup): Remove util/raid.c.
16970 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
16971 * grub-core/disk/lvm.c (scan_depth): New variable.
16972 (grub_lvm_iterate): Rescan if necessary.
16973 (find_lv): New function based on grub_lvm_open.
16974 (grub_lvm_open): Use find_lv. Rescan on error.
16975 (is_node_readable): New function.
16976 (is_lv_readable): Likewise.
16977 (grub_lvm_scan_device): Skip already found disks.
16978 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
16979 Stop if searched device is found and readable.
16980 * grub-core/disk/raid.c (inscnt): New variable.
16981 (scan_depth): Likewise.
16982 (scan_devices): New function based on grub_raid_register. Abort if
16983 looked for device is found.
16984 (grub_raid_iterate): Rescan if needed.
16985 (find_array): NEw function based on -grub_raid_open.
16986 (grub_raid_open): Use find_array and rescan.
16987 (insert_array): Set became_readable_at.
16988 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
16989 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
16990 New function.
16991 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
16992 (grub_util_pull_device): New function.
16993 (grub_util_get_grub_dev): Call grub_util_pull_device.
16994 * util/raid.c: Moved to ..
16995 * grub-core/kern/emu/raid.c: ... here.
16996 (grub_util_raid_getmembers): New parameter "bootable".
16997 All users updated. Support 1.x.
16998 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
16999 All users updated.
17000 * include/grub/disk.h (grub_disk_pull_t): New enum.
17001 (grub_disk_dev): Change iterate prototype.
17002 All users updated.
17003 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
17004 New proto.
17005 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
17006 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
17007 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
17008 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
17009 All users updated.
17010 * include/grub/util/raid.h: Removed.
17011
1c358e59
VS
170122011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
17013
17014 * po/POTFILES.in: Regenerate.
17015
abee94ed
VS
170162011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
17017
17018 Unify sparc init with other ieee1275.
17019
17020 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
17021 instead of kern/sparc64/ieee1275/init.c.
17022 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
17023 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
17024 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
17025 grub/machine/kernel.h.
17026 (grub_ieee1275_original_stack) [__sparc__]: New variable.
17027 (grub_claim_heap) [__sparc__]: Use sparc version.
17028 (grub_machine_init): Moved args parsing to
17029 (grub_parse_cmdline): ...this.
17030 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
17031 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
17032 New definition.
17033 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
17034
17035 Move BOOTP to separate file.
17036
17037 * grub-core/Makefile.core.def (net): Add net/bootp.c.
17038 * grub-core/net/net.c: Move all BOOTP functions to
17039 * grub-core/net/bootp.c: ... here.
17040
17041 Use frame interface on PXE.
17042
17043 * grub-core/Makefile.core.def (pxecmd): Removed.
17044 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
17045 * grub-core/commands/i386/pc/pxecmd.c: Removed.
17046 * grub-core/i386/pc/pxe.c: Moved from here ...
17047 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
17048 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
17049 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
17050
17051 EFI network support.
17052
17053 * grub-core/Makefile.core.def (efinet): New module.
17054 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
17055 here...
17056 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
17057 All users updated.
17058 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
17059 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
17060 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
17061 * grub-core/net/drivers/efi/efinet.c: New file.
17062 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
17063 (grub_efi_net_config): New extern var.
17064
17065 Various cleanups and bugfixes.
17066
17067 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
17068 error.
17069 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
17070 disk declared as partition.
17071 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
17072 leak on failure.
17073 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
17074 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
17075 (grub_debug_zalloc): Likewise.
17076 (grub_debug_realloc): Likewise.
17077 (grub_debug_memalign): Likewise.
17078 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
17079 Check that target is IPv4.
17080 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
17081 local-mac-address as fallback.
17082 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
17083 memory leak.
17084 * grub-core/net/ip.c (ipchksum): Rename to ...
17085 (grub_net_ip_chksum): ... this. All users updated.
17086 (grub_net_recv_ip_packets): Special handling for DHCP.
17087 * util/grub-mkimage.c (generate_image): Zero-out aout header.
17088
17089 Unify prefix handling
17090
17091 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
17092 (grub_machine_get_bootlocation): ... this.
17093 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
17094 (grub_machine_get_bootlocation): ... this.
17095 (grub_prefix): New variable.
17096 (prefix): Removed.
17097 (root_dev): New variable.
17098 (dir): Likewise.
17099 (main): Use new variables.
17100 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
17101 Revamped into ...
17102 (grub_machine_get_bootlocation): ... this.
17103 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
17104 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
17105 (grub_machine_get_bootlocation): ... this.
17106 (grub_machine_set_prefix): Removed.
17107 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
17108 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
17109 Revamped into ...
17110 (grub_machine_get_bootlocation): ... this.
17111 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
17112 (grub_set_prefix_and_root): ... this. All users updated.
17113 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
17114 Revamped into ...
17115 (grub_machine_get_bootlocation): ... this.
17116 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
17117 (grub_machine_get_bootlocation): New proto.
17118 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
17119
17120 Less intrusive and more reliable seek on network implementation.
17121
17122 * grub-core/kern/file.c (grub_file_net_seek): Removed.
17123 (grub_file_seek): Don't call grub_file_net_seek.
17124 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
17125 (grub_net_fs_read_real): .. this.
17126 (grub_net_seek_real): Use net->offset.
17127 (grub_net_fs_read): Seek if necessary.
17128
17129 Unify IEEE1275 netwotk config with the other platforms.
17130
17131 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
17132 New variable.
17133 (grub_machine_get_bootlocation): Support network.
17134 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
17135 Support type and device parsing.
17136 (grub_ieee1275_get_device_type): New function.
17137 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
17138 into ...
17139 (grub_ieee1275_net_config_real): ... this.
17140 (grub_ofnet_probecards): Removed.
17141 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
17142 * include/grub/ieee1275/ofnet.h: Removed.
17143 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
17144 extern var.
17145 (grub_ieee1275_get_device_type): New function.
17146
17147 Unify network device closing across platforms and make more robust.
17148
17149 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
17150 grub_grubnet_fini.
17151 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
17152 already.
17153 * grub-core/net/net.c (grub_net_network_level_interface_register):
17154 Update num_ifaces.
17155 (grub_net_card_unregister): Close all interfaces.
17156 (receive_packets): Don't poll if no iterfaces are registered.
17157 Open if necessary.
17158 (grub_net_fini_hw): New function.
17159 (grub_net_restore_hw): Likewise.
17160 (fini_hnd): New variable.
17161 (GRUB_MOD_INIT): Register preboot hook.
17162 (GRUB_MOD_FINI): Run and unregister preboot hook.
17163
17164 Poll network cards when idle.
17165
17166 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
17167 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
17168 * grub-core/net/net.c (receive_packets): Save last poll time.
17169 (grub_net_poll_cards_idle_real): New function.
17170 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
17171 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
17172 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
17173
17174 Rename ofnet interfaces.
17175
17176 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
17177 (grub_ofnet_findcards): Use ofnet_%s names.
17178
17179 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
17180
17181 Cleanup socket opening.
17182
17183 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
17184 (grub_net_fs_close): Likewise.
17185 (grub_net_fs_read_real): Use eof member.
17186 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
17187 (+grub_net_udp_close): New inline function.
17188
17189 * include/grub/net/tftp.h: Moved to the top of ...
17190 * grub-core/net/tftp.c: ... here.
17191 * include/grub/net/ip.h: Moved mostly to the top of ...
17192 * grub-core/net/ip.c: ... here.
17193 * include/grub/net/ethernet.h: Moved mostly to the top of ...
17194 * grub-core/net/ethernet.c: ... here.
17195
17196 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
17197
17198 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
17199 FS name.
17200
17201 * include/grub/net/ip.h (ipv4_ini): Removed.
17202 (ipv4_fini): Likewise.
17203
17204 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
17205 (grub_net_send_ip_packets): Likewise.
17206
cf1337aa
VS
172072011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
17208
17209 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
17210 grub_read_cmos prototype.
17211
93c06ff9
VS
172122011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
17213
17214 VGA text support in qemu-mips
17215
17216 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
17217 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
17218 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
17219 text.
17220 * grub-core/kern/i386/qemu/init.c: Renamed to ...
17221 * grub-core/kern/vga_init.c: ... this.
17222 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
17223 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
17224 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
17225 Adjust.
17226 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
17227 GRUB_MACHINE_PCI_IO_BASE.
17228
748ccabe
VS
172292011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
17230
17231 MIPS qemu flash support.
17232
17233 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
17234 magic.
17235 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
17236 (grub_machine_init): Probe memory if its size isn't known.
17237 * util/grub-mkimage.c (image_targets): Add flash targets.
17238 (generate_image): Handle flash targets.
17239
d7345994
VS
172402011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
17241
17242 MIPS qemu at_keyboard support.
17243
17244 * gentpl.py (videoinkernel): Add qemu-mips.
17245 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
17246 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
17247 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
17248 modules.
17249 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
17250 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
17251 * grub-core/term/serial.c (grub_serial_register)
17252 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
17253
a07a81b3
VS
172542011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
17255
17256 CMOS support on sparc.
17257
17258 * gentpl.py (cmos): Add powerpc and sparc.
17259 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
17260 powerpc and sparc.
17261 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
17262 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
17263 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
17264 grub_set_datetime_cmos.
17265 * grub-core/lib/ieee1275/cmos.c: New file.
17266 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
17267 (find_rtc): Set no_ieee1275_rtc on error.
17268 (grub_get_datetime): Call grub_get_datetime_cmos on error.
17269 (grub_set_datetime): Call grub_set_datetime_cmos on error.
17270 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
17271 fail. Move value to argument. All users updated
17272 (grub_cmos_write): Likewise.
17273 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
17274 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
17275 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
17276 grub_get_datetime_cmos and grub_set_datetime_cmos.
17277
77546584
GS
172782011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
17279
17280 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
17281 sourcing grub-mkconfig_lib.
17282 * util/update-grub_lib.in: Likewise.
17283 * util/grub.d/00_header.in: Likewise.
17284 * util/grub.d/10_hurd.in: Likewise.
17285 * util/grub.d/10_kfreebsd.in: Likewise.
17286 * util/grub.d/10_linux.in: Likewise.
17287 * util/grub.d/10_netbsd.in: Likewise.
17288 * util/grub.d/10_windows.in: Likewise.
17289 * util/grub.d/20_linux_xen.in: Likewise.
17290 * util/grub.d/30_os-prober.in: Likewise.
17291
54894791
CW
172922011-06-28 Colin Watson <cjwatson@ubuntu.com>
17293
17294 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
17295 default_bg_color rather than black.
17296 (grub_gfxterm_fullscreen): Likewise.
17297 (grub_gfxterm_background_color_cmd): Save new background color in
17298 default_bg_color.
17299
8d5d8444
VS
173002011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17301
17302 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
17303
5afeb5bd
VS
173042011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17305
17306 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
17307 mismerge.
17308
ba7df45e
VS
173092011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17310
17311 Chainloading on coreboot support.
17312
17313 * grub-core/Makefile.core.def (chain): Add coreboot.
17314 * grub-core/loader/i386/coreboot/chainloader.c: New file.
17315
d0b526b2
VS
173162011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17317
17318 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
17319 if it happens.
17320
5ff1d945
VS
173212011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17322
17323 Implement time command.
17324
17325 * grub-core/Makefile.core.def (time): New module.
17326 * grub-core/commands/time.c: New file.
17327 * grub-core/script/parser.y: Remove "time" keyword.
17328 * grub-core/script/yylex.l: Likewise.
17329
5ebaad7e
VS
173302011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17331
17332 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
17333
bdea3798
VS
173342011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17335
17336 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
17337 when handling leftovers.
17338
b28c5655
VS
173392011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17340
17341 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
17342 so that help2man doesn't fail.
17343
b6f945dc
VS
173442011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17345
17346 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
17347 type in pointers on sparc64.
17348 (get_card_packet): Likewise.
17349
f9b75e8a
CW
173502011-06-27 Colin Watson <cjwatson@ubuntu.com>
17351
17352 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
17353 with `*'.
17354 (grub_cmd_videoinfo): Fetch current video mode.
17355
1e3d9b86
VS
173562011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17357
17358 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
17359 because of underlying system restrictions.
17360
efff4b1c
VS
173612011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17362
17363 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
17364 necessary.
17365
9fc9ce37
VS
173662011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17367
17368 Coreboot video support.
17369
17370 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
17371 (vbe): Likewise.
17372 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
17373 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
17374 here ...
17375 * grub-core/kern/i386/int.S: ... here.
17376 * grub-core/video/i386/pc/vbe.c: Updated includes.
17377 * grub-core/video/i386/pc/vga.c: Likewise.
17378 * include/grub/i386/coreboot/memory.h
17379 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
17380 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
17381 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
17382 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
17383 Disable interrupts.
17384 * include/grub/i386/pc/vga.h: Removed. All users updated.
17385
41bec7fe
VS
173862011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17387
17388 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
17389 definitions for dprintf.
17390 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
17391
ca80309d
VS
173922011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17393
17394 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
17395 prototype.
17396 (get_card_packet): Likewise.
17397
9e322ce8
YB
173982011-06-26 Yves Blusseau <blusseau@zetam.org>
17399
17400 Display the path of the file when file is not found
17401
17402 * grub-core/fs/fat.c: Display the filename when file is not found.
17403 * grub-core/fs/fshelp.c: Likewise.
17404 * grub-core/fs/hfs.c: Likewise.
17405 * grub-core/fs/jfs.c: Likewise.
17406 * grub-core/fs/minix.c: Likewise.
17407 * grub-core/fs/ufs.c: Likewise.
17408 * grub-core/fs/btrfs.c: Likewise.
17409 * grub-core/commands/i386/pc/play.c: Likewise.
17410
cbf597af
SJ
174112011-06-26 Szymon Janc <szymon@janc.net.pl>
17412
17413 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
17414 pointer checks before calling grub_free().
17415 * grub-core/commands/wildcard.c (match_devices): Likewise.
17416 * grub-core/commands/wildcard.c (match_files): Likewise.
17417 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
17418 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
17419 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
17420 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
17421 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
17422 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
17423 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
17424 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
17425 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
17426
6295b32f
P
174272011-06-25 Patrick <p55@mailinator.com>
17428
17429 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
17430
77c0840b
VS
174312011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
17432
17433 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
17434 (grub_pxe_send): Likewise.
17435 (GRUB_MOD_INIT): Fix types.
17436
40ea05de
SJ
174372011-06-24 Szymon Janc <szymon@janc.net.pl>
17438
17439 * grub-core/io/xzio.c: Fix code style issues
17440
90162423
MRA
174412011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
174422011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
423a1849
MRA
17443
17444 Network infrastructure.
17445 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
17446
17447 * include/grub/net/arp.h: New file.
90162423
MRA
17448 * include/grub/net/device.h: Likewise.
17449 * include/grub/net/ethernet.h: Likewise.
17450 * include/grub/net/ip.h: Likewise.
17451 * include/grub/net/netbuff.h: Likewise.
17452 * include/grub/net/tftp.h: Likewise.
17453 * include/grub/net/udp.h: Likewise.
17454 * include/grub/ieee1275/ofnet.h: Likewise.
17455 * include/grub/emu/export.h: Likewise.
17456 * include/grub/net.h: Likewise.
17457 * grub-core/net/arp.c: Likewise.
17458 * grub-core/net/ethernet.c: Likewise.
17459 * grub-core/net/ip.c: Likewise.
17460 * grub-core/net/udp.c: Likewise.
17461 * grub-core/net/tftp.c: Likewise.
17462 * grub-core/net/netbuff.c: Likewise.
17463 * grub-core/net/net.c: Likewise.
17464 * grub-core/net/drivers/emu/emunet.c: Likewise.
17465 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
17466 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
17467 export.h.
17468 * grub-core/Makefile.core.def (net): New module.
17469 (tftp): Likewise.
17470 (ofnet): Likewise.
17471 (emunet): Likewise.
17472 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
17473 network protocols.
17474 * grub-core/kern/device.c (grub_net_open) : New variable.
17475 (grub_device_open): Handle network device.
17476 (grub_device_close): Likewise.
17477 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
17478 (grub_grubnet_fini): Likewise.
17479 (grub_file_seek): Seek in network device.
17480 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
17481 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
17482 network root.
17483 (grub_machine_fini): Call grub_grubnet_fini.
17484 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
17485 network.
17486 (grub_ieee1275_get_aliasdevname): New function.
17487 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
17488 Add unofficial Solaris network info.
17489 (grub_multiboot_make_mbi): Likewise.
17490 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
17491 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
17492 * include/grub/device.h (grub_fs): Removed.
17493 * include/grub/err.h (grub_err_t): Add network-related values.
17494 * include/grub/i386/pc/pxe.h: Removed bootp parts.
17495 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
17496 (grub_ieee1275_get_aliasdevname): New proto.
17497 * include/grub/net.h: Rewritten.
423a1849 17498
031f22a0
VS
174992011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
17500
17501 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
17502 names.
17503
4388ca72
VS
175042011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
17505
17506 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
17507 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
17508 it truncates the output.
17509 Reported by: Ximin Luo.
17510
98e2f506
VS
175112011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
17512
17513 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
17514
2a5e94d8
VS
175152011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
17516
17517 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
17518 partmap before abstraction.
17519
535c1910
AK
175202011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
17521
17522 * util/grub-mkconfig_lib.in: Add missing quotes.
17523
bc09e1a2
VS
175242011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
17525
17526 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
17527 old method if mountinfo would return /dev/root and /dev/root doesn't
17528 exist.
17529
290766fb
VS
175302011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
17531
17532 ZFS zlib support
17533
17534 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
17535 (decomp_table): Add zlib entries.
17536 (zio_read): USe 8 bits for compression function rather than 3.
17537 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
17538
175392011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
17540
17541 * grub-core/disk/ahci.c: Add missing license statements.
17542 * grub-core/fs/romfs.c: Likewise.
17543 * grub-core/lib/ia64/setjmp.S: Likewise.
17544 * grub-core/loader/i386/pc/freedos.c: Likewise.
17545 * grub-core/loader/ia64/efi/linux.c: Likewise.
17546 * grub-core/video/colors.c: Likewise.
17547 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
17548
5ab3f48a
VS
175492011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
17550
17551 AHCI support.
17552
17553 * grub-core/Makefile.core.def (ata_pthru): Removed.
17554 (ahci): New module.
17555 (pata): Likewise.
17556 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
17557 on unload.
17558 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
17559 readwrite.
17560 (grub_hdparm_do_check_powermode_cmd): Likewise.
17561 (grub_hdparm_do_smart_cmd): Likewise.
17562 (grub_hdparm_set_val_cmd): Likewise.
17563 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
17564 * grub-core/disk/ahci.c: New file.
17565 * grub-core/disk/ata.c: Factor out the low-level part into ...
17566 * grub-core/disk/pata.c: ... here.
17567 * grub-core/disk/ata_pthru.c: Contents moved to ...
17568 * grub-core/disk/pata.c: ... here.
17569 * grub-core/disk/scsi.c (grub_scsi_names): New array.
17570 (grub_scsi_iterate): Use grub_scsi_names.
17571 (grub_scsi_open): Likewise.
17572 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
17573 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
17574 (grub_ata_regs_t): New struct.
17575 (grub_disk_ata_pass_through_parms): Likewise.
17576 (grub_ata_device): Renamed to ...
17577 (grub_ata): ... this.
17578 (grub_ata_dev): New struct.
17579 Removed all low-level inline functions.
17580 * include/grub/scsi.h: Add PATA and AHCI subsystems.
17581 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
17582 iterate hooks and open. All users updated.
17583 * util/grub-install.in: Handle AHCI disk module.
17584
c31dc5f5
SJ
175852011-06-23 Szymon Janc <szymon@janc.net.pl>
17586
17587 Add support for DRI and RSTn markers in JPEG files.
17588
17589 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
17590 (JPEG_MARKER_RST0): Likewise.
17591 (JPEG_MARKER_RST1): Likewise.
17592 (JPEG_MARKER_RST2): Likewise.
17593 (JPEG_MARKER_RST3): Likewise.
17594 (JPEG_MARKER_RST4): Likewise.
17595 (JPEG_MARKER_RST5): Likewise.
17596 (JPEG_MARKER_RST6): Likewise.
17597 (JPEG_MARKER_RST7): Likewise.
17598 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
17599 (grub_jpeg_decode_dri): New function.
17600 (grub_jpeg_decode_sos): Move image data related part into
17601 grub_jpeg_decode_data function.
17602 (grub_jpeg_decode_data): New function.
17603 (grub_jpeg_reset): New function.
17604 (grub_jpeg_decode_jpeg): Handle new markers.
17605
fe12fd5b
VS
176062011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
17607
17608 * util/ieee1275/ofpath.c (check_sas): Close fd.
17609 (main): Free of_path.
17610 Reported by: David Volgyes <dvolgyes>.
17611
03147f46
VS
176122011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
17613
17614 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
17615 Reported by: David Volgyes <dvolgyes>.
17616
cad3237f
VS
176172011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
17618
17619 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
17620 file after stat.
17621 Reported by: David Volgyes <dvolgyes>.
17622
13548d26
VS
176232011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
17624
17625 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
17626
17627 Reported by: David Volgyes <dvolgyes>.
17628
e061a1b5
VS
176292011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
17630
17631 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
17632 Prevent memory leak.
17633
1abe47dc
VS
176342011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
17635
17636 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
17637 (main): Close file.
e061a1b5 17638 Reported by: David Volgyes <dvolgyes>.
1abe47dc 17639
fbc62666
VS
176402011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
17641
17642 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
17643 to continue if allocation is failed.
17644
17645 Reported by: David Volgyes <dvolgyes>.
17646
e98c83e9
DV
176472011-06-23 David Volgyes <dvolgyes>
17648
17649 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
17650 dereference.
17651
a199a8cd
VS
176522011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
17653
17654 Fix spurious warning.
17655
17656 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
17657 (acorn_partition_map_find): Use .bin member.
17658
e2d1dba0
VS
176592011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
17660
17661 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
17662 /dev/root as a valid device.
17663
8a5d6919
JM
176642011-06-23 Jim Meyering <meyering@redhat.com>
17665
e2d1dba0
VS
17666 Avoid NULL deref in grub_device_open.
17667
8a5d6919
JM
17668 * grub-core/kern/device.c (grub_device_open): Don't dereference
17669 a NULL pointer upon failed grub_env_get.
17670
f7db6f4a
VS
176712011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
17672
17673 Support non-512B sectors and agglomerate reads.
17674
17675 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
17676 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
17677 (disk_io_guid): Removed.
17678 (make_devices): Locate solely by BlockIO.
17679 (grub_efidisk_open): Fill log_sector_size and total_sectors.
17680 (grub_efidisk_read): Use read_blocks.
17681 (grub_efidisk_write): Use write_blocks.
17682 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
17683 log_sector_size.
17684 (get_safe_sectors): Handle non-512B sectors.
17685 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
17686 sectors.
17687 (grub_biosdisk_write): Handle non-512B sectors.
17688 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
17689 (grub_scsi_read): Remove special non-512B block handling (now handled
17690 one level up).
17691 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
17692 and do sanity checks.
17693 (grub_disk_adjust_range): Handle non-512B sectors.
17694 (transform_sector): New function.
17695 (grub_disk_read_small): Likewise.
17696 (grub_disk_read): Rewritten.
17697 (grub_disk_write): Handle non-512B sectors.
17698 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
17699 log_sector_size.
17700 (open_device): Use log_sector_size.
17701 (grub_util_biosdisk_read): Likewise.
17702 (grub_util_biosdisk_write): Likewise.
17703 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
17704 non-512B sectors.
17705 (pc_partition_map_embed): Likewise.
17706 * include/grub/disk.h (grub_disk): New field log_sector_size.
17707 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
17708 (GRUB_DISK_CACHE_BITS): Increased to 6.
17709 * util/grub-fstest.c (fstest): New command testload.
17710 (argp_parser): Likewise.
17711
881ac815
RM
177122011-06-16 Robert Millan <rmh@gnu.org>
17713
17714 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
17715 `ata' driver on kernel of FreeBSD 9.
17716
17717 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
17718 (get_ataraid_disk_name): New functions.
17719 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
17720 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
17721 get_ataraid_disk_name() and get_ada_disk_name().
17722
1e9aef7d
CW
177232011-06-13 Colin Watson <cjwatson@ubuntu.com>
17724
17725 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
17726 input format.
17727
351c7c8a
CW
177282011-05-29 Colin Watson <cjwatson@ubuntu.com>
17729
17730 * docs/grub.texi (Obtaining and Building GRUB): Substitute
17731 `ftp.gnu.org' for `alpha.gnu.org'.
17732
6b4e6430
CW
177332011-05-27 Colin Watson <cjwatson@ubuntu.com>
17734
17735 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
17736 partitions under /dev/disk/by-id/.
17737
c64db050
CW
177382011-05-27 Colin Watson <cjwatson@ubuntu.com>
17739
17740 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
17741 after ten consecutive open failures. Scanning all the way up to
17742 10000 is excessive and can cause serious performance problems in
17743 some configurations.
17744 Fixes Ubuntu bug #787461.
17745
245f4aba
VS
177462011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
17747
17748 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
17749 opening new one.
17750
f767c929
VS
177512011-05-21 Colin Watson <cjwatson@ubuntu.com>
177522011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
17753
17754 Don't stat devices unless we have to.
17755
17756 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
17757 dir == /dev/mapper.
17758 (grub_guess_root_device): Use already known os_dev if possible.
17759 * grub-core/kern/emu/hostdisk.c
17760 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
17761 if device is known to be a dm one.
17762
f35fa3a6
CW
177632011-05-20 Colin Watson <cjwatson@ubuntu.com>
17764
17765 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
17766 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
17767 Reported by: Pawel Tecza.
17768
9a79fcf2
VS
177692011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
17770
17771 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
17772 (lsefisystab): Likewise.
17773 (lssal): Likewise.
17774 (lsefimmap): Likewise.
17775 (hdparm): Enable on qemu-mips.
17776 (setjmp): Add ia64 nodist.
17777 (serial): Simplify tags.
17778
63e3eea9
CW
177792011-05-18 Colin Watson <cjwatson@ubuntu.com>
17780
17781 * Makefile.util.def (grub-ofpathname): Install manual page.
17782
09728256
CW
177832011-05-18 Colin Watson <cjwatson@ubuntu.com>
17784
17785 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
17786
8b63a142
CW
177872011-05-18 Colin Watson <cjwatson@ubuntu.com>
17788
17789 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
17790
e775d8ed
VS
177912011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
17792
17793 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
17794 into dprintf.
17795
bf947d36
VS
177962011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
17797
17798 Use full 64-bit division.
17799
17800 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
17801 (grub_divmod64): ... this.
17802 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
17803 version.
17804
b84f26c5
CW
178052011-05-18 Colin Watson <cjwatson@ubuntu.com>
17806
17807 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
17808 `source'.
17809
5626056f
CW
178102011-05-18 Colin Watson <cjwatson@ubuntu.com>
17811
17812 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
17813 to avoid accidents when debugging with 'sh -x'.
17814 * grub-core/gensyminfo.sh.in: Likewise.
17815 * tests/example_scripted_test.in: Likewise.
17816 * tests/grub_cmd_regexp.in: Likewise.
17817 * tests/grub_script_blanklines.in: Likewise.
17818 * tests/grub_script_dollar.in: Likewise.
17819 * tests/grub_script_expansion.in: Likewise.
17820 * tests/grub_script_final_semicolon.in: Likewise.
17821 * tests/partmap_test.in: Likewise.
17822 * tests/util/grub-shell-tester.in: Likewise.
17823 * tests/util/grub-shell.in: Likewise.
17824
e2965f4a
CW
178252011-05-18 Colin Watson <cjwatson@ubuntu.com>
17826
17827 Move gfxmenu color handling to video, so that gfxterm can use it
17828 too.
17829
17830 * grub-core/gfxmenu/named_colors.c: Move to ...
17831 * grub-core/video/colors.c: ... here. Rename
17832 grub_gui_get_named_color to grub_video_get_named_color.
17833 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
17834 * grub-core/video/colors.c (my_isxdigit): ... here.
17835 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
17836 Move to ...
17837 * grub-core/video/colors.c (parse_hex_color_component): ... here.
17838 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
17839 to ...
17840 * grub-core/video/colors.c (grub_video_parse_color): ... here.
17841
17842 * include/grub/gui.h (grub_gui_color_t): Move to ...
17843 * include/grub/video.h (grub_video_rgba_color_t): ... here.
17844 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
17845 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
17846 * include/grub/gui.h (grub_gui_map_color): Move to ...
17847 * include/grub/video.h (grub_video_map_rgba_color): ... here.
17848 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
17849 to ...
17850 * include/grub/video.h (grub_video_get_named_color): ... here.
17851 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
17852 * include/grub/video.h (grub_video_parse_color): ... here.
17853
17854 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
17855 video/colors.c.
17856 (gfxmenu): Remove gfxmenu/named_colors.c.
17857 (video) [videomodules]: Add video/colors.c.
17858
17859 Add a background_color command.
17860
17861 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
17862 function.
17863 (GRUB_MOD_INIT): Register background_color command.
17864 (GRUB_MOD_FINI): Unregister background_color command.
17865 (redraw_screen_rect): Allow blend/replace of text layer to be
17866 controlled independently from whether there is a background bitmap.
17867 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
17868 changing bitmap.
17869
1e4b4390
VS
178702011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
17871
26618ff0
VS
17872 Patch BPB in ntldr and chainloader --bpb.
17873
1e4b4390
VS
17874 * grub-core/fs/fat.c: Include grub/fat.h.
17875 (grub_fat_bpb): Moved to ...
17876 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
17877 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
17878 grub/ntfs.h.
17879 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
17880 Moved from here...
17881 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
17882 here.
17883 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
17884 New function.
17885 (grub_chainloader_cmd): Patch BPB if --bpb is given.
17886 (GRUB_MOD_INIT): Show --bpb.
17887 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
17888 * grub-core/normal/main.c (features): New variable.
17889 (GRUB_MOD_INIT): Set feature_* variables.
17890 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
17891 proto.
17892 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
17893
cf02731e
VS
178942011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
17895
17896 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
17897 for cleanness.
17898
e3a1073f
VS
178992011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
17900
17901 FreeDOS direct loading support.
17902
17903 * docs/grub.texi (Supported OS): Add FreeDOS.
17904 * grub-core/Makefile.core.def (freedos): New module.
17905 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
17906 variable.
17907 (grub_relocator16_boot): Handle %ebx.
17908 * grub-core/lib/i386/relocator16.S: Likewise.
17909 * grub-core/loader/i386/pc/freedos.c: New file.
17910
05caa461
VS
179112011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
17912
17913 Long Linux command line support.
17914
17915 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
17916 (maximal_cmdline_size): New variable.
17917 (allocate_pages): Use maximal_cmdline_size.
17918 (grub_cmd_linux): Set and use maximal_cmdline_size.
17919 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
17920 (allocate_pages): Use maximal_cmdline_size.
17921 (grub_cmd_linux): Set and use maximal_cmdline_size.
17922 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
17923 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
17924 and cmdline_size.
17925
a2491e23
VS
179262011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
179272011-05-18 Colin Watson <cjwatson@ubuntu.com>
17928
17929 Improve devmapper support
17930
17931 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
17932 (grub_util_is_lvm): New function.
17933 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
17934 than lvm if not dmraid.
17935 Handle mapped md nodes.
17936 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
17937 (grub_util_device_is_mapped): ... this. Make always available. All users
17938 updated.
17939 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
17940 (convert_system_partition_to_system_disk): Handle lvm, mpath and
17941 dmraid nodes.
17942 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
17943
6ad6223e
VS
179442011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
17945
17946 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
17947
17948 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
17949 * grub-core/modinfo.sh.in: New file.
17950 * grub-core/Makefile.core.def (modinfo.sh): New script.
17951 * util/grub-mknetdir.in: Use modinfo.sh.
17952 * util/grub-mkrescue.in: Likewise.
17953
543a8f6e
VS
179542011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
17955
17956 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
17957 Fix potential usage of Elf32 instead of Elf64 when compiling on
17958 32-bit architecture. Add endianness macros while on it.
17959
4959e111
VS
179602011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
17961
17962 Use mipsel- rather than mips- in directories involving mipsel ports to
17963 allow both endiannesses coexist.
17964
17965 * configure.ac: proparate target_cpu=mipsel rather than resetting to
17966 mips. All conditions adjusted.
17967 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
17968 variable.
17969 * util/grub-install.in: Adjust conditions to take renaming into account.
17970 * util/grub-mkimage.c (image_targets): Likewise. New target
17971 mips-qemu_mips-elf for bigendian mips.
17972
35341bbc
VS
179732011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
17974
17975 Avoid unnecessary copying on MIPS.
17976
17977 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
17978 early if src == dest.
17979 * util/grub-mkimage.c (generate_image): Arange for src == dest if
17980 compression is none.
17981
b772baed
VS
179822011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
17983
17984 Reduce memory footprint on SGI by putting modules before the kernel
17985 as opposed to after.
17986
17987 * grub-core/Makefile.core.def (kernel): Increase linking address.
17988 (none_decompress): Likewise.
17989 (xz_decompress): Likewise.
17990 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
17991 address.
17992 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
17993 layout change.
17994 (grub_arch_modules_addr): New function.
17995 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
17996 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
17997 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
17998 here.
17999 * grub-core/kern/mips/startup.S (total_size): Rename to ...
18000 (grub_total_modules_size): ... this. Make global.
18001 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
18002 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
18003 New definition.
18004 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
18005 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
18006 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
18007 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
18008 * util/grub-mkimage.c (image_target_desc): New flag
18009 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
18010 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
18011 (generate_image): Handle images with modules before kernel.
18012
566a1917
VS
180132011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
18014
18015 Prevent potential loss of memory map by overwrite on qemu-mips.
18016
18017 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
18018 Save ram size in $s4.
18019 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
18020 All users changed to grub_arch_memsize.
18021 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
18022 Loongson.
18023 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
18024 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
18025 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
18026 external variable.
18027
5d420cd9
CW
180282011-05-17 Colin Watson <cjwatson@ubuntu.com>
18029
18030 * .bzrignore: Remove grub-dumpbios.
18031
d064b830
CW
180322011-05-17 Colin Watson <cjwatson@ubuntu.com>
18033
18034 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
18035 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
18036 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
18037 existing options which append).
18038 * docs/grub.texi (Simple configuration): Document new options.
18039 Reported by: Ian Jackson. Fixes Debian bug #617538.
18040
3ca2b466
CW
180412011-05-17 Colin Watson <cjwatson@ubuntu.com>
18042
18043 * util/grub-fstest.c (cmd_cat): New function.
18044 (fstest): Handle CMD_CAT.
18045 (options): Add cat.
18046 (argp_parser): Handle cat.
18047
24c9143a
CW
180482011-05-17 Colin Watson <cjwatson@ubuntu.com>
18049
18050 * Makefile.util.def (grub-bin2h): Don't install.
18051 * docs/man/grub-bin2h.h2m: Remove.
18052
90f7ac19
VS
180532011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
18054
18055 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
18056 place.
18057
8d4a5178
VS
180582011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
18059
18060 Reenable qemu-mips port.
18061
18062 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
18063 Fix small arc bug while on it.
18064 * gentpl.py: Handle qemu_mips.
18065 * grub-core/Makefile.am: Likewise.
18066 * grub-core/Makefile.core.def: Likewise.
18067 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
18068 inappropriate includes.
18069 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
18070 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
18071 * grub-core/kern/main.c (grub_modules_get_end)
18072 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
18073 * grub-core/kern/mips/qemu-mips: Moved to ..
18074 * grub-core/kern/mips/qemu_mips: ... this.
18075 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
18076 (grub_machine_init): Call terminfo_init and serial_init.
18077 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
18078 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
18079 New variable.
18080 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
18081 parameter passing.
18082 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
18083 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
18084 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
18085 * include/grub/mips/qemu_mips/cmos.h: New file.
18086 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
18087 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
18088 Removed.
18089 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
18090 Use correct mips-style address.
18091 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
18092 (GRUB_TICKS_PER_SECOND): Removed.
18093 (grub_get_rtc): Likewise.
18094 (grub_cpu_idle): Likewise.
18095 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
18096 New definition.
18097 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
18098 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
18099 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
18100 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
18101 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
18102 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
18103 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
18104 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
18105
400b9371
VS
181062011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
18107
18108 SGI ARCS port.
18109
18110 * Makefile.util.def (libgrubmods.a): Add dvh.c.
18111 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
18112 platforms.
18113 * configure.ac: New target mips-arc.
18114 * gentpl.py: Likewise.
18115 * grub-core/Makefile.am: Likewise.
18116 * grub-core/Makefile.core.def: Likewise.
18117 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
18118 (none_decompress): Likewise.
18119 (lsdev): New module.
18120 (datetime): Use lib/arc/datetime.c on ARC.
18121 (part_dvh): New module.
18122 * grub-core/commands/arc/lsdev.c: New file.
18123 * grub-core/disk/arc/arcdisk.c: Likewise.
18124 * grub-core/kern/mips/arc/init.c: Likewise.
18125 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
18126 aligned addresses.
18127 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
18128 support.
18129 (grub_arch_dl_relocate_symbols): Likewise.
18130 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
18131 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
18132 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
18133 platforms.
18134 * grub-core/lib/arc/datetime.c: New file.
18135 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
18136 pci.h on non-loongson.
18137 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
18138 (grub_linux_boot): Set unused registers to 0.
18139 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
18140 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
18141 * grub-core/mmap/mips/uppermem.c: ...here.
18142 * grub-core/partmap/dvh.c: New file.
18143 * grub-core/term/arc/console.c: Likewise.
18144 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
18145 (grub_terminfo_set_current): Add terminal "arc".
18146 (grub_terminfo_readkey): Support ARC sequences.
18147 * include/grub/arc/arc.h: New file.
18148 * include/grub/arc/console.h: Likewise.
18149 * include/grub/disk.h (grub_disk_dev_id): Add
18150 GRUB_DISK_DEVICE_ARCDISK_ID.
18151 * include/grub/mips/arc/kernel.h: New file.
18152 * include/grub/mips/arc/memory.h: Likewise.
18153 * include/grub/mips/arc/time.h: Likewise.
18154 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
18155 * include/grub/mips/kernel.h (grub_halt): ... here.
18156 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
18157 here...
18158 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
18159 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
18160 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
18161 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
18162 proto.
18163 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
18164 from here ...
18165 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
18166 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
18167 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
18168 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
18169 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
18170 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
18171 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
18172 (grub_phys_addr_t): Moved from here ...
18173 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
18174 (grub_vtop): Moved from here ...
18175 * include/grub/mips/memory.h (grub_vtop): ... here.
18176 (grub_map_memory): Moved from here ...
18177 * include/grub/mips/memory.h (grub_map_memory): ... here.
18178 (grub_unmap_memory): Moved from here ...
18179 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
18180 (grub_machine_mmap_iterate): Moved from here ...
18181 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
18182 (grub_mmap_get_lower): Moved from here ...
18183 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
18184 (grub_mmap_get_upper): Moved from here ...
18185 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
18186 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
18187 here ...
18188 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
18189 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
18190 here ...
18191 * include/grub/mips/time.h (grub_get_rtc): ... here.
18192 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
18193 here ...
18194 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
18195 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
18196 here ...
18197 * include/grub/mips/time.h (grub_cpu_idle): ... here.
18198 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
18199 definition.
18200 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
18201 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
18202 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
18203 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
18204 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
18205 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
18206 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
18207 (GRUB_MACHINE_LINK_ADDR): Likewise.
18208 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
18209 to 6.
18210 * util/grub-install.in: Run dvhtool on ARC.
18211 * util/grub-mkimage.c (image_targets): Add mips-arc.
b6296b3f 18212 (generate_image): Handle ECOFF output for mips-arc.
400b9371 18213
c8ecc840
VS
182142011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
18215
18216 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
18217 blocks.
18218
153a4b55
VS
182192011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
18220
18221 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
18222 after enabling port.
18223
ff44d107
VS
182242011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
18225
18226 Skip incorrect USB devices.
18227
18228 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
18229 configcnt == 0.
18230 * include/grub/usb.h (grub_usb_err_t): New enum value
18231 GRUB_USB_ERR_BADDEVICE.
18232
638dbe4f
VS
182332011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
18234
18235 Fuloong video init support.
18236
18237 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
18238 well.
18239 (grub_vga_read_arx): New function.
18240 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
18241 definition.
18242 (framebuffer): New members io, mmioptr and mmiobase.
18243 (read_sis_cmd): New function.
18244 (write_sis_cmd): Likewise.
18245 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
18246 rather than 640x400.
18247 * grub-core/video/sis315_init.c: New file.
18248
c3fc520c
VS
182492011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
18250
18251 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
18252 non-loongson.
18253 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
18254 to grub_dl_register_symbol.
18255
67b1e5c9
VS
182562011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
18257
18258 Fix compilation errors.
18259
18260 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
18261 potentially unused.
18262 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
18263 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
18264 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
18265 to loongson machines.
18266
b756f75f
VS
182672011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
18268
18269 Several FS mtime support.
18270
18271 * grub-core/fs/affs.c (grub_affs_time): New struct.
18272 (grub_affs_file): New field mtime.
18273 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
18274 type. Removed 'size'. New field 'di'. All users updated.
18275 (grub_affs_mount): Simplify checsum checking.
18276 (grub_affs_iterate_dir): New helper grub_affs_create_node.
18277 (grub_affs_dir): Handle mtime.
18278 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
18279 (grub_cpio_dir): Likewise.
18280 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
18281 (grub_hfs_filerec): New field mtime.
18282 (grub_hfs_dir): Handle mtime.
18283 (grub_hfs_mtime): New function.
18284 (grub_hfs_fs): Register grub_hfs_mtime.
18285 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
18286 (grub_iso9660_dir): New field mtime.
18287 (grub_fshelp_node): New field dirent.
18288 (iso9660_to_unixtime): New function.
18289 (iso9660_to_unixtime2): Likewise.
18290 (grub_iso9660_read_symlink): Use node->dirent.
18291 (grub_iso9660_iterate_dir): Likewise.
18292 (grub_iso9660_dir): Set mtime.
18293 (grub_iso9660_mtime): New function.
18294 (grub_iso9660_fs): Register grub_iso9660_mtime.
18295 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
18296 (grub_jfs_inode): New fields atime, ctime and mtime.
18297 (grub_jfs_dir): Set mtime.
18298 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
18299 * grub-core/fs/ntfs.c (list_file): Set mtime.
18300 (grub_ntfs_dir): Likewise.
18301 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
18302 (grub_reiserfs_iterate_dir): Set mtime.
18303 (grub_reiserfs_dir): Likewise.
18304 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
18305 (grub_fshelp_node): Likewise.
18306 (grub_sfs_iterate_dir): Set mtime.
18307 (grub_sfs_dir): Likewise.
18308 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
18309 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
18310 (grub_xfs_inode): New fields atime, mtime, ctime.
18311 (grub_xfs_dir): Set mtime.
18312 * include/grub/datetime.h (grub_datetime2unixtime): New function.
18313 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
18314 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
18315
18316 Support UDF symlinks.
18317
18318 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
18319 (grub_ufs_read_symlink): New function. All users updated.
18320
18321 Check amiga partmap checksum.
18322
18323 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
18324 (grub_amiga_partition): Likewise.
18325 (amiga_partition_map_checksum): New function.
18326 (amiga_partition_map_iterate): Check checksum.
18327
5470225d
VS
183282011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
18329
18330 ROMFS support.
18331
18332 * Makefile.util.def (libgrubmods.a): Add romfs.
18333 * grub-core/Makefile.core.def (romfs): New module.
18334 * grub-core/fs/romfs.c: New file.
18335
d4680a35
VS
183362011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
18337
18338 Squashfs v4 support.
18339
18340 * Makefile.util.def (libgrubmods.a): Add squash4.
18341 * grub-core/Makefile.core.def (squash4): New module.
18342 * grub-core/fs/squash4.c: New file.
18343 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
18344 disk_input_start, disk_input.
18345 (get_byte): Handle disk_input.
18346 (grub_zlib_disk_read): New function.
18347 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
18348
bcb18e74
FZ
183492011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
183502011-05-15 Feiran Zheng <famcool@gmail.com>
18351
18352 * Makefile.util.def (libgrubmods.a): Add minix3.
18353 * grub-core/Makefile.core.def (minix3): New module.
18354 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
18355 (GRUB_MINIX_BSIZE): Removed.
18356 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
18357 (grub_minix_ino_t): New type.
18358 (grub_minix_le_to_cpu_ino): New macro.
18359 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
18360 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
18361 (grub_minix_data): New field block_size.
18362 (grub_minix_read_file): Handle 64-bit correctly.
18363 * grub-core/fs/minix3.c: New file.
18364
32297d5f
TG
183652011-05-15 Tristan Gingold <gingold@free.fr>
183662011-05-15 Robert Millan <rmh.grub@aybabtu.com>
183672011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
18368
18369 IA64 support.
18370
18371 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
18372 * configure.ac: Add ia64-efi target.
18373 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
18374 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
18375 * gentpl.py: Add ia64_efi platform.
18376 Rename x86_efi to efi and Add ia64-efi. All users updated.
18377 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
18378 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
18379 Remove kern/generic/rtc_get_time_ms.c on EFI.
18380 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
18381 kern/ia64/dl_helper.c on ia64-efi.
18382 Add kern/emu/cache.c on emu.
18383 (linux): Use on loader/ia64/efi/linux.c on ia64.
18384 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
18385 whether symbol is a function.
18386 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
18387 (grub_symbol): New field 'isfunc'.
18388 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
18389 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
18390 (grub_dl_load_segments): Place all sections into the same region.
18391 [__ia64__]: Create trampolines and got.
18392 [GRUB_MACHINE_EMU]: Call mprotect.
18393 (grub_dl_resolve_symbols): Resolve symbol type as well.
18394 [__ia64__]: Create function descriptors.
18395 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
18396 (grub_rtc_get_time_ms): ... this. Expressions simplified.
18397 (grub_get_rtc): New function.
18398 * grub-core/kern/emu/cache.c [__ia64__]: New file.
18399 * grub-core/kern/emu/cache.S: Renamed to ...
18400 * grub-core/kern/emu/cache_s.S: ... this.
18401 [__ia64__]: Add a nop.
18402 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
18403 [__ia64__]: New function.
18404 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
18405 * grub-core/kern/ia64/dl.c: New file.
18406 * grub-core/kern/ia64/dl_helper.c: Likewise.
18407 * grub-core/kern/ia64/efi/init.c: New file.
18408 * grub-core/kern/ia64/efi/startup.S: Likewise.
18409 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
18410 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
18411 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
18412 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
18413 * grub-core/loader/ia64/efi/linux.c: New file.
18414 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
18415 (GRUB_MOD_DEP): Likewise.
18416 (grub_dl) [__ia64__]: New fields got and tramp.
18417 (grub_dl): New field 'base'.
18418 (grub_dl_register_symbol): New argument isfunc. All users updated.
18419 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
18420 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
18421 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
18422 (grub_ia64_dl_get_tramp_got_size): New proto.
18423 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
18424 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
18425 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
18426 * include/grub/efi/api.h: Skip call wrappers on ia64.
18427 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
18428 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
18429 * include/grub/elf.h (ELF_ST_INFO): New definition.
18430 * include/grub/ia64/efi/kernel.h: New file.
18431 * include/grub/ia64/efi/memory.h: Likewise.
18432 * include/grub/ia64/efi/time.h: Likewise.
18433 * include/grub/ia64/kernel.h: Likewise.
18434 * include/grub/ia64/setjmp.h: Likewise (from glibc).
18435 * include/grub/ia64/time.h: New file.
18436 * include/grub/ia64/types.h: Likewise.
18437 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
18438 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
18439 New protos.
18440 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
18441 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
18442 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
18443 * util/grub-mkimage.c (image_target_desc): New field pe_target.
18444 All users updated.
18445 (EFI64_HEADER_SIZE): New definition. All users updated.
18446 (image_targets): Add ia64-efi.
18447 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
18448 jumpers_addr. All users updated.
18449 Create function descriptors.
18450 (count_funcs): New function.
18451 (unaligned_uint32): New struct.
18452 (MASK20): New definition.
18453 (MASK19): Likewise.
18454 (MASKF21): Likewise.
18455 (add_value_to_slot_20b): New function.
18456 (add_value_to_slot_21_real): Likewise.
18457 (add_value_to_slot_21): Likewise.
18458 (ia64_kernel_trampoline): New struct.
18459 (nopm): New variable.
18460 (jump): Likewise.
18461 (make_trampoline): New function.
18462 (relocate_addresses): Handle ia64.
18463 (make_reloc_section): Likewise.
18464 (load_image): Likewise.
18465
983b414d
VS
184662011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
18467
18468 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
18469 warning. Move variables before code while on it.
18470
5d063cdc
VS
184712011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
18472
18473 Fuloong support.
18474
18475 * configure.ac: Rename yeeloong platform to loongson. All users updated.
18476 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
18477 * grub-core/boot/mips/loongson/fuloong.S: New file.
18478 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
18479 Explicitly init CS5536.
18480 [FULOONG]: Don't use serial until CS5536 is available.
18481 Set GPIO based on dumps.
18482 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
18483 [FULOONG]: Handle GPIO and memory controller differences.
18484 Parse machine type in $a2.
18485 * grub-core/boot/mips/startup_raw.S: Determine and save the
18486 architecture.
18487 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
18488 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
18489 init on architecture type.
18490 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
18491 SIS315E. Don't init at_keyboard on fuloong.
18492 (grub_halt): Support Fuloong.
18493 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
18494 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
18495 (loongson_machtypes): New array.
18496 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
18497 type.
18498 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
18499 config. All users updated. Handle CS5536 serial.
18500 * grub-core/term/serial.c (grub_serial_register): Conditionalise
18501 default port on machine type. Register serial as inactive.
18502 * grub-core/video/sis315pro.c: New file.
18503 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
18504 definition.
18505 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
18506 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
18507 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
18508 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
18509 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
18510 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
18511 to ...
18512 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
18513 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
18514 definition.
18515 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
18516 (grub_arch_machine): New extern var.
18517 * include/grub/mips/loongson/serial.h
18518 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
18519 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
18520 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
18521 (GRUB_MACHINE_SERIAL_PORT0): ... this.
18522 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
18523 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
18524 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
18525 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
18526 * include/grub/term.h (grub_term_register_input_inactive): New inline
18527 function.
18528 (grub_term_register_output_inactive): Likewise.
18529 * include/grub/video.h (grub_video_driver_id): New value
18530 GRUB_VIDEO_DRIVER_SIS315PRO.
18531 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
18532 New field "names". All users updated.
18533 New field value IMAGE_FULOONG_FLASH.
18534 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
18535
6ada82d1
JU
185362011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
18537
18538 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
18539 and add some clarification.
18540
90c571a4
VS
185412011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
18542
18543 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
18544 platforms if kernel is compressed.
18545
de04eecf
VS
185462011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
18547
18548 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
18549 unused modules since currently referrence counter isn't reliable and
18550 there isn't much memory to recover there anyway.
18551
57688121
VS
185522011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
18553
18554 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
18555 rather than resetting it to allow modules to reference themselves
18556 in init.
18557
3d2c7e35
VS
185582011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
18559
18560 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
18561 counter on dependencies since grub_dl_unref already handles this.
18562
b25db218
VS
185632011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
18564
18565 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
18566 on error if not already done.
18567
25a45338
VS
185682011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
18569
18570 Fix few potential memory misusage.
18571
18572 * grub-core/font/font.c (load_font_index): Don't free char_index to
18573 avoid double free.
b25db218
VS
18574 (grub_font_load): Zero-fill font at alloc for safety.
18575 Close file on error.
18576 (free_font): Free bmp_idx.
25a45338 18577
0cac83df
VS
185782011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
18579
18580 * docs/grub.texi (Installation): Fix several outdated claims.
18581
2217a143
VS
185822011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
18583
18584 Handle module_license on windows.
18585
18586 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
18587 sections shifted.
18588 (insert_string): Make argument const char * instead of char *.
18589 (write_section_data): Handle long section names.
18590 Handle module_license.
18591
d4de6b01
VS
185922011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
18593
18594 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
18595 handle class-free menuentries.
18596 (grub_normal_add_menu_entry): Add a check to be sure.
18597
4c2a3b43
VS
185982011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
18599
18600 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
18601 PgUp and PgDown.
18602
85c6210f
VS
186032011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
18604
18605 * configure.ac: Bump version to 1.99.
18606
36084912
VS
186072011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
18608
18609 Give ATA device a bit more time on first try in order to allow disks
18610 to spin up.
18611
18612 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
18613 if dev->present is 1. Reset dev->present on failure.
18614 (grub_ata_device_initialize): Set dev->present to 1.
18615 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
18616 (grub_ata_device): New member 'present'.
18617
bda0e219
VS
186182011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
18619
18620 * util/grub-mkimage.c (generate_image): Update hash.
18621
19e1c41b
VS
186222011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
18623
18624 Flush caches on DMA memory.
18625
18626 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
18627 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
18628 (grub_dma_free): Likewise.
18629 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
18630
91bbcc0c
VS
186312011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
18632
18633 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
18634 to avoid asm treating ld and sd as macros.
18635
60ddfad3
VS
186362011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
18637
18638 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
18639 decompressor.
18640
a298aa04
VS
186412011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
18642
18643 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
18644 grub_decompress_core since later would fail if grub_decompress_core
18645 is too far.
18646
9b44feca
VS
186472011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
18648
18649 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
18650 R_MIPS_JALR since it's used by newer compiler.
18651
56dbe7b4
VS
186522011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
18653
18654 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
18655
52856af2
VS
186562011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
18657
18658 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
18659 file_path to 0 for surety.
18660 (grub_chainloader_boot): Set exit_data to NULL.
18661 Unset the loader once done.
18662 (grub_cmd_chainloader): Fix confusing error message if file is empty.
18663
9c9bfc6d
VS
186642011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
18665
18666 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
18667 unknown key into a dprintf.
18668
dd94a3df
VS
186692011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
18670
18671 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
18672 on first non-existant partition.
18673
fa68d99c
VS
186742011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
18675
18676 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
18677 openning fails.
18678 Reported by: Mark Korenberg.
18679
157effb7
VS
186802011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
18681
18682 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
18683 overflow.
18684
ea75312f
VS
186852011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
18686
18687 * util/grub-mkimage.c (main): Explicitely flush and sync the output
18688 before closing to ensure that it will be readable by grub-setup.
18689
072b5d31
VS
186902011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
18691
18692 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
18693 (devpath_1): Use MAKE_PIWG_PATH.
18694 (devpath_2): Likewise.
18695 (devpath_3): Likewise.
18696 (devpath_4): Likewise.
18697 (devpath_5): Likewise.
18698 (devpath_6): Likewise.
18699
18700 The appleldr.mod was checked that to be binary identical to previous
18701 version.
18702
7fae0051
Z
187032011-05-05 Zach <mikezackles>
18704
18705 Support 2010 Macbooks.
18706
18707 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
18708 (devs): Add devpath_6.
18709
7c515bee
VS
187102011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
18711
18712 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
18713 /dev/random. /dev/urandom is good enough for our purposes (salting).
18714
ed660bd8
VS
187152011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
18716
18717 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
18718
ee5614b7
VS
187192011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
18720
18721 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
18722 hexadecimal.
18723
664889a6
VS
187242011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
18725
18726 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
18727 and not 0 on failure.
18728
bd405bbc
CW
187292011-05-03 Colin Watson <cjwatson@ubuntu.com>
18730
18731 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
18732 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
18733 disk; otherwise grub_fs_probe will not fall back to the next
18734 filesystem.
18735 (grub_pxefs_open): Likewise, for consistency.
18736 Reported and tested by: Ezekiel Grave.
18737
4ebff753
CW
187382011-05-03 Colin Watson <cjwatson@ubuntu.com>
18739
18740 * tests/partmap_test.in: Don't hardcode path to parted.
18741 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
18742
8f942553
CW
187432011-05-01 Colin Watson <cjwatson@ubuntu.com>
18744
18745 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
18746 of `ls' to find out which devices are available.
18747
3c62402d
VS
187482011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
18749
18750 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
18751 than source address for efi mmap buffer.
18752
723f63f2
VS
187532011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
18754
18755 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
18756 wrong action on non-detecting the magic.
18757
68797f92
VS
187582011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
18759
18760 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
18761 already supplied by another part of the module (fixes compilation on
18762 FreeBSD).
18763
6be8715d
VS
187642011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
18765
18766 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
18767 match the one used by mdadm.
18768
e91dba5b
CW
187692011-04-21 Colin Watson <cjwatson@ubuntu.com>
18770
18771 * po/README: Add instructions for creating po/LINGUAS.
18772
c85140b3
CW
187732011-04-21 Colin Watson <cjwatson@ubuntu.com>
18774
18775 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
18776 #551428.
18777
18778 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
18779 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
18780 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
18781 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
18782 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
18783 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
18784 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
18785 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
18786 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
18787 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
18788 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
18789 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
18790 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
18791 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
18792 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
18793 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
18794 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
18795 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
18796 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
18797 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
18798 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
18799 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
18800
92051871
CW
188012011-04-21 Colin Watson <cjwatson@ubuntu.com>
18802
18803 * grub-core/kern/emu/getroot.c
18804 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
18805 test that was incorrectly reintroduced in r3214.
18806 Reported by: Ian Dall. Fixes Savannah bug #33133.
18807
b13f79a4
CW
188082011-04-21 Colin Watson <cjwatson@ubuntu.com>
18809
18810 Fix stack pointer handling in 16-bit relocator.
18811
18812 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
18813 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
18814 Fixes Ubuntu bug #683904.
18815
9b710a88
VS
188162011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
18817
18818 * configure.ac: Bump version to 1.99~rc2.
18819
d97e7b59
VS
188202011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
18821
18822 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
18823 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
18824 * grub-core/lib/x86_64/setjmp.S: Likewise.
18825 * grub-core/lib/mips/setjmp.S: Likewise.
18826 * grub-core/lib/powerpc/setjmp.S: Likewise.
18827 * grub-core/lib/sparc64/setjmp.S: Likewise.
18828
0624551c
VS
188292011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
18830
18831 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
18832 * grub-core/lib/efi/datetime.c: Likewise.
18833
e8f28d4c
VS
188342011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
18835
18836 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
18837 New function.
18838 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
18839 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
18840 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
18841
bba79a15
VS
188422011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
18843
18844 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
18845 bitmap.
18846 (grub_gfxterm_term_init): Likewise.
18847
abc474ef
VS
188482011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
18849
18850 Take into account the decorations the computing menu entry width.
18851
18852 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
18853 (grub_gfxmenu_create_box): Register get_border_width.
18854 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
18855 if available.
18856 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
18857 get_border_width.
18858
e74b3947
EP
188592011-04-18 Endres Puschner <code@e7p.de>
18860
18861 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
18862 Don't skip first class.
18863
34faa595
VS
188642011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
18865
18866 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
18867 chunks.
18868 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
18869
93a777e3
VS
188702011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
18871
18872 Complete 64-bit division support.
18873
18874 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
18875 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
18876 * include/grub/misc.h (grub_divmod64): Rename to ...
18877 (grub_divmod64_full): ... this.
18878 (grub_divmod64): New inline function.
18879
a5102d94
VS
188802011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
18881
18882 * util/grub-mkimage.c (generate_image): Add forgotten comma.
18883
f3fb7b36
VS
188842011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
18885
18886 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
18887 performing the necessary test.
18888
9ac718b0
VS
188892011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
18890
18891 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
18892 (kfreebsd.elf): Likewise.
18893 (pc-chainloader.elf): Likewise.
18894 (ntldr.elf): Likewise.
18895
50d2cc5a
VS
188962011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
18897
18898 Identify RAID by its UUID rather than (guessed) name.
18899
18900 * grub-core/disk/raid.c (ascii2hex): New function.
18901 (grub_raid_open): Accept mduuid/%s specification.
18902 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
18903 (get_mdadm_uuid): ... this.
18904 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
18905
e03f7bea
VS
189062011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
18907
18908 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
18909 to negative size.
18910
e74c3112
CW
189112011-04-13 Colin Watson <cjwatson@ubuntu.com>
18912
18913 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
18914 btrfs subvolume.
18915 * util/grub.d/20_linux_xen.in: Likewise.
18916
78fa584f
CW
189172011-04-13 Colin Watson <cjwatson@ubuntu.com>
18918
18919 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
18920 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
18921
18922 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
18923 Build a list of relevant visible mounts using the mnt_id and
18924 parent_mnt_id fields, and then scan that list at the end.
18925
9d5f8162
CW
189262011-04-12 Colin Watson <cjwatson@ubuntu.com>
18927
18928 * docs/grub.texi (normal): New section.
18929 (normal_exit): New section.
18930 (Embedded configuration): Add reference to normal.
18931 (GRUB only offers a rescue shell): Likewise.
18932 * docs/grub-dev.texi (Error Handling): Fix typo.
18933
09a9d66f
CW
189342011-04-12 Colin Watson <cjwatson@ubuntu.com>
18935
18936 * NEWS: Drop obsolete entry about probe-only btrfs support.
18937
0c676933
CW
189382011-04-12 Colin Watson <cjwatson@ubuntu.com>
18939
18940 * util/import_gcry.py: Fix typo.
18941
ec9f5e0d
VS
189422011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
18943
18944 * NEWS: Add btrfs support.
18945
fe6b2cba
VS
189462011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
189472011-04-11 Colin Watson <cjwatson@ubuntu.com>
18948
18949 BtrFS support. Written by me (Vladimir) with important bugfixes and
18950 even more important testing by Colin.
18951
18952 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
18953 * grub-core/Makefile.core.def (btrfs): Add crc.c.
18954 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
18955 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
18956 mem_input_off and mem_input. All users updated to accept in-RAM input.
18957 (gzio_seek): New function.
18958 (test_zlib_header): Likewise.
18959 (grub_gzio_read): Likewise.
18960 (grub_zlib_decompress): Likewise.
18961 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
18962 Accept partial and non-virtual mounts.
18963 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
18964 avoid receiving /dev/dm-X as device.
18965 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
18966 Handle bind and partial mounts.
18967 * grub-core/lib/crc.c: New file.
18968 * include/grub/deflate.h: Likewise.
18969 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
18970 proto.
18971 * include/grub/lib/crc.h: New file.
18972
e745cf0c
VS
189732011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
18974
18975 Implement automatic module license checking according to new GNU
18976 guidelines.
18977
18978 * grub-core/kern/dl.c (grub_dl_check_license): New function.
18979 (grub_dl_load_core): Use grub_dl_check_license.
18980 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
18981 (GRUB_MOD_LICENSE): Likewise.
18982 (GRUB_MOD_DUAL_LICENSE): Likewise.
18983 All modules updated.
18984
2a9bc016
CW
189852011-04-11 Colin Watson <cjwatson@ubuntu.com>
18986
18987 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
18988 reserved_first_sector to 1. btrfs reserves plenty of space for boot
18989 loaders.
18990 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
18991
8a3bc88e
VS
189922011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
18993
18994 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
18995
af869a4a
VS
189962011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
18997
18998 * util/grub-fstest.c (read_file): Report GRUB error if file opening
18999 failed.
19000
9ee8d94f
VS
190012011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
19002
19003 * grub-core/kern/file.c (grub_file_open): Don't take into account the
19004 parenthesis in the middle of the filename.
19005
b01abe3e
VS
190062011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
19007
19008 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
19009 rather than trying to put initrd way too high.
19010 Reported by: Ryan Lortie <desrt@desrt.ca>
19011
335bda1e
VS
190122011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
19013
19014 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
19015 improperly removed string.
19016
5ca1a64d
VS
190172011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
19018
19019 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
19020 is_disk.
19021 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
19022 (open_device) Likewise.
19023 (grub_util_biosdisk_close): Likewise.
d8ce9995 19024 Reported by: Mark Korenberg.
5ca1a64d 19025
cbac5b1e
AK
190262011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
19027
19028 * util/grub-mkconfig_lib.in: Add missing quotes.
19029
088cdb65
CW
190302011-04-10 Colin Watson <cjwatson@ubuntu.com>
19031
19032 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
19033 is NULL.
19034
8b8a81fa
VS
190352011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
19036
19037 Dynamically count the number of lines for the lower banner.
19038
19039 * grub-core/normal/menu_entry.c (per_term_screen): New member
19040 num_entries.
19041 (print_down): Use num_entries.
19042 (update_screen): Likewise.
19043 (grub_menu_entry_run): Set num_entries.
19044 * grub-core/normal/menu_text.c (menu_viewer_data): New member
19045 num_entries.
19046 (grub_print_message_indented): Move real part to ...
19047 (grub_print_message_indented_real): ... here. Additional argument
19048 dry_run.
19049 (draw_border): Additional argument num_entries.
19050 (print_message): Additional argument dry_run.
19051 (print_entries): Receive menu viewer data.
19052 (grub_menu_init_page): New argment num_entries.
19053 (menu_text_set_chosen_entry): Use num_entries.
19054 (grub_menu_try_text): Likewise.
19055 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
19056 All users updated.
19057 (grub_ucs4_count_lines): New function.
19058 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
19059 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
19060 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
19061 (grub_term_border_height): Likewise.
19062 (grub_term_num_entries): Likewise.
19063
277f955b
VS
190642011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
19065
19066 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
19067 Remove now unused string.
19068
536ce85a
CW
190692011-04-09 Colin Watson <cjwatson@ubuntu.com>
19070
19071 * docs/grub-dev.texi (Finding your way around): Update for 1.99
19072 build system.
19073 (Getting started): GRUB is developed in Bazaar now, not Subversion.
19074
19075 (Comment): Fix typo.
19076 (Getting started): General copy-editing.
19077 (Typical Development Experience): Likewise.
19078 (Error Handling): Likewise.
19079 (Video API): Likewise.
19080
2cf09e32
CW
190812011-04-09 Colin Watson <cjwatson@ubuntu.com>
19082
19083 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
19084 throughout.
19085
1ec652f4
VS
190862011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19087
19088 * util/grub-mkimage.c (main): Handle special naming of yeeloong
19089 directory.
19090
2c583728
CW
190912011-04-08 Colin Watson <cjwatson@ubuntu.com>
19092
19093 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
19094 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
19095 "development".
19096
d7a565e9
VS
190972011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19098
19099 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
19100 grub_strcpy since the lines aren't necessarily 0-terminated.
19101
7c2e4909
VS
191022011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19103
19104 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
19105 root on legacy.
19106
34c09785
VS
191072011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19108
19109 * grub-core/commands/probe.c (options): Argument to set isn't optional.
19110 (GRUB_MOD_INIT): DEVICE isn't optional.
19111
6a6f8058
VS
191122011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19113
19114 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
19115 word on new line if it's too long anyway. Fixes a hang.
19116
2e335e90
VS
191172011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19118
19119 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
19120 const.
19121 * util/grub-setup.c (main): Reuse md device name if available.
19122 * util/raid.c (grub_util_raid_getmembers): Receive device name and
19123 not GRUB name as argument.
19124 Based on patch by: Florian Wagner <fwagner>.
19125
10a7a867
VS
191262011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19127
19128 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
19129 Place mbi on low memory for better compatibility.
19130
7a3d6cd9
VS
191312011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19132
19133 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
19134
18dd6b47
VS
191352011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
191362011-04-08 Colin Watson <cjwatson@ubuntu.com>
19137
19138 * autogen.sh: Ensure that collate and ctype locale is C.
4ed4ce58 19139 * conf/Makefile.common: Likewise.
18dd6b47 19140
3c0e3f14
VS
191412011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19142
f7148863
VS
19143 * grub-core/normal/menu.c: Add missing include.
19144
191452011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19146
19147 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
3c0e3f14 19148
6d1fa41f
MZ
191492011-04-08 Martin Zuther <mzuther@mzuther.de>
19150
19151 * util/grub-mkconfig.in: Ignore emacsen backup.
19152
478182a8
VS
191532011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19154
19155 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
19156 on open.
19157 (grub_util_biosdisk_close): Likewise.
19158
72a89a54
VS
191592011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19160
19161 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
19162 const attribute and use grub_isdigit.
19163
b5ebecfa
A
191642011-04-06 Andrey <dev_null@ukr.net>
19165
19166 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
19167 gcc warning.
19168
7755f66e
VS
191692011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
19170
19171 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
19172 useful grub_dprintf's.
19173
461121ff
VS
191742011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
19175
19176 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
19177
2a961775
VS
191782011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
19179
19180 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
19181
adf594cc
VS
191822011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
19183
19184 Output errors if theme loading failed.
19185
19186 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
19187 grub_gfxterm_fullscreen on error paths to ...
19188 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
19189 theme loading error.
19190
665900a3
VS
191912011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
19192
19193 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
19194 space for older compilers.
19195 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
19196
a562b479
VS
191972011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
19198
19199 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
19200 and report them as not RAID members since they are useless for GRUB.
19201 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
19202
850e9373
VS
192032011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
19204
19205 Increase LVM implementation robustness in order not to crash on
19206 configurations like pvmove. Previously code assumed that in some places
19207 only lvs or only pvs are used whereas it seems that they are used
19208 interchangeably.
19209
19210 * grub-core/disk/lvm.c (read_node): New function.
19211 (read_lv): Use read_node.
19212 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
19213 Match volumes only at the end when all lvs are found. Take both
19214 pvs (first) and lvs (second) into account.
19215 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
19216 mirror_* into node_*. All users updated.
19217 (grub_lvm_stripe): Merge this ...
19218 (grub_lvm_mirror): ... and this ...
19219 (grub_lvm_node): ... into this. All users updated.
19220
6f332153
VS
192212011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
19222
19223 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
19224 of function to allow further scanning for LVMs.
19225
829ea451
VS
192262011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
19227
19228 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
19229 on failed seek as it breaks open fd reusage.
19230
09ceb9a5
VS
192312011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
19232
19233 * util/grub-install.in: Add a recommendation to use --recheck before
19234 reporting bugs.
19235
67e11623
VS
192362011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
19237
19238 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
19239 are obtained.
19240
caee5efd
VS
192412011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
19242
19243 GRUB developper manual based on existing Internals section and
19244 contributions by the various authors with active copyright assignment.
19245
19246 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
19247 * docs/font_char_metrics.png: New file.
19248 * docs/font_char_metrics.txt: Likewise.
19249 * docs/grub-dev.texi: Likewise.
19250 * docs/grub.texi (Internals): Move from here ...
19251 * docs/grub-dev.texi: ... here.
19252
2cccc747
CW
192532011-04-01 Colin Watson <cjwatson@ubuntu.com>
19254
19255 Store the loopback device as data on loopback grub_disk structures,
19256 rather than the file it points to. This fixes use of freed memory
19257 if an existing loopback device is replaced.
19258
19259 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
19260 disk->data, not dev->file.
19261 (grub_loopback_read): Adjust file assignment to match.
19262 Fixes Ubuntu bug #742967.
19263
186ae367
CW
192642011-04-01 Colin Watson <cjwatson@ubuntu.com>
19265
19266 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
19267 when replacing an existing device.
19268
cfed2ad0
VS
192692011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
19270
19271 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
19272 memory corruptions.
19273
19274 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
19275 unsigned.
19276 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
19277 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
19278 (grub_jfs_read_inode): Likewise.
19279 (grub_jfs_opendir): Likewise. Remove now useless casts.
19280 (grub_jfs_getent): Likewise.
19281 Make ino a grub_uint32_t rather than int.
19282 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
19283 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
19284 division and module with bit operations.
19285 (grub_jfs_find_file): Make ino a grub_uint32_t.
19286 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
19287
05d2ed32
CW
192882011-04-01 Colin Watson <cjwatson@ubuntu.com>
19289
19290 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
19291 warning. (This was in fact always initialised before use, but GCC
19292 wasn't smart enough to prove that.)
19293 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
19294
91dc6073
VS
192952011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
19296
19297 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
19298 stack alignment.
19299 (efi_wrap_1): Likewise.
19300 (efi_wrap_2): Likewise.
19301 (efi_wrap_3): Likewise.
19302 (efi_wrap_4): Likewise.
19303 (efi_wrap_5): Likewise.
19304 (efi_wrap_6): Likewise.
19305 (efi_wrap_10): Likewise.
19306 Based on information by: Red Hat/Peter Jones.
19307
a8afc1d1
CW
193082011-03-31 Colin Watson <cjwatson@ubuntu.com>
19309
19310 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
19311 set-but-not-used variable.
19312
a826cc7d
CW
193132011-03-31 Colin Watson <cjwatson@ubuntu.com>
19314
19315 * docs/grub.texi (Simple configuration): Be more explicit about
19316 GRUB_DEFAULT, and add an example.
19317 Reported by: Leslie Rhorer.
19318
875b67ba
CW
193192011-03-30 Colin Watson <cjwatson@ubuntu.com>
19320
19321 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
19322 shell".
19323
fd7cd914
AS
193242011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
19325
19326 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
19327 * util/grub.d/20_linux_xen.in: Likewise.
19328
090b1b6a
VS
193292011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
19330
19331 * util/grub.d/10_linux.in: Try alternative config filenames where
19332 we parse config file.
19333 * util/grub.d/20_linux_xen.in: Likewise.
19334
baad885c
AS
193352011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
19336
19337 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
19338 * util/grub.d/20_linux_xen.in: Likewise.
19339
241e41f5
VS
193402011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
19341
19342 * grub-core/disk/raid.c (insert_array): Add few potentially
19343 useful grub_util_info.
19344 (grub_raid_register): Likewise.
19345
56445fb2
VS
193462011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
19347
19348 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
19349 Preserve partition number in mdadm code path.
19350
c871b1c6
VS
193512011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
19352
19353 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
19354 few potentially useful grub_util_info.
19355
5e631b4f
CW
193562011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
19357
19358 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
19359
2d5d0333
CW
193602011-03-30 Colin Watson <cjwatson@ubuntu.com>
19361
19362 * docs/grub.texi (default): Use @example rather than nested
19363 itemized lists to avoid breaking gendocs.
19364
3d7ed04e
CW
193652011-03-30 Colin Watson <cjwatson@ubuntu.com>
19366
19367 * docs/grub.texi (Future): Update.
19368
abf04200 193692011-03-30 Colin Watson <cjwatson@ubuntu.com>
19370
19371 * docs/grub.texi (Environment): New chapter.
19372 (Changes from GRUB Legacy): Link to "Environment block" section for
19373 details of limitations.
19374 (Simple configuration): Likewise. Link to documentation of gfxmode
19375 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
19376 respectively.
19377 (Shell-like scripting): Note that normal variables are stored in the
19378 environment.
19379 (gettext): Link to documentation of lang and locale_dir.
19380 (list_env): New section.
19381 (load_env): New section.
19382 (save_env): New section.
19383
19384 (Reporting bugs): Fix typo.
19385
e1ad0edd
VS
193862011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
19387
19388 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
19389 the example.
19390
5d803174
VS
193912011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
19392
19393 * grub-core/term/at_keyboard.c (set_scancodes)
19394 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
19395
2a2da1d0
CW
193962011-03-30 Colin Watson <cjwatson@ubuntu.com>
19397
19398 * docs/grub.texi (Menu-specific commands): Remove some semantics
19399 that were true in GRUB Legacy but not in GRUB 2.
19400 (submenu): New section.
19401 (false): New section.
19402 (read): New section.
19403 (true): New section.
19404
a7527639
CW
194052011-03-30 Colin Watson <cjwatson@ubuntu.com>
19406
19407 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
19408
194092011-03-30 Colin Watson <cjwatson@ubuntu.com>
e30af029
CW
19410
19411 * docs/grub.texi (Simple configuration): Explain some of the
19412 current limitations of grub-mkconfig.
8a748df2 19413 Reported by: Leslie Rhorer.
e30af029 19414
fc858482
VS
194152011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
19416
19417 Old macs search for boot.efi rather than for bootia32.efi.
19418
19419 * util/grub-install.in: Copy bootia32.efi to boot.efi.
19420 * util/grub-mkrescue.in: Likewise.
19421 Suggested by: Peter Jones.
19422
e1eb511d
VS
194232011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
19424
19425 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
19426
70e75364
VS
194272011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
19428
19429 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
19430 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
19431 (grub_lvm_mirror): New struct.
19432 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
19433 (grub_lvm_iterate): Iterate only visible volumes.
19434 (grub_lvm_read): Factor out to ..
19435 (read_lv): ... this. Support mirrors.
19436 (grub_lvm_read): New wrapper function.
19437 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
19438 stripped or mirrored.
19439
fc18f6a3
VS
194402011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
19441
19442 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
19443
5c650f4c
CW
194442011-03-29 Colin Watson <cjwatson@ubuntu.com>
19445
19446 * docs/grub.texi (loopback): New section.
19447
61d7156b
CW
194482011-03-29 Colin Watson <cjwatson@ubuntu.com>
19449
19450 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
19451 removed -p option.
19452
994b8264
CW
194532011-03-29 Colin Watson <cjwatson@ubuntu.com>
19454
19455 * docs/grub.texi (BIOS installation): New section, partly based on
19456 previous text in other sections.
19457 (Installing GRUB using grub-install): Replace BIOS discussion with a
19458 cross-reference.
19459 (Images): Likewise.
19460
9e4d19e0
VS
194612011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
19462
19463 * grub-core/kern/emu/hostdisk.c (find_partition_start)
19464 [HAVE_DIOCGDINFO]: Add safety checks.
19465
a307c0b2
VS
194662011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
19467
19468 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
19469 per default compiled in kernel and prior to 8.0 isn't shipped at all.
19470
b4db4f39
CW
194712011-03-29 Colin Watson <cjwatson@ubuntu.com>
19472
19473 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
19474 real_sb->size is zero (e.g. RAID-0), get the disk size from
19475 real_sb->data_size instead.
19476 Fixes Ubuntu bug #743136.
19477
35e5f84c
VS
194782011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
19479
19480 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
19481 printf clauses for printing size and start.
19482
d2e29d81
VS
194832011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
19484
19485 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
19486 Reported and tested by: Timothy Nikkel.
19487
ed5587af
VS
194882011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
19489
19490 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
19491 (dirty_region_add_real): ... this.
19492 (dirty_region_add): Don't discard margin refresh when performing
19493 scheduled repaint.
19494
a1dc717c
VS
194952011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
19496
19497 * grub-core/lib/relocator.c (allocate_regstart)
19498 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
19499 terminals are capabple of malloc-free operation.
19500 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
19501 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
19502
9f3677d3
VS
195032011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
19504
19505 * util/grub-setup.c: Copy the partition table zone if floppy support
19506 is disabled, even if no partition table is found.
19507
19508 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
19509 during POST if an invalid partition table is contained in the PBR
19510 of the active partition when GRUB is installed to a partition.
19511
24148725
CW
195122011-03-28 Colin Watson <cjwatson@debian.org>
19513
19514 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
19515 comment.
19516
f329eda7
CW
195172011-03-28 Colin Watson <cjwatson@debian.org>
19518
19519 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
19520 to be specific about what kind of RAID device we're scanning for.
19521
c482ad98
SG
195222011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
19523
19524 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
19525 return freed string.
19526
5ee04984
VS
195272011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
19528
19529 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
19530
f4727da9
VS
195312011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
19532
19533 Use libgeom on FreeBSD to detect partitions.
19534
19535 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
19536 (grub-mkrelpath): Likewise.
19537 (grub-script-check): Likewise.
19538 (grub-editenv): Likewise.
19539 (grub-mkpasswd-pbkdf2): Likewise.
19540 (grub-fstest): Likewise.
19541 (grub-mkfont): Likewise.
19542 (grub-mkdevicemap): Likewise.
19543 (grub-probe): Likewise.
19544 (grub-setup): Likewise.
19545 (grub-ofpathname): Likewise.
19546 (grub-mklayout): Likewise.
19547 (example_unit_test): Likewise.
19548 (grub-menulst2cfg): Likewise.
19549 * grub-core/Makefile.core.def (grub-emu): Likewise.
19550 (grub-emu-lite): Likewise.
19551 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
19552 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
19553 define HAVE_DIOCGDINFO.
19554 (follow_geom_up) [FreeBSD]: New function.
19555 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
19556 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
19557 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
19558 unconditionally of HAVE_DIOCGDINFO.
19559
82fe6c75
VS
195602011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
19561
19562 Fix FreeBSD compilation problem.
19563
19564 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
19565 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
19566
4c6c9431
CW
195672011-03-24 Colin Watson <cjwatson@ubuntu.com>
19568
19569 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
19570 Switch back to page zero before loading a kernel, since some kernel
19571 drivers expect that.
19572 Thanks to: Felix Kuehling.
19573
c7064d94
VS
195742011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
19575
19576 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
19577 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
19578 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
19579
3f71cded
VS
195802011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
19581
19582 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
19583 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
19584
ef6de21a
VS
195852011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
19586
19587 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
19588 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
19589 malloc is disabled.
19590
8bc66a2c
VS
195912011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
19592
19593 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
19594 for modules headers when counting the needed allocation size.
19595
5657722c
VS
195962011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
19597
19598 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
19599 if no ASCII character is found to prevent crash.
19600
41a85f55
AK
196012011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
19602
19603 * grub-core/video/bitmap.c (match_extension): Ignore case.
19604
59e1e5f1
VS
196052011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
19606
19607 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
19608
bd4d051a
VS
196092011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
19610
19611 * grub-core/script/parser.y: Declare "time" as valid argument.
19612
bae7fcc1
PJ
196132011-03-23 Peter Jones <pjones@redhat.com>
19614
19615 Fix incorrect assert failure reporting.
19616
19617 * grub-core/tests/example_functional_test.c (example_test): Add
19618 a failure comment.
19619 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
19620 (failure_start): ...this. Check that malloc succeeded.
19621 Don't call xvasprintf. Return failure struct.
19622 (failure_append_vtext): New function.
19623 (failure_append_text): Likewise.
19624 (add_failure): Likewise.
19625 (grub_test_assert_helper): Likewise.
19626 * include/grub/test.h (grub_test_assert_helper): New declaration.
19627 (grub_test_assert): Macro rewritten.
19628
537dc9be
VS
196292011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
19630
19631 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
19632
fa3e01bf
VS
196332011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
19634
19635 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
19636
b1d28404
VS
196372011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
19638
19639 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
19640 into GRUB-style one.
19641
2e3e2e09
VS
196422011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
19643
19644 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
19645 error and not grub_errno.
19646 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
19647
ed57e557
VS
196482011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
19649
19650 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
19651 GRUB_USB_SPEED_NONE in case of failure and not the error code.
19652
d1611f01
VS
196532011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
19654
19655 * grub-core/efiemu/i386/pc/cfgtables.c
19656 (grub_machine_efiemu_init_tables): Make declaration a prototype.
19657 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
19658 (grub_xnu_unlock): Likewise.
19659 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
19660
7d4e39d6
VS
196612011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
19662
19663 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
19664 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
19665 * grub-core/commands/hashsum.c (aliases): Likewise.
19666 * grub-core/commands/setpci.c (pci_registers): Likewise.
19667 * grub-core/disk/usbms.c (attach_hook): Likewise.
19668 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
19669 (zio_checksum_table): Likewise.
19670 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
19671 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
19672 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
19673 * grub-core/lib/relocator.c (leftovers): Likewise.
19674 (extra_blocks): Likewise.
19675 * grub-core/loader/i386/bsd.c (relocator): Likewise.
19676 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
19677 (modules_last): Likewise.
19678 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
19679 (devices): Likewise.
19680 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
19681 (modules_last): Likewise.
19682 * grub-core/normal/auth.c (users): Likewise.
19683 * grub-core/normal/context.c (initial_menu): Likewise.
19684 (current_menu): Likewise.
19685 * grub-core/normal/crypto.c (crypto_specs): Likewise.
19686 * grub-core/term/serial.c (grub_serial_ports): Likewise.
19687 (grub_serial_terminfo_input_template): Likewise.
19688 (grub_serial_terminfo_output_template): Likewise.
19689 (grub_serial_terminfo_input): Likewise.
19690 (grub_serial_terminfo_output): Likewise.
19691 (registered): Likewise.
19692 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
19693
40fc4659
VS
196942011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
19695
19696 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
19697 grub_video_mode_type_t.
19698 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
19699 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
19700 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
19701
2da48d28
VS
197022011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
19703
19704 * util/grub-install.in: Correct the x86-64 name as x86_64.
19705
9b43bf39
CW
197062011-03-11 Colin Watson <cjwatson@ubuntu.com>
19707
19708 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
19709 initial chunk read from the kernel always includes GRUB's multiboot
19710 header, which is now outside the first sector.
19711
be1a7ce0
CW
197122011-03-09 Colin Watson <cjwatson@ubuntu.com>
19713
19714 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
19715 cached mmap_size, so that this works correctly when called multiple
19716 times.
19717 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
19718
83a3c48d
CW
197192011-03-09 Colin Watson <cjwatson@ubuntu.com>
19720
19721 * docs/grub.texi (Simple configuration): Tidy up formatting.
19722
57d75699
SJ
197232011-03-07 Szymon Janc <szymon@janc.net.pl>
19724
19725 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
19726 Set-but-not-used variable removed.
19727
028501a0
VS
197282011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
19729
19730 Workaround yet another IEEE1275 bug.
19731
19732 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
19733 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
19734 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
19735 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
19736 is set.
19737 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
19738 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
19739
d998657d
VS
197402011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
19741
19742 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
19743 error.
19744
fee7cdd4
CW
197452011-02-11 Colin Watson <cjwatson@ubuntu.com>
19746
19747 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
19748 empty, since in that case we can only generate either nothing or a
19749 syntactically invalid configuration file.
19750 Reported by: Michal Suchanek. Fixes Debian bug #612898.
19751
97286eb5
CW
197522011-02-09 Colin Watson <cjwatson@ubuntu.com>
19753
19754 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
19755 (Making a GRUB bootable CD-ROM): Likewise.
19756 (Invoking grub-mkrescue): New section.
19757 Reported by: Yann Dirson. Fixes Debian bug #612585.
19758
22b28eb3
CW
197592011-02-09 Colin Watson <cjwatson@ubuntu.com>
19760
19761 * util/grub-install.in: Remove unnecessary brackets from tr
19762 arguments.
19763 * util/grub.d/10_hurd.in: Likewise.
19764 * util/grub.d/10_kfreebsd.in: Likewise.
19765 * util/grub.d/10_linux.in: Likewise.
19766 * util/grub.d/20_linux_xen.in: Likewise.
19767 Reported by: Jamie Heilman. Fixes Debian bug #612564.
19768
7e735e43
CW
197692011-02-08 Colin Watson <cjwatson@ubuntu.com>
19770
19771 * include/grub/file.h (not_easly_seekable): Rename to ...
19772 (not_easily_seekable): ... this. Update all users.
19773
800f1881
CW
197742011-01-28 Colin Watson <cjwatson@ubuntu.com>
19775
19776 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
19777 grub-mkrescue.
19778
3281d3d6
VS
197792011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
19780
19781 * util/grub-mkimage.c (generate_image): Refuse to create the images
19782 bigger than the actual flash (512K) in Loongson machines. 512K is also
19783 the biggest chip supported by them.
19784
3533413c
VS
197852011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
19786
19787 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
19788
73ae4f4f
VS
197892011-01-22 Anthony DeRobertis <anthony@derobert.net>
19790
19791 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
19792 super_offset field.
19793
37f4f608
VS
197942011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
19795
19796 * util/grub-install.in: Ignore install device on platforms
19797 where it doesn't make sense. Always use UUIDs except on pc, efi and
19798 sparc64.
19799 Reported by: Daniel Kahn Gillmor.
19800
03a4ccb5
VS
198012011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
19802
19803 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
19804
ffc8f4d8
VS
198052011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
19806
19807 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
19808 (iterate_real): Don't rely on partition being non-NULL.
19809
80f23be7
VS
198102011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
19811
19812 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
19813 supported platforms. Put a compile time assert for this rather than
19814 generate a warning with 32-bit shift.
19815
5d4f4dd5
VS
198162011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
19817
19818 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
19819 logical expression more readable.
19820
e489601a
VS
198212011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
19822
19823 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
19824 even if some elements have a name.
19825 Reported by: Alexander GQ Gerasiov.
19826
96e0a6ea
CW
198272011-01-22 Colin Watson <cjwatson@ubuntu.com>
19828
19829 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
19830 path unreadable if `grub-probe -t abstraction' fails, for example if
19831 memberlist fails on an LVM volume group.
19832 Reported by: Darius Jahandarie.
19833
81431e2b
CW
198342011-01-22 Colin Watson <cjwatson@ubuntu.com>
19835
19836 * docs/grub.texi (Simple configuration): Document
19837 GRUB_PRELOAD_MODULES.
19838
5e79d66a
CW
198392011-01-17 Colin Watson <cjwatson@ubuntu.com>
19840
19841 * .bzrignore: Remove nonexistent grub-pbkdf2.
19842
646ada34
VS
198432011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
19844
19845 * configure.ac: Bump version to 1.99~rc1.
19846
04360337
VS
198472011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
19848
19849 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
19850 for safety.
19851
46c9db88
VS
198522011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
19853
19854 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
19855 module.
19856
198572011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
1d955d00
VS
19858
19859 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
19860
4fbf1852
VS
198612011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
19862
19863 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
19864 diskdevid.
19865
f1632d4d
VS
198662011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
19867
19868 Fix compilation on cygwin.
19869
19870 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
19871 -R .drectve on cygwin.
19872 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
19873 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
19874 (COND_CYGWIN): New condition.
19875 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
19876 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
19877 not @TARGET_OBJ2ELF@.
19878 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
19879 type to determine whether aux is to be used.
19880
0b5e127b
VS
198812011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
19882
19883 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
19884 realpath'ed device string.
19885 Handle floppy (somewhat).
19886 Issue error in unknown case rather than garbage.
19887 Reported by: Axel Beckert.
19888
173b71e9
VS
198892011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
19890
19891 * util/grub.d/00_header.in (load_video): Handle the case when no video
19892 drivers available.
19893 Thanks to: Axel Beckert.
19894
f8f479db
VS
198952011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
19896
19897 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
19898 variable. Fixes problem on big endian platforms.
19899
8fc0a245
VS
199002011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
19901
19902 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
19903 It doesn't work well there.
19904
b8494fbe
VS
199052011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
19906
19907 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
19908 warning.
19909 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
19910 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
19911 counter.
19912
b44a558c
VS
199132011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
19914
19915 Use alias->path rather than buggy "canon".
19916
19917 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
19918 (ofdisk_hash_add): New argument curcan. All users updated.
19919
51fa856c
CW
199202011-01-11 Colin Watson <cjwatson@ubuntu.com>
19921
19922 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
19923
9da068a5
VS
199242011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
19925
19926 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
19927 loadmask before doing any calculations. Use correct type for offset.
19928 (grub_linux_load64): Likewise.
19929
86205c94
CW
199302011-01-11 Colin Watson <cjwatson@ubuntu.com>
19931
19932 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
19933 with NULL.
19934 (console_grub_equivalences_unshift): Likewise.
19935 Reported by: Daniel Dehennin.
19936
4531a206
VS
199372011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
19938
19939 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
19940 (set_env_limn_ro): Likewise.
19941 (GRUB_MOD_INIT): Likewise.
19942 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
19943 ARRAY_SIZE while on it.
19944 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
19945 * grub-core/normal/context.c (grub_env_export): Move from here ...
19946 * grub-core/kern/env.c (grub_env_export): ... here.
19947 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
19948 prefix.
19949 * grub-core/kern/main.c (grub_main): Export root and prefix.
19950 * include/grub/env.h (grub_env_export): Export.
19951 Reported by: Seth Goldberg.
19952
45146057
VS
199532011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
19954
19955 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
19956 Take into account space used by ELF sections and multiboot palette.
19957 Reported by: Grégoire Sutre.
19958
f093110b
VS
199592011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
19960
19961 * BUGS: New file.
19962
3395fe52
VS
199632011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
19964
19965 Pass more appropriate video id to Linux.
19966
19967 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
19968 grub_video_get_driver_id and variable gfxpayloadforcelfb to
19969 fill have_vga.
19970 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
19971 shift params->lfb_size.
19972 * include/grub/i386/linux.h: Make an enume out of have_vga values.
19973
c2fa6cbb
VS
199742011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
19975
19976 * util/grub-menulst2cfg.c: Add missing include of misc.h.
19977
b3ff6ff0
VS
199782011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
19979
19980 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
19981 separator and pass bootpath/devid even if only one of them is available.
19982 Reported by: Seth Goldberg.
19983
ae67942e
VS
199842011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
19985
19986 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
19987 implementations bug on them.
19988
19989 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
19990 memory.
19991 (filter_memory_map): Likewise.
19992
d570097a
VS
199932011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
19994
19995 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
19996 Reported by: nebuchadnezzar.
19997
a508e776
VS
199982011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
19999
20000 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
20001 Reported by: nebuchadnezzar.
20002
dcb883b1
VS
200032011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20004
20005 Submenu default support.
20006
20007 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
20008 auto_boot. All users updated.
20009 Declared static.
20010 Handle chosen and default with submenus.
20011 (grub_menu_execute_with_fallback): Declared static.
20012 Don't notify failure if autobooted. Upper level does it.
20013 (menuentry_eq): New function.
20014 (get_entry_number): Use menuentry_eq.
20015 (show_menu): New parameter "autobooted". All users updated.
20016 (grub_show_menu): Likewise.
20017 * include/grub/normal.h (grub_show_menu): Likewise.
20018 * include/grub/menu.h (grub_menu_execute_entry): Removed.
20019 (grub_menu_execute_with_fallback): Likewise.
20020
6fef99b4
VS
200212011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20022
20023 * util/grub-mklayout.c (usage): Update help text.
20024
47a77af5
VS
200252011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20026
20027 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
20028
ce6bb3ee
VS
200292011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20030
20031 * util/grub-menulst2cfg.c (main): Trim the line.
20032
db87be2a
VS
200332011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20034
20035 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
20036 (grub_machine_init): Don't check amount of low memory as reportedly
20037 INT 12h can be broken and if low memory is too low we wouldn't have
20038 gotten into grub_machine_init anyway.
20039
c49849cc
VS
200402011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20041
20042 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
20043 (grub_machine_mmap_iterate): Take low memory into account
20044
b1969b30
VS
200452011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20046
20047 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
20048 badfs.
20049 Reported by: TiCPU.
20050
cf0eaf13
VS
200512011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20052
20053 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
20054 members errors.
20055
1f060f39
GS
200562011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
20057
20058 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
20059 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
20060
a21e5672
GS
200612011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
20062
20063 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
20064 openbsd and netbsd types being in part_bsd module.
20065
c88172fa
VS
200662011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
20067
20068 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
20069 (_FILE_OFFSET_BITS): Likewise.
20070 Reported by: Seth Goldberg.
20071
53798c4b
GS
200722011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20073
20074 * configure.ac: Check for libdevmapper header.
20075
e7121b69
VS
200762011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
20077
20078 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
20079 avoid aliasing.
20080 (fzap_lookup): Likewise.
20081 (dnode_get): Likewise.
20082 (make_mdn): Likewise.
20083 (zfs_mount): Likewise.
20084 (fzap_iterate): Use temporary pointer to avoid aliasing.
20085 (grub_zfs_read): Likewise.
20086 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
20087 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
20088 pointers to avoid aliasing.
20089 (grub_cmd_xnu_kernel64): Likewise.
20090 (grub_xnu_load_driver): Likewise.
20091
fc836af9
VS
200922011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
20093
20094 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
20095 aliasing warning.
20096 (grub_cmd_terminal_output): Likewise.
20097 Reported and tested by: Grégoire Sutre.
20098
f9f37648
VS
200992011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
20100
20101 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
20102 warning.
20103 Reported and tested by: Grégoire Sutre.
20104
ec1dfd63
VS
201052011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
20106
20107 * configure.ac: Do CPU substitution even if it's specified explicitly.
20108 Reported and tested by: Alain Greppin.
20109
9462775a
VS
201102011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
20111
20112 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
20113 Reported and tested by: Alain Greppin.
20114
0fd48e35
VS
201152011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
20116
20117 Satisfy some bison versions need for inttypes.h.
20118
20119 * grub-core/lib/posix_wrap/inttypes.h: New file.
20120 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
20121 (int16_t): Likewise.
20122 (int32_t): Likewise.
20123 (int64_t): Likewise.
20124 Reported and tested by: Alain Greppin.
20125
43f1bc83
VS
201262011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
20127
20128 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
20129 Silence spurious warning.
20130 Reported and tested by: Alain Greppin.
20131
64d1f041
SJ
201322011-01-07 Szymon Janc <szymon@janc.net.pl>
20133
20134 * docs/grub.texi (Support automatic decompression): Update with xz
20135 decompression support.
20136
25953e10
SJ
201372011-01-07 Szymon Janc <szymon@janc.net.pl>
20138
20139 Improve loaders' kernel command line handling.
20140
20141 * grub-core/lib/cmdline.c: New file.
20142 * include/grub/lib/cmdline.h: Likewise.
20143 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
20144 grub_create_loader_cmdline to create kernel command line.
20145 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
20146 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
20147 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
20148 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
20149 (linux): Add lib/cmdline.c on common.
20150
e72d259f
VS
201512011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
20152
20153 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
20154 inopos might be unaligned.
20155
c0cf26da
VS
201562011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
20157
20158 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
20159 endian transformations.
20160 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20161 Based on report by: Doug Nazar.
20162
0ca09e6c
DN
201632011-01-07 Doug Nazar <nazard.michi@gmail.com>
20164
20165 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
20166 array->members[i].start_sector.
20167 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
20168
014b6806
VS
201692011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
20170
20171 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
20172 Reported and tested by: Grégoire Sutre.
20173
415502c2
CW
201742011-01-06 Colin Watson <cjwatson@ubuntu.com>
20175
20176 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
20177 avoid causing test failures by clearing the screen.
20178
71b6a2b7
CW
201792011-01-06 Colin Watson <cjwatson@ubuntu.com>
20180
20181 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
20182 Fix prefix check to handle the case where dir ends with a slash
20183 (most significantly, "/" itself).
20184 Reported by: Michael Vogt.
20185
b3f8d28a
VS
201862011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
20187
20188 Run terminfo_cls on initing terminfo output to clear the screen and
20189 move the cursor to (0,0).
20190
20191 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
20192 Call grub_terminfo_output_init.
20193 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
20194 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
20195 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
20196
4c3e4f37
VS
201972011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
20198
20199 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
20200 only when needed.
20201
488f71f1
VS
202022011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
20203
20204 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
20205 CTRL.
20206
18a38098
VS
202072011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
20208
20209 The E820 type 5 is BADRAM, not EXEC_CODE.
20210
20211 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
20212 (GRUB_E820_BADRAM): New define.
20213 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
20214 into reserved. Propagate BADRAM.
20215 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
20216 (GRUB_E820_BADRAM): New define.
20217
9eae2084
VS
202182011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
20219
20220 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
20221 Ignore the memory post-4G.
20222 (grub_relocator_firmware_alloc_region): Additional debug statement.
20223
ebc71d28
VS
202242011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
20225
20226 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
20227 names.
20228 Reported by: David Pravec.
20229
446fa400
VS
202302011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
20231
20232 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
20233 BIOSes.
20234
a0159f37
VS
202352011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
20236
20237 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
20238 Prevent overflow.
20239 (grub_reed_solomon_recover): Likewise.
20240
e5146ca1
VS
202412011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
20242
20243 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
20244
202452011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
95638499
VS
20246
20247 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
20248 variable.
20249
5b1bdf12
CW
202502011-01-04 Colin Watson <cjwatson@ubuntu.com>
20251
20252 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
20253 descriptions of extract_legacy_entries_source and
20254 extract_legacy_entries_configfile.
20255 Reported by: Seung Soo, Ha.
20256
99d925aa
CW
202572011-01-03 Colin Watson <cjwatson@ubuntu.com>
20258
20259 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
20260 on devices that do not implement function 0.
20261
4af0504b
DV
202622011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
20263
20264 * grub-core/fs/hfsplus.c: Make parent unsigned.
20265 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
20266 overflows.
20267 (grub_hfsplus_cmp_extkey): Likewise
20268
469ee10a
VS
202692011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
20270
20271 * util/grub-install.in: Correctly use bootloader_id and not
20272 GRUB_DISTRIBUTOR on efibootmgr line.
20273
323a8e9c
VS
202742011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
20275
20276 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
20277
1b394975
IC
202782010-12-31 Ian Campbell <ijc@hellion.org.uk>
20279
20280 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
20281 Xen and reorder menu item wording to make it clearer that this entry
20282 will launch Xen. Print separate messages when loading Xen and
20283 Linux.
20284
275bff5f
VS
202852010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
20286
20287 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
20288 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
20289 loop in case of incorrect amiga partmap.
20290
307806cb
VS
202912010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
20292
20293 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
20294 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
20295 Reported by:EHeM.
20296
b12b923e
VS
202972010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
20298
20299 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
20300 spurious warning.
20301 Reported by: crocket
20302
14b48a19
VS
203032010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
20304
20305 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
20306 Preload EFIemu.
20307 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
20308
693db2df
VS
203092010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
20310
20311 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
20312 is loaded
20313 (grub_cmd_xnu_kextdir): Likewise.
20314 (grub_cmd_xnu_splash): Likewise.
20315
c7638645
VS
203162010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
20317
20318 Avoid using Reed-Solomon with 0 redundancy.
20319
20320 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
20321 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
20322 or 0 redundancy.
20323 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
20324 (grub_reed_solomon_recover): Likewise.
20325
25dd4780
VS
203262010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
20327
20328 Don't use disk subsystem in freebsd_boot.
20329
20330 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
20331 (freebsd_biosdev): Likewise.
20332 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
20333 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
20334
0b2db943
VS
203352010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
20336
20337 Handling of files of unknown size is currently limited. They can't be
20338 used e.g. for initrd or modules. Moreover gzip handling of not
20339 easily seekable files is buggy. Disable unknown file size for now. May
20340 be inefficient but works.
20341
20342 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
20343 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
20344
5c408d0f
MP
203452010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
20346
20347 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
20348 floppy probe.
20349
190a011a
JD
203502010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
20351
20352 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
20353
022d01b8
SL
203542010-12-25 Shea Levy <shlevy>
20355
20356 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
20357
c4855fdc
VS
203582010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
20359
20360 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
20361 Windows Server 2008.
20362 Reported by: Devin Giddings.
20363
0354b867
VS
203642010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
20365
20366 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
20367 writing an error message because of async power management.
20368 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
20369 (grub_reboot): Likewise.
20370
ab66c69f
JU
203712010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
20372
20373 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
20374 keep unit tests from failing when they shouldn't.
20375
1426ef35
CW
203762010-12-21 Colin Watson <cjwatson@ubuntu.com>
20377
20378 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
20379 previous patch increased the size of the RS code by 20 bytes (at
20380 least with gcc-4.4), so increase this by 20 bytes to match.
20381 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
20382
20641b6b
CW
203832010-12-21 Colin Watson <cjwatson@ubuntu.com>
20384
20385 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
20386 scratch area. Make sure to initialise chosen in standalone mode as
20387 well as non-standalone.
20388 Reported by: Robert Hooker and Andy Whitcroft.
20389 Tested by: Andy Whitcroft.
20390
d060ad60
CW
203912010-12-21 Colin Watson <cjwatson@ubuntu.com>
20392
20393 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
20394 constructing a new unescaped string and passing it to grub_xputs in
20395 one go, rather than passing characters to grub_printf one at a time.
20396
b889cfad
CW
203972010-12-21 Colin Watson <cjwatson@ubuntu.com>
20398
20399 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
20400 initialising utf16.
20401
4e01b6c8
CW
204022010-12-21 Colin Watson <cjwatson@ubuntu.com>
20403
20404 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
20405 comment. Add an extra layer of quotation, requiring the output of
20406 this function to be used in a printf format string.
20407 (gettext_printf): New function.
20408 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
20409 Extract translatable strings from here-documents and use a temporary
20410 variable instead, so that xgettext can find them.
20411 * util/grub.d/10_kfreebsd.in: Likewise.
20412 * util/grub.d/10_linux.in: Likewise.
20413 * util/grub.d/20_linux_xen.in: Likewise.
20414
20415 * po/grub.d.sed: New file.
20416 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
20417 arguments. Set c-format flags on all strings extracted from
20418 util/grub.d/ (xgettext refuses to include these itself for strings
20419 it extracted from a shell file, but these really are c-format).
20420
5318fe98
VS
204212010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
20422
20423 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
20424 Avoid next pointing to nowhere.
20425
6c85b743
VS
204262010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
20427
20428 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
20429 rather than assuming than rootblock is exactly in the middle.
20430 (grub_affs_label): Likewise.
20431
a2a08a35
VS
204322010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
20433
20434 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
20435 reserved_first_sector to 0.
20436 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
20437 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
20438 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
20439
7059d1ec
VS
204402010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
20441
20442 Fix handling of UTF-16 UDF labels.
20443
20444 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
20445 (read_string): .. here.
20446 (grub_udf_label): Use read_string.
20447
30aff4cb
BC
204482010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
20449
20450 * grub-core/normal/menu_entry.c (run): Execute commands from menu
20451 editor under argument scope.
20452 Reported by: Jordan Uggla
20453
5cf86f4b
VS
204542010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
20455
20456 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
20457
32570200
CW
204582010-12-18 Colin Watson <cjwatson@ubuntu.com>
20459
20460 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
20461 line, and other keys scroll an entire page (previous handling was
20462 for \r and \n to scroll a page and other keys to scroll two lines).
20463
e1dffcf2
VS
204642010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
20465
20466 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
20467 Set ptrdest to correct get_physical_target_address rather than
20468 incorrect get_virtual_current_address.
20469
b04298cf 204702010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
20471
20472 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
20473 correct cat to grub_uint8_t * rather than grub_uint32_t *.
20474
5367ecd3
CW
204752010-12-10 Colin Watson <cjwatson@ubuntu.com>
20476
20477 * .bzrignore: Ignore grub-core/rs_decoder.S.
20478
1fb430f8
CW
204792010-12-10 Colin Watson <cjwatson@ubuntu.com>
20480
20481 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
20482 .mo/.mo.gz opening sequence to ...
20483 (grub_mofile_open_lang): ... here.
20484 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
20485 * util/grub.d/00_header.in (grub_lang): Include country part of
20486 locale.
20487 Reported by: Mario Limonciello.
20488
a94a6671
RM
204892010-12-09 Robert Millan <rmh@gnu.org>
20490
20491 * NEWS: Document addition of ZFS support.
20492
24b7938b
CW
204932010-12-04 Colin Watson <cjwatson@ubuntu.com>
20494
20495 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
20496 rather than `/ 2', as the latter requires -Wa,--divide which would
20497 require bumping our minimum binutils version.
20498
bddc3ef6
BC
204992010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
20500
20501 * util/grub-script-check.c (main): Print script line number on
20502 error.
20503
bf78d5b2
RM
205042010-12-01 Robert Millan <rmh@gnu.org>
20505
20506 * grub-core/fs/zfs/zfs.c: New file.
20507 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
20508 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
20509 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
20510 * grub-core/fs/zfs/zfsinfo.c: Likewise.
20511
20512 * include/grub/zfs/dmu.h: Likewise.
20513 * include/grub/zfs/dmu_objset.h: Likewise.
20514 * include/grub/zfs/dnode.h: Likewise.
20515 * include/grub/zfs/dsl_dataset.h: Likewise.
20516 * include/grub/zfs/dsl_dir.h: Likewise.
20517 * include/grub/zfs/sa_impl.h: Likewise.
20518 * include/grub/zfs/spa.h: Likewise.
20519 * include/grub/zfs/uberblock_impl.h: Likewise.
20520 * include/grub/zfs/vdev_impl.h: Likewise.
20521 * include/grub/zfs/zap_impl.h: Likewise.
20522 * include/grub/zfs/zap_leaf.h: Likewise.
20523 * include/grub/zfs/zfs.h: Likewise.
20524 * include/grub/zfs/zfs_acl.h: Likewise.
20525 * include/grub/zfs/zfs_znode.h: Likewise.
20526 * include/grub/zfs/zil.h: Likewise.
20527 * include/grub/zfs/zio.h: Likewise.
20528 * include/grub/zfs/zio_checksum.h: Likewise.
20529
20530 * Makefile.util.def: Build ZFS into libgrubmods.
20531 * grub-core/Makefile.core.def: Build zfs.mod.
20532
3f0f3831
SJ
205332010-11-30 Szymon Janc <szymon@janc.net.pl>
20534
20535 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
20536 variable.
20537 * grub-core/commands/wildcard.c (match_files): Likewise.
20538
3a4253b2
RM
205392010-11-30 Robert Millan <rmh@gnu.org>
20540
20541 * grub-core/loader/i386/bsd.c
20542 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
20543 whether kernel is loaded using grub_loader_is_loaded(), rather
20544 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
20545 certain error conditions.
20546
8c317b27
RM
205472010-11-30 Robert Millan <rmh@gnu.org>
20548
c5c9cd3e
RM
20549 * grub-core/commands/echo.c: Include `<grub/term.h>'.
20550 (grub_cmd_echo): Call grub_refresh() after printing a message.
8c317b27 20551
49d3ab46
VS
205522010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
20553
20554 Avoid using tricks for initialising endian variables.
20555
20556 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
20557 Make const.
20558 (GRUB_MOD_INIT): Don't byte-swap.
20559 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
20560 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
20561 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
20562 (grub_swap_bytes32_compile_time): Likewise.
20563 (grub_cpu_to_le32_compile_time): Likewise.
20564 (grub_cpu_to_le16_compile_time): Likewise.
20565
f420a804
VS
205662010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
20567
20568 * util/grub-setup.c (setup): Stop recommending --force. People who
20569 understand the dangers of blocklists are able to find this option
20570 anyway and the ones who don't shouldn't use it anyway.
20571
4e7db17b
RM
205722010-11-26 Robert Millan <rmh@gnu.org>
20573
20574 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
20575 Update all users.
20576
9be57a0d
CW
205772010-11-26 Colin Watson <cjwatson@ubuntu.com>
20578
20579 Fix LVM-on-RAID probing.
20580
20581 * util/grub-probe.c (probe): Remember which disk was detected as
20582 RAID (perhaps an LVM physical volume). Use that disk's raidname
20583 rather than that of the top-level disk.
20584
2c7859b3 205852010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
7e623b0d 20586
d7647bb6
BC
20587 Fix cmdline argument quotes for setparams command of menuentry
20588 definitions.
7e623b0d
BC
20589
20590 * grub-core/commands/menuentry.c (setparams_prefix): Use single
20591 quotes for arguments.
f866fe80 20592 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
7955bea0 20593 grub_strchrsub function instead.
f866fe80 20594
7955bea0 20595 * include/grub/misc.h (grub_strchrsub): New function.
7e623b0d 20596
74f72a64
CW
205972010-11-24 Colin Watson <cjwatson@ubuntu.com>
20598
20599 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
20600 effort by skipping "." and ".." entries up-front.
20601 Suggested by: Michael Lazarev.
20602
5a407278
CW
206032010-11-24 Colin Watson <cjwatson@ubuntu.com>
20604
20605 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
20606 ldflags to ldadd, to fix link line ordering.
20607 (none_decompress): Likewise.
20608
3030d8ec
CW
206092010-11-24 Colin Watson <cjwatson@ubuntu.com>
20610
20611 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
20612 platforms.
20613 (grub-emu-lite): Remove kern/emu/cache.S.
20614
b7fbac12
CW
206152010-11-23 Colin Watson <cjwatson@ubuntu.com>
20616
20617 * util/deviceiter.c (compare_devices): If the by-id link for a
20618 device couldn't be resolved, fall back to sorting by the by-id link
20619 rather than segfaulting.
20620 Reported and tested by: Daniel Mierswa.
20621
5225f328
CW
206222010-11-23 Colin Watson <cjwatson@ubuntu.com>
20623
20624 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
20625 ldflags, to fix link line ordering.
20626
038b3ce8
CW
206272010-11-23 Colin Watson <cjwatson@ubuntu.com>
20628
20629 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
20630 linkers are picky about this.
20631
bf16e98e
CW
206322010-11-23 Colin Watson <cjwatson@ubuntu.com>
20633
20634 * grub-core/Makefile.am (command.lst): Adjust sed expression
20635 ordering so that extended and priority commands aren't treated as
20636 ordinary commands.
20637
7242bab6
CW
206382010-11-23 Colin Watson <cjwatson@ubuntu.com>
20639
20640 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
20641 Remove byte-swapping function calls, which are not valid in
20642 structure initialisers.
20643 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
20644 non-const.
20645 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
20646 grub_gpt_partition_type_bios_boot.
20647
14e8b279
CW
206482010-11-22 Colin Watson <cjwatson@ubuntu.com>
20649
20650 Fix test program build on GNU/kFreeBSD.
20651
20652 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
20653 $(LIBNVPAIR)' library dependencies.
20654
e6f63338 206552010-11-22 Colin Watson <cjwatson@ubuntu.com>
03df09c7
CW
20656
20657 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
20658
cf8ffc38
CW
206592010-11-22 Colin Watson <cjwatson@ubuntu.com>
20660
20661 * util/grub-install.in: Remove excessive quoting that broke
20662 installations to RAID devices.
20663
7f8b0fd7
VS
206642010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
20665
20666 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
20667 bootloader version instead of 0.
20668
dfd240b1
VS
206692010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
20670
20671 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
20672 warning.
20673
7b61e609
VS
206742010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
20675
20676 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
20677 retrieve the metadat sector if size isn't known.
20678 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20679
9dfe92d0
RM
206802010-11-18 Robert Millan <rmh@gnu.org>
20681
20682 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
20683 with grub_memcmp().
20684
41cc919e
VS
206852010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
20686
20687 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
20688 arrow.
20689 Reported by: Jordan Uggla.
20690
1afcc914
VS
206912010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
20692
20693 Make better UTF compliant.
20694
20695 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
20696 sequences as incorrect.
20697 (grub_is_valid_utf8): Likewise.
20698 (grub_utf8_to_ucs4): Likewise.
20699 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
20700 (grub_ucs4_to_utf8_alloc): Likewise.
20701 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
20702
f1808884
VS
207032010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
20704
20705 Make legacy_source behave like source.
20706
20707 * grub-core/commands/legacycfg.c (legacy_file): Don't call
20708 grub_show_menu.
20709 (grub_cmd_legacy_source): Call grub_show_menu if needed.
20710
24ec575b
CW
207112010-11-16 Colin Watson <cjwatson@debian.org>
20712
20713 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
20714 (-Wunused implies -Wunused-parameter, but not vice versa).
20715
72b7c7aa
CW
207162010-11-16 Colin Watson <cjwatson@ubuntu.com>
20717
20718 * configure.ac: Make error messages less confusing by testing for
20719 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
20720 accepted, but produces a diagnostic if something else is wrong).
20721
e98937aa
VS
207222010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
20723
20724 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
20725 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
20726 (now unused).
20727 (grub_keyboard_controller_init)
20728 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
20729 read the initial state since controller isn't inited yet.
20730
f6bbabc3
VS
207312010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
20732
20733 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
20734 allocate_regbeg may need to create new chunk header.
20735
22e7dbb2
VS
207362010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
20737
20738 Fix quoting in legacy parser.
20739
20740 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
20741 single quotes.
20742 (grub_legacy_parse): Likewise.
20743 Reported by: Jordan Uggla.
20744 Tested by: Jordan Uggla.
20745
03f80960
VS
207462010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
20747
20748 Don't add -lgcc on i386 and x86_64.
20749
20750 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
20751 * conf/Makefile.common (LDADD_KERNEL): Likewise.
20752 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
20753
779dc15b
VS
207542010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
20755
20756 * configure.ac: Add -Wno-trampolines when supported.
20757
d20a3b37
MV
207582010-11-14 Modestas Vainius <modax@debian.org>
20759
20760 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
20761 fakeraid.
20762
e5360933
GC
207632010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
20764
20765 Add generic logical block size support for UDF.
20766
20767 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
20768 (GRUB_UDF_BLKSZ): Removed.
20769 (struct grub_udf_data): New field "lbshift" to hold the logical block
20770 size of the file system in log2 format. All users updated.
20771 (sblocklist): Change type to unsigned.
20772 (grub_udf_mount): Change type of "sblklist" to unsigned.
20773 Move AVDP search before VRS recognition, because the latter requires
20774 knowledge of the logical block size, which is detected during the
20775 former.
20776 Detect and validate logical block size during AVDP search, adding
20777 support for block sizes 512, 1024 and 4096.
20778 Make VRS recognition independent of block size.
20779
cb0229c5
GC
207802010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
20781
20782 Properly handle deleted files on UDF.
20783
20784 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
20785 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
20786 set.
20787
406858a8
GC
207882010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
20789
20790 Support reading files larger than 2 GiB.
20791
20792 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
20793 "offset" to grub_off_t.
20794 (grub_udf_read_file): Likewise for parameter "pos".
20795
130da6a7
VS
207962010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
20797
20798 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
20799 unavailable.
20800 (Simple configuration): Refer to Changes from GRUB Legacy about
20801 save_env availability.
20802
65e93f6b
VS
208032010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
20804
20805 * util/grub-install.in: Ignore empty partition table detection
20806 instead of trying to include part_ module.
20807
1fd08bf1
VS
208082010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
20809
20810 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
20811 LVM on RAID support.
20812
de1a024f
VS
208132010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
20814
20815 Properly define WORDS_BIGENDIAN in wrapped environments.
20816
20817 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
20818 definition.
20819 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
20820
20821 Reported by: Manoel Rebelo Abranches.
20822 Tested by: Manoel Rebelo Abranches.
20823
bc5dd0b9
VS
208242010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
20825
20826 * util/grub-mkconfig.in: Fix quoting.
20827
58c184be
VS
208282010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
20829
20830 Support big ext2 files.
20831
20832 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
20833 (grub_ext2_read_block): Support triple indirect blocks.
20834 (grub_ext2_read_file): Use 64-bit types and read size_high.
20835 (grub_ext2_open): Read size_high.
20836 Reported by: Ximin Luo.
20837 Tested by: Manoel Rebelo Abranches.
20838
5f0c02b3
VS
208392010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
20840
20841 * util/grub-install.in: Handle filenames containing spaces.
20842 Reported by: Jordan Uggla.
20843 Tested by: Jordan Uggla.
20844
4417aae6
VS
208452010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
20846
20847 * util/grub-mkconfig.in (grub_script_check): New variable.
20848 Use grub_script_check instead of grub-script-check.
20849 Reported by: Barry Jackson.
20850
7625a68e
VS
208512010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
20852
20853 * docs/grub.texi (menu): Correct the order.
20854 Reported by: D. Hugh Redelmeier.
20855
10001ac5
VS
208562010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
20857
20858 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
20859 jump.
20860
9c4cf53b
MRA
208612010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
20862
10001ac5
VS
20863 * include/grub/elfload.h (grub_elf32_size): New parameter.
20864 All users updated.
9c4cf53b
MRA
20865 Return maximum segments alignment.
20866 (grub_elf64_size): Likewise.
20867 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
20868 Return maximum segments alignment.
20869 (grub_elf64_size): Likewise.
20870 * grub-core/loader/powerpc/ieee1275/linux.c:
10001ac5
VS
20871 (grub_linux_claimmap_iterate): New function. Uses the
20872 "available" property in the "memory" node for memory allocation
20873 for kernel in the PowerPC loader.
9c4cf53b
MRA
20874 (grub_linux_load32): Correctly find linux entry point offset.
20875 (grub_linux_load64): Likewise.
20876
d2bf06bf
RM
208772010-11-07 Robert Millan <rmh@gnu.org>
20878
20879 On mips-yeeloong, build with -march=loongson2f when this flag is
20880 available (GCC >= 4.4).
20881 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
20882 `-march=mips3'.
20883 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
20884 or otherwise add -march=mips3.
20885
898c99a2
BC
208862010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
20887
87220a68
BC
20888 Suppress shell expansion on echo '*' and echo "*" like cases.
20889 Reported by: Jordan Uggla.
898c99a2
BC
20890
20891 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
20892 string arguments before shell expansion.
20893 * tests/grub_cmd_echo.in: New testcases.
20894
4f9b406a
RM
208952010-11-07 Robert Millan <rmh@gnu.org>
20896
20897 * conf/mips-qemu-mips.rmk: Remove stale file from previous
20898 transition.
20899
80c6d25e
VS
209002010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
20901
20902 * grub-core/kern/emu/hostdisk.c
20903 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
20904
4a1a0153
VS
209052010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
20906
20907 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
20908 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
20909 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
20910
34706ddc
VS
209112010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
20912
20913 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
20914
6972dea9
VS
209152010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
20916
20917 * util/grub-install.in: Replace useless recomendation to pass
20918 --modules with a recomendation to report a bug.
20919
9c693bd6
VS
209202010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
20921
20922 Properly register serial terminfo.
20923 Reported by: Jordan Uggla
20924
20925 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
20926 const.
20927 (grub_serial_terminfo_output_template): Likewise.
20928 (grub_cmd_serial): Register "serial" with terminfo.
20929 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
20930 grub_serial_terminfo_output.
20931
6c9e4c0c
RM
209322010-11-05 Robert Millan <rmh@gnu.org>
20933
20934 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
20935 needed).
20936
b9b3839f
RM
209372010-11-05 Robert Millan <rmh@gnu.org>
20938
20939 On Yeeloong, pass machine type information to Linux.
20940
20941 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
20942 (LOONGSON_MACHTYPE): New macro, set to
20943 "machtype=lemote-yeeloong-2f-8.9inches".
20944 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
20945 additional argument to Linux.
20946
1a3aaff4
RM
209472010-11-04 Robert Millan <rmh@gnu.org>
20948
20949 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
20950 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
20951 (its SATA disks are detected as slaveless IDE master drives on
20952 kFreeBSD).
20953 Reported by Carsten Aulbert.
20954
a75f4f62
CW
209552010-11-02 Colin Watson <cjwatson@ubuntu.com>
20956
20957 * util/bin2h.c (main): Fix spelling error in generated output.
20958
33b4b0c6
GS
209592010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
20960
20961 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
20962
2b36fbf4
VS
209632010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
20964
20965 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
20966 vga= option is supplied.
20967
74aaf558
VS
209682010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
20969
20970 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
20971 * util/grub.d/10_kfreebsd.in: Likewise.
20972 * util/grub.d/10_linux.in: Likewise.
20973 * util/grub.d/20_linux_xen.in: Likewise.
20974
6428dec3
VS
209752010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
20976
20977 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
20978 argument as an argument to no-argument option.
20979
f8729d98
VS
209802010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
20981
20982 * util/grub.d/10_linux.in: Add missing load_video with explicit
20983 GRUB_GFXPAYLOAD_LINUX.
20984
89d68fa6
VS
209852010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
20986
20987 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
20988
3a1197cd
VS
209892010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
20990
20991 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
20992 elements with invlid index.
20993 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20994 * grub-core/disk/raid.c (insert_array): Automatically reallocate
20995 members.
20996 * include/grub/raid.h (grub_raid_member): New struct.
20997 (grub_raid_array): Transform devices and start_sector into usage of
20998 grub_raid_member. All users updated
20999 (allocated_devs): New member.
21000
71574288
VS
210012010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
21002
21003 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
21004 is modified
21005
8d40ec65
BC
210062010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
21007
21008 NetBSD build fix for getline function conflict from gnulib.
21009
21010 * Makefile.util.def (libgrubkern.a): New library for grub kernel
21011 components that depend on gnulib headers.
21012 (libgrubmods.a): Renamed from earlier libgrub.a.
21013 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
21014
95b9257e
VS
210152010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
21016
21017 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
21018 install rather than creating a broken install.
21019
26c53dc6
VS
210202010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
21021
21022 * util/grub-setup.c (argp): Remove misleading example of installing to
21023 a partition.
21024
4171b3c5
VS
210252010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
21026
21027 * util/grub-setup.c (setup): Clarify the error message.
21028
18568d18
VS
210292010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
21030
21031 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
21032
4f6a2e21
VS
210332010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
21034
21035 * grub-core/kern/emu/misc.c
21036 (grub_make_system_path_relative_to_its_root)
21037 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
21038
210392010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5c81f8b3
VS
21040
21041 * grub-core/kern/emu/misc.c
21042 (grub_make_system_path_relative_to_its_root): Revert r2882.
21043
e138c458
VS
210442010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
21045
21046 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
21047 useless field head. All users updated.
21048 (free_subchunk): Correct handling of IN_REGION subchunk.
21049
0cbcdf0e
CW
210502010-10-22 Colin Watson <cjwatson@ubuntu.com>
21051
21052 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
21053 (Supported kernels): Likewise.
21054
b65ea155
GS
210552010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
21056
21057 Make mktemp invocations portable.
21058
21059 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
21060 exit if mktemp fails.
21061 * tests/grub_script_blockarg.in: Likewise.
21062 * tests/partmap_test.in: Likewise.
21063 * tests/util/grub-shell-tester.in: Likewise.
21064 * tests/util/grub-shell.in: Likewise.
21065 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
21066 * Makefile.am: Likewise, and chain shell commands with `&&'
21067 instead of ';'.
21068 * util/grub-mkrescue.in: Use the same explicit template as above, and
21069 exit if mktemp fails.
21070
05f43cdd
BC
210712010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
21072
21073 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
21074 Linux kernel, reported by Dennis Schridde.
21075
800e6a9b
SJ
210762010-10-17 Szymon Janc <szymon@janc.net.pl>
21077
21078 * grub-core/normal/auth.c (grub_auth_check_authentication):
21079 Set-but-not-used variable removed.
21080
d82df574
VS
210812010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
21082
21083 * docs/grub.texi (GNU/Linux): Document APM unavailability with
21084 32-bit linux protocol.
21085
7bced458
VS
210862010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
21087
21088 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
21089 cursor shape for sanity.
21090
5b027690
VS
210912010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
21092
21093 * docs/grub.texi (Installation): Document buggy BIOS install.
21094
ba5f65cf
VS
210952010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
21096
21097 * docs/grub.texi (Installation): Indent.
21098
fdf2ec9c
VS
210992010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
21100
21101 * util/grub-setup.c (setup): New parameter allow_floppy.
21102 (arguments): New member allow_floppy.
21103 (argp_parser): Handle --allow-floppy.
21104 (main): Pass allow_floppy.
21105 * util/grub-install.in: New option --allow-floppy passed though to
21106 grub-setup.
21107
861dfd4c
VS
211082010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
21109
21110 * util/grub-install.in: Handle partitionless disks.
21111
f77a8c24
VS
211122010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
21113
21114 * util/grub-setup.c (setup): Don't clean blocklists before readability
21115 verfification.
21116
27d9ee32
VS
211172010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
21118
21119 * docs/grub.texi (Installation): Document embedding zone. Remove
21120 obsolete grub-install example.
21121
6bdda8f8
SJ
211222010-10-16 Szymon Janc <szymon@janc.net.pl>
21123
21124 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
21125 Set-but-not-used variable ifdef'ed.
21126 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
21127 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
21128 variable removed.
21129 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
21130 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
21131 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
21132 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
21133 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
21134 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
21135 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
21136 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
21137 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
21138 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
21139 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
21140 Likewise.
21141
e19b016b
VS
211422010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
21143
21144 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
21145 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
21146 enum value.
21147
6c8d3002
VS
211482010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
21149
21150 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
21151 synonym to _S5_. Needed for some DSDTs.
21152
c32b51c9
VS
211532010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
21154
21155 Userspace ACPI parser debugging.
21156
21157 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
21158 headers and add relevant defines. Don't include standard headers.
21159 (main) [GRUB_DSDT_TEST]: New function.
21160 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
21161 Don't declare functions.
21162
fbfbeb39
VS
211632010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
21164
21165 Remove dead grub_efi_mm_fini.
21166
21167 * grub-core/kern/efi/mm.c (allocated_page): Removed.
21168 (ALLOCATED_PAGES_SIZE): Likewise.
21169 (MAX_ALLOCATED_PAGES): Likewise.
21170 (allocated_pages): Likewise.
21171 (grub_efi_allocate_pages): Don't record allocated pages.
21172 (grub_efi_free_pages): Likewise.
21173 (grub_efi_mm_init): Likewise.
21174 (grub_efi_mm_fini): Removed.
21175
65f7ed7c
VS
211762010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
21177
21178 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
21179 (grub_efi_mm_init): Take into account the memory map size increase.
21180
24977b44
VS
211812010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
21182
21183 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
21184 (serial_hw_put): Wait based on real time rather than port reads. Don't
21185 roken ports.
21186 * include/grub/serial.h (grub_serial_port): New field broken.
21187
1eb01cd2
RM
211882010-10-16 Robert Millan <rmh@gnu.org>
21189
21190 * grub-core/kern/emu/misc.c
21191 (grub_make_system_path_relative_to_its_root): Fix premature return
21192 when processing non-root ZFS filesystems.
5f8b440b 21193 Reported by Sergio Talens-Oliag.
1eb01cd2 21194
2d5fed60
RM
211952010-10-15 Robert Millan <rmh@gnu.org>
21196
21197 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
21198 guarantee compressed ones are processed first.
21199
d0f4c1ea
VS
212002010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
21201
21202 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
21203 grub_efiemu_autocore.
21204
d87c681f
VS
212052010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
21206
21207 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
21208 rather than 0x1b.
21209 (grub_console_getkey): Use correct jae opcode rather than ja.
21210
219b3564
RM
212112010-10-12 Robert Millan <rmh@gnu.org>
21212
21213 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
21214 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
21215 variable. All references updated.
21216
21217 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
21218
20c6bb7e
VS
212192010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
21220
21221 Correctly distinguish mdraid flavours.
21222
21223 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
21224 (insert_array): New argument raid.
21225 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
21226 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
21227 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
21228
74baff84
VS
212292010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
21230
21231 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
21232 handling of special keys.
21233
3ef068df 212342010-10-02 Aleš Nesrsta <starous@volny.cz>
21235
c7980ad9
VS
21236 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
21237 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
3ef068df 21238
a9455194 212392010-10-02 Aleš Nesrsta <starous@volny.cz>
21240
c7980ad9
VS
21241 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
21242 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
21243 users updated.
a9455194 21244 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
c7980ad9 21245 Use right endpoint when querying descriptor.
a9455194 21246
441cfe65
VS
212472010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
21248
21249 Clear out 0x80 color bit on EFI.
21250 Tested by: decoder
21251 Reported by: decoder and meta tech.
21252
21253 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
21254 (grub_console_setcolorstate): Clear out 0x80 bit.
21255 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
21256 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
21257 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
21258
bf26bcc4
VS
212592010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
21260
21261 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
21262 Set to "auto".
21263
6e3c515d
VS
212642010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
21265
21266 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
21267 mo_file after freeing.
21268
e6d983ba
VS
212692010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
21270
21271 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
21272
74ccb5b5
VS
212732010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
21274
21275 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
21276 flags.
21277
17821956
VS
212782010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
21279
21280 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
21281 usage.
21282
ee74fa48
VS
212832010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
21284
21285 Put terminfo into core on ieee1275 and yeeloong (needed for console).
21286
21287 * gentpl.py: New groups terminfoinkernel and terminfomodule.
21288 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
21289 and terminfo.h when needed.
21290 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
21291 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
21292 (terminfo): Enable only on terminfokernel.
21293 (extcmd): Likewise.
21294 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
21295 * include/grub/lib/arg.h: Likewise.
21296 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
21297 incorrect usage of ->.
21298
aa438e68
VS
212992010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
21300
21301 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
21302 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
21303
57994012
VS
213042010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
21305
21306 Fix coreboot compilation.
21307
21308 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
21309 Take VBE info into account even if only text is supported.
21310 (fill_vbe_info): Take into account the case when only VGA text
21311 is supported.
21312 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
21313 on coreboot, multiboot and qemu.
21314
2a406611
VS
213152010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
21316
21317 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
21318 debug messages.
21319 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
21320
d33613fc
VS
213212010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
21322
21323 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
21324 parameters.
21325
44a1b432
VS
213262010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
21327
21328 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
21329 if they were BSD-style.
21330
edde54e6
VS
213312010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
21332
21333 * grub-core/boot/i386/pc/lnxboot.S: Replace
21334 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
21335 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
21336
b65830fa
VS
213372010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
21338
21339 Write embedding zone using Reed-Solomon.
21340
21341 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
21342 * grub-core/Makefile.am (rs_decoder.S): New target.
21343 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
21344 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
21345 (multiboot): Move to RS part.
21346 (post_reed_solomon): New label.
21347 (grub_boot_drive): Move to non-RS part since it's modified in memory
21348 on boot.
21349 Include rs_decoder.S.
21350 * grub-core/lib/reed_solomon.c: New file.
21351 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
21352 New definition.
21353 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
21354 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
21355 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
21356 * include/grub/partition.h (grub_partition_map): Change prototype of
21357 embed to allow returning additional sectors.
21358 * include/grub/reed_solomon.h: New file.
21359 * util/grub-setup.c (setup): Handle Reed-Solomon.
21360
0b4b227f
CW
213612010-09-28 Colin Watson <cjwatson@ubuntu.com>
21362
21363 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
21364 i386 and x86-64 definedness tests.
21365
f772623b
YB
213662010-09-27 Yves Blusseau <blusseau@zetam.org>
21367
21368 Fix generation of kernel_syms.lst
21369
21370 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
21371 ASM_PREFIX
21372
8e57a6ca
RM
213732010-09-26 Robert Millan <rmh@gnu.org>
21374
21375 Support degraded ZFS arrays in "grub-probe -t device" resolution.
21376
21377 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
21378 the pool is an array of devices, iterate through it and return the
21379 first device that passes a stat() test (instead of blindly returning
21380 the first one).
21381
f9130836
RM
213822010-09-26 Robert Millan <rmh@gnu.org>
21383
21384 Build fixes for GNU/kFreeBSD.
21385
21386 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
21387 to programs that require ZFS conversion.
21388 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
21389 kernels that don't have FLOPPY_MAJOR.
21390
96510faf
BC
213912010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
21392
21393 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
21394
449333eb
BC
213952010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
21396
21397 Fix grub-emu build.
21398
21399 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
21400 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
21401 mdraid09 and mdraid1x.
21402
e1fd1939
CW
214032010-09-24 Colin Watson <cjwatson@ubuntu.com>
21404
21405 Re-enable grub-extras.
21406
21407 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
21408 avoid confusing Automake. Run autogen only twice, once for the top
21409 level and once for grub-core. Add Makefile.util.def and
21410 Makefile.core.def from extra modules to the appropriate autogen
21411 invocations. If Makefile.common exists in an extra module, include
21412 it in both Makefile.util.am and grub-core/Makefile.core.am;
21413 similarly, include any Makefile.util.common file in Makefile.util.am
21414 and any Makefile.core.common file in grub-core/Makefile.core.am.
21415 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
21416 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
21417 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
21418 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
21419
21420 * gentpl.py (gvar_add): Turn GVARS into a set.
21421 (global_variable_initializers): Sort global variables on output.
21422 (vars_init): New function.
21423 (first_time): Likewise.
21424 (library): Ensure that non-global variable initialisations are
21425 emitted before the first time we emit code for a library block.
21426 Append to variables rather than setting them. Only emit
21427 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
21428 each conditional path.
21429 (program): installdir() emits an Autogen macro, so must be passed to
21430 var_add rather than gvar_add.
21431 (data): Likewise.
21432 (script): Likewise.
21433 (rules): New function, centralising handling for different target
21434 types. Set up Guile association lists for first_time and vars_init,
21435 and send most output to a diversion so that variable initialisations
21436 can be emitted first.
21437 (module_rules): Use new rules function.
21438 (kernel_rules): Likewise.
21439 (image_rules): Likewise.
21440 (library_rules): Likewise.
21441 (program_rules): Likewise.
21442 (script_rules): Likewise.
21443 (data_rules): Likewise.
21444
21445 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
21446
21447 * .bzrignore: Add contrib and grub-core/contrib. Remove
21448 grub-core/Makefile.gcry.am.
21449
1d12cf29
YB
214502010-09-24 Yves Blusseau <blusseau@zetam.org>
21451
21452 * grub-core/lib/LzFind.c: Add missing include.
21453 * grub-core/lib/LzmaEnc.c: Likewise.
21454 * grub-core/script/lexer.c: Likewise.
21455 * grub-core/script/yylex.l: Likewise.
21456 * util/grub-macho2img.c: Likewise.
21457 * util/grub-menulst2cfg.c: Likewise.
21458 * util/grub-mklayout.c: Likewise.
21459 * util/grub-mkpasswd-pbkdf2.c
21460 * util/grub-mkrelpath.c: Likewise.
21461 * util/resolve.c: Likewise.
21462
dd363028
BC
214632010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
21464
21465 * Makefile.util.def (example_unit_test): Add
21466 grub-core/gnulib/libgnu.a.
21467
f5a109e2
GS
214682010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
21469
21470 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
21471
6d0fa83c
VS
214722010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
21473
21474 Support xz compression on yeeloong.
21475
21476 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
21477 * configure.ac: Check for LZMA.
21478 * grub-core/Makefile.core.def (xz_decompress): New target.
21479 (none_decompress): Likewise.
21480 * grub-core/boot/decompressor/minilib.c: New file.
21481 * grub-core/boot/decompressor/none.c: Likewise.
21482 * grub-core/boot/decompressor/xz.c: Likewise.
21483 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
21484 * grub-core/kern/mips/cache_flush.S: Likewise.
21485 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
21486 * grub-core/kern/mips/startup.S: Move first stage to ...
21487 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
21488 nomacro.
21489 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
21490 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
21491 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
21492 Allocate statically.
21493 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
21494 Allocate statically or use scratch. Don't check CRC32.
21495 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
21496 Allocate statically. Don't check CRC32.
21497 * include/grub/decompressor.h: New file.
21498 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
21499 Removed.
21500 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
21501 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
21502 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
21503 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
21504 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
21505 * util/grub-mkimage.c (grub_compression_t): New type.
21506 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
21507 (image_target_desc): New field default_compression.
21508 (image_targets): Adjust yeeloong targets.
21509 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
21510 (compress_kernel): New parameter comp.
21511 (generate_image): Likewise. Handle new compression case.
21512 (options): New option --compression
21513 (help): Likewise.
21514 (main): Handle new option.
21515
1b655af6
GS
215162010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
21517
21518 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
21519
8f03f0b5
CW
215202010-09-22 Colin Watson <cjwatson@ubuntu.com>
21521
21522 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
21523 typo in __i386__ conditional.
21524
7835dfd3
VS
215252010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
21526
21527 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
21528 include.
21529
e255597e
VS
215302010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
21531
6d0fa83c 21532 Implement EFI and ACPI multiboot2 extensions.
e255597e
VS
21533
21534 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
21535 new tags as supported.
21536 (acpiv2_size): New function.
21537 (grub_multiboot_get_mbi_size): Take new tags into account.
21538 (grub_multiboot_make_mbi): Add new tags.
21539 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
6d0fa83c 21540
6cc14051 215412010-09-21 Aleš Nesrsta <starous@volny.cz>
21542
21543 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
21544 Added missing configuration of USB device.
21545
df7769d8
CW
215462010-09-21 Colin Watson <cjwatson@ubuntu.com>
21547
21548 * grub-core/normal/menu_entry.c (run): Make sure we always return
21549 a value.
21550
b031012d
CW
215512010-09-21 Colin Watson <cjwatson@ubuntu.com>
21552
21553 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
21554 NumberOfPages is UINT64 according to the UEFI specification, not
21555 UINTN. Fix printf format.
21556
174de8f3
CW
215572010-09-21 Colin Watson <cjwatson@ubuntu.com>
21558
21559 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
21560 `err' to grub_usb_err_t.
21561 Reported and tested by: KESHAV P.R.
21562
d7dbe923
CW
215632010-09-21 Colin Watson <cjwatson@ubuntu.com>
21564
21565 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
21566 tpart non-const, so that we can assign to it. (Since this is a
21567 typedef, the constness refers to the pointer rather than what it
21568 points to.)
21569
8d5e2af3
CW
215702010-09-21 Colin Watson <cjwatson@ubuntu.com>
21571
21572 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
21573 $(top_srcdir)/grub-core/gnulib as well as
21574 $(top_builddir)/grub-core/gnulib.
21575 Reported by: KESHAV P.R.
21576
5c527783
CW
215772010-09-21 Colin Watson <cjwatson@ubuntu.com>
21578
21579 * util/grub-install.in: Fix the bootloader ID option to be
21580 consistently --bootloader-id, not --bootloader_id.
21581 Reported by: KESHAV P.R.
21582
d309a16e
CW
215832010-09-21 Colin Watson <cjwatson@ubuntu.com>
21584
21585 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
21586 check hash checksum." consistently translatable.
21587
b830cd16
YB
215882010-09-21 Yves Blusseau <blusseau@zetam.org>
21589
21590 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
21591 $(top_builddir).
21592
c4fe27a8
CW
215932010-09-21 Colin Watson <cjwatson@ubuntu.com>
21594
21595 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
21596 (GRUB_MOD_INIT): Register sha1sum command.
21597 (GRUB_MOD_FINI): Unregister sha1sum command.
21598
a4c1d277
YB
215992010-09-21 Yves Blusseau <blusseau@zetam.org>
21600
21601 Keep boot and grub directory names in sync with utils scripts
21602
21603 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
21604 * config.h.in: Add previous macros.
21605 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
21606 * util/grub-install.in: Use $bootdir and $grubdir variables.
21607
4eff79d2
CW
216082010-09-21 Colin Watson <cjwatson@ubuntu.com>
21609
21610 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
21611 convert partition names to disk names if the new `convert' parameter
21612 is set.
21613 (grub_util_biosdisk_get_grub_dev): If opening the disk device
21614 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
21615 disk in its own right. This can happen with Xen disk images.
21616
934d7e44
YB
216172010-09-21 Yves Blusseau <blusseau@zetam.org>
21618
21619 * util/grub-editenv.c: Update strings to avoid warnings when generating
21620 grub.pot file.
21621 * util/grub-setup.c: Likewise.
934d7e44 21622
df3367cc
VS
216232010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
21624
21625 * configure.ac: Change version to 1.99~beta0.
21626
77a94e98
VS
216272010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
21628
21629 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
21630 Add BADRAM.
21631 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
21632 Likewise.
21633 * include/multiboot.h: Resynced with specification.
21634 * include/multiboot2.h: Likewise.
21635
269004c1
CW
216362010-09-21 Colin Watson <cjwatson@ubuntu.com>
21637
21638 Fix po directory handling.
21639
21640 * configure.ac: Create po/Makefile.in rather than po/Makefile.
21641 * grub-core/gnulib/Makefile.am: Import gettext module.
21642 * m4/gnulib-cache.m4: Likewise.
21643 * m4/gnulib-comp.m4: Likewise.
21644 * m4/gettext.m4: New file, from gnulib.
21645 * m4/glibc2.m4: Likewise.
21646 * m4/iconv.m4: Likewise.
21647 * m4/intdiv0.m4: Likewise.
21648 * m4/intl.m4: Likewise.
21649 * m4/intldir.m4: Likewise.
21650 * m4/intlmacosx.m4: Likewise.
21651 * m4/intmax.m4: Likewise.
21652 * m4/inttypes-pri.m4: Likewise.
21653 * m4/lcmessage.m4: Likewise.
21654 * m4/lib-ld.m4: Likewise.
21655 * m4/lib-link.m4: Likewise.
21656 * m4/lib-prefix.m4: Likewise.
21657 * m4/lock.m4: Likewise.
21658 * m4/nls.m4: Likewise.
21659 * m4/po.m4: Likewise.
21660 * m4/printf-posix.m4: Likewise.
21661 * m4/progtest.m4: Likewise.
21662 * m4/threadlib.m4: Likewise.
21663 * m4/uintmax_t.m4: Likewise.
21664 * m4/visibility.m4: Likewise.
21665 * po/Makefile.am: Remove.
21666 * po/Makefile.in.in: New file, from gettext.
21667 ($(DOMAIN).pot-update): Support POTFILES-shell.
21668 * po/Makevars: New file.
21669 * po/POTFILES-shell: Rename to ...
21670 * po/POTFILES-shell.in: ... this. Update.
21671 * po/POTFILES: Rename to ...
21672 * po/POTFILES.in: ... this. Update.
21673 * po/Rules-quot: New file, from gettext.
21674 * po/boldquot.sed: Likewise.
21675 * po/en@boldquot.header: Likewise.
21676 * po/en@quot.header: Likewise.
21677 * po/insert-header.sin: Likewise.
21678 * po/quot.sed: Likewise.
21679 * po/remove-potcdate.sin: Likewise.
21680
3e0fa5d0
VS
216812010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
21682
21683 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
21684
ade9bd66
VS
216852010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
21686
21687 * util/grub.d/20_linux_xen.in: Use submenus.
21688
fc55cc4c
VS
216892010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
21690
21691 Support submenus.
21692
21693 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
21694 parameter submenu. All users updated.
21695 * grub-core/normal/main.c (free_menu): Rename to ...
21696 (grub_normal_free_menu): ... this. Made global.
21697 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
21698 if requested.
21699 * grub-core/normal/menu_entry.c (screen): New field submenu.
21700 (make_screen): Set submenu.
21701 (run): Open new context if requested.
21702 * include/grub/menu.h (grub_menu_entry): New field submenu.
21703 * include/grub/normal.h (grub_normal_free_menu): New proto.
21704
600cedf7
VS
217052010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
21706
21707 Menu entries extractor.
21708
21709 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
21710 variants.
21711 (GRUB_MOD_INIT): Register new variants.
21712 (GRUB_MOD_FINI): Unregister new variants.
21713 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
21714 into grub_cmd_legacy_source.
21715 (grub_cmd_legacy_source): Implement extractor variants.
21716 (GRUB_MOD_INIT): Register new variants.
21717 (GRUB_MOD_FINI): Unregister new variants.
21718 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
21719 as an extractor.
21720 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
21721 search as an extractor.
21722 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
21723 test as an extractor.
21724 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
21725 as an extractor.
21726 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
21727 (grub_env_new_context): New function.
21728 (grub_env_context_open): Likewise.
21729 (grub_env_extractor_open): Likewise.
21730 (grub_env_extractor_close): Likewise.
21731 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
21732 grub_extractor_level.
21733 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
21734 * include/grub/env.h (grub_env_extractor_open): New proto.
21735 (grub_env_extractor_close): Likewise.
21736 * include/grub/normal.h (grub_extractor_level): New external variable.
21737
7bda3a87
VS
217382010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
21739
21740 Make cutmem accept a region specification.
21741 Suggested by: Samuel Thibault
21742
21743 * grub-core/mmap/mmap.c (parsemem): New function.
21744 (grub_cmd_cutmem): Handle new arguments.
21745
2ea57f88
VS
217462010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
21747
21748 New command cutmem.
21749
21750 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
21751 (GRUB_MOD_INIT): Register new command.
21752 (GRUB_MOD_FINI): Unregister new command.
21753
74342e31
VS
217542010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
21755
21756 Support some annoying BSD and Minix subpartitions.
21757
21758 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
21759 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
21760 Properly handle concatenation.
21761 * grub-core/kern/device.c (grub_device_iterate): Likewise.
21762 * grub-core/normal/completion.c (iterate_partition): Likewise.
21763 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
21764 contain partition. All users updated.
21765 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
21766 struct.
21767 (grub_openbsdlabel_partition_map): Likewise.
21768 (bsdlabel_partition_map_iterate): Rename to ..
21769 (iterate_real): ... this. New arguments sector, freebsd and pmap.
21770 (bsdlabel_partition_map_iterate): New function.
21771 (netopenbsdlabel_partition_map_iterate): Likewise.
21772 (netbsdlabel_partition_map_iterate): Likewise.
21773 (openbsdlabel_partition_map_iterate): Likewise.
21774 (GRUB_MOD_INIT): Register new partmaps.
21775 (GRUB_MOD_FINI): Unregister new partmaps.
21776 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
21777 (grub_partition_msdos_iterate): ... this. All users updated.
21778 Don't support embedding other than in a minix partition.
21779 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
21780 proto.
21781 * include/grub/partition.h (grub_partition): New field msdostype.
21782 * util/grub-install.in: Handle openbsd and netbsd types being in
21783 part_bsd module.
21784
1e8d555b
VS
217852010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
21786
21787 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
21788
21789 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
21790 * grub-core/Makefile.core.def (mdraid): Renamed to ...
21791 (mdraid09): ... this.
21792 (mdraid1x): New module.
21793 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
21794 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
21795
899d8af4
VS
217962010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
21797
21798 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
21799 vsprintf.
21800
40901acd
CW
218012010-09-20 Colin Watson <cjwatson@ubuntu.com>
21802
21803 * grub-core/commands/efi/lsefimmap.c: Correct header.
21804 * NEWS: Update.
21805
dfe3b247
CW
218062010-09-20 Colin Watson <cjwatson@ubuntu.com>
21807
21808 * util/grub-editenv.c (argp_parser): Don't pass translated strings
21809 as printf format strings; the translations might contain '%' which
21810 could cause a crash.
21811 (main): Likewise.
21812 * util/grub-fstest.c (argp_parser): Likewise.
21813 * util/grub-setup.c (argp_parser): Likewise.
21814 (main): Likewise.
21815
3286a4b4
VS
218162010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
21817
21818 Use argp in grub-fstest.
21819
21820 * util/grub-fstest.c: Don't include getopt.h.
21821 Include argp.h.
21822 (root): New variable.
21823 (args_count): Likewise.
21824 (nparm): Likewise.
21825 (num_disks): Likewise.
21826 (images): Likewise.
21827 (cmd): Likewise.
21828 (debug_str): Likewise.
21829 (args): Likewise.
21830 (options): Transformed to argp.
21831 (usage): Removed.
21832 (main): Split argument parsing into ...
21833 (argp_parser): ... this. Changed to argp format.
21834 (argp): New variable.
21835 (main): Use argp_parse.
21836
3dccbe4b
TG
218372010-09-20 Tristan Gingold <gingold@free.fr>
218382010-09-20 Robert Millan <rmh.grub@aybabtu.com>
218392010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
21840
21841 * grub-core/commands/efi/lsefimmap.c: New file.
21842 * grub-core/Makefile.core.def (lsefimmap): New module.
21843 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
21844
38c259a7
VS
218452010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
21846
21847 Pause the execution (10s max) if any errors are displayed so the user
21848 has a chance to see them.
21849
21850 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
21851 (grub_print_error): Increment grub_err_printed_errors.
21852 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
21853 execution if any errors were displayed.
21854 (show_menu): Remove old code for pause.
21855 * grub-core/normal/menu_entry.c (run): Likewise.
21856 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
21857 users updated.
21858 (grub_normal_get_char_counter): Likewise.
21859 * include/grub/err.h (grub_err_printed_errors): New external variable.
21860 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
21861
f218b09c
VS
218622010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
21863
21864 Support multiboot VBE info.
21865
21866 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
21867 Take VBE info into account.
21868 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
21869 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
21870 Call fill_vbe_info when appropriate.
21871 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
21872 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
21873 as supported.
21874 (grub_multiboot_get_mbi_size): Take new tags into account.
21875 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
21876 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
21877 Call fill_vbe_tag when appropriate.
21878 (grub_multiboot_make_mbi): Properly align tags.
21879 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
21880 function.
21881 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
21882 proto.
21883 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
21884
a9cc5438
VS
218852010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
21886
21887 Suport manual terminal geometry specification.
21888
21889 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
21890 Save state in grub_ofconsole_terminfo_output.
21891 (grub_ofconsole_term): Use grub_terminfo_getwh.
21892 (grub_ofconsole_getwh): Removed.
21893 * grub-core/term/serial.c (grub_serial_getwh): Removed.
21894 (grub_serial_term): Use grub_terminfo_getwh.
21895 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
21896 (options): New struct.
21897 (OPTION_*): New enum.
21898 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
21899 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
21900 width and height.
21901 (grub_terminfo_getwh): New proto.
21902 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
21903
1a8fed20
VS
219042010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
21905
21906 Handle legacy "terminal" command.
21907
21908 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
21909 and FLAG_TERMINAL.
21910 (legacy_commands): Add terminal and title.
21911 (grub_legacy_parse): Handle terminal. Simplify title handling.
21912
41e9c57d
VS
219132010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
21914
21915 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
21916 parameters overflow.
21917
61c874c5
CW
219182010-09-20 Colin Watson <cjwatson@ubuntu.com>
21919
21920 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
21921 widthspec.h.
21922
21923 * docs/grub.texi (Shell-like scripting): Document `!'.
21924 (Network): Simplify using new i386-pc-pxe format. Mention
21925 grub-mknetdir.
21926
21927 * NEWS: Update.
21928
943682b4
CW
219292010-09-20 Colin Watson <cjwatson@ubuntu.com>
21930
21931 * Makefile.am (SUBDIRS): Restore "."; it's important to force
21932 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
21933 when needed.
21934
6d3d698d
CW
219352010-09-20 Colin Watson <cjwatson@ubuntu.com>
21936
21937 * grub-core/commands/efi/lsefisystab.c: Correct header.
21938 * grub-core/commands/efi/lssal.c: Likewise.
21939 * grub-core/commands/testload.c: Likewise.
21940
c982589f
CW
219412010-09-20 Colin Watson <cjwatson@ubuntu.com>
21942
21943 * util/grub-mkrescue.in: Add explicit root argument to --set to
21944 prevent the UUID being interpreted as an argument to --set (matches
21945 previous change to prepare_grub_to_access_device).
21946
a63c31b6
CW
219472010-09-20 Colin Watson <cjwatson@ubuntu.com>
21948
21949 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
21950 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
21951 the verbosity of later #ifs.
21952 (find_partition_start): Define this function on FreeBSD too.
21953 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
21954 function.
21955 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
21956 on FreeBSD.
21957
6439b8ee
YB
219582010-09-20 Yves Blusseau <blusseau@zetam.org>
21959
21960 * util/grub-editenv.c: Use argp instead of getopt.
21961
c5930ec8
YB
219622010-09-20 Yves Blusseau <blusseau@zetam.org>
21963
21964 * util/grub-setup.c: Use argp instead of getopt.
21965
15c69261
YB
219662010-09-20 Yves Blusseau <blusseau@zetam.org>
21967
21968 Use gnulib-tool to create gnulib source files.
21969
21970 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
21971 grub-core/gnulib directories
21972 * .bzignore: Add **/.deps and autogenerated gnulib files
21973 * configure.ac: Assign auxiliary directory to build-aux, add invocation
21974 of gnulib macros, add grub-core/gnulib/Makefile
21975 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
21976 include m4 directory to aclocal.
21977 * Makefile.util.def: Remove direct compilation of gnulib source files
21978 and use the new grub-core/gnulib/libgnu.a.
21979 * build-aux/config.rpath: move config.rpath from top directory to
21980 build-aux
21981 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
21982 in gnulib headers
21983 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
21984 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
21985 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
21986 header.
21987 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
21988 string.
21989
e511c9f5
YB
219902010-09-20 Yves Blusseau <blusseau@zetam.org>
21991
21992 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
21993 grub-core/genmod.sh and grub-core/gensyminfo.sh
21994
c2dede05
BC
219952010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
21996
21997 Add a test for echo command options.
21998
21999 * tests/grub_cmd_echo.in: New test.
22000 * Makefile.util.def: Rules for new test.
22001
c55f5018
SJ
220022010-09-20 Szymon Janc <szymon@janc.net.pl>
22003
22004 Remove crc.mod and move crc command to hashsum.mod.
22005 Remove lib/crc.c - users updated to use gcrypt implementation.
22006
22007 * grub-core/commands/crc.c: Removed.
22008 * grub-core/Makefile.core.def (crc): Module removed.
22009 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
22010 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
22011 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
22012 * grub-core/lib/crc.c: Removed.
22013 * include/grub/lib/crc.h: Removed.
22014 * Makefile.util.def (crc): Remove lib/crc.c
22015 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
22016 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
22017 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
22018 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
22019 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
22020 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
22021
e0337366
VS
220222010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22023
22024 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
22025
742f9232
VS
220262010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
22027
22028 Split config.h for util and core.
22029
22030 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
22031 (ADDR32): Likewise.
22032 (DATA32): Likewise.
22033 (BSS_START_SYMBOL): Likewise.
22034 (END_SYMBOL): Likewise.
22035 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
22036 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
22037 * config.h.in: New file.
22038 * configure.ac: Use config-util.h as config define file.
22039 Rename MACHINE into GRUB_MACHINE. All users updated.
22040 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
22041 updated.
22042 (NESTED_FUNC_ATTR): Likewise.
22043 Substitue new variables.
22044 (COND_HAVE_ASM_USCORE): New conditional.
22045 * grub-core/Makefile.am (ASM_PREFIX): New variable.
22046 (kernel_syms.lst): Use ASM_PREFIX.
22047 * grub-core/kern/emu/console.c: Include config-util.h.
22048 * grub-core/kern/emu/misc.c: Likewise.
22049 * grub-core/kern/emu/mm.c: Likewise.
22050 * include/grub/emu/misc.h: Likewise.
22051 * include/grub/libgcc.h: Likewise.
22052
39feb0e8
VS
220532010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
22054
22055 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
22056 constants usage.
22057 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
22058 Fix GRUB_TERM_KEY_* constants usage.
22059 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
22060
9af6dac3
VS
220612010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
22062
22063 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
22064 print pointer.
22065 * grub-core/bus/usb/uhci.c: Remove empty define.
22066 (grub_uhci_check_transfer): Add missing cast.
22067 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
22068 print pointer.
22069 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
22070 PRIuGRUB_SIZE.
22071 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
22072
d6d94820
VS
220732010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
22074
22075 * grub-core/Makefile.core.def (legacycfg): Add
22076 lib/i386/pc/vesa_modes_table.c on emu.
22077
3572f2b6
BC
220782010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
22079
22080 Reduce number of temporary files generated by build system.
22081
22082 * grub-core/gencmdlist.sh: Removed.
22083 * grub-core/genfslist.sh: Removed.
22084 * grub-core/genhandlerlist.sh: Removed.
22085 * grub-core/genmodsrc.sh: Removed.
22086 * grub-core/genpartmaplist.sh: Removed.
22087 * grub-core/genparttoollist.sh: Removed.
22088 * grub-core/gentermiinallist.sh: Removed.
22089 * grub-core/genvideolist.sh: Removed.
22090
22091 * grub-core/genmod.sh.in: New file.
22092 * grub-core/gensyminfo.sh.in: New file.
22093
22094 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
22095 * conf/Makefile.extra-dist: Update with new files.
22096 * gentpl.py: Remove rules related to unnecessary temporary files.
22097 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
22098 and und-* files.
22099 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
22100 genmod.sh scripts.
22101 * grub-core/bus/usb/uhci.c: Remove empty #define.
22102 * grub-core/genmoddep.awk: Updated with new syminfo format.
22103 * util/bash-completion.d/Makefile.am: Add config.log to
22104 CLEANFILES.
22105
c836b030
YB
221062010-09-19 Yves Blusseau <blusseau@zetam.org>
22107
22108 * Makefile.util.def: Add forgotten $(LIBINTL) library.
22109
2f4e8053
BC
221102010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
22111
22112 * util/grub-mkconfig.in: Check the config script for syntax errors
22113 before saving.
22114
75831c34
CW
221152010-09-19 Colin Watson <cjwatson@ubuntu.com>
221162010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
22117
22118 * Makefile.util.def (grub-install): Use util/grub-install.in on all
22119 platforms.
22120 * util/grub-install.in: Add EFI and IEEE1275 support.
22121 * util/i386/efi/grub-install.in: Removed.
22122 * util/ieee1275/grub-install.in: Likewise.
22123
eaf41b25
VS
221242010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
22125
22126 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
22127 (grub_cmd_cmosclean): Likewise.
22128 (GRUB_MOD_INIT): Register command cmosclean.
22129 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
22130 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
22131
1a9130dd
CPE
221322010-09-18 Carles Pina i Estany <carles@pina.cat>
221332010-09-18 Aleš Nesrsta <starous@volny.cz>
221342010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
22135
22136 Add keyboard layouts support.
22137
22138 * Makefile.util.def (grub-mklayout): New file.
22139 (grub-kbdcomp): New script.
22140 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
22141 Add keyboard_layouts.h.
22142 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
22143 commands/boot.c on yeeloong.
22144 (keylayouts): New module.
22145 * grub-core/bus/usb/ohci.c
22146 * grub-core/bus/usb/uhci.c
22147 * grub-core/bus/usb/usbhub.c (rescan): New variable.
22148 (grub_usb_add_hub): Poll interrupt pipe for device handling.
22149 (attach_root_port): Likewise.
22150 (poll_nonroot_hub): Likewise.
22151 (grub_usb_poll_devices): Likewise.
22152 (detach_device): Close transfer.
22153 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
22154 function.
22155 (grub_usb_bulk_setup_readwrite): Likewise.
22156 (grub_usb_bulk_finish_readwrite): Likewise.
22157 * grub-core/commands/keylayouts.c: New file.
22158 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
22159 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
22160 aliases.
22161 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
22162 support scancode 2.
22163 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
22164 * include/grub/keyboard_layouts.h: New file.
22165 * util/grub-mklayout.c: New file.
22166 * util/grub-kbdcomp.in: Likewise.
22167
a1d84a5e
VS
221682010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
22169
22170 Unify memory types.
22171
22172 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
22173 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
22174 types.
22175 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
22176 (grub_upper_mem): Likewise.
22177 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
22178 * include/grub/memory.h (grub_memory_type_t): New enum.
22179 All users updated.
22180
9696382e
VS
221812010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
22182
22183 * grub-core/Makefile.core.def (lsapm): New module.
22184 * grub-core/commands/i386/pc/lsapm.c: New file.
22185 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
22186 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
22187 Likewise.
22188 * include/grub/i386/pc/apm.h: New file.
22189 * include/multiboot.h (multiboot_apm_info): New struct.
22190
221912010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
22192
22193 GRUB-legacy configuration file support.
22194
22195 * Makefile.util.def (grub-menulst2cfg): New util.
22196 * docs/man/grub-menulst2cfg.h2m: New file.
22197 * grub-core/Makefile.core.def (legacycfg): New module.
22198 * grub-core/commands/legacycfg.c: New file.
22199 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
22200 (grub_normal_add_menu_entry): ... this.
22201 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
22202 (grub_normal_set_password): ...this.
22203 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
22204 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
22205 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
22206 * grub-core/lib/legacy_parse.c: New file.
22207 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
22208 * include/grub/i386/pc/vesa_modes_table.h: New file.
22209 * include/grub/legacy_parse.h: Likewise.
22210 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
22211 * util/grub-menulst2cfg.c: New file.
22212
bf8d1338
CW
222132010-09-17 Colin Watson <cjwatson@ubuntu.com>
22214
22215 * grub-core/kern/emu/hostdisk.c
22216 (convert_system_partition_to_system_disk): Initialise node.
22217
9c0bad2e
CW
222182010-09-17 Colin Watson <cjwatson@ubuntu.com>
22219
22220 * grub-core/kern/emu/hostdisk.c
22221 (convert_system_partition_to_system_disk): Fix devmapper memory pool
22222 leak.
22223 Reported and based on patch by: Modestas Vainius.
22224
a939d135
CW
222252010-09-17 Colin Watson <cjwatson@ubuntu.com>
22226
22227 Fix DM-RAID probing with recent versions of device-mapper udev
22228 rules.
22229
22230 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
22231 canonicalise device paths under /dev/mapper/.
22232 (convert_system_partition_to_system_disk): Compare the
22233 uncanonicalised path to /dev/mapper/ rather than the canonicalised
22234 path, since device nodes under /dev/mapper/ are often symlinks.
22235
0f7ee3c9
YB
222362010-09-17 Yves Blusseau <blusseau@zetam.org>
22237
22238 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
22239
10854d0d
YB
222402010-09-16 Yves Blusseau <blusseau@zetam.org>
22241
22242 * configure.ac: Avoid some annoying error messages if freetype-config
22243 program is not found.
22244
108538d8
CW
222452010-09-16 Colin Watson <cjwatson@ubuntu.com>
22246
22247 Support RAID on virtio devices, and others.
22248
22249 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
22250 Rename to ...
22251 [__MINGW32__] (grub_find_device): ... this.
22252 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
22253 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
22254 reasonable default if dir is NULL.
22255 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
22256 ...
22257 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
22258 (grub_guess_root_device): Update callers.
22259 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
22260
22261 * util/raid.c (grub_util_getdiskname): Remove.
22262 (grub_util_raid_getmembers): Use grub_find_device rather than
22263 grub_util_getdiskname.
22264
e5bfc130
CW
222652010-09-16 Colin Watson <cjwatson@ubuntu.com>
22266
22267 * docs/grub.texi (serial): Remove obsolete comment about GRUB
22268 needing to be compiled with serial support.
22269 (ls): Indicate that multiple files are accepted.
22270 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
22271 indicate that multiple files are accepted.
22272
be458ae2
CW
222732010-09-16 Colin Watson <cjwatson@ubuntu.com>
22274
22275 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
22276 libgrub_a_init.c, and util/bash-completion.d/grub.
22277
cb731b5e
VS
222782010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
22279
22280 * util/grub-setup.c (setup): Fix incorrect container semantics.
22281
35139e8a
VS
222822010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
22283
22284 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
22285 misusage.
22286 Reported by: J. Nick Terry
22287
e50fca4a
VS
222882010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
22289
22290 Move embedding routines to partmap sources files.
22291
22292 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
22293 [GRUB_UTIL]: New variable.
22294 (gpt_partition_map_iterate): Set part.parent.
22295 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
22296 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
22297 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
22298 New function.
22299 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
22300 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
22301 (grub_partition_map) [GRUB_UTIL]: New field embed.
22302 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
22303 (setup): Use ->embed.
22304
f00478b7
VS
223052010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
22306
22307 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
22308 function.
22309 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
22310 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
22311
2b94e3ff
YB
223122010-09-15 Yves Blusseau <blusseau@zetam.org>
22313
22314 Add function to get completions from usage.
22315
22316 * util/bash-completion.d/grub-completion.bash.in: Add function to get
22317 completions from usage. Use LC_ALL=C to get options properly.
22318
2e04a006
VS
223192010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
22320
22321 * grub-core/gnulib/basename-lgpl.c: Imported.
22322 * grub-core/gnulib/basename.c: Likewise.
22323 * grub-core/gnulib/dirname-lgpl.c: Likewise.
22324 * grub-core/gnulib/dirname.c: Likewise.
22325 * grub-core/gnulib/dirname.h: Likewise.
22326 * grub-core/gnulib/stripslash.c: Likewise.
22327
5dcdf93a
VS
223282010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
22329
22330 * grub-core/gnulib/error.c: Resynced.
22331 * grub-core/gnulib/getopt.c: Likewise.
22332 * grub-core/gnulib/getopt_int.h: Likewise.
22333 * grub-core/gnulib/regex.h: Likewise.
22334 * grub-core/gnulib/regex_internal.c: Likewise.
22335 * grub-core/gnulib/regex_internal.h: Likewise.
22336
014f47b7
SJ
223372010-09-15 Szymon Janc <szymon@janc.net.pl>
22338
22339 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
22340 CRC calculations and validity checks.
22341 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
22342 calculations.
22343
dd521a4a
SJ
223442010-09-15 Szymon Janc <szymon@janc.net.pl>
22345
22346 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
22347
79c4eeb9
VS
223482010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
22349
22350 Fix incorrect echo options handling.
22351 Reported by: Yves Blusseau.
22352
22353 * include/grub/command.h (grub_command_flags_t): New flags
22354 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
22355 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
22356 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
22357
ed80f7d5
VS
223582010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
22359
22360 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
22361 users updated.
22362 (GRUB_COMMAND_FLAG_MENU): Likewise.
22363 (GRUB_COMMAND_FLAG_BOTH): Likewise.
22364 (GRUB_COMMAND_FLAG_TITLE): Removed.
22365 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
22366 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
22367 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
22368 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
22369 (grub_command_flags_t): New enum. All users updated.
22370
5fe7620a
SG
223712010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
22372
22373 Fix solaris compilation.
22374
22375 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
22376 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
22377 (grub-emu-list): Likewise.
22378
545b752f
VS
223792010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
22380
22381 Remove deprecated root command.
22382
22383 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
22384 updated.
22385
6c1a338c
VS
223862010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
22387
22388 * util/i386/pc/grub-setup.c: Merge this ...
22389 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
22390 * util/grub-setup.c: ... into this.
22391 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
22392 New struct.
22393
223942010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
22395
22396 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
22397 possible.
22398
d2ea4551
VS
223992010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
22400
22401 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
22402 allocate p.
22403
3c3b5040
VS
224042010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
22405
22406 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
22407 explicit root argument to set to prevent UUID to be interpreted as
22408 argument to set.
22409
b71c3fae
VS
224102010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
22411
22412 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
22413
275433e6
VS
224142010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
22415
22416 Don't export grub_gate_a20.
22417
22418 * grub-core/kern/i386/pc/init.c: Remove leftovers.
22419 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
22420 to ...
22421 (grub_gate_a20): ... this. All users updated.
22422 * include/grub/i386/pc/init.h: Removed. All users updated.
22423
a5dbb1f1
VS
224242010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
22425
22426 Create euro.pf2 which supports most European languages.
22427
22428 * Makefile.am (grubdata_DATA): Add euro.pf2.
22429 (euro.pf2): New target.
22430 (CLEANFILES): Add euro.pf2.
22431
62a747cb
VS
224322010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
22433
22434 * configure.ac: Disable emu-usb by default to prevent inadvertent
22435 device takeover.
22436
608e43b1
VS
224372010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22438
22439 Disable usbserial on grub-emu since our libusb code isn't good enough
22440 yet.
22441
22442 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
22443 (usbserial_pl2303): Likewise.
22444 (usbserial_ftdi): Likewise.
22445
94564f81
VS
224462010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22447
22448 * include/grub/disk.h (grub_disk): Remove has_partitions.
22449 All users updated.
22450 * disk/loopback.c (grub_loopback): Remove has_partitions.
22451 All users updated.
22452 (options): Remove partitions. All users updated.
22453 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
22454 * util/i386/pc/grub-setup.c (setup): copy partition table only when
22455 actual partition table is found.
22456
3352800b
VS
224572010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22458
22459 Remove readability checks (too many false negatives).
22460
22461 * util/grub-install.in: Remove readability checks.
22462 * util/grub-mkconfig.in: Likewise.
22463 * util/grub.d/10_hurd.in: Likewise.
22464 * util/grub.d/10_kfreebsd.in: Likewise.
22465 * util/grub.d/10_linux.in: Likewise.
22466 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
22467 way.
22468
2419f17a
VS
224692010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22470
22471 Enable acpi shutdown on all ACPI platforms.
22472
22473 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
22474 on coreboo, multiboot and EFI.
22475 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
22476 (grub_acpi_halt): Likewise.
22477 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
22478 (grub_cmd_halt): Don't call grub_acpi_halt directly.
22479 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
22480 * grub-core/lib/i386/halt.c (grub_halt)
22481 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
22482
0575c7c3
VS
224832010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22484
22485 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
22486 context.
22487
54ac3cd1
VS
224882010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22489
22490 * grub-core/video/efi_gop.c: Fix over-80-chars line.
22491 * grub-core/video/efi_uga.c: Likewise.
22492
b2a30ac5
VS
224932010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22494
22495 Filter devaliases and never open same device twice.
22496
22497 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
22498 (last_ihandle): Likewise.
22499 (ofdisk_hash_ent): New member shortest.
22500 (ofdisk_hash_add): Add canonical path too.
22501 (scan): New function.
22502 (grub_ofdisk_iterate): Iterate over hashed entries.
22503 (compute_dev_path): Don't add :0.
22504 (grub_ofdisk_open): Don't really open the disk.
22505 (grub_ofdisk_close): Avoid closing unrelated disk.
22506 (grub_ofdisk_read): Implement reopen logic.
22507 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
22508 New function.
22509 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
22510 New proto.
22511
fb53b340
VS
225122010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22513
22514 Fix sparc64.
22515
22516 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
22517 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
22518 right address. Add sparc64_ieee1275_ldflags.
22519 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
22520 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
22521 to grub_host_to_target_addr
22522 (load_image): Likewise.
22523
f452b040
VS
225242010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22525
22526 * grub-core/normal/completion.c (complete_file): Handle device
22527 containing slash.
22528 Fix based on patch by Doug Nazar.
22529
9b5b2541
VS
225302010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22531
22532 grub-mknetdir script.
22533
22534 * Makefile.util.def (grub-mknetdir): New module.
22535 * tests/util/grub-shell.in: Support boot=net
22536 * util/grub-mknetdir.in: New file.
22537
9d2be652
VS
225382010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22539
22540 videoinfo on non-vbe.
22541
22542 * grub-core/Makefile.core.def (vbeinfo): Removed.
22543 (vbetest): Removed.
22544 (videoinfo): New module.
22545 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
22546 * grub-core/commands/i386/pc/vbetest.c: Removed.
22547 * grub-core/commands/videoinfo.c: New file.
22548 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
22549 specification.
22550 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
22551 as vbetest.
22552 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
22553 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
22554 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
22555 mode_number. New parameter mode. All users updated.
22556 (grub_video_gop_iterate): New function.
22557 (grub_video_efi_gop): New member iterate.
22558 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
22559 (grub_vbe_set_video_mode): Remove setting useless fields.
22560 (vbe2videoinfo): New function.
22561 (grub_video_vbe_iterate): Likewise.
22562 (grub_video_vbe_setup): Use vbe2videoinfo.
22563 (grub_video_vbe_print_adapter_specific_info): New function.
22564 (grub_video_vbe_adapter): New fields iterate and
22565 print_adapter_specific_info.
22566 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
22567 All users updated.
22568 (grub_video_mode_info): New field mode_number.
22569 (grub_video_adapter): New fields iterate and
22570 print_adapter_specific_info.
22571
179503f5
TG
225722010-09-13 Tristan Gingold <gingold@free.fr>
225732010-09-13 Robert Millan <rmh.grub@aybabtu.com>
225742010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22575
22576 * grub-core/commands/efi/lsefisystab.c: New file.
22577 * grub-core/commands/efi/lssal.c: Likewise.
22578 * grub-core/Makefile.core.def (lsacpi): New module.
22579 (lsefisystab): Likewise.
22580 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
22581 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
22582 (grub_efi_sal_system_table): New struct.
22583 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
22584 (grub_efi_sal_system_table_memory_descriptor): Likewise.
22585 (grub_efi_sal_system_table_platform_features): Likewise.
22586 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
22587 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
22588 (grub_efi_sal_system_table_ap_wakeup): Likewise.
22589 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
22590
cf9827de
VS
225912010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22592
22593 Support explicit user claim that a device is BIOS-visible.
22594
22595 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
22596 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
22597 * grub-core/kern/emu/hostdisk.c
22598 (convert_system_partition_to_system_disk): Support mdX.
22599 (find_system_device): New parameter add. All users updated.
22600 (grub_util_biosdisk_is_present): New function.
22601 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
22602 proto.
22603
53f0eb1f
VS
226042010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22605
22606 Search hints support.
22607
22608 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
22609 All users updated.
22610
b23ffd70
YB
226112010-09-13 Yves Blusseau <blusseau@zetam.org>
22612
22613 Bash completion script for util commands
22614
22615 * Makefile.am: Add util/bash-completion.d directory
22616 * configure.ac: Likewise.
22617 * util/bash-completion.d/Makefile.am: New file.
22618 * util/bash-completion.d/grub-completion.bash.in: Likewise.
22619
d547dc28
VS
226202010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
22621
22622 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
22623 (print_backlog): set backlog_ucs4 and backlog_glyphs.
22624 Reported by: Yves Blusseau.
22625
2fc8ccb9
VS
226262010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
22627
22628 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
22629 partition size and offset.
22630
d8a84076
VS
226312010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
22632
22633 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
22634
84fb3b3d
VS
226352010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
22636
22637 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
22638
768ec2e2
VS
226392010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
22640
22641 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
22642 (grub_xvasprintf): Likewise.
22643
4870900f
VS
226442010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
22645
22646 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
22647
faca6bec
VS
226482010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
22649
22650 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
22651 args ending with NULL.
22652
226532010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
788f1f3a
VS
22654
22655 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
22656 pointer.
22657
3c70f225
SJ
226582010-09-11 Szymon Janc <szymon@janc.net.pl>
22659
22660 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
22661
4df7996d
VS
226622010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
22663
22664 Shutdown using ACPI.
22665
22666 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
22667 * grub-core/commands/acpihalt.c: New file.
22668 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
22669 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
22670 (grub_acpi_halt): New proto.
22671 (GRUB_ACPI_SLP_EN): New const.
22672 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
22673 (GRUB_ACPI_OPCODE_*): New enum.
22674 (GRUB_ACPI_EXTOPCODE_*): Likewise.
22675
126b4c32
TG
226762010-09-11 Tristan Gingold <gingold@free.fr>
226772010-09-11 Robert Millan <rmh.grub@aybabtu.com>
226782010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
22679
22680 * commands/lsacpi.c: New file.
22681 * grub-core/Makefile.core.def (lsacpi): New module.
22682 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
22683 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
22684 (grub_acpi_madt_entry_header): New struct.
22685 (grub_acpi_madt): Likewise.
22686 (grub_acpi_madt_entry_interrupt_override): Likewise.
22687 (grub_acpi_madt_entry_sapic): Likewise.
22688 (grub_acpi_madt_entry_lsapic): Likewise.
22689 (grub_acpi_madt_entry_platform_int_source): Likewise.
22690 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
22691 (PRIuGRUB_UINT32_T): Likewise.
22692 (PRIxGRUB_UINT64_T): Likewise.
22693
1aa4fe88
VS
226942010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
22695
22696 Implement loading palette on ieee1275_fb.
22697
22698 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
22699 (have_setcolors): Likewise.
22700 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
22701 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
22702 (grub_video_ieee1275_set_palette): Implement.
22703
25761e13
VS
227042010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
227052010-09-11 Colin Watson <cjwatson@ubuntu.com>
22706
22707 * util/grub-install.in (grub_partition): New variable.
22708 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
22709 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
22710 Fixes a bug reported by Yves Blusseau.
22711
050abaea
VS
227122010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
22713
22714 Fix emu on mipsel.
22715
22716 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
22717 =grub_cpu_flush_cache on all mips and not only yeeloong.
22718 * configure.ac (COND_mips): New conditional.
22719 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
22720 platforms.
22721 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
22722 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
22723 [GRUB_LINKER_HAVE_INIT]: New function.
22724 (grub_emu_post_init): Likewise.
22725 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
22726 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
22727 * include/grub/cache.h (_mips): Include mips/cache.h.
22728 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
22729 LVM and RAID prototypes.
22730 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
22731 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
22732 function.
22733
5ed7d816
CW
227342010-09-10 Colin Watson <cjwatson@ubuntu.com>
22735
22736 * util/grub-install.in: Don't try to verify core.img until after
22737 running grub-mkimage to create it.
22738
90367e04
RM
227392010-09-10 Robert Millan <rmh@gnu.org>
22740
22741 * util/grub.d/10_hurd.in: Add misc readability checks.
22742 * util/grub.d/10_kfreebsd.in: Likewise.
22743 * util/grub.d/10_linux.in: Likewise.
22744
c452fa66
CW
227452010-09-10 Colin Watson <cjwatson@ubuntu.com>
22746
22747 * util/grub-install.in: ${imgext} won't be defined here until the
22748 install branch is merged. For the meantime, only verify core.img on
22749 i386-pc and sparc64-ieee1275 platforms.
22750
c38fe9f4
RM
227512010-09-10 Robert Millan <rmh@gnu.org>
22752
22753 Solaris support in grub_find_zpool_from_dir(). Thanks
22754 Seth Goldberg for referring to getextmntent() facility.
22755
22756 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
22757 `sys/mkdev.h'.
22758 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
22759 `<sys/mnttab.h>'.
22760 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
22761 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
22762 method for finding zpool name.
22763
905f7773
CW
227642010-09-10 Colin Watson <cjwatson@ubuntu.com>
22765
22766 grub-fstest needs the host and hostfs modules while other utilities
22767 actively require those modules to be absent, so grub-fstest needs
22768 its own initialisation and finalisation code.
22769
22770 * Makefile.am (grub_fstest.pp): New target.
22771 (grub_fstest_init.lst): Likewise.
22772 (grub_fstest_init.c): Likewise.
22773 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
22774
fb90b546
RM
227752010-09-10 Robert Millan <rmh@gnu.org>
22776
22777 * configure.ac: Check for `struct statfs.f_fstypename' and
22778 `struct statfs.f_mntfromname'.
22779
22780 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
22781 kFreeBSD-specific code.
22782
66d4bea5
RM
227832010-09-10 Robert Millan <rmh@gnu.org>
22784
22785 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
22786 on ZFS. Now non-main filesystems are supported as / too.
22787
b6a690ee
CW
227882010-09-09 Colin Watson <cjwatson@ubuntu.com>
22789
22790 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
22791 and grub-core/disk/host.c to ...
22792 (grub-fstest): ... here. Having the host disk implementation
22793 present confuses grub-probe and other utility programs.
22794
22795 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
22796 when writing to a file, not when writing to stdout.
22797
8901b00c 227982010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
22799
22800 * tests/partmap_test.in: New test for partitions.
22801 * Makefile.util.def: Rules for new test.
22802
7bf45fdd
RM
228032010-09-09 Robert Millan <rmh@gnu.org>
22804
22805 * util/grub-probe.c (probe): Fix a pair of unhandled error
22806 conditions.
22807
4dfbc574
RM
228082010-09-09 Robert Millan <rmh@gnu.org>
22809
22810 Basic Btrfs support (detection and UUID).
22811
22812 * grub-core/fs/btrfs.c: New file.
22813 * Makefile.util.def (library): Register btrfs.c.
22814 * grub-core/Makefile.core.def: Likewise.
22815
6b8e78ae
RM
228162010-09-08 Robert Millan <rmh@gnu.org>
22817
22818 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
22819 with (optional) parameters to specify device and relative path.
22820 * util/grub-install.in: Use is_path_readable_by_grub() to
22821 verify readability of a few critical files.
22822 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
22823 verify readability of grub.cfg.new.
22824
27f21a8b
VS
228252010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
22826
22827 Split minix.mod into minix.mod and minix2.mod.
22828
22829 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
22830 * grub-core/Makefile.core.def (minix2): New module.
22831 * grub-core/fs/minix.c: Use definitions instead of runtime version
22832 checking.
22833 * grub-core/fs/minix2.c: New file.
22834
c0e53ea5
YB
228352010-09-08 Yves Blusseau <blusseau@zetam.org>
22836
22837 Add new --boot-directory option to replace --root-directory
22838
22839 * util/grub-install.in: Add new --boot-directory option
22840 * util/grub-reboot.in: Likewise.
22841 * util/grub-set-default.in: Likewise.
22842
b9fe6ea2
YB
228432010-09-08 Yves Blusseau <blusseau@zetam.org>
22844
22845 * util/grub-mkconfig.in: Use new variable.
22846
d87aedff
YB
228472010-09-08 Yves Blusseau <blusseau@zetam.org>
22848
22849 * configure.ac: Define some useful variables.
22850
e55e8495
VS
228512010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
22852
22853 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
22854 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
22855 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
22856 Use terminfo and don't use cursor-on/cursor-off unless it's known
22857 to work.
22858 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
22859 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
22860
6fa6d675
CW
228612010-09-08 Colin Watson <cjwatson@ubuntu.com>
22862
22863 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
22864 starts with "(,", fill the drive containing the loaded image in
22865 between those two characters, but expect that a full partition
22866 specification including partition map names will follow.
22867
92f2aef0
RM
228682010-09-08 Robert Millan <rmh@gnu.org>
22869
22870 * configure.ac: Remove `--enable-grub-fstest' option.
22871 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
22872
22873 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
22874 `grub-fstest' instead of `grub-probe' for readability verification.
22875 * util/grub-probe.c (probe): Remove readability verification kludge.
22876
99fd620d
RM
228772010-09-08 Robert Millan <rmh@gnu.org>
22878
22879 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
22880 initializing `GRUB_FS'.
22881
058e30ac 228822010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
22883
22884 Not command (!) support to GRUB script.
22885
22886 * tests/grub_script_not.in: New test.
22887 * Makefile.util.def: Rules for new test.
22888
22889 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
22890 ! command as a special case.
22891 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
22892
b61d05ed 228932010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
22894
058e30ac 22895 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
22896 grub_free.
b61d05ed 22897
4d69c786 228982010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
22899
22900 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
22901
aa3119c4 229022010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
22903
22904 * docs/grub.texi (Shell-like scripting): Documentation for break,
22905 continue, shift and return commands.
22906
db0f7e3d
VS
229072010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
22908
22909 Rename CD-ROM to cd on BIOS.
22910
22911 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
22912 "cd".
22913 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
22914
88b87c93
VS
229152010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
22916
22917 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
22918 * util/grub-probe.c (main): Likewise.
22919 * util/i386/pc/grub-setup.c (main): Likewise.
22920 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
22921 Reported and debugged by: alexxy
22922
294f324d
VS
229232010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
22924
22925 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
22926 diagnostic info.
22927
d7ee3441
JS
229282010-09-05 Jo Shields <directhex@apebox.org>
22929
22930 * util/grub.d/30_os-prober.in: Add missing classes.
22931
d7e06c1f
VS
229322010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
22933
22934 * docs/grub.texi (Theme file format): Document new position format.
22935
fc157e53
VS
229362010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
22937
22938 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
22939 a table. Use @code instead of @verbatim.
22940
506e9a1c
CB
229412010-09-05 Colin D Bennett <colin@gibibit.com>
22942
22943 Gfxmenu documentation.
22944
22945 * docs/grub.texi (Theme file format): New chapter.
22946
f0aff67c
SJ
229472010-09-05 Szymon Janc <szymon@janc.net.pl>
22948
22949 * grub-core/Makefile.core.def (xzio): New module.
22950 * grub-core/io/xzio.c: New file.
22951 * grub-core/lib/xzembed/xz.h: New file (from xembed).
22952 * grub-core/lib/xzembed/xz_config.h: Likewise.
22953 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
22954 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
22955 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
22956 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
22957 * grub-core/lib/xzembed/xz_private.h: Likewise.
22958 * grub-core/lib/xzembed/xz_stream.h: Likewise.
22959 * include/grub/file.h (grub_file_filter_id): New compression filter
22960 GRUB_FILE_FILTER_XZIO.
22961
82a85062
VS
229622010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
22963
22964 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
22965 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
22966 size.
22967
3579415d
VS
229682010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
22969
22970 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
22971 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
22972
5124ae6d
VS
229732010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
22974
22975 Uncompressed checksum support.
22976
22977 * grub-core/commands/hashsum.c (options): Add option --uncompress.
22978 (check_list): New parameter uncompress.
22979 (grub_cmd_hashsum): Handle --uncompress.
22980
9aadb3d1
VS
229812010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
22982
22983 Reintroduce testload.
22984
22985 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
22986 from here ...
22987 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
22988 (GRUB_MOD_INIT): New function.
22989 (GRUB_MOD_FINI): Likewise.
22990 * grub-core/Makefile.core.def (testload): New module.
22991
a17792c3
SJ
229922010-09-05 Szymon Janc <szymon@janc.net.pl>
22993
22994 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
22995 (uint8_t): New type.
22996 (uint16_t): Likewise.
22997 (uint32_t): Likewise.
22998 (uint64_t): Likewise.
22999
b81e40a3
SJ
230002010-09-05 Szymon Janc <szymon@janc.net.pl>
23001
23002 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
23003
fc2ef117
VS
230042010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23005
23006 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
23007 Made static.
23008 (grub_gzfile_open): Removed. All users updated.
23009 (GRUB_MOD_INIT): New function.
23010 (GRUB_MOD_FINI): Likewise.
23011 * grub-core/kern/file.c (grub_file_filters_all): New variable.
23012 (grub_file_filters_enabled): Likewise.
23013 (grub_file_open): Handle filters.
23014 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
23015 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
23016 * include/grub/file.h (grub_file_filter_id_t): New type.
23017 (grub_file_filter_t): Likewise.
23018 (grub_file_filters_all): New extern variable.
23019 (grub_file_filters_enabled): Likewise.
23020 (grub_file_filter_register): New inline function.
23021 (grub_file_filter_unregister): Likewise.
23022 (grub_file_filter_disable): Likewise.
23023 (grub_file_filter_disable_compression): Likewise.
23024 * include/grub/gzio.h: Removed.
23025
35ee15e0
BC
230262010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
23027
23028 Filename expansion support for wildcards in GRUB script.
23029
23030 * tests/grub_script_expansion.in: New test.
23031 * Makefile.util.def: Rule for new test.
23032
23033 * grub-core/commands/wildcard.c: New file, implements filename
23034 expansion support for GRUB script.
23035 * grub-core/Makefile.core.def: Rule update for regexp.mod.
23036 * grub-core/script/argv.c: Cosmetic changes.
23037 * grub-core/script/execute.c (grub_script_arglist_to_argv):
23038 Refactored to perform wildcard expansion on arguments.
23039 * include/grub/script_sh.h (grub_script_wildcard_translator): New
23040 struct.
23041
23042 * tests/util/grub-shell.in: Fix quoting for read input.
23043
5f0c4aca
BC
230442010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
23045
23046 Support for updating environment variables with matched substrings
23047 of regexp.
23048
23049 * tests/grub_cmd_regexp.in: New test.
23050 * Makefile.util.def: Rule for new test.
23051
23052 * grub-core/commands/regexp.c: New option -s to update environment
23053 variables with regexp matches.
23054
3759a35f
SJ
230552010-09-04 Szymon Janc <szymon@janc.net.pl>
23056
23057 * include/grub/file.h (grub_file): New member not_easly_seekable.
23058 (grub_file_seekable): New inline function.
23059 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
23060 easily seekable.
23061 (grub_gzio_open): Set not_easly_seekable.
23062 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
23063 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
23064
ed8c6dec
BC
230652010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
23066
23067 Support for options to appear multiple times on cmdline.
23068
23069 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
23070 * grub-core/commands/extcmd.c: Support for repeatable option.
23071 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
23072 repeatable option support.
23073
23074 Refactor menuentry into a regular command.
23075
23076 * grub-core/commands/menuentry.c: New file, menuentry command
23077 implementation.
23078 * grub-core/Makefile.core.def: Rule update for normal.mod.
23079 * grub-core/normal/main.c: Moved menuentry creation to
23080 grub-core/commands/menuentry.c.
23081 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
23082 (grub_menu_execute_entry_real): Removed.
23083 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
23084 function.
23085 (grub_script_execute_menuentry): Removed.
23086 * grub-core/script/parser.y (menuentry): Removed.
23087 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
23088 * grub-core/script/yylex.l (menuentry): Removed.
23089 * include/grub/menu.h (grub_menu_init): New prototype.
23090 (grub_menu_fini): New prototype.
23091 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
23092 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
23093 (grub_script_execute_sourcecode): New prototype.
23094
dacd0cf0
BC
230952010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
23096
23097 "return" command for GRUB script functions.
23098
23099 * tests/grub_script_return.in: New test.
23100 * Makefile.util.def: Rules for new test.
23101
23102 * grub-core/script/execute.c (grub_script_return): New function.
23103 * grub-core/script/main.c: Register/unregister return commaond.
23104 * include/grub/script_sh.h (grub_script_return): New prototype.
23105
52e72f9d
BC
231062010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
23107
23108 "setparams" command to update positional parameters.
23109
23110 * tests/grub_script_setparams.in: New test.
23111 * Makefile.util.def: Rules for new test.
23112
23113 * grub-core/script/argv.c (grub_script_argv_make): New function.
23114 * grub-core/script/execute.c (replace_scope): New function.
23115 (grub_script_setparams): New function.
23116 * grub-core/script/lexer.c: Remove unused variables.
23117 * grub-core/script/main.c: Register/unregister setparams command.
23118 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
23119 (grub_script_setparams): New prototype.
23120
25b60c91
BC
231212010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
23122
23123 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
23124 grub_free order.
23125
37e7bf68
BC
231262010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
23127
23128 Support for passing block of commands as an argument to extcmds.
23129
23130 * Makefile.util.def: Rules for new test.
23131 * tests/grub_script_blockarg.in: New test.
23132 * grub-core/tests/test_blockarg.c: New file, block argument
23133 command used in the test.
23134
23135 * include/grub/extcmd.h (grub_extcmd_context): New struct.
23136 (grub_register_extcmd_prio): New function prototype.
23137 (grub_extcmd_dispatcher): New function prototype.
23138 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
23139 type.
23140 * include/grub/script_sh.h (struct grub_script): New members
23141 `children', `next_siblings' and `refcnt' for block arguments and
23142 reference counting.
23143 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
23144 (grub_script_arg): New member `script' for block argument.
23145 (grub_script_argv): New member `script' for block argument.
23146 (grub_parser_param): New member `scripts' for block argument.
23147 (grub_script_mem_free): New extern function prototype.
23148 (grub_script_ref): New function prototype.
23149 (grub_script_unref): New function prototype.
23150
23151 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
23152 extcmd form to support block arguments.
23153 * grub-core/script/argv.c: Block arguments support.
23154 * grub-core/script/execute.c: Likewise.
23155 * grub-core/script/lexer.c: Likewise.
23156 * grub-core/script/main.c: Likewise.
23157 * grub-core/script/script.c: Likewise.
23158 * grub-core/script/parser.y: Likewise. New `block' and `block0'
23159 non-terminals.
23160
23161 * grub-core/commands/acpi.c: Update extcmd implementations with
23162 grub_extcmd_context_t.
23163 * grub-core/commands/cat.c: Likewise.
23164 * grub-core/commands/echo.c: Likewise.
23165 * grub-core/commands/extcmd.c: Likewise.
23166 * grub-core/commands/hashsum.c: Likewise.
23167 * grub-core/commands/hdparm.c: Likewise.
23168 * grub-core/commands/help.c: Likewise.
23169 * grub-core/commands/hexdump.c: Likewise.
23170 * grub-core/commands/i386/cpuid.c: Likewise.
23171 * grub-core/commands/i386/pc/drivemap.c: Likewise.
23172 * grub-core/commands/i386/pc/halt.c: Likewise.
23173 * grub-core/commands/i386/pc/sendkey.c: Likewise.
23174 * grub-core/commands/iorw.c: Likewise.
23175 * grub-core/commands/keystatus.c: Likewise.
23176 * grub-core/commands/loadenv.c: Likewise.
23177 * grub-core/commands/ls.c: Likewise.
23178 * grub-core/commands/lspci.c: Likewise.
23179 * grub-core/commands/memrw.c: Likewise.
23180 * grub-core/commands/probe.c: Likewise.
23181 * grub-core/commands/search_wrap.c: Likewise.
23182 * grub-core/commands/setpci.c: Likewise.
23183 * grub-core/commands/sleep.c: Likewise.
23184 * grub-core/disk/loopback.c: Likewise.
23185 * grub-core/hello/hello.c: Likewise.
23186 * grub-core/loader/i386/bsd.c: Likewise.
23187 * grub-core/loader/xnu.c: Likewise.
23188 * grub-core/term/gfxterm.c: Likewise.
23189 * grub-core/term/serial.c: Likewise.
23190 * grub-core/tests/lib/functional_test.c: Likewise.
23191
888d1500
BC
231922010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
23193
23194 Multi-line quoted strings support.
23195
23196 * grub-core/script/lexer.c (append_newline): Removed.
23197 (grub_script_lexer_yywrap): Refactored.
23198 (grub_script_lexer_init): Refactored.
23199 * grub-core/script/yylex.l (yywrap): New function.
23200 (grub_lexer_resplit): New function.
23201 (grub_lexer_unput): New function.
23202 * include/grub/script_sh.h (grub_lexer_param): New members, unput
23203 and resplit.
23204 * tests/grub_script_echo1.in: Added few more testcases.
23205
dda060dd
VS
232062010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
23207
23208 * grub-core/kern/misc.c: Don't add abort alias in utils.
23209 Reported by: echoline.
23210
6556eba9
BC
232112010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
23212
23213 Add missing files into "make dist" tarball for other platforms.
23214
23215 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
23216 * conf/Makefile.common (dist_noinst_DATA): New variable.
23217 * conf/Makefile.extra-dist: Added missing make dist files.
23218 * grub-core/Makefile.core.def: Likewise.
23219
c8e7bf5f
VS
232202010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
23221
23222 Compress grub_prefix.
23223
23224 * grub-core/boot/i386/pc/lnxboot.S: Use
23225 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
23226 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
23227 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
23228 GRUB_MACHINE_PREFIX_END. All users updated.
23229 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
23230 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
23231 + 0x40.
23232 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
23233 * util/grub-mkimage.c (image_target_desc): Change data_end to
23234 prefix_end. All users updated.
23235
a7c00cdb
VS
232362010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
23237
23238 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
23239 value.
23240 (grub_openbsd_boot): Likewise.
23241 (grub_netbsd_boot): Likewise.
23242 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
23243 (grub_xnu_boot): Likewise.
23244
9f915872
VS
232452010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
23246
23247 * configure.ac: Clean LIBS variable after tests.
23248
efa1bee7
CW
232492010-09-02 Colin Watson <cjwatson@ubuntu.com>
23250
23251 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
23252
61d720e5
VS
232532010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
23254
23255 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
23256 echo if libdevmapper will be used.
23257
ef8e0ec8
IT
232582010-09-02 Ian Turner <Ian.Turner@deshaw.com>
23259
23260 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
23261 constant for the same file.
23262
03e261d8
VS
232632010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
23264
23265 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
23266
c2a4eba6
CW
232672010-09-02 Colin Watson <cjwatson@ubuntu.com>
23268
23269 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
23270 grub-core/*.pp.
23271
9056cbf3
CW
232722010-09-02 Colin Watson <cjwatson@ubuntu.com>
23273
23274 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
23275 required by the boot protocol.
23276
23277 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
23278 ebp and edi members.
23279 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
23280 state.ebp and state.edi.
23281 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
23282 %ebp and %edi according to grub_relocator32_ebp and
23283 grub_relocator32_edi respectively.
23284 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
23285 and state.edi.
23286
529cc99a
VS
232872010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
23288
23289 Add i386-pc-pxe image target.
23290
23291 * util/grub-mkimage.c (image_target_desc): New enum value
23292 IMAGE_I386_PC_PXE.
23293 (image_targets): New target i386-pc-pxe.
23294 (generate_image): Handle i386-pc-pxe image.
23295
9a093920
VS
232962010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
23297
23298 Fix grub_pxe_scan.
23299
23300 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
23301 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
23302 All users updated.
23303 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
23304 (grub_pxe_pxenv): Correct type.
23305
f9cefc4e
CW
233062010-09-01 Colin Watson <cjwatson@ubuntu.com>
23307
23308 * NEWS: Document most of the important changes since 1.98.
23309
4066f57f
CW
233102010-09-01 Colin Watson <cjwatson@ubuntu.com>
23311
23312 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
23313 generated manual page) a little.
23314
da2891f9
CW
233152010-09-01 Colin Watson <cjwatson@ubuntu.com>
23316
23317 * docs/grub.texi: Add myself as an author.
23318
ad717fae
VS
233192010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
23320
23321 * Makefile.util.def (libgrub.a): Add missing sunpc.
23322 Reported by: Seth Goldberg.
23323
eefe8abd
VS
233242010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
23325
23326 Interrupt wrapping and code simplifications.
23327
9494ef9a
VS
23328 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
23329 x86_noieee1275 which are functionaly equivalent in this case.
23330 (grub-install): Make source on each platform explicit. Enable on
23331 all noemu.
23332 * gentpl.py (x86_efi_pc): Removed group.
23333 (x86_noefi): Likewise.
23334 (i386_noefi): Likewise.
23335 (x86_noieee1275): Likewise.
23336 (i386_noieee1275): Likewise.
23337 (i386_noefi_noieee1275): Likewise.
23338 (i386_pc_qemu_coreboot): Likewise.
23339 (i386_coreboot_multiboot): Likewise.
23340 (i386_pc_coreboot_multiboot_qemu): Likewise.
23341 (x86_noefi_mips): Likewise.
23342 (noieee1275): Likewise.
23343 (ieee1275_mips): Likewise.
23344 (noemu_noieee1275): Likewise.
23345 (cmos): New group.
23346 (usb): Likewise.
23347 (videoinkernel): Likewise.
23348 (videomodules): Likewise.
eefe8abd 23349 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
9494ef9a
VS
23350 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
23351 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
23352 include/grub/loader.h, include/grub/msdos_partition.h,
23353 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
23354 include/grub/machine/console.h, include/grub/machine/vga.h,
23355 include/grub/machine/vbe.h, include/grub/machine/init.h,
23356 include/grub/machine/kernel.h, include/grub/cpu/time.h,
23357 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
eefe8abd 23358 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
9494ef9a
VS
23359 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
23360 * grub-core/Makefile.core.def (kernel): Explicit the source for
23361 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
23362 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
23363 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
23364 Use videoinkernel tag.
23365 (usb): Enable on all usb.
23366 (usbserial_common): Likewise.
23367 (usbserial_pl2303): Likewise.
23368 (usbserial_ftdi): Likewise.
23369 (uhci): Enable on all x86.
23370 (ohci): Enable on all pci.
23371 (cmostest): Enable on all CMOS.
23372 (acpi): Include commands/acpi.c on all platforms.
23373 (halt): Add relevant lib/*/halt.c.
23374 (hdparm): Enable on all pci.
23375 (lspci): Likewise.
23376 (usbtest): Enable on all usb.
23377 (ata): Enable on all pci.
23378 (ata_pthru): Likewise.
23379 (usbms): Enable on all usb.
23380 (usb_keyboard): Likewise.
23381 (font): Use tag videomodules.
23382 (bufio): Likewise.
23383 (datetime): Use tag cmos. Enable on all noemu.
23384 (mmap): Use tags common and x86.
23385 (gfxterm): Use tag videomodules.
23386 (bitmap): Likewise.
23387 (bitmap_scale): Likewise.
23388 (video_fb): Likewise.
23389 (video): Likewise.
23390 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
23391 adjust padding accordingly. All users updated.
23392 (grub_ohci_transaction): Fix bad format specification.
23393 (GRUB_MOD_INIT): Add asserts for struct size.
23394 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
23395 (grub_alloc_td): Likewise.
23396 (grub_free_queue): Likewise.
23397 (grub_uhci_transfer): Likewise.
23398 (grub_uhci_transaction): Fix bad format specification.
23399 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
23400 (grub_usb_bulk_readwrite): Likewise.
23401 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
23402 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
23403 Made static.
23404 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
23405 Made static.
23406 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
23407 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
23408 Transformed into C.
23409 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
23410 Moved from here ...
23411 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
23412 ... here. Transformed into C. Made static.
23413 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
23414 Moved from here ...
23415 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
23416 ... here. Transformed into C. Made static.
23417 * grub-core/kern/i386/pc/startup.S
23418 (grub_biosdisk_check_int13_extensions): Moved from here ...
23419 * grub-core/disk/i386/pc/biosdisk.c
23420 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
23421 Made static.
23422 * grub-core/kern/i386/pc/startup.S
23423 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
23424 * grub-core/disk/i386/pc/biosdisk.c
23425 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
23426 Transformed into C. Made static.
23427 * grub-core/kern/i386/pc/startup.S
23428 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
23429 * grub-core/disk/i386/pc/biosdisk.c
23430 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
23431 Transformed into C. Made static.
23432 * grub-core/kern/i386/pc/startup.S
23433 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
23434 * grub-core/disk/i386/pc/biosdisk.c
23435 (grub_biosdisk_get_diskinfo_standard): ... here.
23436 Transformed into C. Made static.
23437 * grub-core/kern/i386/pc/startup.S
23438 (grub_biosdisk_get_num_floppies): Moved from here ...
23439 * grub-core/disk/i386/pc/biosdisk.c
23440 (grub_biosdisk_get_num_floppies): ... here.
23441 Transformed into C. Made static.
23442 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
23443 New function.
23444 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
23445 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
23446 Transformed into C. Made static.
23447 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
23448 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
23449 Transformed into C. Made static.
23450 * grub-core/kern/i386/ieee1275/init.c: Removed.
23451 * grub-core/kern/i386/misc.S: Likewise.
23452 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
23453 Splitted from here ...
23454 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
23455 Transformed into C. Made static. All users updated.
23456 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
23457 Transformed into C. Made static. All users updated.
23458 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
23459 Moved from here...
23460 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
23461 Transformed into C. Made static. All users updated.
23462 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
23463 Moved from here...
23464 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
23465 Transformed into C. Made static. All users updated.
23466 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
23467 Removed (replaced by C version).
23468 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
23469 Moved from here...
23470 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
23471 Transformed into C. Made static.
23472 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
23473 Moved from here...
23474 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
23475 ... here. Transformed into C.
23476 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
23477 Moved from here...
23478 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
23479 ... here. Transformed into C.
23480 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
23481 Moved from here...
23482 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
23483 ... here. Transformed into C. Made static.
23484 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
23485 Moved from here...
23486 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
23487 ... here. Transformed into C.
21ed554b
VS
23488 * grub-core/kern/i386/pc/startup.S
23489 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
23490 * grub-core/video/i386/pc/vbe.c
23491 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
9494ef9a
VS
23492 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
23493 Moved from here...
23494 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
23495 ... here. Transformed into C.
23496 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
23497 Moved from here...
23498 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
23499 ... here. Transformed into C.
23500 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
23501 Moved from here...
23502 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
23503 ... here. Transformed into C.
23504 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
23505 Moved from here...
23506 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
23507 ... here. Transformed into C.
23508 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
23509 Moved from here...
23510 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
23511 ... here. Transformed into C. Made static.
23512 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
23513 Moved from here...
23514 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
23515 ... here. Transformed into C. Made static.
23516 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
23517 Moved from here...
23518 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
23519 ... here. Transformed into C. Made static.
23520 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
23521 pxe_rm_entry as third argument.
23522 (grub_bios_interrupt): New function.
23523 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
23524 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
23525 of calling grub_stop.
23526 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
23527 * grub-core/lib/efi/halt.c (grub_halt): ...here.
23528 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
23529 * grub-core/lib/emu/halt.c (grub_halt): ... here.
23530 * grub-core/lib/i386/halt.c: Moved from here ...
23531 * grub-core/lib/i386/halt.c: ... here.
23532 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
23533 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
23534 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
23535 grub_stop_floppy.
23536 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
23537 * include/grub/i386/coreboot/init.h: Removed.
23538 * include/grub/i386/multiboot/init.h: Likewise.
23539 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
23540 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
23541 * include/grub/i386/pc/int.h: New file.
23542 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
23543 (grub_pxe_scan): Removed.
23544 (grub_pxe_call): Update prototype.
23545 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
23546 prototypes.
23547 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
23548 * include/grub/i386/qemu/init.h: Removed.
23549 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
23550 noreturn.
23551 (grub_halt): Likewise.
23552 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
23553 (grub_reboot): Likewise.
23554 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
23555 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
21ed554b
VS
23556 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
23557
215dd471
RM
235582010-08-30 Robert Millan <rmh@gnu.org>
23559
23560 * NEWS: Document addition of ZFS support in `grub-install' and
23561 `grub-mkconfig'.
23562
ebd65b82
BC
235632010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
23564
23565 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
23566 dprintf output.
23567
11721d19
VS
235682010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
23569
23570 Remove leftover embedding of font objects.
23571
23572 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
23573 * util/grub-install.in (font): Removed.
23574 * util/grub-mkimage.c (generate_image): Remove font support. All users
23575 updated.
23576
37837d4e
VS
235772010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
23578
23579 Remove leftover embedding of font objects.
23580
23581 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
23582 * util/grub-install.in (font): Removed.
23583 * util/grub-mkimage.c (generate_image): Remove font support. All users
23584 updated.
23585
b4c1aae0
VS
235862010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
23587
23588 * docs/grub.texi (Network): Fix reference to pxe_blksize.
e176a764 23589 Reported by: Ian Turner
b4c1aae0 23590
8920a08d
VS
235912010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
23592
23593 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
23594 timeout to avoid indefinite boot stalling.
23595
f21db033
VS
235962010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
23597
23598 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
23599 (grub_env_write_color_highlight): Likewise.
23600
9a9de209
VS
236012010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
23602
23603 * grub-core/normal/term.c (print_more): Return to normal and not
23604 to standard state after printing "---MORE---".
23605
3dca01d7
VS
236062010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
23607
23608 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
23609 Mask out the bit 0x80 since it has other meaning that specifiing color.
23610
0b986c40
VS
236112010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
23612
23613 New relocator. Allows for more kernel support and more straightforward
23614 loader writing.
23615
23616 * Makefile.am (BOOTTARGET): New variable.
23617 (QEMU32): Likewise.
23618 (linux.init.x86_64): New target.
23619 (linux.init.i386): Likewise.
23620 (multiboot.elf): Likewise.
23621 (kfreebsd.elf): Likewise.
23622 (kfreebsd.aout): Likewise.
23623 (pc-chainloader.elf): Likewise.
23624 (pc-chainloader.bin): Likewise.
23625 (ntldr.elf): Likewise.
23626 (ntldr.bin): Likewise.
23627 (multiboot2.elf): Likewise.
23628 (kfreebsd.init.x86_64): Likewise.
23629 (kfreebsd.init.i386): Likewise.
23630 (knetbsd.init.i386): Likewise.
23631 (kopenbsd.init.i386): Likewise.
23632 (knetbsd.init.x86_64): Likewise.
23633 (kopenbsd.init.x86_64): Likewise.
23634 (linux-initramfs.i386): Likewise.
23635 (linux-initramfs.x86_64): Likewise.
23636 (kfreebsd-mfsroot.i386.img): Likewise.
23637 (knetbsd.image.i386): Likewise.
23638 (kopenbsd.image.i386): Likewise.
23639 (kopenbsd.image.x86_64): Likewise.
23640 (knetbsd.miniroot-image.i386.img): Likewise.
23641 (kfreebsd-mfsroot.x86_64.img): Likewise.
23642 (knetbsd.image.x86_64): Likewise.
23643 (knetbsd.miniroot-image.x86_64.img): Likewise.
23644 (kfreebsd-mfsroot.i386.gz): Likewise.
23645 (bootcheck-kfreebsd-i386): Likewise.
23646 (kfreebsd-mfsroot.x86_64.gz): Likewise.
23647 (bootcheck-kfreebsd-x86_64): Likewise.
23648 (knetbsd.miniroot-image.i386.gz): Likewise.
23649 (bootcheck-knetbsd-i386): Likewise.
23650 (bootcheck-kopenbsd-i386): Likewise.
23651 (bootcheck-kopenbsd-x86_64): Likewise.
23652 (knetbsd.miniroot-image.x86_64.gz): Likewise.
23653 (bootcheck-knetbsd-x86_64): Likewise.
23654 (bootcheck-linux-i386): Likewise.
23655 (bootcheck-linux-x86_64): Likewise.
23656 (bootcheck-linux16-i386): Likewise.
23657 (bootcheck-linux16-x86_64): Likewise.
23658 (bootcheck-multiboot): Likewise.
23659 (bootcheck-multiboot2): Likewise.
23660 (bootcheck-kfreebsd-aout): Likewise.
23661 (bootcheck-pc-chainloader): Likewise.
23662 (bootcheck-ntldr): Likewise.
23663 (CLEANFILES): Add new targets.
23664 (BOOTCHECKS): New variable.
23665 (.PHONY): Add bootchecks.
23666 (SUCCESSFUL_BOOT_STRING): New variable.
23667 (BOOTCHECK_TIMEOUT): Likewise.
23668 (bootcheck): New target
23669 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
23670 * configure.ac: Correct efiemu excuse.
23671 * docs/grub.texi (Supported kernels): New chapter.
23672 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
23673 include/grub/mm_private.h. Simplify inclusion of
23674 include/grub/boot.h, include/grub/loader.h
23675 and include/grub/msdos_partition.h
23676 (KERNEL_HEADER_FILES) [i386_coreboot]:
23677 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
23678 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
23679 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
23680 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
23681 include/grub/machine/loader.h.
23682 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
23683 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
23684 extra_dist.
23685 (pci.mod): Enable on i386-multiboot.
23686 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
23687 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
23688 i386-qemu.
23689 (relocator.mod): Rewritten.
23690 (aout.mod): Enable on all x86.
23691 (bsd.mod): Likewise.
23692 (ntldr.mod): New module.
23693 (linux.mod): Use loader/i386/linux.c on all x86.
23694 (xnu.mod): Enable on all x86.
23695 (vga_text.mod): disable on EFI and QEMU.
23696 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
23697 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
23698 * grub-core/efiemu/loadcore.c: Likewise.
23699 * grub-core/efiemu/main.c: Likewise.
23700 (grub_efiemu_exit_boot_services): Removed.
23701 (grub_efiemu_finish_boot_services): Likewise.
23702 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
23703 function.
23704 * grub-core/efiemu/i386/nocfgtables.c: New file.
23705 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
23706 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
23707 (grub_efi_finish_boot_services): Moved from here ...
23708 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
23709 Fille finish memory map and related data.
23710 (finish_mmap_buf): New variable.
23711 (grub_efi_uintn_t finish_mmap_size): Likewise.
23712 (grub_efi_uintn_t finish_key): Likewise.
23713 (grub_efi_uintn_t finish_desc_size): Likewise.
23714 (grub_efi_uint32_t finish_desc_version): Likewise.
23715 (grub_efi_is_finished): Likewise.
23716 (grub_efi_get_memory_map): Use saved memory map if EFI is already
23717 finished.
23718 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
23719 (grub_elf64_phdr_iterate): Likewise.
23720 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
23721 (grub_os_area_size): Likewise.
23722 (grub_machine_init): Don't reserve os area.
23723 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
23724 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
23725 * grub-core/kern/i386/loader.S: Removed.
23726 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
23727 (grub_os_area_size): Likewise.
23728 (grub_machine_init): Don't reserve os area.
23729 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
23730 Don't call grub_dl_unload_all.
23731 Don't include loader.S.
23732 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
23733 Declare the memory after _end as available.
23734 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
1935c077 23735 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
0b986c40 23736 (GRUB_MM_ALLOC_MAGIC): Moved from here...
1935c077
VS
23737 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
23738 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
23739 * include/grub/mm_private.h (grub_mm_header): ... here.
23740 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
23741 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
0b986c40
VS
23742 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
23743 (grub_mm_region): ..here. Removed addr. Added pre_size.
23744 All users updated.
23745 * grub-core/kern/mm.c (base): Renamed to ...
23746 (grub_mm_base): ... this. Made global.
23747 (grub_real_malloc): Alloc from end of region.
23748 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
23749 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
23750 * grub-core/kern/powerpc/cache_flush.S: ... here.
23751 * grub-core/lib/efi/relocator.c: New file.
23752 * grub-core/lib/i386/relocator.c: Rewritten.
23753 * grub-core/lib/i386/relocator16.S: New file.
23754 * grub-core/lib/i386/relocator32.S: Likewise.
23755 * grub-core/lib/i386/relocator64.S: Likewise.
23756 * grub-core/lib/i386/relocator_asm.S: Rewritten.
23757 * grub-core/lib/i386/relocator_common.S: New file.
23758 * grub-core/lib/ieee1275/relocator.c: Likewise.
23759 * grub-core/lib/mips/relocator.c: Rewritten.
23760 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
23761 stylistic adjustments.
23762 * grub-core/lib/powerpc/relocator.c: New file.
23763 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
23764 * grub-core/lib/relocator.c: Rewritten.
23765 * grub-core/lib/x86_64/relocator_asm.S: New file.
23766 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
23767 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
23768 (bsd_tag): New struct.
23769 (tags): New variable.
23770 (tags_last): Likewise.
23771 (netbsd_module): New struct.
23772 (netbsd_mods): New variable.
23773 (netbsd_mods_last): Likewise.
23774 (openbsd_opts): New parameter "serial".
23775 (OPENBSD_SERIAL_ARG): New definition.
23776 (netbsd_opts): New parameter "serial".
23777 (NETBSD_SERIAL_ARG): New definition.
23778 (grub_freebsd_add_meta): Reorganised into ...
23779 (grub_bsd_add_meta): ...this. All users updated.
23780 (grub_freebsd_add_mmap): Reorganised into ...
23781 (generate_e820_mmap): ...this...
23782 (grub_bsd_add_mmap): ...and this. All users updated.
23783 (grub_freebsd_list_modules): Use tags.
23784 (grub_netbsd_add_meta_module): New function.
23785 (grub_netbsd_list_modules): Likewise.
23786 (grub_freebsd_boot): Use relocator and finish EFI.
23787 (grub_openbsd_boot): Likewise.
23788 (grub_netbsd_setup_video): New function.
23789 (grub_netbsd_add_modules): Likewise.
23790 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
23791 and finish EFI.
23792 (grub_bsd_unload): Unload tags.
23793 (grub_bsd_load_aout): Use relocator.
23794 (grub_bsd_elf32_size_hook): New function.
23795 (grub_bsd_elf32_hook): Use relocator.
23796 (grub_bsd_elf64_size_hook): New function.
23797 (grub_bsd_elf64_hook): Use relocator.
23798 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
23799 (grub_bsd_load): Zero-out openbsd_ramdisk.
23800 (grub_bsd_load): Use relocator.
23801 (grub_cmd_openbsd): Support serial.
23802 (grub_cmd_netbsd): Support modules.
23803 (grub_cmd_freebsd_module): Use relocator.
23804 (grub_netbsd_module_load): New function.
23805 (grub_cmd_netbsd_module): Likewise.
23806 (grub_cmd_openbsd_ramdisk): Likewise.
23807 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
23808 kopenbsd_ramdisk.
23809 (GRUB_MOD_FINI): Unregister new commands.
23810 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
23811 (grub_freebsd_load_elfmodule_obj): Use relocator.
23812 (grub_freebsd_load_elfmodule): Likewise.
23813 (grub_freebsd_load_elf_meta): Likewise.
23814 (grub_netbsd_load_elf_meta): New function.
23815 (grub_openbsd_find_ramdisk): Likewise.
23816 * grub-core/loader/i386/bsd_helper.S: Removed.
23817 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
23818 * grub-core/loader/i386/bsd_trampoline.S: Removed.
23819 * grub-core/loader/i386/efi/linux.c: Likewise.
23820 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
23821 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
23822 (DEFAULT_VIDEO_MODE): Likewise.
23823 (real_mode_target): New variable.
23824 (prot_mode_target): Likewise.
23825 (initrd_mem_target): Likewise.
23826 (relocator): Likewise.
23827 (efi_mmap_buf): Likewise.
23828 (efi_mmap_size): Likewise.
23829 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
23830 (free_pages): Use relocator.
23831 (allocate_pages): Account for efi_mmap and use relocator. Return error.
23832 (grub_linux_setup_video): Return error.
23833 (grub_linux_trampoline_start): Removed.
23834 (grub_linux_trampoline_end): Likewise.
23835 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
23836 andd video parameters depending on firmware.
23837 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
23838 [GRUB_MACHINE_EFI]: Pass EFI parameters.
23839 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
23840 (grub_cmd_initrd): Use relocator.
23841 * grub-core/loader/i386/linux_trampoline.S: Removed.
23842 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
23843 (elf_sec_entsize): Likewise.
23844 (elf_sec_shstrndx): Likewise.
23845 (elf_sections): Likewise.
23846 (grub_multiboot_load): Use relocator.
23847 (grub_multiboot_get_mbi_size): Account for sections.
23848 (grub_multiboot_make_mbi): Use relocator and support sections.
23849 (grub_multiboot_add_elfsyms): New function.
23850 (grub_multiboot_free_mbi): Free sections.
23851 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
23852 (grub_linux_real_target): Likewise.
23853 (grub_linux_real_chunk): Likewise.
23854 (grub_linux16_prot_size): Likewise.
23855 (grub_linux16_boot): Use relocator.
23856 (grub_linux_unload): Unload relocator.
23857 (grub_cmd_linux): Use relocator.
23858 (grub_cmd_initrd): Likewise.
23859 * grub-core/loader/i386/pc/ntldr.c: New file.
23860 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
23861 Don't try to guess CPU frequency.
23862 (grub_xnu_set_video): Stretch bitmap.
23863 (grub_xnu_boot): Use relocator.
23864 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
23865 (grub_linux_unload): Free relocator.
23866 (grub_linux_load32): Use relocator.
23867 (grub_linux_load64): Likewise.
23868 (grub_cmd_initrd): Likewise.
23869 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
23870 (grub_multiboot_unload): Unload relocator.
23871 (grub_cmd_multiboot): Use relocator.
23872 (grub_cmd_module): Likewise.
23873 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
23874 Use relocator and support sections.
23875 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
23876 (elf_sec_entsize): Likewise.
23877 (elf_sec_shstrndx): Likewise.
23878 (elf_sections): Likewise.
23879 (grub_multiboot_load): Use relocator.
23880 (grub_multiboot_get_mbi_size): Account for sections.
23881 (grub_multiboot_make_mbi): Use relocator and support sections.
23882 (grub_multiboot_add_elfsyms): New function.
23883 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
23884 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
23885 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
23886 Prototype changed. All users updated.
23887 (grub_xnu_align_heap): Simplified.
23888 (grub_xnu_writetree_toheap): Likewise.
23889 (grub_xnu_unload): Unload relocator.
23890 (grub_cmd_xnu_kernel): Use relocator.
23891 (grub_cmd_xnu_kernel64): Likewise.
23892 (grub_xnu_register_memory): Simplified.
23893 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
1935c077
VS
23894 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
23895 EFI is finished.
23896 (grub_console_checkkey): Likewise.
23897 (grub_console_getkey): Likewise.
23898 (grub_console_getwh): Likewise.
23899 (grub_console_getxy): Likewise.
23900 (grub_console_gotoxy): Likewise.
23901 (grub_console_cls): Likewise.
23902 (grub_console_setcolorstate): Likewise.
23903 (grub_console_setcursor): Likewise.
23904 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
23905 * grub-core/tests/boot/kbsd.init-i386.S: New file.
23906 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
23907 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
23908 * grub-core/tests/boot/kernel-8086.S: Likewise.
23909 * grub-core/tests/boot/kernel-i386.S: Likewise.
23910 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
23911 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
23912 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
23913 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
23914 * grub-core/tests/boot/knetbsd.cfg: Likewise.
23915 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
23916 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
23917 * grub-core/tests/boot/linux.cfg: Likewise.
23918 * grub-core/tests/boot/linux.init-i386.S: Likewise.
23919 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
23920 * grub-core/tests/boot/linux16.cfg: Likewise.
23921 * grub-core/tests/boot/multiboot.cfg: Likewise.
23922 * grub-core/tests/boot/multiboot2.cfg: Likewise.
23923 * grub-core/tests/boot/ntldr.cfg: Likewise.
23924 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
23925 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
23926 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
23927 New definition.
23928 * include/grub/dl.h (grub_dl_unload_all): Removed.
23929 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
23930 (grub_efi_finish_boot_services): Change prototype.
23931 (grub_efi_is_finished): New variable.
23932 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
23933 Changed prototype.
23934 (grub_efiemu_finish_boot_services): Removed.
23935 (grub_machine_efiemu_init_tables): New prototype.
23936 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
23937 (grub_elf64_phdr_iterate): Likewise.
23938 * include/grub/i386/bsd.h: Include relocator.h.
23939 (freebsd_tag_header): New struct.
23940 (grub_openbsd_bios_mmap): Removed.
23941 (grub_unix_real_boot): Removed.
23942 (grub_freebsd_load_elfmodule32): Changed prototype.
23943 (grub_freebsd_load_elfmodule_obj64): Likewise.
23944 (grub_freebsd_load_elf_meta32): Likewise.
23945 (grub_freebsd_load_elf_meta64): Likewise.
23946 (grub_freebsd_add_meta): Removed.
23947 (grub_netbsd_load_elf_meta32): New prototype.
23948 (grub_netbsd_load_elf_meta64): Likewise.
23949 (grub_bsd_add_meta): Likewise.
23950 (grub_openbsd_ramdisk_descriptor): New struct.
23951 (grub_openbsd_find_ramdisk32): New prototype.
23952 (grub_openbsd_find_ramdisk64): Likewise.
23953 * include/grub/i386/coreboot/loader.h: Removed.
23954 * include/grub/i386/efi/loader.h: Likewise.
23955 * include/grub/i386/ieee1275/loader.h: Likewise.
23956 * include/grub/i386/linux.h (linux_kernel_header): Change void *
23957 to grub_uint32_t.
23958 * include/grub/i386/loader.h: Removed.
23959 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
23960 value.
23961 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
23962 (grub_phys_addr_t): New type.
23963 (grub_vtop): New inline function.
23964 (grub_map_memory): Likewise.
23965 (grub_unmap_memory): Likewise.
23966 * include/grub/i386/multiboot/loader.h: Removed.
23967 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
23968 (NETBSD_BTINFO_CONSOLE): New definition.
23969 (NETBSD_BTINFO_SYMTAB): Likewise.
23970 (NETBSD_BTINFO_MODULES): Likewise.
23971 (NETBSD_BTINFO_FRAMEBUF): Likewise.
23972 (grub_netbsd_bootinfo): New struct.
23973 (grub_netbsd_btinfo_common): Use explicit bitsize.
23974 (grub_netbsd_btinfo_mmap_entry): Removed.
23975 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
23976 (grub_netbsd_btinfo_bootdisk): New struct.
23977 (grub_netbsd_btinfo_symtab): Likewise.
23978 (grub_netbsd_btinfo_serial): Likewise.
23979 (grub_netbsd_btinfo_modules): Likewise.
23980 (grub_netbsd_btinfo_framebuf): Likewise.
23981 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
23982 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
23983 Likewise.
23984 (grub_openbsd_bootargs): Use explicit bitsize.
23985 (grub_openbsd_bootarg_console): New struct.
23986 (GRUB_OPENBSD_COM_MAJOR): New definition.
23987 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
23988 * include/grub/i386/pc/efiemu.h: Removed.
23989 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
23990 * include/grub/i386/qemu/loader.h: Removed.
23991 * include/grub/i386/relocator.h: Rewritten.
23992 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
23993 * include/grub/mips/memory.h: New file.
23994 * include/grub/mips/multiboot.h: Rewritten.
23995 * include/grub/mips/relocator.h: Rewritten.
23996 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
23997 (grub_vtop): New function.
23998 (grub_map_memory): Likewise.
23999 (grub_unmap_memory): Likewise.
24000 * include/grub/misc.h (ALIGN_DOWN): New definition.
24001 * include/grub/mm.h (grub_mm_check_real): New proto.
24002 (GRUB_MM_CHECK): New definition.
24003 * include/grub/mm_private.h: New file.
24004 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
24005 (grub_multiboot_get_mbi_size): Removed.
24006 (grub_multiboot_make_mbi): Change prottype.
24007 (grub_multiboot_set_accepts_video): New proto.
24008 (grub_multiboot_add_elfsyms): Likewise.
24009 (grub_multiboot_payload_eip): New variable.
24010 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
24011 New prototype.
24012 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
24013 New definition.
24014 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
24015 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
24016 * include/grub/powerpc/ieee1275/loader.h: Removed.
24017 * include/grub/powerpc/memory.h: New file.
24018 * include/grub/powerpc/relocator.h: Likewise.
24019 * include/grub/relocator.h: Likewise.
24020 * include/grub/relocator_private.h: Likewise.
24021 * include/grub/sparc64/ieee1275/loader.h: Removed.
24022 * include/grub/x86_64/memory.h: New file.
24023 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
24024 (grub_xnu_heap_malloc): Likewise.
24025 (grub_xnu_heap_real_start): Removed.
24026 (grub_xnu_heap_start): Likewise.
24027 (grub_xnu_relocator): New variable.
24028 (grub_xnu_heap_target_start): Likewise.
24029 * tests/util/grub-shell.in: Support non-pc.
24030 * util/grub-mkimage.c (image_targets): Fix multiboot target.
0b986c40 24031
5303b85d
VS
240322010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24033
24034 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
24035 on malloc error.
24036 (grub_bidi_logical_to_visual): Check that malloc succeded.
24037 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
24038 puts.
24039 (grub_xputs_normal): Likewise.
24040
d768d159
VS
240412010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24042
24043 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
24044 extra_dist.
24045
240462010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24047
24048 * grub-core/efiemu/runtime/efiemu.sh: Removed.
24049
5bf84df4
VS
240502010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24051
24052 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
24053
3626810e
VS
240542010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24055
24056 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
24057 dprintf.
24058
a7363f53
BC
240592010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
24060
24061 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
24062
902f75f6
VS
240632010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
24064
24065 * grub-core/normal/term.c (print_more): Fix a memory leak.
24066 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
24067 (grub_xputs_normal): Likewise.
24068
3c707967
VS
240692010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
24070
24071 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
24072 the begining of the string
24073
2053cc07
VS
240742010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
24075
24076 * grub-core/script/script.c (grub_script_parse): Free parsed on
24077 failure.
24078
46422ebf
VS
240792010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
24080
24081 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
24082 on failure.
24083
9e0fa3f6
VS
240842010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
24085
24086 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
24087 return.
24088
3393cf16
VS
240892010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
24090
24091 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
24092 (scroll_up): Fix a memory leak.
24093
b17540cb
VS
240942010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
24095
24096 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
24097 errors.
24098
67140446
VS
240992010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
24100
24101 Handle USB pendrives exposed as floppies.
24102
24103 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
24104 floppy.
24105 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
24106 Check for partitions on all devices.
24107
e35e46fc
VS
241082010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
24109
24110 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
24111 (readkey): Likewise.
24112
d24c6190
BC
241132010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
24114
24115 Multiple variable names support to "export" command.
24116
24117 * normal/context.c (grub_cmd_export): "export" command supports
24118 multiple variable names.
24119
04ddcc6a
ST
241202010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
24121
24122 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
24123 --target=drive output to Mach device name.
24124
0c8b61d8
BC
241252010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
24126
24127 New Automake based build system for GRUB.
24128
24129 * ABOUT-NLS: New file.
24130 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
24131 in Makefile.util.def file.
24132 * Makefile.util.def: New file. Autogen build definitions file for
24133 GRUB host utils.
24134 * conf/Makefile.common: New file. Common variables for GRUB host
24135 utils and target modules.
24136 * conf/Makefile.extra-dist: New file. Extra files for make dist.
24137 * docs/Makefile.am: New file. Automake file for docs.
24138 * gentpl.py: New file. Python script to generate Autogen
24139 template.
24140 * grub-core/Makefile.am: New file. GRUB target modules' rules
24141 that doesn't fit in Makefile.core.def file.
24142 * grub-core/Makefile.core.def: New file. Autogen build
24143 definitions file for GRUB target modules.
24144 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
24145 specific setjmp.S file.
24146 * po/Makefile.am: New file.
24147
24148 * .bzrignore: New ignores.
24149 * INSTALL: New requirements, without Ruby.
24150 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
24151 * autogen.sh: Updated to invoke autogen as necessary.
24152 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
24153 and defines for Automake conditionals.
24154 * geninit.sh: Refactoring.
24155
24156 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
24157 necessary.
24158 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
24159 New prototype.
24160
24161 * include/grub/test.h: Fix functional test modules' naming.
24162 * grub-core/tests/example_functional_test.c: Fix test module name.
24163
24164 * util/misc.c: Hosted versions' of grub functions for libgrub.a
24165 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
24166 * util/grub-editenv.c: Likewise.
24167 * util/grub-fstest.c: Likewise.
24168 * util/grub-mkdevicemap.c: Likewise.
24169 * util/grub-mkfont.c: Likewise.
24170 * util/grub-mkimage.c: Likewise.
24171 * util/grub-mkpasswd-pbkdf2.c: Likewise.
24172 * util/grub-probe.c: Likewise.
24173 * util/grub-script-check.c: Likewise.
24174 * util/i386/pc/grub-setup.c: Likewise.
24175 * util/sparc64/ieee1275/grub-setup.c: Likewise.
24176
24177 * tests/util/grub-shell.in: Fix override directory path.
24178 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
24179 * util/import_gcry.py: Create Makefile.gcry.def file instead.
24180
24181 * util/lvm.c: Update #includes.
24182 * util/raid.c: Likewise.
24183 * util/resolve.c: Likewise.
24184 * grub-core/bus/emu/pci.c: Likewise.
24185 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
24186 * grub-core/lib/posix_wrap/string.h: Likewise.
24187 * grub-core/kern/emu/main.c: Likewise.
24188
24189 * grub-core/gensymlist.sh: New file. Script for generating kernel
24190 symbols file.
24191 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
24192
24193 * grub-core/gentrigtables.c: Fix unused variable warnings.
24194
24195 * Makefile.in: Removed.
24196 * conf/any-emu.rmk: Removed.
24197 * conf/common.rmk: Removed.
24198 * conf/i386-coreboot.rmk: Removed.
24199 * conf/i386-efi.rmk: Removed.
24200 * conf/i386-ieee1275.rmk: Removed.
24201 * conf/i386-multiboot.rmk: Removed.
24202 * conf/i386-pc.rmk: Removed.
24203 * conf/i386-qemu.rmk: Removed.
24204 * conf/i386.rmk: Removed.
24205 * conf/mips-yeeloong.rmk: Removed.
24206 * conf/mips.rmk: Removed.
24207 * conf/powerpc-ieee1275.rmk: Removed.
24208 * conf/sparc64-ieee1275.rmk: Removed.
24209 * conf/tests.rmk: Removed.
24210 * conf/x86-efi.rmk: Removed.
24211 * conf/x86_64-efi.rmk: Removed.
24212 * gendistlist.sh: Removed.
24213 * geninitheader.sh: Removed.
24214 * genkernsyms.sh.in: Removed.
24215 * genmk.rb: Removed.
24216 * gensymlist.sh.in: Removed.
24217 * mkinstalldirs: Removed.
24218 * boot: Moved ...
24219 * grub-core/boot: ... to here.
24220 * bus: Moved ...
24221 * grub-core/bus: ... to here.
24222 * commands: Moved ...
24223 * grub-core/commands: ... to here.
24224 * disk: Moved ...
24225 * grub-core/disk: ... to here.
24226 * efiemu: Moved ...
24227 * grub-core/efiemu: ... to here.
24228 * font: Moved ...
24229 * grub-core/font: ... to here.
24230 * fs: Moved ...
24231 * grub-core/fs: ... to here.
24232 * gencmdlist.sh: Moved ...
24233 * grub-core/gencmdlist.sh: ... to here.
24234 * genemuinit.sh: Moved ...
24235 * grub-core/genemuinit.sh: ... to here.
24236 * genemuinitheader.sh: Moved ...
24237 * grub-core/genemuinitheader.sh: ... to here.
24238 * genfslist.sh: Moved ...
24239 * grub-core/genfslist.sh: ... to here.
24240 * genhandlerlist.sh: Moved ...
24241 * grub-core/genhandlerlist.sh: ... to here.
24242 * genmoddep.awk: Moved ...
24243 * grub-core/genmoddep.awk: ... to here.
24244 * genmodsrc.sh: Moved ...
24245 * grub-core/genmodsrc.sh: ... to here.
24246 * genpartmaplist.sh: Moved ...
24247 * grub-core/genpartmaplist.sh: ... to here.
24248 * genparttoollist.sh: Moved ...
24249 * grub-core/genparttoollist.sh: ... to here.
24250 * genterminallist.sh: Moved ...
24251 * grub-core/genterminallist.sh: ... to here.
24252 * gentrigtables.c: Moved ...
24253 * grub-core/gentrigtables.c: ... to here.
24254 * genvideolist.sh: Moved ...
24255 * grub-core/genvideolist.sh: ... to here.
24256 * gettext: Moved ...
24257 * grub-core/gettext: ... to here.
24258 * gfxmenu: Moved ...
24259 * grub-core/gfxmenu: ... to here.
24260 * gnulib: Moved ...
24261 * grub-core/gnulib: ... to here.
24262 * hello: Moved ...
24263 * grub-core/hello: ... to here.
24264 * hook: Moved ...
24265 * grub-core/hook: ... to here.
24266 * io: Moved ...
24267 * grub-core/io: ... to here.
24268 * kern: Moved ...
24269 * grub-core/kern: ... to here.
24270 * lib: Moved ...
24271 * grub-core/lib: ... to here.
24272 * loader: Moved ...
24273 * grub-core/loader: ... to here.
24274 * mmap: Moved ...
24275 * grub-core/mmap: ... to here.
24276 * normal: Moved ...
24277 * grub-core/normal: ... to here.
24278 * partmap: Moved ...
24279 * grub-core/partmap: ... to here.
24280 * parttool: Moved ...
24281 * grub-core/parttool: ... to here.
24282 * script: Moved ...
24283 * grub-core/script: ... to here.
24284 * term: Moved ...
24285 * grub-core/term: ... to here
24286 * tests/example_functional_test.c: Moved ...
24287 * grub-core/tests/example_functional_test.c: ... to here.
24288 * tests/lib/functional_test.c: Moved ...
24289 * grub-core/tests/lib/functional_test.c: ... to here.
24290 * tests/lib/test.c: Moved ...
24291 * grub-core/tests/lib/test.c: ... to here.
24292 * video: Moved ...
24293 * grub-core/video: ... to here.
24294
645586e6
BC
242952010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
24296
24297 Replace --enable-grub-emu-modules with grub-emu-lite.
24298
24299 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
24300 cache.S.
24301
24302 * include/grub/emu/misc.h (grub_emu_init): New prototype.
24303 * kern/emu/full.c: New file. For grub-emu specific initialization.
24304 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
24305 * kern/emu/main.c: Call initialization function grub_emu_init.
24306
24307 * Makefile.in: Include grub-emu-lite in install.
24308 * commands/parttool.c: Use grub_no_autoload to differentiate
24309 between grub-emu and grub-emu-lite.
24310 * include/grub/misc.h: New variable grub_no_autoload.
24311
24312 * conf/any-emu.rmk: New rules for grub-emu-lite.
24313 * configure.ac: Remove --enable-grub-emu-modules.
24314 * genmk.rb: Cleanup unnecessary rules.
24315 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
24316
24317 * normal/main.c: Don't load list files on grub-emu-lite.
24318 * util/misc.c (grub_arch_sync_caches): Removed.
24319
f86a4030
CW
243202010-08-23 Colin Watson <cjwatson@ubuntu.com>
24321
24322 * kern/mips/startup.S (grub_prefix): Update comment to refer to
24323 grub-mkimage rather than grub-mkelfimage.
24324 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
24325
06776944
VS
243262010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
24327
24328 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
24329 a key after CapsLock or NumLock. It's just a qemu bug.
24330
df262419
VS
243312010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
24332
24333 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
24334 needed by libusb wrapper.
24335
b40ea81b
ST
243362010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
24337
24338 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
24339
dee50575
VS
243402010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
24341
24342 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
24343 --nounzip is passed.
24344
fb1d7b79
VS
243452010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
24346
24347 USB hotunplugging and USB serial support.
24348
24349 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
24350 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
24351 (grub_uhci_transfer): Respect timeout and set *actual.
24352 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
24353 non-standard length.
24354 (grub_usb_device_attach): Autoload modules.
24355 (GRUB_MOD_INIT): Set grub_term_poll_usb.
24356 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
24357 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
24358 users updated.
24359 (grub_usb_add_hub): Fill nports and children.
24360 (attach_root_port): Receive hub instead of controller.
24361 All users updated. Fill hub->devices.
24362 (grub_usb_root_hub): Allocate hub->devices.
24363 (detach_device): New function.
24364 (poll_nonroot_hub): Fill children and detach devices.
24365 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
24366 actual arguments. All users updated.
24367 (grub_usb_bulk_read_extended): New function.
24368 * bus/usb/serial/common.c: New file.
24369 * bus/usb/serial/ftdi.c: Likewise.
24370 * bus/usb/serial/pl2303.c: Likewise.
24371 * commands/terminal.c (handle_command): Support wildcard.
24372 * commands/usbtest.c: Output "Unknown" instead of empty string.
24373 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
24374 (usbserial_common_mod_SOURCES): New variable.
24375 (usbserial_common_mod_CFLAGS): Likewise.
24376 (usbserial_common_mod_LDFLAGS): Likewise.
24377 (pkglib_MODULES): Add usbserial_pl2303.mod.
24378 (usbserial_pl2303_mod_SOURCES): New variable.
24379 (usbserial_pl2303_mod_CFLAGS): Likewise.
24380 (usbserial_pl2303_mod_LDFLAGS): Likewise.
24381 (pkglib_MODULES): Add usbserial_ftdi.mod.
24382 (usbserial_ftdi_mod_SOURCES): New variable.
24383 (usbserial_ftdi_mod_CFLAGS): Likewise.
24384 (usbserial_ftdi_mod_LDFLAGS): Likewise.
24385 (pkglib_MODULES): Add serial.mod.
24386 (serial_mod_SOURCES): New variable.
24387 (serial_mod_CFLAGS): Likewise.
24388 (serial_mod_LDFLAGS): Likewise.
24389 * conf/i386-pc.rmk: Likewise.
24390 * conf/mips-yeeloong.rmk: Likewise.
24391 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
24392 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
24393 * disk/usbms.c (first_available_slot): New variable.
24394 (grub_usbms_attach): Don't reuse free slots due to potential cache
24395 problems.
24396 * include/grub/serial.h: Moved to ..
24397 * include/grub/ns8250.h: ...this.
24398 * include/grub/serial.h: New file.
24399 * include/grub/term.h (grub_term_poll_usb): New variable.
24400 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
24401 readkey. All users updated.
24402 (grub_terminfo_output_state): Pass term to put.
24403 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
24404 (grub_usb_controller_dev): Add timeout and actual arguments to
24405 transfer. All users updated.
24406 (grub_usb_interface): New field detach_data.
24407 (grub_usb_device): New fields children and nports.
24408 (grub_usb_ep_type_t): New type.
24409 (grub_usb_get_ep_type): New function.
24410 (grub_usb_bulk_read_extended): Likewise.
24411 * include/grub/usbdesc.h (grub_usb_desc): New type.
24412 * include/grub/usbserial.h: New file.
24413 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
24414 * kern/term.c (grub_term_poll_usb): New variable.
24415 (grub_getkey): Call grub_term_poll_usb if set.
24416 (grub_checkkey): Likewise.
24417 (grub_getkeystatus): Likewise.
24418 * term/serial.c: Moved controller-specific parts to ...
24419 * term/ns8250.c: ... here.
24420 * term/serial.c: Mostly rewritten.
24421 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
24422 according to spec.
24423
21a313de
RM
244242010-08-20 Robert Millan <rmh@gnu.org>
24425
24426 Make kFreeBSD code more generic to support ext2fs as root, ufs as
24427 a separate module and maybe other interesting combinations.
24428
24429 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
24430 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
24431 (kfreebsd_entry): Add generic filesystem module load routine.
24432 Map GRUB `ext2' to kFreeBSD `ext2fs'.
24433
63c734a6
CW
244342010-08-20 Colin Watson <cjwatson@ubuntu.com>
24435
24436 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
24437 "numcenter" (I misunderstood the purpose of this entry).
24438 * docs/grub.texi (sendkey): Likewise.
24439
c4d16542
CW
244402010-08-20 Colin Watson <cjwatson@ubuntu.com>
24441
24442 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
24443 status flag options; simply omitting the option is equivalent and
24444 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
24445 (keysym_table): Rename "num5numlock" to "numlock".
24446 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
24447 can uniformly say that only the last of multiple `sendkey'
24448 invocations has any effect.
24449 * docs/grub.texi (sendkey): New section.
24450
93541d66
CW
244512010-08-19 Colin Watson <cjwatson@ubuntu.com>
24452
24453 * commands/i386/pc/sendkey.c (options): Fix three typos.
24454
b4ece5e1
VS
244552010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
24456
24457 Implement sendkey support.
24458
24459 * commands/i386/pc/sendkey.c: New file.
24460 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
24461 (sendkey_mod_SOURCES): New variable.
24462 (sendkey_mod_CFLAGS): Likewise.
24463 (sendkey_mod_LDFLAGS): Likewise.
24464
51f1f5af
CW
244652010-08-18 Colin Watson <cjwatson@ubuntu.com>
24466
24467 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
24468 fix warnings from Autoconf.
24469
9da94e05
CW
244702010-08-18 Colin Watson <cjwatson@ubuntu.com>
24471
24472 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
24473 to avoid false positives with some assemblers that output things
24474 like "someprefix_func" as part of their output.
24475
729a0f2e
RM
244762010-08-15 Robert Millan <rmh@gnu.org>
24477
24478 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
24479 errors.
24480 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
24481 grub_get_libzfs_handle() errors.
24482
f3710e08
RM
244832010-08-14 Robert Millan <rmh@gnu.org>
24484
24485 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
24486 filesystem is not ZFS.
24487
7a3c13de
BC
244882010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
24489
24490 Fix for misspelled color names defaulting to black/black (bug
24491 reported by Doug Nazar)
24492
24493 * include/grub/normal.h (grub_parse_color_name_pair): Add return
24494 status to prototype.
24495 * normal/color.c (grub_parse_color_name_pair): Return failure
24496 status.
24497 (grub_env_write_color_normal): Ignore bad color names.
24498 (grub_env_write_color_highlight): Likewise.
24499 * normal/main.c (GRUB_MOD_INIT): Set default color names.
24500
ab8ba50d
BC
245012010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
24502
24503 "shift" command support to GRUB script.
24504
24505 * include/grub/script_sh.h (grub_script_shift): New prototype.
24506 * script/execute.c (grub_script_shift): New function.
24507 * script/main.c (grub_script_init): Register shift command.
24508 (grub_script_fini): Unregister shift command.
24509 * util/grub-script-check.c (grub_script_cmd_shift): New function.
24510
24511 * tests/grub_script_shift.in: New testcase.
24512 * conf/tests.rmk: Rules for new testcase.
24513
4d61999e
BC
245142010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
24515
24516 "continue" command support to GRUB script.
24517
24518 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
24519 (grub_script_break): Continue support.
24520 * script/main.c (grub_script_init): Register continue command.
24521 (grub_script_fini): Unregister continue command.
24522
24523 * tests/grub_script_continue.in: New testcase.
24524 * conf/tests.rmk: Rules for new testcase.
24525
4df51e00
BC
245262010-08-12 BVK Chaitanya <bvk@dbook>
24527
24528 "break" command support to GRUB script.
24529
24530 * conf/common.rmk: Rule updates to grub-script-check.
24531 * include/grub/misc.h (grub_min): New function.
24532 * include/grub/script_sh.h (grub_script_init): New prototype.
24533 (grub_script_fini): New prototype.
24534 (grub_script_break): New prototype.
24535 * script/main.c (grub_script_init): New function.
24536 (grub_script_fini): New function.
24537 * script/execute.c (grub_script_break): New function.
24538 * normal/main.c: Calls to grub_script_{init,fini}.
24539 * util/grub-script-check.c (grub_script_break): New function.
24540
24541 * tests/grub_script_break.in: New testcase.
24542 * conf/tests.rmk: Rules for new test case.
24543
f12c8420
BC
245442010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
24545
24546 Function parameters support to GRUB script.
24547
24548 * script/yylex.l (VARIABLE): Regular expression update.
24549 * script/function.c (grub_script_function_call): Moved ...
24550 * script/execute.c (grub_script_function_call): ... to here.
24551 (grub_script_execute_arglist_to_argv): Removed.
24552 (grub_script_arglist_to_argv): New function.
24553 * script/argv.c: New file.
24554 (grub_script_argv_free): New function.
24555 (grub_script_argv_next): Likewise.
24556 (grub_script_argv_append): Likewise.
24557 (grub_script_argv_split_append): Likewise.
24558 * include/grub/script_sh.h (grub_script_argv): New struct.
24559 (grub_script_argv_free): New function.
24560 (grub_script_argv_next): Likewise.
24561 (grub_script_argv_append): Likewise.
24562 (grub_script_argv_split_append): Likewise.
24563
24564 * conf/common.rmk (normal.mod): New source script/argv.c.
24565
24566 * tests/grub_script_echo1.in: More tests.
24567 * tests/grub_script_vars1.in: Likewise.
24568 * tests/grub_script_functions.in: New test case.
24569 * conf/tests.rmk: Rules for new testcase.
24570
8022b748
BC
245712010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
24572
24573 Remove grub_script_cmdblock struct.
24574
24575 * include/grub/script_sh.h: Remove grub_script_cmdblock.
24576 * script/parser.y: Likewise.
24577 * script/execute.c: Rename cmdblock suffix to cmdlist.
24578 * script/script.c: Likewise.
24579 * util/grub-script-check.c: Likewise.
24580
79a6ba61
YB
245812010-08-11 Yves Blusseau <blusseau@zetam.org>
24582
24583 * .bzrignore: add grub-macho2img
24584
d04b9414
VS
245852010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
24586
24587 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
24588
f947ab49
VS
245892010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
24590
24591 Remove the dump of sm712 initialisation sequence.
24592
24593 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
24594 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
24595 (GRUB_VGA_IO_MISC_WRITE): Likewise.
24596 (GRUB_VGA_CR_*): Added many registers.
24597 (GRUB_VGA_SR_*): Likewise.
24598 (GRUB_VGA_GR_*): Likewise.
24599 (grub_vga_write_arx): New function.
24600 (grub_video_hw_config): New struct.
24601 (grub_vga_set_geometry): New function.
24602 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
24603 GRUB_PCI_CLASS_SUBCLASS_VGA.
24604 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
24605 * video/sm712.c (grub_sm712_write_reg): New function
24606 (grub_sm712_read_reg): Likewise.
24607 (grub_sm712_sr_write): Likewise.
24608 (grub_sm712_gr_write): Likewise.
24609 (grub_sm712_cr_write): Likewise.
24610 (grub_sm712_write_arx): Likewise.
24611 (grub_sm712_cr_shadow_write): Likewise.
24612 (grub_sm712_write_dda_lookup): Likewise.
24613 (grub_video_sm712_setup): Initialise the video rather then
24614 blindly replay the dump.
24615 (main) [TEST]: Add a routine to be able to compile as standalone for
24616 tests.
24617 * video/sm712_init.c (sm712_init): Removed.
24618 (sm712_sr_seq1): New array.
24619 (sm712_sr_seq2): Likewise.
24620
f0206638
VS
246212010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
24622
24623 * include/grub/vga.h: Add missing grub/pci.h include.
24624
2764da3b
YB
246252010-08-10 Yves Blusseau <blusseau@zetam.org>
24626
24627 * util/grub-macho2img.c (main): fix typo
24628
cf0c775e
VS
246292010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
24630
24631 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
24632 (grub_vga_gr_read): Likewise.
24633 (grub_vga_cr_write): Likewise.
24634 (grub_vga_cr_read): Likewise.
24635 (grub_vga_sr_write): Likewise.
24636 (grub_vga_sr_read): Likewise.
24637 (grub_vga_palette_read): Likewise.
24638 (grub_vga_palette_write): Likewise.
24639 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
24640 (grub_sm712_sr_read): New function.
24641 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
24642 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
24643
07f360e9
RM
246442010-08-09 Robert Millan <rmh@gnu.org>
24645
24646 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
24647 out unused variables on non-ZFS build.
24648
346c2072
RM
246492010-08-08 Robert Millan <rmh@gnu.org>
24650
24651 Fix path generation for sub-filesystems in ZFS.
24652
24653 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
24654 missing slash.
24655
71175420
RM
246562010-08-08 Robert Millan <rmh@gnu.org>
24657
24658 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
24659
0d8286f3
RM
246602010-08-08 Robert Millan <rmh@gnu.org>
24661
24662 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
24663 exist, issue a proper error message (rely on `ls' for translated
24664 strings).
24665
55dd2924
RM
246662010-08-08 Robert Millan <rmh@gnu.org>
24667
24668 Fix grub-probe invocation.
24669
24670 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
24671
d3dd9e80
RM
246722010-08-04 Robert Millan <rmh@gnu.org>
24673
24674 * configure.ac: Remove checks for getfsstat() and getmntany().
24675 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
24676 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
24677 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
24678 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
24679 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
24680 function.
24681 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
24682 via find_mount_point_from_dir() and getfsstat() / getmntany().
24683
0de22aa9
RM
246842010-08-04 Robert Millan <rmh@gnu.org>
24685
24686 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
24687 (grub_find_zpool_from_mount_point): Merge into ...
24688 (grub_find_zpool_from_dir): ... this.
24689 * kern/emu/misc.c: Likewise.
24690
24691 * kern/emu/misc.c
24692 (grub_make_system_path_relative_to_its_root): Replace
24693 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
24694 with grub_find_zpool_from_dir().
24695 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
24696
62858144
RM
246972010-08-04 Robert Millan <rmh@gnu.org>
24698
24699 Support OpenSolaris in ZFS device resolution.
24700
24701 * configure.ac: Check for getmntany().
24702 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
24703 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
24704 support.
24705
9dd6fd50
RM
247062010-08-03 Robert Millan <rmh@gnu.org>
24707
24708 Fix grub-emu build.
24709
24710 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
24711 * include/grub/emu/misc.h: ... here.
24712
24713 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
24714 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
24715
24716 * util/misc.c: Remove `<grub/util/libzfs.h>'.
24717 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
24718 (grub_get_libzfs_handle): Move to ...
24719 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
24720 (grub_get_libzfs_handle): ... here.
24721
c9f7ff97
BC
247222010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
24723
24724 * script/execute.c (grub_script_execute_cmdline): Check for NULL
24725 as command name case.
24726
a870a783
CW
247272010-08-02 Colin Watson <cjwatson@ubuntu.com>
24728
24729 * disk/raid.c (insert_array): Select unique numbers for named arrays
24730 as well, for use as keys in the disk cache.
24731
c7db243b
RM
247322010-08-01 Robert Millan <rmh@gnu.org>
24733
24734 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
24735 kFreeBSD device name, except on ZFS where the filesystem label is
24736 used.
24737 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
24738 `/boot/zfs/zpool.cache'.
24739 Set mountfrom kernel variable using ${kfreebsd_device}.
24740
f7abdefb
RM
247412010-08-01 Robert Millan <rmh@gnu.org>
24742
24743 Make it even harder to use uninitialized `libzfs_handle' (and
24744 make the interface a bit simpler).
24745
24746 * include/grub/util/misc.h (grub_util_init_libzfs)
24747 (libzfs_handle): Remove.
24748 (grub_get_libzfs_handle): New prototype.
24749
24750 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
24751 attribute.
24752 (grub_util_init_libzfs): Remove.
24753 (grub_get_libzfs_handle): New function.
24754
24755 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
24756 grub_get_libzfs_handle() to obtain a libzfs handle instead of
24757 accessing `libzfs_handle' directly.
24758
c882acc0
RM
247592010-08-01 Robert Millan <rmh@gnu.org>
24760
24761 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
24762 (grub_find_zpool_from_mount_point): New function prototypes.
24763
24764 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
24765 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
24766
24767 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
24768 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
24769 `static' attribute.
24770
24771 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
24772 finding zpool from mount point into ...
24773 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
24774
24775 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
24776 requested path is part of a ZFS pool, use
24777 grub_find_zpool_from_mount_point() to detect its filesystem name,
24778 and generate a path with `/fsname@path' syntax.
24779
8bfe31d8
CW
247802010-08-01 Colin Watson <cjwatson@ubuntu.com>
24781
24782 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
24783 (void) rather than () so that this is a proper prototype.
24784
553df63d
VS
247852010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
24786
24787 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
24788
8687cf07
VS
247892010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
24790
24791 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
24792 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
24793
ea9be8ea
CW
247942010-08-01 Colin Watson <cjwatson@ubuntu.com>
24795
24796 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
24797
6eea041a
CW
247982010-08-01 Colin Watson <cjwatson@ubuntu.com>
24799
24800 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
24801
2cfb45df
CW
248022010-08-01 Colin Watson <cjwatson@ubuntu.com>
24803
24804 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
24805 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
24806 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
24807 disable gfxpayload.
24808 (Shell-like scripting): Add real content.
24809 (Serial terminal): Suggest `terminal_input serial; terminal_output
24810 serial' rather than putting the two commands on separate lines,
24811 since console input will be inoperative after the first command.
24812 (menuentry): Document --class, --users, and --hotkey options.
24813 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
24814 Vladimir Serbinenko).
24815
7decd202
VS
248162010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
248172010-08-01 Colin Watson <cjwatson@ubuntu.com>
24818
24819 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
24820
c882acc0
RM
248212010-08-01 Robert Millan <rmh@gnu.org>
24822
24823 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
24824 (grub_find_zpool_from_mount_point): New function prototypes.
24825
24826 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
24827 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
24828
24829 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
24830 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
24831 `static' attribute.
24832
24833 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
24834 finding zpool from mount point into ...
24835 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
24836
24837 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
24838 requested path is part of a ZFS pool, use
24839 grub_find_zpool_from_mount_point() to detect its filesystem name,
24840 and generate a path with `/fsname@path' syntax.
24841
deb0caa3
RM
248422010-08-01 Robert Millan <rmh@gnu.org>
24843
24844 Prevent accidental use of uninitialized libzfs_handle.
24845
24846 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
24847 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
24848 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
24849
ce04ef47
CW
248502010-08-01 Colin Watson <cjwatson@ubuntu.com>
24851
24852 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
24853 util/grub.d/10_linux.in). Fixes Debian bug #591093.
24854
ebf53056
RM
248552010-08-01 Robert Millan <rmh@gnu.org>
24856
24857 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
8687cf07 24858
3710bb6b
RM
248592010-07-31 Robert Millan <rmh@gnu.org>
24860
24861 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
24862
8072efeb
RM
248632010-07-31 Robert Millan <rmh@gnu.org>
24864
24865 * kern/emu/misc.c: Add missing license header.
24866
3169f4c7
RM
248672010-07-31 Robert Millan <rmh@gnu.org>
24868
24869 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
24870
24871 * include/grub/util/libnvpair.h: Include `<config.h>'.
24872 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
24873 declaring libnvpair prototypes ourselves.
24874 * include/grub/util/libzfs.h: Include `<config.h>'.
24875 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
24876 declaring libzfs prototypes ourselves.
24877
24878 (libzfs_handle): Moved to ...
24879 * include/grub/util/misc.h (libzfs_handle): ... here.
24880 Include `<grub/util/libzfs.h>'.
24881
c9a00aee
RM
248822010-07-30 Robert Millan <rmh@gnu.org>
24883
24884 * include/grub/emu/misc.h: Add missing license header.
24885
a184f9c8
RM
248862010-07-30 Robert Millan <rmh@gnu.org>
24887
24888 Enable `grub-probe -t device' resolution on ZFS.
24889
24890 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
24891 * include/grub/util/libnvpair.h: New file.
24892 * include/grub/util/libzfs.h: New file.
24893
24894 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
24895 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
24896 `<grub/util/libnvpair.h>'.
24897 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
24898
24899 (find_mount_point_from_dir): New static function.
24900 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
24901 function.
24902 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
24903 find_root_device_from_libzfs() before ressorting to find_root_device().
24904
24905 * include/grub/util/misc.h (grub_util_init_libzfs): New function
24906 prototype.
24907 * util/misc.c: Include `<grub/util/libzfs.h>'.
24908 (grub_util_init_libzfs): New function.
24909 [HAVE_LIBZFS] (libzfs_handle): New global variable.
24910 [HAVE_LIBZFS] (fini_libzfs): New static function.
24911 (grub_util_init_libzfs): New function.
24912 * util/grub-probe.c (main): Call grub_util_init_libzfs().
24913
f7790cdd
RM
249142010-07-30 Robert Millan <rmh@gnu.org>
24915
24916 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
24917 (xmalloc, xrealloc, xstrdup, xasprintf): Add
24918 `warn_unused_result' attribute.
24919 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
24920 (grub_xasprintf, grub_xvasprintf): Likewise.
24921 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
24922
0806b63c
RM
249232010-07-29 Robert Millan <rmh@gnu.org>
24924
24925 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
24926 (probe): Handle `PRINT_FS_LABEL'.
24927 (main): Handle `-t fs_label'.
24928
9f841f5c
RM
249292010-07-29 Robert Millan <rmh@gnu.org>
24930
24931 * configure.ac: Remove grub-mkisofs checks.
24932
46371121
VS
249332010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
24934
24935 * util/ieee1275/grub-install.in: Don't use empty grub_device.
24936 Reported by: Lennart Sorensen.
24937
249382010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
24939
24940 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
24941 prior to terminal_input/terminal_output separation. It's been over 1.5
24942 years and those versions weren't widely deployed.
24943
a9600892
CW
249442010-07-22 Colin Watson <cjwatson@ubuntu.com>
24945
24946 * disk/raid.c (insert_array): Don't count named arrays when looking
24947 for unused array numbers.
697e053c 24948 Reported and tested by: Michael Guntsche.
a9600892 24949
c03507df
CW
249502010-07-20 Colin Watson <cjwatson@ubuntu.com>
24951
24952 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
24953 implementation of this so that grub-emu links again, with a note
24954 that this should support hotplugging in the future.
24955
b26f1c11
CW
249562010-07-20 Colin Watson <cjwatson@ubuntu.com>
24957
24958 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
24959
efc9d7f1
CW
249602010-07-20 Colin Watson <cjwatson@ubuntu.com>
24961
24962 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
24963 handle on failure.
24964 (grub_loopback_close): Remove empty function.
24965 (grub_loopback_dev): Remove close method.
24966
dd8ff5c9
CW
249672010-07-20 Colin Watson <cjwatson@ubuntu.com>
24968
24969 Disable EFI cursor when the EFI console becomes inactive.
24970
24971 * term/efi/console.c (grub_efi_console_init): New function.
24972 (grub_efi_console_fini): New function.
24973 (grub_console_term_output): Register init and fini methods.
24974
5e3bec67
VS
249752010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
24976
24977 * tests/util/grub-shell-tester.in: Remove bashism and declare as
24978 sh script.
24979
afaec079
VS
249802010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
24981
24982 * disk/loopback.c (grub_loopback): Replace filename with file.
24983 (delete_loopback): Handle new semantics.
24984 (grub_cmd_loopback): Likewise.
24985 (grub_loopback_iterate): Likewise.
24986 (grub_loopback_close): Likewise.
24987
a6a11f3c
VS
249882010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
24989
24990 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
24991 with -p "".
24992 Reported by: Tito Keitel.
24993
64a638b0
VS
249942010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
24995
24996 * docs/grub.texi (Naming convention): Document new naming convention.
24997
ab8ba957
VS
249982010-07-20 Vadim Solomin <vadic052@gmail.com>
249992010-07-20 Colin Watson <cjwatson@ubuntu.com>
25000
25001 Generate device.map in something closer to the old ordering.
25002
25003 * util/deviceiter.c (struct device): New declaration.
25004 (compare_file_names): Rename to ...
25005 (compare_devices): ... this. Sort by kernel name in preference to
25006 the stable by-id name, but keep the latter as a fallback comparison.
25007 Update header comment.
25008 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
25009 of `struct device' rather than of plain file names.
25010
a29d6a4b
TF
250112010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
25012
25013 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
25014 on i386.
25015
39d824e8
VS
250162010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
25017
25018 * commands/acpi.c (setup_common_tables): Use sizeof instead of
25019 hardcoding size.
25020 (setv1table): Likewise.
25021
f058276b
FZ
250222010-07-20 Colin Watson <cjwatson@ubuntu.com>
25023
25024 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
25025 removing the homehost if present.
25026 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
25027 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
25028 removing the homehost if present.
25029 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
25030 if possible.
25031 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
25032
25033 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
25034 parameter. Set its pointer target to 0.
25035 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
25036 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
25037 `data_offset' value from the superblock for 1.x metadata.
25038 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
25039 data on the device.
25040 (insert_array): Record the start sector of data on the device.
25041 (grub_raid_register): Pass start_sector parameters to
25042 grub_raid_list->detect and insert_array.
25043 * include/grub/raid.h (struct grub_raid_array): Add start_sector
25044 member.
25045 (struct grub_raid): Add start_sector parameter to `detect'.
25046
25047 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
25048 __attribute__ ((packed)), leaving a comment.
25049 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
25050 (grub_mdraid_detect_09): ... here and ...
25051 (grub_mdraid_detect_1x): ... here.
25052
250532010-07-20 Peter Henn <peter.henn@web.de>
25054
25055 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
25056 chunk size and disk size, which are already given as sector counts
25057 as distinct from the 0.90 units. Fetch the correct device number
25058 from the role table instead of using the table index.
25059
250602010-07-20 Felix Zielcke <fzielcke@z-51.de>
25061
25062 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
25063 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
25064 (WriteMostly1): New macro.
25065 Set array->name to NULL for metadata format 0.90. Add support for
25066 metadata 1.x. Fix some comments.
25067 * disk/raid.c (): Add support for name based RAID arrays. Fix a
25068 few comments.
25069 * util/getroot.c (grub_util_get_grub_dev): Add support for
25070 /dev/md/name style devices.
25071
4b761da9
CW
250722010-07-20 Colin Watson <cjwatson@ubuntu.com>
25073
25074 * .bzrignore: Ignore 20_linux_xen.
25075
5771289a
CW
250762010-07-17 Colin Watson <cjwatson@ubuntu.com>
25077
25078 * util/import_unicode.py: Remove unnecessary imports.
25079
5dab68df
AN
250802010-07-17 Aleš Nesrsta <starous@volny.cz>
25081
25082 Hotplugging and USB hub support.
25083
25084 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
25085 (grub_ohci): Likewise.
25086 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
25087 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
25088 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
25089 (GRUB_OHCI_CTRL_EDS): Likewise.
25090 (GRUB_OHCI_BULK_EDS): Likewise.
25091 (GRUB_OHCI_TDS): Likewise.
25092 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
25093 (grub_ohci_ed_phys2virt): New function.
25094 (grub_ohci_virt_to_phys): Likewise.
25095 (grub_ohci_td_phys2virt): Likewise.
25096 (grub_ohci_td_virt2phys): Likewise.
25097 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
25098 attachment.
25099 (grub_ohci_find_ed): New function.
25100 (grub_ohci_alloc_td): Likewise.
25101 (grub_ohci_free_td): Likewise.
25102 (grub_ohci_free_tds): Likewise.
25103 (grub_ohci_transfer): Use previously allocated memory.
25104 (grub_ohci_portstatus): Reset status changed bit.
25105 (grub_ohci_detect_dev): Supply status changed.
25106 (grub_ohci_fini_hw): Free memory.
25107 (grub_ohci_restore_hw): Reallocate memory.
25108 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
25109 Reset status change.
25110 (grub_uhci_detect_dev): Supply status_change.
25111 * bus/usb/usb.c (attach_hooks): New var.
25112 (grub_usb_device_attach): New function.
25113 (grub_usb_register_attach_hook_class): Likewise.
25114 (grub_usb_unregister_attach_hook_class): Likewise.
25115 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
25116 (grub_usb_add_hub): Reset connection changed bit.
25117 (attach_root_port): New function.
25118 (grub_usb_root_hub): Likewise.
25119 (poll_nonroot_hub): Likewise.
25120 (grub_usb_poll_devices): Likewise.
25121 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
25122 * disk/usbms.c (grub_usbms_open): Use device hooks.
25123 (grub_usbms_iterate) :Poll devices.
25124 (grub_usbms_finddevs): Split into ...
25125 (grub_usbms_attach): ... this ...
25126 (grub_usbms_attach): ... and this.
25127 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
25128 in detect_dev.
25129 (grub_usb_interface): New fields attached and detach_hook.
25130 (grub_usb_attach_hook_class): New type.
25131 (grub_usb_attach_desc): New struct.
25132 (grub_usb_register_attach_hook_class): New function.
25133 (grub_usb_unregister_attach_hook_class): Likewise.
25134 (grub_usb_poll_devices): Likewise.
25135 (grub_usb_device_attach): Likewise.
25136 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
25137 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
25138
3222efaf
VS
251392010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
25140
25141 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
25142 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
25143 delta determination style. Works with most NetBSD partitions too.
25144
139b714a
VS
251452010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
25146
25147 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
25148 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
25149
986aad56
VS
251502010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
25151
25152 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
25153
99be513c
AB
251542010-07-14 Anton Blanchard <anton@samba.org>
25155
25156 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
25157 ET_DYN files.
25158
18075f62
GS
251592010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
25160
25161 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
25162
8d9a5b15
GS
251632010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
25164
25165 * kern/partition.c (grub_partition_check_containment): New function to
25166 check that a partition is physically contained in a parent. Since
25167 offsets are relative (and non-negative), this reduces to checking that
25168 the partition ends before its parent.
25169 (grub_partition_map_probe): Discard out-of-range sub-partitions.
25170 (grub_partition_iterate): Likewise.
25171 * include/grub/partition.h (grub_partition_map): Slightly more detailed
25172 comments.
25173 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
25174 partitions that start before their parent, and add debug printfs.
25175
19563c25
CW
251762010-07-13 Colin Watson <cjwatson@ubuntu.com>
25177
25178 * Makefile.in (.SUFFIX): Spell correctly, as ...
25179 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
25180 bare module name without `.mod', e.g. `test') tried to invoke a
25181 Modula-2 compiler.
25182
1a1f1e67
CW
251832010-07-13 Colin Watson <cjwatson@ubuntu.com>
25184
25185 * README: Point to the Info manual.
25186
811b0dca
JS
251872010-07-13 Jiro SEKIBA <jir@unicus.jp>
25188
25189 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
25190 2nd superblock position from partition size.
25191
e4f4eafc
CW
251922010-07-10 Colin Watson <cjwatson@ubuntu.com>
25193
25194 * Makefile.in (MAINTAINER_CLEANFILES): Remove
25195 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
25196 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
25197 outputs.
25198
4274c30f
VS
251992010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
25200
25201 Restructure SCSI .id handling.
25202 Reported and tested by: Aleš Nesrsta.
25203
25204 * disk/ata.c (grub_atapi_close): Removed. All users updated.
25205 (grub_atapi_dev): Changed .name to "ata". New field .id.
25206 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
25207 (grub_usbms_dev): New field .id.
25208 * disk/scsi.c (grub_scsi_iterate): Generate name.
25209 (grub_scsi_open): Parse name.
25210 * include/grub/scsi.h (grub_make_scsi_id): New function.
25211 (grub_scsi_dev): Change iterate and open to number instead of naming
25212 busses. All users updated.
25213 (grub_scsi): Remove name. Add .bus.
25214
5bc24388
VS
252152010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
25216
25217 * commands/help.c (grub_cmd_help): Fix a typo.
25218
249975ba
VS
252192010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
25220
25221 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
25222 Reported and tested by: Colin Watson.
25223
3eaac1a1
VS
252242010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
25225
25226 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
25227 in this context.
25228
becce1b1
VS
252292010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
25230
25231 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
25232
f7bf0918
CW
252332010-07-07 Colin Watson <cjwatson@ubuntu.com>
25234
25235 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
25236 indentation.
25237
0b0f9620
CW
252382010-07-06 Colin Watson <cjwatson@ubuntu.com>
25239
25240 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
25241 and disk/raid6_recover.c.
25242 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
25243 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
25244
1e545469
CW
252452010-07-06 Colin Watson <cjwatson@ubuntu.com>
25246
25247 * term/gfxterm.c (repaint_schedulded): Rename to ...
25248 (repaint_scheduled): ... this. Update all callers.
25249 (repaint_was_schedulded): Rename to ...
25250 (repaint_was_scheduled): ... this. Update all callers.
25251
5357687a
CW
252522010-07-06 Colin Watson <cjwatson@ubuntu.com>
25253
25254 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
25255 which we expect to be handled by upper layers.
25256
29d7e783
BC
252572010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
25258
25259 * bus/usb/usbhub.c: #include time.h header.
25260
37582066
CW
252612010-07-06 Colin Watson <cjwatson@ubuntu.com>
25262
25263 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
25264 entry_name also for entries without stat blocks (e.g. ".."); fixes
25265 corruption of the first entry in a directory.
25266
c8c06953
CW
252672010-07-06 Colin Watson <cjwatson@ubuntu.com>
25268
25269 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
25270 after setting gfxterm as the active terminal. GRUB_BACKGROUND
25271 doesn't work otherwise.
25272
e75056f1
CW
252732010-07-05 Colin Watson <cjwatson@ubuntu.com>
25274
25275 * docs/grub.texi (Features): Update list of supported file systems.
25276 (GNU/Linux): Update for GRUB 2.
25277 (Serial terminal): Remove mention of --disable-serial, which was a
25278 GRUB Legacy configure option. Update instructions to use
25279 `terminal_input' and `terminal_output' rather than `terminal'.
25280 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
25281 configuration' and `Installing GRUB using grub-install'.
25282 (Menu entry editor): Update for GRUB 2.
25283 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
25284 Document new -a, -u, and -v options.
25285 (initrd): New section.
25286 (initrd16): New section.
25287 (linux): New section.
25288 (linux16): New section.
25289 (search): The `var' argument to `--set' is optional.
25290 (GRUB only offers a rescue shell): Go into a little more detail on
25291 drive ordering.
25292
5cf69151
CW
252932010-07-05 Colin Watson <cjwatson@ubuntu.com>
25294
25295 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
25296
e3f90044
CW
252972010-07-05 Colin Watson <cjwatson@ubuntu.com>
25298
25299 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
25300 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
25301
38d8f4f3
CW
253022010-07-05 Colin Watson <cjwatson@ubuntu.com>
25303
25304 * util/i386/pc/grub-setup.c (setup): Rename prefix to
25305 install_prefix, in line with install_dos_part and install_bsd_part.
25306 Add new prefix variable, which is copied to install_prefix after
25307 comparing core.img in memory with the one read from disk in the
25308 no-embedding case, and use that rather than overwriting
25309 install_prefix immediately when installing to a partition.
25310 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
25311 Bicakci.
25312
57ebd41e
GS
253132010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
25314
25315 * configure.ac: Avoid == in test command, it's not portable.
25316 * util/grub.d/30_os-prober.in: Likewise.
25317
cb7f64b2
CW
253182010-07-04 Colin Watson <cjwatson@ubuntu.com>
25319
25320 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
25321
6b654bb0
GS
253222010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
25323
25324 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
25325 multiple (top-level) partmaps.
25326
72a2026d
VS
253272010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
25328
25329 * util/i386/efi/grub-install.in: Don't use empty grub_device.
fcda2a1f 25330 Reported by: Tino Keitel.
72a2026d 25331
df3eb88f
VS
253322010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
25333
25334 Bidi and diacritics support.
25335
25336 * Makefile.in (widthspec.bin): New target.
25337 (widthspec.h): Likewise.
25338 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
25339 * autogen.sh: Generate unidata.c.
25340 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
25341 * commands/ls.c (grub_ls_list_devices): Likewise.
25342 (grub_ls_list_files): Likewise.
25343 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
25344 (grub_mini_cmd_lsmod): Likewise.
25345 * commands/read.c: Likewise.
25346 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
25347 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
25348 * lib/arg.c (grub_arg_show_help): Likewise.
25349 * lib/crypto.c (grub_password_get): Likewise.
25350 * normal/auth.c (grub_username_get): Likewise.
25351 * normal/misc.c (grub_normal_print_device_info): Likewise.
25352 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
25353 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
25354 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
25355 (normal/charset.c_DEPENDENCIES): New variable.
25356 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
25357 (pkglib_MODULES): Remove charset.mod.
25358 (charset_mod_SOURCES): Removed.
25359 (charset_mod_CFLAGS): Likewise.
25360 (charset_mod_LDFLAGS): Likewise.
25361 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
25362 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
25363 and term/tparm.c.
25364 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
25365 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
25366 (kernel_img_HEADERS): Add terminfo.h.
25367 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
25368 Fill ->font. Reverse ascii bitmaps.
25369 (grub_font_get_xheight): New function.
25370 * font/font.c (grub_font_get_string_width): Moved from here ...
25371 * gfxmenu/font.c (grub_font_get_string_width): ... here.
25372 * font/font.c (grub_font_draw_string): Moved from here ...
25373 * gfxmenu/font.c (grub_font_draw_string): ... here.
25374 * font/font.c (grub_font_dup_glyph): New function.
25375 (grub_font_blit_glyph): Likewise.
25376 (grub_font_blit_glyph_mirror): Likewise.
25377 (blit_comb): Likewise.
25378 (grub_font_construct_dry_run): Likewise.
25379 (grub_font_get_constructed_device_width): Likewise.
25380 (grub_font_construct_glyph): Likewise.
25381 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
25382 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
25383 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
25384 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
25385 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
25386 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
25387 (grub_font_get_xheight): New proto.
25388 (grub_font_get_constructed_device_width): Likewise.
25389 (grub_font_construct_glyph): Likewise.
25390 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
25391 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
25392 * include/grub/font.h (grub_font_draw_string): Moved from here ...
25393 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
25394 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
25395 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
25396 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
25397 (grub_console_getcharwidth): Likewise.
25398 * include/grub/misc.h (grub_xputs): New proto.
25399 (grub_puts): Inlined.
25400 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
25401 (grub_normal_get_line_counter): Removed.
25402 (grub_install_newline_hook): Likewise.
25403 (grub_normal_get_char_counter): New proto.
25404 (grub_normal_reset_more): Likewise.
25405 (grub_xputs_normal): Likewise.
25406 * include/grub/powerpc/ieee1275/console.h: Removed.
25407 * include/grub/sparc64/ieee1275/console.h: Likewise.
25408 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
25409 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
25410 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
25411 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
25412 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
25413 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
25414 (grub_term_input): Pass reference to self. All users updated.
25415 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
25416 Pass reference to self. New fields normal_color, highlight_color and
25417 data. All users updated.
25418 (grub_putchar): Removed.
25419 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
25420 (grub_unicode_estimate_width): New function.
25421 (grub_term_getcharwidth): Add defaults.
25422 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
25423 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
25424 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
25425 (grub_cls): Remove EXPORT_FUNC.
25426 (grub_setcolorstate): Inline.
25427 (grub_newline_hook): Removed.
25428 * include/grub/terminfo.h: Rewritten. All users updated.
25429 * include/grub/unicode.h: New file.
25430 * include/grub/video.h (grub_video_signed_rect): New type.
25431 * kern/emu/console.c (grub_console_highlight_color): Removed.
25432 (grub_console_normal_color): Likewise.
25433 (grub_console_standard_color): Made static.
25434 (grub_ncurses_putchar): Remove mapping.
25435 (grub_ncurses_getcharwidth): Removed.
25436 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
25437 (grub_ncurses_setcolor): Removed.
25438 (grub_ncurses_getcolor): Likewise.
25439 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
25440 (grub_console_putchar): ... this.
25441 (grub_console_putchar): Handle argument difference.
25442 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
25443 console_init_early and console_init_lately.
25444 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
25445 * kern/misc.c (grub_puts): Removed.
25446 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
25447 (grub_vsnprintf_real): Remove str = NULL support.
25448 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
25449 * normal/charset.c (grub_utf8_to_ucs4): ... here.
25450 * kern/term.c (grub_putcode): Renamed to ...
25451 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
25452 (grub_putchar): Removed.
25453 (grub_xputs_dumb): New function.
25454 (grub_xputs): New variable.
25455 * lib/charset.c: Move from here ...
25456 * normal/charset.c: ... to here.
25457 (grub_ucs4_to_utf8): New function.
25458 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
25459 (join_types): New variable.
25460 (unpack_join): New function.
25461 (bidi_types): New variable.
25462 (unpack_bidi): New function.
25463 (get_bidi_type): Likewise.
25464 (get_join_type): Likewise.
25465 (is_mirrored): Likewise.
25466 (grub_unicode_get_comb_type): Likewise.
25467 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
25468 (is_type_after): Likewise.
25469 (grub_unicode_aglomerate_comb): Likewise.
25470 (bidi_line_wrap): Likewise.
25471 (grub_bidi_line_logical_to_visual): Likewise.
25472 (grub_bidi_logical_to_visual): Likewise.
25473 (grub_unicode_mirror_code): Likewise.
25474 (grub_unicode_shape_code): Likewise.
25475 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
25476 Don't use grub_putchar.
25477 * normal/main.c (grub_normal_init_page): Use grub_putcode.
25478 (grub_normal_reader_init): Likewise.
25479 (grub_xputs_saved): New variable.
25480 (GRUB_MOD_INIT): Set grub_xputs.
25481 (GRUB_MOD_FINI): Restore grub_xputs.
25482 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
25483 (menu_init): Avoid printing gfxmenu error.
25484 (show_menu): Use grub_normal_get_char_counter.
25485 * normal/menu_entry.c (update_screen): Fix out-of-array.
25486 (complete): Avoid NULL dereferencing.
25487 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
25488 * normal/menu_text.c (print_spaces): Removed.
25489 (grub_print_ucs4): Likewise.
25490 (grub_print_message_indented): Use grub_print_ucs4.
25491 (print_message): Use grub_putcode.
25492 (print_entry): Hanlde diacritics.
25493 * normal/term.c (term_state): New type.
25494 (grub_more_lines): Removed.
25495 (term_states): New variable.
25496 (grub_normal_line_counter): Renamed to ..
25497 (grub_normal_char_counter): ...this. All users updated.
25498 (grub_normal_get_line_counter): Renamed to ...
25499 (grub_normal_get_char_counter): ... this.
25500 (grub_normal_reset_more): New function.
25501 (process_newline): Removed.
25502 (print_more): New function.
25503 (grub_install_newline_hook): Removed.
25504 (map_code): New function.
25505 (grub_puts_terminal): Use grub_print_ucs4.
25506 (putglyph): New function.
25507 (putcode_real): Likewise.
25508 (grub_putcode): Use putcode_real.
25509 (get_maxwidth): New function.
25510 (get_startwidth): Likewise.
25511 (print_ucs4_terminal): Likewise.
25512 (find_term_state): Likewise.
25513 (put_glyphs_terminal): Likewise.
25514 (print_backlog): Likewise.
25515 (print_ucs4_real): Likewise.
25516 (grub_print_ucs4): Likewise.
25517 (grub_xputs_normal): Likewise.
25518 * term/efi/console.c (grub_console_putchar): Output diacritics.
25519 (grub_console_getcharwidth): Removed.
25520 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
25521 * term/gfxterm.c (clear_char): Free chars.
25522 (scroll_up): Avoid leaking memory.
25523 (grub_gfxterm_putchar): Support diacritics.
25524 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
25525 * term/i386/pc/console.c (grub_console_term_output): Declare as
25526 GRUB_TERM_CODE_TYPE_VGA.
25527 * term/i386/pc/vga.c (grub_vga_term): Declare as
25528 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
25529 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
25530 GRUB_TERM_CODE_TYPE_VGA.
25531 * term/i386/vga_common.c (map_char): Removed.
25532 (grub_console_putchar): Likewise.
25533 (grub_console_getcharwidth): Likewise.
25534 * term/ieee1275/ofconsole.c: Simplify using terminfo.
25535 (colors): Reordered to match terminfo.
25536 (grub_ofconsole_normal_color): Removed.
25537 (grub_ofconsole_writeesc): Likewise.
25538 (grub_ofconsole_highlight_color): Likewise.
25539 (grub_ofconsole_getcharwidth): Likewise.
25540 (grub_ofconsole_setcolorstate): Likewise.
25541 (grub_ofconsole_setcolor): Likewise.
25542 (grub_ofconsole_getcolor): Likewise.
25543 (grub_ofconsole_readkey): Renamed to ...
25544 (readkey): ... this. Remove escape sequence handling. Return -1 on no
25545 key.
25546 (grub_ofconsole_checkkey): Removed.
25547 (grub_ofconsole_getkey): Likewise.
25548 (grub_ofconsole_getxy): Likewise.
25549 (grub_ofconsole_gotoxy): Likewise.
25550 (grub_ofconsole_cls): Likewise.
25551 (grub_ofconsole_refresh): Likewise.
25552 (grub_ofconsole_terminfo_input): New struct.
25553 (grub_ofconsole_terminfo_output): Likewise.
25554 (grub_ofconsole_term_input): Use terminfo.
25555 (grub_ofconsole_term_output): Likewise.
25556 (grub_console_init): Split into ...
25557 (grub_console_init_early): ...this and ...
25558 (grub_console_init_lately): ...this. Use terminfo.
25559 (grub_ofconsole_putchar): Renamed to ...
25560 (put): ... this. Remove mapping.
25561 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
25562 * term/serial.c: Simplify using terminfo.
25563 (xpos): Removed.
25564 (ypos): Likewise.
25565 (keep_track): Likewise.
25566 (registered): Likewise.
25567 (input_buf): Likewise.
25568 (npending): Likewise.
25569 (serial_translate_key_sequence): Likewise.
25570 (fill_input_buf): Likewise.
25571 (grub_serial_checkkey): Likewise.
25572 (grub_serial_getkey): Likewise.
25573 (grub_serial_getxy): Likewise.
25574 (grub_serial_gotoxy): Likewise.
25575 (grub_serial_putchar): Likewise.
25576 (grub_serial_cls): Likewise.
25577 (grub_serial_setcolorstate): Likewise.
25578 (grub_serial_setcursor): Likewise.
25579 (serial_hw_init): Use serial_hw_fetch.
25580 (grub_serial_terminfo_input): New variable.
25581 (grub_serial_terminfo_output): Likewise.
25582 (grub_serial_term_input): Use terminfo.
25583 (grub_serial_term_output): Likewise.
25584 * term/terminfo.c (putstr): Use put.
25585 (grub_terminfo_all_free): New function
25586 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
25587 (grub_terminfo_output_register): New function.
25588 (grub_terminfo_output_unregister): Likewise.
25589 (grub_terminfo_getxy): Likewise.
25590 (grub_terminfo_readkey): Likewise.
25591 (grub_terminfo_checkkey): Likewise.
25592 (grub_terminfo_getkey): Likewise.
25593 (grub_terminfo_input_init): Likewise.
25594 (print_terminfo): Likewise.
25595 (grub_cmd_terminfo): Handle encoding.
25596 (grub_terminfo_gotoxy): Track position.
25597 (grub_terminfo_cls): Likewise.
25598 (grub_terminfo_putchar): Likewise.
25599 (grub_terminfo_setcolorstate): Handle colors
25600 (grub_terminfo_cursor_on): This ...
25601 (grub_terminfo_cursor_off): ... and this merged into ...
25602 (grub_terminfo_setcursor): ... this.
25603 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
25604 * unicode/ArabicShaping.txt: New file (imported from Unicode).
25605 * unicode/BidiMirroring.txt: Likewise.
25606 * unicode/UnicodeData.txt: Likewise.
25607 * unicode/COPYING: Likewise.
25608 * util/grub-editenv.c (grub_putchar): Removed.
25609 (grub_xputs_real): New function.
25610 (grub_xputs): New variable.
25611 * util/grub-fstest.c (grub_putchar): Removed.
25612 (grub_xputs_real): New function.
25613 (grub_xputs): New variable.
25614 * util/grub-mkdevicemap.c (grub_putchar): Removed.
25615 (grub_xputs_real): New function.
25616 (grub_xputs): New variable.
25617 * util/grub-probe.c (grub_putchar): Removed.
25618 (grub_xputs_real): New function.
25619 (grub_xputs): New variable.
25620 * util/grub-script-check.c (grub_putchar): Removed.
25621 (grub_xputs_real): New function.
25622 (grub_xputs): New variable.
25623 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
25624 (grub_xputs_real): New function.
25625 (grub_xputs): New variable.
25626 * util/import_unicode.py: New file.
25627 * util/grub-mkfont.c (ft_errmsgs): New array.
25628 (grub_glyph_info): Make bitmap a pointer.
25629 (file_formats): New type WIDTH_SPEC.
25630 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
25631 (options): Add width-spec.
25632 (help): Likewise.
25633 (add_char): Renamed to ...
25634 (add_glyph): ... this.
25635 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
25636 (glyph_replace): New type.
25637 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
25638 (add_char): New function.
25639 (add_subst): Likewise.
25640 (process_cursive): Likewise.
25641 (add_font): Handle GSUB.
25642 (write_font_width_spec): New function.
25643 (main): Sort glyphs.
25644 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
25645 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
25646 * kern/term.c (grub_cls): Moved from here...
25647 * normal/term.c (grub_cls): ... here.
25648
50f0bcda
CW
256492010-07-02 Colin Watson <cjwatson@ubuntu.com>
25650
25651 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
25652 suitable for using within the format argument of printf when
25653 converting grub_size_t.
25654 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
25655 "x" to convert grub_size_t arguments.
25656
40372103
VS
256572010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
25658
25659 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
25660 too long captions.
25661 (list_get_minimal_size): Take selection box into account.
25662
942a10c7
VS
256632010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
25664
25665 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
25666 NULL font.
25667
2bdb2892
CW
256682010-07-02 Colin Watson <cjwatson@ubuntu.com>
25669
25670 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
25671 devices when iterating over /dev/disk/by-id; they will be handled
25672 later if appropriate, which they aren't always (e.g. LVM).
25673
e03ed6c1
CW
256742010-07-02 Colin Watson <cjwatson@ubuntu.com>
25675
25676 * include/grub/misc.h (grub_reboot): Declare as noreturn.
25677 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
25678 fails.
25679 (grub_halt): Likewise.
25680 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
25681 reset-all fails.
25682 (grub_halt): Don't return, even if all of shut-down, power-off, and
25683 poweroff fail.
25684
47695765
CW
256852010-07-02 Colin Watson <cjwatson@ubuntu.com>
25686
25687 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
25688 arguments, not three.
25689
507736c8
CW
256902010-07-02 Colin Watson <cjwatson@ubuntu.com>
25691
25692 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
25693 * util/grub.d/10_linux.in: Use it to check for LVM, so that
25694 LVM-on-RAID is handled correctly.
25695
e3c8cd37
CW
256962010-07-02 Colin Watson <cjwatson@ubuntu.com>
25697
25698 * docs/grub.texi (Changes from GRUB Legacy): New section.
25699 (Future): Fix typo.
25700
8d4a2fec
CW
257012010-07-02 Colin Watson <cjwatson@ubuntu.com>
25702
25703 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
25704 grub.d/README accidentally ends up executable for one reason or
25705 another. Ignore it.
25706
1c4827be
VS
257072010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
25708
25709 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
25710 (gpt_partition_map_iterate): Support non-512B sectors.
25711
d9a0c941
VS
257122010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
25713
25714 * kern/efi/init.c (grub_efi_init): Disable watchdog.
25715 Tested by: Seth Goldberg.
25716
48f27e87
VS
257172010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
25718
25719 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
25720 Properly align mbi.
25721 Reported by: Seth Goldberg.
25722
b0c4f956
VS
257232010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
25724
25725 * util/grub-mkrescue.in: Avoid module duplication.
25726
105a2e8c
SF
257272010-07-01 Sean Finney <seanius@seanius.net>
25728
25729 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
25730
5944958c
SF
257312010-07-01 Sean Finney <seanius@seanius.net>
25732
25733 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
25734
257352010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
25736
25737 * disk/lvm.c (grub_lvm_checkvalue): New function.
25738 (grub_lvm_check_flag): Likewise.
25739
b79889ba
RM
257402010-07-01 Robert Millan <rmh@gnu.org>
25741
25742 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
25743 Support 'p' as partition separator on kernel of FreeBSD (used
25744 with GPT labels).
25745 (grub_util_biosdisk_get_grub_dev): Likewise.
25746
ec1d04f1
VS
257472010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
25748
25749 Yeeloong firmware port.
25750
25751 * boot/mips/yeeloong/fwstart.S: New file.
25752 * bus/cs5536.c (gpiodump): New const.
25753 (set_io_space): New function.
25754 (set_iod): Likewise.
25755 (set_p2d): Likewise.
25756 (grub_cs5536_init_geode): Likewise.
25757 * commands/mips/yeeloong/lsspd.c: New file.
25758 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
25759 (serial_mod_SOURCES): New variable.
25760 (serial_mod_CFLAGS): Likewise.
25761 (serial_mod_LDFLAGS): Likewise.
25762 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
25763 term/terminfo.c and term/tparm.c.
25764 (pkglib_IMAGES): Add fwstart.img.
25765 (fwstart_img_SOURCES): New variable.
25766 (fwstart_img_CFLAGS): Likewise.
25767 (fwstart_img_ASFLAGS): Likewise.
25768 (fwstart_img_LDFLAGS): Likewise.
25769 (fwstart_img_FORMAT): Likewise.
25770 (pkglib_MODULES): Add lsspd.mod.
25771 (lsspd_mod_SOURCES): New variable.
25772 (lsspd_mod_CFLAGS): Likewise.
25773 (lsspd_mod_LDFLAGS): Likewise.
25774 (pkglib_MODULES): Add halt.mod.
25775 (halt_mod_SOURCES): New variable.
25776 (halt_mod_CFLAGS): Likewise.
25777 (halt_mod_LDFLAGS): Likewise.
25778 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
25779 (serial_mod_SOURCES): Removed.
25780 (serial_mod_CFLAGS): Likewise.
25781 (serial_mod_LDFLAGS): Likewise.
25782 * disk/ata.c (check_device): New function.
25783 (grub_ata_device_initialize): Use check_device.
25784 (grub_ata_iterate): Recheck devices.
25785 (grub_ata_open): Likewise.
25786 (grub_atapi_iterate): Likewise.
25787 (grub_atapi_open): Likewise.
25788 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
25789 (GRUB_ATA_CH1_PORT1): Likewise.
25790 (GRUB_ATA_CH0_PORT2): Likewise.
25791 (GRUB_ATA_CH1_PORT2): Likewise.
25792 * include/grub/mips/loongson.h: New file.
25793 * include/grub/mips/yeeloong/ec.h: Likewise.
25794 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
25795 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
25796 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
25797 * include/grub/misc.h (grub_halt): Declare as noreturn.
25798 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
25799 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
25800 (UART_ENABLE_FIFO_TRIGGER1): New definition.
25801 (UART_ENABLE_DTRRTS): Likewise.
25802 (UART_ENABLE_MODEM): Removed.
25803 (UART_ENABLE_OUT2): New const.
25804 * include/grub/term.h (grub_term_register_input_active): New function.
25805 (grub_term_register_output_active): Likewise.
25806 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
25807 argument.
25808 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
25809 (init_pci): New function.
25810 (grub_machine_init): Execute platform init when firmware. Init serial.
25811 (grub_halt): Implement.
25812 (grub_exit): Likewise.
25813 (grub_reboot): Likewise.
25814 * term/serial.c (serial_hw_init): Update macros.
25815 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
25816 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
25817 (image_targets): New target mipsel-yeeloong-flash.
25818 (generate_image): Support IMAGE_YEELOONG_FLASH.
25819 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
25820 (grub_video_sm712_setup): Init card.
25821 (grub_video_sm712_set_palette): Removed.
25822 * video/sm712_init.c: New file.
25823
ff4a70d2
CW
258242010-06-30 Colin Watson <cjwatson@ubuntu.com>
25825
25826 * Makefile.in (install-local): Temporarily prepend $(builddir) to
25827 PATH when running help2man and then run it on the unadorned
25828 executable names, rather than passing $(builddir)/* paths to
25829 help2man. This avoids the build directory ending up in generated
25830 manual pages.
25831
1246efeb
CW
258322010-06-29 Colin Watson <cjwatson@ubuntu.com>
25833
25834 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
25835 to avoid accidents when debugging with 'sh -x'.
25836 * util/grub-mkrescue.in: Likewise.
25837 * util/grub.d/00_header.in: Likewise.
25838 * util/grub.d/10_hurd.in: Likewise.
25839 * util/grub.d/10_kfreebsd.in: Likewise.
25840 * util/grub.d/10_linux.in: Likewise.
25841 * util/grub.d/10_netbsd.in: Likewise.
25842 * util/grub.d/10_windows.in: Likewise.
25843 * util/grub.d/20_linux_xen.in: Likewise.
25844 * util/grub.d/30_os-prober.in: Likewise.
25845 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
25846
1ba9b889
CW
258472010-06-29 Colin Watson <cjwatson@ubuntu.com>
25848
25849 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
25850 last character in the buffer.
25851 Reported by: Vladimir Serbinenko.
25852
dccaf99d
RM
258532010-06-29 Robert Millan <rmh@gnu.org>
25854
25855 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
25856 (Command-line and menu entry commands): Document `badram' command.
25857
d500ed12
RM
258582010-06-28 Robert Millan <rmh@gnu.org>
25859
25860 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
25861 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
25862 command using ${GRUB_BADRAM} as parameter.
25863
20bc84a6
CW
258642010-06-28 Colin Watson <cjwatson@ubuntu.com>
25865
25866 * docs/grub.texi (Device map): New section.
25867 (Themes): New section (stub).
25868 * Makefile.in (docs/grub.info): The info documentation now builds
25869 without errors. Make sure it stays that way.
25870
4045dee1
VS
258712010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
25872
25873 Use normal parser for menu entries.
25874 Reported by: Thomas Frauendorfer
25875
25876 * include/grub/parser.h (grub_parser_execute): Don't export.
25877 * normal/menu.c (grub_menu_execute_entry_real): New function.
25878 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
25879
bca58c7b
CW
258802010-06-28 Colin Watson <cjwatson@ubuntu.com>
25881
25882 * docs/grub.texi (Embedded configuration): New section (replacing
25883 old "Preset Menu" stub).
25884 (Images): New section.
25885 (configfile): Note that any menu entries defined in `file' are shown
25886 immediately.
25887
dec53e63
JT
258882010-06-28 Josh Triplett <josh@joshtriplett.org>
25889
25890 * mmap/i386/pc/mmap_helper.S: Set CF on return.
25891
c06e40f7
CW
258922010-06-28 Colin Watson <cjwatson@ubuntu.com>
25893
25894 * util/grub-install.in: Add --debug-image= option.
25895
cb88052b
CW
258962010-06-28 Colin Watson <cjwatson@ubuntu.com>
25897
25898 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
25899 possible on Linux.
25900
25901 * util/deviceiter.c (check_device): Rename to ...
25902 (check_device_readable_unique): ... this. Update all callers.
25903 Maintain and check a list of which devices (by canonicalized name)
25904 have already been seen.
25905 (clear_seen_devices): New function.
25906 (compare_file_names) [__linux__]: New function.
25907 (grub_util_iterate_devices): Clear the list of seen devices on exit
25908 and (just in case) on entry.
25909 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
25910 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
25911 seen-devices list, superseded by general code in check_device.
25912
bbe34652
CW
259132010-06-28 Colin Watson <cjwatson@ubuntu.com>
25914
25915 * commands/cat.c (options): New variable.
25916 (grub_cmd_cat): Parse options. If the --dos option is given, print
25917 DOS-style "\r\n" line endings as simple newlines (Debian bug
25918 #586358).
25919 (GRUB_MOD_INIT): Use extcmd.
25920 (GRUB_MOD_FINI): Likewise.
25921 * docs/grub.texi (cat): Document --dos.
25922
412e09f3
VS
259232010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
25924
25925 XEN with Linux grub-mkconfig support.
25926
25927 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
25928 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
25929 GRUB_CMDLINE_XEN_DEFAULT.
25930 * util/grub.d/20_linux_xen.in: New file.
25931
53f3ef38 259322010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
994b0c27
VS
25933
25934 Initialise VGA video on qemu ourselves.
25935
25936 * boot/i386/qemu/boot.S: Don't call 0xc000.
25937 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
25938 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
25939 (kernel_img_HEADERS): Add pci.h.
25940 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
25941 * configure.ac: Force unifont on qemu and yeeloong.
25942 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
25943 (grub_vga_palette_write): Use correct register.
25944 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
25945 Call grub_qemu_init_cirrus.
25946 * kern/i386/qemu/init.c: New file.
25947 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
25948
25949 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
25950
c75be4fb
PR
259512010-06-26 Pavel Roskin <proski@gnu.org>
25952
25953 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
25954 13.
25955
d8034603
CW
259562010-06-26 Colin Watson <cjwatson@ubuntu.com>
25957
25958 * docs/grub.texi (Simple configuration): Explain that
25959 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
25960 set to `true' to disable their respective recovery entries, not
25961 merely set.
25962
3fa06487
CW
259632010-06-26 Colin Watson <cjwatson@ubuntu.com>
25964
25965 Make the `source' command slightly faster.
25966
25967 * normal/main.c (grub_normal_execute): Don't re-read list files when
25968 nested.
25969
e9b29642
CW
259702010-06-23 Colin Watson <cjwatson@ubuntu.com>
25971
25972 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
25973 field position and mask size to red fields from mode_info, not
25974 green.
25975 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
25976 Remove redundant tag->common.framebuffer_type assignment.
25977 Reported by: Seth Goldberg.
25978
e726542f
CW
259792010-06-23 Colin Watson <cjwatson@ubuntu.com>
25980
25981 Sync up other versions of the Linux loader with Robert Millan's
25982 change of 2010-01-09, "Make loader output a bit more user-friendly".
25983
25984 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
25985 grub_dprintf().
25986 (grub_cmd_linux): Likewise.
25987 (grub_cmd_initrd): Likewise.
25988 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
25989 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
25990
d6e98a17
CW
259912010-06-21 Colin Watson <cjwatson@ubuntu.com>
25992
25993 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
25994 larger than MEMORY_MAP_SIZE.
25995
14d3f08e
BC
259962010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
25997
25998 Fix parallel build.
25999
26000 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
26001 dependency.
26002 * script/parser.y: #include grub_script.tab.h header.
26003
4f9613a3
VS
260042010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
26005
26006 Support >3GiB and <16MiB RAM in i386-qemu.
26007
26008 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
26009 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
26010 (grub_lower_mem): Removed.
26011 (grub_upper_mem): Likewise.
26012 (mem_size): Made static.
26013 (above_4g): New variable.
26014 (grub_machine_mmap_init): Detect small mem_size and above_4g.
26015 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
26016 support.
26017
05e51879
VS
260182010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
26019
26020 Cirrus 5446 and Bochs video cards support.
26021
26022 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
26023 video_bochs.mod
26024 (video_cirrus_mod_SOURCES): New variable.
26025 (video_cirrus_mod_CFLAGS): Likewise.
26026 (video_cirrus_mod_LDFLAGS): Likewise.
26027 (video_bochs_mod_SOURCES): Likewise.
26028 (video_bochs_mod_CFLAGS): Likewise.
26029 (video_bochs_mod_LDFLAGS): Likewise.
26030 * include/grub/vga.h: New file.
26031 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
26032 (grub_video_fb_set_page_t): New type.
26033 (grub_video_fb_setup): New prototype.
26034 (grub_video_fb_swap_buffers): Likewise.
26035 (grub_video_fb_get_info_and_fini): Likewise.
26036 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
26037 (CRTC_DATA_PORT): Likewise.
26038 (CRTC_CURSOR): Likewise.
26039 (CRTC_CURSOR_ADDR_HIGH): Likewise.
26040 (CRTC_CURSOR_ADDR_LOW): Likewise.
26041 (CRTC_CURSOR_DISABLE): Likewise.
26042 (update_cursor): Use grub_vga_cr_write.
26043 (grub_vga_text_setcursor): Likewise.
26044 * video/bochs.c: New file.
26045 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
26046 (palette): Likewise.
26047 (palette_size): Likewise.
26048 (framebuffer): New variable.
26049 (grub_video_fb_init): Use 'framebuffer'.
26050 (grub_video_fb_fini): Likewise.
26051 (grub_video_fb_get_info): Likewise.
26052 (grub_video_fb_get_palette): Likewise.
26053 (grub_video_fb_set_palette): Likewise.
26054 (grub_video_fb_set_viewport): Likewise.
26055 (grub_video_fb_get_viewport): Likewise.
26056 (grub_video_fb_map_color): Likewise.
26057 (grub_video_fb_map_rgb): Likewise.
26058 (grub_video_fb_map_rgba): Likewise.
26059 (grub_video_fb_unmap_color): Likewise.
26060 (grub_video_fb_unmap_color_int): Likewise.
26061 (grub_video_fb_fill_rect): Likewise.
26062 (grub_video_fb_blit_bitmap): Likewise.
26063 (grub_video_fb_blit_render_target): Likewise.
26064 (grub_video_fb_scroll): Likewise.
26065 (grub_video_fb_create_render_target): Likewise.
26066 (grub_video_fb_doublebuf_blit_init): Likewise.
26067 (grub_video_fb_set_active_render_target): Handle doublebuffering.
26068 (doublebuf_pageflipping_update_screen): New function.
26069 (doublebuf_pageflipping_init): Likewise.
26070 (grub_video_fb_setup): Likewise.
26071 (grub_video_fb_swap_buffers): Likewise.
26072 (grub_video_fb_get_info_and_fini): Likewise.
26073 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
26074 All users updated.
26075 (doublebuf_pageflipping_commit): Restructured into ...
26076 (doublebuf_pageflipping_set_page): ... this.
26077 (doublebuf_pageflipping_update_screen): Removed.
26078 (doublebuf_pageflipping_init): Likewise.
26079 (double_buffering_init): Likewise.
26080 (grub_video_vbe_setup): Use grub_video_fb_setup.
26081 (grub_video_vbe_swap_buffers): Removed.
26082 (grub_video_vbe_set_active_render_target): Likewise.
26083 (grub_video_vbe_get_active_render_target): Likewise.
26084 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
26085 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
26086 grub_video_fb_set_active_render_target and
26087 grub_video_fb_get_active_render_target.
26088 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
26089 (SEQUENCER_DATA_PORT): Likewise.
26090 (MAP_MASK_REGISTER): Likewise.
26091 (CRTC_ADDR_PORT): Likewise.
26092 (CRTC_DATA_PORT): Likewise.
26093 (START_ADDR_HIGH_REGISTER): Likewise.
26094 (START_ADDR_LOW_REGISTER): Likewise.
26095 (GRAPHICS_ADDR_PORT): Likewise.
26096 (GRAPHICS_DATA_PORT): Likewise.
26097 (READ_MAP_REGISTER): Likewise.
26098 (INPUT_STATUS1_REGISTER): Likewise.
26099 (INPUT_STATUS1_VERTR_BIT): Likewise.
26100 (get_map_mask): Use grub_vga_sr_read.
26101 (set_map_mask): Use grub_vga_sr_write.
26102 (set_read_map): Use grub_vga_gr_write.
26103 (set_start_address): Use grub_vga_cr_write.
26104 * video/sm712.c (framebuffer): Remove leftover fields.
26105
4321c64a
CW
261062010-06-20 Colin Watson <cjwatson@ubuntu.com>
26107
26108 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
26109 setting GRUB_VIDEO_BACKEND. Make it available as a user override
26110 instead. Replace the gfxterm backend check with a check that
26111 ${GRUB_PREFIX}/video.lst is non-empty.
26112 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
26113 again.
26114 (load_video): New generated function. Call it before loading
26115 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
26116 * util/grub.d/10_linux.in (linux_entry): Call load_video.
26117 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
26118 * docs/grub.texi (Simple configuration): Document
26119 GRUB_VIDEO_BACKEND.
26120
261212010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
26122
26123 Use video functions in linux and xnu loaders.
26124
26125 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
26126 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
26127 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
26128 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
26129 loader/i386/pc/linux.c.
26130 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
26131 (find_line_len): Removed.
26132 (find_framebuf): Likewise.
26133 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
26134 * loader/i386/efi/xnu.c: Removed.
26135 * loader/i386/pc/xnu.c: Moved from here...
26136 * loader/i386/xnu.c: ...here.
26137
26138 Enable priorities in video drivers.
26139
26140 * include/grub/video.h (grub_video_adapter_prio_t): New type.
26141 (grub_video_adapter): New field prio.
26142 (grub_video_register): Respect prio when inserting.
26143 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
26144 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
26145 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
26146 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
26147 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
26148 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
26149 * video/sm712.c (grub_video_sm712_adapter): Likewise.
26150
26151 Fix SDL driver ID.
26152
26153 * include/grub/video.h (grub_video_driver_id_t): New value
26154 GRUB_VIDEO_DRIVER_SDL.
26155 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
26156
7d24e434
CW
261572010-06-17 Colin Watson <cjwatson@ubuntu.com>
26158
26159 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
26160 argument to printf.
26161 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
26162
c88a83f6
CW
261632010-06-17 Colin Watson <cjwatson@ubuntu.com>
26164
26165 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
26166 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
26167
094dfb69
CW
261682010-06-17 Colin Watson <cjwatson@ubuntu.com>
26169
26170 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
26171 directly, and recommend grub-install instead.
26172 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
26173
2164da6b
CW
261742010-06-17 Colin Watson <cjwatson@ubuntu.com>
26175
26176 Fix i386-pc prefix handling with nested partitions (Debian bug
26177 #585068). Note that the case where the core image is booted using
26178 multiboot and relocated from its original location still requires
26179 more work.
26180
26181 * kern/i386/pc/init.c (make_install_device): If the prefix starts
26182 with "(,", fill the boot drive in between those two characters, but
26183 expect that a full partition specification including partition map
26184 names will follow.
26185 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
26186 specified, write a prefix without the drive name but including a
26187 full partition specification.
26188
044e2e60
CW
261892010-06-16 Colin Watson <cjwatson@ubuntu.com>
26190
26191 * util/grub-mkconfig.in: Ignore non-option arguments, for
26192 compatibility with older versions (before 2010-06-12) which did the
26193 same. In particular, this makes it easier to ship an update-grub
26194 wrapper which is compatible with that used with GRUB Legacy (Debian
26195 bug #586056).
26196
5591324f
GS
261972010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26198
26199 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
26200 for manual page generation.
26201
662e24d5
GS
262022010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26203
26204 * po/POTFILES: Remove leftover commands/handler.c.
26205
8d70754e
CW
262062010-06-14 Colin Watson <cjwatson@ubuntu.com>
26207
26208 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
26209 left this script non-functional.
26210
41160e2e
CW
262112010-06-14 Colin Watson <cjwatson@ubuntu.com>
26212
26213 * docs/man/grub-emu.h2m: New file.
26214
b5309cc1
CW
262152010-06-13 Colin Watson <cjwatson@ubuntu.com>
26216
26217 * docs/grub.texi (Commands): Document reduced command set in rescue
26218 mode.
26219 (cpuid): New section.
26220
fcb2d090
GS
262212010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
26222
26223 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
26224 new partition naming style.
26225 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
26226
96e5c556
BC
262272010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
26228
26229 Add "-o grub.iso" like cmdline options support.
26230
26231 * util/grub-install.in: Improve cmdline option parsing.
26232 * util/grub-mkconfig.in: Likewise.
26233 * util/grub-mkrescue.in: Likewise.
26234 * util/grub-reboot.in: Likewise.
26235 * util/grub-set-default.in: Likewise.
26236 * util/i386/efi/grub-install.in: Likewise.
26237 * util/ieee1275/grub-install.in: Likewise.
26238 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
26239
c16be99b
CW
262402010-06-12 Colin Watson <cjwatson@ubuntu.com>
26241
26242 * .bzrignore: Ignore 41_custom.
26243
ce08a9fb
TS
262442010-06-12 Thomas Schmitt <scdbackup@gmx.net>
26245
26246 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
26247
7beac90c
CW
262482010-06-12 Colin Watson <cjwatson@ubuntu.com>
26249
26250 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
26251 prototype declarations.
26252
26253 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
26254 generating fs, partmap, and video lists.
26255 * include/grub/fs.h (grub_fs_register): Omit prototype if
26256 GRUB_LST_GENERATOR is defined.
26257 * include/grub/partition.h (grub_partition_map_register): Likewise.
26258 * include/grub/video.h (grub_video_register): Likewise.
26259
1c8f0f8d
JM
262602010-06-12 Javier Martín <lordhabbit@gmail.com>
26261
26262 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
26263
a6085973
TS
262642010-06-12 Thomas Schmitt <scdbackup@gmx.net>
26265
26266 * util/grub-mkrescue.in: Support --xorriso argument.
26267
25c56d29
VS
262682010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
26269
26270 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
26271 Suggested by: Thomas Schmitt.
26272
e03e4b24
VS
262732010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
26274
26275 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
26276 Suggested by: Thomas Schmitt.
26277
57711df6
VS
262782010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
26279
26280 custom.cfg support.
26281
26282 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
26283 * util/grub.d/41_custom.in: New file.
26284
ee62c427
CW
262852010-06-12 Colin Watson <cjwatson@ubuntu.com>
26286
26287 * util/grub-mkrescue.in (make_image): Remove sh module, which has
26288 been merged back into normal.
26289
283af07a
CW
262902010-06-11 Colin Watson <cjwatson@ubuntu.com>
26291
26292 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
26293 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
26294
56a0d956
CW
262952010-06-11 Colin Watson <cjwatson@ubuntu.com>
26296
26297 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
26298 when generating manual pages.
26299 * docs/man/grub-bin2h.h2m: New file.
26300 * docs/man/grub-editenv.h2m: New file.
26301 * docs/man/grub-fstest.h2m: New file.
26302 * docs/man/grub-install.h2m: New file.
26303 * docs/man/grub-macho2img.h2m: New file.
26304 * docs/man/grub-mkconfig.h2m: New file.
26305 * docs/man/grub-mkdevicemap.h2m: New file.
26306 * docs/man/grub-mkfont.h2m: New file.
26307 * docs/man/grub-mkimage.h2m: New file.
26308 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
26309 * docs/man/grub-mkrelpath.h2m: New file.
26310 * docs/man/grub-mkrescue.h2m: New file.
26311 * docs/man/grub-ofpathname.h2m: New file.
26312 * docs/man/grub-pe2elf.h2m: New file.
26313 * docs/man/grub-probe.h2m: New file.
26314 * docs/man/grub-reboot.h2m: New file.
26315 * docs/man/grub-script-check.h2m: New file.
26316 * docs/man/grub-set-default.h2m: New file.
26317 * docs/man/grub-setup.h2m: New file.
26318
3a37e322
VS
263192010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
26320
26321 Use FOR_* macros instead of *_iterate whenever possible.
26322
26323 * commands/handler.c: Removed.
26324 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
26325 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
26326 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
26327 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
26328 (grub_probe_SOURCES): Remove kern/parser.c.
26329 (util/grub-script-check.c_DEPENDENCIES): Removed.
26330 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
26331 and grub_script_check_init.c.
26332 (grub_script_check_init.lst): Removed.
26333 (grub_script_check_init.h): Likewise.
26334 (grub_script_check_init.c): Likewise.
26335 (pkglib_MODULES): Remove handler.mod and sh.mod.
26336 (handler_mod_SOURCES): Removed.
26337 (handler_mod_CFLAGS): Likewise.
26338 (handler_mod_LDFLAGS): Likewise.
26339 (normal_mod_SOURCES): Remove normal/handler.c.
26340 Add script/main.c, script/script.c, script/execute.c,
26341 script/function.c, script/lexer.c, grub_script.tab.c
26342 and grub_script.yy.c.
26343 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
26344 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26345 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
26346 (grub_setup_SOURCES): Remove kern/parser.c.
26347 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
26348 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
26349 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
26350 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26351 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26352 (grub_setup_SOURCES): Remove kern/parser.c.
26353 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
26354 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
26355 * include/grub/command.h (grub_command_iterate): Removed.
26356 (FOR_COMMANDS): New macro.
26357 * include/grub/dl.h (grub_dl): New member next.
26358 (grub_dl_iterate): Removed.
26359 (grub_dl_head): New variable declaration.
26360 (FOR_DL_MODULES): New macro.
26361 * include/grub/fs.h: Include list.h.
26362 (grub_fs): Make next first element.
26363 (grub_fs_list): New variable declaration.
26364 (grub_fs_register): Make inline.
26365 (grub_fs_unregister): Likewise.
26366 (grub_fs_iterate): Removed.
26367 (FOR_FILESYSTEMS): New macro.
26368 * include/grub/handler.h: Removed.
26369 * include/grub/list.h (grub_list_hook_t): Removed.
26370 (grub_list_test_t): Likewise.
26371 (grub_list_pop): Likewise.
26372 (grub_list_iterate): Likewise.
26373 (grub_list_insert): Likewise.
26374 (FOR_LIST_ELEMENTS): New macro.
26375 * include/grub/parser.h (grub_parser_class): Removed.
26376 (grub_parser_register): Likewise.
26377 (grub_parser_unregister): Likewise.
26378 (grub_parser_get_current): Likewise.
26379 (grub_parser_set_current): Likewise.
26380 (grub_register_rescue_parser): Likewise.
26381 (grub_rescue_parse_line): New function.
26382 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
26383 * include/grub/script_sh.h (grub_script_function_list): New variable
26384 declaration.
26385 (FOR_SCRIPT_FUNCTIONS): New macro.
26386 (grub_script_function_iterate): Removed.
26387 (grub_normal_parse_line): New prototype.
26388 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
26389 (FOR_DISABLED_TERM_INPUTS): Likewise.
26390 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
26391 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
26392 * include/grub/video.h (grub_video_adapter): Move 'next' to first
26393 element.
26394 (grub_video_register): Inline.
26395 (grub_video_unregister): Likewise.
26396 (grub_video_adapter_list): New variable declaration.
26397 (grub_video_iterate): Removed.
26398 (FOR_VIDEO_ADAPTERS): New macro.
26399 * kern/dl.c (grub_dl_list): Removed. All users updated.
26400 (grub_dl_iterate): Removed.
26401 * kern/fs.c (grub_fs_list): Make global.
26402 (grub_fs_register): Removed.
26403 (grub_fs_unregister): Likewise.
26404 (grub_fs_iterate): Likewise.
26405 * kern/handler.c: Removed.
26406 * kern/list.c (grub_list_pop): Removed.
26407 (grub_list_iterate): Likewise.
26408 (grub_list_insert): Likewise.
26409 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
26410 (grub_prio_list_insert): Don't use grub_list_insert.
26411 * kern/main.c (grub_register_rescue_parser): Don't call
26412 grub_register_rescue_parser.
26413 * kern/parser.c (grub_parser_class): Removed.
26414 (grub_parser_execute): Use grub_rescue_parse_line.
26415 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
26416 (grub_rescue_parser): Removed.
26417 (grub_register_rescue_parser): Likewise.
26418 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
26419 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
26420 (grub_auth_check_authentication): Likewise.
26421 * normal/completion.c (iterate_command): Removed.
26422 (grub_normal_do_completion): Use FOR_COMMANDS.
26423 * normal/handler.c: Removed.
26424 * normal/main.c (read_config_file): Remove parser changing.
26425 (grub_normal_execute): Don't call read_handler_list.
26426 (grub_normal_read_line_real): Statically allocate prompt.
26427 (grub_cmdline_run): Use grub_normal_parse_line.
26428 (GRUB_MOD_FINI): Don't call free_handler_list.
26429 * normal/menu_entry.c (run): Likewise.
26430 * script/function.c (grub_script_function_list): Make global.
26431 (grub_script_function_iterate): Removed.
26432 * script/main.c (grub_normal_parse_line): Make global.
26433 (grub_sh_parser): Removed.
26434 (GRUB_MOD_INIT): Likewise.
26435 (GRUB_MOD_FINI): Likewise.
26436 * tests/lib/functional_test.c (grub_functional_test): Use
26437 FOR_LIST_ELEMENTS.
26438 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
26439 (grub_test_run): Use FOR_LIST_ELEMENTS.
26440 * tests/lib/unit_test.c (main): Likewise.
26441 * util/deviceiter.c (grub_util_iterate_devices): Don't use
26442 grub_list_pop.
26443 * util/grub-fstest.c (grub_term_input_class): Removed.
26444 (grub_term_output_class): Likewise.
26445 * util/grub-probe.c: Likewise.
26446 * util/i386/pc/grub-setup.c: Likewise.
26447 * util/sparc64/ieee1275/grub-setup.c: Likewise.
26448 * util/grub-script-check.c (main): Don't call grub_init_all and
26449 grub_fini_all.
26450 * video/video.c (grub_video_adapter_list): Make global.
26451 (grub_video_register): Removed.
26452 (grub_video_unregister): Likewise.
26453 (grub_video_iterate): Likewise.
26454
6289c3a7
VS
264552010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
26456
26457 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
26458 reported by Henrique Ferreiro.
26459
91460247
RM
264602010-06-09 Robert Millan <rmh@gnu.org>
26461
26462 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
26463 ones, when both are available.
26464
0ea7c4f9
GS
264652010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
26466
26467 Make --version uniform and avoid hard-coded program name.
26468
26469 * util/grub-mkimage.c (main): Use `program_name' instead of
26470 hard-coded string.
26471 * util/i386/pc/grub-setup.c (main): Likewise.
26472 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
26473 * util/grub-install.in: Save the basename of $0 in $self, and use the
26474 latter in informational messages. Use the same format for --version
26475 as the binary programs.
26476 * util/grub-mkconfig.in: Likewise.
26477 * util/grub-mkrescue.in: Likewise.
26478 * util/grub-reboot.in: Likewise.
26479 * util/grub-set-default.in: Likewise.
26480 * util/i386/efi/grub-install.in: Likewise.
26481 * util/ieee1275/grub-install.in: Likewise.
26482 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
26483
e8a6f3b6
GS
264842010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
26485
26486 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
26487 embedding area. Use <= instead of == when checking for non-emptiness.
26488
f4d095d7
GS
264892010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
26490
26491 * configure.ac: Add `.' to the directories searched for unifont.
26492
50e532ca
CW
264932010-06-08 Colin Watson <cjwatson@ubuntu.com>
26494
26495 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
26496 grub_script.yy.h.
26497
d39f3dec
CW
264982010-06-08 Colin Watson <cjwatson@ubuntu.com>
26499
26500 * docs/grub.texi (History): Expand to cover GRUB 2.
26501 (Serial terminal): Refer to `terminal_input' and `terminal_output'
26502 commands, not `terminal'.
26503 (serial): Likewise.
26504 (terminal_input): New section.
26505 (terminal_output): New section.
26506 (uppermem): New section (stub).
26507 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
26508
6ef0ddb4
CW
265092010-06-08 Colin Watson <cjwatson@ubuntu.com>
26510
26511 * docs/grub.texi (Security): Menu entries are unrestricted by
26512 default, not restricted to superusers as I had previously thought.
26513 Reword to account for this.
26514
e0f4c438
CW
265152010-06-07 Colin Watson <cjwatson@ubuntu.com>
26516
26517 * kern/emu/misc.c (device_mapper_null_log): New function.
26518 (grub_device_mapper_supported): New function.
26519 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
26520 prototype.
26521 * kern/emu/hostdisk.c (find_partition_start): Check whether
26522 device-mapper is supported before trying to use it.
26523 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
26524
da908200
CW
265252010-06-07 Colin Watson <cjwatson@ubuntu.com>
26526
26527 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
26528 (File name syntax): Likewise.
26529 (help): --all is no longer supported in GRUB 2. Be more precise
26530 about pattern matching.
26531
fb55c3ac
CW
265322010-06-07 Colin Watson <cjwatson@ubuntu.com>
26533
26534 * normal/completion.c (grub_normal_do_completion): When completing
26535 arguments to "set" and the current word contains an equals sign,
26536 skip to after the equals sign before starting completion.
26537
258c2573
CW
265382010-06-07 Colin Watson <cjwatson@ubuntu.com>
26539
26540 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
26541
ee75515e
CW
265422010-06-07 Colin Watson <cjwatson@ubuntu.com>
26543
26544 * docs/grub.texi (Network): New section.
26545 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
26546 `(nd)' as in GRUB Legacy.
26547 (pxe_unload): New section.
26548
a6a700aa
CW
265492010-06-07 Colin Watson <cjwatson@ubuntu.com>
26550
26551 * docs/grub.texi (Troubleshooting): `echo' is not usually available
26552 in the rescue shell, so recommend using `set' instead. Thanks,
26553 Jordan Uggla.
26554
4003dd38
CW
265552010-06-07 Colin Watson <cjwatson@ubuntu.com>
26556
26557 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
26558 (password): New section.
26559 (password_pbkdf2): New section.
26560 (search): New section.
26561 (Security): New section.
26562 (Troubleshooting): New section, currently very incomplete.
26563 (Invoking grub-mkpasswd-pbkdf2): New section.
26564 (Internals): New section, currently very incomplete.
26565
e1cbcc40
CW
265662010-06-07 Colin Watson <cjwatson@ubuntu.com>
26567
26568 * util/grub.d/00_header.in: Add some more quoting (of
26569 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
26570 work again.
26571 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
26572
db8fa1ad
CW
265732010-06-07 Colin Watson <cjwatson@ubuntu.com>
26574
26575 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
26576 to `count', fixing variable shadowing that broke the -c option.
26577
265782010-06-05 Colin Watson <cjwatson@ubuntu.com>
71c38098
CW
26579
26580 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
26581 in case they contain spaces.
26582
f28a9212
CW
265832010-06-04 Colin Watson <cjwatson@ubuntu.com>
26584
26585 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
26586 "part_" to partmap module names, in line with grub-install.
26587 Reported by: Jindřich Makovička (Debian bug #584426).
26588
9cdfe32f
CW
265892010-06-04 Colin Watson <cjwatson@ubuntu.com>
26590
26591 * util/grub-mkimage.c: Make target-related error messages slightly
26592 more helpful; -O talks about "format". Explicitly point to the use
26593 of -O if no target is specified.
26594 Reported by: Didier Raboud (Debian bug #584415).
26595
795b593a
CW
265962010-06-03 Colin Watson <cjwatson@ubuntu.com>
26597
26598 * INSTALL: Document several build requirements for optional features
26599 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
26600
9d9b5833
GS
266012010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
26602
26603 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
26604 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
26605 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
26606
0819fec8
CW
266072010-06-02 Colin Watson <cjwatson@ubuntu.com>
26608
26609 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
26610 Thanks to Jordan Uggla for spotting this.
26611
49396b4f
VS
266122010-06-02 Aleš Nesrsta <starous@volny.cz>
26613
26614 Finally make USB usable.
26615
26616 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
26617 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
26618 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
26619 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
26620 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
26621 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
26622 (GRUB_OHCI_FSMPS): Likewise.
26623 (GRUB_OHCI_PERIODIC_START): Likewise.
26624 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
26625 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
26626 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
26627 (GRUB_OHCI_SET_PORT_RESET): Likewise.
26628 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
26629 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
26630 (grub_ohci_transaction): Likewise.
26631 (grub_ohci_transfer): Improve condition detection algorithms.
26632 Handle toggle property. Program the transactions correctly.
26633 Improve error handling. Various important fixups.
26634 (grub_ohci_portstatus): Put register writes in right order.
26635 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
26636 (grub_uhci_transfer): Don't show "failed" message on success.
26637 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
26638 array.
26639 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
26640 determine its size.
26641 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
26642 before initialization is completed. Use IN direction for empty
26643 transfers. Use last_trans and compute toggle.
26644 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
26645 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
26646 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
26647 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
26648 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
26649 (grub_usb_device): Increase toggle to 256.
26650 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
26651 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
26652 GRUB_USBMS_SUBCLASS_SFF8070.
26653 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
26654 (grub_scsi_inquiry): New member page and alloc_length.
26655 (grub_scsi_request_sense): New structure.
26656 (grub_scsi_request_sense_data): Likewise.
26657 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
26658 control.
26659 * disk/scsi.c (grub_scsi_request_sense): New function.
26660 (grub_scsi_test_unit_ready): Likewise.
26661 (grub_scsi_inquiry): Fill new fields.
26662 (grub_scsi_read_capacity): Likewise.
26663 (grub_scsi_read10): Add request sense at the end.
26664 (grub_scsi_read12): Likewise.
26665 (grub_scsi_write10): Likewise.
26666 (grub_scsi_write12): Likewise.
26667 (grub_scsi_open): Add Test Unit Ready.
26668 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
26669 Support additional subclasses. Con't clear halt yet. Activate the
26670 proper config. Calculate LUNs correctly.
26671 (grub_usbms_transfer): Various important fixups.
26672
266732010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
26674
26675 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
26676 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
26677 (grub_ohci_fini_hw): New function.
26678 (grub_ohci_restore_hw): Likewise.
26679 (GRUB_MOD_INIT(ohci)): Register preboot hook.
26680 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
26681 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
26682
266832010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
26684
26685 Dedicated DMA allocations.
26686
26687 * bus/pci.c (grub_memalign_dma32): New function
26688 (grub_dma_free): Likewise.
26689 (grub_dma_get_virt): Likewise.
26690 (grub_dma_get_phys): Likewise.
26691 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
26692 (grub_ohci_pci_iter): Use dma32_alloc.
26693 (grub_ohci_transfer): Likewise.
26694 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
26695 (grub_usb_bulk_readwrite): Likewise.
26696 * include/grub/pci.h: Add declarations.
26697
266982010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
26699
26700 CS5536 support.
26701
26702 * bus/cs5536.c: New file.
26703 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
26704 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
26705 (cs5536_mod_SOURCES): New variable.
26706 (cs5536_mod_CFLAGS): Likewise.
26707 (cs5536_mod_LDFLAGS): Likewise.
26708 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
26709 machine/pci.h.
26710 (kernel_img_SOURCES): Add bus/cs5536.c.
26711 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
26712 usb_keyboard.mod.
26713 (usb_mod_SOURCES): New variable.
26714 (usb_mod_CFLAGS): New variable.
26715 (usb_mod_LDFLAGS): New variable.
26716 (usbtest_mod_SOURCES): New variable.
26717 (usbtest_mod_CFLAGS): New variable.
26718 (usbtest_mod_LDFLAGS): New variable.
26719 (ohci_mod_SOURCES): New variable.
26720 (ohci_mod_CFLAGS): New variable.
26721 (ohci_mod_LDFLAGS): New variable.
26722 (usbms_mod_SOURCES): New variable.
26723 (usbms_mod_CFLAGS): New variable.
26724 (usbms_mod_LDFLAGS): New variable.
26725 (usb_keyboard_mod_SOURCES): New variable.
26726 (usb_keyboard_mod_CFLAGS): New variable.
26727 (usb_keyboard_mod_LDFLAGS): New variable.
26728 * include/grub/smbus.h: New file.
26729 * include/grub/cs5536.h: New file.
26730
0b35b2a9
CW
267312010-06-02 Colin Watson <cjwatson@ubuntu.com>
26732
26733 * util/grub.d/00_header.in: Add safety check to make sure that
26734 ${locale_dir} exists before trying to probe it.
26735
ca0afd5b
CW
267362010-06-02 Colin Watson <cjwatson@ubuntu.com>
26737
26738 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
26739 per the GNU Coding Standards; this is now too obscure to be worth
26740 documenting.
26741 (QNX): Likewise.
26742 (chainloader): Remove cross-reference to `SCO UnixWare'.
26743
1c41aa78
CW
267442010-06-02 Colin Watson <cjwatson@ubuntu.com>
26745
26746 * docs/grub.texi (Chain-loading): New section.
26747 (DOS/Windows): New section, borrowed from GRUB Legacy with details
26748 adjusted for GRUB 2.
26749 (SCO UnixWare): Likewise.
26750 (QNX): Likewise.
26751 (chainloader): Add reference to `Block list syntax'.
26752 (drivemap): New section.
26753 (parttool): New section.
26754
bb8ea0f5
CW
267552010-06-02 Colin Watson <cjwatson@ubuntu.com>
26756
26757 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
26758 the grub shell'.
26759 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
26760 (Installing GRUB using grub-install): Remove reference to the grub
26761 shell; mention `grub-mkimage' and `grub-setup' instead.
26762 (Invoking grub-install): Likewise.
26763 (Interface): Add reference to `Menu entry editor'.
26764 (serial): Remove `--device' option.
26765
288dd6ed
CW
267662010-06-02 Colin Watson <cjwatson@ubuntu.com>
26767
26768 * docs/grub.texi (Configuration): New section, documenting
26769 configuration file generation using grub-mkconfig. I've left a slot
26770 for documenting the full shell scripting format but have not yet
26771 started on writing that up.
26772 (Invoking grub-mkconfig): New section.
26773
34c9f0e9
CW
267742010-06-02 Colin Watson <cjwatson@ubuntu.com>
26775
26776 * docs/grub.texi (direntry): Remove grub-terminfo reference.
26777 (GNU GRUB manual): Likewise.
26778 (General commands): Update description of `terminfo' for GRUB 2.
26779
9121567e
CW
267802010-06-02 Colin Watson <cjwatson@ubuntu.com>
26781
26782 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
26783 (GRUB_MOD_INIT): Fix capitalisation.
26784 * docs/grub.texi (Command-line and menu entry commands): Document
26785 gettext and gptsync commands.
26786
ab631611
CW
267872010-06-02 Colin Watson <cjwatson@ubuntu.com>
26788
26789 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
26790 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
26791
bde4a9ac
CW
267922010-06-01 Colin Watson <cjwatson@ubuntu.com>
26793
26794 Add btrfs probing support, currently only in the single-device case.
26795
26796 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
26797 function.
26798 (grub_guess_root_device): Call find_root_device_from_mountinfo
26799 before looking in /dev.
26800
b1d17e10
VS
268012010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
26802
26803 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
26804 GRUB_DISK_SIZE_UNKNOWN.
26805 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
26806
dfbfe004
JS
268072010-05-31 Jiro SEKIBA <jir@unicus.jp>
26808
26809 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
26810 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
26811 corrupted or not synced properly.
26812
c2ffc8e9
VS
268132010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
26814
26815 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
26816 Reported by: Seth Goldberg.
26817
56293166
VS
268182010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
26819
26820 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
26821 addition of dest.
26822 Reported by: Seth Goldberg.
26823
7620e7de
VS
268242010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
26825
26826 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
26827 Reported by: Seth Goldberg.
26828
c837af3f
VS
268292010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
26830
26831 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
26832 64-bit address as signed on MIPS.
26833
c7c75cf4
CW
268342010-05-28 Colin Watson <cjwatson@ubuntu.com>
26835
26836 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
26837 to the empty string.
26838
fa4b8490
BC
268392010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
26840
26841 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
26842
26843 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
26844 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
26845 * kern/misc.c (__enable_execute_stack): Disable on
26846 GRUB_MACHINE_EMU.
26847
a33075b9
CW
268482010-05-28 Colin Watson <cjwatson@ubuntu.com>
26849
26850 Make grub-probe work with symbolic links under /dev/mapper as well
26851 as with real block devices. The Linux world seems to be (at best)
26852 in transition here, and GRUB shouldn't get caught in the middle.
26853
26854 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
26855 /dev/mapper.
26856
d8708134
CW
268572010-05-27 Colin Watson <cjwatson@ubuntu.com>
26858
26859 * util/grub-script-check.c (main): Ensure defined behaviour on empty
26860 input files (in which case exit zero).
26861
db2102a0
CW
268622010-05-27 Colin Watson <cjwatson@ubuntu.com>
26863
26864 * kern/emu/misc.c (canonicalize_file_name): realpath can still
26865 return NULL for various reasons even if it has a maximum-length
26866 buffer: for example, there might be a symlink loop, or the path
26867 might exceed PATH_MAX. If this happens, return NULL.
26868
5fdba519
RM
268692010-05-27 Robert Millan <rmh@gnu.org>
26870
26871 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
26872 partmap module to handle cross-partmap setups.
26873 Reported by Orestes Mas. Gràcies!
26874
d1d368e4
CW
268752010-05-27 Colin Watson <cjwatson@ubuntu.com>
26876
26877 * util/grub-mkrescue.in: Initialise override_dir rather than
26878 assuming that it's unset or empty in the environment.
26879
95ac3c73
GS
268802010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
26881
26882 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
26883 variable index into p_index to suppress a warning with -Wshadow.
26884
7d8c0213
BC
268852010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
26886
26887 * INSTALL: Added flex >= 2.5.35 requirement.
26888
db4d5813
VS
268892010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
26890
26891 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
26892
f24f4300
VS
268932010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
26894
26895 cmostest support.
26896
26897 * commands/i386/cmostest.c: New file.
26898 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
26899 (cmostest_mod_SOURCES): New variable.
26900 (cmostest_mod_CFLAGS): Likewise.
26901 (cmostest_mod_LDFLAGS): Likewise.
26902 * conf/i386-pc.rmk: Likewise.
26903 * docs/grub.texi (Vendor power-on keys): New section.
26904 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
26905 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
26906 and GRUB_BUTTON_CMOS_ADDRESS.
26907 * util/grub.d/00_header.in: Handle powering-on by separate button.
26908
ad603f61
VS
269092010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
26910
26911 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
26912 Removed drawing_scrollbar argument. All users updated
26913 Fixes #29792.
26914 Reported by Jo Shields
26915
3ecb080a
VS
269162010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
26917
26918 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
26919 buffer since gfxterm handles double repaint.
26920
5f2316c1
VS
269212010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
26922
26923 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
26924 * term/gfxterm.c (real_scroll): Likewise.
26925
9a25f885
VS
269262010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
26927
26928 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
26929 before calling BIOS.
26930
39fbb79a
VS
269312010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
26932
26933 * include/grub/i18n.h: Always enable grub_gettext.
26934
228cfa97
VS
269352010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
26936
26937 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
26938 partition naming style.
26939
21717c8f
CW
269402010-05-21 Colin Watson <cjwatson@ubuntu.com>
26941
26942 * util/grub-mkconfig.in: Fix handling of -o so that it works when
26943 not the first option.
26944
c0f48e65
CW
269452010-05-20 Colin Watson <cjwatson@ubuntu.com>
26946
26947 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
26948
96779aec
CW
269492010-05-20 Colin Watson <cjwatson@ubuntu.com>
26950
26951 * util/misc.c: Move inclusion of <limits.h> to ...
26952 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
26953
fa9d256e
GS
269542010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
26955
26956 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
26957 Fix merge error in NetBSD code.
26958 (find_partition_start) [__NetBSD__]: Likewise.
26959
123b7a85
BC
269602010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
26961
26962 Fix grub-mkrescue usage unit testing.
26963
26964 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
26965
74276c0d
CF
269662010-05-18 Christian Franke <franke@computer.org>
26967
26968 * util/grub.d/10_windows.in: Use path names instead of
26969 drive letters to prevent warning from Cygwin 1.7.
26970 Add drivemap command to menuentry if needed.
26971
c4f7b523
ST
269722010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
26973
26974 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
26975 gnumach and gnumach.gz.
26976
95b97950
VS
269772010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
26978
26979 * include/grub/i18n.h (gettext): Inline instead of using #define.
26980 (grub_gettext): Likewise.
26981 (_): Likewise.
26982
01b8d2d7
VS
269832010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
26984
26985 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
26986 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
26987 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
26988 (main): Add a slash after pkglibdirroot.
26989
654e1d1e
VS
269902010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
26991
26992 * util/grub-install.in: Add missing "in" keyword.
26993
26966aeb
VS
269942010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
26995
26996 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
26997 Reported by: Seth Goldberg.
26998
75006747
VS
269992010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
27000
27001 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
27002
74cbf5bd
CW
270032010-05-18 Colin Watson <cjwatson@ubuntu.com>
27004
27005 * configure.ac: Check for Linux device-mapper support.
27006
27007 * util/hostdisk.c (device_is_mapped): New function.
27008 (find_partition_start): New function, partly broken out from
27009 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
27010 device-mapper support added.
27011 (linux_find_partition): Use find_partition_start.
27012 (convert_system_partition_to_system_disk): Add `st' argument.
27013 Support Linux /dev/mapper/* devices if device-mapper support is
27014 available; only DM-RAID devices are understood at present.
27015 (find_system_device): Add `st' argument. Pass it to
27016 convert_system_partition_to_system_disk.
27017 (grub_util_biosdisk_get_grub_dev): Pass stat result to
27018 find_system_device and convert_system_partition_to_system_disk. Use
27019 find_partition_start.
27020
27021 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
27022 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
27023 * util/deviceiter.c [__linux__]: Define MINOR.
27024 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
27025 * util/mkdevicemap.c (grub_putchar): New function.
27026 (grub_getkey): New function.
27027 (grub_refresh): New function.
27028 (main): Set debug=all if -v -v is used.
27029
355b51e9
CW
270302010-05-18 Colin Watson <cjwatson@ubuntu.com>
27031
27032 Fix build with non-GNU libcs.
27033
27034 * util/misc.c (canonicalize_file_name): Move to ...
27035 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
27036 grub_make_system_path_relative_to_its_root.
27037
7fb5c25f
CW
270382010-05-18 Colin Watson <cjwatson@ubuntu.com>
27039
27040 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
27041 we handle finding grub-mkimage. Default to finding grub-mkimage in
27042 ${bindir} with program_transform_name applied, and provide a
27043 --grub-mkimage option to override this.
27044
1d3293d6
VS
270452010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
27046
27047 Remove grub-mkisofs.
27048
27049 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
27050 (grub_mkisofs_SOURCES): Removed.
27051 (grub_mkisofs_CFLAGS): Removed.
27052 * util/mkisofs/defaults.h: Removed.
27053 * util/mkisofs/eltorito.c: Likewise.
27054 * util/mkisofs/exclude.h: Likewise.
27055 * util/mkisofs/hash.c: Likewise.
27056 * util/mkisofs/include/: Likewise.
27057 * util/mkisofs/include/fctldefs.h: Likewise.
27058 * util/mkisofs/include/mconfig.h: Likewise.
27059 * util/mkisofs/include/prototyp.h: Likewise.
27060 * util/mkisofs/include/statdefs.h: Likewise.
27061 * util/mkisofs/iso9660.h: Likewise.
27062 * util/mkisofs/joliet.c: Likewise.
27063 * util/mkisofs/match.c: Likewise.
27064 * util/mkisofs/match.h: Likewise.
27065 * util/mkisofs/mkisofs.c: Likewise.
27066 * util/mkisofs/mkisofs.h: Likewise.
27067 * util/mkisofs/msdos_partition.h: Likewise.
27068 * util/mkisofs/multi.c: Likewise.
27069 * util/mkisofs/name.c: Likewise.
27070 * util/mkisofs/rock.c: Likewise.
27071 * util/mkisofs/tree.c: Likewise.
27072 * util/mkisofs/write.c: Likewise.
27073
5dde9afe
VS
270742010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
27075
27076 Unify grub-mkimage accross platforms.
27077
27078 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
27079 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
27080 (grub_mkelfimage_SOURCES): Removed.
27081 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
27082 (util/grub-mkimage.c_DEPENDENCIES): .. this.
27083 (bin_UTILITIES): Add grub-mkimage.
27084 (grub_mkimage_SOURCES): New variable.
27085 (kernel_img_HEADERS): Remove machine/kernel.h.
27086 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
27087 (pkglib_PROGRAMS): Add kernel.img.
27088 (kernel_img_HEADERS): Add machine/kernel.h.
27089 (kernel_img_FORMAT): Removed.
27090 (bin_UTILITIES): Remove grub-mkimage.
27091 (grub_mkimage_SOURCES): Removed.
27092 (grub_mkimage_CFLAGS): Likewise.
27093 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
27094 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
27095 (pkglib_PROGRAMS): Add kernel.img.
27096 (bin_UTILITIES): Remove grub-mkimage.
27097 (grub_mkimage_SOURCES): Removed.
27098 (grub_mkimage_CFLAGS): Likewise.
27099 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
27100 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
27101 (pkglib_PROGRAMS): Add kernel.img.
27102 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
27103 (pkglib_PROGRAMS): Add kernel.img.
27104 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
27105 (grub_mkimage_SOURCES): Removed.
27106 (grub_mkimage_CFLAGS): Likewise.
27107 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
27108 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
27109 (pkglib_PROGRAMS): Add kernel.img.
27110 (bin_UTILITIES): Remove grub-mkimage.
27111 (grub_mkimage_SOURCES): Removed.
27112 (grub_mkimage_CFLAGS): Likewise.
27113 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
27114 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
27115 (grub_mkimage_SOURCES): Removed.
27116 (grub_mkimage_CFLAGS): Likewise.
27117 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
27118 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
27119 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
27120 (grub_pe32_optional_header): ... this.
27121 (grub_pe64_optional_header): ... and this. All users updated.
27122 (GRUB_PE32_PE32_MAGIC): Split into ..
27123 (GRUB_PE32_PE32_MAGIC): .. this.
27124 (GRUB_PE32_PE64_MAGIC): .. and this.
27125 (GRUB_PE32_SIGNATURE_SIZE): New definition.
27126 * include/grub/elf.h (PT_GNU_STACK): New definition.
27127 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
27128 * include/grub/i386/efi/kernel.h: Likewise.
27129 * include/grub/i386/kernel.h: Likewise.
27130 * include/grub/i386/pc/kernel.h: Likewise.
27131 * include/grub/i386/qemu/boot.h: Likewise.
27132 * include/grub/mips/kernel.h: Likewise.
27133 * include/grub/mips/qemu-mips/kernel.h: Likewise.
27134 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
27135 * include/grub/powerpc/kernel.h: Likewise.
27136 * include/grub/sparc64/ieee1275/boot.h: Likewise.
27137 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
27138 * include/grub/sparc64/kernel.h: Likewise.
27139 * include/grub/x86_64/efi/kernel.h: Likewise.
27140 * include/grub/x86_64/kernel.h: Likewise.
27141 * include/grub/offsets.h: New file.
27142 * include/grub/kernel.h (grub_module_info): Split into ...
27143 (grub_module_info32): ... this.
27144 (grub_module_info64): ... and this.
27145 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
27146 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
27147 (grub_boot_blocklist): Moved from here ...
27148 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
27149 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
27150 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
27151 * include/grub/types.h (grub_target_to_host16): Removed.
27152 (grub_target_to_host32): Likewise.
27153 (grub_target_to_host64): Likewise.
27154 (grub_host_to_target16): Likewise.
27155 (grub_host_to_target32): Likewise.
27156 (grub_host_to_target64): Likewise.
27157 (grub_host_to_target_addr): Likewise.
27158
27159 Support grub-mkrescue for efi, coreboot and qemu.
27160
27161 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
27162 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
27163 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
27164 * util/grub-mkrawimage.c: Moved from here ...
27165 * util/grub-mkimage.c: ... here. All users updated.
27166 (ALIGN_ADDR): Use image_target.
27167 (TARGET_NO_FIELD): New const.
27168 (image_target_desc): New type.
27169 (image_targets): New array.
27170 (grub_target_to_host64): Use image_target.
27171 (grub_target_to_host32): Likewise.
27172 (grub_target_to_host16): Likewise.
27173 (grub_host_to_target64): Likewise.
27174 (grub_host_to_target32): Likewise.
27175 (grub_host_to_target16): Likewise.
27176 (grub_host_to_target_addr): Likewise.
27177 (generate_image): Handle multiimage.
27178 (main): Require -O parameter. All users updated.
27179 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
27180 util/efi/grub-mkimage.c
27181 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
27182 New option --rom-directory.
27183 Use xorriso.
27184 * util/i386/efi/grub-mkimage.c: Removed.
27185 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
27186 (grub_target_to_host32): Likewise.
27187 (grub_target_to_host64): Likewise.
27188 (grub_host_to_target16): Likewise.
27189 (grub_host_to_target32): Likewise.
27190 (grub_host_to_target64): Likewise.
27191 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
27192 (grub_target_to_host32): Likewise.
27193 (grub_target_to_host64): Likewise.
27194 (grub_host_to_target16): Likewise.
27195 (grub_host_to_target32): Likewise.
27196 (grub_host_to_target64): Likewise.
27197
f4fc97d0
BC
271982010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
27199
27200 Source tree is reorganized for emu build.
27201
27202 * include/grub/util/console.h: Move from here...
27203 * include/grub/emu/console.h: ...to here.
27204 * include/grub/util/getroot.h: Move from here...
27205 * include/grub/emu/getroot.h: ...to here.
27206 * include/grub/util/hostdisk.h: Move from here...
27207 * include/grub/emu/hostdisk.h: ...to here.
27208 * util/console.c: Move from here...
27209 * kern/emu/console.c: ...to here.
27210 * util/getroot.c: Move from here...
27211 * kern/emu/getroot.c: ...to here.
27212 * util/grub-emu.c: Move from here...
27213 * kern/emu/main.c: ...to here.
27214 * util/hostdisk.c: Move from here...
27215 * kern/emu/hostdisk.c: ...to here.
27216 * util/hostfs.c: Move from here...
27217 * kern/emu/hostfs.c: ...to here.
27218 * util/mm.c: Move from here...
27219 * kern/emu/mm.c: ...to here.
27220 * util/pci.c: Move from here...
27221 * bus/emu/pci.c: ...to here.
27222 * util/sdl.c: Move from here...
27223 * video/emu/sdl.c: ...to here.
27224 * util/time.c: Move from here...
27225 * kern/emu/time.c: ...to here.
27226 * util/usb.c: Move from here...
27227 * bus/usb/emu/usb.c: ...to here.
27228
27229 * include/grub/emu/misc.h: New header for grub-emu functions.
27230 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
27231
27232 * conf/any-emu.rmk: Rule updates for above renames.
27233 * conf/common.rmk: Likewise.
27234 * conf/i386-pc.rmk: Likewise.
27235 * conf/i386-qemu.rmk: Likewise.
27236 * conf/mips.rmk: Likewise.
27237 * conf/sparc64-ieee1275.rmk: Likewise.
27238 * conf/x86-efi.rmk: Likewise.
27239
27240 * disk/lvm.h: #include updates for above renames.
27241 * util/grub-mkrelpath.c: Likewise.
27242 * util/grub-probe.c: Likewise.
27243 * util/i386/pc/grub-setup.c: Likewise.
27244 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27245 * kern/emu/console.c: Likewise.
27246 * kern/emu/getroot.c: Likewise.
27247 * kern/emu/hostdisk.c: Likewise.
27248 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
27249
27250 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
27251 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
27252 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
27253 * util/misc.c: Remove grub-emu functions.
27254
cced9145
VS
272552010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
27256
27257 Fix gfxmenu crash.
27258 Reported by: Thorsten Grützmacher.
27259
27260 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
27261 timeout hook.
27262 (circprog_set_property): Register and unregister timeout hook.
27263 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
27264 (label_destroy): Free template. and unregister hook.
27265 (label_set_state): New function.
27266 (label_set_property): Handle templates and hooks.
27267 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
27268 timeout hook.
27269 (progress_bar_set_property): Register and unregister timeout hook.
27270 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
27271 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
27272 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
27273 (update_timeout_visit): Removed.
27274 (update_timeouts): New function.
27275 (redraw_timeouts): Likewise.
27276 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
27277 (grub_gfxmenu_clear_timeout): Likewise.
27278 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
27279 (grub_gfxmenu_timeout_notify): Likewise.
27280 (grub_gfxmenu_timeout_notifications): New external variable.
27281 (grub_gfxmenu_timeout_register): New function.
27282 (grub_gfxmenu_timeout_unregister): Likewise.
27283
c6e5caab
VS
272842010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
27285
27286 Transform (broken) vga terminal into (working) vga video driver.
27287
27288 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
27289 video/i386/pc/vga.c.
27290 * include/grub/video.h (grub_video_driver_id):
27291 Add GRUB_VIDEO_DRIVER_VGA.
27292 * term/i386/pc/vga.c: Renamed to ...
27293 * video/i386/pc/vga.c: ...this
27294 (DEBUG_VGA): Removed.
27295 (CHAR_WIDTH): Likewise.
27296 (CHAR_HEIGHT): Likewise.
27297 (TEXT_WIDTH): Likewise.
27298 (TEXT_HEIGHT): Likewise.
27299 (DEFAULT_FG_COLOR): Likewise.
27300 (DEFAULT_BG_COLOR): Likewise.
27301 (colored_char): Likewise.
27302 (xpos): Likewise.
27303 (ypos): Likewise.
27304 (cursor_state): Likewise.
27305 (fg_color): Likewise.
27306 (bg_color): Likewise.
27307 (text_buf): Likewise.
27308 (page): Likewise.
27309 (font): Likewise.
27310 (framebuffer): New variable.
27311 (set_read_map): Disabled.
27312 (setup): New variable.
27313 (is_target): Likewise.
27314 (grub_vga_mod_init): Likewise.
27315 (grub_vga_mod_fini): Likewise.
27316 (check_vga_mem): Likewise.
27317 (write_char): Likewise.
27318 (write_cursor): Likewise.
27319 (scroll_up): Likewise.
27320 (grub_vga_putchar): Likewise.
27321 (grub_vga_getcharwidth): Likewise.
27322 (grub_vga_getwh): Likewise.
27323 (grub_vga_getxy): Likewise.
27324 (grub_vga_gotoxy): Likewise.
27325 (grub_vga_cls): Likewise.
27326 (grub_vga_setcolorstate): Likewise.
27327 (grub_vga_setcursor): Likewise.
27328 (grub_video_vga_init): New function.
27329 (grub_video_vga_setup): Likewise.
27330 (grub_video_vga_fini): Likewise.
27331 (update_target): Likewise.
27332 (grub_video_vga_blit_bitmap): Likewise.
27333 (grub_video_vga_blit_render_target): Likewise.
27334 (grub_video_vga_set_active_render_target): Likewise.
27335 (grub_video_vga_get_active_render_target): Likewise.
27336 (grub_video_vga_swap_buffers): Likewise.
27337 (grub_video_vga_set_palette): Likewise.
27338 (grub_video_vga_get_info_and_fini): Likewise.
27339 (grub_vga_term): Removed.
27340 (grub_video_vga_adapter): New variable.
27341 (GRUB_MOD_INIT): Register a video driver instead of terminal.
27342 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
27343
2bf61a98
VS
273442010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
27345
27346 * video/readers/jpeg.c: Indented.
27347
09ddcd11
VS
273482010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
27349
27350 Various jpeg cleanups.
27351
27352 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
27353 (grub_jpeg_decode_quan_table): Use sizeof.
27354 (grub_jpeg_decode_du): Use ARRAY_SIZE.
27355
e5507505
PH
273562010-05-05 Peter Hurley <No e-mail available> (tiny change)
27357
27358 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
27359 tables. Ignore non-last ac bit.
27360 (grub_jpeg_decode_quan_table): Likewise.
27361
7e720a9b
VS
273622010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
27363
27364 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
27365 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
27366 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
27367 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
27368 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
27369 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
27370
a7fc080b
VS
273712010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
27372
27373 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
27374 error.
27375
2bf6012d
VS
273762010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
27377
27378 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
27379
265d68cd
VS
273802010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
27381
27382 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
27383 condition.
27384
273852010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7dd5a111
VS
27386
27387 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
27388 part.
27389
265d68cd 273902010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9b058d52
VS
27391
27392 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
27393 pointers.
27394
265d68cd 273952010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25893831
VS
27396
27397 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
27398
d1b61374
CF
273992010-05-01 Christian Franke <franke@computer.org>
27400
27401 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
27402 Remove broken Cygwin path conversion.
27403 * util/misc.c: [__CYGWIN__] Add include and define.
27404 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
27405 for Cygwin 1.7.
27406 (make_system_path_relative_to_its_root): Simplify loop, replace early
27407 return by break.
27408 [__CYGWIN__] Add conversion to win32 path.
27409 Include "/" case in trailing slash removal.
27410
3558c6e9
VS
274112010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
27412
27413 * kern/main.c (grub_load_config): Fix copy-pasted comment.
27414 Reported by: Seth Goldberg
27415
f5f3ff93
VS
274162010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
27417
27418 * commands/help.c (grub_cmd_help): Fix a typo.
27419 Reported by: Seth Goldberg
27420
d8b5cd40
VS
274212010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
27422
27423 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
27424 name and add N_.
27425 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
27426 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
27427 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
27428 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
27429 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
27430 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
27431 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
27432 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
27433 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
27434 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
27435 * normal/context.c (GRUB_MOD_INIT): Likewise.
27436 * normal/main.c (GRUB_MOD_INIT): Likewise.
27437 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
27438 * term/serial.c (GRUB_MOD_INIT): Likewise.
27439 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
27440
88c14915
VS
274412010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
27442
27443 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
27444 extra == 0.
27445
165134bc
VS
274462010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
27447
27448 * commands/iorw.c: New file.
27449 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
27450 (iorw_mod_SOURCES): New variable.
27451 (iorw_mod_CFLAGS): Likewise.
27452 (iorw_mod_LDFLAGS): Likewise.
27453
c5ac9b32
VS
274542010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
27455
27456 Hotkey support
27457
27458 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
27459 * normal/main.c (hotkey_aliases): New variable.
27460 (grub_normal_add_menu_entry): Parse "--hotkey".
27461 * normal/menu_text.c (run_menu): Handle hotkeys.
27462
ce60689c
VS
274632010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
27464
27465 * kern/i386/coreboot/init.c (grub_machine_init): Call
27466 grub_machine_mmap_init on qemu.
27467
0359d006
VS
274682010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
27469
27470 * boot/i386/qemu/boot.S: Add a missing .code16.
27471
7819a456
VS
274722010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
27473
27474 Use LBIO on coreboot.
27475
27476 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
27477 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
27478 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
27479 New declaration.
27480 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
27481 grub_machine_mmap_init on coreboot.
27482 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
27483 GRUB_LINUXBIOS_MEMBER_LINK.
27484 (grub_machine_mmap_iterate): Fix declaration.
27485 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
27486
7210dca9
VS
274872010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
27488
27489 Split coreboot and multiboot ports.
27490
27491 * conf/i386-multiboot.rmk: New file.
27492 * configure.ac: Add multiboot port.
27493 * include/grub/i386/multiboot/boot.h: New file.
27494 * include/grub/i386/multiboot/console.h: Likewise.
27495 * include/grub/i386/multiboot/init.h: Likewise.
27496 * include/grub/i386/multiboot/kernel.h: Likewise.
27497 * include/grub/i386/multiboot/loader.h: Likewise.
27498 * include/grub/i386/multiboot/memory.h: Likewise.
27499 * include/grub/i386/multiboot/serial.h: Likewise.
27500 * include/grub/i386/multiboot/time.h: Likewise.
27501 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
27502 * loader/multiboot.c: Likewise.
27503 * loader/multiboot_mbi2.c: Likewise.
27504 * util/grub-mkrescue.in: Generate multiboot rescue.
27505
6f8aaf68
VS
275062010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
27507
3080f7a7
VS
27508 * kern/parser.c (grub_parser_execute): Cope with read-only config.
27509
275102010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
27511
27512 Merge handling of input and output terminals. Fix a hang.
6f8aaf68
VS
27513
27514 * commands/terminal.c (abstract_terminal): New struct.
27515 (handle_command): New function. Based on grub_cmd_terminal_input.
27516 (grub_cmd_terminal_input): Use handle_command.
27517 (grub_cmd_terminal_output): Use handle_command.
27518
a8ebb841
BC
275192010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
27520
27521 Fix comment handling.
27522
27523 * tests/grub_script_comments.in: New testcase.
27524 * conf/tests.rmk: Rules for new testcase.
27525 * script/yylex.l: Updated flex rules.
27526
bb06ba08
ST
275272010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
27528
27529 * docs/grub.texi (play): Document that zero pitches produce rests.
c76a1838
ST
27530 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
27531 if argc is 1.
bb06ba08 27532
cc9d2425
VS
275332010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
27534
27535 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
27536 autogen issues.
27537
460d8402
CF
275382010-04-26 Christian Franke <franke@computer.org>
27539
27540 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
27541 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
27542 (grub_get_prefix): Remove function.
27543 * util/grub-emu.c (main): Replace grub_get_prefix () call by
27544 make_system_path_relative_to_its_root ().
27545 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
27546
553c01f9
CF
275472010-04-24 Christian Franke <franke@computer.org>
27548
27549 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
27550 (kernel_img_LDFLAGS): Remove -static-libgcc.
27551
2aec1692
CF
275522010-04-24 Christian Franke <franke@computer.org>
27553
27554 * configure.ac: Do not CHECK_BSS_START_SYMBOL
27555 and CHECK_END_SYMBOL if grub-emu is built.
27556 Unset TARGET_OBJ2ELF if grub-emu is built
27557 without module support.
27558
f67dc308
JS
275592010-04-24 Jiro SEKIBA <jir@unicus.jp>
27560
27561 Nilfs2 support.
27562
27563 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
27564 (grub_fstest_SOURCES): Likewise.
27565 (pkglib_MODULES): Add nilfs2.mod.
27566 (nilfs2_mod_SOURCES): New variable.
27567 (nilfs2_mod_CFLAGS): Likewise.
27568 (nilfs2_mod_LDFLAGS): Likewise.
27569 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
27570 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
27571 * fs/nilfs2.c: New file.
27572
4ba8d354
VS
275732010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
27574
27575 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
27576 is not supported.
27577
0d2c20c6
GS
275782010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
27579
27580 Add grub-mkconfig support for NetBSD.
27581
27582 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
27583 * util/grub-mkconfig.in: export new NetBSD specific variables.
27584 * po/POTFILES-shell: added 10_netbsd.in.
27585 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
27586
bc4a2d83
BC
275872010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
27588
27589 Fix emu build with grub-emu-pci and grub-emu-modules.
27590
27591 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
27592 functions.
27593 * include/grub/libpciaccess.h: New file.
27594 * conf/any-emu.rmk: Update kernel headers for emu build.
27595
f48c87aa
VS
275962010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
27597
27598 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
27599
18959385
VS
276002010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
27601
27602 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
27603
0037de3f
VS
276042010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
27605
27606 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
27607 Retrieve chosen/bootpath if bootpath isn't hardcoded.
27608 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
27609 util/ieee1275/ofpath.c.
27610 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
27611 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
27612 * include/grub/sparc64/ieee1275/boot.h
27613 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
27614 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
27615 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
27616 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
27617 const char *.
27618 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
27619 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
27620 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
27621 install.
27622
38e55e90
GS
276232010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
27624
27625 * util/grub-mkconfig.in: Corrected two == equality tests.
27626 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
27627 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
27628 expect a number appended to it.
27629 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
27630 expects a number appended to it.
27631
a9e6ff28
VS
276322010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
27633
27634 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
27635
0b830b8f
VS
276362010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
27637
27638 * util/hostdisk.c (make_device_name): Change to new partition naming.
27639
0973daeb
VS
276402010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
27641
27642 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
27643
460d8402 276442010-04-17 Christian Franke <franke@computer.org>
ebfe7eb4
CF
27645
27646 * Makefile.in: Add missing localedir setting.
27647
0b456309
CW
276482010-04-14 Colin Watson <cjwatson@ubuntu.com>
27649
27650 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
27651 mistake in r2156. Noticed by Anthony Fok.
27652
27653 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
27654 @localedir@.
27655 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
27656
08f46d62
BC
276572010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
27658
27659 Fix a spurious, uninitialized variable warning.
27660
27661 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
27662 Initialize variable, shdr.
27663 (grub_freebsd_load_elfmodule): Likewise.
27664 (grub_freebsd_load_elf_meta): Likewise.
27665
8c4a72d4
BC
276662010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
27667
27668 Fix for escaped dollar in double quoted strings.
27669
27670 * script/yylex.l: Updated flex rules.
27671 * conf/tests.rmk: Rule for new testcase.
27672 * tests/grub_script_dollar.in: New testcase.
27673
ce44826e
CPE
276742010-04-13 Carles Pina i Estany <carles@pina.cat>
276752010-04-13 Colin Watson <cjwatson@ubuntu.com>
27676
27677 Enclose all translated strings in grub.cfg in single quotes, and
27678 escape them appropriately (Ubuntu bug #552921).
27679
27680 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
27681 * util/grub.d/10_hurd.in: Use it.
27682 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
27683 * util/grub.d/10_linux.in (linux_entry): Likewise.
27684
4b0cd8f8
VS
276852010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
27686
27687 Fix cygwin compilation.
27688
27689 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
27690 * include/grub/misc.h (__register_frame_info)
27691 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
27692 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
27693 * kern/misc.c (__register_frame_info)
27694 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
27695 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
27696
01fcf061
VS
276972010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
27698
27699 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
27700
5d04b11e
VS
277012010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
27702
27703 Unify libgcc processing.
27704
27705 * Makefile.in (kernel_img_LDFLAGS): New variable.
27706 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
27707 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
27708 overwriting.
27709 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
27710 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
27711 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
27712 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
27713 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
27714 overwriting. Remove -lgcc and -static-libgcc
27715 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
27716 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
27717 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
27718 (kernel_img_LDFLAGS): Append instead of overwriting.
27719 Remove -lgcc and -static-libgcc
27720 * conf/sparc64-ieee1275.rmk: Likewise.
27721 * include/grub/powerpc/libgcc.h: Move to ...
27722 * include/grub/libgcc.h: .. this.
27723 * include/grub/libgcc.h: Don't export most of the function on x86.
27724 (__bswapsi2): New export.
27725 (__bswapdi2): Likewise.
27726 * include/grub/mips/libgcc.h: Removed.
27727 * include/grub/sparc64/libgcc.h: Likewise.
27728
b7f3ac29
VS
277292010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
27730
27731 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
27732 disk_info_msg (conflicts with gettexting into languages with cases).
27733
2c7031b1
GS
277342010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
27735
27736 Add grub-probe support for NetBSD.
27737
27738 * util/getroot.c (find_root_device): Convert block device to
27739 character device on NetBSD.
27740 * util/probe.c (probe): Require character device on NetBSD.
27741 * util/hostdisk.c: NetBSD specific headers.
27742 (configure_device_driver): new function to tune device driver
27743 parameters (currently only for NetBSD floppy driver).
27744 (grub_util_biosdisk_open): NetBSD specific code (get disk size
27745 via disklabel ioctl).
27746 (open_device): call configure_device_driver on NetBSD.
27747 (convert_system_partition_to_system_disk): NetBSD specific code.
27748 (device_is_wholedisk): Likewise.
27749 (grub_util_biosdisk_get_grub_dev): Likewise.
27750 (make_device_name): Fixed a typo in bsd_part_str.
27751 * configure.ac: check for opendisk() and getrawpartition() on
27752 NetBSD and set LIBUTIL.
27753 * Makefile.in: add LIBUTIL to LIBS.
27754
f516290c
BC
277552010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
27756
27757 Documentation fix.
27758
27759 * util/grub-script-check.c: Better help message.
27760
d8dcc0df
BC
277612010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
27762
27763 Fix FreeBSD build.
27764
27765 * configure.ac: Flex version check.
27766 * conf/common.rmk: Add -Wno-error to sh.mod.
27767 * script/yylex.l: Remove all #pragma.
27768
6734334a
VS
277692010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
27770
27771 * include/grub/util/misc.h (canonicalise_file_name): Add missing
27772 prototype.
27773 Reported by: Seth Goldberg.
27774
daea6abd
VS
277752010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
27776
27777 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
27778 Rename "module" to "module2".
27779 Reported by: Seth Goldberg.
27780
f2fd9d2b
VS
277812010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
27782
27783 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
27784 EXPORT_FUNC.
27785 Reported by: Seth Goldberg.
27786
be124579
VS
277872010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
27788
27789 * lib/posix_wrap/locale.h: Add missing file.
27790 Reported by: Seth Goldberg.
27791
ef5da797
VS
277922010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
27793
27794 grub-emu module load support.
27795
27796 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
27797 NO_DYNAMIC_MODULES switched to this.
27798 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
27799 (CFLAGS): Likewise.
27800 * conf/any-emu.rmk: Generate symlist.
27801 (kernel_img_HEADERS): Add util/datetime.h.
27802 (kernel_img_HEADERS) [sdl]: Add sdl.h.
27803 (kernel_img_HEADERS) [libusb]: Add libusb.h.
27804 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
27805 kern/$(target_cpu)/cache.S.
27806 * configure.ac (grub-emu-modules): New option.
27807 * genmk.rb: Handle multiple source lists.
27808 * include/grub/sdl.h: New file.
27809 * include/grub/libusb.h: Likewise.
27810 * util/grub-emu.c (main): Hanle (host) root.
27811 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
27812 GRUB_ERR_UNKNOWN_DEVICE.
27813 * util/misc.c: Move mm functions to ...
27814 * util/mm.c: ... here. All users updated.
27815
47822096
VS
278162010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
27817
27818 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
27819 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
27820 missing files.
27821 (maintainer-clean): Remove libgcrypt-grub.
27822
5d7e7445
VS
278232010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
27824
27825 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
27826
25f4e252
EC
278272010-04-09 EFI Coder <eficoder@hotmail.com>
27828
27829 * normal/menu_text.c (print_message): Clean up the message and show
27830 the Fn information when on EFI
27831 * term/efi/console.c (grub_console_checkkey): Add F4 support.
27832
027de555
VS
278332010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
27834
27835 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
27836 All users updated.
27837 * normal/crypto.c (read_crypto_list): Likewise.
27838 * normal/dyncmd.c (read_command_list): Likewise.
27839 * normal/term.c (read_terminal_list): Likewise.
27840 * normal/main.c (read_lists): Use explicit prefix.
27841 (read_lists_hook): Use read_lists.
27842 (grub_normal_execute): Likewise.
27843
47779711
VS
278442010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
27845
27846 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
27847 Reported by: Thomas Schmitt.
27848 Add -no-emul-boot to grub-mkisofs parameters.
27849
1118c32e
VS
278502010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
27851
27852 * font/font.c: Indented.
27853
7d652447
BC
278542010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
27855
27856 Elif support to GRUB script (by Deepak Vankadaru).
27857
27858 * tests/grub_script_if.in: New testcase.
27859 * conf/tests.rmk: Rule for new testcase.
27860 * script/parser.y: Grammar rules for elif.
27861
34bb22df
BC
278622010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
27863
27864 While and until loops support to GRUB script.
27865
27866 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
27867 (grub_script_create_cmdwhile): New function prototype.
27868 (grub_script_execute_cmdwhile): New function prototype.
27869 * script/execute.c (grub_script_execute_cmdwhile): New function.
27870 * script/parser.y (command): New commands.
27871 (whilecmd): New grammar rule.
27872 (untilcmd): New grammar rule.
27873 * script/script.c (grub_script_create_cmdwhile): New function.
27874 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
27875 function.
27876
27877 * tests/grub_script_while1.in: New testcase.
27878 * conf/tests.rmk: Rule for new testcase.
27879
e215d8e0
VS
278802010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
27881
27882 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
27883 as *.jpg.
27884
d7c43ba1
MV
278852010-04-09 Mario Vazquez <mariovazq@gmail.com>
27886
27887 GRUB_BACKGROUND support.
27888
27889 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
27890 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
27891
d64795c0
VS
278922010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
27893
27894 Load fonts and modules for gfxmenu in grub-mkconfig.
d7c43ba1 27895 Idea by: Mario Vazquez
d64795c0
VS
27896
27897 * util/grub.d/00_header.in: Load pf2 and image modules.
27898
f267f83a
VS
278992010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
27900
27901 grub-mkconfig multiple terminal support.
27902
27903 * util/grub-mkconfig.in: Handle multiple terminals correctly.
27904 * util/grub.d/00_header.in: Likewise.
27905
b7841ceb
VS
279062010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
27907
27908 * Makefile.in: Specify files explicitly instead of using $< and $@ since
27909 we use cd $(srcdir).
27910
df60998c
CW
279112010-04-08 Colin Watson <cjwatson@ubuntu.com>
27912
27913 * util/grub.d/10_linux.in: Only use the first word of
27914 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
27915 spaces in GRUB_DISTRIBUTOR.
27916 * util/grub.d/10_kfreebsd.in: Likewise.
27917 * util/grub.d/10_hurd.in: Likewise.
27918
fa09c82e
BC
279192010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
27920
14e18ae3 27921 Fix unit testing framework for Qemu 0.12.
fa09c82e
BC
27922
27923 * tests/util/grub-shell.in: Remove -serial stdio option.
27924
daf892b3
BC
279252010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
27926
27927 POSIX header file wrappers.
27928
27929 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
27930 equivalents.
27931 * lib/posix_wrap/ctype.h: Likewise.
27932 * lib/posix_wrap/errno.h: Likewise.
27933 * lib/posix_wrap/langinfo.h: Likewise.
27934 * lib/posix_wrap/limits.h: Likewise.
27935 * lib/posix_wrap/localcharset.h: Likewise.
27936 * lib/posix_wrap/stdint.h: Likewise.
27937 * lib/posix_wrap/stdio.h: Likewise.
27938 * lib/posix_wrap/stdlib.h: Likewise.
27939 * lib/posix_wrap/string.h: Likewise.
27940 * lib/posix_wrap/sys/types.h: Likewise.
27941 * lib/posix_wrap/unistd.h: Likewise.
27942 * lib/posix_wrap/wchar.h: Likewise.
27943 * lib/posix_wrap/wctype.h: Likewise.
27944 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
27945 (grub_script.yy.h): Likewise.
27946 * script/yylex.l: Remove POSIX emulation #defines.
27947 * Makefile.in (POSIX_CFLAGS): New variable.
27948 (GNULIB_UTIL_CFLAGS): Likewise.
27949
27950 Regexp support.
27951
27952 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
27953 (regexp_mod_SOURCES): New variable.
27954 (regexp_mod_CFLAGS): Likewise.
27955 (regexp_mod_LDFLAGS): Likewise.
27956 * commands/regexp.c: New file.
27957 * gnulib/regcomp.c: New file. Imported from gnulib.
27958 * gnulib/regex.c: Likewise.
27959 * gnulib/regex_internal.c: Likewise.
27960 * gnulib/regex_internal.h: Likewise.
27961 * gnulib/regexec.c: Likewise.
27962 * gnulib/regex.h: Likewise.
27963
974ac4f7
VS
279642010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
27965
27966 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
27967 unsupported video mode types.
27968
2622c3ff
VS
279692010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
27970
27971 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
27972
064cb524
VS
279732010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
27974
27975 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
27976 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
27977
a8c3b552
VS
279782010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
27979
27980 Remove unused grub_vga_get_font.
27981
27982 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
27983 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
27984
187bbe3d
GS
279852010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
27986
27987 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
27988 * include/grub/misc.h: Likewise.
27989
b9396631
GS
279902010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
27991
27992 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
27993 for which failure is fatal.
27994
50479feb
GS
279952010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
27996
27997 * util/grub-install.in: Use mkdir -p to create grub directory.
27998 * util/i386/efi/grub-install.in: Likewise.
27999 * util/ieee1275/grub-install.in: Likewise.
28000
b1654fdf
GS
280012010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
28002
28003 * Makefile.in (LEX): new variable.
28004
bd5a6415
GS
280052010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
28006
28007 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
28008 `=' and added double quotes on operands of this equality test.
28009
3db3a82b
VS
280102010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
28011
28012 * Makefile.in (uninstall): Remove a leftover debug echo.
28013 Reported by: Grégoire Sutre
28014
38023412
VS
280152010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
28016
28017 MIPS multiboot2 support.
28018
28019 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
28020 (multiboot2_mod_SOURCES): New variable.
28021 (multiboot2_mod_CFLAGS): Likewise.
28022 (multiboot2_mod_LDFLAGS): Likewise.
28023 (multiboot2_mod_ASFLAGS): Likewise.
28024 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
28025 definition.
28026 (MULTIBOOT_ENTRY_REGISTER): Likewise.
28027 (MULTIBOOT_MBI_REGISTER): Likewise.
28028 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
28029 (MULTIBOOT_ELF32_MACHINE): Likewise.
28030 (MULTIBOOT_ELF64_MACHINE): Likewise.
28031 * include/grub/mips/multiboot.h: New file.
28032 * include/grub/video.h (grub_video_driver_id): New type
28033 GRUB_VIDEO_DRIVER_SM712.
28034 (grub_video_get_info_and_fini): Export.
28035 (grub_video_get_palette): Likewise.
28036 (grub_video_get_driver_id): Likewise.
28037 * include/multiboot2.h: Resynced with spec.
28038 * loader/i386/multiboot.c: Moved from here ...
28039 * loader/multiboot.c: ... here. All users updated.
28040 (grub_multiboot_boot): Use platform-specific macros.
28041 * loader/i386/multiboot_elfxx.c: Moved from here ...
28042 * loader/multiboot_elfxx.c: ... here. All users updated.
28043 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
28044 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
28045 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
28046
47674667
VS
280472010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
28048
28049 Import gnulib argp module.
28050
28051 * gnulib/argp-ba.c: New file.
28052 * gnulib/argp-eexst.c: Likewise.
28053 * gnulib/argp-fmtstream.c: Likewise.
28054 * gnulib/argp-fmtstream.h: Likewise.
28055 * gnulib/argp-fs-xinl.c: Likewise.
28056 * gnulib/argp-help.c: Likewise.
28057 * gnulib/argp-namefrob.h: Likewise.
28058 * gnulib/argp-parse.c: Likewise.
28059 * gnulib/argp-pin.c: Likewise.
28060 * gnulib/argp-pv.c: Likewise.
28061 * gnulib/argp-pvh.c: Likewise.
28062 * gnulib/argp-version-etc.c: Likewise.
28063 * gnulib/argp-version-etc.h: Likewise.
28064 * gnulib/argp-xinl.c: Likewise.
28065 * gnulib/argp.h: Likewise.
28066
495442ed
VS
280672010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
28068
28069 * kern/device.c (grub_device_iterate): Clear errors after failed
28070 opening device.
28071
f9fd65df
VS
280722010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
28073
28074 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
28075 returned by firmware.
28076
af09641e
VS
280772010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
28078
28079 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
28080 compilation on coreboot and qemu
28081
016883a5
VS
280822010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
28083
28084 * include/multiboot2.h: Resync with spec.
28085
f97e1f7d
VS
280862010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
28087
28088 Multiboot2 tag support
28089
28090 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
28091 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
28092 Remove loader/multiboot_loader.c.
28093 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
28094 (grub_multiboot2_real_boot): Likewise.
28095 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
28096 (grub_get_multiboot_mmap_count): New proto.
28097 (grub_fill_multiboot_mmap): Likewise.
28098 (grub_multiboot_set_video_mode): Likewise.
28099 (grub_multiboot_set_console): Likewise.
28100 (grub_multiboot_load): Likewise.
28101 (grub_multiboot_load_elf): Likewise.
28102 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
28103 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
28104 * include/multiboot.h: Resynced with specification.
28105 * include/multiboot2.h: Resynced with specification.
28106 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
28107 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
28108 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
28109 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
28110 users updated.
28111 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
28112 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
28113 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
28114 Removed.
28115 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
28116 Moved from here...
28117 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
28118 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
28119 Moved from here...
28120 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
28121 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
28122 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
28123 All users updated.
28124 * loader/i386/multiboot_mbi2.c: New file.
28125
3506b90b
VS
281262010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
28127
28128 Resync with gnulib.
28129
28130 * Makefile.in (GNULIB_CFLAGS): New variable.
28131 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
28132 (grub_script_check_CFLAGS): New variable.
28133 * gnulib/alloca.h: Resync with gnulib.
28134 * gnulib/error.c: Likewise.
28135 * gnulib/error.h: Likewise.
28136 * gnulib/fnmatch.c: Likewise.
28137 * gnulib/fnmatch_loop.c: Likewise.
28138 * gnulib/getdelim.c: Likewise.
28139 * gnulib/getline.c: Likewise.
28140 * gnulib/getopt.c: Likewise.
28141 * gnulib/getopt1.c: Likewise.
28142 * gnulib/getopt_int.h: Likewise.
28143 * gnulib/gettext.h: Likewise.
28144 * gnulib/progname.c: Likewise.
28145 * gnulib/progname.h: Likewise.
28146
394a3120
GS
281472010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
28148
28149 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
28150 which is the case with --disabled-nls.
28151
28152 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
28153 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
28154 * util/misc.c: Likewise.
28155 * util/mkisofs/mkisofs.c: Likewise.
28156 * util/mkisofs/mkisofs.h: Likewise.
28157
969d1c78
VS
281582010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
28159
28160 Simplify Apple CC support.
28161
28162 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
28163 Add 0 byte at the end not to have a symbol with empty target.
28164 * mmap/i386/pc/mmap_helper.S: Likewise.
28165 * genmk.rb: Ignore errors 2030 and 2050.
28166 * kern/i386/pc/startup.S: Use LOCAL when possible.
28167
8d2977bb
BC
281682010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
28169
28170 Testcase and the fix for final semicolon on cmdline.
28171
28172 * tests/grub_script_final_semicolon.in: New testcase.
28173 * conf/tests.rmk: Rules for the new testcase.
28174 * script/parser.y: Grammar fix.
28175
a7bd6915
BC
281762010-03-26 BVK Chaitanya <bvk@localhost>
28177
28178 Blank lines testcase for GRUB script.
28179
28180 * tests/grub_script_blanklines.in: New testcase.
28181 * conf/tests.rmk: Rules for the new testcase.
28182
e4ff6628
VS
281832010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
28184
28185 Don't use __FILE__.
28186
28187 * genmk.rb: Add -DGRUB_FILE to all C targets.
28188 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
28189 * include/grub/list.h: Likewise.
28190 * include/grub/misc.h: Likewise.
28191 * include/grub/mm.h: Likewise.
28192 * include/grub/test.h: Likewise.
28193 * kern/mm.c: Likewise.
28194 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
28195
6a5cf6b6
VS
281962010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
28197
28198 Sunpc partitions support.
28199
28200 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
28201 (grub_fstest_SOURCES): Likewise.
28202 (pkglib_MODULES): Add part_sunpc.mod.
28203 (part_sunpc_mod_SOURCES): New variable.
28204 (part_sunpc_mod_CFLAGS): Likewise.
28205 (part_sunpc_mod_LDFLAGS): Likewise.
28206 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
28207 * partmap/sunpc.c: New file.
28208
746d9045
BC
282092010-03-26 BVK Chaitanya <bvk@localhost>
28210
28211 For loop support to GRUB script.
28212
28213 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
28214 (grub_script_create_cmdfor): New function prototype.
28215 (grub_script_execute_cmdfor): New function prototype.
28216 * script/execute.c (grub_script_execute_cmdfor): New function.
28217 * script/parser.y (command): New for command.
28218 (forcmd): New grammar rule.
28219 * script/script.c (grub_script_create_cmdfor): New function.
28220 * util/grub-script-check.c (grub_script_execute_cmdfor): New
28221 function.
28222 * tests/grub_script_for1.in: New testcase.
28223 * conf/tests.rmk: Rules for new testcase.
28224
18486b18
VS
282252010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
28226
28227 Nested partitions
28228
28229 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
28230 'partition' is NULL, grub_partition_get_start already does that.
28231 * commands/loadenv.c (check_blocklists): Likewise.
28232 (write_blocklists): Likewise.
28233 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
28234 (grub_fstest_SOURCES): Likewise.
28235 (pkglib_MODULES): Add part_bsd.mod.
28236 (part_bsd_mod_SOURCES): New variable.
28237 (part_bsd_mod_CFLAGS): Likewise.
28238 (part_bsd_mod_LDFLAGS): Likewise.
28239 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
28240 (grub_emu_SOURCES): Likewise.
28241 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28242 * include/grub/bsdlabel.h: New file.
28243 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
28244 'get_name'.
28245 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
28246 (grub_partition_map_list): New variable.
28247 (grub_partition_map_register): Inline.
28248 (grub_partition_map_unregister): Likewise.
28249 (FOR_PARTITION_MAPS): New macro.
28250 (grub_partition_map_iterate): Removed.
28251 (grub_partition_get_start): Handle nested partitions.
28252 * include/grub/msdos_partition.h: Remove bsd-related entries.
28253 (grub_pc_partition): Remove.
28254 * kern/disk.c (grub_disk_close): Free partition data.
28255 (grub_disk_adjust_range): Handle nested partitions.
28256 * kern/partition.c (grub_partition_map_probe): New function.
28257 (grub_partition_probe): Parse name to number, handle subpartitions.
28258 (get_partmap): New function.
28259 (grub_partition_iterate): Handle subpartitions.
28260 (grub_partition_get_name): Likewise.
28261 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
28262 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
28263 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
28264 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
28265 Set 'number'.
28266 (acorn_partition_map_probe): Remove.
28267 (acorn_partition_map_get_name): Likewise.
28268 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
28269 Set 'number'.
28270 Set 'index' to 0 since there can be only one partition entry per sector.
28271 (amiga_partition_map_probe): Remove.
28272 (amiga_partition_map_get_name): Likewise.
28273 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
28274 Set 'number'.
28275 Set 'offset' and 'index' to real positions of partitions.
28276 (apple_partition_map_probe): Remove.
28277 (apple_partition_map_get_name): Likewise.
28278 * partmap/bsdlabel.c: New file.
28279 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
28280 Set 'number'.
28281 Allocate 'data' so it can be correctly freed.
28282 Set 'index' to offset inside sector.
28283 (gpt_partition_map_probe): Remove.
28284 (gpt_partition_map_get_name): Likewise.
28285 * partmap/msdos.c (grub_partition_parse): Remove.
28286 (pc_partition_map_iterate): Don't force raw access.
28287 Set 'number'.
28288 Make 'ext_offset' a local variable.
28289 (pc_partition_map_probe): Remove.
28290 (pc_partition_map_get_name): Remove.
28291 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
28292 Set 'number'.
28293 (sun_partition_map_probe): Remove.
28294 (sun_partition_map_get_name): Likewise.
28295 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
28296 (grub_pcpart_type): Likewise.
28297 * util/hostdisk.c (open_device): Handle new numbering scheme.
28298 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
28299 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
28300 * util/grub-probe.c (probe_partmap): Handle nested paritions.
28301 * util/grub-install.in: Insert all subpartition modules.
28302 * util/ieee1275/grub-install.in: Likewise.
28303
a3940f88
AG
283042010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
28305
28306 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
28307 grammar.
28308
21b99926 283092010-03-24 Colin Watson <cjwatson@ubuntu.com>
28310
28311 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
28312
bed1d352
CW
283132010-03-21 Colin Watson <cjwatson@ubuntu.com>
28314
28315 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
28316 match where 'make install' puts them.
28317 * util/i386/efi/grub-install.in: Likewise.
28318
c9f58427
CW
283192010-03-19 Colin Watson <cjwatson@ubuntu.com>
28320
28321 * .bzrignore: Add gentrigtables, grub-script-check,
28322 grub_script_check_init.c, grub_script_check_init.h, and
28323 trigtables.c.
28324
f84afb27
VS
283252010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
28326
28327 * kern/parser.c: Indented.
28328
ed0e3d30
VS
283292010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
28330
28331 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
28332
0ea81d98
VS
283332010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
28334
28335 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
28336 alpha_mask_size == 0 case.
28337
0cdc2a09
BC
283382010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
28339
28340 GRUB shell lexer and parser improvements.
28341
28342 * conf/any-emu.rmk: Build rule updates.
28343 * conf/common.rmk: Likewise.
28344 * conf/i386-coreboot.rmk: Likewise.
28345 * conf/i386-efi.rmk: Likewise.
28346 * conf/i386-ieee1275.rmk: Likewise.
28347 * conf/i386-pc.rmk: Likewise.
28348 * conf/powerpc-ieee1275.rmk: Likewise.
28349 * conf/x86_64-efi.rmk: Likewise.
28350
28351 * configure.ac: Configure check for flex.
28352
28353 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
28354 types.
28355 (grub_lexer_param): Struct member updates.
28356 (grub_parser_param): Likewise.
28357 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
28358 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
28359 (grub_script_lexer_init): Prototype update.
28360 (grub_script_lexer_record_start): Likewise.
28361 (grub_script_lexer_record_stop): Likewise.
28362 (grub_script_lexer_yywrap): New function prototype.
28363 (grub_script_lexer_fini): Likewise.
28364 (grub_script_execute_argument_to_string): Removed by...
28365 (grub_script_execute_argument_to_argv): ...better version.
28366
28367 * script/execute.c (ROUND_UPTO): New macro.
28368 (grub_script_execute_cmdline): Out of memory fixes.
28369 (grub_script_execute_menuentry): Likewise.
28370 (grub_script_execute_argument_to_string): Removed. Update all
28371 users by...
28372 (grub_script_execute_argument_to_argv): ...better version.
28373 * script/function.c (grub_script_function_create): Use
28374 grub_script_execute_argument_to_argv instead of
28375 grub_script_execute_argument_to_string.
28376
28377 * script/lexer.c (check_varstate): Removed.
28378 (check_textstate): Removed.
28379 (grub_script_lexer_record_start): Likewise.
28380 (grub_script_lexer_record_stop): Likewise.
28381 (recordchar): Replaced with...
28382 (grub_script_lexer_record): ...new function.
28383 (nextchar): Removed.
28384 (grub_script_lexer_init): Rewritten.
28385 (grub_script_yylex): Rewritten.
28386 (append_newline): New function.
28387 (grub_script_lexer_yywrap): New function.
28388 (grub_script_lexer_fini): New function.
28389 (grub_script_yyerror): Sets error flag.
28390
28391 * script/yylex.l: New file.
28392 (grub_lexer_yyfree): Wrapper for flex yyffre.
28393 (grub_lexer_yyalloc): Likewise.
28394 (grub_lexer_yyrealloc): Likewise.
28395 * script/parser.y: Refactored.
28396
28397 * script/script.c (grub_script_arg_add): Out of memory fixes.
28398 (grub_script_add_arglist): Likewise.
28399 (grub_script_create_cmdline): Likewise.
28400 (grub_script_create_cmdmenu): Likewise.
28401 (grub_script_add_cmd): Likewise.
28402 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
28403 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
28404 unnecessary code.
28405
28406 * tests/grub_script_echo1.in: New testcase.
28407 * tests/grub_script_vars1.in: New testcase.
28408 * tests/grub_script_echo_keywords.in: New testcase.
28409
1d63a066
VS
284102010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
28411
28412 Remove some redundancy in build system.
28413
28414 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
28415 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
28416 (TARGET_LDFLAGS): Add -nostdlib.
28417 (TARGET_IMG_LDFLAGS): Likewise.
28418 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
28419 anything since mmap isn't available.
28420 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
28421 Add util/time.c.
28422 (pkglib_MODULES): Remove reboot.mod.
28423 (reboot_mod_SOURCES): Removed.
28424 (reboot_mod_CFLAGS): Likewise.
28425 (reboot_mod_LDFLAGS): Likewise.
28426 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
28427 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
28428 (DEFSYMFILES): Add kernel_syms.lst.
28429 (kernel_img_HEADERS): Add common headers.
28430 (symlist.c): New target.
28431 (kernel_syms.lst): Likewise.
28432 (pkglib_MODULES): Add memdisk.mod.
28433 (memdisk_mod_SOURCES): New variable.
28434 (memdisk_mod_CFLAGS): Likewise.
28435 (memdisk_mod_LDFLAGS): Likewise.
28436 (pkglib_MODULES): Add reboot.mod.
28437 (reboot_mod_SOURCES): New variable.
28438 (reboot_mod_CFLAGS): Likewise.
28439 (reboot_mod_LDFLAGS): Likewise.
28440 (pkglib_MODULES): Add date.mod.
28441 (date_mod_SOURCES): New variable.
28442 (date_mod_CFLAGS): Likewise.
28443 (date_mod_LDFLAGS): Likewise.
28444 (pkglib_MODULES): Add datehook.mod.
28445 (datehook_mod_SOURCES): New variable.
28446 (datehook_mod_CFLAGS): Likewise.
28447 (datehook_mod_LDFLAGS): Likewise.
28448 (pkglib_MODULES): Add lsmmap.mod.
28449 (lsmmap_mod_SOURCES): New variable.
28450 (lsmmap_mod_CFLAGS): Likewise.
28451 (lsmmap_mod_LDFLAGS): Likewise.
28452 (pkglib_MODULES): Add boot.mod.
28453 (boot_mod_SOURCES): New variable.
28454 (boot_mod_CFLAGS): Likewise.
28455 (boot_mod_LDFLAGS): Likewise.
28456 * conf/i386-coreboot.rmk: Removed redundant parts.
28457 * conf/i386-ieee1275.rmk: Likewise.
28458 * conf/i386-pc.rmk: Likewise.
28459 * conf/mips-yeeloong.rmk: Likewise.
28460 * conf/mips.rmk: Likewise.
28461 * conf/powerpc-ieee1275.rmk: Likewise.
28462 * conf/sparc64-ieee1275.rmk: Likewise.
28463 * conf/x86_64-efi.rmk: Likewise.
28464 * conf/i386-coreboot.rmk: Moved qemu parts ..
28465 * conf/i386-qemu.rmk: ... here
28466 * conf/i386-efi.rmk: Moved common parts to...
28467 * conf/x86-efi.rmk: ... here.
28468 * conf/i386.rmk: Added modules common to all x86 variants.
28469 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
28470 * disk/memdisk.c: Remove grub/machine/kernel.h.
28471 * gensymlist.sh.in: Include symbol.h.
28472 * hook/datehook.c: Correct module name.
28473 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
28474 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
28475 * include/grub/i386/efi/serial.h: New file.
28476 * include/grub/x86_64/efi/serial.h: Likewise.
28477 * util/time.c: Likewise.
28478 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
28479
463ac55f
CK
284802010-03-14 Colin King <colin.king@ubuntu.com>
284812010-03-14 Colin Watson <cjwatson@ubuntu.com>
28482
28483 Shrink the pre-partition-table part of boot.img by eight bytes.
28484
28485 * boot/i386/pc/boot.S (ERR): New macro.
28486 (chs_mode): Use ERR.
28487 (geometry_error): Likewise.
28488 (hd_probe_error): Remove. This is only used once, so we wrwite
28489 it inline instead.
28490 (read_error): Instead of printing read_error_string, just set up
28491 %si and fall through to ...
28492 (error_message): ... this new function, also used by ERR.
28493
08e46ede
CW
284942010-03-14 Colin Watson <cjwatson@ubuntu.com>
28495
28496 Speed up consecutive hostdisk operations on the same device.
28497
28498 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
28499 (grub_util_biosdisk_open): Initialise disk->data.
28500 (struct linux_partition_cache): New structure.
28501 (linux_find_partition): Cache partition start positions; these are
28502 expensive to compute on every read and write.
28503 (open_device): Cache open file descriptor in disk->data, so that we
28504 don't have to reopen it and flush the buffer cache for consecutive
28505 operations on the same device.
28506 (grub_util_biosdisk_close): New function.
28507 (grub_util_biosdisk_dev): Set `close' member.
28508
28509 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
28510 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
28511 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
28512 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
28513 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
28514
4a6d2d06
VS
285152010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
28516
28517 Compile parts of grub-emu as modules.
28518
28519 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
28520 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
28521 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
28522 (all-local): Add $(GRUB_EMU).
28523 (install-local): Install $(GRUB_EMU).
28524 (uninstall): Uninstall $(GRUB_EMU).
28525 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
28526 * kern/dl.c: Likewise.
28527 * commands/sleep.c: Not include machine/time.h.
28528 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
28529 (COMMON_CFLAGS): Likewise.
28530 (sbin_UTILITIES): Remove grub-emu.
28531 (grub_emu_SOURCES): Removed.
28532 (kernel_img_RELOCATABLE): New variable.
28533 (pkglib_PROGRAMS): Add kernel.img.
28534 (kernel_img_SOURCES): New variable
28535 (kernel_img_CFLAGS): Likewise.
28536 (kernel_img_LDFLAGS): Likewise.
28537 (TARGET_NO_STRIP): Likewise.
28538 (TARGET_NO_DYNAMIC_MODULES): Likewise.
28539 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
28540 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
28541 (grub-emu): New target.
28542 (GRUB_EMU): New variable.
28543 * configure.ac: Whitelist -emu as possible x86_64 architecture.
28544 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
28545 * loader/xnu.c: Likewise.
28546 * include/grub/pci.h: Likewise.
28547 * genemuinit.sh: New file.
28548 * genemuinitheader.sh: Likewise.
28549 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
28550 Support TARGET_NO_DYNAMIC_MODULES.
28551 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
28552 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
28553 * disk/loopback.c: Likewise.
28554 * font/font_cmd.c: Likewise.
28555 * partmap/acorn.c: Likewise.
28556 * partmap/amiga.c: Likewise.
28557 * partmap/apple.c: Likewise.
28558 * partmap/gpt.c: Likewise.
28559 * partmap/msdos.c: Likewise.
28560 * partmap/sun.c: Likewise.
28561 * parttool/msdospart.c: Likewise.
28562 * term/gfxterm.c: Likewise.
28563 * video/bitmap.c: Likewise.
28564 * video/readers/jpeg.c: Likewise.
28565 * video/readers/png.c: Likewise.
28566 * video/readers/tga.c: Likewise.
28567 * video/video.c: Likewise.
28568 * util/grub-emu.c (read_command_list): Removed.
28569 (main): Don't call util_init_nls.
28570 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
28571 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
28572
91fdd2ed
VS
285732010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
28574
28575 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
28576 date.mod, datehook.mod.
28577 (datetime_mod_SOURCES): New variable.
28578 (datetime_mod_CFLAGS): Likewise.
28579 (datetime_mod_LDFLAGS): Likewise.
28580 (date_mod_SOURCES): Likewise.
28581 (date_mod_CFLAGS): Likewise.
28582 (date_mod_LDFLAGS): Likewise.
28583 (datehook_mod_SOURCES): Likewise.
28584 (datehook_mod_CFLAGS): Likewise.
28585 (datehook_mod_LDFLAGS): Likewise.
28586 * conf/sparc64-ieee1275.rmk: Likewise.
28587 * lib/ieee1275/datetime.c: New file.
28588
873ccae6
VS
285892010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
28590
28591 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
28592 (ieee1275_fb_mod_SOURCES): New variable.
28593 (ieee1275_fb_mod_CFLAGS): Likewise.
28594 (ieee1275_fb_mod_LDFLAGS): Likewise.
28595 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
28596 New proto.
28597 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
28598 (HEAP_MAX_ADDR): Likewise.
28599 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
28600 type.
28601 Correct stop condition.
28602 (grub_ieee1275_devices_iterate): New function.
28603 * video/ieee1275.c: New file.
28604
601c97c0
VS
286052010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
28606
28607 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
28608
28609 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
28610 as scratch.
28611 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
28612 SCRATCH_PAD_DISKBOOT as scratch.
28613 (bootit): Pass Openfirmware pointer in %o4.
28614 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
28615 of 0x200000.
28616 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
28617 with util/grub-mkrawimage.c.
28618 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
28619 * include/grub/aout.h (AOUT_MID_SUN): New definition.
28620 (grub_aout_get_type) [GRUB_UTIL]: Removed.
28621 (grub_aout_load) [GRUB_UTIL]: Likewise.
28622 * include/grub/kernel.h (grub_modules_get_end): New proto.
28623 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
28624 (SCRATCH_PAD_BOOT): New definition.
28625 (SCRATCH_PAD_DISKBOOT): Likewise.
28626 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
28627 * include/grub/sparc64/ieee1275/ieee1275.h
28628 (grub_ieee1275_original_stack): New variable
28629 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
28630 New definition
28631 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
28632 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
28633 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
28634 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
28635 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
28636 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
28637 (grub_platform_image_format_t): New type.
28638 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
28639 * kern/main.c (grub_modules_get_end)
28640 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
28641 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
28642 (codestart): Switch stacks.
28643 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
28644 variable.
28645 (grub_heap_init): Use grub_modules_get_end.
28646 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
28647 stack.
28648 * util/grub-mkrawimage.c (generate_image): Support sparc64.
28649 (main): Likewise.
28650 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
28651
d68b491e
TG
286522010-03-14 Thorsten Glaser <tg@mirbsd.org>
28653
28654 * util/grub-mkrescue.in: Base ISO UUID on UTC.
28655
4e02ed50
MK
286562010-03-08 Matt Kraai <kraai@ftbfs.org>
28657
28658 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
28659 bug #559005).
28660
1f15fc1e
VS
286612010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
28662
28663 * genmoddep.awk: Output all missing symbols and not only first.
28664
fce5d8ff
VS
286652010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
28666
28667 * NEWS: Put the date of 1.98 release.
28668
d1e8a02f
VS
286692010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
28670
28671 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
28672 ft2build.h.
28673
696fd607
VS
286742010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
28675
28676 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
28677 completition in the middle of string.
28678
33e2e6f3
VS
286792010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
28680
28681 * util/grub-mkrescue.in: Use mktemp with explicit template.
28682
b1f6d291
VS
286832010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
28684
28685 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
28686
2ac227c7
VS
286872010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
28688
28689 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
28690 right pointer.
28691
8f9a632b
VS
286922010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
28693
28694 Fix FreeBSD compilation.
28695
28696 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
28697 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
28698
60b03859
VS
286992010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
28700
28701 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
28702
48a5a769
VS
287032010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
28704
28705 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
28706
3ab4bd77
VS
287072010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
28708
28709 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
28710
d116e0d8
RM
287112010-03-04 Robert Millan <rmh.grub@aybabtu.com>
28712
28713 Support relative image path in theme file.
28714
28715 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
28716 (image_set_property): Handle theme_dir and relative path.
28717
c7ef54aa
VS
287182010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
28719
28720 * configure.ac: Alias amd64 to x86_64.
28721
fcee14ed
VS
287222010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
28723
28724 * NEWS: mention multiboot on EFI.
28725
d0780363
VS
287262010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
28727
28728 * kern/main.c (grub_load_modules): Handle errors from init functions of
28729 embeded modules.
28730
41168ea4
VS
287312010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
28732
28733 * normal/autofs.c (autoload_fs_module): Handle errors.
28734
b54d93ac
VS
287352010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
28736
28737 Disable linux.mod on qemu-mips since it's not functional and leads
28738 to compilation failure.
28739
28740 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
28741 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
28742 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
28743 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
28744 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
28745 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
28746 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
28747 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
28748 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
28749 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
28750 Reported by: BVK Chaitanya
28751
fc8345da
JU
287522010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
28753
28754 * INSTALL: Add gettext as a dependency and add qemu to a new section
28755 "Prerequisites for make-check".
28756
4760f979
CF
287572010-03-04 Christian Franke <franke@computer.org>
28758
28759 * util/grub-pe2elf.c: Add missing include "progname.h".
28760
f209b5b2
VS
287612010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
28762
28763 * normal/crypto.c (read_crypto_list): Fix a typo.
28764 Reported by: Seth Goldberg.
28765
b4b7be98
VS
287662010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
28767
28768 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
f209b5b2 28769 Reported by: Seth Goldberg.
b4b7be98 28770
c0ee0385
VS
287712010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
28772
28773 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
28774 ascii.bitmaps.
28775
a8efbf64
VS
287762010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
28777
28778 * genmk.rb: Remove terminal*.lst in make clean.
f209b5b2 28779 Reported by: Seth Goldberg.
a8efbf64 28780
08dcd913
VS
287812010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
28782
28783 * util/i386/efi/grub-install.in: Copy gettext files.
28784
c4d0b332
VS
287852010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
28786
28787 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
28788
c6f2fe52
VS
287892010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
28790
28791 Wait for user entry basing on presence of output rather than on errors.
28792
28793 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
28794 (grub_install_newline_hook): Likewise.
28795 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
28796 * normal/menu.c (show_menu): Check line_counter to determine presence
28797 of output.
28798 * normal/term.c (grub_normal_line_counter): New variable.
28799 (grub_normal_get_line_counter): New function.
28800 (grub_install_newline_hook): Likewise.
28801
5382b1e4
VS
288022010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
28803
28804 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
28805
5519963b
VS
288062010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
28807
28808 * configure.ac: Update version to 1.98.
28809
72b28631
VS
288102010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
28811
28812 * util/grub.d/10_linux.in (linux_entry): Don't default to
28813 gfxpayload=keep if Linux doesn't support video handover.
28814
c140a180
VS
288152010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
28816
28817 Don't compile video modules on yeeloong since video subsystem is part
28818 of kernel.
28819
28820 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
28821 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
28822 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
28823 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
28824 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
28825 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
28826 * include/grub/bitmap_scale.h: Likewise.
28827 * include/grub/bufio.h: Likewise.
28828 * include/grub/font.h: Likewise.
28829 * include/grub/gfxterm.h: Likewise.
28830 * include/grub/video.h: Likewise.
28831 * include/grub/vbe.h: Don't include video_fb.h.
28832 * video/i386/pc/vbe.c: Include video_fb.h.
28833 * commands/i386/pc/vbetest.c: Include video.h.
28834
a0ca21c2
CW
288352010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
28836
28837 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
28838 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
28839 default entry if GRUB_SAVEDEFAULT=true. This allows using
28840 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
28841 saving a new default on every boot.
28842
4a8a763c
VS
288432010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
28844
28845 * normal/crypto.c (read_crypto_list): Fix a memory leak.
28846 * normal/term.c (read_terminal_list): Likewise.
28847 * normal/main.c (grub_normal_init_page): Likewise.
28848 (grub_normal_read_line_real): Likewise.
28849
607ffde2
VS
288502010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
28851
28852 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
28853 memory leak.
28854 Reported by: Seth Goldberg.
28855
2b8fa975
CW
288562010-02-24 Joey Korkames <joey+lists@kidfixit.com>
28857
28858 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
28859 duplicate declaration of `start'.
28860
618307dd
VS
288612010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
28862
28863 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
28864 filename.
28865 Reported by: Georgy Buranov
28866
7dd05b96 288672010-02-20 Carles Pina i Estany <carles@pina.cat>
28868
28869 * util/grub-mkrawimage.c (usage): Change string formatting to
28870 improve gettext.
28871
d1484a42
MRA
288722010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
28873
28874 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
28875 backspace keys.
28876
42b1d186
VS
288772010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
28878
28879 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
28880 Reported by: Michael Suchanek.
28881
288822010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
0a39de87
ST
28883
28884 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
28885 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
28886
d9f31a41
VS
288872010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
28888
28889 Remove any reference to non-free fonts.
28890
28891 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
28892 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
28893 uses non-free components.
28894 * font/font.c (grub_font_get_name): Remove example name.
28895 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
28896 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
28897 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
28898 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
28899
2793c71e
GB
289002010-02-16 Georgy Buranov <gburanov@gmail.com>
28901
28902 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
28903
402e3779
VS
289042010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
28905
28906 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
28907 Double divisor.
28908 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
28909 features.
28910 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
28911
0dd1e0dd
VS
289122010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
28913
28914 * gensymlist.sh.in: Use TARGET_CC instead of CC.
28915
6fa7cfce
ST
289162010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
28917
28918 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
28919 * docs/grub.texi (Command-line and menu entry commands): Document play
28920 command.
28921
37c8483b
ST
289222010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
28923
28924 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
28925 parse arguments as inline tempo and notes. Move code for playing notes
28926 to...
28927 (play): ... new function.
28928
14da0fb7
ST
289292010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
28930
28931 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
28932 grub_uint16_t instead of short.
28933 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
28934 disk from little endian to cpu endianness.
28935
04459e70
ST
289362010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
28937
28938 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
28939 GRUB_TICKS_PER_SECOND instead of 120.
28940
a0876943
VS
289412010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
28942
28943 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
28944 escape sequence after \e.
28945
e29f95dc
VS
289462010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
28947
28948 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
28949 non-ASCII characters.
28950
d27859b2
VS
289512010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
28952
28953 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
28954 set root in single quotes to prevent \, from being unescaped.
28955
bc028f2f
VS
289562010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
28957
28958 Prevent unknown commands from stopping menuentry execution.
28959
28960 * script/execute.c (grub_script_execute_cmdline): Print error after
28961 unknown command.
28962
095f5f82
VS
289632010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
28964
28965 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
28966 Reported by: Pavel Pisa.
28967
8c717950
VS
289682010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
28969
28970 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
28971
904935c3
VS
289722010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
28973
28974 Merge grub_ieee1275_map_physical into grub_map and rename to
28975 grub_ieee1275_map
28976
28977 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
28978 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
28979 Remove.
28980 * kern/ieee1275/openfw.c (grub_map): Rename to ...
28981 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
28982 necessary.
28983 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
28984
5b59a4e3
VS
289852010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
28986
28987 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
28988 opening and not after.
28989
69e137e8
VS
289902010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
28991
28992 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
28993 constants.
28994
2c0fcc36
VS
289952010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
28996
28997 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
28998 (alloc_phys): Use ALIGN_UP instead of align_addr.
28999
8c6052ce
VS
290002010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29001
29002 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
29003
17cec782
VS
290042010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29005
29006 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
29007
e0128bbd
VS
290082010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29009
29010 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
29011 verbose dprintf.
29012
ca62070b
VS
290132010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29014
29015 Fix over-4GiB seek on sparc64.
29016
29017 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
29018 Replace pos_i and pos_lo with pos. All users updated.
29019 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
29020 New constant.
29021 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
29022 Likewise.
29023 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
29024 and pos_lo.
29025
bdca2607
VS
290262010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29027
29028 * util/grub-mkrawimage.c (main): Call set_program_name.
29029
da278c4d
VS
290302010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29031
29032 Properly align 64-bit targets.
29033
29034 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
29035 (generate_image): Use ALIGN_ADDR.
29036
b274d734
VS
290372010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29038
29039 Properly create cross-endian images.
29040
29041 * include/grub/types.h (grub_host_to_target_addr): New macro
29042 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
29043
82da2062
VS
290442010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29045
29046 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
29047
7cae4377
VS
290482010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
29049
29050 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
29051
29052 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
29053 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
29054 (grub_linux_boot): Divide by 64K when on VESA.
29055
65a533e7
VS
290562010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
29057
29058 Support GRUB_GFXPAYLOAD_LINUX.
29059
29060 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
29061 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
29062
dd01d397
VS
290632010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
29064
29065 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
29066 to show messages instead of discarding them.
29067 Process errors after executing command and not before. Keep old method
29068 too as precaution.
29069
660960d6
VS
290702010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
29071
29072 * configure.ac: Check for ft2build.h.
29073
62509f04
VS
290742010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29075
29076 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
29077
473df63d
VS
290782010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29079
29080 * genkernsyms.sh.in: Use TARGET_CC.
29081
c98d2a13
CW
290822010-02-07 Colin Watson <cjwatson@ubuntu.com>
29083
29084 * NEWS: Update.
29085
6e14234c
VS
290862010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29087
29088 * include/grub/multiboot2.h: Remove leftover file.
e28e32ae
VS
29089 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
29090 * include/grub/partition.h [GRUB_UTIL]: Likewise.
6e14234c 29091
b255e9cf
YB
290922010-02-07 Yves Blusseau <blusseau@zetam.org>
29093
6e14234c 29094 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
b255e9cf 29095
98e6959d
VS
290962010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29097
29098 Fix warnings in grub-emu when compiling with maximum warning options.
29099
29100 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
29101 (grub_arch_modules_addr): Return 0 and not NULL.
29102 * util/misc.c (ENABLE_RELOCATABLE): New definition.
74e4934e 29103 (xstrdup): Use newstr instead of dup.
f88d801b
VS
29104 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
29105 of disk to dsk to avoid shadowing.
74e4934e
VS
29106 (find_free_slot): Fix prototype.
29107 * util/getroot.c (grub_util_is_dmraid): Make static.
29108 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
29109 Add missing prototype.
29110 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
98e6959d 29111
74e31b5c
VS
291122010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29113
29114 * loader/i386/linux.c (grub_linux_setup_video): Handle error
29115 appropriately.
29116
6b2ad14b
VS
291172010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29118
29119 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
29120 code out.
29121
8f891adc
VS
291222010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29123
29124 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
29125 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
29126 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
29127 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
29128 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
29129 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
29130
74b45184
VS
291312010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29132
29133 * include/grub/err.h (grub_err_printf): Don't export.
29134
a4bced77
VS
291352010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29136
29137 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
29138
007d0695
VS
291392010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29140
29141 * include/grub/i18n.h (grub_gettext_dummy): Removed.
29142 * kern/misc.c (grub_gettext_dummy): Make static.
29143
b6c0d9c2
VS
291442010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29145
29146 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
29147 by non-valid ones.
29148 * kern/term.c (grub_putchar): Likewise.
29149
f51a90d0
VS
291502010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29151
29152 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
29153 buggy hook call and memory leak.
29154
6846cec5
VS
291552010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29156
29157 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
29158
468d69fe
VS
291592010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29160
29161 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
29162
51906b8c
VS
291632010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29164
29165 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
29166 modevar.
29167 Return grub_errno on allocation error.
29168
09706ce5
VS
291692010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29170
29171 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
29172
911df80c
YB
291732010-02-06 Yves Blusseau <blusseau@zetam.org>
29174
29175 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
29176 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
29177
3746a6bc
VS
291782010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29179
29180 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
29181 non-pxe disk.
29182 (grub_pxefs_open): Likewise.
29183
09706ce5
VS
291842010-02-06 Robert Millan <rmh.grub@aybabtu.com>
29185
29186 * util/grub.d/10_hurd.in: Add --class information to menuentries.
29187 * util/grub.d/10_kfreebsd.in: Likewise.
29188 * util/grub.d/10_linux.in: Likewise.
29189
7cc192d9
VS
291902010-02-06 Colin D Bennett <colin@gibibit.com>
29191
29192 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
29193 (gfxmenu_mod_SOURCES): New variable.
29194 (gfxmenu_mod_CFLAGS): Likewise.
29195 (gfxmenu_mod_LDFLAGS): Likewise.
29196 * include/grub/term.h (grub_term_set_current_output): Declare
29197 argument as const.
29198 * docs/gfxmenu-theme-example.txt: New file.
29199 * gfxmenu/gfxmenu.c: Likewise.
29200 * gfxmenu/gui_box.c: Likewise.
29201 * gfxmenu/gui_canvas.c: Likewise.
29202 * gfxmenu/gui_circular_progress.c: Likewise.
29203 * gfxmenu/gui_image.c: Likewise.
29204 * gfxmenu/gui_label.c: Likewise.
29205 * gfxmenu/gui_list.c: Likewise.
29206 * gfxmenu/gui_progress_bar.c: Likewise.
29207 * gfxmenu/gui_string_util.c: Likewise.
29208 * gfxmenu/gui_util.c: Likewise.
29209 * gfxmenu/icon_manager.c: Likewise.
29210 * gfxmenu/model.c: Likewise.
29211 * gfxmenu/named_colors.c: Likewise.
29212 * gfxmenu/theme_loader.c: Likewise.
29213 * gfxmenu/view.c: Likewise.
29214 * gfxmenu/widget-box.c: Likewise.
29215 * include/grub/gfxmenu_model.h: Likewise.
29216 * include/grub/gfxmenu_view.h: Likewise.
29217 * include/grub/gfxwidgets.h: Likewise.
29218 * include/grub/gui.h: Likewise.
29219 * include/grub/gui_string_util.h: Likewise.
29220 * include/grub/icon_manager.h: Likewise.
29221
292222010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29223
29224 Agglomerate scrolling in gfxterm.
29225
29226 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
29227 (grub_virtual_screen_setup): Initialise 'total_screen'.
29228 (write_char): Split to ...
29229 (paint_char): ... this ...
29230 (write_char): ... and this.
29231 (paint_char): Handle delayed scrolling.
29232 (draw_cursor): Likewise.
29233 (scroll_up): Split to ...
29234 (real_scroll): ... this ...
29235 (scroll_up): ... and this.
29236 (real_scroll): Handle multi-line scroll and draw below-the-bottom
29237 characters.
29238 (grub_gfxterm_refresh): Call real_scroll.
29239
292402010-02-06 Colin D Bennett <colin@gibibit.com>
29241
29242 * include/grub/misc.h (grub_iscntrl): New inline function.
29243 (grub_isalnum): Likewise.
29244 (grub_strtol): Likewise.
29245
292462010-02-06 Colin D Bennett <colin@gibibit.com>
29247
29248 * normal/menu_text.c (get_entry_number): Move from here ...
29249 * normal/menu.c (get_entry_number): ... moved here.
29250 * include/grub/menu.h (grub_menu_get_default_entry_index):
29251 New prototype.
29252 * normal/menu.c (grub_menu_get_default_entry_index): New function.
29253 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
29254 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
29255 (grub_menu_viewer_should_return): Likewise.
29256 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
29257 * normal/menu_text.c (run_menu): Enable menu switching.
29258 * normal/menu_viewer.c (should_return): New variable.
29259 (menu_viewer_changed): Likewise.
29260 (grub_menu_viewer_show_menu): Handle menu viewer changes.
29261 (grub_menu_viewer_should_return): New function.
29262 (menuviewer_write_hook): Likewise.
29263 (grub_menu_viewer_init): Likewise.
29264
292652010-02-06 Colin D Bennet <colin@gibibit.com>
292662010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29267
29268 Support for gfxterm in a window.
29269
29270 * include/grub/gfxterm.h: New file.
29271 * include/grub/video.h (struct grub_video_rect): New declaration.
29272 (grub_video_rect_t): Likewise.
29273 * term/gfxterm.c (struct grub_gfxterm_window): New type.
29274 (refcount): New variable.
29275 (render_target): Likewise.
29276 (window): Likewise.
29277 (repaint_callback): Likewise.
29278 (grub_virtual_screen_setup): Use 'render_target'.
29279 (init_window): New function.
29280 (grub_gfxterm_init_window): Likewise.
29281 (grub_gfxterm_init): Check reference counter.
29282 Use init_window.
29283 (destroy_window): New function.
29284 (grub_gfxterm_destroy_window): Likewise.
29285 (grub_gfxterm_fini): Check reference counter.
29286 Use destroy_window.
29287 (redraw_screen_rect): Restore viewport.
29288 Use 'render_target' and 'window'.
29289 Call 'repaint_callback'.
29290 (write_char): Use 'render_target'.
29291 (draw_cursor): Likewise.
29292 (scroll_up): Restore viewport.
29293 Use 'render_target' and 'window'.
29294 Call 'repaint_callback'.
29295 (grub_gfxterm_cls): Likewise.
29296 (grub_gfxterm_refresh): Use 'window'.
29297 (grub_gfxterm_set_repaint_callback): New function.
29298 (grub_gfxterm_background_image_cmd): Use 'window'.
29299 (grub_gfxterm_get_term): New function.
29300 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
29301
293022010-02-06 Colin D Bennett <colin@gibibit.com>
29303
29304 Bitmap scaling support.
29305
29306 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
29307 (bitmap_scale_mod_SOURCES): New variable.
29308 (bitmap_scale_mod_CFLAGS): Likewise.
29309 (bitmap_scale_mod_LDFLAGS): Likewise.
29310 * include/grub/bitmap_scale.h: New file.
29311 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
29312 (background_image_cmd_options): New variable.
29313 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
29314 (cmd): Rename and change type to ...
29315 (background_image_cmd_handle): ... this. All users updated.
29316 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
29317 * video/bitmap_scale.c: New file.
29318
293192010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29320
29321 SDL support.
29322
29323 * Makefile.in (LIBSDL): New variable.
29324 (enable_grub_emu_sdl): Likewise.
29325 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
29326 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
29327 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
29328 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
29329 * util/sdl.c: New file.
29330
293312010-02-06 Colin D Bennett <colin@gibibit.com>
293322010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29333
29334 Double buffering support.
29335
29336 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
29337 * include/grub/video.h: Update comment.
29338 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
29339 New type.
29340 (grub_video_fb_doublebuf_blit_init): New prototype.
29341 * term/gfxterm.c (scroll_up): Support double buffering.
29342 (grub_gfxterm_refresh): Likewise.
29343 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
29344 (grub_video_fb_doublebuf_blit_init): Likewise.
29345 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
29346 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
29347 'displayed_page', 'render_page' and 'update_screen'.
29348 (grub_video_vbe_fini): Free offscreen buffer.
29349 (doublebuf_pageflipping_commit): New function.
29350 (doublebuf_pageflipping_update_screen): Likewise.
29351 (doublebuf_pageflipping_init): Likewise.
29352 (double_buffering_init): Likewise.
29353 (grub_video_vbe_setup): Enable doublebuffering.
29354 (grub_video_vbe_swap_buffers): Implement.
29355 (grub_video_vbe_set_active_render_target): Handle double buffering.
29356 (grub_video_vbe_get_active_render_target): Likewise.
29357 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
29358 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
29359 (grub_video_vbe_enable_double_buffering): Likewise.
29360 (grub_video_vbe_swap_buffers): Use update_screen.
29361 (grub_video_set_mode): Use double buffering.
29362
293632010-02-06 Robert Millan <rmh.grub@aybabtu.com>
29364
29365 * maintainance/gentrigtables.py: Remove.
29366 * lib/trig.c: Likewise.
29367
29368 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
29369
29370 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
29371 `trigtables.c'.
29372 (trigtables.c): New rule.
29373 (gentrigtables): Likewise.
29374 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
29375
293762010-02-06 Robert Millan <rmh.grub@aybabtu.com>
29377
29378 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
29379 integer constants.
29380
293812010-02-06 Colin D Bennet <colin@gibibit.com>
29382
29383 Trigonometry support.
29384
29385 * include/grub/trig.h: New file.
29386 * lib/trig.c: Likewise.
29387 * maintainance/gentrigtables.py: Likewise.
29388 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
29389 (trig_mod_SOURCES): New variable.
29390 (trig_mod_CFLAGS): Likewise.
29391 (trig_mod_LDFLAGS): Likewise.
29392
5562834e
VS
293932010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29394
29395 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
29396 disk devices.
29397
4f8528fc
VS
293982010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29399
29400 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
29401 error.
29402
2b4068e9
VS
294032010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
29404
29405 * util/hostdisk.c (open_device): Don't use partition device when reading
29406 before the partition.
29407 (grub_util_biosdisk_read): Don't read from partition and before the
29408 partition in single operation.
29409 (grub_util_biosdisk_write): Don't write to partition and before the
29410 partition in single operation.
29411
399f6e4d
TL
294122010-02-03 Torsten Landschoff <torsten@debian.org>
29413
29414 * kern/disk.c (grub_disk_read): Fix offset computation when reading
29415 last sectors.
29416
996649b0
VS
294172010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
29418
29419 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
29420 CDROM reads.
29421 (grub_biosdisk_write): Refuse to write to CDROM.
29422
3b205d4d
VS
294232010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
29424
29425 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
29426
61e89d9d
VS
294272010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
29428
29429 * font/font.c (find_glyph): Check that bmp_idx is available before
29430 using it.
29431 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
29432 with (font == NULL).
29433
bf7fcba2
CS
294342010-01-28 Christian Schmitt <chris@ilovelinux.de>
29435
29436 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
29437
f45d2663
BC
294382010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
29439
29440 * include/grub/script_sh.h (sourcecode): Add const qualifier.
29441 * util/grub-script-check.c (getline): Fix empty lines case.
29442
ec1444e6
RM
294432010-01-28 Robert Millan <rmh.grub@aybabtu.com>
29444
29445 * Makefile.in (check): Exit with fail status when one of the tests
29446 fails.
29447 * tests/example_functional_test.c (example_test): Fix reversed assert.
29448 * tests/example_unit_test.c (example_test): Likewise.
29449
2e1cb9bb
CW
294502010-01-28 Colin Watson <cjwatson@ubuntu.com>
29451
29452 * util/grub.d/10_linux.in: This script does not use any of the
29453 contents of gettext.sh, only the external command `gettext', so stop
29454 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
29455 the same prefix as GRUB.)
29456 * util/grub.d/10_kfreebsd.in: Likewise.
29457
63533ab0
VS
294582010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
29459
29460 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
29461 of the line.
29462
989e1f93
VS
294632010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
29464
29465 * kern/disk.c (grub_disk_read): Fix offset computation when reading
29466 last sectors.
29467
e709ebe2
VS
294682010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
29469
29470 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
29471 having a 4KiB and not 32KiB buffer size.
29472
27dea7ed
RM
294732010-01-27 Robert Millan <rmh.grub@aybabtu.com>
29474
29475 * util/hostfs.c: Include `<errno.h>'.
29476 (grub_hostfs_read): Handle errors from fseeko() and fread().
29477
67667b9c
RM
294782010-01-27 Robert Millan <rmh.grub@aybabtu.com>
29479
29480 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
29481 loop when using read hooks on files whose size isn't sector-aligned.
29482
c294d9d8
RM
294832010-01-27 Robert Millan <rmh.grub@aybabtu.com>
29484
29485 Remove unused parameter.
29486
29487 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
29488 (grub_iso9660_open): Remove initialization of `data->length'.
29489
af75a9f1
RM
294902010-01-27 Robert Millan <rmh.grub@aybabtu.com>
29491
29492 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
29493 memleak conditions.
29494
254e2ce5 294952010-01-27 Carles Pina i Estany <carles@pina.cat>
29496
29497 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
29498 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
29499
b510928c 295002010-01-26 Carles Pina i Estany <carles@pina.cat>
29501
29502 * util/bin2h.c (usage): Fix warning (space after backslash).
29503
aa2f9dd2 295042010-01-26 Carles Pina i Estany <carles@pina.cat>
de0b7a4e 29505
29506 * font/font.c: Include `grub/fontformat.h.
29507 Remove font file format constants.
29508 (grub_font_load): Use the new macros.
29509 * include/grub/fontformat.h: New file.
29510 * util/grub-mkfont.c: Include `grub/fontformat.c'.
29511 (write_font_pf2): Use the new macros.
29512
94e7e712
RM
295132010-01-26 Robert Millan <rmh.grub@aybabtu.com>
29514
29515 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
29516 does.
29517
3973a59a
RM
295182010-01-26 Robert Millan <rmh.grub@aybabtu.com>
29519
29520 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
29521
29522 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
29523 (_start): Macroify `0x7F'.
29524
29525 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
29526 (make_install_device): Use "(pxe)" as fallback prefix when booting
29527 via PXE.
29528
42e0cba3
GS
295292010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
29530
29531 * configure.ac: Reset LIBS after check for libgcc symbols.
29532
847effd8
CW
295332010-01-25 Colin Watson <cjwatson@ubuntu.com>
29534
29535 * util/hostdisk.c (open_device): Add trailing newline to debug
29536 message.
29537
ea4a7e35
GS
295382010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
29539
29540 * configure.ac: Check for `limits.h'.
29541 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
29542
67951a53
RM
295432010-01-24 Robert Millan <rmh.grub@aybabtu.com>
29544
29545 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
29546 capitalize error strings.
29547
c273d4ce
ST
295482010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
29549
29550 * util/grub.d/10_hurd.in: Add a recovery mode.
29551
69be5b74
VS
295522010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
29553
29554 * configure.ac: Check for libgcc symbols with -nostdlib.
29555
fc9e5810
BC
295562010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
29557
29558 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
29559
4b358c0a
VS
295602010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
29561
29562 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
29563 stack since heap may be unavailable at that point.
29564 (grub_ofconsole_gotoxy): Likewise.
29565
454fcd1c
VS
295662010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
29567
29568 * configure.ac: Check for _restgpr_14_x.
29569 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
29570 and _savegpr_* prototypes.
29571
566863ca
RM
295722010-01-22 Robert Millan <rmh.grub@aybabtu.com>
29573
29574 Use generic grub_reboot() for i386-efi.
29575
29576 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
29577 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
29578 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
29579
bf86e59a
VS
295802010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
29581
29582 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
29583 presence of "prefix" variable as it breaks when normal.mod is
29584 embedded.
29585
d645e0f8
VS
295862010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
29587
29588 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
29589 stack since heap is unavailable at that point.
29590
f9ab2e25
VS
295912010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
29592
29593 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
29594 (grub_freebsd_bootinfo): Rewritten.
29595 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
29596
01fc7054
VS
295972010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
29598
29599 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
29600
caab4fd6
RM
296012010-01-21 Robert Millan <rmh.grub@aybabtu.com>
29602
29603 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
29604 domain now.
29605
67eb1427
FZ
296062010-01-20 Felix Zielcke <fzielcke@z-51.de>
29607
29608 * util/misc.c (make_system_path_relative_to_its_root): Change the work
29609 around for handling "/" to the correct fix. Fix a memory leak. Use
29610 xstrdup instead of strdup.
29611
a9ed4ff3
VS
296122010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
29613
29614 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
29615
296162010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
bed35bda
VS
29617
29618 Optimise glyph lookup by Basic Multilingual Plane lookup array.
29619
29620 * font/font.c (struct grub_font): New member 'bmp_idx'.
29621 (font_init): Initialise 'bmp_idx'.
29622 (load_font_index): Fill 'bmp_idx'.
29623 (find_glyph): Make inline. Use bmp_idx for BMP characters.
29624
48209f4f
VS
296252010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
29626
29627 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
29628 unnecessary calls.
29629
9f0a4bb7
VS
296302010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
29631
29632 Move context handling out of the kernel.
29633
29634 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
29635 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
29636 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
29637 * conf/i386-efi.rmk: Likewise.
29638 * conf/i386-ieee1275.rmk: Likewise.
29639 * conf/i386-pc.rmk: Likewise.
29640 * conf/powerpc-ieee1275.rmk: Likewise.
29641 * conf/sparc64-ieee1275.rmk: Likewise.
29642 * conf/x86_64-efi.rmk: Likewise.
29643 * include/grub/env.h: Include grub/menu.h.
29644 (grub_env_var_type): Removed.
29645 (grub_env_var): Replaced field 'type' with 'global'.
29646 (grub_env_find): New prototype.
29647 (grub_env_context_open): Remove EXPORT_FUNC.
29648 (grub_env_context_close): Likewise.
29649 (grub_env_export): Likewise.
29650 (grub_env_set_data_slot): Removed.
29651 (grub_env_get_data_slot): Likewise.
29652 (grub_env_unset_data_slot): Likewise.
29653 (grub_env_unset_menu): New prototype.
29654 (grub_env_set_menu): Likewise.
29655 (grub_env_get_menu): Likewise.
29656 * include/grub/env_private.h: New file.
29657 * include/grub/normal.h (grub_context_init): New prototype.
29658 (grub_context_fini): Likewise.
29659 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
29660 * normal/context.c (grub_cmd_export): ... to here.
29661 * kern/env.c: Include env_private.h.
29662 (HASHSZ): Moved to include/grub/env_private.h.
29663 (grub_env_context): Likewise.
29664 (grub_env_sorted_var): Likewise.
29665 (current_context): Renamed from this ...
29666 (grub_current_context): ...to this. 'static' removed. All users updated.
29667 (grub_env_find): Removed 'static'.
29668 (grub_env_context_open): Moved to normal/context.c.
29669 (grub_env_context_close): Likewise.
29670 (grub_env_export): Likewise.
29671 (mangle_data_slot_name): Removed.
29672 (grub_env_set_data_slot): Likewise.
29673 (grub_env_get_data_slot): Likewise.
29674 (grub_env_unset_data_slot): Likewise.
29675 * kern/main.c (grub_set_root_dev): Don't export root.
29676 It will be done later.
29677 (grub_main): Don't export prefix.
29678 It will be done later.
29679 * normal/context.c: New file.
29680 * normal/main.c (free_menu): Use grub_env_unset_menu.
29681 (grub_normal_add_menu_entry): Use grub_env_get_menu.
29682 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
29683 (GRUB_MOD_INIT(normal)): Call grub_context_init.
29684 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
29685
8dd35b8c
VS
296862010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
29687
29688 setpci support.
29689
29690 * commands/setpci.c: New file.
29691 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
29692 (setpci_mod_SOURCES): New variable.
29693 (setpci_mod_CFLAGS): Likewise.
29694 (setpci_mod_LDFLAGS): Likewise.
29695
449193d5
VS
296962010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
29697
29698 Byte-addressable PCI configuration space.
29699
29700 * bus/pci.c (grub_pci_make_address): Use byte address instead of
29701 dword address.
29702 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
29703 GRUB_PCI_REG_CACHELINE.
29704 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
29705 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
29706 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
29707 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
29708 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
29709 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
29710 grub_pci_make_address.
29711 (lock_rom_area): Likewise.
29712 * commands/lspci.c (grub_lspci_iter): Use macroses
29713 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
29714 of grub_pci_make_address.
29715 * disk/ata.c (grub_ata_pciinit): Likewise.
29716 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
29717 (GRUB_PCI_REG_VENDOR): Likewise.
29718 (GRUB_PCI_REG_DEVICE): Likewise.
29719 (GRUB_PCI_REG_COMMAND): Likewise.
29720 (GRUB_PCI_REG_STATUS): Likewise.
29721 (GRUB_PCI_REG_REVISION): Likewise.
29722 (GRUB_PCI_REG_CLASS): Likewise.
29723 (GRUB_PCI_REG_CACHELINE): Likewise.
29724 (GRUB_PCI_REG_LAT_TIMER): Likewise.
29725 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
29726 (GRUB_PCI_REG_BIST): Likewise.
29727 (GRUB_PCI_REG_ADDRESSES): Likewise.
29728 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
29729 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
29730 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
29731 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
29732 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
29733 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
29734 (GRUB_PCI_REG_CIS_POINTER): Likewise.
29735 (GRUB_PCI_REG_SUBVENDOR): Likewise.
29736 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
29737 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
29738 (GRUB_PCI_REG_CAP_POINTER): Likewise.
29739 (GRUB_PCI_REG_IRQ_LINE): Likewise.
29740 (GRUB_PCI_REG_IRQ_PIN): Likewise.
29741 (GRUB_PCI_REG_MIN_GNT): Likewise.
29742 (GRUB_PCI_REG_MAX_LAT): Likewise.
29743 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
29744 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
29745 * video/efi_uga.c (find_framebuf): Likewise.
fdb1b2ea 29746 * video/sm712.c (grub_video_sm712_setup): Likewise.
449193d5
VS
29747 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
29748 space.
29749
96d73208
RM
297502010-01-20 Robert Millan <rmh.grub@aybabtu.com>
29751
29752 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
29753 can be reliably determined to be supported.
29754
d4484482
RM
297552010-01-20 Robert Millan <rmh.grub@aybabtu.com>
29756
29757 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
29758 that VESA is supported.
29759 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
29760 supported.
29761
00308ecf
VS
297622010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
29763
29764 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
29765
f66924a4
RM
297662010-01-20 Robert Millan <rmh.grub@aybabtu.com>
29767
29768 * util/misc.c (make_system_path_relative_to_its_root): Work around
29769 special-casing of "/", as previous incarnation of this routine did.
29770
cbca0ada
VS
297712010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
29772
29773 Fix any-emu compilation.
29774
29775 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
29776 * grub_bin2h_SOURCES: New variable.
29777
34a66d99
RM
297782010-01-20 Robert Millan <rmh.grub@aybabtu.com>
29779
29780 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
29781
94fabf58
RM
297822010-01-20 Robert Millan <rmh.grub@aybabtu.com>
29783
29784 * util/grub.d/00_header.in: Fix handling of locale_dir.
29785
02cf98ca
VS
297862010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
29787
29788 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
29789 as possible unifont location (Gentoo).
29790 Reported by: Alexander Brüning
29791
327dbcd7
VS
297922010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
29793
29794 Don't try to generate lists for kernel.img.
29795
29796 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
29797 (pkglib_MODULES): Remove kernel.img.
29798 (kernel_img_EXPORTS): Removed.
29799 (kernel_img_RELOCATABLE): New variable.
29800 * conf/x86_64-efi.rmk: Likewise.
29801 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
29802
ca467290
VS
298032010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
29804
29805 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
29806 grub_xasprintf or grub_snprintf.
29807 (grub_vsprintf): Likewise.
29808 (grub_snprintf): New proto.
29809 (grub_vsnprintf): Likewise.
29810 (grub_xasprintf): Likewise.
29811 (grub_xvasprintf): Likewise.
29812 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
29813 (grub_sprintf): Removed.
29814 (grub_vsnprintf): New function.
29815 (grub_snprintf): Likewise.
29816 (grub_xvasprintf): Likewise.
29817 (grub_xasprintf): Likewise.
29818 (grub_vsprintf): Renamed to ...
29819 (grub_vsnprintf_real): ...this. New argument max_len.
29820
aca655fd
BC
298212010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
29822
29823 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
29824 fix grub-script-check warning.
29825
7ee92c32
VS
298262010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
29827
29828 * include/grub/font.h (grub_font_load): Fix prototype.
29829
f80927ca
VS
298302010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
29831
29832 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
29833
119c50ea
VS
298342010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
29835
29836 * include/grub/x86_64/at_keyboard.h: New file.
29837
47d5f3c1
VS
298382010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
29839
29840 * loader/mips/linux.c: Include missing grub/i18n.h.
29841
55ff5266
RM
298422009-12-20 Robert Millan <rmh.grub@aybabtu.com>
29843
29844 * normal/menu.c (notify_execution_failure): Clarify error message.
29845
c893cc87
RM
298462009-12-20 Robert Millan <rmh.grub@aybabtu.com>
29847
29848 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
29849 return value (and revert all return statements). Update users.
29850
917dd370
CW
298512010-01-20 Dan Merillat <debian@dan.merillat.org>
29852
29853 * kern/device.c (grub_device_iterate): Allocate new part_ent
29854 structure based on sizeof (*p) rather than sizeof (p->next), to
29855 account for structure padding.
29856
29857 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
29858 disk is NULL, which might happen for LVM physical volumes with no
29859 LVM signature.
29860
d4a4ee57
RM
298612009-12-20 Robert Millan <rmh.grub@aybabtu.com>
29862
29863 * loader/mips/linux.c (grub_cmd_initrd)
29864 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
29865
298662009-12-20 Robert Millan <rmh.grub@aybabtu.com>
29867
29868 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
29869 (grub_video_video_init, grub_video_bitmap_init)
29870 (grub_font_manager_init, grub_term_gfxterm_init)
29871 (grub_at_keyboard_init): New extern declarations.
29872 (grub_machine_init): Initialize gfxterm and at_keyboard.
29873
29874 * kern/main.c (grub_main): Revert grub_printf delay kludge.
29875
29876 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
29877 `gfxterm.mod' into core image.
29878
29879 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
29880 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
29881 (kernel_img_FORMAT): Copy to ...
29882
29883 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
29884 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
29885 (kernel_img_FORMAT): ... here, and ...
29886
29887 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
29888 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
29889 (kernel_img_FORMAT): ... here.
29890
29891 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
29892 and input (at_keyboard) terminals in kernel.
29893 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
29894
29895 (pkglib_MODULES): Remove `pci.mod'.
29896 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
29897 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
29898 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
29899 (at_keyboard_mod_LDFLAGS): Remove variables.
29900
299012010-01-11 Felix Zielcke <fzielcke@z-51.de>
29902
29903 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
29904
299052009-12-10 Robert Millan <rmh.grub@aybabtu.com>
29906
29907 * include/grub/mips/libgcc.h: Only export symbols for functions
29908 that libgcc provides.
29909
299102009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
29911
29912 MIPS support.
29913
29914 * bus/bonito.c: New file.
29915 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
29916 GRUB_PCI_NUM_DEVICES.
29917 * term/i386/pc/serial.c: Move to ...
29918 * term/serial.c: ... here. All users updated.
29919 * util/i386/pc/grub-mkimage.c: Move to ...
29920 * util/grub-mkrawimage.c: ... here. All users updated.
29921 * term/i386/pc/at_keyboard.c: Move to ...
29922 * term/at_keyboard.c: ... here. All users updated.
29923 * conf/mips-qemu-mips.rmk: New file.
29924 * conf/mips-yeeloong.rmk: Likewise.
29925 * conf/mips.rmk: Likewise.
29926 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
29927 mipsel-qemu-mips.
29928 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
29929 to port addresses.
29930 (grub_ata_pciinit): Support CS5536.
29931 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
29932 * font/font_cmd.c (loadfont_command): Open file before passing it to
29933 grub_font_load.
29934 (pseudo_file_read): New function.
29935 (pseudo_file_close): Likewise.
29936 (pseudo_fs): New structure.
29937 (load_font_module): New function.
29938 (GRUB_MOD_INIT(font_manager)): Load embedded font.
29939 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
29940 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
29941 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
29942 * include/grub/i386/at_keyboard.h: Split into ...
29943 * include/grub/at_keyboard.h: ... this ...
29944 * include/grub/i386/at_keyboard.h: ... and this.
29945 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
29946 New prototype.
29947 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
29948 updated.
29949 (grub_elf64_size): Likewise.
29950 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
29951 filename.
29952 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
29953 * include/grub/i386/coreboot/serial.h: Rewritten.
29954 * include/grub/i386/ieee1275/serial.h: Include
29955 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
29956 * include/grub/i386/pc/serial.h: Moved from here ...
29957 * include/grub/serial.h: ... to here. All users updated.
29958 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
29959 (GRUB_PCI_NUM_BUS): Likewise.
29960 (GRUB_PCI_NUM_DEVICES): Likewise.
29961 (grub_pci_device_map_range): Add missing volatile keyword.
29962 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
29963 * include/grub/mips/at_keyboard.h: New file.
29964 * include/grub/mips/cache.h: Likewise.
29965 * include/grub/mips/io.h: Likewise.
29966 * include/grub/mips/kernel.h: Likewise.
29967 * include/grub/mips/libgcc.h: Likewise.
29968 * include/grub/mips/pci.h: Likewise.
29969 * include/grub/mips/qemu-mips/boot.h: Likewise.
29970 * include/grub/mips/qemu-mips/kernel.h: Likewise.
29971 * include/grub/mips/qemu-mips/loader.h: Likewise.
29972 * include/grub/mips/qemu-mips/memory.h: Likewise.
29973 * include/grub/mips/qemu-mips/serial.h: Likewise.
29974 * include/grub/mips/qemu-mips/time.h: Likewise.
29975 * include/grub/mips/relocator.h: Likewise.
29976 * include/grub/mips/time.h: Likewise.
29977 * include/grub/mips/types.h: Likewise.
29978 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
29979 * include/grub/mips/yeeloong/boot.h: Likewise.
29980 * include/grub/mips/yeeloong/kernel.h: Likewise.
29981 * include/grub/mips/yeeloong/loader.h: Likewise.
29982 * include/grub/mips/yeeloong/memory.h: Likewise.
29983 * include/grub/mips/yeeloong/pci.h: Likewise.
29984 * include/grub/mips/yeeloong/serial.h: Likewise.
29985 * include/grub/mips/yeeloong/time.h: Likewise.
29986 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
29987 * kern/elf.c (grub_elf32_size): New parameter. All users
29988 updated.
29989 (grub_elf64_size): Likewise.
29990 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
29991 Load modules before saying "Welcome to GRUB!".
29992 Call grub_refresh after saying "Welcome to GRUB!".
29993 * kern/mips/cache.S: New file.
29994 * kern/mips/cache_flush.S: Likewise.
29995 * kern/mips/dl.c: Likewise.
29996 * kern/mips/init.c: Likewise.
29997 * kern/mips/qemu-mips/init.c: Likewise.
29998 * kern/mips/startup.S: Likewise.
29999 * kern/mips/yeeloong/init.c: Likewise.
30000 * kern/term.c (grub_putcode): Handle NULL terminal.
30001 (grub_getcharwidth): Likewise.
30002 (grub_getkey): Likewise.
30003 (grub_checkkey): Likewise.
30004 (grub_getkeystatus): Likewise.
30005 (grub_getxy): Likewise.
30006 (grub_getwh): Likewise.
30007 (grub_gotoxy): Likewise.
30008 (grub_cls): Likewise.
30009 (grub_setcolorstate): Likewise.
30010 (grub_setcolor): Likewise.
30011 (grub_getcolor): Likewise.
30012 (grub_refresh): Likewise.
30013 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
30014 (write_jump): Add hatch nop.
30015 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
30016 * lib/mips/setjmp.S: New file.
30017 * loader/mips/linux.c: Likewise.
30018 * term/i386/pc/at_keyboard.c: Move from here ...
30019 * term/at_keyboard.c: ... to here.
30020 * term/i386/pc/serial.c: Moved from here ...
30021 * term/serial.c: ... to here. All users updated.
30022 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
30023 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
30024 (serial_translate_key_sequence): Avoid deadlock.
30025 (grub_serial_getkey): Handle backspace.
30026 (grub_serial_putchar): Fix newline handling.
30027 * util/i386/pc/grub-mkimage.c: Move from here ...
30028 * util/grub-mkrawimage.c: ... to here. All users updated.
30029 (generate_image): New parameters 'font_path' and 'format'.
30030 Support embedding font.
30031 Use grub_host_to_target* instead of grub_cpu_to_le*.
30032 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
30033 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
30034 (options): New option "--font".
30035 (usage): Likewise.
30036 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
30037 (main): Handle "--font".
30038 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
30039 (grub_virtual_screen_setup): Set bg_color_display.
30040 (redraw_screen_rect): Use bg_color_display instead of incorrect
30041 bg_color.
30042 (grub_gfxterm_cls): Likewise.
30043 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
30044 Support embedding config file.
30045 (add_segments): Likewise.
30046 (options): New option "--config".
30047 (main): Handle "--config".
30048 * video/sm712.c: New file.
30049
25c2b5b3
RM
300502010-01-18 Robert Millan <rmh.grub@aybabtu.com>
30051
30052 Fix parallel builds.
30053
30054 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
30055 font.c depend on ascii.h).
30056
300572010-01-12 Carles Pina i Estany <carles@pina.cat>
30058
30059 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
30060
300612010-01-11 Carles Pina i Estany <carles@pina.cat>
30062
30063 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
30064 By default: disabled.
30065 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
30066 parameter.
30067
300682010-01-10 Carles Pina i Estany <carles@pina.cat>
30069
30070 * font/font.c: Update copyright years.
30071 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
30072
300732010-01-10 Carles Pina i Estany <carles@pina.cat>
30074
30075 * font/font.c: Include `ascii.h'.
30076 (ASCII_BITMAP_SIZE): New macro.
30077 (ascii_font_glyph): Define.
30078 (ascii_glyph_lookup): New function.
30079 (grub_font_get_string_width): Change comment. If glyph not found, use
30080 ascii_glyph_lookup.
30081 (grub_font_get_glyph_with_fallback): If glyph not available returns
30082 ascii_glyph_lookup.
30083 * util/grub-mkfont.c (file_formats): New enum.
30084 (options): Add `ascii-bitmaps' new option.
30085 (usage): Add `asii-bitmaps' new option.
30086 (write_font_ascii_bitmap): New function.
30087 (write_font): Rename to ...
30088 (write_font_p2): ... this. Remove print_glyphs call.
30089 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
30090 used. Call print_glyphs.
30091 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
30092
300932010-01-14 Robert Millan <rmh.grub@aybabtu.com>
30094
30095 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
30096 (grub_bin2h_SOURCES): New variable.
30097 * util/bin2h.c: New file.
30098
915fc1b8
VS
300992010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30100
30101 * include/multiboot.h: Resynced with spec.
30102 * include/multiboot2.h: Likewise.
30103 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
30104 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
30105
9444b678
RM
301062010-01-18 Robert Millan <rmh.grub@aybabtu.com>
30107
30108 * include/grub/term.h (grub_term_register_input,
30109 grub_term_register_output): Check return of terminal init()
30110 routines, and abort if errors are raised.
30111
30112 * commands/terminal.c: Update copyright year.
30113
cba98e8d
RM
301142010-01-18 Robert Millan <rmh.grub@aybabtu.com>
30115
30116 * commands/terminal.c (grub_cmd_terminal_input)
30117 (grub_cmd_terminal_output): Check return of terminal init()
30118 routines, and abort if errors are raised.
30119
6f7db5d6
VS
301202010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
30121
30122 * include/grub/i386/bsd.h: Fix include pathes.
30123
262bff8d
VS
301242010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
30125
30126 Add missing *BSD copyright headers.
30127
30128 * include/grub/aout.h: Add BSD licence.
30129 * include/grub/i386/bsd.h: Parts under different licences moved to ...
30130 * include/grub/i386/freebsd_linker.h: ... here,
30131 * include/grub/i386/freebsd_reboot.h: ... here,
30132 * include/grub/i386/netbsd_bootinfo.h: ... here,
30133 * include/grub/i386/netbsd_reboot.h: ... here,
30134 * include/grub/i386/openbsd_bootarg.h: ... here,
30135 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
30136 licence to each file.
30137
b2cab848
RM
301382010-01-18 Robert Millan <rmh.grub@aybabtu.com>
30139
30140 * acinclude.m4: Remove `nop' assembly instruction; it's not
30141 implemented by all architectures.
30142
2cb6be4b
RM
301432010-01-18 Robert Millan <rmh.grub@aybabtu.com>
30144
30145 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
30146 ELILO. This is no longer necessary.
30147
a2eaee15
BC
301482010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
30149
30150 Added new tool, grub-scrit-check to verify grub.cfg syntax.
30151
30152 * util/grub-script-check.c: grub-script-check tool.
30153 * conf/common.rmk: Make rules for grub-script-check.
30154
88d17012
RM
301552010-01-18 Robert Millan <rmh.grub@aybabtu.com>
30156
30157 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
30158 spotting it back in 2008. Shame on me for forgetting he did.
30159
30160 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
30161
8040619d
RM
301622010-01-18 Robert Millan <rmh.grub@aybabtu.com>
30163
30164 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
30165 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
30166 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
30167 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
30168 (GRUB_VIDEO_TYPE_EFI): Rename to ...
30169 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
30170
a0c2a0f6
RM
301712010-01-17 Robert Millan <rmh.grub@aybabtu.com>
30172
30173 * include/grub/test.h: Add license header.
30174 * tests/example_functional_test.c: Likewise.
30175 * tests/example_unit_test.c: Likewise.
30176 * tests/lib/functional_test.c: Likewise.
30177 * tests/lib/test.c: Likewise.
30178 * tests/lib/unit_test.c: Likewise.
30179
b0b13907
VS
301802010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
30181
30182 Use flag-based instead of hook-based video mode selection and "auto"
30183 keyword.
30184
30185 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
30186 (grub_video_set_mode): Changed prototype. All users updated.
30187 (grub_video_check_mode_flag): New inline function.
30188 * video/video.c (parse_modespec): New function.
30189 (grub_video_set_mode): Parse flags and keywords.
30190
ea379330 301912010-01-17 Carles Pina i Estany <carles@pina.cat>
30192
30193 * util/misc.c (grub_util_info): Fix the order of the parameters in a
30194 fprintf call.
30195
e15c215e
FZ
301962010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
30197
30198 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
30199
409ae1c9 302002010-01-16 Carles Pina i Estany <carles@pina.cat>
30201
30202 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
30203 string.
30204 * util/grub-emu.c (usage): Likewise.
30205 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
30206 * util/i386/efi/grub-mkimage.c (usage): Likewise.
30207 * util/i386/pc/grub-mkimage.c (usage): Likewise.
30208 * util/i386/pc/grub-setup.c (usage): Likewise.
30209
70a14d3d 302102010-01-16 Carles Pina i Estany <carles@pina.cat>
30211
30212 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
30213 the message.
30214 (grub_util_info): Likewise.
30215 (grub_util_error): Likewise.
30216 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
30217 and/or new lines in `grub_util_warna', `grub_util_info',
30218 `grub_util_error' calls.
30219 * util/getroot.c: Likewise.
30220 * util/grub-editenv.c: Likewise.
30221 * util/grub-emu.c: Likewise.
30222 * util/grub-fstest.c: Likewise.
30223 * util/grub-mkdevicemap.c: Likewise.
30224 * util/grub-mkfont.c: Likewise.
30225 * util/grub-mkpasswd-pbkdf2.c: Likewise.
30226 * util/grub-mkrelpath.c: Likewise.
30227 * util/grub-pe2elf.c: Likewise.
30228 * util/grub-probe.c: Likewise.
30229 * util/hostdisk.c: Likewise.
30230 * util/i386/efi/grub-mkimage.c: Likewise.
30231 * util/i386/pc/grub-mkimage.c: Likewise.
30232 * util/i386/pc/grub-setup.c: Likewise.
30233 * util/ieee1275/ofpath.c: Likewise.
30234 * util/mkisofs/eltorito.c: Likewise.
30235 * util/mkisofs/rock.c: Likewise.
30236 * util/mkisofs/write.c: Likewise.
30237 * util/raid.c: Likewise.
30238 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
30239 * util/sparc64/ieee1275/grub-setup.c: Likewise.
30240
a0b766fc
VS
302412010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
30242
30243 Enable multiboot on non-pc.
30244
30245 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
30246 multiboot.mod and multiboot2.mod to ...
30247 * conf/i386.rmk (pkglib_MODULES): ... here.
30248 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
30249 Moved to ...
30250 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
30251 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
30252 Moved to ...
30253 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
30254 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
30255 Moved to ...
30256 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
30257 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
30258 Moved to ...
30259 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
30260 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
30261 relocator.mod.
30262 (ata_mod_SOURCES): Removed.
30263 (ata_mod_CFLAGS): Likewise.
30264 (ata_mod_LDFLAGS): Likewise.
30265 (relocator_mod_SOURCES): Removed.
30266 (relocator_mod_CFLAGS): Likewise.
30267 (relocator_mod_ASFLAGS): Likewise.
30268 (relocator_mod_LDFLAGS): Likewise.
30269 Include i386.mk.
30270 * include/grub/x86_64/multiboot.h: New file.
30271 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
30272 Terminate EFI.
30273
884ade56
VS
302742010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
30275
30276 Video multiboot support.
30277
30278 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
30279 New prototype.
30280 * include/multiboot.h: Resynced with multiboot specification.
30281 * include/multiboot2.h: Likewise.
30282 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
30283 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
30284 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
30285 (HAS_VGA_TEXT): Likewise.
30286 (accepts_video): New variable.
30287 (grub_multiboot_set_accepts_video): New function.
30288 (grub_multiboot_get_mbi_size): Account for video structures.
30289 (set_video_mode): New function.
30290 (retrieve_video_parameters): Likewise.
30291 (grub_multiboot_make_mbi): Fill video fields.
30292
0d90e8a6
VS
302932010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
30294
30295 Video driver ids.
30296
30297 * include/grub/video.h (grub_video_driver_id): New type.
30298 (grub_video_adapter): New member 'id'. All users updated.
30299 (grub_video_get_driver_id): New proto.
30300 * video/video.c (grub_video_get_driver_id): New function.
30301
5c71db1b 303022010-01-14 Carles Pina i Estany <carles@pina.cat>
30303
30304 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
30305 `var=val'.
30306
cca15b52 303072010-01-14 Carles Pina i Estany <carles@pina.cat>
30308
30309 * normal/cmdline.c (print_completion): Gettextizze.
30310
c586fbb2 303112001-01-14 Carles Pina i Estany <carles@pina.cat>
30312
30313 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
30314
ba2f6848 303152010-01-14 Carles Pina i Estany <carles@pina.cat>
30316
30317 * gettext/gettext.c (grub_gettext_translate): Push and pop
30318 grub_errno.
30319 (grub_gettext_delete_list): Change comment style.
30320 * kern/err.c (grub_error): Gettextizze.
30321 (grub_fatal): Gettextizze.
30322
0a46429a
RM
303232010-01-14 Robert Millan <rmh.grub@aybabtu.com>
30324
30325 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
30326 (grub_linux16_real_boot): ... this.
30327 * kern/i386/loader.S: Likewise.
30328 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
30329 (grub_linux16_boot): New function. Switches to text mode and calls
30330 grub_linux16_real_boot().
30331
30332 * loader/i386/bsd.c: Include `<grub/video.h>'.
30333 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
30334 text mode before calling grub_unix_real_boot().
30335
30336 * loader/i386/multiboot.c: Include `<grub/video.h>'.
30337 (grub_multiboot_boot): Switch to text mode before calling
30338 grub_relocator32_boot().
30339
30340 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
30341 (grub_chainloader_boot): Switch to text mode before calling
30342 grub_chainloader_real_boot().
30343
d6f93a66
RM
303442010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
303452010-01-05 Colin Watson <cjwatson@ubuntu.com>
30346
30347 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
30348 non-empty value.
30349
303502010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
303512010-01-05 Colin Watson <cjwatson@ubuntu.com>
30352
30353 * util/grub.d/00_header.in: Define a "savedefault" function for use
30354 in menu entries.
30355 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
30356
303572010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
303582010-01-05 Colin Watson <cjwatson@ubuntu.com>
30359
30360 * util/grub-mkconfig_lib.in (save_default_entry): Only set
30361 saved_entry if boot_once is unset.
30362 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
30363 previous saved entry (i.e. grub-reboot).
30364
303652009-12-08 Colin Watson <cjwatson@ubuntu.com>
30366
30367 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
30368
303692009-12-08 Colin Watson <cjwatson@ubuntu.com>
30370
30371 * util/grub.d/00_header.in: Use `set var=val' rather than plain
30372 `var=val'.
30373 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
30374
303752009-12-08 Colin Watson <cjwatson@ubuntu.com>
30376
30377 * util/grub-reboot.in: Fix --version output.
30378 * util/grub-set-default.in: Likewise.
30379
303802009-12-08 Colin Watson <cjwatson@ubuntu.com>
30381
30382 * util/grub.d/00_header.in: Silently ignore zero-sized environment
30383 blocks.
30384
303852009-12-08 Colin Watson <cjwatson@ubuntu.com>
30386
30387 * util/grub.d/00_header.in: Quote the value assigned to `default',
30388 in case it contains spaces.
30389
303902009-12-08 Colin Watson <cjwatson@ubuntu.com>
30391
30392 * util/grub.d/30_os-prober.in: Fix merge error that moved a
30393 `save_default_entry' call from the macosx case to the linux case.
30394
303952009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
303962009-10-25 Colin Watson <cjwatson@ubuntu.com>
30397
30398 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
30399 in `chosen' environment variable.
30400 * normal/menu_text.c (get_entry_number): Check if the variable
30401 matches the title of a menu entry.
30402 (run_menu): Pass menu to get_entry_number.
30403
30404 * util/grub-reboot.in: New file.
30405 * util/grub-set-default.in: New file.
30406 * conf/common.rmk (grub-reboot): New utility.
30407 (grub-set-default): New utility.
30408
30409 * util/grub-mkconfig_lib.in (save_default_entry): New function.
30410 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
30411 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
30412 move it to `saved_entry' for the next boot. Load environment on
30413 initialisation.
30414 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
30415 * util/grub.d/10_hurd.in: Likewise.
30416 * util/grub.d/10_linux.in (linux_entry): Likewise.
30417 * util/grub.d/10_windows.in: Likewise.
30418 * util/grub.d/30_os-prober.in: Likewise.
30419
30420 * util/grub-install.in: Create environment block.
30421 * util/i386/efi/grub-install.in: Likewise.
30422 * util/ieee1275/grub-install.in: Likewise.
30423 * util/sparc64/ieee1275/grub-install.in: Likewise.
30424
0934d184
BC
304252010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
30426
30427 Unit testing framework for GRUB.
30428
30429 * Makefile.in: Test framework build rules for 'make check'.
30430 * conf/tests.rmk: Build rules for individual tests and framework.
30431
30432 * include/grub/test.h: Header file for whitebox tests.
30433 * tests/lib/functional_test.c: Framework support for whitebox
30434 functional tests.
30435 * tests/lib/test.c: Common whitebox testing code for unit and
30436 functional tests.
30437 * tests/lib/unit_test.c: Framework support for whitebox unit
30438 tests.
30439
30440 * tests/util/grub-shell-tester.in: Support utility for grub-script
30441 tests.
30442 * tests/util/grub-shell.in: Utility to execute grub-script
30443 commands in a Qemu instance.
30444
30445 * tests/example_functional_test.c: Example whitebox functional
30446 test.
30447 * tests/example_grub_script_test.in: Example grub-script test.
30448 * tests/example_scripted_test.in: Example scripted test.
30449 * tests/example_unit_test.c: Example whitebox unit test.
30450
9c4ffeeb
VS
304512010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
30452
30453 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
30454 Add loader/i386/multiboot_mbi.c.
30455 (multiboot2_mod_SOURCES): Likewise.
30456 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
30457 (multiboot2_mod_SOURCES): Likewise.
30458 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
30459 (grub_multiboot_make_mbi): Likewise.
30460 (grub_multiboot_free_mbi): Likewise.
30461 (grub_multiboot_init_mbi): Likewise.
30462 (grub_multiboot_add_module): Likewise.
30463 (grub_multiboot_set_bootdev): Likewise.
30464 * loader/i386/multiboot.c (mbi): Removed.
30465 (mbi_dest): Likewise.
30466 (alloc_mbi): New variable.
30467 (grub_multiboot_payload_size): Removed. All users updated.
30468 (grub_multiboot_pure_size): New variable.
30469 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
30470 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
30471 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
30472 (grub_fill_multiboot_mmap): Likewise.
30473 (grub_multiboot_get_bootdev): Likewise.
30474 (grub_multiboot): Use multiboot_mbi functions.
30475 * loader/i386/multiboot_mbi.c: New file.
30476
17383dfe
VS
304772010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
30478
30479 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
30480 it would result in module crash.
30481
c1f28820
VS
304822010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
30483
30484 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
30485 (grub_ofconsole_getwh): Split to ...
30486 (grub_ofconsole_getwh): ... this.
30487 (grub_ofconsole_dimensions): ...and this.
30488 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
30489
58655a16
RM
304902010-01-13 Robert Millan <rmh.grub@aybabtu.com>
30491
30492 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
30493
10891398
VS
304942010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
30495
30496 * loader/i386/pc/multiboot2.c: Removed stalled file.
30497
0b8a223c
VS
304982010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
30499
30500 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
30501 Reported by: Grégoire Sutre
30502
92ab12b0
RM
305032010-01-11 Robert Millan <rmh.grub@aybabtu.com>
30504
30505 * util/misc.c (canonicalize_file_name): New function.
30506 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
30507 instead of realpath().
30508
a788afb6
CW
305092010-01-11 Colin Watson <cjwatson@ubuntu.com>
30510
30511 * util/grub-install.in (usage): Clarify meaning of --root-directory,
30512 and make it clearer that it's optional. Based on confusion
30513 witnessed on IRC.
30514
ffa8e3d2
VS
305152010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
30516
30517 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
30518 in premature implicit newline.
30519
e9060a9d
VS
305202010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
30521
30522 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
30523 which resulted in garbled command line at the end of screen.
30524
f0d0c0b7
RM
305252010-01-10 Robert Millan <rmh.grub@aybabtu.com>
30526
30527 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
30528 initialization with similar approach as with other Linux loaders.
30529
0e60bae7
RM
305302010-01-10 Robert Millan <rmh.grub@aybabtu.com>
30531
30532 Fix i386-ieee1275 build.
30533
30534 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
30535 and grub_term_height() for video_{width,height} initialization.
30536
305372010-01-10 Robert Millan <rmh.grub@aybabtu.com>
cdec4d31
RM
30538
30539 Fix grub-emu build.
30540
30541 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
30542
cdb3f378
RM
305432010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
305442010-01-09 Robert Millan <rmh.grub@aybabtu.com>
30545
30546 Support for multiple terminals.
30547
30548 * Makefile.in (pkglib_DATA): terminal.lst.
30549 (terminal.lst): New target.
30550 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
30551 (GRUB_MOD_INIT(handler)): Likewise.
30552 (GRUB_MOD_FINI(handler)): Likewise.
30553 * commands/help.c (grub_cmd_help): Handle multiple terminals.
30554 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
30555 * commands/sleep.c (do_print): Use grub_term_restore_pos.
30556 (grub_cmd_sleep): Use grub_term_save_pos.
30557 * commands/terminal.c: New file.
30558 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
30559 commands/terminal.c and lib/charset.c.
30560 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
30561 (pkglib_MODULES): Add terminal.mod.
30562 (terminal_mod_SOURCES): New variable.
30563 (terminal_mod_CFLAGS): Likewise.
30564 (terminal_mod_LDFLAGS): Likewise.
30565 * genhandlerlist.sh: Don't handle terminals.
30566 * genmk.rb: Generate terminal-*.lst.
30567 * genterminallist.sh: New file.
30568 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
30569 (grub_is_valid_utf8): Likewise.
30570 (grub_utf8_to_ucs4_alloc): Likewise.
30571 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
30572 (grub_menu_register_viewer): Changed argument.
30573 (grub_menu_try_text): New proto.
30574 (grub_gfxmenu_try_hook): New declaration.
30575 * include/grub/normal.h (grub_normal_exit_level): New declaration.
30576 (grub_menu_init_page): Additional argument term.
30577 (grub_normal_init_page): Likewise.
30578 (grub_cmdline_get): Arguments simplified.
30579 (grub_utf8_to_ucs4_alloc): Removed.
30580 (grub_print_ucs4): Additional argument term.
30581 (grub_getstringwidth): Likewise.
30582 (grub_print_message_indented): Likewise.
30583 (grub_menu_text_register_instances): New proto.
30584 (grub_show_menu): Likewise.
30585 (read_terminal_list): Likewise.
30586 (grub_set_more): Likewise.
30587 * include/grub/parser.h: Include handler.h.
30588 * include/grub/reader.h: Rewritten.
30589 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
30590 (GRUB_TERM_WIDTH): Changed to function.
30591 (GRUB_TERM_HEIGHT): Likewise.
30592 (GRUB_TERM_BORDER_WIDTH): Likewise.
30593 (GRUB_TERM_BORDER_HEIGHT): Likewise.
30594 (GRUB_TERM_NUM_ENTRIES): Likewise.
30595 (GRUB_TERM_ENTRY_WIDTH): Likewise.
30596 (GRUB_TERM_CURSOR_X): Likewise.
30597 (grub_term_input_class): Likewise.
30598 (grub_term_output_class): Likewise.
30599 (grub_term_outputs_disabled): New declaration.
30600 (grub_term_inputs_disabled): Likewise.
30601 (grub_term_outputs): Likewise.
30602 (grub_term_inputs): Likewise.
30603 (grub_term_register_input): Rewritten.
30604 (grub_term_register_output): Likewise.
30605 (grub_term_unregister_input): Likewise.
30606 (grub_term_unregister_output): Likewise.
30607 (FOR_ACTIVE_TERM_INPUTS): New macro.
30608 (FOR_DISABLED_TERM_INPUTS): Likewise.
30609 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
30610 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
30611 * include/grub/terminfo.h: Add oterm argument to all protypes.
30612 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
30613 Use grub_rescue_run.
30614 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
30615 All users updated.
30616 * kern/reader.c: Removed. All users updated.
30617 * kern/rescue_reader.c (grub_rescue_init): Removed.
30618 (grub_rescue_reader): Likewise.
30619 (grub_register_rescue_reader): Likewise.
30620 (grub_rescue_run): New function based on kern/reader.c.
30621 * kern/term.c: Adapted for multiterm.
30622 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
30623 (grub_is_valid_utf8): Likewise.
30624 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
30625 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
30626 right terminal.
30627 * loader/i386/linux.c (grub_linux_boot): Likewise.
30628 * normal/auth.c (grub_username_get): New function.
30629 (grub_auth_check_authentication): Use grub_username_get.
30630 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
30631 * normal/color.c: Adapt for multiterm.
30632 * normal/main.c (read_config_file): Don't use grub_reader_loop.
30633 (grub_normal_init_page): Additional argument term.
30634 (read_lists): Call read_terminal_lists.
30635 (grub_enter_normal_mode): Call grub_cmdline_run.
30636 Handle grub_normal_exit_level.
30637 (grub_cmd_normal): Make reentrant.
30638 (grub_cmd_normal_exit): New function.
30639 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
30640 * normal/menu.c: Adapt for multiterm.
30641 * normal/menu_entry.c: Likewise.
30642 * normal/menu_text.c: Likewise.
30643 * normal/menu_viewer.c: Removed. All users updated.
30644 * normal/term.c: New file.
30645 * util/console.c: Change order of includes to workaround a bug in
30646 ncurses headers.
30647 * term/terminfo.c: New argument oterm on all exported functions.
30648 All users updated.
30649 * util/grub-editenv.c (grub_term_input_class): Removed.
30650 (grub_term_output_class): Likewise.
30651
1a064917
RM
306522010-01-09 Robert Millan <rmh.grub@aybabtu.com>
30653
30654 Make loader output a bit more user-friendly.
30655
30656 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
30657 is being loaded. Likewise for the Hurd.
30658
30659 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
30660 that kernel of FreeBSD ${version} is being loaded.
30661
30662 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
30663 grub_dprintf().
30664 (grub_cmd_initrd): Likewise.
30665 * util/grub.d/10_linux.in (linux_entry): Print message indicating
30666 that Linux ${version} is being loaded. Likewise for initrd.
30667
5ce0a83a 306682010-01-09 Carles Pina i Estany <carles@pina.cat>
30669
30670 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
30671
809bbfeb 306722010-01-08 Carles Pina i Estany <carles@pina.cat>
30673
30674 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
30675 (GRUB_MOD_INIT): Gettextizze.
30676 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
30677 (GRUB_MOD_INIT): Gettextizze.
30678 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
30679 (grub_cmd_linux): Capitalise Linux.
30680 (GRUB_MOD_INIT): Gettextizze.
30681 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
30682 (grub_cmd_linux): Capitalise Linux.
30683 (GRUB_MOD_INIT): Gettextizze.
30684 * loader/i386/linux.c: Include `<grub/i18n.h>'.
30685 (grub_cmd_linux): Capitalise Linux.
30686 (GRUB_MOD_INIT): Gettextizze.
30687 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
30688 (GRUB_MOD_INIT): Gettextizze.
30689 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
30690 (grub_cmd_linux): Capitalise Linux.
30691 (GRUB_MOD_INIT): Gettextizze.
30692 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
30693 (grub_cpu_xnu_init): Gettextizze.
30694 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
30695 (GRUB_MOD_INIT): Gettextizze.
30696 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
30697 (GRUB_MOD_INIT): Gettextizze.
30698 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
30699 (grub_linux_load64): Capitalise Linux.
30700 (GRUB_MOD_INIT): Gettextizze.
30701 * loader/xnu.c: Include `<grub/i18n.h>'.
30702 (GRUB_MOD_INIT): Gettextizze.
30703 * po/POTFILES: Add `loader/efi/appleloader.c',
30704 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
30705 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
30706 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
30707 `loader/i386/xnu.c', `loader/multiboot_loader.c',
30708 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
30709 and `loader/xnu.c'.
30710
b394b2ca
RM
307112010-01-08 Robert Millan <rmh.grub@aybabtu.com>
30712
30713 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
30714
307152010-01-08 Robert Millan <rmh.grub@aybabtu.com>
cd943b75
RM
30716
30717 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
30718 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
30719 * util/mkisofs/mkisofs.c (main): Readjust --version output.
30720
bc8b32b3
RM
307212010-01-07 Robert Millan <rmh.grub@aybabtu.com>
30722
30723 Reset Multiboot 2 support. New loader implements the draft in
30724 /branches/multiboot2 and shares as much code as possible with the
30725 production Multiboot 1 implementation.
30726
30727 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
30728 * loader/multiboot2.c: Likewise.
30729 * loader/i386/multiboot_helper.S: Likewise.
30730 * include/multiboot2.h: Replace with latest version from the draft
30731 in /branches/multiboot2.
30732
30733 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
30734 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
30735 and `loader/multiboot2.c'.
30736 (pkglib_MODULES): Add `multiboot2.mod'.
30737 (multiboot2_mod_SOURCES): New variable.
30738 (multiboot2_mod_LDFLAGS): Likewise.
30739 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
30740
30741 * conf/i386-pc.rmk: Likewise.
30742
30743 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
30744 (multiboot_mod_SOURCES): Remove variable.
30745 (multiboot_mod_LDFLAGS): Likewise.
30746 (multiboot_mod_CFLAGS): Likewise.
30747
30748 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
30749 `<multiboot2.h>' instead of `<multiboot.h>'.
30750 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
30751 (MULTIBOOT_HEADER_MAGIC): New macros.
30752
30753 * loader/multiboot_loader.c (module_version_status): Remove variable.
30754 (find_multi_boot2_header): Remove function.
30755 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
30756 logic. Always check for the Multiboot version we're compiling for.
30757 (grub_cmd_module_loader): Likewise.
30758 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
30759 command instead of `multiboot'.
30760
5d2c52b8
RM
307612010-01-07 Robert Millan <rmh.grub@aybabtu.com>
30762
30763 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
30764 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
30765 all users.
30766
53108d92
RM
307672010-01-07 Robert Millan <rmh.grub@aybabtu.com>
307682010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
30769
30770 Fix breakage introduced with previous commit.
30771
30772 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
30773 commands.
30774 * normal/handler.c (read_handler_list): Revert part of previous commit
30775 affecting this file.
30776 * normal/main.c (read_lists): Move read_handler_list() call back to ...
30777 (grub_normal_execute): ... here.
30778
e2e936b2
RM
307792010-01-07 Robert Millan <rmh.grub@aybabtu.com>
30780
30781 Merge prefix-redefinition-fix branch.
30782
30783 * normal/autofs.c (read_fs_list): Make function capable of being
30784 run multiple times, gracefuly replacing the previous data
30785 structures.
30786 * normal/dyncmd.c (read_command_list): Likewise.
30787 * normal/handler.c (read_handler_list): Likewise.
30788 * normal/main.c (read_lists): New function. Calls all the
30789 list reading functions.
30790 (grub_normal_execute): Use read_lists() instead of calling all
30791 list reading functions explicitly. Register read_lists() as a
30792 variable hook attached to ${prefix}.
30793
607a3701
VS
307942010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
30795
30796 Merge crypto branch.
30797
30798 * Makefile.in (pkglib_DATA): Add crypto.lst.
30799 (crypto.lst): New target.
30800 * commands/hashsum.c: New file.
30801 * commands/password.c (check_password): Use grub_crypto_memcmp.
30802 * commands/password_pbkdf2.c: New file.
30803 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
30804 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
30805 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
30806 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
30807 -I$(srcdir)/lib/libgcrypt_wrap.
30808 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
30809 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
30810 password_pbkdf2.mod.
30811 (crypto_mod_SOURCES): New variable.
30812 (crypto_mod_CFLAGS): Likewise.
30813 (crypto_mod_LDFLAGS): Likewise.
30814 (hashsum_mod_SOURCES): New variable.
30815 (hashsum_mod_CFLAGS): Likewise.
30816 (hashsum_mod_LDFLAGS): Likewise.
30817 (pbkdf2_mod_SOURCES): New variable.
30818 (pbkdf2_mod_CFLAGS): Likewise.
30819 (pbkdf2_mod_LDFLAGS): Likewise.
30820 (password_pbkdf2_mod_SOURCES): New variable.
30821 (password_pbkdf2_mod_CFLAGS): Likewise.
30822 (password_pbkdf2_mod_LDFLAGS): Likewise.
30823 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
30824 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
30825 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
30826 Include conf/gcry.rmk.
30827 * include/grub/auth.h: Rewritten.
30828 * include/grub/crypto.h: New file.
30829 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
30830 * include/grub/normal.h (read_crypto_list): New prototype.
30831 * lib/crypto.c: New file.
30832 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
30833 * lib/pbkdf2.c: Likewise.
30834 * normal/auth.c (grub_auth_strcmp): Removed.
30835 (grub_iswordseparator): Likewise.
30836 (grub_auth_strword): Likewise.
30837 (is_authenticated): Use grub_strword.
30838 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
30839 and grub_strword. Pass entered password to authentication callback.
30840 * normal/crypto.c: New file.
30841 * normal/main.c: Call read_crypto_list.
30842 * util/grub-mkpasswd-pbkdf2.c: New file.
30843 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
30844
42841caa
VS
308452010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
30846
30847 Fix descent and ascent calculation.
30848
30849 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
30850 (options): New option "asce".
30851 (usage): Likewise.
30852 (add_char): Ignore invalid glyphs for descent calculation.
30853 Calculate ascent from actual content.
30854 (print_glyphs): Use 'asce'.
30855 (write_font): Likewise. Allow ascent override.
30856 (main): Handle "asce" option.
30857
e7730de7 308582010-01-06 Carles Pina i Estany <carles@pina.cat>
30859
30860 * kern/err.c: Include `<grub/i18n.h>'.
30861 (grub_print_error): Add full stop. Gettextizze.
30862 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
30863 (grub_bsd_load_elf): Capitalise ELF.
30864 (grub_cmd_freebsd_loadenv): Add `s' in error string.
30865 (grub_cmd_freebsd_module): Likewise.
30866 (grub_cmd_freebsd_module_elf): Likewise.
30867 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
30868
40e3a41f 308692010-01-06 Carles Pina i Estany <carles@pina.cat>
30870
30871 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
30872 * commands/search_file.c (HELP_MESSAGE): New macro.
30873 * commands/search_label.c (HELP_MESSAGE): Likewise.
30874 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
30875 * po/POTFILES: Add `commands/search_file.c',
30876 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
30877 `commands/search.c'.
30878
83507e68
RM
308792010-01-05 Robert Millan <rmh.grub@aybabtu.com>
30880
30881 * config.rpath: Update from Gnulib.
30882
465c787b
YB
308832010-01-05 Yves Blusseau <blusseau@zetam.org>
30884
30885 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
30886
6581dd3a
YB
308872010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
30888
30889 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
30890
3bff18c5
CW
308912010-01-05 Colin Watson <cjwatson@ubuntu.com>
30892
30893 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
30894 arguments to fread so that we get a return value in bytes, rather
30895 than something that will normally be rounded down to 0.
30896 Adjust error handling to avoid producing garbage when size_t is not
30897 the same size as long long.
30898
a1368118
CW
308992010-01-05 Colin Watson <cjwatson@ubuntu.com>
30900
30901 * util/mkisofs/write.c (padblock_write): Check return value of
30902 fread.
30903
7c302978
RM
309042010-01-05 Robert Millan <rmh.grub@aybabtu.com>
30905
30906 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
30907 floppy images now.
30908
30909 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
30910
e33ace06
RM
309112010-01-04 Robert Millan <rmh.grub@aybabtu.com>
30912
30913 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
30914 instead of manual alignment.
30915 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
30916 verbose). Avoid attempts to read past end of the device
30917 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
30918 but GRUB_DISK_CACHE_SIZE may exceed that).
30919
4b856776
RM
309202010-01-04 Robert Millan <rmh.grub@aybabtu.com>
30921
30922 * commands/crc.c (grub_cmd_crc): Abort on read errors.
30923 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
30924 it to upper layer.
30925
52c2d97f
VS
309262010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
30927
30928 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
30929 New constant.
30930 (grub_efi_piwg_device_path): New structure
30931 (grub_efi_piwg_device_path_t): New type.
30932 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
30933 (devpath_1): Transform to a structure. All users updated.
30934 (devpath_2): Likewise.
30935 (devpath_3): Likewise.
30936 (devpath_4): Likewise.
30937 (devpath_5): Likewise.
30938
98ff6a54
VS
309392010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
30940
30941 * loader/efi/appleloader.c: Restored. Update all users.
30942
3a73dcb6
RM
309432010-01-03 Robert Millan <rmh.grub@aybabtu.com>
30944
30945 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
30946
30947 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
30948 (struct boot_blocklist): Move from here ...
30949 * include/grub/i386/pc/boot.h [ASM_FILE]
30950 (struct grub_boot_blocklist): ... to here. Update all users.
30951 (setup): Only initialize `start' member of `first_block'
30952 structure. Add assert() calls to verify the other members.
30953
30954 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
30955 (generate_image): Fix broken blocklist length initialization.
30956 Add assert() call to verify blocklist `segment' field.
30957
ab0eeb0c
RM
309582010-01-03 Robert Millan <rmh.grub@aybabtu.com>
30959
30960 * loader/efi/appleloader.c: Remove. Update all users.
30961
58bc8bd5
RM
309622010-01-03 Robert Millan <rmh.grub@aybabtu.com>
30963
30964 * boot/i386/pc/boot.S: Update copyright year.
30965 * boot/i386/pc/cdboot.S: Likewise.
30966 * boot/i386/pc/diskboot.S: Likewise.
30967 * boot/i386/pc/lnxboot.S: Likewise.
30968 * boot/i386/pc/pxeboot.S: Likewise.
30969 * bus/pci.c: Likewise.
30970 * commands/cmp.c: Likewise.
30971 * commands/help.c: Likewise.
30972 * commands/hexdump.c: Likewise.
30973 * commands/i386/pc/halt.c: Likewise.
30974 * commands/i386/pc/play.c: Likewise.
30975 * commands/i386/pc/vbeinfo.c: Likewise.
30976 * commands/ls.c: Likewise.
30977 * commands/test.c: Likewise.
30978 * disk/dmraid_nvidia.c: Likewise.
30979 * disk/i386/pc/biosdisk.c: Likewise.
30980 * disk/ieee1275/nand.c: Likewise.
30981 * disk/ieee1275/ofdisk.c: Likewise.
30982 * disk/lvm.c: Likewise.
30983 * disk/raid.c: Likewise.
30984 * disk/raid6_recover.c: Likewise.
30985 * disk/scsi.c: Likewise.
30986 * fs/affs.c: Likewise.
30987 * fs/cpio.c: Likewise.
30988 * fs/ext2.c: Likewise.
30989 * fs/hfs.c: Likewise.
30990 * fs/iso9660.c: Likewise.
30991 * fs/ntfs.c: Likewise.
30992 * fs/sfs.c: Likewise.
30993 * fs/udf.c: Likewise.
30994 * fs/ufs.c: Likewise.
30995 * fs/xfs.c: Likewise.
30996 * gencmdlist.sh: Likewise.
30997 * genmk.rb: Likewise.
30998 * include/grub/disk.h: Likewise.
30999 * include/grub/efi/api.h: Likewise.
31000 * include/grub/efi/efi.h: Likewise.
31001 * include/grub/efi/pe32.h: Likewise.
31002 * include/grub/elf.h: Likewise.
31003 * include/grub/fs.h: Likewise.
31004 * include/grub/i386/at_keyboard.h: Likewise.
31005 * include/grub/i386/pc/memory.h: Likewise.
31006 * include/grub/i386/pc/vbe.h: Likewise.
31007 * include/grub/i386/pci.h: Likewise.
31008 * include/grub/i386/tsc.h: Likewise.
31009 * include/grub/ieee1275/ieee1275.h: Likewise.
31010 * include/grub/ntfs.h: Likewise.
31011 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
31012 * include/grub/sparc64/libgcc.h: Likewise.
31013 * include/grub/symbol.h: Likewise.
31014 * include/grub/types.h: Likewise.
31015 * include/multiboot2.h: Likewise.
31016 * io/gzio.c: Likewise.
31017 * kern/device.c: Likewise.
31018 * kern/disk.c: Likewise.
31019 * kern/efi/efi.c: Likewise.
31020 * kern/efi/mm.c: Likewise.
31021 * kern/elf.c: Likewise.
31022 * kern/file.c: Likewise.
31023 * kern/i386/dl.c: Likewise.
31024 * kern/i386/pc/init.c: Likewise.
31025 * kern/i386/pc/startup.S: Likewise.
31026 * kern/ieee1275/ieee1275.c: Likewise.
31027 * kern/ieee1275/init.c: Likewise.
31028 * kern/main.c: Likewise.
31029 * kern/mm.c: Likewise.
31030 * kern/powerpc/dl.c: Likewise.
31031 * kern/sparc64/dl.c: Likewise.
31032 * kern/x86_64/dl.c: Likewise.
31033 * lib/hexdump.c: Likewise.
31034 * loader/efi/appleloader.c: Likewise.
31035 * loader/i386/ieee1275/linux.c: Likewise.
31036 * loader/i386/pc/chainloader.c: Likewise.
31037 * loader/i386/pc/linux.c: Likewise.
31038 * loader/i386/pc/multiboot2.c: Likewise.
31039 * loader/ieee1275/multiboot2.c: Likewise.
31040 * loader/multiboot2.c: Likewise.
31041 * loader/multiboot_loader.c: Likewise.
31042 * loader/powerpc/ieee1275/linux.c: Likewise.
31043 * normal/completion.c: Likewise.
31044 * normal/menu_entry.c: Likewise.
31045 * partmap/apple.c: Likewise.
31046 * util/grub.d/10_hurd.in: Likewise.
31047 * util/hostfs.c: Likewise.
31048 * video/readers/png.c: Likewise.
31049
e2d70b5c
CW
310502010-01-03 Colin Watson <cjwatson@ubuntu.com>
31051
31052 * include/grub/misc.h (GNUC_PREREQ): New macro.
31053 (ATTRIBUTE_ERROR): New macro.
31054 * include/grub/list.h (grub_bad_type_cast_real): Use
31055 ATTRIBUTE_ERROR.
31056
a173283f 310572010-01-03 Carles Pina i Estany <carles@pina.cat>
31058
31059 * normal/menu_text.c (print_message): Change messages.
31060
7fa7ff74 310612010-01-03 Carles Pina i Estany <carles@pina.cat>
31062
31063 * normal/menu_entry.c (store_completion): Gettextizze.
31064
136d24f6 310652010-01-03 Carles Pina i Estany <carles@pina.cat>
31066
31067 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
31068
f936862e 310692010-01-03 Carles Pina i Estany <carles@pina.cat>
31070
31071 * po/POTFILES: Sort correctly.
31072
29c44ad1 310732010-01-03 Carles Pina i Estany <carles@pina.cat>
31074
31075 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
31076 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
31077 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
31078 full stop.
31079 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
31080 summary. Gettextizze the strings.
31081 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
31082 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
31083 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
31084 full stop.
31085 (GRUB_MOD_INIT): Remove command name from summary.
31086 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
31087 summary.
31088 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
31089 * term/i386/pc/serial.c (options): Add full stops.
31090 (GRUB_MOD_INIT): Remove command name from the summary.
31091
77a79592 310922010-01-03 Carles Pina i Estany <carles@pina.cat>
31093
31094 * commands/acpi.c: Gettextizze help strings and/or options. Include
31095 `grub/i18n.h' if needed.
31096 * commands/blocklist.c: Likewise.
31097 * commands/boot.c: Likewise.
31098 * commands/cat.c: Likewise.
31099 * commands/cmp.c: Likewise.
31100 * commands/configfile.c: Likewise.
31101 * commands/crc.c: Likewise.
31102 * commands/date.c: Likewise.
31103 * commands/echo.c: Likewise.
31104 * commands/efi/fixvideo.c: Likewise.
31105 * commands/efi/loadbios.c: Likewise.
31106 * commands/gptsync.c: Likewise.
31107 * commands/halt.c: Likewise.
31108 * commands/handler.c: Likewise.
31109 * commands/hdparm.c: Likewise.
31110 * commands/hexdump.c: Likewise.
31111 * commands/i386/cpuid.c: Likewise.
31112 * commands/i386/pc/drivemap.c: Likewise.
31113 * commands/i386/pc/halt.c: Likewise.
31114 * commands/i386/pc/pxecmd.c: Likewise.
31115 * commands/i386/pc/vbeinfo.c: Likewise.
31116 * commands/i386/pc/vbetest.c: Likewise.
31117 * commands/ieee1275/suspend.c: Likewise.
31118 * commands/keystatus.c: Likewise.
31119 * commands/loadenv.c: Likewise.
31120 * commands/ls.c: Likewise.
31121 * commands/lsmmap.c: Likewise.
31122 * commands/lspci.c: Likewise.
31123 * commands/memrw.c: Likewise.
31124 * commands/minicmd.c: Likewise.
31125 * commands/parttool.c: Likewise.
31126 * commands/password.c: Likewise.
31127 * commands/probe.c: Likewise.
31128 * commands/read.c: Likewise.
31129 * commands/reboot.c: Likewise.
31130 * commands/search.c: Likewise.
31131 * commands/sleep.c: Likewise.
31132 * commands/test.c: Likewise.
31133 * commands/true.c: Likewise.
31134 * commands/usbtest.c: Likewise.
31135 * commands/videotest.c: Likewise.
31136 * commands/xnu_uuid.c: Likewise.
31137 * disk/loopback.c: Likewise.
31138 * hello/hello.c: Likewise.
31139 * loader/i386/bsd.c: Likewise.
31140 * term/i386/pc/serial.c: Likewise.
31141 * po/POTFILES: Add new files.
31142
da8d5c53
CW
311432010-01-02 Colin Watson <cjwatson@ubuntu.com>
31144
31145 * term/i386/pc/at_keyboard.c
31146 (keyboard_controller_wait_untill_ready): Rename to ...
31147 (keyboard_controller_wait_until_ready): ... this. Update all users.
31148
33937904 311492010-01-01 Carles Pina i Estany <carles@pina.cat>
31150
31151 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
31152 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
31153 string using string width.
31154 * normal/menu_text.c (grub_print_message_indented): Use
31155 grub_print_spaces and not print_spaces.
31156 (print_timeout): Likewise.
31157 (print_spaces): Move to...
31158 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
31159
3fd3b8d8
RM
311602010-01-01 Robert Millan <rmh.grub@aybabtu.com>
31161
31162 Import from Gnulib.
31163
31164 * gnulib/getdelim.c: New file.
31165 * gnulib/getline.c: Likewise.
31166
33433555
VS
311672009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
31168
31169 * include/grub/list.h (grub_assert_fail): Removed.
31170 (grub_bad_type_cast_real): New function.
31171 (grub_bad_type_cast): New macro.
31172 (GRUB_AS_LIST): Use grub_bad_type_cast.
31173 (GRUB_AS_LIST_P): Likewise.
e44721e8 31174 (GRUB_AS_NAMED_LIST): Likewise.
33433555 31175 (GRUB_AS_NAMED_LIST_P): Likewise.
e44721e8 31176 (GRUB_AS_PRIO_LIST): Likewise.
33433555 31177 (GRUB_AS_PRIO_LIST_P): Likewise.
e44721e8 31178 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
33433555 31179
f5a51306
VS
311802009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
31181
31182 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
31183 Fix syntax error.
31184
90d1e879
RM
311852009-12-29 Robert Millan <rmh.grub@aybabtu.com>
31186
31187 * configure.ac: Check for TARGET_CFLAGS initialization before we
31188 initialize it ourselves (sigh).
31189 Move a few modifications to TARGET_CFLAGS to be unconditional
31190 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
31191 eh_frame)
31192
31193 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
31194 * term/i386/pc/at_keyboard.c
31195 (keyboard_controller_wait_untill_ready): Likewise.
31196 (keyboard_controller_led): Rename `led_status' paramter to avoid
31197 name conflict.
31198
465b5a81 311992009-12-28 Carles Pina i Estany <carles@pina.cat>
31200
31201 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
31202 quotes.
31203
c181849b
VS
312042009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
31205
31206 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
31207
9c8739a4
VS
312082009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
31209
31210 * normal/menu_text.c (grub_print_message_indented): Prevent
31211 past-the-end-of-array dereference.
31212
3e74249c
VS
312132009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
31214
31215 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
31216 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
31217
64fd18ed 312182009-12-27 Carles Pina i Estany <carles@pina.cat>
31219
31220 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
31221 * normal/main.c (grub_normal_read_line): Remove a space from the
31222 default prompt.
31223
714af9b9 312242009-12-27 Carles Pina i Estany <carles@pina.cat>
31225
31226 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
31227 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
31228 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
31229 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
31230 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
31231 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
31232 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
31233
82f3e412 312342009-12-26 Carles Pina i Estany <carles@pina.cat>
c541b01a 31235
31236 * video/readers/jpeg.c (cmd): Declare.
31237 (grub_cmd_jpegtest): Use `grub_command_t' type.
31238 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
31239 Assign to `cmd'.
31240 (GRUB_MOD_FINI): Use `cmd' to unregister.
31241 * video/readers/png.c (cmd): Declare.
31242 (grub_cmd_pngtest): Use `grub_command_t' type.
31243 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
31244 Assign to `cmd'.
31245 (GRUB_MOD_FINI): Use `cmd' to unregister.
31246 * video/readers/tga.c (cmd): Declare.
31247 (grub_cmd_tgatest): Use `grub_command_t' type.
31248 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
31249 Assign to `cmd'.
31250 (GRUB_MOD_FINI): Use `cmd' to unregister.
31251
82f3e412 312522009-12-26 Carles Pina i Estany <carles@pina.cat>
864ba2bb 31253
31254 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
31255 stops.
31256 * kern/corecmd.c (grub_register_core_commands): Likewise.
31257 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
31258 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
31259 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
31260 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
31261 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
31262 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
31263 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
31264 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
31265 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
31266 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
31267 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
31268 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
31269 * normal/handler.c (insert_handler): Likewise.
31270 * normal/main.c (GRUB_MOD_INIT): Likewise.
31271 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
31272
fdcdbb66 312732009-12-26 Carles Pina i Estany <carles@pina.cat>
31274
31275 * commands/help.c (grub_cmd_help): Print the command name before the
31276 summary.
31277 (GRUB_MOD_INIT): Remove command name from the summary.
31278 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
82f3e412 31279 string as summary.
fdcdbb66 31280 * lib/arg.c (find_long): Print the command name before the summary.
31281 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
31282 summary.
31283 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
31284 * commands/cat.c (GRUB_MOD_INIT): Likewise.
31285 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
31286 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
31287 * commands/crc.c (GRUB_MOD_INIT): Likewise.
31288 * commands/date.c (GRUB_MOD_INIT): Likewise.
31289 * commands/echo.c (GRUB_MOD_INIT): Likewise.
31290 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
31291 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
31292 * commands/handler.c (GRUB_MOD_INIT): Likewise.
31293 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
31294 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
31295 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
31296 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
31297 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
31298 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
31299 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
31300 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
31301 * commands/ls.c (GRUB_MOD_INIT): Likewise.
31302 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
31303 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
31304 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
31305 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
31306 * commands/password.c (GRUB_MOD_INIT): Likewise.
31307 * commands/probe.c (GRUB_MOD_INIT): Likewise.
31308 * commands/read.c (GRUB_MOD_INIT): Likewise.
31309 * commands/search.c (GRUB_MOD_INIT): Likewise.
31310 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
31311 * commands/test.c (GRUB_MOD_INIT): Likewise.
31312 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
31313 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
31314 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
31315 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
31316 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
31317 * lib/arg.c (GRUB_MOD_INIT): Likewise.
31318 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
31319 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
31320 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
31321 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
31322 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
31323 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
31324 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
31325 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
31326
9c288be2
VS
313272009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
31328
31329 Use search command for preliminar UUID search.
31330
31331 * commands/search.c: Split into ...
31332 * commands/search_wrap.c: ...this
31333 * commands/search.c: ...and this.
31334 * commands/search_file.c: New file.
31335 * commands/search_label.c: New file.
31336 * commands/search_uuid.c: New file.
31337 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
31338 Add commands/search_wrap.c, commands/search_file.c,
31339 commands/search_label.c and commands/search_uuid.c.
31340 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
31341 (search_mod_SOURCES): Set to commands/search_wrap.c.
31342 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
31343 search_label.mod.
31344 (search_fs_file_mod_SOURCES): New variable.
31345 (search_fs_file_mod_CFLAGS): Likewise.
31346 (search_fs_file_mod_LDFLAGS): Likewise.
31347 (search_label_mod_SOURCES): Likewise.
31348 (search_label_mod_CFLAGS): Likewise.
31349 (search_label_mod_LDFLAGS): Likewise.
31350 (search_fs_uuid_mod_SOURCES): New variable.
31351 (search_fs_uuid_mod_CFLAGS): Likewise.
31352 (search_fs_uuid_mod_LDFLAGS): Likewise.
31353 (fs_file_mod_SOURCES): Removed.
31354 (fs_file_mod_CFLAGS): Likewise.
31355 (fs_file_mod_LDFLAGS): Likewise.
31356 (fs_uuid_mod_SOURCES): Removed.
31357 (fs_uuid_mod_CFLAGS): Likewise.
31358 (fs_uuid_mod_LDFLAGS): Likewise.
31359 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
31360 Set to util/grub-install.in.
31361 * disk/fs_file.c: Removed.
31362 * disk/fs_uuid.c: Likewise.
31363 * include/grub/search.h: New file.
31364 * util/grub-install.in: Handle sparc64.
31365 Create and use load.cfg.
31366 * util/sparc64/ieee1275/grub-install.in: Removed.
31367
db943399
VS
313682009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
31369
31370 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
31371 Ignore return status if CF is cleared.
31372 (grub_biosdisk_get_diskinfo_standard): Likewise.
31373
3fdae612
RM
313742009-12-25 Robert Millan <rmh.grub@aybabtu.com>
31375
31376 * term/i386/pc/at_keyboard.c
31377 (keyboard_controller_wait_untill_ready): New function.
31378 (grub_keyboard_controller_write, grub_keyboard_controller_read)
31379 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
31380 for keyboard polling, rather than duplicate the same loop. This
31381 saves a few bytes in code size.
31382
7ebaa2b4
VS
313832009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
31384
31385 Support for (pxe[:server[:gateway]]) syntax and
31386 use environment variable for PXE.
31387
31388 * commands/i386/pc/pxecmd.c (options): Removed.
31389 (print_ip): Removed.
31390 (grub_cmd_pxe): Removed
31391 (grub_cmd_pxe_unload): New function.
31392 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
31393 (grub_pxe_your_ip): Made static.
31394 (grub_pxe_default_server_ip): Likewise.
31395 (grub_pxe_default_gateway_ip): Likewise.
31396 (grub_pxe_blksize): Likewise.
31397 (parse_ip): New function.
31398 (grub_pxe_open): Support server and gateway specification.
31399 (grub_pxe_close): Free disk->data.
31400 (grub_pxefs_open): Use disk->data.
31401 (grub_pxefs_read): Likewise.
31402 (grub_env_write_readonly): New function.
31403 (set_mac_env): Likewise.
31404 (set_env_limn_ro): Likewise.
31405 (parse_dhcp_vendor): Likewise.
31406 (grub_pxe_detect): Set the environment variables.
31407 (set_ip_env): New function.
31408 (write_ip_env): Likewise.
31409 (grub_env_write_pxe_default_server): Likewise.
31410 (grub_env_write_pxe_default_gateway): Likewise.
31411 (grub_env_write_pxe_blocksize): Likewise.
31412 (GRUB_MOD_INIT(pxe)): Set environment variables.
31413 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
31414 (grub_pxe_mac_addr_t): ... this. All users updated.
31415 (grub_pxe_your_ip): Removed.
31416 (grub_pxe_server_ip): Likewise.
31417 (grub_pxe_gateway_ip): Likewise.
31418 (grub_pxe_blksize): Likewise.
31419
ec5f98ab 314202009-12-25 Carles Pina i Estany <carles@pina.cat>
31421
31422 * commands/help.c: Include `<grub/i18n.h>'.
31423 (grub_cmd_help): Gettextizze.
31424 (GRUB_MOD_INIT): Likewise.
31425 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
31426 (GRUB_MOD_INIT): Gettextizze.
31427 * commands/search.c: Include `<grub/i18n.h>'.
31428 (options): Gettextizze.
31429 (GRUB_MOD_INIT): Gettextizze.
31430 * lib/arg.c: Include `<grub/i18n.h>'.
31431 (help_options): Gettextizze.
31432 (find_long): Likewise.
31433 (grub_arg_show_help): Likewise.
31434 * normal/dyncmd.c: Include `<grub/i18n.h>'.
31435 (read_command_list): Gettextizze.
31436 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
7ebaa2b4 31437 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
ec5f98ab 31438
22815526
RM
314392009-12-25 Robert Millan <rmh.grub@aybabtu.com>
31440
31441 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
31442 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
31443 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
31444 (led_status): New variable.
31445 (keyboard_controller_led): New function.
31446 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
31447 update led status for caps lock, num lock and scroll lock.
31448
0ad46fd7
FZ
314492009-12-25 Felix Zielcke <fzielcke@z-51.de>
31450
31451 * util/hostdisk.c (open_device): Fix a comment.
31452
d0e158c2
RM
314532009-12-24 Robert Millan <rmh.grub@aybabtu.com>
31454
31455 * util/grub-install.in (host_os): New variable.
31456 * util/i386/efi/grub-install.in (host_os): Likewise.
31457
401c0ad6
RM
314582009-12-24 Robert Millan <rmh.grub@aybabtu.com>
31459
31460 * util/mkisofs/write.c (padblock_write): Abort when given an
31461 excedingly large embed image, instead of silently truncating it.
31462
d14d3370
RM
314632009-12-24 Robert Millan <rmh.grub@aybabtu.com>
31464
31465 * include/multiboot.h: Indentation fixes.
31466
eeed10b4
RM
314672009-12-24 Robert Millan <rmh.grub@aybabtu.com>
31468
31469 * include/multiboot.h (struct multiboot_aout_symbol_table)
31470 (struct multiboot_elf_section_header_table): New structure
31471 declarations (stolen from GRUB Legacy).
31472 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
31473 table information.
31474
31475 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
31476 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
31477 type aliases.
31478
681c70ab
RM
314792009-12-24 Robert Millan <rmh.grub@aybabtu.com>
31480
31481 * include/multiboot.h: Make comments src2texi-friendly.
31482
e4d47d8d
RM
314832009-12-24 Robert Millan <rmh.grub@aybabtu.com>
31484
31485 For consistency with [multiboot]/docs/boot.S.
31486
31487 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
31488 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
31489 (MULTIBOOT_MAGIC2): Rename from this ...
31490 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
31491
a0b70bda
RM
314922009-12-24 Robert Millan <rmh.grub@aybabtu.com>
31493
31494 * include/multiboot.h: Remove `<grub/types.h>'.
31495 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
31496 types. Update all users.
31497
61ba42be 314982009-12-25 Carles Pina i Estany <carles@pina.cat>
31499
31500 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
31501 `couldn't' and `can not' by `cannot'.
31502 * commands/i386/pc/drivemap.c: Likewise.
31503 * disk/ata.c: Likewise.
31504 * disk/ieee1275/nand.c: Likewise.
31505 * fs/affs.c: Likewise.
31506 * fs/fat.c: Likewise.
31507 * fs/hfs.c: Likewise.
31508 * fs/hfsplus.c: Likewise.
31509 * fs/iso9660.c: Likewise.
31510 * fs/jfs.c: Likewise.
31511 * fs/minix.c: Likewise.
31512 * fs/reiserfs.c: Likewise.
31513 * fs/sfs.c: Likewise.
31514 * fs/udf.c: Likewise.
31515 * fs/ufs.c: Likewise.
31516 * fs/xfs.c: Likewise.
31517 * loader/powerpc/ieee1275/linux.c: Likewise.
31518 * loader/sparc64/ieee1275/linux.c: Likewise.
31519 * util/grub-probe.c: Likewise.
31520 * util/misc.c: Likewise.
31521
7fd0baee 315222009-12-24 Carles Pina i Estany <carles@pina.cat>
31523
31524 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
31525 grub_errno calls.
31526 * commands/acpi.c: Likewise.
31527 * commands/blocklist.c: Likewise.
31528 * commands/efi/loadbios.c: Likewise.
31529 * commands/i386/pc/drivemap.c: Likewise.
31530 * commands/loadenv.c: Likewise.
31531 * commands/memrw.c: Likewise.
31532 * commands/password.c: Likewise.
31533 * commands/videotest.c: Likewise.
31534 * disk/ata.c: Likewise.
31535 * disk/ata_pthru.c: Likewise.
31536 * disk/dmraid_nvidia.c: Likewise.
31537 * disk/ieee1275/nand.c: Likewise.
31538 * disk/ieee1275/ofdisk.c: Likewise.
31539 * disk/loopback.c: Likewise.
31540 * disk/lvm.c: Likewise.
31541 * disk/mdraid_linux.c: Likewise.
31542 * disk/raid.c: Likewise.
31543 * disk/raid6_recover.c: Likewise.
31544 * disk/scsi.c: Likewise.
31545 * efiemu/main.c: Likewise.
31546 * efiemu/mm.c: Likewise.
31547 * efiemu/pnvram.c: Likewise.
31548 * efiemu/symbols.c: Likewise.
31549 * font/font.c: Likewise.
31550 * fs/cpio.c: Likewise.
31551 * fs/hfsplus.c: Likewise.
31552 * fs/iso9660.c: Likewise.
31553 * fs/jfs.c: Likewise.
31554 * fs/minix.c: Likewise.
31555 * fs/ntfs.c: Likewise.
31556 * fs/ntfscomp.c: Likewise.
31557 * fs/reiserfs.c: Likewise.
31558 * fs/ufs.c: Likewise.
31559 * fs/xfs.c: Likewise.
31560 * gettext/gettext.c: Likewise.
31561 * include/grub/auth.h: Likewise.
31562 * kern/elf.c: Likewise.
31563 * kern/file.c: Likewise.
31564 * kern/ieee1275/init.c: Likewise.
31565 * kern/ieee1275/mmap.c: Likewise.
31566 * kern/ieee1275/openfw.c: Likewise.
31567 * kern/powerpc/dl.c: Likewise.
31568 * kern/sparc64/dl.c: Likewise.
31569 * lib/arg.c: Likewise.
31570 * loader/i386/bsd.c: Likewise.
31571 * loader/i386/bsdXX.c: Likewise.
31572 * loader/i386/efi/linux.c: Likewise.
31573 * loader/i386/efi/xnu.c: Likewise.
31574 * loader/i386/ieee1275/linux.c: Likewise.
31575 * loader/i386/linux.c: Likewise.
31576 * loader/i386/multiboot.c: Likewise.
31577 * loader/i386/pc/linux.c: Likewise.
31578 * loader/i386/pc/multiboot2.c: Likewise.
31579 * loader/i386/xnu.c: Likewise.
31580 * loader/ieee1275/multiboot2.c: Likewise.
31581 * loader/macho.c: Likewise.
31582 * loader/machoXX.c: Likewise.
31583 * loader/multiboot2.c: Likewise.
31584 * loader/multiboot_loader.c: Likewise.
31585 * loader/powerpc/ieee1275/linux.c: Likewise.
31586 * loader/sparc64/ieee1275/linux.c: Likewise.
31587 * loader/xnu.c: Likewise.
31588 * loader/xnu_resume.c: Likewise.
31589 * mmap/i386/pc/mmap.c: Likewise.
31590 * normal/menu_viewer.c: Likewise.
31591 * partmap/acorn.c: Likewise.
31592 * partmap/amiga.c: Likewise.
31593 * partmap/apple.c: Likewise.
31594 * script/lexer.c: Likewise.
31595 * term/gfxterm.c: Likewise.
31596 * term/i386/pc/serial.c: Likewise.
31597 * term/i386/pc/vga.c: Likewise.
31598 * term/ieee1275/ofconsole.c: Likewise.
31599 * term/terminfo.c: Likewise.
31600 * video/bitmap.c: Likewise.
31601 * video/efi_gop.c: Likewise.
31602 * video/efi_uga.c: Likewise.
31603 * video/fb/video_fb.c: Likewise.
31604 * video/i386/pc/vbe.c: Likewise.
31605 * video/readers/tga.c: Likewise.
31606 * video/video.c: Likewise.
31607
0ad46fd7 316082009-12-23 Felix Zielcke <fzielcke@z-51.de>
a2c1332b
FZ
31609
31610 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
31611 * commands/lspci.c: Likewise.
31612 * commands/probe.c: Likewise.
31613 * commands/xnu_uuid.c: Likewise.
31614 * conf/i386-coreboot.rmk: Likewise.
31615 * conf/i386-efi.rmk: Likewise.
31616 * conf/i386-ieee1275.rmk: Likewise.
31617 * conf/i386-pc.rmk: Likewise.
31618 * conf/powerpc-ieee1275.rmk: Likewise.
31619 * conf/sparc64-ieee1275.rmk: Likewise.
31620 * conf/x86_64-efi.rmk: Likewise.
31621 * fs/i386/pc/pxe.c: Likewise.
31622 * gettext/gettext.c: Likewise.
31623 * include/grub/efi/graphics_output.h: Likewise.
31624 * include/grub/i386/pc/memory.h: Likewise.
31625 * kern/env.c: Likewise.
31626 * kern/i386/qemu/startup.S: Likewise.
31627 * lib/i386/pc/biosnum.c: Likewise.
31628 * lib/i386/relocator.c: Likewise.
31629 * lib/i386/relocator_asm.S: Likewise.
31630 * lib/relocator.c: Likewise.
31631 * loader/i386/bsd.c: Likewise.
31632 * loader/i386/multiboot.c: Likewise.
31633 * loader/i386/pc/chainloader.c: Likewise.
31634 * loader/i386/xnu.c: Likewise.
31635 * loader/xnu.c: Likewise.
31636 * normal/main.c: Likewise.
31637 * normal/menu_text.c: Likewise.
31638 * util/getroot.c: Likewise.
31639 * util/grub-mkconfig_lib.in: Likewise.
31640 * util/grub.d/00_header.in: Likewise.
31641 * util/i386/pc/grub-mkimage.c: Likewise.
31642 * util/mkisofs/eltorito.c: Likewise.
31643 * util/mkisofs/exclude.h: Likewise.
31644 * util/mkisofs/hash.c: Likewise.
31645 * util/mkisofs/iso9660.h: Likewise.
31646 * util/mkisofs/joliet.c: Likewise.
31647 * util/mkisofs/mkisofs.c: Likewise.
31648 * util/mkisofs/mkisofs.h: Likewise.
31649 * util/mkisofs/multi.c: Likewise.
31650 * util/mkisofs/name.c: Likewise.
31651 * util/mkisofs/rock.c: Likewise.
31652 * util/mkisofs/tree.c: Likewise.
31653 * util/mkisofs/write.c: Likewise.
31654 * video/efi_gop.c: Likewise.
31655
009ec743
VS
316562009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
31657
31658 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
31659 size counting.
31660
0ad46fd7 316612009-12-22 Felix Zielcke <fzielcke@z-51.de>
990f3548
FZ
31662
31663 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
31664 * genmk.rb (class SCRIPT): Modify the target file instead of source.
31665
d3d30ea0
VS
316662009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
31667
31668 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
31669 (GRUB_MOD_INIT(memrw)): Update help line.
31670
a34f5c70
VS
316712009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
31672
31673 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
31674 Use grub_extcmd_t. All users updated.
31675 (options): New variable.
31676 (grub_cmd_read): Restructure for readability. Support "-v" option.
31677 (grub_cmd_write): Restructure for readability.
31678
0ad46fd7 316792009-12-22 Felix Zielcke <fzielcke@z-51.de>
67618ea6
FZ
31680
31681 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
31682
0ad46fd7 316832009-12-22 Felix Zielcke <fzielcke@z-51.de>
10a88797
FZ
31684
31685 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
31686 with the actual contents of the correspondending make variable.
31687 * util/grub-mkrescue.in (pkglib_DATA): New variable.
31688 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
31689 specifying `*.lst' and `efiemu??.o'
31690
0ad46fd7 316912009-12-22 Felix Zielcke <fzielcke@z-51.de>
7e70dfff
FZ
31692
31693 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
31694 after function name.
31695 Noticed by Rene Engelhard <rene@debian.org>.
31696
dc77a799
VS
316972009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
31698
31699 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
31700 (options): New variable.
31701 (iospace): Likewise.
31702 (grub_lspci_iter): List IO spaces if "-i" was given.
31703 (grub_cmd_lspci): Parse options.
31704 (GRUB_MOD_INIT(lspci)): Use extcmd.
31705 (GRUB_MOD_FINI(lspci)): Likewise.
31706
0ad46fd7 317072009-12-22 Felix Zielcke <fzielcke@z-51.de>
82000aa2
FZ
31708
31709 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
31710 `function' keyword.
31711 Patch by Tony Mancill <tmancill@debian.org>.
31712
b5d5993b
VS
317132009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
31714
31715 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
31716 (grub_uhci_portstatus): Likewise.
31717 (grub_uhci_portstatus): Add necessary delay.
11d18281 31718 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
b5d5993b 31719
941903f2 317202009-12-21 Carles Pina i Estany <carles@pina.cat>
b5d5993b 31721
941903f2 31722 * commands/acpi.c (options): Fix capitalizations and/or full stops.
31723 (GRUB_MOD_INIT): Likewise.
31724 * commands/boot.c (GRUB_MOD_INIT): Likewise.
cb04503e 31725 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
31726 * commands/echo.c (options): Fix capitalizations and/or full stops.
941903f2 31727 * commands/efi/loadbios.c (enable_rom_area): Likewise.
31728 (enable_rom_area): Likewise.
31729 (GRUB_MOD_INIT): Likewise.
31730 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
31731 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
31732 * commands/handler.c (GRUB_MOD_INIT): Likewise.
31733 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
31734 * commands/hexdump.c (options): Likewise.
31735 * commands/i386/cpuid.c (options): Likewise.
31736 (GRUB_MOD_INIT): Likewise.
31737 * commands/i386/pc/drivemap.c (options): Likewise.
31738 (GRUB_MOD_INIT): Likewise.
31739 * commands/i386/pc/halt (options): Likewise.
31740 (GRUB_MOD_INIT): Likewise.
31741 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
31742 * commands/i386/pc/pxecmd.c (options): Likewise.
31743 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
31744 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
31745 * commands/keystatus.c (options): Likewise.
31746 (GRUB_MOD_INIT): Likewise.
31747 * commands/loadenv.c (options): Likewise.
31748 * commands/ls.c (options): Likewise.
31749 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
31750 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
31751 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
31752 * commands/parttool.c (helpmsg): Likewise.
31753 * commands/probe.c (options): Likewise.
31754 * commands/read.c (GRUB_MOD_INIT): Likewise.
31755 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
31756 * commands/search.c (options): Likewise.
31757 * commands/sleep.c (options): Likewise.
31758 * commands/test.c (GRUB_MOD_INIT): Likewise.
31759 * commands/true.c (GRUB_MOD_INIT): Likewise.
31760 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
31761 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
31762 * lib/arg.c (help_options): Likewise.
e9bbb4e7 31763 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
31764 `$(XGETTEXT)'.
98a50553 31765 * po/POTFILES: Add `commands/loadenv.c'.
941903f2 31766
0ad46fd7 317672009-12-21 Felix Zielcke <fzielcke@z-51.de>
4dd13225 31768
ef3c2c3a 31769 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
4dd13225
FZ
31770 instead of specifying them explicit.
31771
7922f68b
RM
317722009-12-21 Robert Millan <rmh.grub@aybabtu.com>
31773
31774 * NEWS: Add grub-probe support for GNU/Hurd.
31775
537ce47f
RM
317762009-12-21 Robert Millan <rmh.grub@aybabtu.com>
31777
31778 * NEWS: gettext was added after 1.97.
31779
9b214e3a
RM
317802009-12-21 Robert Millan <rmh.grub@aybabtu.com>
31781
31782 * util/mkisofs/msdos_partition.h: New file (based on
31783 include/grub/msdos_partition.h).
31784 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
31785 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
31786 (ld_options, main): Recognize --protective-msdos-label.
31787 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
31788 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
31789 (padblock_write): If `use_protective_msdos_label' is set, patch a
31790 protective DOS-style label in the output image.
31791
31792 * util/grub-mkrescue.in: Use --protective-msdos-label.
31793
e9309813
RM
317942009-12-21 Robert Millan <rmh.grub@aybabtu.com>
31795
31796 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
31797 boot.
31798
0ae56929
RM
317992009-12-21 Robert Millan <rmh.grub@aybabtu.com>
31800
31801 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
31802 variables.
31803 (ld_options, main): Recognize `--embedded-boot'.
31804 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
31805 declarations.
31806 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
31807 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
31808 (padblock_write): Likewise. Rewrite to support embedded boot image.
31809
31810 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
31811 for BIOS-based disk boot instead of only ElTorito.
31812
b15937b1
RM
318132009-12-21 Robert Millan <rmh.grub@aybabtu.com>
31814
31815 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
31816 build (not needed for bootstrap).
31817
52cc3ce0
RM
318182009-12-21 Robert Millan <rmh.grub@aybabtu.com>
31819
31820 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
31821 from i386-pc build (not needed for bootstrap).
31822 Rewrite a pair of strings.
31823
36f5ff04
RM
318242009-12-21 Robert Millan <rmh.grub@aybabtu.com>
31825
31826 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
31827
973c6c85 318282009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
b07e53f0
VS
31829
31830 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
31831
05d21547
AB
318322009-12-21 Andreas Born <futur.andy@googlemail.com>
31833
31834 * kern/env.c (grub_env_context_open): Mark exported variable for
31835 reexport.
31836
0175d51f
AB
318372009-12-21 Andreas Born <futur.andy@googlemail.com>
31838
31839 * kern/env.c (grub_env_export): Create nonexistent variables before
31840 exporting.
31841
7f39d92f 318422009-12-20 Carles Pina i Estany <carles@pina.cat>
0175d51f 31843
7f39d92f 31844 * include/grub/auth.h: Include `<grub/i18n.h>'.
31845 (GRUB_GET_PASSWORD): Gettextizze string.
31846 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
31847 menu_text.c.
31848 (grub_utf8_to_ucs4_alloc): Fix indentation.
31849 (grub_print_ucs4): Likewise.
31850 (grub_getstringwidth): Likewise.
31851 (print_message_indented): New declaration.
31852 * normal/auth.c: Include `<grub/i18n.h>'.
31853 (grub_auth_check_authentication): Gettexttize string.
31854 * normal/cmdline.c: Include `<grub/i18n.h>'.
31855 (grub_cmdline_get): Gettextizze.
31856 * normal/color.c: Include `<grub/i18n.h>'.
31857 (grub_parse_color_name_pair): Gettexttize strings.
31858 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
31859 string (use `print_message_indented').
31860 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
31861 `include/grub/normal.h'.
31862 (print_message_indented): Renamed to ...
31863 (grub_print_message_indented): ... this. Remove `static' qualifer (now
31864 used in normal/main.c).
31865 (print_message): Use `grub_print_message_indented' instead of
31866 `print_message_indented'.
31867 (print_timeout): Likewise.
31868 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
31869 (grub_normal_print_device_info): Gettexttize strings.
31870 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
31871
3041d898
VS
318722009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
31873
31874 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
31875 of arguments. Return number of tokens and not arguments. All users
31876 updated.
31877
de15bf8e
VS
318782009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
31879
31880 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
31881 non-MSDOS paritions.
31882
e0a6ca52
VS
318832009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
31884
31885 * include/grub/types.h (UNUSED): Removed since it conflicts with
31886 NetBSD headers. All users changed to direct __attribute__ ((unused)).
31887 Reported by Grégoire Sutre.
31888
b99518d1 318892009-12-19 Carles Pina i Estany <carles@pina.cat>
31890
31891 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
31892 (grub_print_ucs4_alloc): Likewise.
31893 (grub_getstringwidth): Likewise.
31894 * normal/main.c (grub_normal_init_page): Gettextize version string.
31895 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
31896 (getstringwidth): Renamed to ...
31897 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
31898 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
31899 (grub_print_ucs4): Remove `static' qualifer (now used in
31900 normal/main.c).
31901 * po/POTFILES: Add normal/main.c.
31902
bfd5e52b 319032009-12-19 Carles Pina i Estany <carles@pina.cat>
31904
31905 * normal/menu_text.c (STANDARD_MARGIN): New macro.
31906 (print_message_indented): Add `margin_left' and `margin_right'
31907 parameters.
31908 (print_message): Update `print_message_indented' calls. Adds '\n' to the
31909 strings.
31910 (print_timeout): Use `print_message_indented' to print the message.
31911 Deletes `second_stage' parameter.
31912 (run_menu): Update `print_timeout' calls.
31913
5a1ad2b9
VS
319142009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
31915
31916 Fix console palette on OpenFirmware.
31917
31918 * term/ieee1275/ofconsole.c (MAX): Removed.
31919 (colors): Redone based on VGA palette.
31920 (grub_ofconsole_setcolor): Discard brightness bit since only 8
31921 colors are supported.
31922 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
31923
b045f00a
VS
319242009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
31925
31926 Fix potential EfiEmu double prepare.
31927
31928 * efiemu/main.c (prepared): New variable
31929 (grub_efiemu_unload): Set prepare to '0'.
31930 (grub_efiemu_prepare): Return if already prepared. Set prepared.
31931
31932 set_virtual_address_map support.
31933
31934 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
31935 prototype.
31936 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
31937 prototype.
31938 (grub_efiemu_crc32): Likewise.
31939 (grub_efiemu_crc64): Likewise.
31940 (grub_efiemu_set_virtual_address_map): Likewise.
31941 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
31942 New definition.
31943 (grub_autoefi_set_virtual_address_map): Likewise.
31944 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
31945 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
31946 Restructure flow to accomodate it.
31947 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
31948 (grub_efiemu_crc): Recompute CRC32.
31949 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
31950 (efiemu_ptv_relocated): ... this. Made global. All users updated.
31951 * efiemu/symbols.c (relocated_handle): New variable.
31952 (grub_efiemu_free_syms): Free relocated_handle.
31953 (grub_efiemu_alloc_syms): Allocate relocated_handle.
31954 (grub_efiemu_write_sym_markers): New function.
31955 (grub_efiemu_set_virtual_address_map): Likewise.
31956
31957 Newer XNU parameters.
31958
31959 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
31960 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
31961 (grub_xnu_fill_devicetree): New prototype.
31962 (grub_xnu_heap_real_start): New variable.
31963 * loader/xnu.c (get_name_ptr): New function.
31964 (grub_xnu_load_driver): Fill namelen and name.
31965
31966 64-bit xnu support.
31967
31968 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
31969 and 'loader/macho64.c'.
31970 * conf/i386-pc.rmk: Likewise.
31971 * conf/x86_64-efi.rmk: Likewise.
31972 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
31973 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
31974 * include/grub/macho.h (grub_macho_segment64): New structure.
31975 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
31976 (grub_macho_size32): ... to this.
31977 (grub_macho32_get_entry_point): Renamed from ...
31978 (grub_macho_get_entry_point32): ... to this.
31979 (grub_macho_contains_macho64): New prototype.
31980 (grub_macho_size64): Likewise.
31981 (grub_macho_get_entry_point64): Likewise.
31982 (grub_macho32_load): Renamed from ...
31983 (grub_macho_load32): ... to this.
31984 (grub_macho32_filesize): Renamed from ...
31985 (grub_macho_filesize32): ... to this.
31986 (grub_macho32_readfile): Renamed from ...
31987 (grub_macho_readfile32): ... to this.
31988 (grub_macho_filesize64): New prototype.
31989 (grub_macho_readfile64): Likewise.
31990 (grub_macho_parse32): Likewise.
31991 (grub_macho_parse64): Likewise.
31992 * loader/macho.c: Split into ...
31993 * loader/machoXX.c: ... and this. Replace 32 with XX.
31994 * loader/macho32.c: New file.
31995 * loader/macho64.c: Likewise.
31996 * loader/xnu.c (grub_xnu_is_64bit): New variable.
31997 (grub_cmd_xnu_kernel): Make 32-bit only.
31998 (grub_cmd_xnu_kernel64): New function.
31999 (grub_xnu_load_driver): Support Mach-O 64.
32000 (grub_cmd_xnu_mkext): Likewise.
32001 * util/grub.d/30_os-prober.in (osx_entry): New function.
32002 Generate entries for 64-bit boot too.
32003
32004 Eliminate ad-hoc tree format in XNU and EfiEmu.
32005
32006 * efiemu/main.c (grub_efiemu_prepare): Update comment.
32007 * efiemu/pnvram.c: Rewritten to use environment variables.
32008 All users updated.
32009
32010 Inline utf16_to_utf8.
32011
32012 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
32013 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
32014 All users updated.
32015 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
32016
32017 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
32018 * commands/usbtest.c (grub_usb_get_string): ... move here.
32019 (usb_print_str): Fix error handling.
32020 * include/grub/usb.h (grub_usb_get_string): Remove.
32021
32022 UTF-8 to UTF-16 transformation.
32023
32024 * conf/common.rmk (pkglib_MODULES): Add charset.mod
32025 (charset_mod_SOURCES): New variable.
32026 (charset_mod_CFLAGS): Likewise.
32027 (charset_mod_LDFLAGS): Likewise.
32028 * include/grub/utf.h: New file.
32029 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
32030
32031 Support for device properties.
32032
32033 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
32034 (grub_xnu_devprop_device_header): Likewise.
32035 (grub_xnu_devprop_device_descriptor): Likewise.
32036 (grub_xnu_devprop_add_device): New prototype.
32037 (grub_xnu_devprop_remove_device): Likewise.
32038 (grub_xnu_devprop_remove_property): Likewise.
32039 (grub_xnu_devprop_add_property_utf8): Likewise.
32040 (grub_xnu_devprop_add_property_utf16): Likewise.
32041 (grub_cpu_xnu_init): Likewise.
32042 (grub_cpu_xnu_fini): Likewise.
32043 (grub_cpu_xnu_unload): Likewise.
32044 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
32045 (property_descriptor): Likewise.
32046 (devices): New variable.
32047 (grub_xnu_devprop_remove_property): New function.
32048 (grub_xnu_devprop_add_device): Likewise.
32049 (grub_xnu_devprop_remove_device): Likewise.
32050 (grub_xnu_devprop_add_property): Likewise.
32051 (grub_xnu_devprop_add_property_utf8): Likewise.
32052 (grub_xnu_devprop_add_property_utf16): Likewise.
32053 (hextoval): Likewise.
32054 (grub_cpu_xnu_fill_devprop): Likewise.
32055 (grub_cmd_devprop_load): Likewise.
32056 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
32057 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
32058 (cmd_devprop_load): New variable.
32059 (grub_cpu_xnu_init): New function.
32060 (grub_cpu_xnu_fini): Likewise.
32061 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
32062 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
32063 (grub_cmd_xnu_devtree): Likewise.
32064 (hextoval): New function.
32065 (unescape): Likewise.
32066 (grub_xnu_fill_devicetree): Likewise.
32067
32068 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
32069 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
32070
0945f181
VS
320712009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
32072
32073 Workaround for broken ATI VBE.
32074
32075 * video/i386/pc/vbe.c (last_set_mode): New variable.
32076 (grub_vbe_set_video_mode): Set 'last_set_mode'.
32077 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
32078 (grub_video_vbe_setup): Don't check for reserved flag.
32079
0ad46fd7 320802009-12-17 Felix Zielcke <fzielcke@z-51.de>
0297aafb
FZ
32081
32082 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
32083 the `find' command.
32084
c179ebe4
VS
320852009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
32086
32087 UUID support for HFS.
32088
32089 * fs/hfs.c (grub_hfs_uuid): New function.
32090 (grub_hfs_fs): New value .uuid.
32091 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
32092
0ad46fd7 320932009-12-14 Felix Zielcke <fzielcke@z-51.de>
574cce0c
FZ
32094
32095 Fix a segfault with parsing unknown long options.
32096
32097 * util/grub-mkrelpath.c (options): Zero terminate it.
32098
c4a3e41a
CPE
320992009-12-13 Carles Pina i Estany <carles@pina.cat>
32100
32101 * include/grub/misc.h (grub_puts): New declaration.
32102 (grub_puts_): Likewise.
a22008a6 32103 * kern/misc.c (grub_puts): New definition.
c4a3e41a
CPE
32104 (grub_puts_): Likewise.
32105
2e8a7602
RM
321062009-12-13 Robert Millan <rmh.grub@aybabtu.com>
32107
32108 * util/grub-probe.c (probe): Improve error message.
32109
b50b77b9
RM
321102009-12-13 Robert Millan <rmh.grub@aybabtu.com>
32111
32112 * loader/i386/multiboot_elfxx.c
32113 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
32114 initialization.
32115
321162009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
32117
32118 Relocator framework
32119
32120 * loader/i386/xnu_helper.S: Removed. All users updated.
32121 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
32122 (relocator_mod_SOURCES): New variable.
32123 (relocator_mod_CFLAGS): Likewise.
32124 (relocator_mod_LDFLAGS): Likewise.
32125 (relocator_mod_ASFLAGS): Likewise.
32126 * conf/x86_64.rmk: Likewise.
32127 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
32128 (grub_multiboot_payload_entry_offset): Likewise.
32129 (grub_multiboot_forward_relocator): Likewise.
32130 (grub_multiboot_forward_relocator_end): Likewise.
32131 (grub_multiboot_backward_relocator): Likewise.
32132 (grub_multiboot_backward_relocator_end): Likewise.
32133 (grub_multiboot_payload_eip): New variable.
32134 (grub_multiboot_payload_orig): Likewise.
32135 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
32136 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
32137 * include/grub/i386/memory.h
32138 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
32139 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
32140 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
32141 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
32142 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
32143 * include/grub/i386/relocator.h: New file.
32144 * include/grub/x86_64/relocator.h: Likewise.
32145 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
32146 (XNU_RELOCATOR): New macro.
32147 (grub_xnu_launcher_start): Remove.
32148 (grub_xnu_launcher_end): Likewise.
32149 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
32150 (grub_xnu_heap_real_start): Remove.
32151 (grub_xnu_heap_start): Change to void *. All users updated.
32152 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
32153 * lib/i386/relocator.c: New file.
32154 * lib/i386/relocator_asm.S: Likewise.
32155 * lib/i386/relocator_backward.S: Likewise.
32156 * lib/mips/relocator.c: Likewise.
32157 * lib/mips/relocator_asm.S: Likewise.
32158 * lib/relocator.c: Likewise.
32159 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
32160 (entry): Removed.
32161 (playground): Likewise.
32162 (grub_multiboot_payload_orig): New variable.
32163 (grub_multiboot_payload_dest): Likewise.
32164 (grub_multiboot_payload_size): Likewise.
32165 (grub_multiboot_payload_eip): Likewise.
32166 (grub_multiboot_payload_esp): Likewise.
32167 (grub_multiboot_boot): Use grub_relocator32_boot.
32168 (grub_multiboot_unload): Free relocators.
32169 (grub_multiboot): Setup stack. Use relocators.
32170 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
32171 (grub_multiboot_load_elfXX): Use relocators.
32172 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
32173 (grub_multiboot_payload_size): Likewise.
32174 (grub_multiboot_payload_dest): Likewise.
32175 (grub_multiboot_payload_entry_offset): Likewise.
32176 (grub_multiboot_forward_relocator): Likewise.
32177 (grub_multiboot_backward_relocator): Likewise.
32178 (grub_multiboot_real_boot): Likewise.
32179 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
32180 (grub_xnu_entry_point): Likewise.
32181 (grub_xnu_arg1): Likewise.
32182 (grub_xnu_stack): Likewise.
32183 (grub_xnu_launch): Removed.
32184 (grub_xnu_boot_resume): New function.
32185 (grub_xnu_boot): Use relocators.
32186 * loader/i386/xnu_helper.S: Removed.
32187 * loader/xnu.c (grub_xnu_heap_start): New variable.
32188 (grub_xnu_heap_size): Likewise.
32189 (grub_xnu_heap_malloc): Use relocators.
32190 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
32191
29eb90c6
VS
321922009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
32193
32194 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
32195 anything.
32196
31027430
CPE
321972009-12-13 Carles Pina i Estany <carles@pina.cat>
32198
32199 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
32200 GRUB_ERR_NONE before calling grub_env_set.
32201
dc0c71d9
RM
322022009-12-12 Robert Millan <rmh@aybabtu.com>
32203
32204 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
32205 * genmk.rb (video): New variable.
32206 (CLEANFILES, VIDEOFILES): Add #{video}.
32207 (#{video}): New target rule.
32208 * genvideolist.sh: New file.
32209 * Makefile.in (pkglib_DATA): Add video.lst.
32210 (video.lst): New target rule.
32211 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
32212 `video.lst'.
32213 * util/grub.d/30_os-prober.in: Replace `vbe' with
32214 ${GRUB_VIDEO_BACKEND}.
32215
2a4bfcf0
RM
322162009-12-11 Robert Millan <rmh.grub@aybabtu.com>
32217
32218 * THANKS: Add David Miller.
32219
2a3aa4d5
RM
322202009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
32221
32222 libpciaccess support.
32223
32224 * Makefile.in (LIBPCIACCESS): New variable.
32225 (enable_grub_emu_pci): Likewise.
32226 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
32227 util/pci.c and commands/lspci.c.
32228 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
32229 * configure.ac (grub-emu-pci): New option.
32230 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
32231 (grub_pci_device_unmap_range): Likewise.
32232 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
32233 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
32234 (grub_pci_address_t) [!GRUB_UTIL]: New type.
32235 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
32236 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
32237 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
32238 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
32239 * include/grub/pciutils.h: New file.
32240 * util/pci.c: Likewise.
32241
0ad46fd7 322422009-12-11 Felix Zielcke <fzielcke@z-51.de>
8d0502d9
FZ
32243
32244 * util/misc.c: Don't include <errno.h> twice.
32245
0ad46fd7 322462009-12-10 Felix Zielcke <fzielcke@z-51.de>
0d56ed64
FZ
32247
32248 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
32249 name in an error message.
32250 (grub_biosdisk_rw): Likewise.
32251
2e59983c
VS
322522009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
32253
32254 Eliminate NTFS 4Gib barrier.
32255
32256 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
32257 (read_run_data): Likewise.
32258 (grub_ntfs_read_run_list): Likewise.
32259 (grub_ntfs_read_block): Likewise.
32260 (grub_ntfs_iterate_dir): Likewise.
32261 (read_mft): Likewise.
32262 (read_data): Likewise.
32263 Use COM_LOG_LEN.
32264 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
32265 to avoid 64-bit division
32266 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
32267 (grub_ntfs_rlst): Use grub_disk_addr_t.
32268
71ee178a
VS
322692009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
32270
32271 Eliminate grub-fstest 4Gib barrier.
32272
32273 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
32274 (read_file): Fix error reporting.
32275
2520d4b8
VS
322762009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
32277
32278 Eliminate hexdump 4Gib barrier.
32279
32280 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
32281 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
32282
e1f27065
VS
322832009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
32284
32285 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
32286 Fixes amarsh bug.
32287
1a0f7f45
RM
322882009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
32289
32290 Remove miscellaneous files in distclean target.
32291
32292 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
32293
c631d9fb
CW
322942009-12-09 Colin Watson <cjwatson@ubuntu.com>
32295
32296 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
32297 if they're already set. This resolves the conflict between my
32298 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
32299 fixing the --grub-probe option again.
32300 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
32301 change on 2009-10-06, so that we now once again source
32302 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
32303
7c7b6106
RM
323042009-12-08 Robert Millan <rmh.grub@aybabtu.com>
32305
32306 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
32307 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
32308 `util/devicemap.c'.
32309
e3069ec1
CPE
323102009-12-08 Carles Pina i Estany <carles@pina.cat>
32311
32312 * include/grub/misc.h (grub_printf_): New declaration.
32313 * kern/misc.c (grub_printf_): New definition.
32314 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
32315 instead of `grub_printf' and `_'.
32316 * normal/menu_entry.c (store_completion): Likewise.
32317 (run): Likewise.
32318 (grub_menu_entry_run): Likewise.
32319 * normal/menu_text.c (grub_wait_after_message): Likewise.
32320 (notify_booting): Likewise.
32321 (notify_fallback): Likewise.
32322 (notify_execution_failure): Likewise.
32323
d6ceebf1
CW
323242009-12-07 Colin Watson <cjwatson@ubuntu.com>
32325
32326 * configure.ac: Check for vasprintf.
32327 * util/misc.c (asprintf): Move allocation from here ...
32328 (vasprintf): ... to here. New function.
32329 (xasprintf): New function.
32330 * include/grub/util/misc.h (vasprintf, xasprintf): Add
32331 prototypes.
32332 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
32333 * util/grub-mkfont.c (write_font): Likewise.
32334 * util/grub-probe.c (probe): Likewise.
32335 * util/hostdisk.c (make_device_name): Likewise.
32336
de6daa8b
DM
323372009-12-06 David S. Miller <davem@sunset.davemloft.net>
32338
32339 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
32340 anything even prefixed with 'cdrom' as a cdrom.
32341
0ad46fd7 323422009-12-06 Felix Zielcke <fzielcke@z-51.de>
df91e679
FZ
32343
32344 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
32345 mount points.
32346
98d3dc02
CPE
323472009-12-05 Carles Pina i Estany <carles@pina.cat>
32348
32349 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
32350 grub_gettext_msg_list.
32351 (grub_gettext_gettranslation_from_position): Return const char *
32352 and not char *.
a2c1332b 32353 (grub_gettext_translate): Add the translated strings into a list,
98d3dc02
CPE
32354 returns from the list if existing there.
32355 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
32356 (grub_gettext_delete_list): Delete the list.
32357 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
32358 lang environment variable is changed.
32359 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
32360
b283f108
VS
323612009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
32362
32363 Rename kernel.mod to kernel.img.
32364
32365 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
32366 (kernel_mod_EXPORTS): Rename to ...
32367 (kernel_img_EXPORTS): ... this.
32368 (kernel_mod_SOURCES): Rename to ...
32369 (kernel_img_SOURCES): ... this.
32370 (kernel_mod_HEADERS): Rename to ...
32371 (kernel_img_HEADERS): ... this. All users updated.
32372 (kernel_mod_CFLAGS): Rename to ...
32373 (kernel_img_CFLAGS): ... this.
32374 (kernel_mod_ASFLAGS): Rename to ...
32375 (kernel_img_ASFLAGS): ... this.
32376 (kernel_mod_LDFLAGS): Rename to ...
32377 (kernel_img_LDFLAGS): ... this.
32378 * conf/x86_64-efi.rmk: Likewise.
32379 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
32380 (read_kernel_image): ... this. All users updated.
32381 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
32382
69055f8a
CPE
323832009-12-05 Carles Pina i Estany <carles@pina.cat>
32384
32385 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
32386 (print_spaces): New function.
32387 (grub_print_ucs4): New function.
32388 (getstringwidth): New function.
32389 (print_message_indented): New function.
32390 (print_message): Gettexttize strings using print_message_indented.
32391 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
32392 width.
32393 (get_entry_number): Gettextize and uses dynamic terminal width.
a2c1332b 32394 (notify_booting, notify_fallback, notify_execution_failure):
69055f8a
CPE
32395 Gettextize.
32396 * normal/menu_entry.c (store_completion): Cleanup the gettextized
32397 string.
32398 (run): Likewise.
32399 (grub_menu_entry_run): Likewise.
32400 * PO/POTFILES: Add normal/menu_entry.c.
32401
f616f51c
VS
324022009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
32403
32404 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
32405
57bbe3be
CPE
324062009-12-05 Carles Pina i Estany <carles@pina.cat>
32407
32408 * util/grub-install.in: Install gettext .mo files.
32409 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
32410
013d67a1
CPE
324112009-12-05 Carles Pina i Estany <carles@pina.cat>
32412
32413 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
32414 grub_dprintf.
32415
fb954db0
RM
324162009-12-05 Robert Millan <rmh.grub@aybabtu.com>
32417
32418 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
32419 non-firmware-dependant one in realmode.S takes precedence.
32420
6b8474f8
RM
324212009-12-04 Robert Millan <rmh.grub@aybabtu.com>
32422
32423 * commands/halt.c: Replace misc arch-specific headers with
32424 `<grub/misc.h>'.
32425 * commands/reboot.c: Likewise.
32426 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
32427 `<grub/misc.h>'.
32428 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
32429 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
32430 (kernel_img_SOURCES): ... to here.
32431
32432 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
32433 * include/grub/i386/pc/init.h: Likewise.
32434 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
32435 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
32436
32437 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
32438
32439 * include/grub/i386/halt.h: Remove.
32440 * include/grub/i386/reboot.h: Likewise.
32441
32442 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
32443
4b2e6ca2
DM
324442009-12-03 David S. Miller <davem@sunset.davemloft.net>
32445
32446 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
32447 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
32448 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
32449 "progname.h"
32450 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
32451 * util/sparc64/ieee1275/grub-setup.c: Likewise.
32452 (usage): Add missing comma in printf.
32453
5239348f
RM
324542009-12-02 Robert Millan <rmh.grub@aybabtu.com>
32455
32456 Use the same reboot approach on i386 coreboot and qemu as we do on
32457 BIOS.
32458
32459 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
32460 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
32461 * kern/i386/reboot.c: Remove.
32462 * include/grub/i386/reboot.h (grub_reboot): Export function.
32463 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
32464 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
32465 0xf000:0xfff0 instead of 0xffff:0x0000.
32466 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
32467 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
32468
ef34cbd4
RM
324692009-11-30 Robert Millan <rmh.grub@aybabtu.com>
32470
32471 Fix $srcdir != $objdir build.
32472
32473 * Makefile.in (po/%.po): Rewrite as ...
32474 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
32475
dc9837ea
ST
324762009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
32477
32478 Fix GNU/Hurd grub-install crash.
32479 * util/grub-probe.c (probe): Try to access `path' only when it is not
32480 NULL.
32481
2f857f98
VS
324822009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
32483
32484 Correct module naming.
32485
32486 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
32487 (GRUB_MOD_INIT(efi_uga)): ... to this
32488 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
32489 (GRUB_MOD_FINI(efi_uga)): ... to this
32490 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
32491 (GRUB_MOD_INIT(efi_gop)): ... to this
32492 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
32493 (GRUB_MOD_FINI(efi_gop)): ... to this
32494
c5448046
RM
324952009-11-28 Robert Millan <rmh.grub@aybabtu.com>
32496
32497 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
32498 translatable.
32499 (usage): Translate `arg' strings using gettext().
32500 Thanks to Jordi Mallach for the suggestion.
32501
c85184ad
VS
325022009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
32503
32504 GOP support. Based on patch from Bean
32505 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
32506
32507 * video/efi_gop.c: New file.
32508 * include/grub/efi/graphics_output.h: Likewise.
32509 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
32510 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
32511 variables.
32512 * conf/x86_64-efi.rmk: Likewise.
32513
8a4c48d8
VS
325142009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
32515
32516 Rename efi_fb to efi_uga.
32517
32518 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
32519 'efi_uga.mod'.
32520 (efi_fb_mod_SOURCES): Rename this ...
32521 (efi_uga_mod_SOURCES): ... to this.
32522 (efi_fb_mod_CFLAGS): Rename this ...
32523 (efi_uga_mod_CFLAGS): ... to this.
32524 (efi_fb_mod_LDFLAGS): Rename this ...
32525 (efi_uga_mod_LDFLAGS): ... to this.
32526 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
32527 'efi_uga.mod'.
32528 (efi_fb_mod_SOURCES): Rename this ...
32529 (efi_uga_mod_SOURCES): ... to this.
32530 (efi_fb_mod_CFLAGS): Rename this ...
32531 (efi_uga_mod_CFLAGS): ... to this.
32532 (efi_fb_mod_LDFLAGS): Rename this ...
32533 (efi_uga_mod_LDFLAGS): ... to this.
32534 * video/efi_fb.c: Move this ...
32535 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
32536
fb6c1a7b
RM
325372009-11-27 Robert Millan <rmh.grub@aybabtu.com>
32538
32539 * po/README: New file. Explain our PO file workflow.
32540
3bc7896c
RM
325412009-11-27 Robert Millan <rmh.grub@aybabtu.com>
32542
32543 * po/ChangeLog: Remove. Move relevant entries back to ...
32544 * ChangeLog: ... here.
32545 * po/ca.po: Remove (now handled by TLP).
32546 * po/id.po: Likewise.
32547 * po/zh_CN.po: Likewise.
32548 * Makefile.in (LINGUAS): Initialize in a way that supports
32549 empty set.
32550
9ed4841d
RM
325512009-11-27 Robert Millan <rmh.grub@aybabtu.com>
32552
32553 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
32554 reliing on po/LINGUAS.
32555 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
32556 (po/%.po): ... this.
32557
0ad46fd7 325582009-11-26 Felix Zielcke <fzielcke@z-51.de>
242668a2
FZ
32559
32560 * util/i386/efi/grub-mkimage.c: Include "progname.h".
32561 (main): Use `program_name' instead of nonexistent `progname'.
32562
e30dd392
FZ
325632009-11-26 Felix Zielcke <fzielcke@z-51.de>
32564
32565 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
32566 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
32567
7656de4f
RM
325682009-11-26 Robert Millan <rmh.grub@aybabtu.com>
32569
32570 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
32571 commit.
32572 * conf/i386-efi.rmk: Likewise.
32573 * conf/i386-ieee1275.rmk: Likewise.
32574 * conf/powerpc-ieee1275.rmk: Likewise.
32575 * conf/sparc64-ieee1275.rmk: Likewise.
32576 * conf/x86_64-efi.rmk: Likewise.
32577
db77c4d4
FZ
325782009-11-26 Felix Zielcke <fzielcke@z-51.de>
32579
32580 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
32581
a755bb04
FZ
325822009-11-26 Felix Zielcke <fzielcke@z-51.de>
32583
32584 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
32585
8a4c07fd
RM
325862009-11-26 Robert Millan <rmh.grub@aybabtu.com>
32587
32588 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
32589 (grub_mkdevicemap_SOURCES): New variable.
32590 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
32591 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
32592 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
32593 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
32594 (grub_mkdevicemap_SOURCES): Remove.
32595 * conf/i386-efi.rmk: Likewise.
32596 * conf/i386-ieee1275.rmk: Likewise.
32597 * conf/i386-pc.rmk: Likewise.
32598 * conf/powerpc-ieee1275.rmk: Likewise.
32599 * conf/sparc64-ieee1275.rmk: Likewise.
32600 * conf/x86_64-efi.rmk: Likewise.
32601 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
32602 (usage): Fix strings to use `program_name'.
32603 (main): Initialize gettext.
32604 * util/grub-editenv.c: Likewise.
32605 * util/grub-emu.c: Likewise.
32606 * util/grub-fstest.c: Likewise.
32607 * util/grub-mkdevicemap.c: Likewise.
32608 * util/grub-mkfont.c: Likewise.
32609 * util/grub-mkrelpath.c: Likewise.
32610 * util/grub-pe2elf.c: Likewise.
32611 * util/grub-probe.c: Likewise.
32612 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
32613 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
32614 * util/sparc64/ieee1275/grub-setup.c: Likewise.
32615
32616 * util/misc.c: Include `"progname.h"'.
32617 (progname): Remove variable.
32618 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
32619
6f61ed55
FZ
326202009-11-25 Felix Zielcke <fzielcke@z-51.de>
32621
32622 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
32623 printf and print a newline after the menuentry header line.
32624 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
32625
f022876b
FZ
326262009-11-25 Felix Zielcke <fzielcke@z-51.de>
32627
32628 autoconf >= 2.60 support $(localedir).
32629
32630 * INSTALL: Note that autoconf 2.60 is required.
32631 * configure.ac (AC_PREREQ): Bump to 2.60.
32632 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
32633 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
32634
6717926e
YB
326352009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
32636
32637 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
32638 aclocal is run.
32639
08806a54
RM
326402009-11-25 Robert Millan <rmh.grub@aybabtu.com>
32641
32642 * normal/main.c (grub_normal_read_line): Fix off-by-one
32643 buffer overflow.
32644
13b33fba
RM
326452009-11-25 Robert Millan <rmh.grub@aybabtu.com>
32646
32647 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
32648 "parser.grub" in grub_command_execute() call.
32649
4a8572e9
CPE
326502009-11-24 Carles Pina i Estany <carles@pina.cat>
32651
32652 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
32653 * conf/i386-efi.rmk: Likewise.
32654 * conf/i386-ieee1275.rmk: Likewise.
32655 * conf/i386-pc.rmk: Likewise.
32656 * conf/powerpc-ieee1275.rmk: Likewise.
32657 * conf/sparc64-ieee1275.rmk: Likewise.
32658 * conf/x86_64-efi.rmk: Likewise.
32659 * gettext/gettex.c: Include <grub/i18n.h>.
32660 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
32661 here ...
32662 * include/grub/i18n.h: ... to here
32663 * include/grub/i18n.h: ... to here.
32664 * kern/misc.c: Include <grub/i18n.h>
a2c1332b 32665 (grub_gettext_dummy): Move above user.
4a8572e9 32666
bee48093
FZ
326672009-11-24 Felix Zielcke <fzielcke@z-51.de>
32668
32669 * util/Makefile.in (install-local): Convert a `for' into a normal
32670 shell expansion.
32671
a031e91c
RM
326722009-11-24 Robert Millan <rmh.grub@aybabtu.com>
32673
32674 * autogen.sh: Add automake call.
32675 * config.guess: Remove.
32676 * config.sub: Likewise.
32677 * install-sh: Likewise.
32678
26bec39d
FZ
326792009-11-24 Felix Zielcke <fzielcke@z-51.de>
32680
32681 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
32682
8e2532fd
FZ
326832009-11-24 Felix Zielcke <fzielcke@z-51.de>
32684
32685 * util/Makefile.in (install-local): Convert a make `$(foreach)'
32686 function to a normal shell `for'.
32687
fefa1b7d
FZ
326882009-11-24 Felix Zielcke <fzielcke@z-51.de>
32689
32690 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
32691
4501250b
FZ
326922009-11-24 Felix Zielcke <fzielcke@z-51.de>
32693
32694 * util/grub-mkrelpath.c: New file.
32695 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
32696 (grub_mkrelpath_SOURCES): New variable.
32697 * include/grub/util/misc.h: New function prototype.
32698 * util/misc.c (make_system_path_relative_to_its_root): New function.
32699
32700 * util/grub-mkconfig_lib.in (bindir): New variable.
32701 (grub_mkrelpath): Likewise.
32702 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
32703
32704 * util/probe.c (probe): Make the file path relative to its root.
32705 Change a info message to use the GRUB path. Enable again the
32706 check if we can read the file with GRUB facilities.
32707
32708 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
32709 to its root.
32710
11d9778b
FZ
327112009-11-24 Felix Zielcke <fzielcke@z-51.de>
32712
32713 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
32714 platform.
32715
4465287d
FZ
327162009-11-24 Felix Zielcke <fzielcke@z-51.de>
32717
32718 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
32719 strncmp().
32720
62b47f22
FZ
327212009-11-24 Felix Zielcke <fzielcke@z-51.de>
32722
32723 * util/getroot.c (grub_util_is_dmraid): New function.
32724 (grub_util_get_dev_abstraction): Treat dmraid and multipath
32725 devices as normal ones, not as LVM.
32726
1eafb9b9 327272009-11-23 Carles Pina i Estany <carles@pina.cat>
c3ea6bd4
CPE
32728
32729 * conf/common.rmk: Add grub-gettext_lib target and updates
32730 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
32731 LDFLAGS.
32732 * gettext/gettext.c: New file. (Reads mo files).
32733 * include/grub/file.h (grub_file_pread): New prototype.
32734 * include/grub/i18n.h (_): New prototype.
32735 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
32736 prototypes.
32737 * kern/misc.c (grub_gettext_dummy): New function.
32738 * normal/menu_text.c: Include <grub/i18n.h>.
32739 * normal/menu_text.c (print_timeout): Gettexttize string.
32740 * normal/menu_text.c (print_message): Gettexttize string.
3bc7896c
RM
32741 * po/POTFILES: Add `normal/menu_text.c'.
32742 * po/ca.po: Add new translations.
c3ea6bd4
CPE
32743 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
32744 gettext module and defines locale_dir and lang in grub.cfg.
32745 * NEWS: Add gettext support.
32746
0fdb2568
RM
327472009-11-23 Robert Millan <rmh.grub@aybabtu.com>
32748
32749 * util/hostdisk.c: Include `<grub/i18n.h>'.
32750 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
32751 (make_device_name): Rewrite using asprintf.
32752 (convert_system_partition_to_system_disk): Replace 0 with NULL.
32753 (find_system_device): If a device is not found, generate one just
32754 by reusing the OS path name.
32755 (read_device_map): Make it permissible for device.map not to exist.
32756
f515aa62
RM
327572009-11-23 Robert Millan <rmh.grub@aybabtu.com>
32758
32759 * script/sh/execute.c: Move from here ...
32760 * script/execute.c: ... to here. Update all users.
32761 * script/sh/function.c: Move from here ...
32762 * script/function.c: ... to here. Update all users.
32763 * script/sh/lexer.c: Move from here ...
32764 * script/lexer.c: ... to here. Update all users.
32765 * script/sh/main.c: Move from here ...
32766 * script/main.c: ... to here. Update all users.
32767 * script/sh/parser.y: Move from here ...
32768 * script/parser.y: ... to here. Update all users.
32769 * script/sh/script.c: Move from here ...
32770 * script/script.c: ... to here. Update all users.
32771
f84b481b
RM
327722009-11-23 Robert Millan <rmh.grub@aybabtu.com>
32773
32774 * configure.ac: Detect all `emu' platforms. Define
32775 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
32776 --enable-grub-emu logic. Disable include/grub/machine
32777 symlink on `emu' platforms.
32778
32779 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
32780 * gensymlist.sh.in: Likewise.
32781
32782 * include/grub/i386/coreboot/machine.h: Remove file.
32783 * include/grub/i386/efi/machine.h: Likewise.
32784 * include/grub/i386/ieee1275/machine.h: Likewise.
32785 * include/grub/i386/pc/machine.h: Likewise.
32786 * include/grub/i386/qemu/machine.h: Likewise.
32787 * include/grub/powerpc/ieee1275/machine.h: Likewise.
32788 * include/grub/sparc64/ieee1275/machine.h: Likewise.
32789 * include/grub/x86_64/efi/machine.h: Likewise.
32790
32791 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
32792 * commands/halt.c: Likewise.
32793 * commands/reboot.c: Likewise.
32794 * include/grub/autoefi.h: Likewise.
32795 * include/grub/i386/at_keyboard.h: Likewise.
32796 * include/grub/i386/kernel.h: Likewise.
32797 * include/grub/i386/loader.h: Likewise.
32798 * include/grub/i386/pc/memory.h: Likewise.
32799 * kern/dl.c: Likewise.
32800 * kern/i386/coreboot/init.c: Likewise.
32801 * loader/i386/bsd.c: Likewise.
32802 * loader/i386/linux.c: Likewise.
32803 * loader/multiboot_loader.c: Likewise.
32804 * term/i386/pc/serial.c: Likewise.
32805 * term/usb_keyboard.c: Likewise.
32806
32807 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
32808 `<grub/machine/machine.h>'
32809 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
32810 * util/misc.c: Remove `<grub/machine/machine.h>' and
32811 `<grub/machine/time.h>'.
32812
32813 * Makefile.in (enable_grub_emu): Remove variable.
32814 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
32815
32816 * conf/any-emu.rmk: New file.
32817 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
32818 (grub_emu_init.c): Move from here ...
32819 * conf/any-emu.rmk: ... to here.
32820
32821 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
32822 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
32823 * conf/any-emu.rmk: ... to here.
32824
4efeab03
RM
328252009-11-23 Robert Millan <rmh.grub@aybabtu.com>
32826
32827 * include/grub/parser.h (grub_parser_register): Document need
32828 of `name' parameter.
32829 * normal/main.c (grub_normal_read_line): Simplify prompt string.
32830 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
32831 "sh" to "grub".
32832
ea1dd8bf
RM
328332009-11-23 Robert Millan <rmh.grub@aybabtu.com>
32834
32835 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
32836 `$(XGETTEXT)'.
32837 * include/grub/i18n.h (N_): New macro.
32838 * util/mkisofs/mkisofs.h: Likewise.
32839 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
32840 around N_().
32841 (usage): Use gettext() to translate help strings when printing them.
32842
0c140626
RM
328432009-11-23 Robert Millan <rmh.grub@aybabtu.com>
32844
32845 Based on patch from Bean
32846 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
32847
32848 * video/efi_fb.c: New file.
32849 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
32850 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
32851 variables.
32852 * conf/x86_64-efi.rmk: Likewise.
32853
87d58298
RM
328542009-11-22 Robert Millan <rmh.grub@aybabtu.com>
32855
32856 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
32857 * util/i386/pc/grub-setup.c: Likewise.
32858
994cc3a3
ST
328592009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
32860
32861 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
32862 <hurd/fs.h>
32863 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
32864 file_get_storage_info to implement grub_guess_root_device.
32865
26a61d6a
FZ
328662009-11-21 Felix Zielcke <fzielcke@z-51.de>
32867
32868 * Makefile.in (target): Use make's builtin $(shell) function
32869 instead of calling directly $(SHELL) to create the locale directories,
32870 inside the $(foreach) function.
32871
74ff1dd5
FZ
328722009-11-21 Felix Zielcke <fzielcke@z-51.de>
32873
32874 * util/grub-mkrescue.in: Print an error and usage if output option
32875 has not been given.
32876
0b787d0e
FZ
328772009-11-21 Felix Zielcke <fzielcke@z-51.de>
32878
32879 Patch from Loïc Minier <loic.minier@ubuntu.com>.
32880 * util/grub.d/30_os-prober.in: Cope with Linux entries where
32881 root and /boot are on different devices.
32882
1164b270
RM
328832009-11-21 Robert Millan <rmh.grub@aybabtu.com>
32884
32885 Fix build for srcdir != objdir.
32886
32887 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
32888 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
32889 $(srcdir).
32890 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
32891 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
32892 reference for input.
32893
13774a2f
RM
328942009-11-21 Robert Millan <rmh.grub@aybabtu.com>
32895
32896 * util/grub-mkrescue.in: Use source directory direcly (without copiing
32897 or hardlinking it). Remove -J option, Joliet is not compatible with
32898 multiple source directories.
32899
efda854e
RM
329002009-11-21 Carles Pina i Estany <carles@pina.cat>
329012009-11-21 Robert Millan <rmh.grub@aybabtu.com>
32902
32903 * util/grub-mkrescue.in: Recognize `--override-directory' option.
32904 (process_input_dir): New function. Process an arbitrary input
32905 directory.
32906 Misc adjustments to support both "override mode" and system-wide mode.
32907
6c09890c
FZ
329082009-11-20 Felix Zielcke <fzielcke@z-51.de>
32909
32910 * configure.ac (UNIFONT_BDF): Rename to ...
32911 (FONT_SOURCE): ... this. Update all users.
32912
a797824f
FZ
329132009-11-20 Felix Zielcke <fzielcke@z-51.de>
32914
32915 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
32916 to the list of unifont files to look for.
32917
cd4f42b0
RM
329182009-11-19 Robert Millan <rmh.grub@aybabtu.com>
32919
32920 Patch from Joe Auricchio <jauricchio@gmail.com>
32921 * commands/minicmd.c (grub_mini_cmd_clear): New function.
32922 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
32923 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
32924
393c783d
FZ
329252009-11-19 Felix Zielcke <fzielcke@z-51.de>
32926
32927 * Makefile.in (install-local): Add a missing backslash.
32928
b2f1e327
FZ
329292009-11-19 Felix Zielcke <fzielcke@z-51.de>
32930
32931 * include/grub/x86_64/io.h: New file.
32932
f577f7a0
RM
329332009-11-19 Robert Millan <rmh.grub@aybabtu.com>
32934
32935 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
32936 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
32937 Include `"progname.h"'.
32938 (main): Initialize gettext.
32939 * util/i386/pc/grub-setup.c: Gettexttize.
32940 * util/i386/pc/grub-mkimage.c: Likewise.
32941
32942 * Makefile.in (po/*.po): Redefine as ...
32943 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
32944
3bc7896c
RM
32945 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
32946
c37943b6
RM
329472009-11-19 Robert Millan <rmh.grub@aybabtu.com>
32948
32949 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
32950 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
32951 (program_name): Remove.
32952 (main): Initialize gettext support.
6323f705
RM
32953 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
32954 Include `<libintl.h>'.
32955 (_): New macro.
c37943b6
RM
32956
32957 * util/mkisofs/eltorito.c: Gettexttize.
32958 * util/mkisofs/joliet.c: Likewise.
32959 * util/mkisofs/mkisofs.c: Likewise.
c37943b6
RM
32960 * util/mkisofs/multi.c: Likewise.
32961 * util/mkisofs/rock.c: Likewise.
32962 * util/mkisofs/tree.c: Likewise.
32963 * util/mkisofs/write.c: Likewise.
32964
3bc7896c
RM
32965 * po/POTFILES: Update with new files.
32966
5ce77c6e
RM
329672009-11-18 Robert Millan <rmh.grub@aybabtu.com>
32968
32969 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
32970 * util/mkisofs/iso9660.h: Likewise.
32971 * util/mkisofs/joliet.c: Likewise.
32972 * util/mkisofs/mkisofs.c: Likewise.
32973 * util/mkisofs/mkisofs.h: Likewise.
32974 * util/mkisofs/rock.c: Likewise.
32975 * util/mkisofs/tree.c: Likewise.
32976 * util/mkisofs/write.c: Likewise.
32977
32978 * util/mkisofs/eltorito.c (rcsid): Remove.
32979 * util/mkisofs/hash.c: Likewise.
32980 * util/mkisofs/joliet.c: Likewise.
32981 * util/mkisofs/name.c: Likewise.
32982 * util/mkisofs/rock.c: Likewise.
32983 * util/mkisofs/tree.c: Likewise.
32984 * util/mkisofs/write.c: Likewise.
32985
1dabbc77
RM
329862009-11-18 Robert Millan <rmh.grub@aybabtu.com>
32987
32988 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
32989 instead of static allocation.
32990 * util/mkisofs/match.h: Likewise.
32991
633877cb
RM
329922009-11-18 Robert Millan <rmh.grub@aybabtu.com>
32993
3bc7896c
RM
32994 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
32995 and `util/grub.d/10_linux.in'.
633877cb
RM
32996 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
32997 translatable Shell files.
32998
af1c0c85
RM
329992009-11-18 Robert Millan <rmh.grub@aybabtu.com>
33000
33001 * Makefile.in ($(srcdir)/aclocal.m4): New target.
33002
769ae37b
RM
330032009-11-17 Robert Millan <rmh.grub@aybabtu.com>
33004
33005 * INSTALL: Document Automake is needed for bootstrap.
3bc7896c 33006 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
769ae37b
RM
33007 * util/grub.d/10_kfreebsd.in (bindir): New variable.
33008 Add gettext initialization.
33009 (kfreebsd_entry): Make menuentry output translatable.
33010
330112009-11-17 Robert Millan <rmh.grub@aybabtu.com>
33012
33013 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
33014 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
33015 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
33016 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
33017 (LINGUAS): Auto-generate using `po/LINGUAS'.
3bc7896c 33018 * po/LINGUAS: New file.
769ae37b
RM
33019
330202009-11-17 Robert Millan <rmh.grub@aybabtu.com>
33021
33022 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
33023 other things).
33024 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
33025 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
33026 bindtextdomain() calls for gettext initialization.
33027
330282009-11-17 Robert Millan <rmh.grub@aybabtu.com>
33029
33030 * gnulib/progname.c: New file (imported from Gnulib).
33031 * gnulib/progname.h: Likewise.
33032 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
33033 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
33034 (usage): Replace `progname' with `program_name'.
33035 (main): Use set_program_name() for program name initialization.
33036
330372009-11-17 Robert Millan <rmh.grub@aybabtu.com>
33038
33039 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
33040 from here ...
33041 * Makefile.in (CPPFLAGS): ... to here.
33042
330432009-11-16 Robert Millan <rmh.grub@aybabtu.com>
33044
33045 * aclocal.m4: Move from here ...
33046 * acinclude.m4: ... to here.
33047 * autogen.sh: Add call to `aclocal'.
33048 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
33049
330502009-11-16 Robert Millan <rmh.grub@aybabtu.com>
33051
33052 * Makefile.in (CLEANFILES): Add `po/*.mo'.
33053 (LINGUAS): New variable.
33054 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
33055 (install-local): Install MO files.
33056 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
33057 * include/grub/i18n.h: New file.
3bc7896c
RM
33058 * po/POTFILES: New file.
33059 * po/ca.po: New file.
769ae37b
RM
33060 * util/grub.d/10_linux.in (bindir): New variable.
33061 Add gettext initialization.
33062 (linux_entry): Make menuentry output translatable.
33063 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
33064 (usage): Make --help output translatable.
33065 (main): Initialize gettext.
33066
02c0a6ad
RM
330672009-11-17 Robert Millan <rmh.grub@aybabtu.com>
33068
33069 * import_gcry.py: New file (written by Vladimir with minor
33070 adjustments).
33071 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
33072 ciphers.
33073 * INSTALL: Document that Python is required for bootstrap.
33074
330752009-11-17 Robert Millan <rmh.grub@aybabtu.com>
33076
33077 Import ciphers from libgcrypt 1.4.4.
33078
33079 * lib/libgcrypt/cipher/ChangeLog
33080 * lib/libgcrypt/cipher/ac.c
33081 * lib/libgcrypt/cipher/arcfour.c
33082 * lib/libgcrypt/cipher/bithelp.h
33083 * lib/libgcrypt/cipher/blowfish.c
33084 * lib/libgcrypt/cipher/camellia-glue.c
33085 * lib/libgcrypt/cipher/camellia.c
33086 * lib/libgcrypt/cipher/camellia.h
33087 * lib/libgcrypt/cipher/cast5.c
33088 * lib/libgcrypt/cipher/cipher.c
33089 * lib/libgcrypt/cipher/crc.c
33090 * lib/libgcrypt/cipher/des.c
33091 * lib/libgcrypt/cipher/dsa.c
33092 * lib/libgcrypt/cipher/ecc.c
33093 * lib/libgcrypt/cipher/elgamal.c
33094 * lib/libgcrypt/cipher/hash-common.c
33095 * lib/libgcrypt/cipher/hash-common.h
33096 * lib/libgcrypt/cipher/hmac-tests.c
33097 * lib/libgcrypt/cipher/md.c
33098 * lib/libgcrypt/cipher/md4.c
33099 * lib/libgcrypt/cipher/md5.c
33100 * lib/libgcrypt/cipher/primegen.c
33101 * lib/libgcrypt/cipher/pubkey.c
33102 * lib/libgcrypt/cipher/rfc2268.c
33103 * lib/libgcrypt/cipher/rijndael-tables.h
33104 * lib/libgcrypt/cipher/rijndael.c
33105 * lib/libgcrypt/cipher/rmd.h
33106 * lib/libgcrypt/cipher/rmd160.c
33107 * lib/libgcrypt/cipher/rsa.c
33108 * lib/libgcrypt/cipher/seed.c
33109 * lib/libgcrypt/cipher/serpent.c
33110 * lib/libgcrypt/cipher/sha1.c
33111 * lib/libgcrypt/cipher/sha256.c
33112 * lib/libgcrypt/cipher/sha512.c
33113 * lib/libgcrypt/cipher/tiger.c
33114 * lib/libgcrypt/cipher/twofish.c
33115 * lib/libgcrypt/cipher/whirlpool.c
33116
af2f93ac
RM
331172009-11-16 Robert Millan <rmh.grub@aybabtu.com>
33118
33119 Fix build for systems without error().
33120
33121 * gnulib/error.c: New file (imported from Gnulib).
33122 * gnulib/error.h: Likewise.
33123 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
33124 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
33125 (this variable is now used by error()).
33126
73fb3dd5
FZ
331272009-11-16 Felix Zielcke <fzielcke@z-51.de>
33128
814f5e96
FZ
33129 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
33130 instead of relying that char is signed.
73fb3dd5 33131
a691ca33
VS
331322009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
33133
33134 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
33135 blocksize different from specified.
33136 (grub_pxefs_read): Likewise.
33137
2af8f0f4
FZ
331382009-11-16 Felix Zielcke <fzielcke@z-51.de>
33139
33140 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
33141
33142 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
33143 (grub_ata_readwrite): Likewise. Update 2 format strings.
33144 (grub_atapi_read): Likewise.
33145
33146 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
33147 * conf/i386.rmk (pkglib_MODULES): ... to here ...
33148 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
33149 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
33150 (ata_mod_LDFLAGS): Move from here ...
33151 * conf/i386.rmk: ... to here ...
33152 * conf/x86_64-efi.rmk: ... and here.
33153 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
33154 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
33155
83bdecaf
RM
331562009-11-16 Robert Millan <rmh.grub@aybabtu.com>
33157
33158 Relicense multiboot.h, with RMS' blessing.
33159
33160 * include/multiboot.h: Change to X11 license.
33161
fd6fd3d7
RM
331622009-11-15 Robert Millan <rmh.grub@aybabtu.com>
33163
33164 Support --version in grub-mkisofs.
33165
33166 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
33167 (OPTION_VERSION): New macro.
33168 (ld_options): Recognize --version.
33169 (usage): Move `program_name' from here ...
33170 (program_name): ... to here. Add `static' qualifier.
33171 (main): Recognize `OPTION_VERSION'.
33172
16a88c49
FZ
331732009-11-15 Felix Zielcke <fzielcke@z-51.de>
33174
33175 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
33176 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
33177
a4158476
RM
331782009-11-14 Robert Millan <rmh.grub@aybabtu.com>
33179
33180 Fix help2man generation for mkisofs.
33181
33182 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
33183 (usage): Send output to stdout (rather than stderr).
33184
fc2208b0
RM
331852009-11-14 Robert Millan <rmh.grub@aybabtu.com>
33186
33187 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
33188 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
33189 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
33190 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
33191 (bin_SCRIPTS): Add `grub-mkfloppy'.
33192 (grub_mkfloppy_SOURCES): New variable.
33193
33194 * util/grub-mkrescue.in: New file.
33195 * util/i386/pc/grub-mkfloppy.in: New file.
33196
33197 * util/i386/coreboot/grub-mkrescue.in: Remove.
33198 * util/i386/pc/grub-mkrescue.in: Remove.
33199
8d0edf4a
RM
332002009-11-13 Robert Millan <rmh.grub@aybabtu.com>
33201
33202 * include/grub/multiboot.h (struct grub_multiboot_header): Move
33203 from here ...
33204 * include/multiboot.h (struct multiboot_header): ... to here. Update
33205 all users.
33206 * include/grub/multiboot.h (struct grub_multiboot_info): Move
33207 from here ...
33208 * include/multiboot.h (struct multiboot_info): ... to here. Update
33209 all users.
33210 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
33211 from here ...
33212 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
33213 Update all users.
33214 * include/grub/multiboot.h (struct grub_mod_list): Move
33215 from here ...
33216 * include/multiboot.h (struct multiboot_mod_list): ... to here.
33217 Update all users.
33218
a73f5969
RM
332192009-11-13 Robert Millan <rmh.grub@aybabtu.com>
33220
33221 * include/multiboot2.h (multiboot_word): Rename from this ...
33222 (multiboot2_word): ... to this. Update all users.
33223 (multiboot_header): Rename from this ...
33224 (multiboot2_header): ... to this. Update all users.
33225 (multiboot_tag_header): Rename from this ...
33226 (multiboot2_tag_header): ... to this. Update all users.
33227 (multiboot_tag_start): Rename from this ...
33228 (multiboot2_tag_start): ... to this. Update all users.
33229 (multiboot_tag_name): Rename from this ...
33230 (multiboot2_tag_name): ... to this. Update all users.
33231 (multiboot_tag_module): Rename from this ...
33232 (multiboot2_tag_module): ... to this. Update all users.
33233 (multiboot_tag_memory): Rename from this ...
33234 (multiboot2_tag_memory): ... to this. Update all users.
33235 (multiboot_tag_unused): Rename from this ...
33236 (multiboot2_tag_unused): ... to this. Update all users.
33237 (multiboot_tag_end): Rename from this ...
33238 (multiboot2_tag_end): ... to this. Update all users.
33239
1c8927f0
RM
332402009-11-13 Robert Millan <rmh.grub@aybabtu.com>
33241
33242 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
33243 this platform we should support Multiboot1 first.
33244
33245 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
33246 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
33247 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
33248
6e1e0d89
RM
332492009-11-12 Robert Millan <rmh.grub@aybabtu.com>
33250
33251 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
33252 of write calls (converting them to fwrite() if they aren't already).
33253 (get_torito_desc): Likewise.
33254 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
33255
7f2b34d8
RM
332562009-11-12 Robert Millan <rmh.grub@aybabtu.com>
33257
33258 * util/i386/pc/grub-install.in: Move from here ...
33259 * util/grub-install.in: ... to here. Update all users.
33260
c0ef3311
CW
332612009-11-11 Colin Watson <cjwatson@ubuntu.com>
33262
33263 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
33264
e1f240ff
RM
332652009-11-11 Robert Millan <rmh.grub@aybabtu.com>
33266
33267 Support for El Torito without floppy emulation.
33268
33269 * util/mkisofs/eltorito.c: Include `<errno.h>'.
33270 (init_boot_catalog): Improve error handling.
33271 (get_torito_desc): Don't use floppy emulation unless requested by
33272 user. Patch boot information table when requested via
33273 `-boot-info-table'.
33274 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
33275 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
33276 (use_boot_info_table): New variables.
33277 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
33278 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
33279 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
33280 `--eltorito-emul-floppy'.
33281 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
33282 and `OPTION_ELTORITO_EMUL_FLOPPY'.
33283 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
33284 (use_boot_info_table, get_731): New prototypes.
33285 * util/mkisofs/write.c (get_731): New function.
33286
af7d4de5
FZ
332872009-11-11 Felix Zielcke <fzielcke@z-51.de>
33288
33289 Fix the generation of the man page.
33290
33291 * util/pc/i386/grub-install.in: Source
33292 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
33293
2c55dbc0
RM
332942009-11-11 Robert Millan <rmh.grub@aybabtu.com>
33295
33296 Large file support for grub-mkisofs.
33297
33298 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
33299 * util/mkisofs/mkisofs.c (next_extent, last_extent)
33300 (session_start): Upgrade type to `uint64_t'. Update all users.
33301 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
33302 (struct directory_entry): Upgrade type of `starting_block' and
33303 `size' to `uint64_t'. Update all users.
33304 (struct deferred): Remove unused structure.
33305 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
33306 Update all users.
33307 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
33308 file is larger than `UINT32_MAX'.
33309 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
33310 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
33311 return value.
33312 (struct deferred_write): Upgrade type of `extent' and `size' to
33313 `uint64_t'. Update all users.
33314 (last_extent_written): Upgrade type to `uint64_t'. Update all
33315 users.
33316 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
33317 Update all users. Upgrade type of `remain' to `int64_t' and
33318 `use' to `size_t'. Use error() to handle fread() errors.
33319 (write_files): Rely on write_one_file() rather than calling
33320 xfwrite() directly.
33321
6a9cead5
FZ
333222009-11-09 Felix Zielcke <fzielcke@z-51.de>
33323
33324 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
33325
4825d790
RM
333262009-11-09 Robert Millan <rmh.grub@aybabtu.com>
33327
33328 * util/mkisofs/fnmatch.c: Remove.
33329 * util/mkisofs/getopt1.c: Likewise.
33330 * util/mkisofs/getopt.c: Likewise.
33331 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
33332 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
33333 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
33334 `gnulib/getopt1.c' and `gnulib/getopt.c'.
33335 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
33336
33337 * configure.ac: Detect `mingw32msvc' host_os.
33338 Check for lstat(), getuid() and getgid().
33339
33340 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
33341 instances of `u_char' with `uint8_t'.
33342
33343 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
33344 [!HAVE_GETUID] (getuid): New function (stub).
33345 [!HAVE_GETGID] (getgid): Likewise.
33346 [!HAVE_LSTAT] (lstat): Likewise.
33347 [!S_IROTH] (S_IROTH): New macro (dummy).
33348 [!S_IRGRP] (S_IRGRP): Likewise.
33349
84b860d8
RM
333502009-11-09 Robert Millan <rmh.grub@aybabtu.com>
33351
33352 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
33353 conditional expression).
33354
66e9b712
RM
333552009-11-09 Robert Millan <rmh.grub@aybabtu.com>
33356
33357 Import from Gnulib.
33358
33359 * gnulib/fnmatch.c: New file.
33360 * gnulib/fnmatch.h: Likewise.
33361 * gnulib/fnmatch_loop.c: Likewise.
33362 * gnulib/getopt.c: Likewise.
33363 * gnulib/getopt.h: Likewise.
33364 * gnulib/getopt1.c: Likewise.
33365 * gnulib/getopt_int.h: Likewise.
33366 * gnulib/gettext.h: Likewise.
33367
34f4a5b0
RM
333682009-11-09 Robert Millan <rmh.grub@aybabtu.com>
33369
33370 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
33371 * normal/handler.c (read_handler_list): Likewise.
33372
ac451143
RM
333732009-11-09 Robert Millan <rmh.grub@aybabtu.com>
33374
33375 Misc cleanup.
33376
33377 * kern/command.c (grub_register_command_prio): Use
33378 grub_zalloc() instead of explicitly zeroing data.
33379 * kern/list.c: Include `<grub/mm.h>'.
33380 (grub_named_list_find): Replace `0' with `NULL'.
33381 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
33382 (fs_module_list): Change type to `grub_named_list_t'. Update all
33383 users.
33384 * normal/dyncmd.c (read_command_list): Add space between function
33385 call and parenthesis.
33386 * normal/handler.c (read_handler_list): Likewise.
33387
4089b167
RM
333882009-11-09 Robert Millan <rmh.grub@aybabtu.com>
33389
33390 * normal/auth.c (punishment_delay): Moved from here ...
33391 (grub_auth_strcmp): ... to here (inside function).
33392
325f5037
RM
333932009-11-09 Robert Millan <rmh.grub@aybabtu.com>
33394
33395 * include/grub/list.h (struct grub_named_list): Remove `const'
33396 qualifier from `name'.
33397 (struct grub_prio_list): Likewise.
33398
7aea29a3
RM
333992009-11-09 Robert Millan <rmh.grub@aybabtu.com>
33400
33401 * normal/auth.c: Include `<grub/time.h>'.
33402 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
33403
3fd6f044
RM
334042009-11-09 Robert Millan <rmh.grub@aybabtu.com>
33405
33406 * normal/auth.c (punishment_delay): New variable.
33407 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
33408 (grub_auth_check_authentication): Punish failed login attempts with
33409 an incremental (2^N) delay.
33410
a4cd68e4
RM
334112009-11-09 Robert Millan <rmh.grub@aybabtu.com>
33412
33413 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
33414 path with $(srcdir).
33415
7ad12f43
VS
334162009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
33417
33418 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
33419
c1129f03
RM
334202009-11-09 Robert Millan <rmh.grub@aybabtu.com>
33421
33422 * util/i386/coreboot/grub-mkrescue.in: New file.
33423 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
33424 variables.
33425
33426 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
33427 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
33428 * configure.ac: Add header and function checks to satisfy grub-mkisofs
33429 requirements.
33430 * util/mkisofs/defaults.h: New file.
33431 * util/mkisofs/eltorito.c: Likewise.
33432 * util/mkisofs/exclude.h: Likewise.
33433 * util/mkisofs/fnmatch.c: Likewise.
33434 * util/mkisofs/getopt.c: Likewise.
33435 * util/mkisofs/getopt1.c: Likewise.
33436 * util/mkisofs/hash.c: Likewise.
33437 * util/mkisofs/include/fctldefs.h: Likewise.
33438 * util/mkisofs/include/mconfig.h: Likewise.
33439 * util/mkisofs/include/prototyp.h: Likewise.
33440 * util/mkisofs/include/statdefs.h: Likewise.
33441 * util/mkisofs/iso9660.h: Likewise.
33442 * util/mkisofs/joliet.c: Likewise.
33443 * util/mkisofs/match.c: Likewise.
33444 * util/mkisofs/match.h: Likewise.
33445 * util/mkisofs/mkisofs.c: Likewise.
33446 * util/mkisofs/mkisofs.h: Likewise.
33447 * util/mkisofs/multi.c: Likewise.
33448 * util/mkisofs/name.c: Likewise.
33449 * util/mkisofs/rock.c: Likewise.
33450 * util/mkisofs/tree.c: Likewise.
33451 * util/mkisofs/write.c: Likewise.
33452
ec8bb77d
VS
334532009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
33454
33455 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
33456 being insecure.
33457
3716b12c
RM
334582009-11-08 Robert Millan <rmh.grub@aybabtu.com>
33459
33460 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
33461 `grub-mkimage' (and use $0 when possible).
33462
b97b7b91
RM
334632009-11-08 Robert Millan <rmh.grub@aybabtu.com>
33464
33465 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
33466 error message for excessively large memory map.
33467
04114812
RM
334682009-11-08 Robert Millan <rmh.grub@aybabtu.com>
33469
33470 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
33471 executable bit.
33472
e4eb2373
RM
334732009-11-08 Robert Millan <rmh.grub@aybabtu.com>
33474
33475 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
33476 message for coreboot users.
33477
c926e1d5 334782009-11-07 Robert Millan <rmh.grub@aybabtu.com>
33479
33480 Fix build with GNU gold.
33481
33482 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
33483 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
33484 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
33485 link addresses.
33486 * aclocal.m4: Likewise.
33487
86e5b1db 334882009-11-04 Felix Zielcke <fzielcke@z-51.de>
33489
33490 * configure.ac (AC_PREREQ): Bump to 2.59d.
33491 * INSTALL: Make it more clear when Autoconf and Ruby are
33492 needed and when to run `./autogen.sh'.
33493
246cd78f 334942009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
33495
33496 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
33497 OSes.
33498
4f9dfb37 334992009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
33500
33501 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
33502
b82bd5e1 335032009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
33504
33505 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
33506 giving it to GNU Mach.
33507
ff1a9bca 335082009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
33509
33510 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
33511 GNU partition number to get internal GRUB partition number.
33512
61697d9c 335132009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
33514
33515 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
33516 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
33517
a50569e1 335182009-11-01 Robert Millan <rmh.grub@aybabtu.com>
33519
33520 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
33521 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
33522 case.
33523
5b153867 335242009-11-01 Felix Zielcke <fzielcke@z-51.de>
33525
33526 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
33527
d9e2cd70 335282009-10-30 Robert Millan <rmh.grub@aybabtu.com>
33529
33530 Fix build problem.
33531
33532 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
33533 `-isystem=$(srcdir)/include'.
33534
805111a4 335352009-10-30 Robert Millan <rmh.grub@aybabtu.com>
33536
33537 * util/i386/pc/grub-install.in: Remove hint that device.map should be
33538 checked (grub-install doesn't currently rely on it).
33539
fa6e945f 335402009-10-29 Robert Millan <rmh.grub@aybabtu.com>
33541
33542 Revert SVN r2660.
33543
33544 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
33545 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
33546 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
33547 * conf/i386-ieee1275.rmk: Likewise.
33548 * conf/i386-pc.rmk: Likewise.
33549 * conf/powerpc-ieee1275.rmk: Likewise.
33550 * conf/sparc64-ieee1275.rmk: Likewise.
33551 * conf/x86_64-efi.rmk: Likewise.
33552
cee15086 335532009-10-28 Robert Millan <rmh.grub@aybabtu.com>
33554
33555 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
33556
95b9239e 335572009-10-28 Robert Millan <rmh.grub@aybabtu.com>
33558
33559 * include/grub/misc.h: Stop checking for APPLE_CC.
33560
2ed19dfd 335612009-10-28 Robert Millan <rmh.grub@aybabtu.com>
33562
33563 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
33564 doesn't cause an infinite call loop.
33565
fdcdde19 335662009-10-28 Felix Zielcke <fzielcke@z-51.de>
33567
33568 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
33569 strings.
33570
cefabfe1 335712009-10-26 Robert Millan <rmh.grub@aybabtu.com>
33572
33573 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
33574 variable.
33575 * Makefile.in: Likewise.
33576
ed96ab6d 335772009-10-26 Robert Millan <rmh.grub@aybabtu.com>
33578
33579 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
33580
0579b753 335812009-10-26 Robert Millan <rmh.grub@aybabtu.com>
33582
33583 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
33584
478df409 335852009-10-26 Robert Millan <rmh.grub@aybabtu.com>
33586
33587 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
33588
083d1679 335892009-10-26 Robert Millan <rmh.grub@aybabtu.com>
33590
33591 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
33592 from here ...
33593 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
33594
5947ae32 335952009-10-26 Robert Millan <rmh.grub@aybabtu.com>
33596
33597 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
33598 in $(MAKEINFO) invocation. This makes it clear in output that
33599 errors are being ignored.
33600
94180ff6 336012009-10-26 Robert Millan <rmh.grub@aybabtu.com>
33602
33603 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
33604 from here ...
33605 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
33606 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
33607 * conf/i386-ieee1275.rmk: Likewise.
33608 * conf/i386-pc.rmk: Likewise.
33609 * conf/powerpc-ieee1275.rmk: Likewise.
33610 * conf/sparc64-ieee1275.rmk: Likewise.
33611 * conf/x86_64-efi.rmk: Likewise.
33612
9031b03a 336132009-10-26 Colin Watson <cjwatson@ubuntu.com>
33614
33615 * util/grub-editenv.c (main): If only a command is given, use
33616 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
33617 (usage): FILENAME is now optional and has a default.
33618
e4f6809b 336192009-10-26 Colin Watson <cjwatson@ubuntu.com>
33620
33621 Improve grub-mkconfig performance when there are several menu
33622 entries on a single filesystem.
33623
33624 * util/grub.d/10_linux.in (linux_entry): Cache the output of
33625 prepare_grub_to_access_device.
33626 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
33627 * util/grub.d/30_os-prober.in: Likewise.
33628
67937d4d 336292009-10-26 Robert Millan <rmh.grub@aybabtu.com>
33630
33631 * util/grub.d/10_freebsd.in: Remove.
33632 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
33633 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
33634
ee3756cc 336352009-10-26 Robert Millan <rmh.grub@aybabtu.com>
33636
5c35048e 33637 * docs/grub.cfg: Fix example usage of *BSD loaders.
ee3756cc 33638
4dea1c6f 336392009-10-25 Robert Millan <rmh.grub@aybabtu.com>
33640
33641 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
33642 grub_util_error() call.
33643
042484d7 336442009-10-25 Robert Millan <rmh.grub@aybabtu.com>
33645
33646 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
33647 `reserved_first_sector' member.
33648 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
33649 `reserved_first_sector' to 1.
33650 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
33651 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
33652 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
33653 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
33654 filesystems which begin at first sector.
33655 (options): New option --skip-fs-probe.
33656 (main): Handle --skip-fs-probe and pass it to setup().
33657
d64448a7 336582009-10-25 Robert Millan <rmh.grub@aybabtu.com>
33659
33660 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
33661 (memset): Fix function prototype.
33662
508d42ec 336632009-10-25 Robert Millan <rmh.grub@aybabtu.com>
336642009-10-25 Vasily Averin <vvs@parallels.com>
33665
33666 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
33667 `dirent.direntlen == 0'.
33668
b240e30c 336692009-10-25 Robert Millan <rmh.grub@aybabtu.com>
33670
33671 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
33672 `cpio'.
33673 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
33674
346e7fbe 336752009-10-25 Robert Millan <rmh.grub@aybabtu.com>
33676
33677 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
33678 `__trampoline_setup' and `__ucmpdi2'.
33679 * include/grub/powerpc/libgcc.h: Only export symbols for functions
33680 that libgcc provides.
33681
cdb308b0 336822009-10-25 Robert Millan <rmh.grub@aybabtu.com>
33683
33684 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
33685 * include/grub/sparc64/libgcc.h (memset): Likewise.
33686 * include/grub/misc.h (memset, memcmp): New function prototypes.
33687
fb26abc2 336882009-10-25 Robert Millan <rmh.grub@aybabtu.com>
33689
33690 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
33691 `cpio'.
33692 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
33693
f6693890 336942009-10-25 Robert Millan <rmh.grub@aybabtu.com>
33695
33696 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
33697 * docs/grub.cfg: Compensate for recent change in multiboot
33698 loader (since 2009-08-14 it won't pass filename to payload).
33699 * util/grub.d/10_hurd.in: Likewise.
33700
0933cdc0 337012009-10-21 Felix Zielcke <fzielcke@z-51.de>
33702
33703 * config.guess: Update to latest version from config git
33704 repository.
33705 * config.sub: Likewise.
33706
3b2fe8c2 337072009-10-20 Robert Millan <rmh.grub@aybabtu.com>
33708
33709 Fix build on sparc64.
33710
33711 * configure.ac: Perform checks for libgcc symbols before
33712 adding `-nostdlib' to LDFLAGS.
33713
46695a62 337142009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
33715
33716 Let user specify OpenBSD root device.
33717
33718 * loader/i386/bsd.c (openbsd_root): New variable.
33719 (openbsd_opts): New option 'root'.
33720 (OPENBSD_ROOT_ARG): New macro.
33721 (grub_openbsd_boot): Use 'openbsd_root'.
33722 (grub_cmd_openbsd): Fill 'openbsd_root'.
33723
d2b6b7fc 337242009-10-16 Robert Millan <rmh.grub@aybabtu.com>
33725
33726 * NEWS: Misc adjustments.
33727
421bd7ac 337282009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
33729
33730 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
33731
f1d29d87 337322009-10-16 Robert Millan <rmh.grub@aybabtu.com>
33733
33734 * configure.ac: Bump version to 1.97.
33735
6f3cd880 337362009-10-16 Colin Watson <cjwatson@ubuntu.com>
33737
33738 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
33739 -mno-3dnow on x86 architectures. Some toolchains enable these
33740 features by default, but they rely on registers that aren't enabled
33741 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
33742
035f7122 337432009-10-15 Robert Millan <rmh.grub@aybabtu.com>
33744
33745 Make entry text a bit more readable.
33746
33747 * util/grub.d/10_linux.in: Add `with' before `Linux'.
33748
44998e58 337492009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
33750
33751 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
33752
cd2851b3 337532009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
33754
33755 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
33756 operations.
33757
c6f3b249 337582009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
33759
33760 * configure.ac: Add missing dollar.
33761
6b5886ba 337622009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
33763
33764 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
33765
33766 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
33767 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
33768 exports.
33769 * include/grub/sparc64/libgcc.h: Likewise. Use
33770 preprocessor conditionals.
33771
e9d66f6d 337722009-10-14 Robert Millan <rmh.grub@aybabtu.com>
33773
33774 * conf/common.rmk (grub-dumpbios): Remove rule.
33775 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
33776 * util/grub-dumpbios.in: Remove file.
33777
9155bc17 337782009-10-14 Robert Millan <rmh.grub@aybabtu.com>
33779
33780 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
33781 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
33782
33783 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
33784 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
33785 users.
33786
33787 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
33788 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
33789 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
33790 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
33791 users.
33792
bf7f7a18 337932009-10-12 Robert Millan <rmh.grub@aybabtu.com>
33794
33795 * term/tparm.c: Switch to GPLv3.
33796
86564c26 337972009-10-09 Robert Millan <rmh.grub@aybabtu.com>
33798
33799 * include/grub/i386/cpuid.h: Add header protection.
33800
5c936493 338012009-10-09 Robert Millan <rmh.grub@aybabtu.com>
33802
33803 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
33804
33805 * include/grub/i386/cpuid.h: New file.
33806 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
33807 (has_longmode): Rename to ...
33808 (grub_cpuid_has_longmode): ... this. Update all users. Remove
33809 `static' attribute.
33810 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
33811 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
33812 on a CPU that doesn't implement AMD64 instruction set.
33813
186e7cf2 338142009-10-06 Colin Watson <cjwatson@ubuntu.com>
33815
33816 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
33817 that version.texi is rebuilt on version number changes.
33818
83b65c4a 338192009-10-06 Colin Watson <cjwatson@ubuntu.com>
33820
33821 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
33822 Fixes bug #27602.
33823
d244281c 338242009-10-06 Colin Watson <cjwatson@ubuntu.com>
33825
33826 * util/i386/pc/grub-install.in: Source
33827 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
33828 that the --grub-probe option will work.
33829 * util/sparc64/ieee1275/grub-install.in: Likewise.
33830
da25306d 338312009-10-05 Robert Millan <rmh.grub@aybabtu.com>
33832
33833 * configure.ac: Bump version to 1.97~beta4.
33834
e8ee83c0 338352009-10-03 Robert Millan <rmh.grub@aybabtu.com>
33836
33837 Resync grub-mkdevicemap in x86_64-efi.
33838
33839 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
33840 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
33841 `util/devicemap.c'.
33842
50dcabcf 338432009-10-01 Colin Watson <cjwatson@ubuntu.com>
33844
33845 * util/grub-editenv.c (create_envblk_file): Write new block with a
33846 .new suffix and then rename it into place, to ensure atomic
33847 creation.
33848
0e51c3a7 338492009-09-28 Robert Millan <rmh.grub@aybabtu.com>
33850
33851 Do not automatically install headers.
33852
33853 * Makefile.in (include_DATA): Remove. Update all users.
33854
31299a95 338552009-09-26 Robert Millan <rmh.grub@aybabtu.com>
33856
33857 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
33858 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
33859
33860 * util/osdetect.lua: Remove.
33861 * script/lua/lauxlib.c: Likewise.
33862 * script/lua/ldebug.c: Likewise.
33863 * script/lua/grub_main.c: Likewise.
33864 * script/lua/lauxlib.h: Likewise.
33865 * script/lua/ldebug.h: Likewise.
33866 * script/lua/ltablib.c: Likewise.
33867 * script/lua/liolib.c: Likewise.
33868 * script/lua/lstrlib.c: Likewise.
33869 * script/lua/lualib.h: Likewise.
33870 * script/lua/ldo.c: Likewise.
33871 * script/lua/ldump.c: Likewise.
33872 * script/lua/ldo.h: Likewise.
33873 * script/lua/loslib.c: Likewise.
33874 * script/lua/lundump.c: Likewise.
33875 * script/lua/grub_lib.c: Likewise.
33876 * script/lua/ldblib.c: Likewise.
33877 * script/lua/lundump.h: Likewise.
33878 * script/lua/lmem.c: Likewise.
33879 * script/lua/grub_lib.h: Likewise.
33880 * script/lua/lmathlib.c: Likewise.
33881 * script/lua/lstate.c: Likewise.
33882 * script/lua/ltm.c: Likewise.
33883 * script/lua/lvm.c: Likewise.
33884 * script/lua/lmem.h: Likewise.
33885 * script/lua/lstate.h: Likewise.
33886 * script/lua/ltm.h: Likewise.
33887 * script/lua/ltable.c: Likewise.
33888 * script/lua/lvm.h: Likewise.
33889 * script/lua/llex.c: Likewise.
33890 * script/lua/lgc.c: Likewise.
33891 * script/lua/grub_lua.h: Likewise.
33892 * script/lua/loadlib.c: Likewise.
33893 * script/lua/lfunc.c: Likewise.
33894 * script/lua/lopcodes.c: Likewise.
33895 * script/lua/lparser.c: Likewise.
33896 * script/lua/ltable.h: Likewise.
33897 * script/lua/llex.h: Likewise.
33898 * script/lua/lgc.h: Likewise.
33899 * script/lua/lfunc.h: Likewise.
33900 * script/lua/lbaselib.c: Likewise.
33901 * script/lua/lopcodes.h: Likewise.
33902 * script/lua/lparser.h: Likewise.
33903 * script/lua/lzio.c: Likewise.
33904 * script/lua/linit.c: Likewise.
33905 * script/lua/lobject.c: Likewise.
33906 * script/lua/llimits.h: Likewise.
33907 * script/lua/lstring.c: Likewise.
33908 * script/lua/lzio.h: Likewise.
33909 * script/lua/lapi.c: Likewise.
33910 * script/lua/lcode.c: Likewise.
33911 * script/lua/lua.h: Likewise.
33912 * script/lua/lobject.h: Likewise.
33913 * script/lua/lstring.h: Likewise.
33914 * script/lua/lapi.h: Likewise.
33915 * script/lua/lcode.h: Likewise.
33916 * script/lua/luaconf.h: Likewise.
33917
cb8a2c38 339182009-09-26 Colin Watson <cjwatson@ubuntu.com>
33919
33920 * docs/grub.texi (Command-line and menu entry commands): Document
33921 date and echo commands.
33922
6b9b6276 339232009-09-24 Pavel Roskin <proski@gnu.org>
33924
33925 * include/grub/kernel.h (struct grub_module_header): Remove
33926 `grub_module_header_types'. Make `type' unsigned. Make `size'
33927 32-bit on all platforms.
33928 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
33929 8-bit field. Use grub_host_to_target32() for `size'.
33930 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
33931 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
33932 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
33933
4e5a02a7 339342009-09-24 Robert Millan <rmh.grub@aybabtu.com>
33935
33936 Fix "lost keypress" bug in at_keyboard.
33937
33938 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
33939 Checks for readyness of input buffer (without flushing it).
33940 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
33941 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
33942
c6dcedf6 339432009-09-24 Robert Millan <rmh.grub@aybabtu.com>
33944
33945 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
33946 size check within GRUB_MACHINE_PCBIOS section.
33947
74c958b1 339482009-09-24 Robert Millan <rmh.grub@aybabtu.com>
33949
33950 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
33951 return value.
33952 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
33953 KEYBOARD_ISREADY check.
33954 (grub_at_keyboard_checkkey): Rename to ...
33955 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
33956 Remove gratuitous cast.
33957
ff420223 339582009-09-23 Colin Watson <cjwatson@ubuntu.com>
33959
33960 * configure.ac: Call AC_PROG_MKDIR_P.
33961 * Makefile.in (docs/stamp-vti): Create docs directory. Create
33962 version.texi in $(builddir) rather than $(srcdir).
33963 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
33964 to makeinfo's @include search path.
33965
d96875df 339662009-09-23 Felix Zielcke <fzielcke@z-51.de>
33967
33968 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
33969
9b3f8365 339702009-09-23 Felix Zielcke <fzielcke@z-51.de>
33971
33972 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
33973 for `*.dpkg-new'.
33974
c44c90db 339752009-09-21 Colin Watson <cjwatson@ubuntu.com>
33976
33977 Build info documentation. Some code borrowed from Automake.
33978
33979 * configure.ac: Check for makeinfo.
33980 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
33981 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
33982 docs/version.texi.
33983 (MOSTLYCLEANFILES): Add vti.tmp.
33984 (docs/version.texi, docs/stamp-vti): Update automatically.
33985 (docs/grub.info): Build info documentation. Use --force and ignore
33986 errors for now.
33987 (all-local): Add $(INFOS).
33988 (install-local): Install info files.
33989 (uninstall): Uninstall info files.
33990 * docs/version.texi: Remove from revision control. This file is
33991 automatically generated on build now.
33992 * gendistlist.sh: Add `*.info'.
33993
e0b37bb5 339942009-09-21 Felix Zielcke <fzielcke@z-51.de>
33995
33996 * kern/term.c: Fix indentation.
33997
5a78865b 339982009-09-21 Felix Zielcke <fzielcke@z-51.de>
33999
34000 * util/hostdisk.c: Fix a comment.
34001
dace7e8a 340022009-09-20 Robert Millan <rmh.grub@aybabtu.com>
34003
34004 Fix regression introduced in r2539.
34005
34006 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
34007 to 0xA1.
34008
a83d079b 340092009-09-19 Colin Watson <cjwatson@ubuntu.com>
34010
34011 * util/grub.d/30_os-prober.in: Don't throw away stderr from
4cbbccec 34012 os-prober. Under normal operation, it does not print anything to
34013 stderr; if it does, we need to debug it, and throwing away stderr
34014 makes that excessively difficult.
a83d079b 34015
be94a509 340162009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
34017
34018 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
34019
63f745e8 340202009-09-16 Robert Millan <rmh.grub@aybabtu.com>
34021
34022 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
34023 AC_LANG_PROGRAM from autoconf.
34024 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
34025 prototypes (fixes warning).
34026
34027 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
34028 `--disable-werror' was used.
34029
bbb2a70f 340302009-09-16 Robert Millan <rmh.grub@aybabtu.com>
34031
34032 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
34033 uninitialized `lastaddr'.
34034
77c24f1d 340352009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
34036
0f0b8c87 34037 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
77c24f1d 34038
07197f23 340392009-09-14 Colin Watson <cjwatson@ubuntu.com>
34040
34041 * commands/test.c (get_fileinfo): Return immediately if
34042 grub_fs_probe fails.
34043
dabf1798 340442009-09-14 José Martínez <xosemp@gmail.com>
34045
34046 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
34047
d52109a7 340482009-09-14 Colin Watson <cjwatson@ubuntu.com>
34049
34050 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
34051 output.
34052
56532179 340532009-09-13 Robert Millan <rmh.grub@aybabtu.com>
34054
34055 * configure.ac: Remove --enable-grub-pe2elf. Only build
34056 grub-pe2elf when needed by the build system itself.
34057 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
34058
8ef070f5 340592009-09-12 Robert Millan <rmh.grub@aybabtu.com>
34060
34061 * configure.ac: Bump version to 1.97~beta3.
34062 * docs/version.texi: Likewise.
34063
61229557 340642009-09-12 Robert Millan <rmh.grub@aybabtu.com>
34065
34066 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
34067 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
34068 from here ...
34069 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
34070 (grub_linux_setup_video): ... to here (with some adjustments).
34071
5c9f8d84 340722009-09-12 Robert Millan <rmh.grub@aybabtu.com>
34073
34074 Fix memory corruption issue (spotted by Colin Watson).
34075
34076 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
34077 causing returned size to be stored in an incorrect memory location.
34078 Fix use of uninitialized value when storing the returned size.
34079
e8f5d6e9 340802009-09-12 Yves Blusseau <blusseau@zetam.org>
34081
34082 Change clean rules to properly remove files
34083
34084 * genmk.rb: add new clean rules
34085 * Makefile.in (clean): add the new targets
34086 (mostlyclean): likewise
34087
cda2a409 340882009-09-11 Colin Watson <cjwatson@ubuntu.com>
34089
34090 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
34091 to grub_uint64_t.
34092 * fs/ntfs.c (init_file): Understand 64-bit sizes for
34093 non-resident files.
34094
86695375 340952009-09-11 Colin Watson <cjwatson@ubuntu.com>
34096
34097 * configure.ac: Don't look for help2man when cross-compiling. Fixes
34098 part of bug #27349.
34099
8aa1541a 341002009-09-10 Felix Zielcke <fzielcke@z-51.de>
34101
34102 * util/grub-mkconfig.in: Make the created config mode 400 and
34103 print a warning if it fails.
34104
48d9bb0a 341052009-09-10 Robert Millan <rmh.grub@aybabtu.com>
34106
34107 * util/grub.d/40_custom.in: Ask user to type custom entries below
34108 comment, rather than below 'exec tail' line.
34109
3b0521be 341102009-09-10 Colin Watson <cjwatson@ubuntu.com>
34111
34112 * util/grub.d/40_custom.in: Make sure that the explanatory text is
34113 visible in grub.cfg.
34114
50051d55 341152009-09-10 Colin Watson <cjwatson@ubuntu.com>
34116
34117 * util/grub.d/40_custom.in: Make it a little clearer how to use this
34118 file.
34119
c0d34387 341202009-09-10 Felix Zielcke <fzielcke@z-51.de>
34121
34122 * docs/grub.cfg: Add an example menu entry for memtest86+.
34123
80a608f3 341242009-09-09 Felix Zielcke <fzielcke@z-51.de>
34125
a2094832 34126 * config.guess: Update to latest version from config git.
80a608f3 34127 * config.sub: Likewise.
34128
99423078 341292009-09-08 Colin Watson <cjwatson@ubuntu.com>
34130
34131 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
34132 unknown-command case. Fixes bug #27320.
34133
44454e4c 341342009-09-08 Felix Zielcke <fzielcke@z-51.de>
34135
34136 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
34137 `help' if the command exists.
34138
e30d87ad 341392009-09-06 Robert Millan <rmh.grub@aybabtu.com>
34140
34141 * INSTALL: Require GCC 4.1.3 or later.
34142
9a86f1ec 341432009-09-06 Yves Blusseau <blusseau@zetam.org>
34144
34145 * Makefile.in (RMKFILES): add i386-qemu.rmk
34146 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
34147 $(srcdir)/stamp-h.in
34148
7f26d466 341492009-09-05 Robert Millan <rmh.grub@aybabtu.com>
34150
34151 * util/grub-probe.c (probe): Comment out buggy codepath, which
34152 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
34153 should be re-enabled after 1.97.
34154
3a613259 341552009-09-05 Felix Zielcke <fzielcke@z-51.de>
34156
34157 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
34158 find searches for.
34159
197f76c7 341602009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
34161
34162 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
34163 unnecessary calls to grub_error.
34164
70ba68ce 341652009-09-04 Colin Watson <cjwatson@ubuntu.com>
34166
34167 * NEWS: Mention `keystatus' and Unicode fonts.
34168
4ff0d7a4 341692009-09-04 Robert Millan <rmh.grub@aybabtu.com>
34170
34171 * configure.ac: Bump version to 1.97~beta2.
34172 * docs/version.texi: Likewise.
34173
77c55a87 341742009-09-03 Colin Watson <cjwatson@ubuntu.com>
34175
34176 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
34177 containing unwind information in some cases where it previously did
34178 not. Use -fno-dwarf2-cfi-asm if available to restore the old
34179 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
34180 discussion.
34181
f79572cd 341822009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
34183
34184 Embedding loadenv module into grub-emu
34185
34186 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
34187 commands/loadenv.c
34188 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
34189 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
34190 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
34191 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
34192 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
34193 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
34194
93a81088 341952009-09-03 Magnus Granberg <zorry@ume.nu>
34196
34197 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
34198 include -fPIE in the default specs.
34199 * configure.ac: Check if pie_possible is yes and add -fno-PIE
34200 to TARGET_CFLAGS.
34201
160034b2 342022009-09-03 Felix Zielcke <fzielcke@z-51.de>
34203
34204 * INSTALL: Note that GNU Bison 2.3 or later is required.
34205
087c07c4 342062009-09-03 Colin Watson <cjwatson@ubuntu.com>
34207
34208 * kern/i386/pc/startup.S: Fix typo.
34209
cbf978c0 342102009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
34211
34212 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
34213 according to GCS.
34214
342152009-09-02 Colin Watson <cjwatson@ubuntu.com>
f0910644 34216
34217 * docs/grub.texi (Naming convention): Describe one-based partition
34218 numbering.
34219 (Device syntax): Likewise.
34220 (File name syntax): Likewise.
34221 (Block list syntax): Likewise.
34222 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
34223 menu.lst.
34224 (File name syntax): Likewise.
34225 (Command-line and menu entry commands): Document acpi, blocklist,
34226 crc, export, insmod, keystatus, ls, set, and unset commands.
34227
f3e8cdfd 342282009-09-02 Colin Watson <cjwatson@ubuntu.com>
34229
34230 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
34231 to avoid implying that only one of --shift, --ctrl, or --alt may be
34232 used.
34233
c0bc232b 342342009-09-02 Colin Watson <cjwatson@ubuntu.com>
34235
34236 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
34237 rather than comparing against S_IFREG, which will almost never work.
34238
aa0f752d 342392009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
34240
34241 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
34242 (write_blocklists): Likewise.
34243
ecb3166a 342442009-09-01 Colin Watson <cjwatson@ubuntu.com>
34245
34246 * script/lua/grub_lua.h (fputs): Supply a format string as the first
34247 argument to grub_printf.
34248
c403a125 342492009-09-01 Felix Zielcke <fzielcke@z-51.de>
31aba781 34250
34251 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
c403a125 34252 non GNU test.
31aba781 34253
b5e7312c 342542009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
34255
34256 * kern/file.c (grub_file_read): Spelling fix
34257
fe00f472 342582009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
34259
34260 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
34261 loading of headers in some cases.
34262
cc55302e 342632009-08-30 Robert Millan <rmh.grub@aybabtu.com>
34264
34265 * configure.ac: Bump version to 1.97~beta1.
34266 * docs/version.texi: Likewise.
34267
5c90cdd2 342682009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
64bf71d0 34269
34270 * include/grub/i386/xnu.h: Add license header.
34271 include grub/err.h explicitly.
34272
c90edae4 342732009-08-29 Robert Millan <rmh.grub@aybabtu.com>
34274
34275 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
34276 to `ufs' in the vfs.root.mountfrom kernel parameter.
34277
d8888b5c 342782009-08-29 Robert Millan <rmh.grub@aybabtu.com>
34279
34280 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
34281
34282 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
34283 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
34284
34285 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
34286 `ARRAY_SIZE' macro.
34287
6f07b921 342882009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
34289
34290 * kern/file.c (grub_file_read): Check offset.
34291 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
34292 * fs/jfs.c (grub_jfs_read_file): Likewise.
34293 * fs/ntfs.c (grub_ntfs_read): Likewise.
34294 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
34295 * fs/minix.c (grub_minix_read_file): Correct offset check.
34296 * fs/ufs.c (grub_ufs_read_file): Likewise.
34297
b4f34077 342982009-08-28 Colin Watson <cjwatson@ubuntu.com>
34299
34300 * term/i386/pc/console.c (bios_data_area): Cast
34301 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
34302
e7c69859 343032009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
34304
34305 1-bit optimised blitters.
34306
34307 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
34308 prototype.
34309 (grub_video_fbblit_replace_24bit_1bit): Likewise.
34310 (grub_video_fbblit_replace_16bit_1bit): Likewise.
34311 (grub_video_fbblit_replace_8bit_1bit): Likewise.
34312 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
34313 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
34314 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
34315 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
34316 function.
34317 (grub_video_fbblit_replace_24bit_1bit): Likewise.
34318 (grub_video_fbblit_replace_16bit_1bit): Likewise.
34319 (grub_video_fbblit_replace_8bit_1bit): Likewise.
34320 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
34321 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
34322 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
34323 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
34324 when possible.
34325 * video/video.c (grub_video_get_blit_format): Return
34326 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
34327
a57da43f 343282009-08-28 Colin Watson <cjwatson@ubuntu.com>
34329
34330 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
34331 the first argument to grub_printf.
34332
4cbe67e5 343332009-08-28 Colin Watson <cjwatson@ubuntu.com>
343342009-08-28 Robert Millan <rmh.grub@aybabtu.com>
34335
34336 Add `getkeystatus' terminal method. Add a new `keystatus' command
34337 to query it.
34338
34339 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
34340 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
34341 modifier key bitmasks.
34342 (struct grub_term_input): Add `getkeystatus' member.
34343 (grub_getkeystatus): Add prototype.
34344 * kern/term.c (grub_getkeystatus): New function.
34345
34346 * include/grub/i386/pc/memory.h
34347 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
34348 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
34349 Data Area layout.
34350 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
34351 (grub_console_term_input): Set `getkeystatus' member.
34352 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
34353 constants.
34354 (grub_usb_keyboard_getreport): Likewise.
34355 (grub_usb_keyboard_checkkey): Likewise.
34356 (grub_usb_keyboard_getkeystatus): New function.
34357 (grub_usb_keyboard_term): Set `getkeystatus' member.
34358
34359 * commands/keystatus.c: New file.
34360 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
34361 (keystatus_mod_SOURCES): New variable.
34362 (keystatus_mod_CFLAGS): Likewise.
34363 (keystatus_mod_LDFLAGS): Likewise.
34364 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
34365 commands/keystatus.c.
34366 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
34367 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34368 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
34369 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34370 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34371 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4cbe67e5 34372
6e2a9085 343732009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
34374
34375 Split befs.mod and afs.mod into *_be.mod and *.mod
34376
34377 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
34378 (grub_fstest_SOURCES): Likewise.
34379 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
34380 (afs_be_mod_SOURCES): New variable.
34381 (afs_be_mod_CFLAGS): Likewise.
34382 (afs_be_mod_LDFLAGS): Likewise.
34383 (befs_be_mod_SOURCES): Likewise.
34384 (befs_be_mod_CFLAGS): Likewise.
34385 (befs_be_mod_LDFLAGS): Likewise.
34386 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
34387 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
34388 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34389 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
34390 (grub_emu_SOURCES): Likewise.
34391 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34392 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34393 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
34394 * fs/afs_be.c: New file.
34395 * fs/befs_be.c: New file.
34396 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
34397 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
34398 (U16): Replaced with ...
34399 (grub_afs_to_cpu16): ...this. All users updated.
34400 (U32): Replaced with ...
34401 (grub_afs_to_cpu32): ...this. All users updated.
34402 (U64): Replaced with ...
34403 (grub_afs_to_cpu64): ...this. All users updated.
34404 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
34405 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
ad8ea1f4 34406 (grub_afs_validate_sblock): Check only one endianness.
6e2a9085 34407 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
34408 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
34409 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
34410 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
34411 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
34412 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
34413 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
34414 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
34415
32a71655 344162009-08-26 Bean <bean123ch@gmail.com>
34417
34418 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
34419 64-bit number.
34420 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
34421 (grub_xfs_inode_block): Change return type to grub_uint64_t.
34422 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
34423
552bf6c5 344242009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
34425
34426 NetBSD memory map support.
34427
34428 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
34429 (grub_netbsd_btinfo_mmap_header): New structure.
34430 (grub_netbsd_btinfo_mmap_entry): Likewise.
34431 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
34432
1ae2078c 344332009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
34434
34435 Enable bsd.mod on coreboot.
34436
34437 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
34438 (bsd_mod_SOURCES): New variable.
34439 (bsd_mod_CFLAGS): Likewise.
34440 (bsd_mod_LDFLAGS): Likewise.
34441 (bsd_mod_ASFLAGS): Likewise.
34442 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
34443 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
34444
beefc598 344452009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
34446
34447 Cleanup NetBSD root support.
34448
34449 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
34450 grub_bsd_get_device.
34451 Fix typo.
34452
3b76e68b 344532009-08-25 Felix Zielcke <fzielcke@z-51.de>
34454
34455 * util/grub.d/00_header.in: Move check for the video backend of
34456 gfxterm from here ...
34457 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
34458 a suitable video backend.
34459
aea664ea 344602009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
34461
34462 Fix breakage in grub-setup.
34463
34464 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
34465 "msdos_partition_map".
34466
ff747d50 344672009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
34468
34469 Fix breakage in normal/auth.c.
34470
34471 * normal/auth.c (grub_iswordseparator): New function.
34472
e7e1f93f 344732009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
34474
34475 Authentication support.
34476
34477 * commands/password.c: New file.
34478 * conf/common.rmk (pkglib_MODULES): Add password.mod.
34479 (password_mod_SOURCES): New variable.
34480 (password_mod_CFLAGS): Likewise.
34481 (password_mod_LDFLAGS): Likewise.
34482 (normal_mod_SOURCES): Add normal/auth.c.
34483 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
34484 normal/auth.c.
34485 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
34486 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34487 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
34488 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34489 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34490 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
34491 * include/grub/auth.h: New file.
34492 * include/grub/err.h (grub_err_t): New enum value
34493 GRUB_ERR_ACCESS_DENIED.
34494 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
34495 'users'.
34496 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
34497 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
34498 users updated.
34499 * normal/auth.c: New file.
34500 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
34501 (grub_cmdline_run): Don't allow to go to command line without
34502 authentication.
34503 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
34504 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
34505 menuentry without superuser rights.
34506 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
34507 user isn't a superuser.
34508
70f1161d 345092009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
34510
34511 Save space by inlining misc.c functions.
34512
34513 * kern/misc.c (grub_iswordseparator): Made static.
34514 * kern/misc.c (grub_strcat): Moved from here ...
34515 * include/grub/misc.h (grub_strcat): ... here. Inlined.
34516 * kern/misc.c (grub_strncat): Moved from here ...
34517 * include/grub/misc.h (grub_strncat): ... here. Inlined.
34518 * kern/misc.c (grub_strcasecmp): Moved from here ...
34519 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
34520 * kern/misc.c (grub_strncasecmp): Moved from here ...
34521 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
34522 * kern/misc.c (grub_isalpha): Moved from here ...
34523 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
34524 * kern/misc.c (grub_isdigit): Moved from here ...
34525 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
34526 * kern/misc.c (grub_isgraph): Moved from here ...
34527 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
34528 * kern/misc.c (grub_tolower): Moved from here ...
34529 * include/grub/misc.h (grub_tolower): ... here. Inlined.
34530
48e40bff 345312009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
34532
34533 * script/sh/function.c (grub_script_function_find): Cut error message
34534 not to flood terminal.
34535 * script/sh/lexer.c (grub_script_yylex): Remove command line length
34536 limit.
34537 * script/sh/script.c (grub_script_arg_add): Duplicate string.
34538
c385bfc3 345392009-08-24 Colin Watson <cjwatson@ubuntu.com>
34540
34541 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
34542 `report' grub_uint8_t *.
34543 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
34544 Use a 50-millisecond timeout rather than just repeating
34545 grub_usb_keyboard_getreport 50 times.
34546 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
34547
2d21e3e8 345482009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
34549
34550 Rename *_partition_map to part_*
34551
34552 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
34553 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
34554 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
34555 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
34556 All users updated.
34557 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
34558 All users updated.
34559 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
34560 * util/grub-probe.c (probe_partmap): Don't transform partition name
34561 to get module name.
34562
dd103c4e 345632009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
34564
34565 Fix OpenBSD and NetBSD support.
34566
34567 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
34568 memory address conflict.
34569 (OPENBSD_MMAP_ACPI): New definition.
34570 (OPENBSD_MMAP_NVS): Likewise.
34571 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
34572 and OPENBSD_MMAP_NVS.
34573 Add memory map terminator
34574 Explicit cast when calling grub_unix_real_boot.
ad8ea1f4 34575 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
dd103c4e 34576
16c84d74 345772009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
34578
34579 Let user specify NetBSD root device.
34580
34581 * loader/i386/bsd.c (netbsd_root): New variable.
34582 (netbsd_opts): New option 'root'.
34583 (NETBSD_ROOT_ARG): New macro.
34584 (grub_netbsd_boot): Use 'netbsd_root'.
34585 (grub_bsd_unload): Free 'netbsd_root'.
34586 (grub_cmd_netbsd): Fill 'netbsd_root'.
34587
adb29902 345882009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
34589
34590 Support for 64-bit NetBSD.
34591
34592 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
34593 point when booting non-FreeBSD.
34594
f5ae9f74 345952009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
34596
34597 Support --no-smp and --no-acpi for NetBSD.
34598
34599 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
34600 (NETBSD_AB_NOACPI): Likewise.
34601 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
34602 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
34603
de74f136 346042009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
34605
34606 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
34607 errors.
34608 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
34609 errors. Call grub_error when needed.
34610
e9a925da 346112009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
34612
34613 * commands/search.c (search_fs): Try searching without autoload first.
34614 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
34615 filesystem module explicitly for faster booting.
34616
5174302b 346172009-08-23 Colin Watson <cjwatson@ubuntu.com>
34618
34619 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
34620
c8c80635 346212009-08-23 Colin Watson <cjwatson@ubuntu.com>
34622
34623 * util/grub.d/30_os-prober.in: Disable os-prober if
34624 `GRUB_DISABLE_OS_PROBER' was set to true.
34625
71acf5e5 346262009-08-23 Robert Millan <rmh.grub@aybabtu.com>
34627
34628 * partmap/pc.c: Rename to ...
34629 * partmap/msdos.c: ... this. Update all users.
34630 (grub_pc_partition_map): Rename to ...
34631 (grub_msdos_partition_map): ... this. Update all users.
34632
34633 * parttool/pcpart.c: Rename to ...
34634 * parttool/msdospart.c: ... this. Update all users.
34635
34636 * include/grub/pc_partition.h: Rename to ...
34637 * include/grub/msdos_partition.h: ... this. Update all users.
34638 (grub_pc_partition_bsd_entry): Rename to ...
34639 (grub_msdos_partition_bsd_entry): ... this. Update all users.
34640 (grub_pc_partition_disk_label): Rename to ...
34641 (grub_msdos_partition_disk_label): ... this. Update all users.
34642 (grub_pc_partition_entry): Rename to ...
34643 (grub_msdos_partition_entry): ... this. Update all users.
34644 (grub_pc_partition_mbr): Rename to ...
34645 (grub_msdos_partition_mbr): ... this. Update all users.
34646 (grub_pc_partition): Rename to ...
34647 (grub_msdos_partition): ... this. Update all users.
34648 (grub_pc_partition_is_empty): Rename to ...
34649 (grub_msdos_partition_is_empty): ... this. Update all users.
34650 (grub_pc_partition_is_extended): Rename to ...
34651 (grub_msdos_partition_is_extended): ... this. Update all users.
34652 (grub_pc_partition_is_bsd): Rename to ...
34653 (grub_msdos_partition_is_bsd): ... this. Update all users.
34654
34655 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
34656 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
34657 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
34658 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
34659 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
34660 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
34661 (gpt_mod_LDFLAGS): Rename to ...
34662 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
34663 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
34664 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
34665 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
34666 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
34667 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
34668 (part_gpt_mod_LDFLAGS): ... this.
34669 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
34670 `pcpart.mod' to `msdospart.mod'.
34671 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
34672 to ...
34673 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
34674 (msdospart_mod_LDFLAGS): ... this.
34675
c11fded5 346762009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
34677
34678 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
34679 (openbsd_opts): Likewise.
34680 (netbsd_opts): Likewise.
34681 (freebsd_flags): Added 0 terminator.
34682 (openbsd_flags): Likewise.
34683 (netbsd_flags): Likewise.
34684 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
34685 (grub_cmd_freebsd): Transformed into extended command.
34686 (grub_cmd_openbsd): Likewise.
34687 (grub_cmd_netbsd): Likewise.
34688 (cmd_freebsd): Changed type to grub_extcmd_t.
34689 (cmd_openbsd): Likewise.
34690 (cmd_netbsd): Likewise.
34691 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
34692 grub_cmd_openbsd as extended commands.
34693 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
34694 cmd_netbsd and cmd_openbsd
34695
11d1c769 346962009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
34697
34698 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
34699
7a9094e5 347002009-08-21 Pavel Roskin <proski@gnu.org>
34701
5496c37e 34702 * Makefile.in (install-local): When checking if a file is in the
34703 build directory, use "test -e" to detect symlinks.
34704
7a9094e5 34705 * Makefile.in (install-local): Remove all files in
34706 $(DESTDIR)$(pkglibdir) before installing new files there.
34707
e53cea11 347082009-08-18 Felix Zielcke <fzielcke@z-51.de>
34709
34710 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
34711 grub-mkelfimage.
34712
9aced544 347132009-08-18 Felix Zielcke <fzielcke@z-51.de>
34714
34715 * util/grub-mkconfig.in: Don't use gfxterm by default if not
34716 explicitly specified by the user.
34717
b7da6bab 347182009-08-18 Pavel Roskin <proski@gnu.org>
34719
34720 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
34721 grub_uint8_t pointer for data.
34722 * include/grub/fbutil.h (struct grub_video_fbblit_info):
34723 Likewise.
34724 * video/fb/fbutil.c: Remove unnecessary casts.
34725
19f1b335 347262009-08-17 Michal Suchanek <hramrach@centrum.cz>
34727
34728 VBE cleanup.
34729
34730 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
34731 (grub_vbe_set_video_mode): Save active mode info
34732 only after setting the mode.
34733 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
34734 second argument.
34735
2f467aa9 347362009-08-17 Michal Suchanek <hramrach@centrum.cz>
34737
34738 Rename variables for clarity.
34739
34740 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
34741 (active_vbe_mode_info): ... this. All users updated.
34742 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
34743 All users updated.
34744 (initial_mode): Rename to ...
34745 (initial_vbe_mode): ... this. All users updated.
34746 (mode_in_use): Rename to ..
34747 (vbe_mode_in_use): ... this. All users updated.
34748 (mode_list): Rename to ..
34749 (vbe_mode_list): ... this. All users updated.
34750 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
34751 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
34752 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
34753 'mode_list_size' to 'vbe_mode_list_size'.
34754 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
34755 'best_mode_info' to 'best_vbe_mode_info' and
34756 'best_mode' to 'best_vbe_mode'
34757
6025fcd7 347582009-08-17 Michal Suchanek <hramrach@centrum.cz>
34759
34760 Remove duplicate grub_video_fb_get_video_ptr.
34761
34762 * include/grub/fbutil.h (get_data_ptr): Rename to ...
34763 (grub_video_fb_get_video_ptr): ... this.
34764 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
34765 * video/fb/fbutil.c: Add comment about addressing.
34766 (get_data_ptr): Rename to ...
34767 (grub_video_fb_get_video_ptr): ... this. All users updated.
34768 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
34769
cc8c6faf 347702009-08-17 Robert Millan <rmh.grub@aybabtu.com>
34771
34772 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
34773 grub_dprintf() that was just added.
34774
08aa61f0 347752009-08-17 Robert Millan <rmh.grub@aybabtu.com>
34776
34777 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
34778 (DEFAULT_VIDEO_MODE): Remove macros.
34779 (grub_linux_boot): Remove assumption that Linux has FB support,
34780 and use "text" as default video mode.
34781
7cef4f75 347822009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
34783
34784 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
34785 grub_dprintf.
34786 * fs/fat.c (grub_fat_read_data): Likewise.
34787
e1f39873 347882009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
34789
34790 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
34791 payload.
34792 (grub_module): Likewise.
34793
c166d79e 347942009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
34795
34796 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
34797 mbi->cmdline but free playground.
34798
c60cee8e 347992009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
34800
34801 Handle group offset on UFS1.
34802
34803 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
34804 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
34805
c0d8b5d4 348062009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
34807
34808 Split ufs.mod into ufs1.mod and ufs2.mod.
34809
34810 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
34811 (grub_fstest_SOURCES): Likewise.
34812 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
34813 (ufs_mod_SOURCES): Remove.
34814 (ufs_mod_CFLAGS): Likewise.
34815 (ufs_mod_LDFLAGS): Likewise.
34816 (ufs1_mod_SOURCES): New variable.
34817 (ufs1_mod_CFLAGS): Likewise.
34818 (ufs1_mod_LDFLAGS): Likewise.
25fbd77a 34819 (ufs2_mod_SOURCES): New variable.
34820 (ufs2_mod_CFLAGS): Likewise.
34821 (ufs2_mod_LDFLAGS): Likewise.
c0d8b5d4 34822 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
34823 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
34824 Likewise.
34825 (grub_emu_SOURCES): Likewise.
34826 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34827 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
34828 (grub_setup_SOURCES): Likewise.
34829 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34830 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
34831 (grub_setup_SOURCES): Likewise.
34832 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
34833 Likewise.
34834 * fs/ufs2.c: New file.
34835 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
34836
d3539132 348372009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
34838
34839 Framebuffer split.
34840
34841 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
34842 subsystem at the end.
34843 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
34844 (video_fb_mod_SOURCES): New variable.
34845 (video_fb_mod_CFLAGS): Likewise.
34846 (video_fb_mod_LDFLAGS): Likewise.
34847 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
34848 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
34849 * video/i386/pc/vbeblit.c: Moved from here ...
34850 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
34851 * video/i386/pc/vbefill.c: Moved from here ...
34852 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
34853 * video/i386/pc/vbeutil.c: Moved from here ...
34854 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
34855 * include/grub/i386/pc/vbeblit.h: Moved from here ...
34856 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
34857 * include/grub/i386/pc/vbefill.h: Moved from here ...
34858 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
34859 * include/grub/i386/pc/vbeutil.h: Moved from here ...
34860 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
34861 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
34862 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
34863 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
34864 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
34865 (grub_video_adapter): Added 'get_info_and_fini'.
34866 (grub_video_get_info_and_fini): New prototype.
34867 (grub_video_set_mode): make modestring const char *.
34868 * loader/i386/linux.c (grub_linux_setup_video): Use
34869 grub_video_get_info_and_fini.
34870 (grub_linux_boot): Move modesetting just before booting.
34871 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
34872 grub_video_get_info_and_fini.
34873 * video/i386/pc/vbe.c: Moved framebuffer part ...
34874 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
34875 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
34876 grub_video_fbstd_colors and grub_video_fb_set_palette.
34877 (grub_video_vbe_init): Clear 'framebuffer' variable and use
34878 grub_video_fb_init.
34879 (grub_video_vbe_fini): Use grub_video_fb_fini.
34880 (grub_video_vbe_setup): Use framebuffer.render_target instead of
34881 render_target and use grub_video_fb_set_active_render_target and
34882 grub_video_fb_set_palette.
34883 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
34884 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
34885 (grub_video_vbe_adapter): Use framebuffer.
34886 * video/video.c (grub_video_get_info_and_fini): New function.
34887 (grub_video_set_mode): Make modestring const char *.
34888 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
34889 values are already initialised.
34890
d404ee56 348912009-08-14 Pavel Roskin <proski@gnu.org>
34892
34893 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
34894 ABS and APPLE_CC.
34895 * boot/i386/pc/diskboot.S: Likewise.
34896 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
34897 sectors allow compilation on MacOSX.
34898 * conf/i386-pc.rmk: Enable unconditional compilation of
34899 lnxboot.img.
34900
9a10df16 349012009-08-13 Colin Watson <cjwatson@ubuntu.com>
34902
34903 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
34904 * util/grub.d/00_header.in: Enter interruptible sleep if
34905 GRUB_HIDDEN_TIMEOUT is set.
34906
be3c9ca7 349072009-08-13 Yves Blusseau <blusseau@zetam.org>
34908
34909 * include/grub/symbol.h: Add the LOCAL macro.
34910 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
34911 starting with "L_".
34912
1f9e557e 349132009-08-13 Pavel Roskin <proski@gnu.org>
34914
9ca62843 34915 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
34916 any modern compilers we support.
34917
1f9e557e 34918 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
34919 Use local labels starting with "L_" so that Apple assembler
34920 knows they are local.
34921
81623db6 349222009-08-10 Robert Millan <rmh.grub@aybabtu.com>
34923
34924 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
34925 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
34926 (bsd_kernel_types): ... this enum.
34927
34928 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
34929 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
34930 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
34931
34932 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
34933 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
34934 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
34935 messages.
34936
f5d35e7a 349372009-08-08 Robert Millan <rmh.grub@aybabtu.com>
34938
34939 * util/grub-dumpdevtree: Moved from here ...
34940 * util/i386/efi/grub-dumpdevtree: ... to here.
34941 (hexify): New function. Converts a string to its hex version.
34942 Generate hex versions of "efi" and "device-properties" by calling
34943 hexify() on the ASCII strings rather than by hardcoding numbers.
34944
d1e1d527 349452009-08-08 Robert Millan <rmh.grub@aybabtu.com>
34946
34947 * fs/jfs.c: Update copyright year.
34948
1ebbe064 349492009-08-08 Felix Zielcke <fzielcke@z-51.de>
34950
34951 * util/grub.d/00_header.in: Fix a comment.
34952 * util/grub.d/10_linux.in: Likewise.
34953 * util/grub.d/10_windows.in: Likewise.
34954 * util/grub.d/10_hurd.in: Likewise.
34955
a78c8d24 349562009-08-08 Felix Zielcke <fzielcke@z-51.de>
34957
34958 * util/grub-mkconfig.in: Allow the user to specify the used font
34959 with GRUB_FONT.
34960
29a6b9e8 349612009-08-08 Pavel Roskin <proski@gnu.org>
34962
b5f16cc4 34963 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
34964 available, xfs.mod needs it now.
34965
2f5cb827 34966 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
34967 the "g" modifier in sed when the intention is to strip something
34968 once. This fixes comparison of kernels with multiple dashes.
34969
29a6b9e8 34970 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
34971 on it. Add missing space before closing bracket. Fix
34972 misleading formatting.
34973
892a3d98 349742009-08-07 Robert Millan <rmh.grub@aybabtu.com>
34975
34976 * docs/grub.texi: Major overhaul. Remove all sections that are
34977 specific to GRUB Legacy, or mostly composed of Legacy-specific
34978 information.
34979
ed94253f 349802009-08-07 Robert Millan <rmh.grub@aybabtu.com>
34981
34982 * docs/version.texi: New file. Provides version information for
34983 grub.texi.
34984
126d6628 349852009-08-07 Robert Millan <rmh.grub@aybabtu.com>
34986
34987 * docs/grub.texi: Update CVS information to SVN.
34988 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
34989
998b5aa9 349902009-08-07 Felix Zielcke <fzielcke@z-51.de>
34991
34992 * util/grub-mkconfig.in: Remove a wrong `fi'.
34993
818e094a 349942009-08-07 Felix Zielcke <fzielcke@z-51.de>
34995
34996 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
34997 (grub_jfs_uuid): New function.
34998 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
34999
b969c52f 350002009-08-07 Felix Zielcke <fzielcke@z-51.de>
35001
35002 * util/grub-mkconfig_lib.in (font_path): Move the functionality
35003 of it to ...
35004 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
35005 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
35006
7a4894cc 350072009-08-07 Robert Millan <rmh.grub@aybabtu.com>
35008
35009 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
35010 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
35011 Update all users.
35012
35013 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
35014 not just "vmlinu[zx]".
35015 Moved from here ...
35016 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
35017 all users.
35018
35019 * util/grub.d/10_linux.in (find_latest): Moved from here ...
35020 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
35021 all users.
35022
4e2171f8 350232009-08-07 Robert Millan <rmh.grub@aybabtu.com>
35024
35025 * util/grub.d/10_freebsd.in: Use an absolute device path for
35026 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
35027
6dcfcb32 350282009-08-06 Felix Zielcke <fzielcke@z-51.de>
35029
35030 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
35031 handling of multiple abstraction modules.
35032
f56a8756 350332009-08-04 Robert Millan <rmh.grub@aybabtu.com>
35034
35035 Fix a bug resulting in black screen when loading Linux using a
35036 packed video mode.
35037
35038 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
35039 function.
35040
35041 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
35042 (grub_vbe_bios_getset_dac_palette_width): New function.
35043 (grub_vbe_bios_get_dac_palette_width)
35044 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
35045 grub_vbe_bios_getset_dac_palette_width()).
35046
35047 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
35048 check for return status.
35049 (grub_vbe_get_video_mode_info): When getting information for a packed
35050 mode (<= 8 bpp), obtain DAC palette width using
35051 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
35052 {red,green,blue}_mark_size.
35053
222671b2 350542009-08-04 Felix Zielcke <fzielcke@z-51.de>
35055
ecb1a6d9 35056 * commands/search.c (options): Fix help output to match actual code.
222671b2 35057
f84114f5 350582009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
35059
35060 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
35061 of homegrown code.
35062
bd288a20 350632009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
e768b770 35064
35065 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
35066 on XFS or ReiserFS.
35067
8aab5e25 350682009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
35069
35070 Support Apple partition map with sector size different from 512 bytes.
35071
35072 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
35073 (apple_partition_map_iterate): Respect 'aheader.blocksize'
35074 and 'apart.partmap_size'.
35075
6ad6258a 350762009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
350772009-08-01 Robert Millan <rmh.grub@aybabtu.com>
35078
35079 Fix cpuid command.
35080
35081 * commands/i386/cpuid.c (options): New variable.
35082 (grub_cmd_cpuid): Return real error.
35083 (GRUB_MOD_INIT(cpuid)): Declare options.
35084
67459bc6 350852009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
35086
35087 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
35088 valid.
35089
fbc6ab54 350902009-07-31 Bean <bean123ch@gmail.com>
35091
35092 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
35093 log2_inode.
35094 (grub_fshelp_node): Move inode field to the end.
35095 (grub_xfs_data): Remove inode field.
35096 (grub_xfs_inode_block): Calculate inode size using sblock.
35097 (grub_xfs_inode_offset): Likewise.
35098 (grub_xfs_read_inode): Calculate inode size using sblock.
35099 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
35100 (grub_xfs_iterate_dir): Calculate inode size using sblock.
35101 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
35102 to match inode size.
35103 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
35104 not accessible when data is null.
35105 (grub_xfs_open): Likewise.
35106
f45d6cfc 351072009-07-31 Bean <bean123ch@gmail.com>
35108
35109 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
35110 Don't change pv->disk if it's already set.
35111
35112 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
35113 (grub_raid_register): ... here.
35114 (grub_raid_rescan): Removed.
35115
35116 * include/grub/raid.h (grub_raid_rescan): Removed.
35117
35118 * util/grub-fstest.c: Remove include file <grub/raid.h>.
35119 (fstest): Replace grub_raid_rescan with module fini function followed
35120 by init function.
35121
35122 * util/grub-probe.c: Add include file <grub/raid.h>.
35123 (probe_raid_level): New function.
35124 (probe): Detect abstraction by walking the disk device, support two
35125 level of abstraction (LVM on RAID) when detecting partition map.
35126
24443b5a 351272009-07-31 Pavel Roskin <proski@gnu.org>
35128
35129 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
35130 to grub_zalloc(), it was erroneous.
35131 Reported by Bean <bean123ch@gmail.com>
35132
a275d9e7 351332009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
35134
35135 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
ad8ea1f4 35136 embedding zone, not only the first one.
a275d9e7 35137
56c5a47f 351382009-07-29 Joe Auricchio <jauricchio@gmail.com>
35139
35140 * term/gfxterm.c (clear_char): New function.
35141 (grub_virtual_screen_setup): Use clear_char.
35142 (scroll_up): Likewise.
35143 (grub_virtual_screen_cls): Likewise.
35144
67bb323a 351452009-07-29 Felix Zielcke <fzielcke@z-51.de>
35146
35147 * util/deviceiter.c (get_acceleraid_disk_name): New static
35148 function.
35149 (grub_util_iterate_devices): Handle Accelraid devices.
35150 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
35151
388a7c75 351522009-07-28 Robert Millan <rmh.grub@aybabtu.com>
35153
35154 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
35155 separator for the suggested gfxpayload string (';' collides with the
35156 parser and needs escaping).
35157
3bb7abcf 351582009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
35159
35160 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
35161 Clear direction flag before jumping to OS.
35162 (grub_multiboot2_real_boot): Likewise.
35163
2ddd36d7 351642009-07-28 Felix Zielcke <fzielcke@z-51.de>
35165
35166 * util/i386/pc/grub-install: Fix parsing of --disk-module
35167 option.
35168
c521b62b 351692009-07-28 Felix Zielcke <fzielcke@z-51.de>
35170
35171 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
35172 when embedding.
35173
880e0a0c 351742009-07-26 Felix Zielcke <fzielcke@z-51.de>
35175
35176 * util/grub-mkconfig.in (package_version): New variable.
35177 Use it do display the version.
35178
2366e356 351792009-07-25 Felix Zielcke <fzielcke@z-51.de>
35180
35181 * kern/file.c (grub_file_open): Revert to previous check with
35182 grub_errno.
35183
7ad8c80e 351842009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
35185
35186 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
35187 from help line. It's out of sync with code.
35188
72b9658b 351892009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
35190
35191 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
35192 entries on failed boot.
35193
77435277 351942009-07-25 Felix Zielcke <fzielcke@z-51.de>
35195
35196 * kern/file.c (grub_file_open): Fix an error check.
35197
fcaa8b21 351982009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
35199
35d16c74 35200 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
35201 partition map couldn't be identified.
fcaa8b21 35202
48904cd1 352032009-07-23 Pavel Roskin <proski@gnu.org>
35204
ef3c317f 35205 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
35206 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
35207 case of little endian words becomes just an optimization.
35208 Respect const modifier.
ad8ea1f4 35209 (md5_final): Use code that doesn't depend on endianness.
ef3c317f 35210
48904cd1 35211 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
35212 to avoid loss of upper bits if align is unsigned and shorter
35213 than addr.
35214
260c9a89 352152009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
35216
35217 UUID support for UFS
35218
35219 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
35220 (grub_ufs_uuid): New function.
35221 (grub_ufs_fs): add .uuid
35222
f76ce889 352232009-07-21 Pavel Roskin <proski@gnu.org>
35224
35225 * kern/dl.c (grub_dl_check_header): Make static.
35226
6a6cbcaf 352272009-07-21 Felix Zielcke <fzielcke@z-51.de>
35228
35229 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
35230 add drivemap for Vista. It breaks Windows 7.
35231
cffcddb2 352322009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
35233
35234 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
35235 128 bytes
35236
1ef44b80 352372009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
35238
35239 Add BFS support
35240
35241 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
35242 (grub_fstest_SOURCES): Likewise.
35243 (pkglib_MODULES): Add befs.mod.
35244 (befs_mod_SOURCES): New variable.
35245 (befs_mod_CFLAGS): Likewise.
35246 (befs_mod_LDFLAGS): Likewise.
35247 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
35248 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35249 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35250 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35251 (grub_setup_SOURCES): Likewise.
35252 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35253 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35254 (grub_setup_SOURCES): Likewise.
35255 * fs/befs.c: New file.
35256 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
35257 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
35258 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
35259 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
35260 (B_KEY_INDEX_ALIGN): New declaration.
35261 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
35262 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
35263 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
35264 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
35265 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
35266 (grub_afs_mount) [MODE_BFS]: Likewise.
35267 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
35268 (grub_afs_fs): Use GRUB_AFS_FSNAME
35269 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
35270 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
35271 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
35272 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
35273
4f253044 352742009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
35275
35276 * util/getroot.c (find_root_device): Add support for MacOSX.
35277 * util/hostdisk.c: Likewise.
35278
57a55913 352792009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
35280
35281 * font/font.c (find_glyph): Check whether a font is present to avoid
35282 segmentation fault.
75421ca9 35283
352842009-07-20 Joe Auricchio <jauricchio@gmail.com>
04c7c429 35285
35286 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
35287
e98cd0c2 352882009-07-20 Pavel Roskin <proski@gnu.org>
35289
35290 * configure.ac: Trim excessively wordy excuses.
35291
1d2d169a 352922009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
35293
35294 Add symlink, mtime and label support to AtheFS.
35295
35296 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
35297 (grub_afs_iterate_dir): Handle symlinks.
35298 (grub_afs_open): Use grub_afs_read_symlink.
35299 (grub_afs_dir): Likewise.
35300 Pass mtime.
35301 (grub_afs_label): New function.
35302 (grub_afs_fs): Add grub_afs_label.
35303 (grub_afs_read_symlink): New function.
35304
186f3189 353052009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
35306
35307 Fix AtheFS support.
35308
35309 * fs/afs.c: Fix comments style.
35310 (grub_afs_blockrun): Declare as packed.
35311 (grub_afs_datastream): Likewise.
35312 (grub_afs_bnode): Likewise.
35313 (grub_afs_btree): Likewise.
35314 (grub_afs_sblock): Likewise.
35315 Declare `name' as char.
35316 (grub_afs_inode): Declare as packed.
35317 Change void *vnode to grub_uint32_t unused.
35318 (grub_afs_iterate_dir): Check that key_size is positive.
35319 (grub_afs_mount): Don't read superblock twice.
75421ca9 35320 (grub_afs_dir): Don't free node in case of error,
186f3189 35321 grub_fshelp_find_file already handles this.
35322 (grub_afs_open): Likewise.
35323
5680109e 353242009-07-19 Pavel Roskin <proski@gnu.org>
35325
35326 * Makefile.in: Remove LIBLZO and enable_lzo.
35327 * conf/i386-pc.rmk: Remove lzo support.
35328 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
35329 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
35330 support.
35331 * kern/i386/pc/lzo1x.S: Remove.
35332 * kern/i386/pc/startup.S: Remove lzo support.
35333 * util/i386/pc/grub-mkimage.c: Likewise.
35334
ac70fa32 353352009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
35336
35337 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
35338 * fs/xfs.c (grub_xfs_dir): Likewise.
35339 * fs/afs.c (grub_afs_dir): Likewise.
35340 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
35341 (grub_iso9660_open): Likewise.
35342 * fs/jfs.c (grub_jfs_open): Likewise.
35343 * fs/ext2.c (grub_ext2_dir): Likewise.
35344 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
35345 * script/sh/lexer.c (grub_script_yylex): Likewise.
75421ca9 35346
eab58da2 353472009-07-16 Pavel Roskin <proski@gnu.org>
35348
d2838156 35349 * configure.ac: Never add "-c" to CFLAGS.
35350
55c70904 35351 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
35352
43e6200c 35353 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
35354 grub_cv_cc_efiemu should be used.
35355
ce7a733d 35356 * configure.ac: Typo fixes.
35357
eab58da2 35358 * kern/mm.c (grub_zalloc): New function.
35359 (grub_debug_zalloc): Likewise.
35360 * include/grub/mm.h: Declare grub_zalloc() and
35361 grub_debug_zalloc().
35362 * util/misc.c (grub_zalloc): New function.
35363 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
35364 instead of grub_malloc(), remove unneeded initializations.
35365 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
35366 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
35367 * commands/parttool.c (grub_cmd_parttool): Likewise.
35368 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
35369 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
35370 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
35371 * disk/usbms.c (grub_usbms_finddevs): Likewise.
35372 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
35373 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
35374 (grub_cmd_efiemu_pnvram): Likewise.
35375 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
35376 * fs/iso9660.c (grub_iso9660_mount): Likewise.
35377 (grub_iso9660_iterate_dir): Likewise.
35378 * fs/jfs.c (grub_jfs_opendir): Likewise.
35379 * fs/ntfs.c (list_file): Likewise.
35380 (grub_ntfs_mount): Likewise.
35381 * kern/disk.c (grub_disk_open): Likewise.
35382 * kern/dl.c (grub_dl_load_core): Likewise.
35383 * kern/elf.c (grub_elf_file): Likewise.
35384 * kern/env.c (grub_env_context_open): Likewise.
35385 (grub_env_set): Likewise.
35386 (grub_env_set_data_slot): Likewise.
35387 * kern/file.c (grub_file_open): Likewise.
35388 * kern/fs.c (grub_fs_blocklist_open): Likewise.
35389 * loader/i386/multiboot.c (grub_module): Likewise.
35390 * loader/xnu.c (grub_xnu_create_key): Likewise.
35391 (grub_xnu_create_value): Likewise.
35392 * normal/main.c (grub_normal_add_menu_entry): Likewise.
35393 (read_config_file): Likewise.
35394 * normal/menu_entry.c (make_screen): Likewise.
35395 * partmap/sun.c (sun_partition_map_iterate): Likewise.
35396 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
35397 * script/sh/script.c (grub_script_parse): Likewise.
35398 * video/bitmap.c (grub_video_bitmap_create): Likewise.
35399 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
35400 * video/readers/png.c (grub_png_output_byte): Likewise.
35401 (grub_video_reader_png): Likewise.
35402
830afef7 354032009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5ce5507f 35404
35405 Enable all targets that can be built by default
35406
830afef7 35407 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
5ce5507f 35408 grub-mkfont and grub-fstest if they can be built
35409
ee293aee 354102009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
35411
35412 Fix hang and segmentation fault in grub-emu-usb
35413
35414 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
35415 * util/usb.c (grub_libusb_devices): likewise
35416 (grub_libusb_init): rename to ...
35417 (GRUB_MOD_INIT (libusb)):...this
35418 (grub_libusb_fini): rename to ..
35419 (GRUB_MOD_FINI (libusb)):...this
35420 * disk/usbms.c (grub_usbms_transfer): fix retry logic
35421 * include/grub/disk.h (grub_raid_init): removed, it's useless
35422 (grub_raid_fini): likewise
35423 (grub_lvm_init): likewise
35424 (grub_lvm_fini): likewise
35425 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
35426 by grub_init_all
35427
94414221 354282009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
35429
35430 Fix libusb
35431
35432 * Makefile.in (LIBUSB): new macro
35433 * genmk.rb (Utility/print_tail): new method
35434 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
35435 (top level): call util.print_tail at the end.
35436
59ade63d 354372009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
35438
35439 Make FreeBSD accept zpool.cache
35440
35441 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
35442 type is /boot/zfs/zpool.cache
35443
a58da8c7 354442009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
35445
35446 Fix 64-bit efiemu
35447
35448 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
35449 correct wrong typedef
35450 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
35451
20591577 354522009-07-15 Pavel Roskin <proski@gnu.org>
35453
560ca572 35454 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
35455 * kern/disk.c (struct grub_disk_cache): Likewise.
35456
e8e8e4fd 35457 * commands/probe.c (options): Typo fix.
35458
fde24e10 35459 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
35460 Increase to 0x5a to accommodate FAT32. Adjust other offsets
35461 accordingly.
35462 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
35463
379c54c1 35464 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
35465 the end of "Error" to make the message more readable.
35466
7bd8f5bf 35467 * boot/i386/pc/boot.S (kernel_segment): Remove.
35468 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
35469 for destination.
35470
40b132c5 35471 * boot/i386/pc/boot.S (boot_version): Remove.
35472 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
35473 Remove.
35474
20591577 35475 * include/grub/i386/pc/boot.h: Sort all offsets.
35476 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
35477 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
35478 * boot/i386/pc/boot.S: Assert location of every offset listed in
35479 include/grub/i386/pc/boot.h.
35480
2df32b2c 354812009-07-13 Pavel Roskin <proski@gnu.org>
35482
44b5d879 35483 * include/grub/i386/coreboot/machine.h: Rename
35484 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
35485 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
35486 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
35487
17dc3751 35488 * kern/dl.c: Force native word size to suppress warnings when
35489 compiling grub-emu.
35490
2df32b2c 35491 * kern/device.c (grub_device_iterate): Change struct part_ent to
35492 hold the name, not a pointer to it. Use one grub_malloc() per
35493 partition, not two. Free partition_name if grub_malloc() fails.
35494 Set ents to NULL only before grub_partition_iterate() is called.
35495
75c59f59 354962009-07-11 Bean <bean123ch@gmail.com>
35497
35498 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
35499 childname.
35500
0ae1bf88 355012009-07-10 Bean <bean123ch@gmail.com>
355022009-07-10 Robert Millan <rmh.grub@aybabtu.com>
35503
35504 * kern/ieee1275/openfw.c (grub_children_iterate)
35505 (grub_devalias_iterate): Fix size evaluation for property or path
35506 strings, which was broken since r2132.
35507
8279cade 355082009-07-07 Pavel Roskin <proski@gnu.org>
35509
7d8a52d3 35510 * commands/search.c (search_file): Merge into ...
35511 (search_fs): ... this. Accept search type as argument.
35512 (grub_cmd_search): Pass search type to search_fs().
35513
25f9a05a 35514 * include/grub/util/console.h: New file.
35515 * util/console.c: Use it instead of grub/machine/console.h.
35516 * util/grub-emu.c: Likewise.
35517
8279cade 35518 * lib/arg.c (find_long_option): Remove.
35519 (find_long): Add `len' argument, make `s' const char *.
35520 (grub_arg_parse): Parse long options in place, not in a
35521 temporary buffer.
35522
4a11b60f 355232009-07-06 Pavel Roskin <proski@gnu.org>
35524
99f68041 35525 * commands/search.c (search_fs): Fix potential NULL pointer
35526 dereference.
35527
4a11b60f 35528 * commands/search.c (search_fs): Replace QUID macro with quid_fn
35529 function pointer.
35530
e110f4de 355312009-07-06 Daniel Mierswa <impulze@impulze.org>
35532
35533 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
35534 comparison.
35535
46eeb6a2 355362009-07-05 Pavel Roskin <proski@gnu.org>
35537
bab74958 35538 * include/grub/i386/linux.h (struct linux_kernel_params):
35539 Restore padding3, it's still needed.
35540
46eeb6a2 35541 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
35542 FreeBSD.
35543 * util/osdetect.lua: Likewise.
35544
b4a1dc79 355452009-07-05 Bean <bean123ch@gmail.com>
35546
35547 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
35548
35549 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
35550 (grub_lua_getenv): Likewise.
35551 (grub_lua_setenv): Likewise.
35552 (save_errno): New function.
35553 (push_result): Likewise.
35554 (grub_lua_enum_device): Likewise.
35555 (grub_lua_enum_file): Likewise.
35556 (grub_lua_file_open): Likewise.
35557 (grub_lua_file_close): Likewise.
35558 (grub_lua_file_seek): Likewise.
35559 (grub_lua_file_read): Likewise.
35560 (grub_lua_file_getline): Likewise.
35561 (grub_lua_file_getsize): Likewise.
35562 (grub_lua_file_getpos): Likewise.
35563 (grub_lua_file_eof): Likewise.
35564 (grub_lua_file_exist): Likewise.
35565 (grub_lua_add_menu): Likewise.
35566
35567 * script/lua/grub_lua.h (isupper): New inline function.
35568 (islower): Likewise.
35569 (ispunct): Likewise.
35570 (isxdigit): Likewise.
35571 (strcspn): Change to normal function.
35572 (strpbkr): New function declaration.
35573 (memchr): Likewise.
35574
35575 * script/lua/grub_main.c (scan_str): New function.
35576 (strcspn): Likewise.
35577 (strpbrk): Likewise.
35578 (memchr): Likewise.
35579
35580 * script/lua/linit.c (lualibs): Enable the string library.
35581
35582 * util/osdetect.lua: New file.
35583
2da92295 355842009-07-04 Robert Millan <rmh.grub@aybabtu.com>
35585
35586 * include/grub/i386/linux.h (struct linux_kernel_params): Add
35587 `capabilities' member.
35588
b2582ec9 355892009-07-02 Pavel Roskin <proski@gnu.org>
35590
35591 * genparttoollist.sh: Add missing newline at the end.
35592
32622956 355932009-07-01 Pavel Roskin <proski@gnu.org>
35594
87a7339e 35595 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
35596
d23af54e 35597 * util/hostdisk.c (open_device): Remove `const' from
35598 `sysctl_size', as sysctlbyname() can change it (in this case it
35599 doesn't actually happen).
35600
c94b18a9 35601 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
35602 using signed long int constants.
35603
c6cd3ef0 35604 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
35605 constant to avoid a warning on FreeBSD.
35606
0df63420 35607 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
35608 where it's needed.
35609
999577f1 35610 * Makefile.in: Install include/grub/machine symlink.
35611
6f41557f 35612 * Makefile.in: When installing symlinks, use "cp -fR", which
35613 works on FreeBSD and MacOSX.
35614 From Yves Blusseau <cl7m42e02@sneakemail.com>
35615
c8d22988 35616 * kern/dl.c (grub_dl_resolve_symbol): Make static.
35617 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
35618
1b96e952 35619 * util/misc.c: Move grub_reboot() and grub_halt() ...
35620 * util/grub-emu.c: ... here. Make main_env static.
35621 * include/grub/util/misc.h: Remove main_env.
35622
2ef0084d 35623 * kern/mm.c: Use correct format to print size_t.
35624
32622956 35625 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
35626 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
35627 * kern/powerpc/dl.c: Likewise.
35628 * kern/sparc64/dl.c: Likewise.
35629 * kern/x86_64/dl.c: Likewise.
35630
3f7f0cd0 356312009-07-01 Robert Millan <rmh.grub@aybabtu.com>
35632
35633 Fix grub-emu build on sparc64-ieee1275.
35634
75421ca9 35635 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
3f7f0cd0 35636 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
35637
211d06b5 356382009-07-01 Robert Millan <rmh.grub@aybabtu.com>
35639
35640 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
35641 (grub_reboot, grub_halt): New functions.
35642
35643 * util/i386/pc/misc.c: Delete. Update all users.
35644 * util/sparc64/ieee1275/misc.c: Likewise.
35645 * util/powerpc/ieee1275/misc.c: Likewise.
35646
aaf53e3c 356472009-07-01 Robert Millan <rmh.grub@aybabtu.com>
35648
35649 * conf/i386.rmk (setjmp_mod_SOURCES)
35650 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
35651 * conf/common.rmk (setjmp_mod_SOURCES)
35652 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
35653 to use $(target_cpu).
35654 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
35655 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
35656 * conf/powerpc-ieee1275.rmk: Likewise.
35657 * conf/sparc64-ieee1275.rmk: Likewise.
35658
35659 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
35660 $(target_cpu) for kern/$(target_cpu)/dl.c.
35661 * conf/i386-efi.rmk: Likewise.
35662 * conf/i386-ieee1275.rmk: Likewise.
35663 * conf/x86_64-efi.rmk: Likewise.
35664 * conf/i386-coreboot.rmk: Likewise.
35665 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
35666 $(target_cpu) for kern/$(target_cpu)/dl.c and for
35667 kern/$(target_cpu)/cache.S.
35668 * conf/sparc64-ieee1275.rmk: Likewise.
35669
a337130b 356702009-07-01 Robert Millan <rmh.grub@aybabtu.com>
35671
35672 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
35673 type to `grub_uint8_t', and adjust `padding9' accordingly.
35674
c6fe4d53 356752009-06-29 Robert Millan <rmh.grub@aybabtu.com>
35676
b09db61d 35677 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
35678
c6fe4d53 35679 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
35680 assembly in final jump, using register constraints.
35681
b09db61d 35682 (grub_linux_boot): For text mode, initialize `have_vga' using
35683 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
35684
35685 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
35686 right before the final jump.
35687
35688 Set `video_mode' to 0x3.
35689
35690 Document initialization of `video_page', `video_mode' and
35691 `video_ega_bx'.
35692
28333ad0 356932009-06-29 Robert Millan <rmh.grub@aybabtu.com>
35694
35695 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
35696 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
75421ca9 35697 and set GRUB_LINUX_FLAG_QUIET appropriately.
28333ad0 35698
02164e1b 356992009-06-29 Robert Millan <rmh.grub@aybabtu.com>
35700
35701 Fix build on Debian / sparc.
35702
35703 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
35704
18b6c557 357052009-06-28 Pavel Roskin <proski@gnu.org>
35706
85f2aab6 35707 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
35708 fix a warning.
35709
18b6c557 35710 * util/grub.d/10_linux.in: Match SUSE style initrd names.
35711
ad760f81 357122009-06-27 Robert Millan <rmh.grub@aybabtu.com>
35713
35714 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
35715 `err'.
35716
87a4623b 357172009-06-27 Robert Millan <rmh.grub@aybabtu.com>
35718
35719 Revert r2338.
35720
35721 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
35722 file can't be opened. grub_file_open() is already supposed to set
75421ca9 35723 grub_errno / grub_errmsg appropriately.
87a4623b 35724 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
35725
8231fb77 357262009-06-27 Pavel Roskin <proski@gnu.org>
357272009-06-27 Robert Millan <rmh.grub@aybabtu.com>
35728
35729 * include/grub/dl.h: Include grub/elf.h.
35730 (struct grub_dl): Add symtab field.
35731 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
35732 GRUB_MODULES_MACHINE_READONLY.
35733 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
35734 of the header for read-only modules.
35735 (grub_dl_unload): Free mod->symtab for read-only modules.
35736 * kern/i386/dl.c: Use mod->symtab.
35737 * kern/powerpc/dl.c: Likewise.
35738 * kern/sparc64/dl.c: Likewise.
35739 * kern/x86_64/dl.c: Likewise.
35740
35741 * conf/i386-qemu.rmk: New file.
35742 * kern/i386/qemu/startup.S: Likewise.
35743 * kern/i386/qemu/mmap.c: Likewise.
35744 * boot/i386/qemu/boot.S: Likewise.
35745 * include/grub/i386/qemu/time.h: Likewise.
35746 * include/grub/i386/qemu/serial.h: Likewise.
35747 * include/grub/i386/qemu/kernel.h: Likewise.
35748 * include/grub/i386/qemu/console.h: Likewise.
35749 * include/grub/i386/qemu/boot.h: Likewise.
35750 * include/grub/i386/qemu/init.h: Likewise.
35751 * include/grub/i386/qemu/machine.h: Likewise.
35752 * include/grub/i386/qemu/loader.h: Likewise.
35753 * include/grub/i386/qemu/memory.h: Likewise.
35754
35755 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
35756 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
35757 [qemu] (pkglib_IMAGES): Add `boot.img'.
35758 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
35759 [qemu] (boot_img_FORMAT): New variables.
35760 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
35761 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
35762 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
35763 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
35764 [qemu] (kernel_img_FORMAT): New variables.
35765
35766 * configure.ac: Recognise `i386-qemu'.
35767
35768 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
35769 (for no compression).
35770 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
35771 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
35772 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
35773 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
35774 ifdefs).
35775
97fe384e 357762009-06-27 Pavel Roskin <proski@gnu.org>
35777
35778 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
35779 read.
35780 * efiemu/prepare32.c: Likewise.
35781 * efiemu/prepare64.c: Likewise.
35782
c402ab17 357832009-06-26 Pavel Roskin <proski@gnu.org>
35784
35785 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
35786 * include/grub/elf.h: Define symbols without "32" or "64" based
35787 on GRUB_TARGET_WORDSIZE.
35788 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
35789 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
35790 ELF definitions.
35791 * efiemu/loadcore64.c: Likewise.
35792 * loader/i386/bsd32.c: Likewise.
35793 * loader/i386/bsd64.c: Likewise.
35794 * kern/dl.c: Remove own ELF definitions.
35795 * util/i386/efi/grub-mkimage.c: Likewise.
35796
9bbdfd4d 357972009-06-23 Robert Millan <rmh.grub@aybabtu.com>
35798
35799 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
35800 segment 0x0 unconditionally, because the reference generated by
35801 GAS is an absolute address.
35802
a42ce6e9 358032009-06-22 Robert Millan <rmh.grub@aybabtu.com>
35804
35805 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
35806 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
35807
c952cf92 358082009-06-22 Robert Millan <rmh.grub@aybabtu.com>
35809
35810 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
35811 indexes. Check for -f explicitly.
cc3752ad 35812 (search_file): Improve error message.
35813 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
c952cf92 35814
132a0a59 358152009-06-22 Robert Millan <rmh.grub@aybabtu.com>
35816
35817 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
35818 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
35819
387a140c 358202009-06-22 Robert Millan <rmh.grub@aybabtu.com>
35821
35822 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
35823 * conf/i386-ieee1275.rmk: Likewise.
35824 * conf/i386-coreboot.rmk: Likewise.
35825
35826 * kern/i386/pc/startup.S (grub_stop): Remove function.
35827 * kern/i386/ieee1275/startup.S: Likewise.
35828 * kern/i386/coreboot/startup.S: Likewise.
35829 * kern/i386/misc.S (grub_stop): New function.
35830
41da9665 358312009-06-22 Robert Millan <rmh.grub@aybabtu.com>
35832
35833 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
35834 * kern/i386/realmode.S (real_to_prot): ... to here.
35835
bf337234 358362009-06-22 Robert Millan <rmh.grub@aybabtu.com>
35837
35838 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
35839 with `kernel.img'.
35840 (kernel_elf_SOURCES): Rename to ...
35841 (kernel_img_SOURCES): ... this.
35842 (kernel_elf_HEADERS): Rename to ...
35843 (kernel_img_HEADERS): ... this. Update all users.
35844 (kernel_elf_ASFLAGS): Rename to ...
35845 (kernel_img_ASFLAGS): ... this.
35846 (kernel_elf_CFLAGS): Rename to ...
35847 (kernel_img_CFLAGS): ... this.
35848 (kernel_elf_LDFLAGS): Rename to ...
35849 (kernel_img_LDFLAGS): ... this.
35850 * conf/i386-coreboot.rmk: Likewise.
35851 * conf/powerpc-ieee1275.rmk: Likewise.
35852
35853 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
35854 with "kernel.img".
35855
f52196ff 358562009-06-21 Pavel Roskin <proski@gnu.org>
35857
c3cee413 35858 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
35859 to match nested functions.
35860 * loader/sparc64/ieee1275/linux.c: Likewise.
35861
f52196ff 35862 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
35863
58750afc 358642009-06-21 Robert Millan <rmh.grub@aybabtu.com>
35865
35866 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
35867 all i386 platforms.
35868
15355c7d 358692009-06-21 Robert Millan <rmh.grub@aybabtu.com>
35870
35871 Fix asm file handling on ELF, and remove workarounds.
35872
35873 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
75421ca9 35874 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
15355c7d 35875 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
35876 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
35877
3f3ec72b 358782009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
35879
35880 Load BSD ELF modules
35881
35882 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
35883 and loader/i386/bsd64.c
35884 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
35885 (FREEBSD_MODTYPE_ELF_MODULE): New definition
35886 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
35887 (grub_freebsd_load_elfmodule32): New declaration
35888 (grub_freebsd_load_elfmoduleobj64): Likewise
35889 (grub_freebsd_load_elf_meta32): Likewise
35890 (grub_freebsd_load_elf_meta64): Likewise
35891 (grub_freebsd_add_meta): Likewise
35892 (grub_freebsd_add_meta_module): Likewise
35893 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
35894 (grub_freebsd_add_meta_module): Likewise and move module-specific
35895 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
35896 (grub_cmd_freebsd): Add elf-kernel specific parts
35897 based on grub_freebsd_add_meta_module
35898 (grub_cmd_freebsd_module): Add type parsing moved from
35899 grub_freebsd_add_meta_module
35900 (grub_cmd_freebsd_module_elf): New function
35901 (cmd_freebsd_module_elf): New variable
35902 (GRUB_MOD_INIT): Register freebsd_module_elf
35903 * loader/i386/bsd32.c: New file
35904 * loader/i386/bsd64.c: Likewise
35905 * loader/i386/bsdXX.c: Likewise
35906 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
35907 (grub_elf64_load): Likewise
35908 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
35909 All users updated
35910 (grub_elf64_load_hook_t): Likewise
35911
0db15301 359122009-06-21 Colin Watson <cjwatson@ubuntu.com>
35913
35914 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
35915 variable.
35916 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
35917 don't write a menu entry for recovery mode.
35918
546796c1 359192009-06-20 Robert Millan <rmh.grub@aybabtu.com>
35920
35921 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
35922 after it's no longer needed.
35923
cd7310d5 359242009-06-20 Robert Millan <rmh.grub@aybabtu.com>
35925
35926 * include/grub/i386/loader.h (grub_linux_prot_size)
35927 (grub_linux_tmp_addr, grub_linux_real_addr)
35928 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
35929 GRUB_MACHINE_PCBIOS.
35930 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
35931 common grub_util_info() call to ...
35932 (generate_image): ... here.
35933 Fix use of uninitialized memory, comparison of signed with
35934 unsigned integers and memory leak.
35935 Remove bogus module address message.
35936
ab32d3b5 359372009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
35938
35939 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
35940 grub_raid_register
35941 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
35942
024ef597 359432009-06-19 Pavel Roskin <proski@gnu.org>
35944
35945 * configure.ac: Remove stray AC_MSG_CHECKING.
35946
3ac72b51 359472009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
35948
35949 * disk/scsi.c (grub_scsi_open): use continue instead of big if
dd74360c 35950
e14cd814 359512009-06-18 Pavel Roskin <proski@gnu.org>
35952
35953 * conf/common.rmk: Add fs_file.mod.
35954 * disk/fs_file.c: New file.
35955 * include/grub/disk.h (enum grub_disk_dev_id): Add
35956 GRUB_DISK_DEVICE_FILE_ID.
35957
26586d98 359582009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
35959
35960 Fix build with Apple's toolchain. Part 2
35961
35962 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
35963 a fake start
35964
26de2bcd 359652009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
35966
35967 Fix build with Apple's toolchain. Part 1
35968
35969 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
35970 for long calls
35971 * configure.ac: remove a leftover AC_MSG_RESULT
dd74360c 35972 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
26de2bcd 35973 Apple's toolchain
35974
09b3490b 359752009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
35976
35977 Fix warnings
35978
35979 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
35980 (decomp_block): initialize ch
35981 use grub_memcpy instead of memcpy
35982
c22a006a 359832009-06-17 Pavel Roskin <proski@gnu.org>
35984
d3638678 35985 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
35986 version, use declarations needed to use vga_text as the startup
35987 console.
35988
c22a006a 35989 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
35990 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
35991 the kernel.
35992 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
35993 and grub_at_keyboard_fini(), it's done on module load and
35994 unload.
35995
05b129e0 359962009-06-17 Felix Zielcke <fzielcke@z-51.de>
35997
35998 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
35999 file can't be found.
36000 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
36001
cf24ed9e 360022009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
36003
36004 Fix newline handling
36005
36006 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
dd74360c 36007 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
cf24ed9e 36008 (grub_script_yylex): don't segfault on unterminated script
36009 newline terminates command and variable
36010
74aa8e4b 360112009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
36012
36013 avoid double grub_adjust_range call. Bug reported by David Simner
36014
36015 * kern/disk.c (grub_disk_write): change to raw disk access before
36016 calling disk_read
36017
1bd265f3 360182009-06-17 Colin Watson <cjwatson@ubuntu.com>
36019
36020 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
36021 spaces, for the benefit of help2man.
36022 * util/i386/efi/grub-mkimage.c (usage): Likewise.
36023
a2d08c06 360242009-06-16 Pavel Roskin <proski@gnu.org>
36025
36026 * kern/i386/halt.c: Include grub/machine/init.h.
36027 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
36028
b97bcb19 360292009-06-16 Felix Zielcke <fzielcke@z-51.de>
36030
36031 * util/grub.d/30_os-prober.in: Use ${root} in the generated
36032 drivemap menuentry.
36033
0644f96c 360342009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
36035
36036 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
36037 `echo' command.
36038
3ef17a2e 360392009-06-16 Pavel Roskin <proski@gnu.org>
36040
36041 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
36042 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
36043 save %dx, we only need %dl and we never change it.
36044 * boot/i386/pc/cdboot.S: Don't set the root drive.
36045 * boot/i386/pc/pxeboot.S: Likewise.
36046 * include/grub/i386/pc/boot.h: Remove
36047 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
36048 GRUB_BOOT_MACHINE_DRIVE_CHECK.
36049 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
36050 * kern/i386/pc/init.c (make_install_device): Remove references
36051 to grub_root_drive.
36052 * kern/i386/pc/startup.S: Likewise.
36053 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
36054
693fe637 360552009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
36056
36057 xnu_uuid command
36058
36059 * commands/xnu_uuid.c: new file
36060 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
36061 (xnu_uuid_mod_SOURCES): new variable
36062 (xnu_uuid_mod_CFLAGS): likewise
36063 (xnu_uuid_mod_LDFLAGS): likewise
36064 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
36065 * conf/i386-ieee1275.rmk: likewise
36066 * conf/i386-pc.rmk: likewise
36067 * conf/powerpc-ieee1275.rmk: likewise
36068 * conf/sparc64-ieee1275.rmk: likewise
36069 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
36070
c9da87d0 360712009-06-16 Pavel Roskin <proski@gnu.org>
36072
36073 * configure.ac: Avoid '==' in test command, it's not portable.
36074
9c6f4596 360752009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
36076
36077 Probe command
36078
36079 * commands/probe.c: new file
36080 * conf/common.rmk (pkglib_MODULES): add probe.mod
36081 (probe_mod_SOURCES): new variable
36082 (probe_mod_CFLAGS): likewise
36083 (probe_mod_LDFLAGS): likewise
36084 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
36085 * conf/i386-ieee1275.rmk: likewise
36086 * conf/i386-pc.rmk: likewise
36087 * conf/powerpc-ieee1275.rmk: likewise
36088 * conf/sparc64-ieee1275.rmk: likewise
36089
70b7f9fd 360902009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
36091
36092 Fix handling of string like \"hello\" and "a
36093 b"
36094
36095 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
36096 (grub_script_yylex): fix parsing of quoting, escaping and newline
36097
71c79a6b 360982009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
36099
dd74360c 36100 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
71c79a6b 36101 handling
dd74360c 36102
0644f96c 361032009-06-13 Jun Inoue <jun.lambda@gmail.com>
880fc3c4 36104
36105 * util/grub-mkconfig.in: Fix parsing of --output option.
36106
e40893c3 361072009-06-12 Pavel Roskin <proski@gnu.org>
36108
36109 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
36110 genmk.rb don't need to be generated or installed.
36111
3a1acfe2 361122009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
36113
36114 * commands/i386/pc/drivemap_int13h.S: add more comments
36115
3a4575d4 361162009-06-11 Pavel Roskin <proski@gnu.org>
36117
0658e928 36118 * Makefile.in (uninstall): Uninstall manuals.
36119
ca0388f0 36120 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
36121 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
36122 and update-grub_lib in two places.
36123 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
36124
e3b27c39 36125 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
36126 a compiler warning.
36127
3a4575d4 36128 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
36129 `entry_lo' to fix variable shadowing.
36130
af1f4f55 361312009-06-11 Christian Franke <franke@computer.org>
36132
36133 * kern/misc.c (__enable_execute_stack): Add missing return type
36134 to prevent gcc warning.
36135
5225e649 361362009-06-11 Felix Zielcke <fzielcke@z-51.de>
36137
36138 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
36139
7d83bd47 361402009-06-11 Pavel Roskin <proski@gnu.org>
36141
c1cb63ba 36142 * Makefile.in: Don't rely on any scripts being executable.
36143 Always use $(SHELL) to run shell scripts.
36144
7d83bd47 36145 * configure.ac: Always define ___main if using -nostdlib. This
36146 fixes tests on Cygwin.
36147
948f48e7 361482009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
36149
36150 UDF fix
36151
7d83bd47 36152 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
948f48e7 36153 is in bytes and not in blocks
7d83bd47 36154
8ada9bc1 361552009-06-11 Pavel Roskin <proski@gnu.org>
36156
36157 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
36158 warning.
36159
25ad2323 361602009-06-11 Felix Zielcke <fzielcke@z-51.de>
36161
36162 * util/grub.d/30_os-prober.in: Fix a comment. Source
36163 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
36164 to set the root device. Place drivemap command in the generated
36165 chain entry.
36166
e65acb0c 361672009-06-11 Pavel Roskin <proski@gnu.org>
36168
36169 * configure.ac: Remove host_m32. Issues with 64-bit utilities
36170 have long been resolved.
36171
f285fe2d 361722009-06-11 Colin Watson <cjwatson@ubuntu.com>
36173
bd47b0b5 36174 * util/grub.d/10_linux.in: Capitalise "Linux".
36175
f285fe2d 36176 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
36177
a0c62e4e 361782009-06-11 Pavel Roskin <proski@gnu.org>
36179
b6783cb2 36180 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
36181 fix a gcc warning and ensure that the function won't ever exit.
36182
dde032e8 36183 * kern/i386/ieee1275/init.c: Add missing prototype for
36184 grub_stop_floppy().
36185
22cd079d 36186 * loader/ieee1275/multiboot2.c [__i386__]: Include
36187 grub/cpu/multiboot.h.
36188
a0c62e4e 36189 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
36190 casts to short - they are not portable and cause warnings. Fix
36191 use of uninitialized values in input_buf. Use ARRAY_SIZE.
36192
63963d17 361932009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
36194
36195 Drivemap fixes
36196
36197 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
36198 new function
36199 (grub_get_root_biosnumber_saved): new variable
36200 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
36201 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
775dbc4d 36202 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
63963d17 36203 %dx after the call if necessary
36204 * conf/common.rmk (pkglib_MODULES): remove boot.mod
36205 (boot_mod_SOURCES): remove
36206 (boot_mod_CFLAGS): remove
36207 (boot_mod_LDFLAGS): remove
36208 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
36209 (boot_mod_SOURCES): new variable
36210 (boot_mod_CFLAGS): likewise
36211 (boot_mod_LDFLAGS): likewise
36212 * conf/i386-efi.rmk: likewise
36213 * conf/i386-ieee1275.rmk: likewise
36214 * conf/i386-pc.rmk: likewise
36215 * conf/powerpc-ieee1275.rmk: likewise
36216 * conf/sparc64-ieee1275.rmk: likewise
36217 * conf/x86_64-efi.rmk: likewise
36218 * include/grub/i386/pc/biosnum.h: new file
36219 * lib/i386/pc/biosnum.c: likewise
36220 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
36221 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
36222 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
775dbc4d 36223
33abf7ae 362242009-06-10 Pavel Roskin <proski@gnu.org>
36225
5ac35b35 36226 * io/gzio.c (test_header): Don't reuse one buffer for all data.
36227 Use separate variables. Read only the file size at the end, but
36228 not the checksum that we don't use.
36229
5c5215d5 36230 * kern/file.c (grub_file_read): Use void pointer for the buffer.
36231 Adjust all callers.
36232
27d5fef7 36233 * kern/ieee1275/openfw.c: Remove libc includes.
36234 * kern/ieee1275/cmain.c: Likewise.
36235 * include/grub/ieee1275/ieee1275.h: Likewise.
36236
33abf7ae 36237 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
36238 compiler warnings.
36239
19d50c2b 362402009-06-10 Felix Zielcke <fzielcke@z-51.de>
36241
36242 * Makefile.in: Remove all trailing whitespace.
36243 * conf/i386-pc.rmk: Likewise.
36244 * conf/powerpc-ieee1275.rmk: Likewise.
36245 * conf/sparc64-ieee1275.rmk: Likewise.
36246 * docs/grub.texi: Likewise.
36247 * docs/texinfo.tex: Likewise.
36248 * disk/fs_uuid.c: Likewise.
36249 * disk/lvm.c: Likewise.
36250 * disk/scsi.c: Likewise.
36251 * disk/ata.c: Likewise.
36252 * disk/ieee1275/ofdisk.c: Likewise.
36253 * disk/i386/pc/biosdisk.c: Likewise.
36254 * disk/host.c: Likewise.
36255 * disk/raid.c: Likewise.
36256 * disk/efi/efidisk.c: Likewise.
36257 * disk/usbms.c: Likewise.
36258 * disk/memdisk.c: Likewise.
36259 * disk/loopback.c: Likewise.
36260 * kern/powerpc/dl.c: Likewise.
36261 * kern/device.c: Likewise.
36262 * kern/dl.c: Likewise.
36263 * kern/sparc64/dl.c: Likewise.
36264 * kern/ieee1275/ieee1275.c: Likewise.
36265 * kern/term.c: Likewise.
36266 * kern/fs.c: Likewise.
36267 * kern/i386/dl.c: Likewise.
36268 * kern/i386/pc/startup.S: Likewise.
36269 * kern/i386/pc/init.c: Likewise.
36270 * kern/i386/pc/mmap.c: Likewise.
36271 * kern/i386/pc/lzo1x.S: Likewise.
36272 * kern/i386/ieee1275/init.c: Likewise.
36273 * kern/i386/realmode.S: Likewise.
36274 * kern/i386/tsc.c: Likewise.
36275 * kern/partition.c: Likewise.
36276 * kern/corecmd.c: Likewise.
36277 * kern/file.c: Likewise.
36278 * kern/efi/efi.c: Likewise.
36279 * kern/efi/init.c: Likewise.
36280 * kern/efi/mm.c: Likewise.
36281 * kern/main.c: Likewise.
36282 * kern/err.c: Likewise.
36283 * kern/env.c: Likewise.
36284 * kern/disk.c: Likewise.
36285 * kern/generic/millisleep.c: Likewise.
36286 * kern/generic/rtc_get_time_ms.c: Likewise.
36287 * kern/misc.c: Likewise.
36288 * kern/parser.c: Likewise.
36289 * genmk.rb: Likewise.
36290 * configure.ac: Likewise.
36291 * boot/i386/pc/diskboot.S: Likewise.
36292 * boot/i386/pc/pxeboot.S: Likewise.
36293 * boot/i386/pc/boot.S: Likewise.
36294 * boot/i386/pc/lnxboot.S: Likewise.
36295 * boot/i386/pc/cdboot.S: Likewise.
36296 * parttool/pcpart.c: Likewise.
36297 * video/readers/tga.c: Likewise.
36298 * video/video.c: Likewise.
36299 * video/bitmap.c: Likewise.
36300 * lib/envblk.c: Likewise.
36301 * lib/i386/setjmp.S: Likewise.
36302 * fs/xfs.c: Likewise.
36303 * fs/afs.c: Likewise.
36304 * fs/fat.c: Likewise.
36305 * fs/ntfs.c: Likewise.
36306 * fs/udf.c: Likewise.
36307 * fs/affs.c: Likewise.
36308 * fs/iso9660.c: Likewise.
36309 * fs/hfs.c: Likewise.
36310 * fs/fshelp.c: Likewise.
36311 * fs/ext2.c: Likewise.
36312 * fs/jfs.c: Likewise.
36313 * fs/reiserfs.c: Likewise.
36314 * fs/hfsplus.c: Likewise.
36315 * fs/minix.c: Likewise.
36316 * fs/cpio.c: Likewise.
36317 * fs/sfs.c: Likewise.
36318 * fs/ufs.c: Likewise.
36319 * efiemu/prepare.c: Likewise.
36320 * efiemu/loadcore_common.c: Likewise.
36321 * efiemu/runtime/efiemu.sh: Likewise.
36322 * efiemu/runtime/efiemu.S: Likewise.
36323 * efiemu/runtime/efiemu.c: Likewise.
36324 * efiemu/pnvram.c: Likewise.
36325 * efiemu/main.c: Likewise.
36326 * efiemu/i386/pc/cfgtables.c: Likewise.
36327 * efiemu/i386/loadcore64.c: Likewise.
36328 * efiemu/i386/loadcore32.c: Likewise.
36329 * efiemu/loadcore.c: Likewise.
36330 * efiemu/symbols.c: Likewise.
36331 * efiemu/mm.c: Likewise.
36332 * include/grub/autoefi.h: Likewise.
36333 * include/grub/datetime.h: Likewise.
36334 * include/grub/term.h: Likewise.
36335 * include/grub/hfs.h: Likewise.
36336 * include/grub/lvm.h: Likewise.
36337 * include/grub/i386/tsc.h: Likewise.
36338 * include/grub/i386/linux.h: Likewise.
36339 * include/grub/i386/xnu.h: Likewise.
36340 * include/grub/i386/efiemu.h: Likewise.
36341 * include/grub/i386/pc/biosdisk.h: Likewise.
36342 * include/grub/i386/pc/memory.h: Likewise.
36343 * include/grub/i386/pc/vbe.h: Likewise.
36344 * include/grub/parttool.h: Likewise.
36345 * include/grub/video.h: Likewise.
36346 * include/grub/memory.h: Likewise.
36347 * include/grub/fs.h: Likewise.
36348 * include/grub/partition.h: Likewise.
36349 * include/grub/xnu.h: Likewise.
36350 * include/grub/efi/api.h: Likewise.
36351 * include/grub/efi/pe32.h: Likewise.
36352 * include/grub/efi/memory.h: Likewise.
36353 * include/grub/multiboot.h: Likewise.
36354 * include/grub/usbdesc.h: Likewise.
36355 * include/grub/multiboot2.h: Likewise.
36356 * include/grub/acpi.h: Likewise.
36357 * include/grub/efiemu/efiemu.h: Likewise.
36358 * include/grub/disk.h: Likewise.
36359 * include/grub/ieee1275/ieee1275.h: Likewise.
36360 * include/grub/net.h: Likewise.
36361 * include/grub/machoload.h: Likewise.
36362 * include/grub/macho.h: Likewise.
36363 * include/multiboot.h: Likewise.
36364 * genmoddep.awk: Likewise.
36365 * normal/main.c: Likewise.
36366 * normal/menu_entry.c: Likewise.
36367 * normal/menu_viewer.c: Likewise.
36368 * normal/completion.c: Likewise.
36369 * normal/cmdline.c: Likewise.
36370 * normal/misc.c: Likewise.
36371 * normal/datetime.c: Likewise.
36372 * bus/usb/usbtrans.c: Likewise.
36373 * bus/usb/ohci.c: Likewise.
36374 * bus/usb/uhci.c: Likewise.
36375 * bus/usb/usb.c: Likewise.
36376 * mmap/efi/mmap.c: Likewise.
36377 * mmap/i386/pc/mmap_helper.S: Likewise.
36378 * mmap/i386/pc/mmap.c: Likewise.
36379 * mmap/i386/mmap.c: Likewise.
36380 * mmap/i386/uppermem.c: Likewise.
36381 * mmap/mmap.c: Likewise.
36382 * commands/acpi.c: Likewise.
36383 * commands/echo.c: Likewise.
36384 * commands/blocklist.c: Likewise.
36385 * commands/loadenv.c: Likewise.
36386 * commands/usbtest.c: Likewise.
36387 * commands/boot.c: Likewise.
36388 * commands/parttool.c: Likewise.
36389 * commands/search.c: Likewise.
36390 * commands/cat.c: Likewise.
36391 * commands/i386/pc/play.c: Likewise.
36392 * commands/i386/pc/drivemap.c: Likewise.
36393 * commands/i386/pc/vbeinfo.c: Likewise.
36394 * commands/i386/pc/acpi.c: Likewise.
36395 * commands/i386/pc/vbetest.c: Likewise.
36396 * commands/ls.c: Likewise.
36397 * commands/cmp.c: Likewise.
36398 * commands/test.c: Likewise.
36399 * commands/efi/acpi.c: Likewise.
36400 * commands/gptsync.c: Likewise.
36401 * commands/help.c: Likewise.
36402 * partmap/amiga.c: Likewise.
36403 * partmap/apple.c: Likewise.
36404 * partmap/acorn.c: Likewise.
36405 * partmap/pc.c: Likewise.
36406 * partmap/sun.c: Likewise.
36407 * partmap/gpt.c: Likewise.
36408 * script/sh/lexer.c: Likewise.
36409 * script/sh/function.c: Likewise.
36410 * font/font.c: Likewise.
36411 * font/font_cmd.c: Likewise.
36412 * loader/powerpc/ieee1275/linux.c: Likewise.
36413 * loader/efi/chainloader.c: Likewise.
36414 * loader/multiboot_loader.c: Likewise.
36415 * loader/macho.c: Likewise.
36416 * loader/i386/multiboot.c: Likewise.
36417 * loader/i386/linux.c: Likewise.
36418 * loader/i386/pc/linux.c: Likewise.
36419 * loader/i386/pc/multiboot2.c: Likewise.
36420 * loader/i386/pc/chainloader.c: Likewise.
36421 * loader/i386/pc/xnu.c: Likewise.
36422 * loader/i386/bsd_trampoline.S: Likewise.
36423 * loader/i386/efi/linux.c: Likewise.
36424 * loader/i386/multiboot_elfxx.c: Likewise.
36425 * loader/i386/bsd_helper.S: Likewise.
36426 * loader/i386/bsd.c: Likewise.
36427 * loader/i386/linux_trampoline.S: Likewise.
36428 * loader/i386/xnu_helper.S: Likewise.
36429 * loader/i386/xnu.c: Likewise.
36430 * loader/i386/bsd_pagetable.c: Likewise.
36431 * loader/i386/multiboot_helper.S: Likewise.
36432 * loader/xnu.c: Likewise.
36433 * loader/xnu_resume.c: Likewise.
36434 * io/gzio.c: Likewise.
36435 * term/efi/console.c: Likewise.
36436 * term/terminfo.c: Likewise.
36437 * term/ieee1275/ofconsole.c: Likewise.
36438 * term/i386/pc/serial.c: Likewise.
36439 * term/i386/pc/vesafb.c: Likewise.
36440 * term/i386/pc/vga.c: Likewise.
36441 * term/usb_keyboard.c: Likewise.
36442 * term/gfxterm.c: Likewise.
36443 * aclocal.m4: Likewise.
36444 * util/lvm.c: Likewise.
36445 * util/grub.d/30_os-prober.in: Likewise.
36446 * util/grub.d/10_hurd.in: Likewise.
36447 * util/console.c: Likewise.
36448 * util/grub-macho2img.c: Likewise.
36449 * util/grub-probe.c: Likewise.
36450 * util/hostfs.c: Likewise.
36451 * util/i386/pc/grub-mkimage.c: Likewise.
36452 * util/i386/pc/grub-setup.c: Likewise.
36453 * util/i386/efi/grub-mkimage.c: Likewise.
36454 * util/grub-mkconfig.in: Likewise.
36455 * util/raid.c: Likewise.
36456 * util/resolve.c: Likewise.
36457 * util/grub-mkdevicemap.c: Likewise.
36458 * util/grub-emu.c: Likewise.
36459 * util/getroot.c: Likewise.
36460 * util/hostdisk.c: Likewise.
36461 * util/usb.c: Likewise.
36462 * util/grub-editenv.c: Likewise.
36463 * util/misc.c: Likewise.
36464
d2d49665 364652009-06-10 Felix Zielcke <fzielcke@z-51.de>
36466
36467 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
36468 `genparttoollist.sh'.
36469 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
36470 Add `*.sh' to the list find searches for and change `mdate.sh'
36471 to `mdate-sh'.
36472
fe052e37 364732009-06-10 Pavel Roskin <proski@gnu.org>
36474
2763ac18 36475 * include/grub/multiboot2.h: Provide compatibility defines for
36476 multiboot2.h.
36477 * include/multiboot2.h: Include stdint.h only if needed, using
36478 angle brackets.
36479 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
36480 grub/multiboot2.h.
36481 * loader/ieee1275/multiboot2.c: Likewise.
36482 * loader/multiboot2.c: Likewise.
36483 * loader/multiboot_loader.c: Likewise.
36484
437e6adc 36485 * configure.ac: Use -nostdlib when probing for the target. It
36486 should not be required to have libc for the target.
36487
06a6836c 36488 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
36489 they fail without libc headers for the target.
36490 * include/grub/powerpc/libgcc.h: Use weak attribute for all
36491 exports.
36492 * include/grub/sparc64/libgcc.h: Likewise. Don't use
36493 preprocessor conditionals.
36494
fe052e37 36495 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
36496 build system doesn't need to be aware of the tar.c internals.
36497
afd22553 364982009-06-09 Michel Hermier <michel.hermier@gmail.com>
87b8f28c 36499
afd22553 36500 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
8ec4a6d0 36501
6b787c4f 365022009-06-09 Robert Millan <rmh.grub@aybabtu.com>
36503
36504 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
36505 disk limit to 26 for IDE, Virtio, Xen and SCSI.
36506
365072009-06-09 Felix Zielcke <fzielcke@z-51.de>
36508
36509 * util/i386/pc/grub-install.in: Change the error message if UUIDs
473d1e45 36510 aren't available if ata.mod gets used.
6b787c4f 36511
473d1e45 365122009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
e23721e8 36513
473d1e45 36514 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
e23721e8 36515 initialising controller.
473d1e45 36516 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
e23721e8 36517
255a27d4 365182009-06-08 Felix Zielcke <fzielcke@z-51.de>
36519
36520 * util/i386/pc/grub-install.in: Add a parameter --disk-module
36521 to choose between ata and biosdisk module on i386-pc.
36522
473d1e45 365232009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
69da8877 36524
d55842d8 36525 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
36526 Subclass and Programming Interface fields in terms of the 3 byte
36527 Class Code register.
36528 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
36529
fa5db0b1 36530 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
36531 interface is OHCI. Add grub_dprintf for symmetry with
36532 bus/usb/uhci.c.
36533 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
36534 interface is UHCI. Add interf variable for programming
36535 interface. Print interface with class/subclass.
36536
c0947beb 36537 * bus/usb/ohci.c: Set interf with correct field.
36538
69da8877 36539 * bus/usb/uhci.c: Remove unneeded doubled lines.
36540 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
36541 Remove whitespace inside comment.
36542
9e172e30 365432009-06-08 Robert Millan <rmh.grub@aybabtu.com>
36544
36545 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
36546 as fallback an equivalent option without depth.
36547
de65ee2b 365482009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
36549
36550 Not fail if unable to retrieve C/H/S on LBA disks
36551
473d1e45 36552 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
de65ee2b 36553 if unable to retrieve C/H/S on LBA disks
36554
b57ea2c9 365552009-06-08 Pavel Roskin <proski@gnu.org>
36556
36557 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
36558 about aliasing.
36559
af361263 365602009-06-08 Felix Zielcke <fzielcke@z-51.de>
36561
36562 * Makefile.in (uninstall): Remove all $lib_DATA files.
36563
4c9ec6b3 365642009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
36565
36566 Bugfix: install on partitionless device
36567
36568 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
36569 is a whole disk
36570
e76fc924 365712009-06-08 Felix Zielcke <fzielcke@z-51.de>
36572
36573 * Makefile.in (uninstall): Remove all $include_DATA files.
36574
ba5a0d05 365752009-06-08 Felix Zielcke <fzielcke@z-51.de>
36576
36577 * commands/true.c: New file. Implement the true and false commands.
36578 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
36579 (true_mod_SOURCES): New variable.
36580 (true_mod_CFLAGS): Likewise.
36581 (true_mod_LDFLAGS): Likewise.
36582
c8048e32 365832009-06-05 Colin D Bennett <colin@gibibit.com>
36584
36585 Optimized font character lookup using binary search instead of linear
36586 search. Fonts now are required to have the character index ordered by
36587 code point.
36588
36589 * font/font.c (load_font_index): Verify that fonts have ordered
36590 character indices.
36591 (find_glyph): Use binary search instead of linear search to find a
36592 character in a font.
36593
408305be 365942009-06-05 Michael Scherer <misc@mandriva.org>
36595
36596 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
36597 uses case sensitive btree.
36598 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
36599 only for case insensitive filesystems.
36600
8ee1e0d9 366012009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
36602
36603 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
36604 * conf/common.rmk (search_mod_CFLAGS): likewise
36605
a9966eb1 366062009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36607
473d1e45 36608 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
a9966eb1 36609 compensate a compiler bug
36610
9e7100fb 366112009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36612
473d1e45 36613 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
9e7100fb 36614 instead of '\b'
473d1e45 36615
ede21d71 366162009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36617
36618 Definitions for creating asm symbols with Apple's CC
36619
36620 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
36621 [APPLE_CC] (VARIABLE): likewise
36622
9dbf7653 366232009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36624
36625 Disable lnxboot.img when compiled
36626 with Apple's CC
36627
36628 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
36629 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
36630 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
36631 [! APPLE_CC] (CODE_LENG): skip
36632 [! APPLE_CC] (setup_sects): likewise
36633 [! APPLE_CC]: skip filling
473d1e45 36634
e93cdc3d 366352009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36636
36637 Address in trampolines based on 32-bit registers when compiled
36638 with Apple's CC
36639
473d1e45 36640 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
e93cdc3d 36641 for addresses
36642 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
36643
6c688477 366442009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36645
36646 Avoid aliases when compiling with Apple's CC for PCBIOS machine
36647
36648 * kern/misc.c [APPLE_CC] (memcpy): new function
36649 [APPLE_CC] (memmove): likewise
36650 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
473d1e45 36651 (memcpy): define alias conditionally on !APPLE_CC
6c688477 36652 (memset): likewise
36653 (abort): likewise
36654 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
36655 APPLE_CC are defined
36656 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
36657 (grub_assert_fail): make prototype conditional
36658
e37ffc5c 366592009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36660
36661 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
36662
473d1e45 36663 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
36664 grub-macho2img
e37ffc5c 36665 (CLEANFILES): add grub-macho2img
36666 (grub_macho2img_SOURCES): new variable
36667 * kern/i386/pc/startup.S (bss_start): new variable
36668 (bss_end): likewise
36669 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
36670 * util/grub-macho2img.c: new file
36671
cf00df31 366722009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36673
36674 Use objconv when compiling with Apple's CC
36675
36676 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
36677 (efiemu64.o): likewise
36678 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
36679 when compiling with Apple's CC
36680 (efiemu64_s.o): likewise
36681 * configure.ac: check for objconv when compiling with Apple's CC
36682 * genmk.rb: use objconv for modules when compiled with Apple's CC
473d1e45 36683
d119a20c 366842009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36685
36686 Define segment as well as section when compiling with
36687 Apple's CC
36688
36689 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
36690 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
36691 (efiemu_convert_pointer): likewise
36692 (efiemu_set_virtual_address_map): likewise
36693 (efiemu_convert_pointer): likewise
36694 (efiemu_getcrc32): likewise
36695 (init_crc32_table): likewise
36696 (reflect): likewise
36697 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
36698 (GRUB_MOD_DEP): likewise
473d1e45 36699
c8600122 367002009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36701
36702 Allow a compilation without -mcmodel=large
36703
36704 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
36705 when compiled without -mcmodel=large
473d1e45 36706 (filter_memory_map): remove memory post 4 GiB when compiled
c8600122 36707 without -mcmodel=large
473d1e45 36708 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
c8600122 36709 TARGET_CFLAGS when -mcmodel=large isn't supported
473d1e45 36710
e8df1d4e 367112009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36712
36713 Remove nested functions in efiemu core
36714
36715 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
473d1e45 36716
cc6c3ac1 367172009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36718
36719 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
36720
36721 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
36722 temporary storage
473d1e45 36723 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
36724 using Apple's CC
cc6c3ac1 36725 (grub_cpu_is_tsc_supported): likewise
36726 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
473d1e45 36727
3e325901 367282009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36729
36730 Absolute addressing through constant with Apple's cc
36731
36732 * kern/i386/pc/startup.S: Define necessary constants
36733 and address through it when using ABS with Apple's CC
36734 * boot/i386/pc/diskboot.S: likewise
36735 * boot/i386/pc/boot.S: likewise
36736 * boot/i386/pc/lnxboot.S: likewise
36737 * boot/i386/pc/cdboot.S: likewise
36738 * mmap/i386/pc/mmap_helper.S: likewise
36739 * commands/i386/pc/drivemap_int13h.S: likewise
36740
2b167a72 367412009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36742
36743 Check if compiler is apple cc
36744
36745 * Makefile.in (ASFLAGS): new variable
36746 (TARGET_ASFLAGS): likewise
36747 (TARGET_MODULE_FORMAT): likewise
36748 (TARGET_APPLE_CC): likewise
36749 (OBJCONV): likewise
36750 (TARGET_IMG_CFLAGS): likewise
36751 (TARGET_CPPFLAGS): add includedir
36752 * configure.ac: call grub_apple_cc and grub_apple_target_cc
36753 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
36754 Check for linker script only if compiler isn't Apple's CC
36755 (TARGET_MODULE_FORMAT): set
36756 (TARGET_APPLE_CC): likewise
36757 (TARGET_ASFLAGS): likewise
36758 (ASFLAGS): likewise
36759 Check for objcopy only if compiler isn't Apple's CC
36760 Check for BSS symbol only if compiler isn't Apple's CC
36761 * genmk.rb: adapt nm options if we use Apple's utils
36762 * aclocal.m4 (grub_apple_cc): new test
36763 (grub_apple_target_cc): likewise
473d1e45 36764
fb14123e 367652009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36766
36767 Simplify sed expressions and improve awk
36768
36769 * Makefile.in (install-local): simplify sed expression
36770 * gencmdlist.sh: likewise
36771 * genmoddep.awk: avoid adding module as a dependency of itself
36772
5b889789 367732009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36774
36775 Add missing start symbols
36776
36777 * boot/i386/pc/boot.S: add start
fb14123e 36778 * boot/i386/pc/pxeboot.S: likewise
473d1e45 36779
fd2bf2e3 367802009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36781
36782 Fix wrong assumptions with grub-mkimage on EFI
473d1e45 36783
36784 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
fd2bf2e3 36785 (relocate_addresses): consider both r_addend and value at offset
36786 (make_mods_section): zerofill modinfo and header
36787 (convert_elf): write prefix here
473d1e45 36788
5389763d 367892009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36790
36791 Use .asciz instead of .string
36792
36793 * i386/pc/diskboot.S: use .asciz instead of .string
36794 * i386/pc/boot.S: likewise
36795 * include/grub/dl.h (GRUB_MOD_DEP): likewise
36796 (GRUB_MOD_NAME): likewise
473d1e45 36797
3eb5ed4e 367982009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36799
36800 gfxpayload support
36801
36802 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
36803 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
36804 (grub_video_setup): remove
36805 (grub_video_set_mode): new prototype
36806 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
36807 (vid_mode): remove
36808 (linux_vesafb_res): compile only on PCBIOS
36809 (grub_linux_boot): support gfxpayload
36810 * loader/i386/pc/xnu.c (video_hook): new function
36811 (grub_xnu_set_video): support gfxpayload
36812 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
36813 (DEFAULT_VIDEO_HEIGHT): likewise
36814 (DEFAULT_VIDEO_FLAGS): likewise
36815 (DEFAULT_VIDEO_MODE): new definition
36816 (video_hook): new function
36817 (grub_gfxterm_init): use grub_video_set_mode
473d1e45 36818 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3eb5ed4e 36819 loading xnu
36820 * video/video.c (grub_video_setup): removed
473d1e45 36821 (grub_video_set_mode): new function based on grub_gfxterm_init and
3eb5ed4e 36822 grub_video_setup
36823
4b0e1143 368242009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36825
36826 Avoid calling biosdisk in drivemap
36827
36828 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
36829 (revparse_biosdisk): likewise
36830 (list_mappings): derive name from id directly
36831 (grub_cmd_drivemap): use tryparse_diskstring
473d1e45 36832
fda6cb98 368332009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36834
36835 Script fixes
36836
36837 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
36838 (grub_lexer_param): add tokenonhold
36839 (grub_script_create_cmdline): remove cmdline. All callers updated
36840 (grub_script_function_create): make functionname
36841 grub_script_arg. All callers updated
36842 (grub_script_execute_argument_to_string): new prototype
36843 * kern/parser.c (state_transitions): reorder
36844 (grub_parser_cmdline_state): fix a bug and make more compact
473d1e45 36845 * script/sh/execute.c (grub_script_execute_argument_to_string):
fda6cb98 36846 make global
36847 (grub_script_execute_cmdline): use new format
36848 * script/sh/function.c (grub_script_function_create): make functionname
36849 grub_script_arg. All callers updated
473d1e45 36850 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
fda6cb98 36851 (grub_script_yylex): remove
36852 (grub_script_yylex2): renamed to ...
36853 (grub_script_yylex): ...renamed
36854 parse the expressions like a${b}c
36855 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
36856 (GRUB_PARSER_TOKEN_VAR): remove
36857 (GRUB_PARSER_TOKEN_NAME): likewise
36858 ("if"): declare as typeless
36859 ("while"): likewise
36860 ("function"): likewise
36861 ("else"): likewise
36862 ("then"): likewise
36863 ("fi"): likewise
36864 (text): remove
36865 (argument): likewise
36866 (script): accept empty scripts and make exit on error
36867 (arguments): use GRUB_PARSER_TOKEN_ARG
36868 (function): likewise
36869 (command): move error handling to script
36870 (menuentry): move grub_script_lexer_ref before
473d1e45 36871 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
fda6cb98 36872 argument. All callers updated
36873
f4448a07 368742009-06-04 Robert Millan <rmh.grub@aybabtu.com>
36875
36876 Prevent GRUB from probing floppies during boot.
36877
36878 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
36879 * commands/search.c (options): Add --no-floppy.
36880 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
36881 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
36882 --no-floppy when searching for UUIDs.
36883
2bf5885a 368842009-06-04 Robert Millan <rmh.grub@aybabtu.com>
36885
36886 Simplify the code duplication in commands/search.c.
36887
36888 * commands/search.c (search_label, search_fs_uuid): Merge into ...
36889 (search_fs): ... this. Update all users.
36890
f6fd460a 368912009-06-03 Felix Zielcke <fzielcke@z-51.de>
36892
36893 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
36894
cbb3c83e 368952009-05-28 Pavel Roskin <proski@gnu.org>
36896
57788cfd 36897 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
36898 Remove the original symlink explicitly.
36899
cbb3c83e 36900 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
36901 just one slash. That's how grub_fshelp_find_file() does it.
36902
cd0d5e30 369032009-05-26 Pavel Roskin <proski@gnu.org>
36904
f0f8bbe2 36905 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
36906 to `str'.
36907
cd0d5e30 36908 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
36909 possibly unused.
36910
8c2cab51 369112009-05-25 Christian Franke <franke@computer.org>
36912
36913 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
36914 register.
36915 (grub_atapi_identify): Add wait after drive select.
36916 (grub_ata_identify): Do more strict status register check before
36917 calling grub_atapi_identify (). Suppress error message if status
36918 register is 0x00 after command failure. Add status register
36919 check after PIO read to avoid bogus identify due to stuck DRQ.
36920 Thanks to Pavel Roskin for testing.
36921 (grub_device_initialize): Remove unsafe status register check.
36922 Thanks to 'phcoder' for problem report and patch.
36923 Prevent sign extension in debug message.
36924
230c0ad6 369252009-05-23 Colin D Bennett <colin@gibibit.com>
36926
36927 Cleaned up `include/grub/normal.h'. Grouped prototypes by
36928 definition file, and functions defined in `normal/menu.c' have had
36929 their prototypes moved to `include/grub/menu.h' for consistency.
36930
36931 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
36932 from normal.h.
36933 (grub_menu_get_entry): Likewise.
36934 (grub_menu_get_timeout): Likewise.
36935 (grub_menu_set_timeout): Likewise.
36936 (grub_menu_execute_entry): Likewise.
36937 (grub_menu_execute_with_fallback): Likewise.
36938 (grub_menu_entry_run): Likewise.
36939
36940 * include/grub/normal.h: Re-ordered and grouped function
36941 prototypes by file that the function is defined in.
36942 (grub_menu_execute_callback): Removed; moved to menu.h.
36943 (grub_menu_get_entry): Likewise.
36944 (grub_menu_get_timeout): Likewise.
36945 (grub_menu_set_timeout): Likewise.
36946 (grub_menu_execute_entry): Likewise.
36947 (grub_menu_execute_with_fallback): Likewise.
36948 (grub_menu_entry_run): Likewise.
36949 (grub_menu_addentry): Renamed from this ...
36950 (grub_normal_add_menu_entry): ... to this.
36951
36952 * normal/main.c (grub_menu_addentry): Renamed from this ...
36953 (grub_normal_add_menu_entry): ... to this.
36954
36955 * script/sh/execute.c (grub_script_execute_menuentry): Update
36956 reference to renamed grub_menu_addentry function.
36957
861f03a5 369582009-05-23 Felix Zielcke <fzielcke@z-51.de>
36959
36960 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
36961
96b1619a 369622009-05-22 Pavel Roskin <proski@gnu.org>
36963
bf6a5fb2 36964 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
36965 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
36966 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
36967 compiling for the i386 targets, but not for the utilities.
36968
96b1619a 36969 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
36970 to grub_uint8_t.
36971 (grub_root_drive): Likewise.
36972 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
36973 remove alignment.
36974 (grub_root_drive): Change size to byte.
36975 (grub_start_addr): Remove.
36976 (grub_end_addr): Likewise.
36977 (grub_apm_bios_info): Likewise.
36978
b729776b 369792009-05-21 Felix Zielcke <fzielcke@z-51.de>
36980
36981 * normal/i386: Remove.
36982 * normal/powerpc: Likewise.
36983 * normal/sparc64: Likewise.
36984 * normal/x86_64: Likewise.
36985
0a15ce80 369862009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
36987
36988 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
473d1e45 36989 * loader/i386/linux_trampoline.S: Fix indentation
0a15ce80 36990 * loader/i386/xnu_helper.S: Likewise
d6da58e6 36991
33db9015 369922009-05-18 Colin D Bennett <colin@gibibit.com>
36993
d6da58e6 36994 Display error messages when parsing a Lua statement fails.
36995 Previously, executing a syntactically invalid statement like
36996 ")foo" or "bar;" would silently fail.
33db9015 36997
36998 * script/lua/grub_main.c (handle_lua_error): New function.
d6da58e6 36999 (grub_lua_parse_line): Improved reporting of Lua parser and
37000 execution errors.
33db9015 37001
46422c89 370022009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
37003
37004 Remove -Werror which causes build to fail on some systems
37005
37006 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
37007 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
37008 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
18f547ad 37009
22f53a96 370102009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
37011
37012 trampoline for linux on 64-bit platform
37013
18f547ad 37014 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
37015 loader/i386/efi/linux_trampoline.S
37016 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
473d1e45 37017 declaration
d6da58e6 37018 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
37019 here
22f53a96 37020 * loader/i386/linux_trampoline.S: moved here
d6da58e6 37021 * loader/i386/efi/linux.c (allocate_pages): reserve space for
37022 trampoline
22f53a96 37023 (jumpvector): removed
37024 (grub_linux_trampoline_start): new declaration
37025 (grub_linux_trampoline_end): likewise
37026 (grub_linux_boot): use trampoline when on 64-bit platform
37027 * loader/i386/linux.c: likewise
37028
cb5a0f40 370292009-05-16 Pavel Roskin <proski@gnu.org>
37030
37031 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
37032 const to avoid a warning.
37033 (grub_lua_setenv): Likewise.
37034 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
37035 lmsg to fix a warning.
37036
334f2c28 370372009-05-16 Felix Zielcke <fzielcke@z-51.de>
37038
37039 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
7dd10fce 37040 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
37041 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
37042 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
37043 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
37044 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
37045 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
37046 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
334f2c28 37047
59e5d3ec 370482009-05-16 Felix Zielcke <fzielcke@z-51.de>
37049
37050 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
37051
9d87a1ba 370522009-05-16 Bean <bean123ch@gmail.com>
37053
37054 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
37055 (lua_mod_SOURCES): New variable.
37056 (lua_mod_CFLAGS): Likewise.
37057 (lua_mod_LDFLAGS): Likewise.
37058
37059 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
37060 (setjmp_mod_SOURCES): New variable.
37061 (setjmp_mod_CFLAGS): Likewise.
37062 (setjmp_LDFLAGS): Likewise.
37063
37064 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
37065 (setjmp_mod_SOURCES): New variable.
37066 (setjmp_mod_CFLAGS): Likewise.
37067 (setjmp_LDFLAGS): Likewise.
37068
37069 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
37070 (setjmp_mod_SOURCES): New variable.
37071 (setjmp_mod_CFLAGS): Likewise.
37072 (setjmp_LDFLAGS): Likewise.
37073
37074 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
37075 (setjmp_mod_SOURCES): New variable.
37076 (setjmp_mod_CFLAGS): Likewise.
37077 (setjmp_LDFLAGS): Likewise.
37078
37079 * normal/i386/setjmp.S: Moved from here ...
37080 * lib/i386/setjmp.S: ... Moved here
37081 * normal/x86_64/setjmp.S: Moved from here ...
37082 * lib/x86_64/setjmp.S: ... Moved here
37083 * normal/powerpc/setjmp.S: Moved from here ...
37084 * lib/powerpc/setjmp.S: ... Moved here
37085 * normal/sparc64/setjmp.S: Moved from here ...
37086 * lib/sparc64/setjmp.S: ... Moved here
37087
37088 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
37089 returns_twice in mingw.
37090
37091 * script/lua/grub_lib.c: New file.
37092 * script/lua/grub_lib.h: Likewise.
37093 * script/lua/grub_lua.h: Likewise.
37094 * script/lua/grub_main.c: Likewise.
37095 * script/lua/lapi.c: Likewise.
37096 * script/lua/lapi.h: Likewise.
37097 * script/lua/lauxlib.c: Likewise.
37098 * script/lua/lauxlib.h: Likewise.
37099 * script/lua/lbaselib.c: Likewise.
37100 * script/lua/lcode.c: Likewise.
37101 * script/lua/lcode.h: Likewise.
37102 * script/lua/ldblib.c: Likewise.
37103 * script/lua/ldebug.c: Likewise.
37104 * script/lua/ldebug.h: Likewise.
37105 * script/lua/ldo.c: Likewise.
37106 * script/lua/ldo.h: Likewise.
37107 * script/lua/ldump.c: Likewise.
37108 * script/lua/lfunc.c: Likewise.
37109 * script/lua/lfunc.h: Likewise.
37110 * script/lua/lgc.c: Likewise.
37111 * script/lua/lgc.h: Likewise.
37112 * script/lua/linit.c: Likewise.
37113 * script/lua/liolib.c: Likewise.
37114 * script/lua/llex.c: Likewise.
37115 * script/lua/llex.h: Likewise.
37116 * script/lua/llimits.h: Likewise.
37117 * script/lua/lmathlib.c: Likewise.
37118 * script/lua/lmem.c: Likewise.
37119 * script/lua/lmem.h: Likewise.
37120 * script/lua/loadlib.c: Likewise.
37121 * script/lua/lobject.c: Likewise.
37122 * script/lua/lobject.h: Likewise.
37123 * script/lua/lopcodes.c: Likewise.
37124 * script/lua/lopcodes.h: Likewise.
37125 * script/lua/loslib.c: Likewise.
37126 * script/lua/lparser.c: Likewise.
37127 * script/lua/lparser.h: Likewise.
37128 * script/lua/lstate.c: Likewise.
37129 * script/lua/lstate.h: Likewise.
37130 * script/lua/lstring.c: Likewise.
37131 * script/lua/lstring.h: Likewise.
37132 * script/lua/lstrlib.c: Likewise.
37133 * script/lua/ltable.c: Likewise.
37134 * script/lua/ltable.h: Likewise.
37135 * script/lua/ltablib.c: Likewise.
37136 * script/lua/ltm.c: Likewise.
37137 * script/lua/ltm.h: Likewise.
37138 * script/lua/lua.h: Likewise.
37139 * script/lua/luaconf.h: Likewise.
37140 * script/lua/lualib.h: Likewise.
37141 * script/lua/lundump.c: Likewise.
37142 * script/lua/lundump.h: Likewise.
37143 * script/lua/lvm.c: Likewise.
37144 * script/lua/lvm.h: Likewise.
37145 * script/lua/lzio.c: Likewise.
37146 * script/lua/lzio.h: Likewise.
37147
5e898c9d 371482009-05-16 Bean <bean123ch@gmail.com>
37149
37150 * include/grub/kernel.h (grub_module_header_types): Add type
37151 OBJ_TYPE_CONFIG.
37152
37153 * kern/main.c (grub_load_config): New function.
37154 (grub_main): Call grub_load_config to read boot config.
37155
37156 * grub-mkimage (generate_image): New parameter config_path.
37157 (options): New option --config.
37158 (main): Parse --config option, and pass it to generate_image.
37159
cf353a47 371602009-05-14 Christian Franke <franke@computer.org>
37161
37162 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
37163 This fixes build on Cygwin.
37164
3834887f 371652009-05-14 Pavel Roskin <proski@gnu.org>
37166
37167 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
37168 jump. This saves two bytes, so the typical case of 2 swapped
37169 drives would fit 32 bytes.
37170
8090fc01 371712009-05-13 Pavel Roskin <proski@gnu.org>
37172
ac963883 37173 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
37174 grub_uint32_t to avoid a warning.
37175
8090fc01 37176 * loader/i386/linux.c (allocate_pages): When assigning
37177 real_mode_mem, cast through grub_size_t to fix a warning. The
37178 code already makes sure that the value would fit a pointer.
37179 (grub_linux_setup_video): Cast render_target->data to
37180 grub_size_t to fix a warning.
37181
18f547ad 371822009-05-13 Javier Martín <lordhabbit@gmail.com>
4246b8a9 37183
37184 * commands/i386/pc/drivemap.c: New file - implement drivemap
37185 command.
37186 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
37187 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
37188
6f6a8b28 371892009-05-13 Pavel Roskin <proski@gnu.org>
37190
37191 * util/i386/pc/grub-setup.c (setup): Remove unused variable
37192 embedding_area_exists.
37193
15fbf4c4 371942009-05-13 Robert Millan <rmh.grub@aybabtu.com>
37195
37196 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
37197 it easier to understand / work with.
59978c8a 37198 Improve warning messages for cases where there's no embedding area,
37199 or when it is too small (or core.img too large).
15fbf4c4 37200
238e871f 372012009-05-13 Pavel Roskin <proski@gnu.org>
37202
0ab3a9a4 37203 * loader/i386/pc/multiboot2.c: Add necessary includes for
37204 grub_multiboot2_real_boot().
37205
a2c8c5f8 37206 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
37207 PX record is always little-endian. We only need the lower 2
37208 bytes of the mode.
37209
faec96af 37210 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
37211 facilitate code reuse.
37212 (grub_cpio_mount): Use "struct head", not a char buffer. This
37213 fixes a warning reported by gcc 4.4.
37214
238e871f 37215 * kernel/disk.c (grub_disk_read): Use void pointer for the
37216 buffer.
37217 (grub_disk_write): Use const void pointer for the buffer.
37218 Adjust all callers. Remove unnecessary casts.
37219
901d2f0c 372202009-05-10 Robert Millan <rmh.grub@aybabtu.com>
37221
37222 * util/i386/pc/grub-install.in: Update copyright year.
37223
18f547ad 372242009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2eac4c16 37225
37226 gptsync
37227
37228 * commands/gptsync.c: new file
37229 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
37230 (gptsync_mod_SOURCES): new variable
37231 (gptsync_mod_CFLAGS): likewise
37232 (gptsync_mod_LDFLAGS): likewise
18f547ad 37233 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
2eac4c16 37234 new definition
37235 (GRUB_PC_PARTITION_TYPE_HFS): likewise
37236 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
37237 * conf/i386-ieee1275.rmk: likewise
37238 * conf/i386-pc.rmk: likewise
37239 * conf/powerpc-ieee1275.rmk: likewise
37240
b4ba690a 372412009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
37242
37243 Fixed grub-emu
37244
37245 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
37246 (grub_dl_ref): likewise
37247
317e1a44 372482009-05-08 Robert Millan <rmh.grub@aybabtu.com>
37249
37250 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
37251 split in two functions (one for msdos and one for gpt).
37252
041b8094 372532009-05-08 Pavel Roskin <proski@gnu.org>
37254
752473c2 37255 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
37256 not modified.
37257
041b8094 37258 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
37259 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
37260 Initialize them with -1. Add sanity check for bad1. Eliminate
37261 nerr variable.
37262
172800ce 372632009-05-08 David S. Miller <davem@davemloft.net>
37264
37265 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
37266
29aa5e81 372672009-05-06 Robert Millan <rmh.grub@aybabtu.com>
37268
37269 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
473d1e45 37270 existence.
29aa5e81 37271
96613b62 372722009-05-05 Felix Zielcke <fzielcke@z-51.de>
37273
37274 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
1905c57b 37275 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
96613b62 37276
eef73c8a 372772009-05-05 David S. Miller <davem@davemloft.net>
37278
37279 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
37280
119494b5 372812009-05-05 Pavel Roskin <proski@gnu.org>
37282
37283 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
37284 of grub_dl_ref() and grub_dl_unref().
37285 * commands/parttool.c: Remove preprocessor conditionals around
37286 grub_dl_ref() and grub_dl_unref().
37287 * fs/affs.c: Likewise.
37288 * fs/afs.c: Likewise.
37289 * fs/cpio.c: Likewise.
37290 * fs/ext2.c: Likewise.
37291 * fs/fat.c: Likewise.
37292 * fs/hfs.c: Likewise.
37293 * fs/hfsplus.c: Likewise.
37294 * fs/iso9660.c: Likewise.
37295 * fs/jfs.c: Likewise.
37296 * fs/minix.c: Likewise.
37297 * fs/ntfs.c: Likewise.
37298 * fs/reiserfs.c: Likewise.
37299 * fs/sfs.c: Likewise.
37300 * fs/udf.c: Likewise.
37301 * fs/ufs.c: Likewise.
37302 * fs/xfs.c: Likewise.
37303 * include/grub/dl.h: Likewise.
37304 * loader/xnu.c: Likewise.
37305
de5fd76e 373062009-05-04 Pavel Roskin <proski@gnu.org>
37307
37308 * commands/acpi.c: Remove unused variable my_mod.
37309 * partmap/amiga.c: Likewise.
37310 * partmap/apple.c: Likewise.
37311 * partmap/gpt.c: Likewise.
37312 * partmap/pc.c: Likewise.
37313 * partmap/sun.c: Likewise.
37314 * term/gfxterm.c: Likewise.
37315 * term/i386/pc/vesafb.c: Likewise.
37316 * term/i386/pc/vga.c: Likewise.
37317
983598ad 373182009-05-04 David S. Miller <davem@davemloft.net>
37319
37320 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
37321 pointer args to grub_ieee1275_get_property().
37322
8aadec43 37323 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
37324
9554b15e 37325 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
37326 devices, and do not traverse down under controller nodes.
37327
67e23c90 37328 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
37329 (grub_ofdisk_open): Use it to un-escape "," characters.
37330 * kern/disk.c (find_part_sep): New.
37331 (grub_disk_open): Use it to find the first non-escaped ','
37332 character in the disk name.
37333 * util/ieee1275/devicemap.c (escape_of_path): New.
37334 (grub_util_emit_devicemap_entry): Use it.
37335 * util/sparc64/ieee1275/grub-install.in: Update script to
37336 strip partition specifiers properly by not triggering on
37337 '\' escaped ',' characters.
37338
74bfdd2f 373392009-05-04 Robert Millan <rmh.grub@aybabtu.com>
37340
37341 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
37342 to 0x300.
37343 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
37344 resolutions.
37345 (linux_vesafb_modes): Add a lot of additional modes to the list (based
37346 on documentation from Wikipedia).
37347
4241d2b1 373482009-05-04 Pavel Roskin <proski@gnu.org>
37349
37350 * disk/ata.c: Spelling fixes.
37351 * disk/raid.c: Likewise.
37352 * disk/usbms.c: Likewise.
37353 * disk/dmraid_nvidia.c: Likewise.
37354 * kern/ieee1275/openfw.c: Likewise.
37355 * kern/ieee1275/init.c: Likewise.
37356 * kern/ieee1275/cmain.c: Likewise.
37357 * boot/i386/pc/cdboot.S: Likewise.
37358 * video/readers/png.c: Likewise.
37359 * video/i386/pc/vbe.c: Likewise.
37360 * fs/udf.c: Likewise.
37361 * fs/hfs.c: Likewise.
37362 * fs/reiserfs.c: Likewise.
37363 * efiemu/runtime/efiemu.c: Likewise.
37364 * efiemu/main.c: Likewise.
37365 * efiemu/mm.c: Likewise.
37366 * include/grub/elf.h: Likewise.
37367 * include/grub/xnu.h: Likewise.
37368 * include/grub/usbdesc.h: Likewise.
37369 * include/grub/usb.h: Likewise.
37370 * include/grub/script_sh.h: Likewise.
37371 * include/grub/lib/LzmaEnc.h: Likewise.
37372 * include/grub/efiemu/efiemu.h: Likewise.
37373 * include/grub/command.h: Likewise.
37374 * normal/menu.c: Likewise.
37375 * normal/main.c: Likewise.
37376 * normal/datetime.c: Likewise.
37377 * bus/usb/uhci.c: Likewise.
37378 * mmap/i386/uppermem.c: Likewise.
37379 * mmap/mmap.c: Likewise.
37380 * commands/acpi.c: Likewise.
37381 * commands/test.c: Likewise.
37382 * partmap/apple.c: Likewise.
37383 * font/font.c: Likewise.
37384 * loader/sparc64/ieee1275/linux.c: Likewise.
37385 * loader/macho.c: Likewise.
37386 * loader/i386/bsd_trampoline.S: Likewise.
37387 * loader/i386/bsd.c: Likewise.
37388 * loader/xnu.c: Likewise.
37389 * term/i386/pc/vesafb.c: Likewise.
37390 * term/usb_keyboard.c: Likewise.
37391 * util/resolve.c: Likewise.
37392 * util/getroot.c: Likewise.
37393
0cfc0083 373942009-05-04 Felix Zielcke <fzielcke@z-51.de>
37395
37396 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
37397
7c1d00cd 373982009-05-04 Robert Millan <rmh.grub@aybabtu.com>
37399
37400 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
37401 build error.
37402
b01f0548 374032009-05-04 Robert Millan <rmh.grub@aybabtu.com>
37404
37405 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
37406 parameter only available on BIOS.
37407
ecc3eb22 374082009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
37409
37410 Removed wrong semicolon in declaration
37411
37412 * grub/misc.h (grub_dprintf): remove semicolon
37413
112972a9 374142009-05-04 Robert Millan <rmh.grub@aybabtu.com>
37415
37416 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
37417 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
37418 is done by grub_cmd_linux() now).
37419 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
37420 restore video to text mode.
37421 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
37422 indicates lack of "vga=" parameter. "vga=0" is mapped to
37423 `GRUB_LINUX_VID_MODE_NORMAL'.
37424
afd5c115 374252009-05-04 Felix Zielcke <fzielcke@z-51.de>
37426
37427 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
37428 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
37429 and `normal/script.c'. Add `kern/rescue_reader.c',
18f547ad 37430 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
afd5c115 37431 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
37432 `grub_script.tab.c'.
37433
37434 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37435 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
37436 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37437 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
37438 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37439
faa517ce 37440 * Makefile.in: Remove duplicated 2008 in Copyright line.
37441
ae0c0bdc 374422009-05-04 Robert Millan <rmh.grub@aybabtu.com>
37443
473d1e45 37444 * util/misc.c (grub_util_warn): New function. Emits a warning
ae0c0bdc 37445 unconditionally.
37446 * include/grub/util/misc.h (grub_util_warn): New declaration.
37447
37448 * util/i386/pc/grub-install.in: Understand --force and pass it down
37449 to grub-setup.
37450
37451 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
37452 down to setup().
37453 (setup): Improve error messages and add warnings when requested to
37454 install in odd layouts. Refuse to install using blocklists unless
37455 --force was set.
37456
18f547ad 374572009-05-04 martin f. krafft <madduck@madduck.net>
c149b500 37458
37459 * disk/raid.c (grub_raid_scan_device): Improve debug message.
37460
6d260daa 374612009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
37462
37463 Updated copyright year
37464
37465 * fs/hfsplus.c: updated copyright year
18f547ad 37466
69f853f8 374672009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
37468
37469 HFS+ UUID
37470
18f547ad 37471 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
69f853f8 37472 in the space previously used by unused3
37473 (grub_hfsplus_uuid): new function
37474 (grub_hfsplus_fs): added uuid field
37475
4c402e73 374762009-05-03 Pavel Roskin <proski@gnu.org>
37477
37478 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
37479 suppress warnings. It's no longer needed.
37480 * disk/host.c: Likewise.
37481 * disk/ata_pthru.c: Likewise.
37482 * disk/loopback.c: Likewise.
37483 * hook/datehook.c: Likewise.
37484 * parttool/pcpart.c: Likewise.
37485 * fs/i386/pc/pxe.c: Likewise.
37486 * fs/ntfscomp.c: Likewise.
37487 * efiemu/main.c: Likewise.
37488 * mmap/mmap.c: Likewise.
37489 * commands/crc.c: Likewise.
37490 * commands/hexdump.c: Likewise.
37491 * commands/hdparm.c: Likewise.
37492 * commands/acpi.c: Likewise.
37493 * commands/echo.c: Likewise.
37494 * commands/minicmd.c: Likewise.
37495 * commands/blocklist.c: Likewise.
37496 * commands/memrw.c: Likewise.
37497 * commands/loadenv.c: Likewise.
37498 * commands/usbtest.c: Likewise.
37499 * commands/lsmmap.c: Likewise.
37500 * commands/boot.c: Likewise.
37501 * commands/parttool.c: Likewise.
37502 * commands/configfile.c: Likewise.
37503 * commands/search.c: Likewise.
37504 * commands/ieee1275/suspend.c: Likewise.
37505 * commands/cat.c: Likewise.
37506 * commands/i386/pc/pxecmd.c: Likewise.
37507 * commands/i386/pc/play.c: Likewise.
37508 * commands/i386/pc/halt.c: Likewise.
37509 * commands/i386/pc/vbeinfo.c: Likewise.
37510 * commands/i386/pc/vbetest.c: Likewise.
37511 * commands/lspci.c: Likewise.
37512 * commands/date.c: Likewise.
37513 * commands/handler.c: Likewise.
37514 * commands/ls.c: Likewise.
37515 * commands/test.c: Likewise.
37516 * commands/cmp.c: Likewise.
37517 * commands/efi/loadbios.c: Likewise.
37518 * commands/efi/fixvideo.c: Likewise.
37519 * commands/halt.c: Likewise.
37520 * commands/help.c: Likewise.
37521 * commands/reboot.c: Likewise.
37522 * hello/hello.c: Likewise.
37523 * script/sh/main.c: Likewise.
37524 * loader/xnu.c: Likewise.
37525 * term/terminfo.c: Likewise.
37526 * term/i386/pc/serial.c: Likewise.
37527 * term/usb_keyboard.c: Likewise.
37528
515b5079 375292009-05-03 David S. Miller <davem@davemloft.net>
37530
37531 * normal/menu.c: Include grub/parser.h
37532
dfc31a22 375332009-05-03 Pavel Roskin <proski@gnu.org>
37534
2fee74f1 37535 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
37536 not char*.
37537 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
37538 Suggested by Javier Martín <lordhabbit@gmail.com>
37539
dfc31a22 37540 * util/i386/pc/grub-mkrescue.in: Allow for the case when
37541 efiemu??.o doesn't exist.
37542 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
37543 copying.
37544
18f547ad 375452009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
cef17233 37546
37547 FreeBSD 64-bit support
37548
18f547ad 37549 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
cef17233 37550 and loader/i386/bsd_trampoline.S
37551 (bsd_mod_ASFLAGS): new variable
37552 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
37553 (FREEBSD_MODTYPE_KERNEL64): likewise
37554 (grub_bsd64_trampoline_start): likewise
37555 (grub_bsd64_trampoline_end): likewise
37556 (grub_bsd64_trampoline_selfjump): likewise
37557 (grub_bsd64_trampoline_gdt): likewise
37558 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
37559 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
37560 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
37561 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
18f547ad 37562 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
cef17233 37563 of "attrib" member
37564 * loader/i386/bsd_pagetable.c: new file
37565 * loader/i386/bsd_trampoline.S: likewise
37566 * loader/i386/bsd.c (ALIGN_QWORD): new macro
37567 (ALIGN_VAR): likewise
37568 (entry_hi): new variable
37569 (kern_end_mdofs): likewise
37570 (is_64bit): likewise
37571 (grub_freebsd_add_meta): use ALIGN_VAR
37572 (grub_e820_mmap): new declaration
37573 (grub_freebsd_add_mmap): new function
37574 (grub_freebsd_add_meta_module): support 64 bit kernels
37575 (grub_freebsd_list_modules): use ALIGN_VAR
37576 (gdt_descriptor): new declaration
37577 (grub_freebsd_boot): support 64 bit kernels
37578 (grub_bsd_elf64_hook): new function
37579 (grub_bsd_load_elf): support elf64
37580
038c5720 375812009-05-03 Bean <bean123ch@gmail.com>
37582
37583 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
37584 after we get the result of if statement.
37585
fc45fb58 375862009-05-03 Bean <bean123ch@gmail.com>
37587
37588 * Makefile.in (enable_efiemu): New variable.
37589
37590 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
37591 set.
37592 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
37593 path.
37594 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
37595 path, add -mno-red-zone option.
37596 (efiemu64_s.o): Likewise.
37597 (efiemu64.o): Use macro $^ for source file.
37598
37599 * configure.ac (--enable-efiemu): New option.
37600
bbee0f2b 376012009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
37602
37603 xnu support
37604
37605 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
37606 (pkglib_MODULES): add xnu.mod
37607 (xnu_mod_SOURCES): new variable
37608 (xnu_mod_CFLAGS): likewise
37609 (xnu_mod_LDFLAGS): likewise
37610 (xnu_mod_ASFLAGS): likewise
37611 * conf/i386-pc.rmk: likewise
37612 * conf/x86_64-efi.rmk: likewise
7dd4a573 37613 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
bbee0f2b 37614 new declaration
37615 * include/grub/i386/macho.h: new file
37616 * include/grub/i386/xnu.h: likewise
37617 * include/grub/macho.h: likewise
37618 * include/grub/machoload.h: likewise
37619 * include/grub/x86_64/macho.h: likewise
37620 * include/grub/x86_64/xnu.h: likewise
37621 * include/grub/xnu.h: likewise
37622 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
37623 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
37624 * loader/i386/efi/xnu.c: new file
37625 * loader/i386/pc/xnu.c: likewise
37626 * loader/i386/xnu.c: likewise
37627 * loader/i386/xnu_helper.S: likewise
37628 * loader/macho.c: likewise
37629 * loader/xnu.c: likewise
37630 * loader/xnu_resume.c: likewise
37631 * util/grub-dumpdevtree: likewise
37632 * include/grub/i386/pit.h: include grub/err.h
37633 (grub_pit_wait): export
37634 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
7dd4a573 37635
5caf964d 376362009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
37637
37638 Efiemu
7dd4a573 37639
5caf964d 37640 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
7dd4a573 37641 _linux_efi, linux_efi.
37642 new files in grub-emu
5caf964d 37643 new targets efiemu32.o and efiemu64.o
37644 * loader/linux_normal_efiemu.c: likewise
37645 * loader/i386/efi/linux.c: added preliminary efiemu support
7dd4a573 37646 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
5caf964d 37647 files to copy
37648 * include/grub/autoefi.h: new file
7dd4a573 37649 * include/grub/i386/efiemu.h: likewise
5caf964d 37650 * include/grub/i386/pc/efiemu.h: likewise
37651 * include/grub/efi/api.h: add LL suffix when necessary
37652 new definitions relating to tables
37653 * include/grub/efiemu/efiemu.h: new file
37654 * include/grub/efiemu/runtime.h: likewise
37655 * efiemu/prepare.c: likewise
37656 * efiemu/loadcore_common.c: likewise
37657 * efiemu/loadcore64.c: likewise
37658 * efiemu/runtime/efiemu.sh: likewise
37659 * efiemu/runtime/efiemu.S: likewise
37660 * efiemu/runtime/efiemu.c: likewise
37661 * efiemu/runtime/config.h: likewise
37662 * efiemu/prepare32.c: likewise
37663 * efiemu/main.c: likewise
37664 * efiemu/modules/pnvram.c: likewise
37665 * efiemu/modules/i386: likewise
37666 * efiemu/modules/i386/pc: likewise
37667 * efiemu/modules/acpi.c: likewise
37668 * efiemu/i386/pc/cfgtables.c: likewise
37669 * efiemu/i386/loadcore64.c: likewise
37670 * efiemu/i386/loadcore32.c: likewise
37671 * efiemu/prepare64.c: likewise
37672 * efiemu/loadcore.c: likewise
37673 * efiemu/symbols.c: likewise
37674 * efiemu/mm.c: likewise
37675 * efiemu/loadcore32.c: likewise
7dd4a573 37676
376772009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
f8efe3ad 37678
37679 ACPI spoofing
37680
37681 * commands/acpi.c: new file
37682 * commands/i386/pc/acpi.c: likewise
37683 * commands/efi/acpi.c: likewise
37684 * include/grub/acpi.h: likewise
37685 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
37686 (acpi_mod_SOURCES): new variable
37687 (acpi_mod_CFLAGS): likewise
37688 (acpi_mod_LDFLAGS): likewise
37689 * conf/i386-efi.rmk: likewise
37690 * conf/x86_64-efi.rmk: likewise
37691
7dd4a573 376922009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
28a85665 37693
37694 Missing part from mmap patch
37695
37696 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
37697 (grub_mmap_unregister)
37698 (grub_mmap_free_and_unregister): use grub_mmap_register
37699
7dd4a573 377002009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
09d842b9 37701
37702 Mmap services
37703
37704 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
37705 * loader/i386/linux.c (find_mmap_size): likewise
37706 (allocate_pages): likewise
37707 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
37708 (grub_fill_multiboot_mmap): likewise
37709 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
37710 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
37711 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
37712 (OPENBSD_MMAP_RESERVED): likewise
37713 * include/grub/i386/pc/memory.h: include grub/memory.h
37714 (grub_lower_mem): removed
37715 (grub_upper_mem): likewise
37716 (GRUB_MACHINE_MEMORY_ACPI): new definition
37717 (GRUB_MACHINE_MEMORY_NVS): likewise
37718 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
37719 (GRUB_MACHINE_MEMORY_HOLE): likewise
37720 (grub_machine_mmap_register): likewise
37721 (grub_machine_mmap_unregister): likewise
37722 (grub_machine_get_upper): likewise
37723 (grub_machine_get_lower): likewise
37724 (grub_machine_get_post64): likewise
37725 * include/grub/i386/efi/memory.h: new file
37726 * include/grub/x86_64/efi/memory.h: likewise
37727 * include/grub/efi/memory.h: likewise
37728 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
37729 (mmap_mod_SOURCES): new variable
37730 (mmap_mod_LDFLAGS): likewise
37731 (mmap_mod_ASFLAGS): likewise
37732 * conf/i386-coreboot.rmk: likewise
37733 * conf/i386-ieee1275.rmk: likewise
37734 * conf/i386-efi.rmk: likewise
37735 * conf/x86_64-efi.rmk: likewise
37736 * include/grub/types.h (UINT_TO_PTR): new macro
37737 (PTR_TO_UINT32): likewise
37738 (PTR_TO_UINT64): likewise
37739 * include/grub/memory.h: new file
37740 * mmap/i386/pc/mmap.c: likewise
37741 * mmap/i386/pc/mmap_helper.S: likewise
37742 * mmap/i386/uppermem.c: likewise
37743 * mmap/mmap.c: likewise
37744 * mmap/efi/mmap.c: likewise
7dd4a573 37745 * kern/i386/coreboot/init.c (grub_machine_init): don't use
09d842b9 37746 grub_upper_mem
37747 * kern/i386/pc/init.c (grub_lower_mem): removed variable
37748 (grub_upper_mem): likewise
37749 (grub_machine_init): don't use grub_upper_mem,
37750 make grub_lower_mem local
37751 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
37752 grub_mmap_iterate and grub_mmap_get_upper
37753 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
37754
d558e6b5 377552009-05-02 Bean <bean123ch@gmail.com>
37756
37757 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
37758 script/sh/parser.y.
37759 (pkglib_MODULES): Add normal.mod and sh.mod.
37760 (normal_SOURCES): New variable.
37761 (normal_mod_CFLAGS): Likewise.
37762 (normal_mod_LDFLAGS): Likewise.
37763 (sh_mod_SOURCES): Likewise.
37764 (sh_mod_CFLAGS): Likewise.
37765 (sh_mod_LDFLAGS): Likewise.
37766
37767 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
37768 script/sh/lexer.c_DEPENDENCIES.
37769 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
37770 kern/rescue_reader.c and kern/rescue_parser.c.
37771 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
37772 (grub_emu_SOURCES): Change source files.
37773 (pkglib_MODULES): Remove normal.mod.
37774 (normal_SOURCES): Removed.
37775 (normal_mod_CFLAGS): Likewise.
37776 (normal_mod_LDFLAGS): Likewise.
37777 * conf/i386-coreboot.rmk: Likewise.
37778 * conf/i386-efi.rmk: Likewise.
37779 * conf/i386-ieee1276.rmk: Likewise.
37780 * conf/powerpc-ieee1275.rmk: Likewise.
37781 * conf/sparc64-ieee1275.rmk: Likewise.
37782 * conf/x86_64-efi.rmk: Likewise.
37783
37784 * include/grub/command.h (grub_command_execute): New inline function.
37785
37786 * include/grub/menu.h (grub_menu_entry): Removed commands field.
37787
37788 * include/grub/normal.h: Remove <grub/setjmp.h>.
37789 (grub_fs_module_list): Moved to normal/autofs.c.
37790 (grub_exit_env): Removed.
37791 (grub_command_execute): Likewise.
37792 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
37793 parameter script.
37794 (read_command_list): New function declaration.
37795 (read_fs_list): Likewise.
37796
37797 * include/parser.h: Include <grub/reader.h>.
37798 (grub_parser_split_cmdline): Change type of getline parameter.
37799 (grub_parser): New structure.
37800 (grub_parser_class): New variable.
37801 (grub_parser_execute): New function declaration.
37802 (grub_register_rescue_parser): Likewise.
37803 (grub_parser_register): New inline function.
37804 (grub_parser_unregister): Likewise.
37805 (grub_parser_get_current): Likewise.
37806 (grub_parser_set_current): Likewise.
37807
37808 * include/grub/reader.h: New file.
37809 * kern/reader.c: Likewise.
37810 * kern/rescue_parser.c: Likewise.
37811 * kern/rescue_reader.c: Likewise.
37812 * normal/autofs.c: Likewise.
37813 * normal/dyncmd.c: Likewise.
37814
37815 * include/grub/rescue.h: Removed.
37816 * normal/command.h: Likewise.
37817
37818 * include/grub/script.h: Moved to ...
37819 * include/grub/script_sh.h: ... Moved here.
37820 * normal/execute.c: Moved to ...
37821 * script/sh/execute.c: ... Moved here.
37822 * normal/function.c: Moved to ...
37823 * script/sh/function.c: ... Moved here.
37824 * normal/lexer.c: Moved to ...
37825 * script/sh/lexer.c: ... Moved here.
37826 * normal/parser.y: Moved to ...
37827 * script/sh/parser.y: ... Moved here.
37828 * normal/script.c: Moved to ...
37829 * script/sh/script.c: ... Moved here.
37830
37831 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
37832 <grub/reader.h>.
37833 (grub_exit_env): Removed.
37834 (fs_module_list): Moved to normal/autofs.c.
37835 (grub_file_getline): Don't handle comment here.
37836 (free_menu): Skip removed field entry->commands.
37837 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
37838 script parameter.
37839 (read_config_file): Removed nested parameter, change getline function.
37840 (grub_enter_normal_mode): Removed.
37841 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
37842 (read_command_list): Likewise.
37843 (autoload_fs_module): Moved to normal/autofs.c.
37844 (read_fs_list): Likewise.
37845 (reader_nested): New variable.
37846 (grub_normal_execute): Run parser.sh to switch to sh parser.
37847 (grub_cmd_rescue): Removed.
37848 (cmd_normal): Removed.
37849 (grub_cmd_normal): Unregister itself at the beginning. Don't register
37850 rescue command.
37851 (grub_cmdline_run): New function.
37852 (grub_normal_reader_init): Likewise.
37853 (grub_normal_read_line): Likewise.
37854 (grub_env_write_pager): Likewise.
37855 (cmdline): New variable.
37856 (grub_normal_reader): Likewise.
37857 (GRUB_MOD_INIT): Register normal reader and set as current, register
37858 pager hook, register normal command with grub_register_command_prio,
37859 so that it won't show up in command.lst.
37860 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
37861 grub_fs_autoload_hook.
37862
37863 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
37864 (grub_menu_execute_entry): Replace grub_script_execute with
37865 grub_parser_execute, change parameter to grub_command_execute.
37866
37867 * normal/menu_text.c: Remove <grub/script.h>.
37868
37869 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
37870 and <grub/parser.h>.
37871 (run): Change editor_getline to use new parser interface. Change
37872 parameter to grub_command_execute.
37873
37874 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
37875 <grub/reader.h> and <grub/parser.h>.
37876 (grub_load_normal_mode): Execute normal command.
37877 (grub_main): Call grub_register_core_commands,
37878 grub_register_rescue_parser and grub_register_rescue_reader, use
37879 grub_reader_loop to enter input loop.
37880
7dd4a573 37881 * kern/parser.c (grub_parser_split_cmdline): Change type of
37882 getline parameter.
d558e6b5 37883 (grub_parser_class): New variable.
37884 (grub_parser_execute): New function.
37885
37886 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
37887 * loader/multiboot2.c: Likewise.
37888 * loader/sparc64/ieee1275/linux.c: Likewise.
37889
37890 * util/grub-emu.c (read_command_list): New dummy function.
37891
18db813d 378922009-05-02 Robert Millan <rmh.grub@aybabtu.com>
37893
37894 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
37895 count to 16 for CCISS and IDA.
37896
6c67de15 378972009-05-02 Robert Millan <rmh.grub@aybabtu.com>
37898
37899 * normal/menu_text.c (grub_wait_after_message): Print a newline
37900 after waiting for user input.
37901
37902 * loader/i386/linux.c: Include `<grub/normal.h>'.
37903 (grub_cmd_linux): Improve the error message about `ask' mode, by
37904 waiting for user input so it's not missed (we can do this, since
37905 user requested interaction).
37906
d9dc87b0 379072009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
37908
37909 Added missing lst to grub-mkrescue
37910
37911 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
37912 and ${input_dir}/parttool.lst
37913
ac8a2baa 379142009-04-30 David S. Miller <davem@davemloft.net>
37915
ad22a610 37916 * util/hostdisk.c (device_is_wholedisk): New function.
37917 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
37918 zero only if device_is_wholedisk() returns true.
37919
6966215d 37920 * util/hostdisk.c (convert_system_partition_to_system_disk):
37921 Handle virtual disk devices named /dev/vdiskX as found on sparc
37922 and powerpc.
37923
ac8a2baa 37924 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
37925 lettered partition specifier is found, convert to numbered.
37926
979b4fb4 379272009-04-29 David S. Miller <davem@davemloft.net>
37928
e2bf39b2 37929 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
37930 * include/grub/sparc64/ieee1275/memory.h: Likewise.
37931
3c64e104 37932 * normal/command.c: Add missing newline at end of file.
37933
979b4fb4 37934 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
37935 warnings.
37936 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
37937 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
37938 grub_ofdisk_read): Likewise, and deal similarly with the fact that
37939 ihandles have a 32-bit type but need to be stored in a "void *".
37940
136d9f82 379412009-04-28 Pavel Roskin <proski@gnu.org>
37942
9459c306 37943 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
37944 not disk. Adjust all dependencies.
2e08a26a 37945 (grub_fs_uuid_close): Use grub_device_close(), not
9459c306 37946 grub_disk_close().
37947
136d9f82 37948 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
37949 parent's partition, don't copy it by reference, as it gets freed
37950 on close.
37951
7dd4a573 379522009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
75a807cf 37953
37954 Preboot hooks support
37955
37956 * commands/boot.c (struct grub_preboot_t): new declaration
37957 (preboots_head): new variable
37958 (preboots_tail): likewise
37959 (grub_loader_register_preboot_hook): new function
37960 (grub_loader_unregister_preboot_hook): likewise
37961 (grub_loader_set): launch preboot hooks
37962 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
37963 (grub_loader_register_preboot_hook): new declaration
37964 (grub_loader_unregister_preboot_hook): likewise
37965
5af922b5 379662009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
37967
37968 Warning fix
37969
7dd4a573 37970 * disk/scsi.c (grub_scsi_open): added missing cast when
5af922b5 37971 calling grub_dprintf
37972
a5562c30 379732009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
37974
37975 Bug and warning fixes
37976
7dd4a573 37977 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
a5562c30 37978 declaration
37979 * commands/test.c (test_parse): fixed bug with file tests and corrected
37980 declaration of find_file
37981
4006f85c 379822009-04-26 Pavel Roskin <proski@gnu.org>
37983
37984 * Makefile.in: Don't install empty manual pages if help2man is
37985 missing. Use help2man option for output, not shell redirection.
37986
5c77c3de 379872009-04-26 David S. Miller <davem@davemloft.net>
37988
37989 * util/grub-mkdevicemap.c (make_device_map): Add missing
37990 NESTED_FUNC_ATTR to process_device().
37991
033b10a8 379922009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
37993
37994 Test command
37995
37996 * commands/test.c: rewritten to use bash-like test
37997
e4343593 379982009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
37999
38000 Parttool autoloading and improvements
38001
7dd4a573 38002 * Makefile.in (pkglib_DATA): add parttool.lst
e4343593 38003 (parttool.lst): new target
38004 * genmk.rb: generate parttool-*
38005 (CLEANFILES): add #{parttool}
38006 (PARTTOOLFILES): new variable
38007 * genparttoollist.sh: new file
7dd4a573 38008 * parttool/pcpart.c (grub_pcpart_boot): more feedback
e4343593 38009 (grub_pcpart_type): likewise
38010 * commands/parttool.c (helpmsg): new variable
38011 (grub_cmd_parttool): output help if not enough arguments are supplied
38012 autoload modules
38013 (GRUB_MOD_INIT(parttool)): use helpmsg
38014
0d312500 380152009-04-24 David S. Miller <davem@davemloft.net>
38016
7dd4a573 38017 Avoiding opening same device multiple times in device iterator.
0d312500 38018
38019 * kern/device.c: (grub_device_iterate): Define struct part_ent,
7dd4a573 38020 and use it to build a list of partitions in iterate_disk() and
0d312500 38021 iterate_partition().
38022
ac20caff 38023 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
38024 on disk->data.
38025
0dcf7495 38026 * disk/ieee1275/nand.c (grub_nand_iterate): Return
38027 grub_devalias_iterate() result instead of unconditional 0.
38028 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
38029 Also, capture hook return value, either directly or via
38030 grub_children_iterate(), and propagate to caller.
38031 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
38032 grub_children_iterate): Return value is now 'int' instead of
38033 'grub_err_t'.
38034 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
38035 like a proper iterator, stopping when hooks return non-zero.
38036 (grub_devalias_iterate): Likewise.
38037
c8c08833 380382009-04-23 David S. Miller <davem@davemloft.net>
38039
38040 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
38041
f01005a8 380422009-04-22 David S. Miller <davem@davemloft.net>
38043
38044 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
38045 is larger than address_cells, use that value for address_cells too.
38046
4e8269da 38047 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
38048 IEEE1275_MAX_PATH_LEN): Define.
38049 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
38050 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
38051 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
38052 'devtype'. Explicitly NULL terminate devalias expansion.
38053
a1447506 38054 * util/sparc64/ieee1275/misc.c: New file.
38055 * util/sparc64/ieee1275/grub-setup.c: New file.
38056 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
38057 * util/sparc64/ieee1275/grub-mkimage.c: New file.
38058 * util/sparc64/ieee1275/grub-install.in: New file.
38059 * util/ieee1275/ofpath.c: New file.
38060 * util/ieee1275/devicemap.c: New file.
38061 * util/devicemap.c: New file.
38062 * util/deviceiter.c: New file.
38063 * kern/sparc64/ieee1275/init.c: New file.
38064 * include/grub/util/ofpath.h: New file.
38065 * include/grub/util/deviceiter.h: New file.
38066 * util/grub-mkdevicemap.c: Include deviceiter.h.
38067 Implement using grub_util_emit_devicemap_entry and
38068 grub_util_iterate_devices.
38069 * conf/i386-corebook.rmk: Build util/deviceiter.c and
38070 util/devicemap.c into grub-mkdevicemap
38071 * conf/i386-efi.rmk: Likewise.
38072 * conf/i386-ieee1275.rmk: Likewise.
38073 * conf/i386-pc.rmk: Likewise.
38074 * conf/powerpc-ieee1275.rmk: Likewise.
38075 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
38076 images and installation utilities. Build kernel as image
38077 instead of as elf binary. Use common rules as much as possible.
38078
7dd4a573 380792009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
0aefc632 38080
38081 Correct GPT definition
38082
7dd4a573 38083 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
0aefc632 38084 of "attrib" member
38085
c6c5219f 380862009-04-19 Felix Zielcke <fzielcke@z-51.de>
38087
38088 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
38089
0552ff9f 380902009-04-19 David S. Miller <davem@davemloft.net>
38091
38092 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
38093 (grub_rescue_cmd_linux): Rename to...
38094 (grub_cmd_linux): and fix prototype.
38095 (grub_rescue_cmd_initrd): Rename to...
38096 (grub_cmd_initrd): and fix prototype.
38097 (cmd_linux, cmd_initrd): New.
38098 (GRUB_MOD_INIT(linux)): Use grub_register_command().
38099 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
38100
d1a282fc 381012009-04-17 Pavel Roskin <proski@gnu.org>
38102
07c5039f 38103 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
38104 format.
38105 (grub_ohci_transfer): Likewise.
38106
b012002d 38107 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
38108
1bc09c35 38109 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
38110 return without a value. Fix inconsistent indentation.
38111
e0ff9126 38112 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
38113 match struct grub_fs.
38114
d1a282fc 38115 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
38116 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
38117 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
38118 * commands/lspci.c (grub_lspci_iter): Likewise.
38119
a96df3f2 381202009-04-16 Bean <bean123ch@gmail.com>
38121
38122 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
38123 value.
38124
41bb0fe9 381252009-04-15 Pavel Roskin <proski@gnu.org>
38126
38127 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
38128 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
38129 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
38130 definitions.
38131
596c6970 381322009-04-15 Felix Zielcke <fzielcke@z-51.de>
38133
38134 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
7dd4a573 38135 that no multiple data or metadata areas are supported and `Unknown
596c6970 38136 metadata header'.
38137
7dd4a573 381382009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
0d5d5653 38139
38140 Move loader out of the kernel
38141
38142 * kern/loader.c: moved to ...
38143 * commands/boot.c: ... moved here
38144 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
38145 * commands/boot.c (grub_cmd_boot): moved here. All users updated
38146 * include/grub/kernel.h (grub_machine_fini): export
38147 * include/grub/loader.h (grub_loader_is_loaded): update declaration
38148 (grub_loader_set): likewise
38149 (grub_loader_unset): likewise
38150 (grub_loader_boot): likewise
38151 * conf/common.rmk: new module boot.mod
38152 (pkglib_MODULES): add boot.mod
38153 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
38154 (grub_emu_SOURCES): likewise
38155 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
38156 (grub_emu_SOURCES): likewise
38157 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
38158 (grub_emu_SOURCES): likewise
38159 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
38160 (grub_emu_SOURCES): likewise
38161 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
38162 (grub_emu_SOURCES): likewise
7dd4a573 38163 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
38164 (grub_emu_SOURCES): likewise
0d5d5653 38165 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
7dd4a573 38166 (grub_emu_SOURCES): likewise
0d5d5653 38167
7dd4a573 381682009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5999d619 38169
38170 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
7dd4a573 38171
5999d619 38172 * kern/misc.c (grub_itoa): Removed function
38173 (grub_ltoa): likewise
38174 (grub_vsprintf): use grub_lltoa
38175
7dd4a573 381762009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
13c00781 38177
38178 Restore grub-emu
38179
38180 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
38181 * conf/i386-coreboot.rmk: likewise
38182 * conf/i386-ieee1275.rmk: likewise
38183 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 38184
20318222 381852009-04-15 Felix Zielcke <fzielcke@z-51.de>
38186
38187 * INSTALL: Add that `./autogen.sh' needs to be run before
38188 `./configure.'.
38189
d05f0df3 381902009-04-14 Bean <bean123ch@gmail.com>
38191
38192 * Makefile.in (pkglib_DATA): Add handler.lst.
38193 (handler.lst): New rule.
38194
38195 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
38196 * conf/i386-coreboot.rmk: Likewise.
38197 * conf/i386-ieee1275.rmk: Likewise.
38198 * conf/i386-efi.rmk: Likewise.
38199 * conf/x86_64-efi.rmk: Likewise.
38200 * conf/powerpc-ieee1275.rmk: Likewise.
38201 * conf/sparc64-ieee1275.rmk: Likewise.
38202
38203 * genhandlerlist.sh: New file.
38204
38205 * genmk.rb: Add rules to generate handler.lst.
38206
38207 * include/grub/normal.h (grub_file_getline): New function definition.
38208 (read_handler_list): Likewise.
38209 (free_handler_list): Likewise.
38210
38211 * include/grub/term.h (grub_term_register_input): Add name parameter
38212 for auto generation of handler.lst.
38213 (grub_term_register_output): Likewise.
38214
38215 * normal/handler.c: New file.
38216
38217 * normal/main.c (get_line): Renamed to grub_file_getline.
38218 (read_config_file): Use the newly renamed grub_file_getline.
38219 (read_command_list): Likewise.
38220 (read_fs_list): Likewise.
38221 (grub_normal_execute): Call read_handler_list to parse handler.lst.
38222 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
38223
38224 * term/efi/console.c (grub_console_init): Add name parameter for auto
38225 generation of handler.lst.
38226 * term/gfxterm.c: Likewise.
38227 * term/i386/pc/at_keyboard.c: Likewise.
38228 * term/i386/pc/console.c: Likewise.
38229 * term/i386/pc/serial.c: Likewise.
38230 * term/i386/pc/vesafb.c: Likewise.
38231 * term/i386/pc/vga.c: Likewise.
38232 * term/i386/pc/vga_text.c: Likewise.
38233 * term/ieee1275/ofconsole.c: Likewise.
38234 * term/usb_keyboard.c: Likewise.
38235
33c846be 382362009-04-14 Bean <bean123ch@gmail.com>
38237
38238 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
38239 properly with null character.
38240
4484e01e 382412009-04-14 Felix Zielcke <fzielcke@z-51.de>
38242
38243 * configure: Remove.
38244 * config.h.in: Likewise.
f93d668e 38245 * stamp-h.in: Likewise.
4484e01e 38246 * DISTLIST: Likewise.
38247 * conf/common.mk: Likewise.
38248 * conf/i386-coreboot.mk: Likewise.
38249 * conf/i386-efi.mk: Likewise.
38250 * conf/i386-ieee1275.mk: Likewise.
38251 * conf/i386.mk: Likewise.
38252 * conf/i386-pc.mk: Likewise.
38253 * conf/powerpc-ieee1275.mk: Likewise.
38254 * conf/sparc64-ieee1275.mk: Likewise.
38255 * conf/x86_64-efi.mk: Likewise.
38256
38257 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
38258 develop on GRUB.
38259
7dd4a573 382602009-04-14 John Stanley <jpsinthemix@verizon.net>
5c5bf96a 38261 David S. Miller <davem@davemloft.net>
38262
38263 * util/hostdisk.c (make_device_name): Fix buffer length
38264 calculations.
38265
e25b5a8c 382662009-04-14 Felix Zielcke <fzielcke@z-51.de>
38267
38268 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
38269 <sys/param.h> and <sys/sysctl.h>.
38270 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
38271 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
38272 opening the device and reset them afterwards.
38273
1f1f580c 382742009-04-13 Pavel Roskin <proski@gnu.org>
38275
38276 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
38277 Reported by John Stanley <jpsinthemix@verizon.net>
38278
7ebc2d6b 382792009-04-13 Robert Millan <rmh@aybabtu.com>
38280
38281 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
7dd4a573 38282 that name for menuentries when appropriate.
7ebc2d6b 38283
d8ba3667 382842009-04-13 Felix Zielcke <fzielcke@z-51.de>
38285
38286 * util/grub.d/10_freebsd.in: Add a missing `fi'.
38287
cba416eb 382882009-04-13 Robert Millan <rmh@aybabtu.com>
38289
38290 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
38291 to Linux, simply abort telling the user it's no longer supported.
38292
a547a745 382932009-04-13 Felix Zielcke <fzielcke@z-51.de>
38294
38295 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
7dd4a573 38296 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
a547a745 38297 `freebsd_loadenv' only when devices.hints exist.
38298
232a769c 382992009-04-13 Pavel Roskin <proski@gnu.org>
38300
38301 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
38302
c3012039 383032009-04-13 Felix Zielcke <fzielcke@z-51.de>
38304
38305 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
38306 partition number.
38307 (grub_drive): Likewise.
38308
234022fe 383092009-04-13 David S. Miller <davem@davemloft.net>
38310
38311 * kern/sparc64/ieee1275/ieee1275.c: New file.
38312 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
38313 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
38314 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
38315 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
38316 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
38317 grub_ieee1275_alloc_physmem): Declare new exported functions.
38318
d8e1836c 38319 * include/grub/sparc64/ieee1275/loader.h: New file.
38320 * include/grub/sparc64/ieee1275/memory.h: Likewise.
38321 * include/grub/sparc64/kernel.h: Likewise.
38322 * loader/sparc64/ieee1275/linux.c: Likewise.
38323
96bd81ec 38324 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
38325 (grub_fstest_SOURCES): Likewise.
38326
6a4737e5 38327 * util/hostdisk.c (make_device_name): Do not make any assumptions
38328 about the length of drive names.
38329
1d7a72fd 38330 * kern/dl.c (grub_dl_load_file): Close file immediately when
38331 we are done using it.
38332
56bc2471 383332009-04-12 David S. Miller <davem@davemloft.net>
38334
38335 * kern/misc.c (grub_ltoa): Fix cast when handling negative
38336 values. Noticed by Pavel Roskin.
38337
df38d0bb 38338 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
38339 target compiler.
7dd4a573 38340
e382e93a 38341 * genmk.rb: Add more flexible image type specification, also
38342 pass --strip-unneeded to objcopy.
38343 * conf/i386-pc.rmk: Use *_FORMAT.
38344 * conf/i386-pc.mk: Rebuilt.
38345
f5dbbca9 38346 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
38347 (OFDISK_HASH_SZ): Define.
38348 (ofdisk_hash): New hash table.
38349 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
38350 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
38351 instead of device phandle which is not unique.
38352
91c88b12 38353 * kern/sparc64/ieee1275/init.c: Delete, replace with...
38354 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
38355 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
38356 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
38357 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
38358 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
38359 GRUB_KERNEL_MACHINE_DATA_END): Define.
38360 (grub_kernel_image_size, grub_total_module_size): Declare.
38361
5b5d4aa5 383622009-04-12 Pavel Roskin <proski@gnu.org>
38363
7dd4a573 38364 * configure.ac: Change the logic when we check for target tools.
38365 Do it when the target is specified and it's different from the
38366 specified value of the host.
5b5d4aa5 38367
c91e1793 383682009-04-11 Felix Zielcke <fzielcke@z-51.de>
38369
38370 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
38371 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
38372 GNU/kFreeBSD. Check if a device is a character device. Use
38373 DIOCGMEDIASIZE to get the size.
38374 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
38375 support for GNU/kFreeBSD.
38376 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
38377 is a character device instead of a block device. Add support for
38378 FreeBSD device names.
38379
38380 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
38381 is a character device instead of a block device.
38382
38383 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
38384 is a character device instead of a block device.
38385
b1ac8644 383862009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
38387
38388 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
38389 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
38390 FreeBSD. Check if a device is a character device. Use
38391 DIOCGMEDIASIZE to get the size.
38392 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
38393 support for FreeBSD.
38394 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
38395 is a character device instead of a block device. Add support for
38396 FreeBSD device names.
38397
38398 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
38399 a character device instead of a block device.
38400 (grub_util_check_char_device): New function.
38401
38402 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
38403 a character device instead of a block device.
38404
38405 * include/grub/util/getroot.h (grub_util_check_char_device): New
38406 prototype.
38407
a3f7515a 384082009-04-11 David S. Miller <davem@davemloft.net>
38409
38410 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
38411 static libgcc.
38412 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
38413 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
38414 function, if present.
38415 (__bswapdi2): Likewise.
38416
0d44993d 38417 * include/grub/sparc64/ieee1275/boot.h: New file.
38418 * boot/sparc64/ieee1275/boot.S: Likewise.
38419 * boot/sparc64/ieee1275/diskboot.S: Likewise.
38420
ed3d2bc2 38421 * kern/misc.c (grub_ltoa): New function.
38422 (grub_vsprintf): Use it to format 'long' integers.
38423
d3bfb59c 384242009-04-10 David S. Miller <davem@davemloft.net>
38425
38426 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
38427 slots are of type grub_ieee1275_cell_t.
38428 (grub_nand_read): Likewise.
38429 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
38430 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
38431 macros are used to compare values in arg/ret block of the call.
38432 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
38433 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
38434 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
38435 grub_ieee1275_instance_to_path, grub_ieee1275_write,
38436 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
38437 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
38438 grub_ieee1275_close, grub_ieee1275_set_property,
38439 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
38440 grub_ieee1275_cell_t.
38441 * kern/ieee1275/openfw.c (grub_map): Likewise.
38442 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
38443 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
38444
450e2238 38445 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
38446 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
38447 (grub_devalias_iterate): Likewise.
38448
7dd4a573 384492009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6df8cc76 38450
38451 UFS improvements
38452
38453 * fs/ufs.c (INODE_NBLOCKS): new definition
38454 (struct grub_ufs_dirent): added fields for non-BSD dirents
38455 (grub_ufs_get_file_block): fixed double indirect handling
38456 (grub_ufs_lookup_symlink): use more robust way to determine whether
38457 symlink is inline
38458 (grub_ufs_find_file): support for non-BSD dirents
38459 (grub_ufs_dir): support for non-BSD dirents
38460
e7e6862a 384612009-04-10 Bean <bean123ch@gnail.com>
38462
38463 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
38464 attribute, otherwise the size would be wrong for i386 platform.
38465
38466 * include/grub/pci.h (grub_pci_read_word): New inline function.
38467 (grub_pci_read_byte): Likewise.
38468 (grub_pci_write): Likewise.
38469 (grub_pci_write_word): Likewise.
38470 (grub_pci_write_byte): Likewise.
38471
38472 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
38473
38474 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
38475 (find_framebuf): Scan pci to locate the frame buffer address.
38476
38477 * commands/efi/fixvideo.c: New file.
38478
38479 * commands/efi/loadbios.c: Likewise.
38480
38481 * commands/memrw.c: Likewise.
38482
38483 * util/grub-dumpbios.in: Likewise.
38484
38485 * conf/common.rmk (grub-dumpbios): New utility.
38486 (pkglib_MODULES): New module memrw.mod.
38487 (memrw_mod_SOURCE): New macro.
38488 (memrw_mod_CFLAGS): Likewise.
38489 (memrw_mod_LDFLAGS): Likewise.
38490
7dd4a573 38491 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 38492 fixvideo.mod.
38493 (loadbios_mod_SOURCE): New macro.
38494 (loadbios_mod_CFLAGS): Likewise.
38495 (loadbios_mod_LDFLAGS): Likewise.
38496 (fixvideo_mod_SOURCE): Likewise.
38497 (fixvideo_mod_CFLAGS): Likewise.
38498 (fixvideo_mod_LDFLAGS): Likewise.
38499
7dd4a573 38500 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 38501 fixvideo.mod.
38502 (loadbios_mod_SOURCE): New macro.
38503 (loadbios_mod_CFLAGS): Likewise.
38504 (loadbios_mod_LDFLAGS): Likewise.
38505 (fixvideo_mod_SOURCE): Likewise.
38506 (fixvideo_mod_CFLAGS): Likewise.
38507 (fixvideo_mod_LDFLAGS): Likewise.
38508
af63ada2 385092009-04-08 Felix Zielcke <fzielcke@z-51.de>
38510
38511 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
38512
c2cdde70 385132009-04-07 David S. Miller <davem@davemloft.net>
38514
38515 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
38516 support for R_SPARC_OLO10 relocations. Fix compile warning for
38517 R_SPARC_WDISP30 case.
ea3f72cf 38518 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
c2cdde70 38519
761319cf 385202009-04-06 Pavel Roskin <proski@gnu.org>
38521
1007d1f5 38522 * include/grub/misc.h (ARRAY_SIZE): New macro.
38523 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
38524 New macro.
38525 * loader/i386/linux.c (allocate_pages): Use free_pages().
38526 (grub_linux_unload): Don't use free_pages().
38527 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
38528 wrong index. Treat all other modes as text modes.
38529 (grub_cmd_linux): Initialize vid_mode unconditionally to
38530 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
38531
761319cf 38532 * commands/help.c (print_command_help): Use cmd->prio, not
38533 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
38534
ea761d40 385352009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7dd4a573 38536
ea761d40 38537 Parttool
38538
38539 * parttool/pcpart.c: new file
38540 * commands/parttool.c: likewise
38541 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
38542 (parttool_mod_SOURCES): new variable
38543 (parttool_mod_CFLAGS): likewise
38544 (parttool_mod_LDFLAGS): likewise
38545 (pcpart_mod_SOURCES): likewise
38546 (pcpart_mod_CFLAGS): likewise
38547 (pcpart_mod_LDFLAGS): likewise
7dd4a573 38548 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
ea761d40 38549 and parttool/pcpart.c
38550 * conf/i386-efi.rmk: likewise
38551 * conf/i386-ieee1275.rmk: likewise
38552 * conf/i386-pc.rmk: likewise
38553 * conf/powerpc-ieee1275.rmk: likewise
38554 * conf/sparc64-ieee1275.rmk: likewise
38555 * conf/x86_64-ieee1275.rmk: likewise
38556
05aaebfb 385572009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
38558
38559 Support for mtime and further expandability of dir command
38560
38561 * include/grub/lib/datetime.h: moved to ...
7dd4a573 38562 * include/grub/datetime.h: ... moved here and added
05aaebfb 38563 declaration of grub_unixtime2datetime. All users updated
7dd4a573 38564 * include/grub/fs.h: new syntax for dir and mtime functions in
38565 struct grub_fs
05aaebfb 38566 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
38567 and GRUB_FSHELP_FLAGS_MASK
38568 * commands/ls.c (grub_ls_list_files): Write mtime in long format
38569 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
38570 (grub_ext2_mtime): new function
38571 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
38572 (grub_hfsplus_mtime): new function
38573 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
38574 (GRUB_UFS_ATTR_FILE): likewise
38575 (GRUB_UFS_ATTR_LNK): likewise
38576 (struct grub_ufs_sblock): new fields mtime
38577 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
38578 all users updated
38579 (grub_ufs_dir): mtime support
38580 (grub_ufs_mtime): new function
38581 * fs/affs.c (grub_affs_dir): use new dir syntax
38582 * fs/afs.c (grub_afs_dir): likewise
38583 * fs/cpio.c (grub_cpio_dir): likewise
38584 * fs/fat.c (grub_fat_find_dir): likewise
38585 * fs/hfs.c (grub_hfs_dir): likewise
38586 * fs/iso9660.c (grub_iso9660_dir): likewise
38587 * fs/jfs.c (grub_jfs_dir): likewise
38588 * fs/minix.c (grub_minix_dir): likewise
38589 * fs/ntfs.c (grub_ntfs_dir): likewise
38590 * fs/reiserfs.c (grub_reiserfs_dir): likewise
38591 * fs/sfs.c (grub_sfs_dir): likewise
38592 * fs/xfs.c (grub_xfs_dir): likewise
38593 * util/hostfs.c (grub_hostfs_dir): likewise
38594 * lib/datetime.c: moved to ...
38595 * normal/datetime.c: ... moved here
38596 (grub_unixtime2datetime): new function
38597 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
7dd4a573 38598 * normal/completion.c (iterate_dir): use new dir syntax
38599 * normal/misc.c (grub_normal_print_device_info): tell the
05aaebfb 38600 last modification time of a volume
7dd4a573 38601 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
05aaebfb 38602 * conf/common.rmk: added lib/datetime.c to ls.mod
7dd4a573 38603 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
05aaebfb 38604 (normal_mod_SOURCES): likewise
38605 (datetime_mod_SOURCES): Removed lib/datetime.c
38606 * conf/i386-efi.rmk: likewise
7dd4a573 38607 * conf/i386-ieee1275.rmk: likewise
05aaebfb 38608 * conf/i386-pc.rmk: likewise
38609 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 38610 * conf/sparc64-ieee1275.rmk: likewise
38611 * conf/x86_64-efi.rmk: likewise
05aaebfb 38612
8a7e1a14 386132009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
38614
38615 Trim trailing spaces in FAT label and support mtools-like labels
7dd4a573 38616
38617 * fs/fat.c (grub_fat_iterate_dir): New function based
8a7e1a14 38618 on grub_fat_find_dir
38619 (grub_fat_find_dir): use grub_fat_iterate_dir
38620 (grub_fat_label): likewise
38621
04186a9c 386222009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
38623
7dd4a573 38624 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
04186a9c 38625 and command.h
38626 remove extraneous kernel_elf_HEADERS
38627
da4c0bb6 386282009-04-04 Bean <bean123ch@gnail.com>
38629
38630 * include/grub/util/misc.h: Add dummy function fsync for mingw.
38631
38632 * util/misc.c: Likewise.
38633
54ad9555 386342009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
38635
38636 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
38637 instead of grub_printf.
38638
7a6bf9f2 386392009-04-03 Robert Millan <rmh@aybabtu.com>
38640
38641 * loader/i386/linux.c (grub_linux_setup_video): Fill
38642 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
38643 values from `mode info' structure instead of hardcoded
38644 values.
38645
3fcc2083 386462009-04-01 Pavel Roskin <proski@gnu.org>
38647
38648 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
38649 unused now.
38650 * genmk.rb: Likewise.
38651 * configure.ac: Likewise.
38652
5ec9740b 386532009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
38654
38655 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
38656 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
38657
5270cec8 386582009-04-01 David S. Miller <davem@davemloft.net>
38659
38660 * normal/sparc64/setjmp.S: Fix setjmp implementation.
7dd4a573 38661 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5270cec8 38662 (grub_setjmp): Mark with 'returns_twice' attribute.
38663 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
38664 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
38665 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
38666
9c3dd854 386672009-04-01 Robert Millan <rmh@aybabtu.com>
38668
38669 Reapply fix from 2008-07-28 which was accidentally reverted; also
38670 perform the same fix to a similar check in same function.
38671
38672 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
38673 with the same number are found, just use issue a warning with
38674 grub_dprintf(), as this error has been reported to be non-fatal.
38675
0d818b7e 386762009-03-31 Pavel Roskin <proski@gnu.org>
38677
38678 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
38679 for cross-compilation.
38680
95646d92 386812009-03-30 Robert Millan <rmh@aybabtu.com>
38682
38683 Fix i386-ieee1275 build.
38684
38685 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
38686 Remove declaration.
38687
6a003ed1 386882009-03-30 Pavel Roskin <proski@gnu.org>
38689
38690 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
38691 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
38692 zero-terminated, rely only on the strlen value. Fix comparison
38693 of strings differing in length.
38694
92f33540 386952009-03-30 Robert Millan <rmh@aybabtu.com>
38696
38697 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
38698 checking for abi version. Improve error messages on BIOS to notify
38699 user about `linux16' command.
38700
a8c48fd5 387012009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
38702
f968172e 38703 Leak fixes
a8c48fd5 38704
f968172e 38705 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
38706 in case of collision
38707 * disk/scsi.c (grub_scsi_open): free scsi in case of error
a8c48fd5 38708
9c323f09 387092009-03-29 Robert Millan <rmh@aybabtu.com>
38710
38711 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
38712 set `vid_mode' accordingly.
38713 (grub_linux_boot): Process `vid_mode' and set video mode.
38714
ae68f423 387152009-03-29 Robert Millan <rmh@aybabtu.com>
38716
38717 * util/grub.d/10_linux.in (linux_entry): New function.
38718 Factorize generation of Linux boot entries.
38719
5709cfc4 387202009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
38721
38722 Make the format of Environment Block plain text. The boot loader
38723 part is not tested well yet.
7dd4a573 38724
5709cfc4 38725 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
38726 (buffer): Removed.
38727 (envblk): Likewise.
38728 (usage): Remove "info" and "clear". Add "unset". Update the
38729 description of "set", as this does not delete variables any
38730 longer.
38731 (create_envblk_file): Complete rewrite.
38732 (open_envblk_file): Likewise.
38733 (cmd_info): Removed.
38734 (cmd_list): Likewise.
38735 (cmd_set): Likewise.
38736 (cmd_clear): Likewise.
38737 (list_variables): New function.
38738 (write_envblk): Likewise.
38739 (set_variables): Likewise.
38740 (unset_variables): Likewise.
38741 (main): Complete rewrite.
38742
38743 * commands/loadenv.c (buffer): Removed.
38744 (envblk): Likewise.
38745 (open_envblk_file): New function.
38746 (read_envblk_file): Complete rewrite.
38747 (grub_cmd_load_env): Likewise.
38748 (grub_cmd_list_env): Likewise.
38749 (struct blocklist): New struct.
38750 (free_blocklists): New function.
38751 (check_blocklists): Likewise.
38752 (write_blocklists): Likewise.
38753 (grub_cmd_save_env): Complete rewrite.
38754
38755 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
38756 a plain text signature.
38757 (GRUB_ENVBLK_MAXLEN): Removed.
38758 (struct grub_envblk): Complete rewrite.
38759 (grub_envblk_find): Removed.
38760 (grub_envblk_insert): Likewise.
38761 (grub_envblk_open): New prototype.
38762 (grub_envblk_set): Likewise.
38763 (grub_envblk_delete): Put const to VALUE.
38764 (grub_envblk_iterate): Put const to NAME and VALUE.
38765 (grub_envblk_close): New prototype.
38766 (grub_envblk_buffer): New inline function.
38767 (grub_envblk_size): Likewise.
38768
38769 * lib/envblk.c: Include grub/mm.h.
38770 (grub_env_find): Removed.
38771 (grub_envblk_open): New function.
38772 (grub_envblk_close): Likewise.
38773 (escaped_value_len): Likewise.
38774 (find_next_line): Likewise.
38775 (grub_envblk_insert): Removed.
38776 (grub_envblk_set): New function.
38777 (grub_envblk_delete): Complete rewrite.
38778 (grub_envblk_iterate): Likewise.
38779
a9368fd3 387802009-03-28 Robert Millan <rmh@aybabtu.com>
38781
38782 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
38783 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
38784 variables. Use 16-bit loader.
38785 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
38786 loader.
38787 * kern/i386/loader.S (grub_linux_boot): Rename to ...
38788 (grub_linux16_boot): ... this. Update all users.
38789 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
38790 (grub_linux_boot): ... this. Update all users.
38791
38792 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
38793 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
38794 commands to `linux16' and `initrd16'.
38795 (GRUB_MOD_FINI(linux)): Rename to ...
38796 (GRUB_MOD_FINI(linux16)): ... this.
38797
e4dd5a7e 387982009-03-24 Pavel Roskin <proski@gnu.org>
38799
38800 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
38801 not just for compilation.
38802
c04d6e05 388032009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
38804
38805 Move multiboot helper out of kernel
38806
38807 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
38808 `loader/i386/multiboot_helper.S'.
38809 * conf/i386-coreboot.rmk: Likewise
38810 * conf/i386-ieee1275.rmk: Likewise
38811
38812 * kern/i386/loader.S: Move multiboot helpers from here...
38813 * loader/i386/multiboot_helper.S: ...moved here
38814 * include/grub/i386/loader.h: Move declarations of multiboot
38815 helpers from here...
38816 * include/grub/i386/multiboot.h: ...moved here
38817 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
38818
42a5b3fc 388192009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
38820
38821 * kern/env.c (grub_env_context_open): Added an argument to specify
38822 whether a new context inherits exported variables from current
38823 one. This is useful when making a sandbox to interpret a config
38824 file.
38825 All callers updated.
38826
38827 * include/grub/env.h (grub_env_context_open): Updated the prototype.
38828
b28bbc4e 388292009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
38830
38831 * kern/env.c (grub_env_context_close): Fix memory leaks.
38832
f04f02e4 388332009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
38834
38835 * normal/main.c (grub_normal_execute): Added an argument
38836 BATCH to specify if an interactive interface should be provided
38837 after reading a config file.
38838 All callers updated.
38839 (read_command_list): Prevent being executed twice.
38840 (read_fs_list): Likewise.
38841
42a5b3fc 38842 * include/grub/normal.h (grub_normal_execute): Updated the
38843 prototype.
f04f02e4 38844
41473ac2 388452009-03-22 Pavel Roskin <proski@gno.org>
38846
fbc00b0c 38847 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
38848 _start.
38849 * kern/i386/pc/startup.S: Likewise.
38850 * kern/i386/efi/startup.S: Likewise.
38851 * kern/i386/ieee1275/startup.S: Likewise.
38852 * kern/i386/coreboot/startup.S: Likewise.
38853 * kern/x86_64/efi/startup.S: Likewise.
38854
41473ac2 38855 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
38856 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
38857 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
38858
2274cc8f 388592009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
38860
38861 Bugfixes in multiboot for bugs uncovered by solaris kernel.
38862
38863 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
38864 limit detection.
38865 Use vaddr of correct segment for entry_point.
38866
b1b797cb 388672009-03-21 Bean <bean123ch@gmail.com>
38868
38869 * commands/blocklist.c: Add include file <grub/command.h>, remove
38870 <grub/normal.h> and <grub/arg.h>.
38871 (grub_cmd_blocklist): Use the new command interface.
38872 (GRUB_MOD_INIT): Likewise.
38873 (GRUB_MOD_FINI): Likewise.
38874 * commands/boot.c: Likewise.
38875 * commands/cat.c: Likewise.
38876 * commands/cmp.c: Likewise.
38877 * commands/configfile.c: Likewise.
38878 * commands/crc.c: Likewise.
38879 * commands/echo.c: Likewise.
38880 * commands/halt.c: Likewise.
38881 * commands/handler.c: Likewise.
38882 * commands/hdparm.c: Likewise.
38883 * commands/help.c: Likewise.
38884 * commands/hexdump.c: Likewise.
38885 * commands/loadenv.c: Likewise.
38886 * commands/ls.c: Likewise.
38887 * commands/lsmmap.c: Likewise.
38888 * commands/lspci.c: Likewise.
38889 * commands/loadenv.c: Likewise.
38890 * commands/read.c: Likewise.
38891 * commands/reboot.c: Likewise.
38892 * commands/search.c: Likewise.
38893 * commands/sleep.c: Likewise.
38894 * commands/test.c: Likewise.
38895 * commands/usbtest.c: Likewise.
38896 * commands/videotest.c: Likewise.
38897 * commands/i386/cpuid.c: Likewise.
38898 * commands/i386/pc/halt.c: Likewise.
38899 * commands/i386/pc/play.c: Likewise.
38900 * commands/i386/pc/pxecmd.c: Likewise.
38901 * commands/i386/pc/vbeinfo.c: Likewise.
38902 * commands/i386/pc/vbetest.c: Likewise.
38903 * commands/ieee1275/suspend.c: Likewise.
38904 * disk/loopback.c: Likewise.
38905 * font/font_cmd.c: Likewise.
38906 * hello/hello.c: Likewise.
38907 * loader/efi/appleloader.c: Likewise.
38908 * loader/efi/chainloader.c: Likewise.
38909 * loader/i386/bsd.c: Likewise.
38910 * loader/i386/efi/linux.c: Likewise.
38911 * loader/i386/ieee1275/linux.c: Likewise.
38912 * loader/i386/linux.c: Likewise.
38913 * loader/i386/pc/chainloader.c: Likewise.
38914 * loader/i386/pc/linux.c: Likewise.
38915 * loader/powerpc/ieee1275/linux.c: Likewise.
38916 * loader/multiboot_loader.c: Likewise.
38917 * term/gfxterm.c: Likewise.
38918 * term/i386/pc/serial.c: Likewise.
38919 * term/terminfo.c: Likewise.
38920
38921 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
38922 * term/i386/pc/vga.c: Likewise.
38923 * video/readers/jpeg.c: Likewise.
38924 * video/readers/png.c: Likewise.
38925 * video/readers/tga.c: Likewise.
38926
38927 * util/grub-fstest (cmd_loopback): Removed.
38928 (cmd_blocklist): Likewise.
38929 (cmd_ls): Likewise.
38930 (grub_register_command): Likewise.
38931 (grub_unregister_command): Likewise.
38932 (execute_command): Use grub_command_find to locate command and execute
38933 it.
38934
38935 * include/grub/efi/chainloader.h: Removed.
38936 * loader/efi/chainloader_normal.c: Likewise.
38937 * loader/i386/bsd_normal.c: Likewise.
38938 * loader/i386/pc/chainloader_normal.c: Likewise.
38939 * loader/i386/pc/multiboot_normal.c: Likewise.
38940 * loader/linux_normal.c: Likewise.
38941 * loader/multiboot_loader_normal.c: Likewise.
38942 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
38943
38944 * gencmdlist.sh: Scan new registration command grub_register_extcmd
38945 and grub_register_command_p1.
38946
38947 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
38948 kern/command.c, lib/arg.c and commands/extcmd.c.
38949 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
38950 (minicmd_mod_SOURCES): New variable.
38951 (minicmd_mod_CFLAGS): Likewise.
38952 (minicmd_mod_LDFLAGS): Likewise.
38953 (extcmd_mod_SOURCES): Likewise.
38954 (extcmd_mod_CFLAGS): Likewise.
38955 (extcmd_mod_LDFLAGS): Likewise.
38956 (boot_mod_SOURCES): Removed.
38957 (boot_mod_CFLAGS): Likewise.
38958 (boot_mod_LDFLAGS): Likewise.
38959
38960 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
38961 kern/corecmd.c.
38962 (kernel_img_HEADERS): Add command.h.
38963 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
38964 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
38965 and lib/arg.c.
38966 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
38967 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
38968 remove the corresponding normal mode command.
38969 (normal_mod_SOURCES): Remove normal/arg.c.
38970 * conf/i386-coreboot.rmk: Likewise.
38971 * conf/i386-efi.rmk: Likewise.
38972 * conf/i386-ieee1275.rmk: Likewise.
38973 * conf/powerpc-ieee1275.rmk: Likewise.
38974 * conf/x86_64-efi.rmk: Likewise.
38975
38976 * include/grub/arg.h: Move from here ...
38977 * include/grub/lib/arg.h: ... to here.
38978
38979 * normal/arg.c: Move from here ...
38980 * lib/arg.c: ... to here.
38981
38982 * commands/extcmd.c: New file.
38983 * commands/minicmd.c: Likewise.
38984 * include/grub/command.h: Likewise.
38985 * include/grub/extcmd.h: Likewise.
38986 * kern/command.c: Likewise.
38987 * kern/corecmd.c: Likewise.
38988
38989 * kern/list.c (grub_list_iterate): Return int instead of void.
38990 (grub_list_insert): New function.
38991 (grub_prio_list_insert): Likewise.
38992
38993 * kern/rescue.c (grub_rescue_command): Removed.
38994 (grub_rescue_command_list): Likewise.
38995 (grub_rescue_register_command): Likewise.
38996 (grub_rescue_unregister_command): Likewise.
38997 (grub_rescue_cmd_boot): Move to minicmd.c
38998 (grub_rescue_cmd_help): Likewise.
38999 (grub_rescue_cmd_info): Likewise.
39000 (grub_rescue_cmd_boot): Likewise.
39001 (grub_rescue_cmd_testload): Likewise.
39002 (grub_rescue_cmd_dump): Likewise.
39003 (grub_rescue_cmd_rmmod): Likewise.
39004 (grub_rescue_cmd_lsmod): Likewise.
39005 (grub_rescue_cmd_exit): Likewise.
39006 (grub_rescue_print_devices): Moved to corecmd.c.
39007 (grub_rescue_print_files): Likewise.
39008 (grub_rescue_cmd_ls): Likewise.
39009 (grub_rescue_cmd_insmod): Likewise.
39010 (grub_rescue_cmd_set): Likewise.
39011 (grub_rescue_cmd_unset): Likewise.
7d074e3c 39012 (attempt_normal_mode): Use grub_command_find to get normal module.
b1b797cb 39013 (grub_enter_rescue_mode): Use grub_register_core_commands to register
7d074e3c 39014 commands, remove grub_rescue_register_command calls.
b1b797cb 39015
7d074e3c 39016 * normal/command.c (grub_register_command): Removed.
b1b797cb 39017 (grub_unregister_command): Likewise.
39018 (grub_command_find): Likewise.
39019 (grub_iterate_commands): Likewise.
39020 (rescue_command): Likewise.
39021 (export_command): Moved to corecmd.c.
39022 (set_command): Removed.
39023 (unset_command): Likewise.
39024 (insmod_command): Likewise.
39025 (rmmod_command): Likewise.
39026 (lsmod_command): Likewise.
39027 (grub_command_init): Likewise.
39028
39029 * normal/completion.c (iterate_command): Use cmd->prio to check for
39030 active command.
39031 (complete_arguments): Use grub_extcmd_t structure to find options.
39032 (grub_normal_do_completion): Change function grub_iterate_commands to
39033 grub_command_iterate.
39034
39035 * normal/execute.c (grub_script_execute_cmd): No need to parse
39036 argument here.
39037
39038 * normal/main.c (grub_dyncmd_dispatcher): New function.
39039 (read_command_list): Register unload commands as dyncmd.
39040 (grub_cmd_normal): Use new command interface, register rescue,
39041 unregister normal at entry, register normal, unregister rescue at exit.
39042
39043 * include/grub/list.h (grub_list_test_t): New type.
39044 (grub_list_iterate): Return int instead of void.
39045 (grub_list_insert): New function.
39046 (GRUB_AS_NAMED_LIST_P): New macro.
39047 (GRUB_AS_PRIO_LIST): Likewise.
39048 (GRUB_AS_PRIO_LIST_P): Likewise.
39049 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
39050 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
39051 (grub_prio_list): New structure.
39052 (grub_prio_list_insert): New function.
39053 (grub_prio_list_remove): New inline function.
39054
39055 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
39056 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
39057 (GRUB_COMMAND_FLAG_MENU): Likewise.
39058 (GRUB_COMMAND_FLAG_BOTH): Likewise.
39059 (GRUB_COMMAND_FLAG_TITLE): Likewise.
39060 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
39061 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
39062 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
39063 (grub_command): Likewise.
39064 (grub_register_command): Likewise.
39065 (grub_command_find): Likewise.
39066 (grub_iterate_commands): Likewise.
39067 (grub_command_init): Likewise.
39068 (grub_arg_parse): Likewise.
39069 (grub_arg_show_help): Likewise.
39070
39071 * include/grub/rescue.h (grub_rescue_register_command): Removed.
39072 (grub_rescue_unregister_command): Likewise.
39073
39074 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
39075 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
39076 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
39077
39078 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
39079 grub_rescue_cmd_initrd.
39080 * include/grub/i386/loader.h: Likewise.
39081 * include/grub/x86_64/loader.h: Likewise.
39082
39083 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
39084
1f4147aa 390852009-03-21 Bean <bean123ch@gmail.com>
39086
39087 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
39088 instead of stat in mingw environment.
39089
39090 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
39091
39092 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
39093
39094 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
39095 AC_CONFIG_LINKS.
39096
2156d5ba 390972009-03-21 Bean <bean123ch@gmail.com>
39098
39099 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
39100 out of range error.
39101
177b82ca 391022009-03-18 Michel Dänzer <michel@daenzer.net>
39103
39104 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
39105 checking inode flags for EXT4_EXTENTS_FLAG.
39106
14aad807 391072009-03-18 Robert Millan <rmh@aybabtu.com>
39108
39109 * loader/i386/linux.c: Include `<grub/video.h>' and
39110 `<grub/i386/pc/vbe.h>'..
39111 (grub_linux_setup_video): New function. Loosely based on the EFI one.
39112 (grub_linux32_boot): Attempt to configure video settings with
39113 grub_linux_setup_video().
39114 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
39115 to avoid grub_console_fini() which would step out of graphical mode
39116 unconditionally.
39117
8cf83a27 391182009-03-14 Robert Millan <rmh@aybabtu.com>
39119
39120 Fix build on powerpc.
39121 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
39122
40164e75 391232009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
39124
39125 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
39126 background image command.
39127
c58bc32a 391282009-03-12 Colin D Bennett <colin@gibibit.com>
39129
39130 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
39131 (grub_gfxterm_putchar): Extract pairs of identical calls to
39132 draw_cursor out of conditional blocks.
39133
5415144a 391342009-03-11 Pavel Roskin <proski@gnu.org>
39135
39136 * fs/hfs.c (grub_hfs_strncasecmp): New function.
39137 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
39138
6394042e 391392009-03-11 Robert Millan <rmh@aybabtu.com>
39140
39141 * loader/i386/multiboot_elfxx.c
39142 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
39143
b7b50e5f 391442009-03-11 Felix Zielcke <fzielcke@z-51.de>
39145
39146 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
39147 `kern/handler.c'.
39148
1ca7fc96 391492009-03-11 Robert Millan <rmh@aybabtu.com>
39150
39151 * loader/i386/multiboot.c (code_size): New variable.
39152 (grub_multiboot): Define offsets by adding to `code_size' rather
7d074e3c 39153 than subtracting from `grub_multiboot_payload_size'. Provide
1ca7fc96 39154 4-byte alignment to MBI and others by increasing
7d074e3c 39155 `boot_loader_name_length' appropriately.
1ca7fc96 39156
39157 * loader/i386/multiboot_elfxx.c
39158 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
39159
a83ea1d2 391602009-03-09 Felix Zielcke <fzielcke@z-51.de>
39161
39162 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
39163 `fs/ext2.c'.
39164
aa9f3bff 391652009-03-08 Robert Millan <rmh@aybabtu.com>
39166
39167 Make loader/i386/linux.c usable on i386-pc again.
39168
39169 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
39170 memory to heap.
39171 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
39172 `#error' stanza.
39173
d8b3b60e 391742009-03-07 Bean <bean123ch@gmail.com>
39175
39176 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
39177 allocation.
39178
b362c9e9 391792009-03-06 Robert Millan <rmh@aybabtu.com>
39180
39181 Fix display issue on terminals with screen size other than 80x25
39182 (e.g. gfxterm with resolution higher than 640x480).
39183
39184 * normal/main.c (grub_normal_init_page): Display title text in a
7d074e3c 39185 position relative to the center of the terminal instead of relying
b362c9e9 39186 on a hardcoded offset.
39187
9304eef1 391882009-03-04 Robert Millan <rmh@aybabtu.com>
39189
39190 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
39191 installed.
39192
39193 * Makefile.in (host_kernel): New variable.
39194 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
39195 scripts instead of just the windows one.
39196 * configure.ac: Initialize and AC_SUBST `host_kernel'.
39197
eabc95fb 391982009-03-04 Felix Zielcke <fzielcke@z-51.de>
2ba60b62 39199
39200 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
39201 `kern/handler.c'.
39202 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39203 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
39204 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
39205 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39206 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39207 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39208
ceb1223c 392092009-03-04 Felix Zielcke <fzielcke@z-51.de>
39210
39211 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
39212 or if there's no space for the disk label and print the partition number on a
39213 invalid magic.
39214
4910684a 392152009-03-04 Felix Zielcke <fzielcke@z-51.de>
39216
39217 * util/misc.c: Include <time.h>.
39218 (grub_millisleep): New function.
39219
7e9ca17a 392202009-03-04 Bean <bean123ch@gmail.com>
39221
39222 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
39223 another option -mno-red-zone.
39224
39225 * commands/handler.c: Change module description.
39226
39227 * kern/handler.c: Add missing space at the end of description line.
39228
39229 * kern/list.c: Likewise.
39230
f501677c 392312009-03-03 Robert Millan <rmh@aybabtu.com>
39232
39233 Move more components to the relocation area, and fix mbi pointer
39234 handling to use the destination rather than the origin (thanks to
39235 Vladimir Serbinenko for spotting).
39236
39237 * loader/i386/multiboot.c (mbi_dest): New variable.
39238 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
39239 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
39240 relocation area.
39241
9902d047 392422009-03-01 Bean <bean123ch@gmail.com>
39243
50fb7002 39244 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
9902d047 39245 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
39246 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
39247 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
39248
39249 * loader/i386/efi/linux.c (acpi_guid): New variable.
39250 (acpi_guid): Likewise.
39251 (EBDA_SEG_ADDR): New constant.
39252 (LOW_MEM_ADDR): Likewise.
39253 (FAKE_EBDA_SEG): Likewise.
39254 (fake_bios_data): New function.
39255 (grub_linux_boot): Call fake_bios_data.
39256
71b9f361 392572009-03-01 Bean <bean123ch@gmail.com>
39258
39259 * commands/terminal.c: Removed.
39260
39261 * commands/handler.c: New file.
39262
39263 * include/grub/list.h: Likewise.
39264
39265 * include/grub/handler.h: Likewise.
39266
39267 * kern/list.c: Likewise.
39268
39269 * kern/handler.c: Likewise.
39270
39271 * kern/term.h: Include header file <grub/handler.h>.
39272 (grub_term_input): Move next field to the beginning.
39273 (grub_term_output): Likewise.
39274 (grub_term_input_class): New variable.
39275 (grub_term_output_class): Likewise.
39276 (grub_term_register_input): Changed to inline function.
39277 (grub_term_register_output): Likewise.
39278 (grub_term_unregister_input): Likewise.
39279 (grub_term_unregister_output): Likewise.
39280 (grub_term_set_current_input): Likewise.
39281 (grub_term_set_current_output): Likewise.
39282 (grub_term_get_current_input): Likewise.
39283 (grub_term_get_current_output): Likewise.
39284 (grub_term_iterate_input): Removed.
39285 (grub_term_iterate_output): Likewise.
39286
39287 * kern/term.c (grub_term_list_input): Removed.
39288 (grub_term_list_output): Likewise.
39289 (grub_term_input_class): New variable.
39290 (grub_term_output_class): Likewise.
50fb7002 39291 (grub_cur_term_input): Change variable as macro.
71b9f361 39292 (grub_cur_term_output): Likewise.
39293 (grub_term_register_input): Removed.
39294 (grub_term_register_output): Likewise.
39295 (grub_term_unregister_input): Likewise.
39296 (grub_term_unregister_output): Likewise.
39297 (grub_term_set_current_input): Likewise.
39298 (grub_term_set_current_output): Likewise.
39299 (grub_term_iterate_input): Likewise.
39300 (grub_term_iterate_output): Likewise.
39301 (grub_term_get_current_input): Likewise.
39302 (grub_term_get_current_output): Likewise.
39303
39304 * util/grub-editenv.c: Include header file <grub/handler.h>.
39305 (grub_term_get_current_input): Removed.
39306 (grub_term_get_current_output): Likewise.
39307 (grub_term_input_class): New variable.
50fb7002 39308 (grub_term_output_class): Likewise.
71b9f361 39309
39310 * util/grub-fstest.c (grub_term_get_current_input): Removed.
39311 (grub_term_get_current_output): Likewise.
39312 (grub_term_input_class): New variable.
50fb7002 39313 (grub_term_output_class): Likewise.
71b9f361 39314
39315 * util/grub-probe.c (grub_term_get_current_input): Removed.
39316 (grub_term_get_current_output): Likewise.
39317 (grub_term_input_class): New variable.
50fb7002 39318 (grub_term_output_class): Likewise.
71b9f361 39319
39320 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
39321 (grub_term_get_current_output): Likewise.
39322 (grub_term_input_class): New variable.
50fb7002 39323 (grub_term_output_class): Likewise.
71b9f361 39324
39325 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
39326 (terminal_mod_SOURCES): Likewise.
39327 (terminal_mod_CFLAGS): Likewise.
39328 (terminal_mod_LDFLAGS): Likewise.
39329
39330 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
39331 handler.c.
39332 (kernel_img_SOURCES): Add list.c and handler.c.
39333 (kernel_img_HEADERS): Add list.h and handler.h.
39334
39335 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
39336 handler.c.
39337 (kernel_mod_SOURCES): Add list.c and handler.c.
39338 (kernel_mod_HEADERS): Add list.h and handler.h.
39339
39340 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
39341 handler.c.
39342 (kernel_elf_SOURCES): Add list.c and handler.c.
39343 (kernel_elf_HEADERS): Add list.h and handler.h.
39344
39345 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
39346 handler.c.
39347 (kernel_elf_SOURCES): Add list.c and handler.c.
39348 (kernel_elf_HEADERS): Add list.h and handler.h.
39349
39350 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
39351 handler.c.
39352 (kernel_mod_SOURCES): Add list.c and handler.c.
39353 (kernel_mod_HEADERS): Add list.h and handler.h.
39354
39355 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
39356 handler.c.
39357 (kernel_elf_SOURCES): Add list.c and handler.c.
39358 (kernel_elf_HEADERS): Add list.h and handler.h.
39359
8a31787f 393602009-02-27 Robert Millan <rmh@aybabtu.com>
39361
39362 Factorize elf32 / elf64 code in Multiboot loader. This will
39363 prevent it from getting out of sync again.
39364
39365 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
39366 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
39367 grub_multiboot_load_elf64): Move from here ...
39368 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
39369 grub_multiboot_load_elf): ... to here (new file).
39370
51cd3dfc 393712009-02-27 Robert Millan <rmh@aybabtu.com>
39372
39373 * util/grub.d/10_linux.in: Rename "single-user mode" to
39374 "recovery mode".
39375
6e8c9c3a 393762009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
39377
39378 Don't leak in SCSI code.
39379 * disk/scsi.c (grub_scsi_close): free `scsi'.
39380
4b6bf4f9 393812009-02-27 Robert Millan <rmh@aybabtu.com>
39382
39383 * loader/i386/pc/multiboot.c: Move from here ...
39384 * loader/i386/multiboot.c: ... to here. Update all users.
39385
b9413424 393862009-02-27 Robert Millan <rmh@aybabtu.com>
39387
39388 Patch from Alexandre Bique <bique.alexandre@gmail.com>
39389 * util/i386/pc/grub-setup.c (setup): Fix directory path.
39390
50fb7002 393912009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
34519c3f 39392
39393 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
39394 b-tree.
39395
8cc50345 393962009-02-27 Robert Millan <rmh@aybabtu.com>
39397
39398 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
39399 `0x' qualifier as 0 when base is specified as parameter).
39400
6e09b8b7 394012009-02-24 Bean <bean123ch@gmail.com>
39402
39403 * configure.ac: Check for -mcmodel=large in x86_64 target.
39404
39405 * include/grub/efi/api.h (efi_call_10): New macro.
39406 (efi_wrap_10): New function.
39407
39408 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
39409 (GRUB_PE32_REL_BASED_HIGH): Likewise.
39410 (GRUB_PE32_REL_BASED_LOW): Likewise.
39411 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
39412 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
39413 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
39414 (GRUB_PE32_REL_BASED_SECTION): Likewise.
39415 (GRUB_PE32_REL_BASED_REL): Likewise.
39416 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
39417 (GRUB_PE32_REL_BASED_DIR64): Likewise.
39418 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
39419
39420 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
39421 issue.
39422
39423 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
39424 (efi_wrap_10): New function.
39425
39426 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
39427
39428 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
39429 MB/MBP model (NV chipset).
39430 (devdata_devs): Add devpath_5 to the list.
39431
39432 * load/i386/efi/linux.c (video_base): Remove variable.
39433 (RGB_MASK): New macro.
39434 (RGB_MAGIC): Likewise.
39435 (LINE_MIN): Likewise.
39436 (LINE_MAX): Likewise.
39437 (FBTEST_STEP): Likewise.
39438 (FBTEST_COUNT): Likewise.
39439 (fb_list): New variable.
39440 (grub_find_video_card): Remove function.
39441 (find_framebuf): New function.
39442 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
39443 line length.
39444
39445 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
39446 problem for x86_64.
39447
74b21bee 394482009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
39449
39450 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
39451
39452 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
39453 coding tool name.
39454
a455f472 394552009-02-22 Robert Millan <rmh@aybabtu.com>
39456
39457 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
39458 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
39459 in our relocation, instead of using it directly from heap. Also
39460 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
39461
6374daf3 394622009-02-21 Robert Millan <rmh@aybabtu.com>
39463
39464 Implement USB keyboard support (based on patch by Marco Gerards)
39465
39466 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
39467 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
39468 (usb_keyboard_mod_LDFLAGS): New variables.
39469
39470 * term/usb_keyboard.c: New file.
39471
8fa4ea70 394722009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
39473
39474 Corrected wrong declaration
39475
39476 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
39477
353976ac 394782009-02-14 Christian Franke <franke@computer.org>
39479
39480 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
39481 (grub_lspci_iter): Print class code and programming interface byte.
39482
6aa1169b 394832009-02-14 Christian Franke <franke@computer.org>
39484
39485 * gendistlist.sh: Ignore `.svn' directories.
39486
265372ca 394872009-02-14 Felix Zielcke <fzielcke@z-51.de>
39488
39489 * fs/fat.c: Add 2009 to Copyright line.
39490
9ff516f3 394912009-02-14 Christian Franke <franke@computer.org>
39492
39493 * commands/hdparm.c: New file. Provides `hdparm' command
39494 which sends ATA commands via grub_disk_ata_pass_through ().
39495
39496 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
39497
39498 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
39499 and <grub/cpu/io.h> to include/grub/ata.h.
39500 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
39501 (GRUB_CDROM_SECTOR_SIZE): Remove.
39502 (GRUB_ATA_*): Move to include/grub/ata.h.
39503 (GRUB_ATAPI_*): Likewise.
39504 (enum grub_ata_commands): Likewise.
39505 (enum grub_ata_timeout_milliseconds): Likewise.
39506 (struct grub_ata_device): Likewise.
39507 (grub_ata_regset): Likewise.
39508 (grub_ata_regget): Likewise.
39509 (grub_ata_regset2): Likewise.
39510 (grub_ata_regget2): Likewise.
39511 (grub_ata_check_ready): Likewise.
39512 (grub_ata_wait_not_busy): Remove static, exported in
39513 include/grub/ata.h.
39514 (grub_ata_wait_drq): Likewise.
39515 (grub_ata_pio_read): Likewise.
39516
39517 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
39518 function for hdparm.mod.
39519
39520 * include/grub/ata.h: New file, contains declarations from
39521 disk/ata.c.
39522 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
39523
39524 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
39525 (grub_disk_ata_pass_through): New exported variable.
39526
39527 * kern/disk.c (grub_disk_ata_pass_through): New variable.
39528
772e23da 395292009-02-13 Colin D Bennett <colin@gibibit.com>
39530
39531 Support multiple fallback entries, and provide an API to support
39532 executing default+fallback menu entries. Renamed the `terminal' menu
39533 viewer to `text'.
39534
39535 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
39536 variable declaration.
39537 (grub_menu_execute_callback): New structure declaration.
39538 (grub_menu_execute_callback_t): New typedef.
39539 (grub_menu_execute_with_fallback): New function declaration.
39540 (grub_menu_get_entry): Likewise.
39541 (grub_menu_get_timeout): Likewise.
39542 (grub_menu_set_timeout): Likewise.
39543
39544 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
39545
39546 * normal/menu.c (grub_wait_after_message): Moved to
39547 `normal/menu_text.c'.
39548 (draw_border): Likewise.
39549 (print_message): Likewise.
39550 (print_entry): Likewise.
39551 (print_entries): Likewise.
39552 (grub_menu_init_page): Likewise.
39553 (get_entry_number): Likewise.
39554 (print_timeout): Likewise.
39555 (run_menu): Likewise.
39556 (grub_menu_execute_entry): Likewise.
39557 (show_text_menu): Likewise.
39558 (get_and_remove_first_entry_number): New function.
39559 (grub_menu_execute_with_fallback): Likewise.
39560 (get_entry): Renamed to ...
39561 (grub_menu_get_entry): .. this and made it global.
39562 (get_timeout): Renamed to ...
39563 (grub_menu_get_timeout): ... this and made it global.
39564 (set_timeout): Renamed to ...
39565 (grub_menu_set_timeout): ... this and made it global.
39566 (grub_normal_terminal_menu_viewer): Renamed to ...
39567 (grub_normal_text_menu_viewer): ... this.
39568
39569 * normal/menu_text.c: New file. Extracted text-menu-specific code
39570 from normal/menu.c.
39571
39572 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
39573 (normal_mod_SOURCES): Likewise.
39574
39575 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39576 (normal_mod_SOURCES): Likewise.
39577
39578 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39579 (normal_mod_SOURCES): Likewise.
39580
39581 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
39582 (normal_mod_SOURCES): Likewise.
39583
39584 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39585 (normal_mod_SOURCES): Likewise.
39586
39587 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39588 (normal_mod_SOURCES): Likewise.
39589
39590 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
39591 (normal_mod_SOURCES): Likewise.
39592
16ac430e 395932009-02-11 Robert Millan <rmh@aybabtu.com>
39594
39595 * util/grub.d/00_header.in: Update old reference to `font' command.
39596
06ff20fc 395972009-02-10 Felix Zielcke <fzielcke@z-51.de>
39598
39599 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
39600
39601 Based on patch from Javier Martín.
39602
96da9407 396032009-02-09 Felix Zielcke <fzielcke@z-51.de>
39604
39605 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
50fb7002 39606 to avoid false positives with FAT.
96da9407 39607 (grub_fstest_SOURCES): Likewise.
39608 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
39609 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
39610 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39611 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
39612 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39613 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39614
6dca6fe4 396152009-02-09 Felix Zielcke <fzielcke@z-51.de>
39616
06ff20fc 39617 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6dca6fe4 39618 bpb.version_specific.fat12_or_fat16.fstype and
39619 bpb.version_specific.fat32.fstype.
39620
2550c62f 396212009-02-08 Robert Millan <rmh@aybabtu.com>
39622
be110b30 39623 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
2550c62f 39624
56978920 396252009-02-08 Robert Millan <rmh@aybabtu.com>
39626
39627 * Makefile.in (host_os, host_cpu): New variables.
39628 (target_os): Remove. Update all users.
39629
d64399b5 396302009-02-08 Marco Gerards <marco@gnu.org>
39631
39632 * Makefile.in (enable_grub_emu_usb): New variable.
39633 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
39634 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
39635 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
39636 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
39637 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
39638 `usbtest.mod' and `usbms.mod'.
39639 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
39640 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
39641 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
39642 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
39643 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
39644 variables.
39645
39646 * disk/usbms.c: New file.
39647
39648 * include/grub/usb.h: Likewise.
39649
39650 * include/grub/usbtrans.h: Likewise.
39651
39652 * include/grub/usbdesc.h: Likewise.
39653
39654 * bus/usb/usbtrans.c: Likewise.
39655
39656 * bus/usb/ohci.c: Likewise.
39657
39658 * bus/usb/uhci.c: Likewise.
39659
39660 * bus/usb/usbhub.c: Likewise.
39661
39662 * bus/usb/usb.c: Likewise.
39663
39664 * commands/usbtest.c: Likewise.
39665
39666 * util/usb.c: Likewise.
50fb7002 39667
d64399b5 39668 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
39669
39670 * configure.ac: Test for libusb presence.
50fb7002 39671
d64399b5 39672 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
39673
2b40d6bb 396742009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
39675
39676 * kern/mm.c: Add more comments.
39677
73a4ce81 396782009-02-08 Robert Millan <rmh@aybabtu.com>
39679
39680 Patch from Javier Martín.
39681 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
39682 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
39683
f821ce59 396842009-02-08 Robert Millan <rmh@aybabtu.com>
39685
39686 * fs/cpio.c: Split tar functionality to ...
39687 * fs/tar.c: ... here (new file). Update all users.
39688
aebfc4b0 396892009-02-07 Robert Millan <rmh@aybabtu.com>
39690
39691 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
39692 backward-incompatible features.
39693
39694 Based on patch from Javier Martín, with some adjustments.
39695
50fb7002 396962009-02-07 Michael Scherer <misc@mandriva.org>
cea15bca 39697
39698 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
39699
0bb5115e 397002009-02-07 Robert Millan <rmh@aybabtu.com>
39701
39702 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
39703 position of `disk/lvm.c' to ensure grub_init_all() always picks it
39704 after the RAID stuff.
39705
38a0f8e7 397062009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
39707
50fb7002 39708 Fixes problem when running vbetest command as reported by
38a0f8e7 39709 Vladimir Serbinenko <phcoder@gmail.com>.
39710
39711 * (grub_vbe_set_video_mode): Fixed problem with text modes.
39712
3143cc1c 397132009-02-04 Felix Zielcke <fzielcke@z-51.de>
39714
39715 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
39716 /dev/md/NpN style mdraid devices.
39717
9cba6fce 397182009-02-03 Felix Zielcke <fzielcke@z-51.de>
39719
39720 * util/unifont2pff.rb: Remove.
39721
e507a2c1 397222009-02-03 Felix Zielcke <fzielcke@z-51.de>
39723
39724 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
39725 `#'.
39726
d2c2b4cd 397272009-02-03 Felix Zielcke <fzielcke@z-51.de>
39728
39729 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
39730 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39731 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
39732 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
39733 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39734 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39735 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39736
b4315fb0 397372009-02-02 Christian Franke <franke@computer.org>
39738
39739 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
39740
de3aa260 397412009-02-01 Felix Zielcke <fzielcke@z-51.de>
39742
7c3ff286 39743 * INSTALL: Note that we now require at least autoconf 2.59 and
39744 that LZO is optional.
de3aa260 39745
825a182b 397462009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
39747
39748 Base on patch on bug #24154 created by Tomas Tintera
39749 <trosos@seznam.cz>.
39750
39751 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
39752
a69ef770 397532009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
39754
7c3ff286 39755 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
a69ef770 39756 <bero@arklinux.org>.
39757
39758 * normal/parser.y (script_init): Add missing semicolon.
39759
6fa42fa6 397602009-01-31 Colin D Bennett <colin@gibibit.com>
39761
7c3ff286 39762 * normal/main.c: Add include to grub/menu_viewer.h.
6fa42fa6 39763 (free_menu_entry_classes): Added.
39764 (grub_normal_menu_addentry): Added class property handling.
39765 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
39766 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
39767
39768 * normal/menu_viewer.c: New file.
39769
39770 * normal/menu.c (run_menu_entry): Renamed to ...
39771 (grub_menu_execute_entry): ... this and made it as global.
39772 (grub_menu_run): Renamed to ...
39773 (show_text_menu): ... this and made it local.
39774 (show_text_menu): Adapt to new function names.
39775 (grub_normal_terminal_menu_viewer): New global variable.
39776
39777 * include/grub/menu.h: New file.
39778
39779 * include/grub/menu_viewer.h: New file.
39780
39781 * include/grub/normal.h: Added include to grub/menu.h.
39782 (grub_menu_entry): Moved to include/grub/menu.h.
39783 (grub_menu_entry_t): Likewise.
39784 (grub_menu): Likewise.
39785 (grub_menu_t): Likewise.
39786 (grub_normal_terminal_menu_viewer): Added.
39787 (grub_menu_execute_entry): Likewise.
39788 (grub_menu_run): Removed.
39789
39790 * DISTLIST: Added include/grub/menu.h.
39791 Added include/grub/menu_viewer.h.
39792 Added normal/menu_viewer.c.
39793
397942009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
39795
39796 * normal/execute.c (grub_script_execute_menuentry): Changed to use
39797 arglist for menutitle arguments.
39798
39799 * normal/main.c (grub_normal_menu_addentry): Likewise.
39800
39801 * normal/parser.y (menuentry): Likewise.
39802
39803 * normal/script.c (grub_script_create_cmdmenu): Likewise.
39804
39805 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
39806 (grub_script_create_cmdmenu): Likewise.
39807
39808 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
39809
39810 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
39811 changes.
39812
39813 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
39814
39815 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
39816
39817 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
39818
39819 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
39820
39821 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
39822
39823 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
39824
56192c23 398252009-01-30 Christian Franke <franke@computer.org>
39826
39827 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
39828 in option help text.
39829
d72521b3 398302009-01-27 Pavel Roskin <proski@gnu.org>
39831
39832 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
39833
994b5e84 398342009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
39835
39836 * commands/lsmmap.c: Add include to grub/machine/memory.h.
39837
39838 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
39839
39840 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
39841 unregister function.
39842
6a7eab2c 398432009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
39844
39845 * disk/scsi.c (grub_scsi_read): Fix sign problem.
39846
39847 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
39848
39849 * util/grub-mkfont.c (usage): Fix typo.
39850
39851 * util/elf/grub-mkimage.c (load_modules): Fix warning.
39852
1806b56e 398532009-01-26 Daniel Mierswa <impulze@impulze.org>
39854
3fb18f09 39855 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
39856
336e1fb9 39857 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
39858
1806b56e 39859 * kern/misc.c (grub_strcasecmp): New function.
39860 (grub_strcasecmp): Use grub_size_t instead of int for length.
39861 Fix return value.
39862 * include/grub/misc.h: Update function prototypes.
39863
580b2a0f 398642009-01-26 Robert Millan <rmh@aybabtu.com>
39865
39866 * configure.ac: Fix cross-compilation check.
ef257b36 39867
d31c24f1 398682009-01-22 Christian Franke <franke@computer.org>
39869
39870 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
39871 (precision) digit string. Allow `.format2' without `format1' (width).
39872 Limit input chars for `%s' output to `format2' if specified. This is
39873 compatible with standard printf ().
39874
3138b44c 398752009-01-22 Christian Franke <franke@computer.org>
39876
39877 * disk/ata.c (grub_ata_wait_status): Replace by ...
39878 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
39879 other status bits may be invalid while BSY is asserted.
39880 (grub_ata_check_ready): New function.
39881 (grub_ata_cmd): Removed.
39882 (grub_ata_wait_drq): New function.
39883 (grub_ata_strncpy): Remove inline.
39884 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
39885 and error check now done by grub_ata_wait_drq ().
39886 (grub_ata_pio_write): Likewise.
39887 (grub_atapi_identify): Set DEV before check for !BSY. Use
39888 grub_ata_wait_drq () to wait for data.
39889 (grub_ata_device_initialize): Add status register check to
39890 detect missing SATA slave devices. Add debug messages.
39891 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
39892 (grub_atapi_packet): Set DEV before check for !BSY. Replace
39893 transfer loop by grub_ata_pio_write ().
39894 (grub_ata_identify): Set DEV before check for !BSY. Use
39895 grub_ata_wait_drq () to wait for data.
ef257b36 39896 (grub_ata_setaddress): Set DEV before check for !BSY.
3138b44c 39897 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
39898 read/write in one loop. Fix invalid command on write. Fix incomplete
39899 command on (size % batch) == 0. Add missing error check after write of
39900 last block. Add debug messages.
39901 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
39902
59a64ef6 399032009-01-19 Christian Franke <franke@computer.org>
39904
39905 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
39906 (GRUB_ATAPI_IREASON_*): Likewise.
39907 (grub_ata_pio_write): Fix timeout error return.
39908 (grub_atapi_identify): Add grub_ata_wait () after cmd.
39909 (grub_atapi_wait_drq): New function.
39910 (grub_atapi_packet): New parameter `size'.
39911 Use grub_atapi_wait_drq () and direct write instead of
39912 grub_ata_pio_write ().
39913 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
39914 reads the number of bytes requested by the device for each DRQ
39915 assertion.
39916 (grub_atapi_write): Remove old implementation, return not
39917 implemented instead.
39918
1cfe20b3 399192009-01-19 Christian Franke <franke@computer.org>
39920
39921 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
39922 of 512 to calculate data size.
39923 (grub_scsi_read12): Likewise.
39924 (grub_scsi_write10): Likewise.
39925 (grub_scsi_write12): Likewise.
39926 (grub_scsi_read): Adjust size according to blocksize.
39927 Add checks for invalid blocksize and unaligned transfer.
39928
bee5fe5d 399292009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
39930
39931 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
39932
ef257b36 39933 * term/gfxterm.c (write_char): Fix background rendering for wide
bee5fe5d 39934 width glyphs.
39935
3e643f8c 399362009-01-19 Robert Millan <rmh@aybabtu.com>
39937
39938 * config.guess: Update to latest version from config git.
39939 * config.sub: Likewise.
39940
4fa80998 399412009-01-17 Felix Zielcke <fzielcke@z-51.de>
39942
39943 * Makefile.in: Change font compilation to use new grub-mkfont instead
39944 of java version.
39945
39946 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
39947 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
39948 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
39949 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
39950 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
39951 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
39952 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
39953 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
39954 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
39955
7086085b 399562009-01-16 Christian Franke <franke@computer.org>
39957
39958 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
39959 (enum grub_ata_timeout_milliseconds): New enum.
39960 (grub_ata_wait_status): Add parameter milliseconds.
39961 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
39962 recovery from timed-out commands.
39963 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
39964 return grub_errno instead of REG_ERROR.
39965 (grub_ata_pio_write): Add parameter milliseconds.
39966 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
39967 Pass milliseconds to grub_ata_wait_status () and
39968 grub_ata_pio_read ().
39969 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
39970 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
39971 grub_ata_wait_status (). Fix IDENTIFY timeout check.
39972 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
39973 It is not suitable for device detection, because DEV bit is ignored,
39974 the command may run too long, and not all devices set the signature
39975 properly.
39976 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
39977 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
39978 Fix device selection, DEV bit must be set first to address the registers
39979 of the correct device.
39980 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
39981 grub_ata_pio_read/write ().
39982 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
39983 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
39984
4a412913 399852009-01-13 Carles Pina i Estany <carles@pina.cat>
39986
39987 * util/grub-editenv.c (main): Use fseeko(), not fseek().
39988
7795c55e 399892009-01-13 Bean <bean123ch@gmail.com>
d913988c 39990
39991 * util/grub-mkfont.c (write_font): forget to remove some debug code.
39992
7795c55e 399932009-01-13 Bean <bean123ch@gmail.com>
e52db1f7 39994
39995 * Makefile.in: (enable_grub_mkfont): New variable.
39996 (freetype_cflags): Likewise.
39997 (freetype_libs): Likewise.
39998
39999 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
40000 (grub_mkfont_SOURCES): New variable.
40001 (grub_mkfont_CFLAGS): Likewise.
40002 (grub_mkfont_LDFLAGS): Likewise.
40003
40004 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
40005 library if `--enable-grub-mkfont' is requested.
40006 (enable_grub_mkfont): New variable.
40007 (freetype_cflags): Likewise.
40008 (freetype_libs): Likewise.
40009
40010 * util/grub-mkfont.c: New file.
40011
093af1fe 400122009-01-12 Christian Franke <franke@computer.org>
40013
40014 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
40015 mode check. Fix setting of compat_use[].
40016
f36cc108 400172009-01-10 Robert Millan <rmh@aybabtu.com>
40018
40019 Update a few copyright years which we forgot to do in 2008 (only for
40020 files whose changes made in 2008 were copyright-significant)
40021
40022 * Makefile.in: Add 2008 to Copyright line.
40023 * disk/ieee1275/ofdisk.c: Likewise.
40024 * disk/efi/efidisk.c: Likewise.
40025 * kern/dl.c: Likewise.
40026 * kern/sparc64/ieee1275/init.c: Likewise.
40027 * kern/mm.c: Likewise.
40028 * kern/efi/mm.c: Likewise.
40029 * boot/i386/pc/boot.S: Likewise.
40030 * genfslist.sh: Likewise.
40031 * fs/iso9660.c: Likewise.
40032 * fs/hfs.c: Likewise.
40033 * fs/jfs.c: Likewise.
40034 * fs/minix.c: Likewise.
40035 * fs/ufs.c: Likewise.
40036 * gensymlist.sh.in: Likewise.
40037 * genkernsyms.sh.in: Likewise.
40038 * include/grub/misc.h: Likewise.
40039 * include/grub/types.h: Likewise.
40040 * include/grub/symbol.h: Likewise.
40041 * include/grub/elf.h: Likewise.
40042 * include/grub/kernel.h: Likewise.
40043 * include/grub/disk.h: Likewise.
40044 * include/grub/dl.h: Likewise.
40045 * include/grub/i386/linux.h: Likewise.
40046 * include/grub/i386/pc/biosdisk.h: Likewise.
40047 * include/grub/efi/api.h: Likewise.
40048 * include/grub/efi/pe32.h: Likewise.
40049 * include/grub/util/misc.h: Likewise.
40050 * normal/execute.c: Likewise.
40051 * normal/arg.c: Likewise.
40052 * normal/completion.c: Likewise.
40053 * normal/lexer.c: Likewise.
40054 * normal/parser.y: Likewise.
40055 * normal/misc.c: Likewise.
40056 * commands/i386/pc/vbeinfo.c: Likewise.
40057 * commands/hexdump.c: Likewise.
40058 * commands/terminal.c: Likewise.
40059 * commands/ls.c: Likewise.
40060 * commands/help.c: Likewise.
40061 * partmap/pc.c: Likewise.
40062 * loader/efi/chainloader.c: Likewise.
40063 * loader/multiboot_loader.c: Likewise.
40064 * loader/i386/pc/multiboot2.c: Likewise.
40065 * term/efi/console.c: Likewise.
40066 * term/i386/pc/serial.c: Likewise.
40067 * util/lvm.c: Likewise.
40068 * util/console.c: Likewise.
40069 * util/i386/efi/grub-mkimage.c: Likewise.
40070 * util/raid.c: Likewise.
40071
7f02114b 400722009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
40073
40074 * commands/videotest.c: Removed include to grub/machine/memory.h.
40075
40076 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
40077 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
40078 (video_mod_SOURCES): Removed.
40079 (video_mod_CFLAGS): Likewise.
40080 (video_mod_LDFLAGS): Likewise.
40081 (gfxterm_mod_SOURCES): Likewise.
40082 (gfxterm_mod_CFLAGS): Likewise.
40083 (gfxterm_mod_LDFLAGS): Likewise.
40084 (videotest_mod_SOURCES): Likewise.
40085 (videotest_mod_CFLAGS): Likewise.
40086 (videotest_mod_LDFLAGS): Likewise.
40087 (bitmap_mod_SOURCES): Likewise.
40088 (bitmap_mod_CFLAGS): Likewise.
40089 (bitmap_mod_LDFLAGS): Likewise.
40090 (tga_mod_SOURCES): Likewise.
40091 (tga_mod_CFLAGS): Likewise.
40092 (tga_mod_LDFLAGS): Likewise.
40093 (jpeg_mod_SOURCES): Likewise.
40094 (jpeg_mod_CFLAGS): Likewise.
40095 (jpeg_mod_LDFLAGS): Likewise.
40096 (png_mod_SOURCES): Likewise.
40097 (png_mod_CFLAGS): Likewise.
40098 (png_mod_LDFLAGS): Likewise.
40099
40100 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
40101 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
40102 (video_mod_SOURCES): Added.
40103 (video_mod_CFLAGS): Likewise.
40104 (video_mod_LDFLAGS): Likewise.
40105 (videotest_mod_SOURCES): Likewise.
40106 (videotest_mod_CFLAGS): Likewise.
40107 (videotest_mod_LDFLAGS): Likewise.
40108 (bitmap_mod_SOURCES): Likewise.
40109 (bitmap_mod_CFLAGS): Likewise.
40110 (bitmap_mod_LDFLAGS): Likewise.
40111 (tga_mod_SOURCES): Likewise.
40112 (tga_mod_CFLAGS): Likewise.
40113 (tga_mod_LDFLAGS): Likewise.
40114 (jpeg_mod_SOURCES): Likewise.
40115 (jpeg_mod_CFLAGS): Likewise.
40116 (jpeg_mod_LDFLAGS): Likewise.
40117 (png_mod_SOURCES): Likewise.
40118 (png_mod_CFLAGS): Likewise.
40119 (png_mod_LDFLAGS): Likewise.
40120 (gfxterm_mod_SOURCES): Likewise.
40121 (gfxterm_mod_CFLAGS): Likewise.
7795c55e 40122 (gfxterm_mod_LDFLAGS): Likewise.
7f02114b 40123
40124 * term/gfxterm.c: Removed include to grub/machine/memory.h,
40125 grub/machine/console.h.
40126
644fff97 401272009-01-04 Jerone Young <jerone@gmail.com>
40128
40129 Make on screen instructions clearer
40130
40131 Based on patch created by Jidanni <jidanni@jidanni.org>
40132
40133 * normal/menu.c: print clearer instructions on the screen
40134
1e901a75 401352009-01-02 Colin D Bennett <colin@gibibit.com>
40136
40137 New font engine.
34c44600 40138
1e901a75 40139 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
40140 build system and fixed gfxterm.c to work with different sized fonts.
40141
40142 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34c44600 40143
1e901a75 40144 * configure: Re-generated.
34c44600 40145
1e901a75 40146 * DISTLIST: Removed font/manager.c.
40147 Added font/font.c.
40148 Added font/font_cmd.c.
34c44600 40149
1e901a75 40150 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
40151 compilation.
34c44600 40152
1e901a75 40153 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34c44600 40154
40155 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
1e901a75 40156
40157 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34c44600 40158
1e901a75 40159 * normal/menu.c: Likewise.
34c44600 40160
1e901a75 40161 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
40162 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34c44600 40163
1e901a75 40164 * include/grub/font.h: Replaced with new file.
34c44600 40165
1e901a75 40166 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
40167 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
40168 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
40169 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
40170 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34c44600 40171 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
1e901a75 40172 fg_red, fg_green, fg_blue, fg_alpha.
40173 (grub_video_adapter): Removed blit_glyph.
34c44600 40174 (grub_video_blit_glyph): Removed.
40175
1e901a75 40176 * font/manager.c: Removed file.
34c44600 40177
40178 * font/font.c: New file.
40179
1e901a75 40180 * font/font_cmd.c: Likewise.
34c44600 40181
1e901a75 40182 * video/video.c (grub_video_blit_glyph): Removed.
34c44600 40183
1e901a75 40184 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
40185 (grub_video_vbe_map_rgba): Likewise.
40186 (grub_video_vbe_unmap_color_int): Likewise.
40187 (grub_video_vbe_blit_glyph): Removed.
40188 (grub_video_vbe_adapter): Removed blit_glyph.
34c44600 40189
1e901a75 40190 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
40191 (get_pixel): Likewise.
34c44600 40192 (set_pixel): Likewise.
40193
1e901a75 40194 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34c44600 40195
1e901a75 40196 * term/gfxterm.c: Adapted to new font engine.
34c44600 40197
1e901a75 40198 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34c44600 40199
1e901a75 40200 * term/i386/pc/vga.c: Likewise.
34c44600 40201
1e901a75 40202 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34c44600 40203
1e901a75 40204 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34c44600 40205
1e901a75 40206 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 40207
1e901a75 40208 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 40209
1e901a75 40210 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34c44600 40211
1e901a75 40212 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34c44600 40213
1e901a75 40214 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34c44600 40215
1e901a75 40216 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34c44600 40217
1e901a75 40218 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
40219
40220 * util/grub.d/00_header.in: Changed to use new loadfont command.
34c44600 40221
1e901a75 40222 * util/grub-mkconfig_lib.in: Changed font extension.
40223
278922e8 402242008-12-28 Felix Zielcke <fzielcke@z-51.de>
40225
40226 * util/getroot.c (grub_util_get_grub_dev): Add support for
40227 /dev/md/dNNpNN style partitionable mdraid devices.
40228
3ced05cf 402292008-12-12 Alex Smith <alex@alex-smith.me.uk>
40230
40231 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
40232 at a time limit of the PXE TFTP API correctly.
40233 (grub_pxefs_close): Likewise.
40234
7fd0ee30 402352008-11-29 Robert Millan <rmh@aybabtu.com>
40236
34c44600 40237 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
7fd0ee30 40238 grub_ata_device_initialize() calls.
40239
34c44600 402402008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
0c5e79ab 40241
40242 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
40243 iteration failed.
40244 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
40245
89313780 402462008-11-28 Robert Millan <rmh@aybabtu.com>
40247
40248 Fix build on powerpc-ieee1275. Based on patch created by
40249 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
40250 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
40251 `kern/ieee1275/mmap.c'.
40252 * include/grub/powerpc/ieee1275/memory.h: New file.
40253
15257703 40254 Provide grub-install on coreboot.
40255 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
40256 (grub_install_SOURCES): New variable.
40257 * util/i386/pc/grub-install.in: Add a few condition checks to make it
40258 usable on coreboot.
40259
9fc5388a 402602008-11-25 Felix Zielcke <fzielcke@z-51.de>
40261
40262 * util/grub-fstest.c (grub_term_get_current_input): Change return type
40263 to `grub_term_input_t'.
40264 (grub_term_get_current_output): Change return type to
40265 `grub_term_output_t'.
40266
bc3a2f31 402672008-11-22 Robert Millan <rmh@aybabtu.com>
40268
34c44600 40269 Fix breakage on coreboot due to declaration mismatch.
bc3a2f31 40270 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
40271 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
40272 grub_vga_text_cls().
40273
80fc88f2 40274 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34c44600 40275 comments. Avoid copying one more byte than necessary (just in case).
80fc88f2 40276
cbf36fd3 40277 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
40278 to 0x200000 (avoids trouble with some OFW implementations, and matches
40279 with the one in Yaboot).
40280 Reported by Manoel Abranches
40281
73e8e268 402822008-11-20 Robert Millan <rmh@aybabtu.com>
3cf6ac19 40283
40284 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
40285 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
40286
73e8e268 40287 * util/grub-mkconfig_lib.in (grub_warn): New function.
40288 (convert_system_path_to_grub_path): Use grub_warn() when issuing
40289 warnings, to obtain consistent formatting.
40290 * util/grub.d/00_header.in: Likewise.
40291 * util/update-grub_lib.in: Likewise.
40292
e94045a1 40293 * loader/i386/linux.c (allocate_pages): Fix a warning.
40f9faa4 40294 Move comment text to `#error' stanza.
e94045a1 40295
79d29fd7 40296 Harmonize ieee1275's grub_available_iterate() with the generic
40297 grub_machine_mmap_iterate() interface (fixes a recently-introduced
40298 build problem on i386-ieee1275):
40299 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
40300 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
40301 parameter `type'. Update all users of this function.
40302 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
40303 `kern/ieee1275/mmap.c'.
40304 * kern/ieee1275/init.c
40305 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
40306 with ...
40307 (grub_machine_mmap_iterate): ... this.
40308 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
40309 return type to `grub_err_t'. Update all implementations of this
40310 function prototype.
40311 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
40312 Likewise.
40313
60d6b16e 40314 Add `lsmmap' command (lists firmware-provided memory map):
40315 * commands/lsmmap.c: New file.
40316 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
40317 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
40318 variables.
40319 * conf/powerpc-ieee1275.rmk: Likewise.
40320 * conf/i386-coreboot.rmk: Likewise.
40321 * conf/i386-ieee1275.rmk: Likewise.
40322
ebaaf49b 403232008-11-19 Robert Millan <rmh@aybabtu.com>
40324
40325 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
92907110 40326 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
40327 constraints to initrd allocation (based on code from
40328 loader/i386/pc/linux.c). Without them, initrd was allocated too high
40329 for Linux to find it.
ebaaf49b 40330
dfab719f 403312008-11-14 Robert Millan <rmh@aybabtu.com>
40332
40333 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
40334 order to cope with duplicate slashes.
40335
10fc3eb9 403362008-11-14 Robert Millan <rmh@aybabtu.com>
40337
40338 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
40339 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
40340 don't want to mess with lower memory, because it is used in the Linux
40341 loader.
40342
40343 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34c44600 40344 an appropriate place in lower memory, between 0x10000 and 0x90000,
10fc3eb9 40345 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
40346 is in our heap (probably as a result of it being corrupted during
2f2a3442 40347 decompression). Add #error instance with comment to explain why this
40348 loader isn't currently usable on PC/BIOS.
10fc3eb9 40349
e2e07847 403502008-11-14 Robert Millan <rmh@aybabtu.com>
40351
40352 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34c44600 40353 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
e2e07847 40354
fe8e8d69 403552008-11-12 Robert Millan <rmh@aybabtu.com>
40356
40357 Make loader/i386/linux.c buildable on i386-pc (although disabled).
40358
40359 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
40360 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
40361 from here ...
40362 * include/grub/i386/pc/memory.h: ... to here.
40363
976b07d0 403642008-11-12 Robert Millan <rmh@aybabtu.com>
40365
40366 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
40367 split).
40368
40369 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
40370 (grub_console_cur_color, grub_console_real_putchar)
40371 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
40372 (grub_console_setcolorstate, grub_console_setcolor)
40373 (grub_console_getcolor): Move from here ...
40374 * include/grub/i386/vga_common.h: ... to here (new file).
40375
40376 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
40377 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
40378 `<grub/i386/io.h>'.
40379 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
40380 `<grub/i386/vga_common.h>'.
40381
76679cd3 403822008-11-12 Robert Millan <rmh@aybabtu.com>
40383
40384 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
40385 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
40386 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
40387 variables.
40388 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
40389 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
40390
40391 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
40392 grub_console_init() with call to grub_vga_text_init().
40393 (grub_machine_fini): Replace call to
40394 grub_console_fini() with call to grub_vga_text_fini() and
40395 grub_at_keyboard_fini().
40396
40397 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
40398 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
40399 (grub_console_setcolorstate, grub_console_setcolor)
40400 (grub_console_getcolor): New function prototypes.
40401
40402 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
40403 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
40404 (grub_vga_text_setcursor): Static-ize.
40405 (grub_vga_text_term): New structure.
40406 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
40407
40408 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
40409 (grub_console_cur_color, grub_console_standard_color)
40410 (grub_console_normal_color, grub_console_highlight_color)
40411 (map_char, grub_console_putchar, grub_console_getcharwidth)
40412 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
40413 (grub_console_getcolor): Move from here ...
40414 * term/i386/vga_common.c: ... to here (same function names).
40415
95b841d3 404162008-11-12 Robert Millan <rmh@aybabtu.com>
40417
40418 Use newly-added Multiboot support in coreboot.
40419
40420 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
40421 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
40422
40423 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
40424 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
40425 (codestart): Store the MBI in `startup_multiboot_info' when we're
40426 being loaded using Multiboot.
40427
40428 * kern/i386/coreboot/init.c (grub_machine_init): Move
40429 grub_at_keyboard_init() call to beginning of function (useful for
40430 debugging). Call grub_machine_mmap_init() before attempting to use
40431 grub_machine_mmap_iterate().
40432 (grub_lower_mem, grub_upper_mem): Move from here ...
40433 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
40434 here (new file).
40435
40436 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
40437 function prototype.
40438
761ca975 404392008-11-12 Robert Millan <rmh@aybabtu.com>
40440
40441 Fix a regression introduced by the at_keyboard.mod split. Because
40442 some terminals are default on some platforms and non-default on
40443 others, the first terminal being registered determines which is
40444 going to be default.
40445
40446 * kern/term.c (grub_term_register_input): If this is the first
40447 terminal being registered, set it as the current one.
40448 (grub_term_register_output): Likewise.
40449
40450 * term/efi/console.c (grub_console_init): Do not call
40451 grub_term_set_current_output() or grub_term_set_current_input().
40452 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
40453 * term/i386/pc/console.c (grub_console_init): Likewise.
40454 (grub_console_fini): Do not call grub_term_set_current_input()
40455 (but leave grub_term_set_current_output() to restore text mode).
40456
6c529df7 404572008-11-10 Robert Millan <rmh@aybabtu.com>
40458
40459 * util/grub.d/00_header.in: Add backward compatibility check for
40460 versions of terminal.mod that don't understand `terminal_input' or
40461 `terminal_output'.
40462
132e4113 404632008-11-09 Robert Millan <rmh@aybabtu.com>
40464
40465 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
40466 `terminal_input' / `terminal_output', not `terminal'.
40467
ac293d50 404682008-11-08 Robert Millan <rmh@aybabtu.com>
40469
40470 * Makefile.in (include_DATA): Fix srcdir=. assumption.
2a9c5940 40471 (DISTCLEANFILES): Add `build_env.mk'.
ac293d50 40472
0025933a 404732008-11-08 Robert Millan <rmh@aybabtu.com>
40474
40475 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
dba3f844 40476 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
0025933a 40477 members. Update all users.
40478 * util/console.c (grub_ncurses_term): Split in ...
40479 (grub_ncurses_term_input): ... this, and ...
40480 (grub_ncurses_term_output): ... this. Update all users.
dcb6fa0a 40481 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
0025933a 40482
37c86336 404832008-11-08 Robert Millan <rmh@aybabtu.com>
40484
40485 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
40486 (PKGDATA): Add $(pkgdata_SRCDIR).
40487 (pkglib_BUILDDIR): New variable.
40488 (pkgdata_SRCDIR): New variable.
40489 (build_env.mk): New target.
40490 (include_DATA): New variable.
40491 (install-local): Install $(include_DATA) files in $(includedir).
40492
b6c15a2d 404932008-11-07 Pavel Roskin <proski@gnu.org>
40494
d99d46f1 40495 * gendistlist.sh: Use C locale for sorting to ensure consistent
40496 output on all systems.
40497
b6c15a2d 40498 * util/grub.d/00_header.in: Remove incorrect space before
40499 "serial".
40500
c32ee8c9 405012008-11-07 Robert Millan <rmh@aybabtu.com>
40502
40503 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
40504 per specification.
40505 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
40506 * loader/multiboot_loader.c (find_multi_boot2_header): New function
40507 (based on find_multi_boot1_header).
40508 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
40509 using find_multi_boot2_header(), and abort if neither Multiboot or
40510 Multiboot headers were found.
40511
651c29b7 405122008-11-07 Robert Millan <rmh@aybabtu.com>
40513
40514 Modularize at_keyboard.mod:
40515
40516 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
40517 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
40518 (at_keyboard_mod_LDFLAGS): New variables.
40519
40520 Actual terminal split:
40521
40522 * include/grub/term.h (struct grub_term): Split in ...
40523 (struct grub_term_input): ... this, and ...
40524 (struct grub_term_output): ... this. Update all users.
40525 (grub_term_set_current): Split in ...
40526 (grub_term_set_current_input): ... this, and ...
40527 (grub_term_set_current_output): ... this.
40528 (grub_term_get_current): Split in ...
40529 (grub_term_get_current_input): ... this, and ...
40530 (grub_term_get_current_output): ... this.
40531 (grub_term_register): Split in ...
40532 (grub_term_register_input): ... this, and ...
40533 (grub_term_register_output): ... this.
40534 (grub_term_unregister): Split in ...
40535 (grub_term_unregister_input): ... this, and ...
40536 (grub_term_unregister_output): ... this.
40537 (grub_term_iterate): Split in ...
40538 (grub_term_iterate_input): ... this, and ...
40539 (grub_term_iterate_output): ... this.
40540
40541 * kern/term.c (grub_term_list): Split in ...
40542 (grub_term_list_input): ... this, and ...
40543 (grub_term_list_output): ... this. Update all users.
40544 (grub_cur_term): Split in ...
40545 (grub_cur_term_input): ... this, and ...
40546 (grub_cur_term_output): ... this. Update all users.
40547 (grub_term_set_current): Split in ...
40548 (grub_term_set_current_input): ... this, and ...
40549 (grub_term_set_current_output): ... this.
40550 (grub_term_get_current): Split in ...
40551 (grub_term_get_current_input): ... this, and ...
40552 (grub_term_get_current_output): ... this.
40553 (grub_term_register): Split in ...
40554 (grub_term_register_input): ... this, and ...
40555 (grub_term_register_output): ... this.
40556 (grub_term_unregister): Split in ...
40557 (grub_term_unregister_input): ... this, and ...
40558 (grub_term_unregister_output): ... this.
40559 (grub_term_iterate): Split in ...
40560 (grub_term_iterate_input): ... this, and ...
40561 (grub_term_iterate_output): ... this.
40562
40563 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
40564 a check for input and one for output (and only attempt to get keys
40565 from user when input works).
40566
40567 * util/grub-probe.c (grub_term_get_current): Split in ...
40568 (grub_term_get_current_input): ... this, and ...
40569 (grub_term_get_current_output): ... this.
40570 * util/grub-fstest.c: Likewise.
40571 * util/i386/pc/grub-setup.c: Likewise.
40572 * util/grub-editenv.c: Likewise.
40573
40574 Portability adjustments:
40575
40576 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
40577 `term/i386/pc/at_keyboard.c'.
40578 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
40579 grub_keyboard_controller_init() (now handled by terminal .init).
40580 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
40581 grub_at_keyboard_init().
40582 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
40583 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
40584 at_keyboard.mod via input terminal interface).
40585 * include/grub/i386/coreboot/console.h: Convert into a stub for
40586 `<grub/i386/pc/console.h>'.
40587
40588 Migrate full terminals to new API:
40589
40590 * term/efi/console.c (grub_console_term): Split into ...
40591 (grub_console_term_input): ... this, and ...
40592 (grub_console_term_output): ... this. Update all users.
40593 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
40594 (grub_ofconsole_init): Split into ...
40595 (grub_ofconsole_init_input): ... this, and ...
40596 (grub_ofconsole_init_output): ... this.
40597 (grub_ofconsole_term): Split into ...
40598 (grub_ofconsole_term_input): ... this, and ...
40599 (grub_ofconsole_term_output): ... this. Update all users.
40600 * term/i386/pc/serial.c (grub_serial_term): Split into ...
40601 (grub_serial_term_input): ... this, and ...
40602 (grub_serial_term_output): ... this. Update all users.
40603 * term/i386/pc/console.c (grub_console_term): Split into ...
40604 (grub_console_term_input): ... this, and ...
40605 (grub_console_term_output): ... this. Update all users.
40606 (grub_console_term_input): Only enable it on PC/BIOS platform.
40607 (grub_console_init): Remove grub_keyboard_controller_init() call.
40608
40609 Migrate input terminals to new API:
40610
40611 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
40612 `i386' and `i386/pc' to enable build on x86_64 (this driver is
40613 i386-specific anyway).
40614 (grub_console_checkkey): Rename to ...
40615 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
40616 users.
40617 (grub_keyboard_controller_orig): New variable.
40618 (grub_console_getkey): Rename to ...
40619 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
40620 users.
40621 (grub_keyboard_controller_init): Static-ize. Save original
40622 controller value so that it can be restored ...
40623 (grub_keyboard_controller_fini): ... here (new function).
40624 (grub_at_keyboard_term): New structure.
40625 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
40626 functions.
40627
40628 Migrate output terminals to new API:
40629
40630 * term/i386/pc/vga.c (grub_vga_term): Change type to
40631 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
40632 members. Update all users.
40633 * term/gfxterm.c (grub_video_term): Change type to
40634 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
40635 members. Update all users.
40636 * include/grub/i386/pc/console.h (grub_console_checkkey)
40637 (grub_console_getkey): Do not export (no longer needed by gfxterm,
40638 etc).
40639
40640 Migrate `terminal' command and userland tools to new API:
40641
40642 * commands/terminal.c (grub_cmd_terminal): Split into ...
40643 (grub_cmd_terminal_input): ... this, and ...
40644 (grub_cmd_terminal_output): ... this.
40645 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
40646 `terminal_input' and `terminal_output'.
40647 * util/grub.d/00_header.in: Adjust `terminal' calls to new
40648 `terminal_input' / `terminal_output' API.
40649 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
40650 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
40651 provided ${GRUB_TERMINAL}, convert it).
40652
96e5d876 406532008-11-04 Robert Millan <rmh@aybabtu.com>
40654
40655 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
40656 for FreeBSD.
40657 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
40658
556f3775 406592008-11-03 Bean <bean123ch@gmail.com>
40660
40661 * kern/elf.c (grub_elf32_load): Revert to previous code.
40662 (grub_elf64_load): Likewise.
40663
40664 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
40665
926b9823 406662008-11-01 Robert Millan <rmh@aybabtu.com>
40667
40668 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
40669 (TARGET_CPPFLAGS): Likewise.
40670 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
40671
1432e958 406722008-11-01 Carles Pina i Estany <carles@pina.cat>
40673
40674 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
40675
dba3f844 406762008-10-29 Guillem Jover <guillem.jover@nokia.com>
de4fa71c 40677
40678 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
40679 addition of objects until the code is not going to be able to fail.
40680
dba3f844 406812008-10-29 Guillem Jover <guillem.jover@nokia.com>
b7279447 40682
40683 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
40684 (add a missing NULL check, and correct them by moving the pointer
40685 operations after the actual check).
40686
7ab28c21 406872008-10-29 Robert Millan <rmh@aybabtu.com>
40688
40689 * util/i386/pc/grub-install.in: Handle empty string as output from
40690 make_system_path_relative_to_its_root().
40691
1b7748eb 406922008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
40693
40694 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
40695 circular metadata worst case scenario. If the metadata is circular
40696 then copy the wrap in place.
40697 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
40698 project lib/format_text/layout.h
40699 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
40700
c9618ab2 407012008-10-03 Felix Zielcke <fzielcke@z-51.de>
40702
7a36edca 40703 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
c9618ab2 40704
bf981c62 407052008-10-03 Felix Zielcke <fzielcke@z-51.de>
40706
40707 * util/update-grub_lib.in: Mention filename in warning message.
40708
6d994591 407092008-09-29 Felix Zielcke <fzielcke@z-51.de>
40710
40711 * NEWS: Update for rename of update-grub to grub-mkconfig.
40712
18ade780 407132008-09-29 Felix Zielcke <fzielcke@z-51.de>
40714
40715 * util/update-grub_lib.in: Copy to ...
40716 * util/grub-mkconfig_lib.in: ... this. Update all users.
7c3ff286 40717 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
18ade780 40718 * util/update-grub.in: Rename to ...
40719 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
40720 option. Add `--output' option to allow users to specify the generated
40721 configuration file. Default to stdout.
40722 (update_grub_dir): Rename to ...
40723 (grub_mkconfig_dir): ... this.
40724 (grub_cfg): Default to an empty string.
40725 * conf/common.rmk (update-grub): Rename to ...
40726 (grub-mkconfig): ... this.
40727 (update-grub_lib): Copy to ...
40728 (grub-mkconfig_lib): ... this.
40729 (update-grub_SCRIPTS): Copy to ...
40730 (grub-mkconfig_SCRIPTS): ... this. Update all users.
40731 (update-grub_DATA): Rename to ...
40732 (grub-mkconfig_DATA): ... this.
40733
556ce6ac 407342008-09-28 Robert Millan <rmh@aybabtu.com>
40735
40736 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
40737 to `modified'. Add the real `created' field.
40738 (grub_iso9660_uuid): Use `modified' rather than `created' for
40739 constructing the UUID.
40740
407412008-09-28 Felix Zielcke <fzielcke@z-51.de>
eb079ba9 40742
40743 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
40744 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
40745
92274e85 407462008-09-28 Bean <bean123ch@gmail.com>
40747
40748 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
40749 Thanks to Christian Franke for finding this bug.
40750
add6f17a 407512008-09-25 Robert Millan <rmh@aybabtu.com>
40752
40753 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
40754 instances of grub_util_get_disk_name() (see previous commit).
40755
d2a367b8 407562008-09-25 Robert Millan <rmh@aybabtu.com>
40757
40758 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
40759 `util/i386/get_disk_name.c'.
40760 * conf/i386-efi.rmk: Likewise.
40761 * conf/x86_64-efi.rmk: Likewise.
40762 * conf/i386-coreboot.rmk: Likewise.
40763 * conf/i386-ieee1275.rmk: Likewise.
40764 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
40765 `util/ieee1275/get_disk_name.c'.
40766 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
40767 * util/ieee1275/get_disk_name.c: Remove file.
40768 * util/i386/get_disk_name.c: Remove file.
40769 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
40770 "hd%d" for device.map entries, rather than using
40771 grub_util_get_disk_name().
40772
81a06771 407732008-09-24 Carles Pina i Estany <carles@pina.cat>
b0c301f7 40774
40775 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
40776 warning.
40777 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
40778
5a004279 407792008-09-24 Carles Pina i Estany <carles@pina.cat>
40780
40781 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
40782 Changed to 0x5100.
40783 (GRUB_TERM_PPAGE): Changed to 0x4900.
40784
397093d3 407852008-09-24 Robert Millan <rmh@aybabtu.com>
40786
40787 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
40788 macros (they were i386-pc specific).
40789 * include/grub/sparc64/ieee1275/console.h: Likewise.
40790 * include/grub/efi/console.h: Likewise.
40791
a91b6c7c 407922008-09-22 Bean <bean123ch@gmail.com>
40793
40794 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
40795 resident and in attribute list.
40796
40797 * include/grub/ntfs.h (BMP_LEN): Removed.
40798
c40fd116 407992008-09-22 Bean <bean123ch@gmail.com>
40800
81a06771 40801 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
c40fd116 40802 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
40803
40804 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
40805 error occurs, as grub_disk_open will call grub_disk_close, which will
40806 call p->close (scsi).
40807
81a06771 408082008-09-21 Felix Zielcke <fzielcke@z-51.de>
eb73121d 40809
40810 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
40811 (AC_PREREQ): Bumped to 2.59.
40812 (AC_TRY_COMPILE): Replace obsolete macro with ...
40813 (AC_COMPILE_IFELSE): ... this.
40814 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
40815 (AC_LINK_IFELSE): ... this.
40816
5dc43410 408172008-09-21 Felix Zielcke <fzielcke@z-51.de>
40818
40819 * autogen.sh: Add a call to `gendistlist.sh'.
40820
9035dce4 408212008-09-19 Christian Franke <franke@computer.org>
40822
40823 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
40824 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
40825 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
40826 Export __enable_execute_stack() to modules.
40827 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
40828 New function.
40829
7fd75377 408302008-09-09 Felix Zielcke <fzielcke@z-51.de>
40831
040030b3 40832 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
40833 Sort the list.
40834
408352008-09-09 Felix Zielcke <fzielcke@z-51.de>
40836
40837 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7fd75377 40838 #include <grub/util/hostdisk.h>.
40839
89d5ffcf 408402008-09-08 Robert Millan <rmh@aybabtu.com>
40841
40842 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
40843 segments when their filesz is zero (grub_file_read() interprets
81a06771 40844 zero-size as "read until EOF", which results in memory corruption).
89d5ffcf 40845 Use `lowest_segment' rather than 0 for calculating the current
40846 segment load address.
40847
40da438f 408482008-09-08 Robert Millan <rmh@aybabtu.com>
40849
40850 * util/hostdisk.c (open_device): Replace a grub_util_info() call
40851 with grub_dprintf("hostdisk", ...), as it was so verbose that it
40852 clobbered useful information.
40853
ddbf5556 408542008-09-08 Robert Millan <rmh@aybabtu.com>
40855
40856 * include/grub/util/biosdisk.h: Move to ...
40857 * include/grub/util/hostdisk.h: ... here. Update all users.
40858 * util/biosdisk.c: Move to ...
40859 * util/hostdisk.c: ... here. Update all users.
40860
783d0f48 408612008-09-07 Robert Millan <rmh@aybabtu.com>
40862
40863 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
40864 variables.
40865 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
40866 and length can be stored directly in the `mbi->mmap_addr' and
40867 `mbi->mmap_length' struct fields.
40868
548e2ea5 408692008-09-07 Robert Millan <rmh@aybabtu.com>
40870
40871 * conf/i386.rmk: New file. Provides declaration for building
40872 `cpuid.mod'.
40873 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
40874 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
40875 variables.
40876 Include `conf/i386.mk'.
40877 * conf/i386-efi.rmk: Likewise.
40878 * conf/x86_64-efi.rmk: Likewise.
40879 * conf/i386-coreboot.rmk: Likewise.
40880 * conf/i386-ieee1275.rmk: Likewise.
40881
0ea85a37 408822008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
40883
40884 Based on patch created by Colin D Bennett <colin@gibibit.com>.
40885 Adds optimization support for BGR based modes.
40886
40887 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
40888 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
40889 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
40890 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
40891 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
40892 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
40893 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
40894 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
40895 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
40896 (grub_video_i386_vbeblit_index_index): Likewise.
40897 (grub_video_i386_vbeblit_replace_directN): Added.
40898 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
40899 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
40900 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
40901 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
40902 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
40903 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
81a06771 40904 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
0ea85a37 40905 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
40906 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
40907 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
40908 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
40909 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
40910 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
40911
40912 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
40913 (grub_video_i386_vbefill_R8G8B8): Likewise.
40914 (grub_video_i386_vbefill_index): Likewise.
40915 (grub_video_i386_vbefill_direct32): Added.
40916 (grub_video_i386_vbefill_direct24): Likewise.
40917 (grub_video_i386_vbefill_direct16): Likewise.
40918 (grub_video_i386_vbefill_direct8): Likewise.
40919
81a06771 40920 * include/grub/video.h (grub_video_blit_format): Removed
0ea85a37 40921 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
40922 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
40923 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
40924 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
40925 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
81a06771 40926
0ea85a37 40927 * video/video.c (grub_video_get_blit_format): Updated to use new
40928 blit formats. Added handling for 16 bit color modes.
81a06771 40929
40930 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
0ea85a37 40931 fillers.
40932 (common_blitter): Updated to use new blitters.
40933
40934 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
40935 Removed.
40936 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
40937 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
40938 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
40939 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
40940 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
40941 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
40942 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
40943 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
40944 (grub_video_i386_vbeblit_index_index): Likewise.
40945 (grub_video_i386_vbeblit_replace_directN): Added.
40946 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
40947 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
40948 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
40949 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
40950 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
40951 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
40952 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
40953 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
40954 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
40955 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
40956 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
40957 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
40958 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
81a06771 40959
0ea85a37 40960 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
40961 (grub_video_i386_vbefill_R8G8B8): Likewise.
40962 (grub_video_i386_vbefill_index): Likewise.
40963 (grub_video_i386_vbefill_direct32): Added.
40964 (grub_video_i386_vbefill_direct24): Likewise.
40965 (grub_video_i386_vbefill_direct16): Likewise.
40966 (grub_video_i386_vbefill_direct8): Likewise.
81a06771 40967
0ea85a37 40968 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
40969 types.
81a06771 40970
0ea85a37 40971 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
40972 types.
81a06771 40973
0ea85a37 40974 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
40975 blitter types.
81a06771 40976
0ea85a37 40977 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
40978 types.
40979
e8a83df6 409802008-09-06 Felix Zielcke <fzielcke@z-51.de>
40981
40982 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
40983 RAID level 1.
40984
6bcd8ee5 409852008-09-06 Felix Zielcke <fzielcke@z-51.de>
c375ae58 40986
6bcd8ee5 40987 * fs/iso9660.c (grub_iso9660_date): New structure.
40988 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
40989 (grub_iso9660_uuid): New function.
c375ae58 40990
59261157 409912008-09-05 Bean <bean123ch@gmail.com>
40992
40993 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
40994
40995 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
40996 insensitive bit for names in Win32 and Win32 & DOS namespace.
40997
40998 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
40999
41000 * include/grub/types.h (LONG_MAX): Likewise.
41001
58b6645a 410022008-09-04 Felix Zielcke <fzielcke@z-51.de>
41003
4ee55921 41004 * util/getroot.c: Include <config.h>.
41005 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
41006 add support for /dev/md/N devices and handle LVM double dash escaping.
41007
410082008-09-04 Felix Zielcke <fzielcke@z-51.de>
41009
41010 * config.guess: Update to latest version from config git.
41011 * config.sub: Likewise.
58b6645a 41012
9124f65d 410132008-09-03 Robert Millan <rmh@aybabtu.com>
41014
41015 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
41016 `disk->total_sectors'.
41017
81a06771 410182008-09-01 Colin D Bennett <colin@gibibit.com>
a0224a4e 41019
41020 * include/grub/normal.h: Fixed incorrect comment for
41021 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
41022
81a06771 410232008-09-01 Colin D Bennett <colin@gibibit.com>
f0619958 41024
41025 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
41026 values with defines.
41027
41028 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
41029 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
41030 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
41031 (GRUB_VBE_MODEATTR_COLOR): Likewise.
41032 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
41033 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
41034 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
41035 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
41036 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
41037 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
41038 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
41039 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
41040 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
41041 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
41042 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
41043 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
41044 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
41045 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
41046 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
41047
93d5cbf8 410482008-08-31 Robert Millan <rmh@aybabtu.com>
41049
41050 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
41051 declaration.
41052 (grub_multiboot): Fix a few warnings.
41053
21751d50 410542008-08-31 Robert Millan <rmh@aybabtu.com>
41055
41056 * loader/i386/pc/multiboot.c: Update comment not to say that
41057 boot_device support is unimplemented.
41058
e27a75c5 410592008-08-31 Robert Millan <rmh@aybabtu.com>
41060
41061 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
41062 or memory map support are unimplemented.
41063
81a06771 410642008-08-31 Colin D Bennett <colin@gibibit.com>
64d2d53c 41065
41066 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
41067
81a06771 410682008-08-31 Colin D Bennett <colin@gibibit.com>
c08a6c18 41069
41070 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
41071 total video memory in 'vbeinfo' output; show color format details for
41072 each video mode.
41073
7c5d8d95 410742008-08-30 Pavel Roskin <proski@gnu.org>
41075
41076 * util/genmoddep.c: Remove for real this time.
41077 * DISTLIST: Remove util/genmoddep.c.
41078
4cebd25a 410792008-08-30 Robert Millan <rmh@aybabtu.com>
41080
41081 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
41082 as required by Multiboot spec (it was already 4-byte aligned, but
41083 only by chance).
41084
b497a269 410852008-08-29 Pavel Roskin <proski@gnu.org>
41086
e3925185 41087 * kern/powerpc/ieee1275/crt0.S: Rename to ...
41088 * kern/powerpc/ieee1275/startup.S: ... this.
41089 * conf/powerpc-ieee1275.rmk: Adjust for the above.
41090 * DISTLIST: Likewise.
41091
b497a269 41092 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
41093 grub/cpu/kernel.h. Add start label for consistency with other
41094 platforms. Add grub_prefix immediately after start. Add jump
41095 to the code after grub_prefix.
41096 * include/grub/powerpc/kernel.h: Provide valid values for
41097 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
41098
6e5a42fe 410992008-08-29 Bean <bean123ch@gmail.com>
41100
41101 * configure.ac: Change host_os to cygwin for mingw.
41102 (asprintf): New check for function.
41103
41104 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
41105 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
41106
41107 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
81a06771 41108 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
6e5a42fe 41109 sync, sleep and grub_util_get_disk_size for mingw.
41110
41111 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
41112 to get size in mingw.
41113 (open_device): Use flag O_BINARY if it's defined.
41114 (find_root_device): Add dummy code for mingw.
41115
41116 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
41117 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
41118 (get_scsi_disk_name): Return 0 for mingw.
41119
41120 * util/hostfs.c: #include <grub/util/misc.h>.
41121 (grub_hostfs_open): Use "rb" flag to open file, use
41122 grub_util_get_disk_size to get disk size for mingw.
41123
41124 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
41125 (asprintf): New function if HAVE_ASPRINTF is not set.
41126 (sync): New function for mingw.
41127 (sleep): Likewise.
41128 (grub_util_get_disk_size): Likewise.
41129
ab3f2673 411302008-08-28 Pavel Roskin <proski@gnu.org>
41131
41132 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
41133 kern/time.c.
41134
1c282483 411352008-08-28 Robert Millan <rmh@aybabtu.com>
41136
41137 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
41138
678e849c 411392008-08-28 Robert Millan <rmh@aybabtu.com>
41140
41141 Change find_grub_drive() syntax so it doesn't prevent it from
41142 detecting NULL names as errors.
41143
41144 * util/biosdisk.c (find_grub_drive): Move free slot search code
41145 from here ...
41146 (find_free_slot): ... to here.
41147 (read_device_map): Use find_free_slot() to search for free slots.
41148
965c75ca 411492008-08-27 Marco Gerards <marco@gnu.org>
41150
41151 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
41152 (scsi_mod_SOURCES): New variable.
41153 (scsi_mod_CFLAGS): Likewise
41154 (scsi_mod_LDFLAGS): Likewise.
41155
41156 * disk/scsi.c: New file.
41157
41158 * include/grub/scsi.h: Likewise.
41159
41160 * include/grub/scsicmd.h: Likewise.
41161
41162 * disk/ata.c: Include <grub/scsi.h>.
41163 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
41164 instead.
41165 (grub_ata_iterate): Skip ATAPI devices.
41166 (grub_ata_open): Only handle ATAPI devices.
41167 (struct grub_atapi_read): Removed.
41168 (grub_atapi_readsector): Likewise.
41169 (grub_ata_read): No longer handle ATAPI devices.
41170 (grub_ata_write): Likewise.
41171 (grub_atapi_iterate): New function.
41172 (grub_atapi_read): Likewise.
41173 (grub_atapi_write): Likewise.
41174 (grub_atapi_open): Likewise.
41175 (grub_atapi_close): Likewise.
41176 (grub_atapi_dev): New variable.
41177 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
41178 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
41179
41180 * include/grub/disk.h (enum grub_disk_dev_id): Add
41181 `GRUB_DISK_DEVICE_SCSI_ID'.
41182
c07ae501 411832008-08-26 Robert Millan <rmh@aybabtu.com>
41184
41185 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
41186 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
41187 descriptive.
41188
5ed20adc 411892008-08-23 Bean <bean123ch@gmail.com>
41190
41191 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
41192 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
41193 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
41194 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
41195 dm_nv.mod.
41196 (raid5rec_mod_SOURCES): New macro.
41197 (raid5rec_mod_CFLAGS): Likewise.
41198 (raid5rec_mod_LDFLAGS): Likewise.
41199 (raid6rec_mod_SOURCES): Likewise.
41200 (raid6rec_mod_CFLAGS): Likewise.
41201 (raid6rec_mod_LDFLAGS): Likewise.
41202 (mdraid_mod_SOURCES): Likewise.
41203 (mdraid_mod_CFLAGS): Likewise.
41204 (mdraid_mod_LDFLAGS): Likewise.
41205 (dm_nv_mod_SOURCES): Likewise.
41206 (dm_nv_mod_CFLAGS): Likewise.
41207 (dm_nv_mod_LDFLAGS): Likewise.
41208
41209 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
41210 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
41211 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
41212
41213 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
41214 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
41215
41216 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41217
41218 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41219
41220 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41221
41222 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41223
41224 * disk/raid5_recover.c: New file.
41225
41226 * disk/raid6_recover.c: Likewise.
41227
41228 * disk/mdraid_linux.c: Likewise.
41229
41230 * disk/dmraid_nvidia.c: Likewise.
41231
41232 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
41233 ULONG_MAX.
41234
41235 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
41236 calculate the size of raid device.
41237 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
41238 different layout of raid5.
41239 (grub_raid_scan_device): Remove code specific to mdraid.
41240 (grub_raid_list): New variable.
41241 (free_array): New function.
41242 (grub_raid_register): Likewise.
41243 (grub_raid_unregister): Likewise.
41244 (grub_raid_rescan): Likewise.
41245 (GRUB_MOD_INIT): Don't iterate device here.
41246 (GRUB_MOD_FINI): Use free_array to release resource.
41247
41248 * include/grub/raid.h: Remove macro and structure specific to mdraid.
41249 (grub_raid5_recover_func_t): New function variable type.
41250 (grub_raid6_recover_func_t): Likewise.
41251 (grub_raid5_recover_func): New variable.
41252 (grub_raid6_recover_func): Likewise.
41253 (grub_raid_register): New function.
41254 (grub_raid_unregister): Likewise.
41255 (grub_raid_rescan): Likewise.
41256 (grub_raid_block_xor): Likewise.
41257
41258 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
41259 (CMD_CRC): New macro.
41260 (part): Removed.
41261 (read_file): Handle device as well as file.
41262 (cmd_crc): New function.
41263 (fstest): Handle multiple disks.
41264 (options): Remove part, raw and long, add root and diskcount.
41265 (usage): Add crc, remove -p, -r, -l, add -r and -c.
dba3f844 41266 (main): Find the first non option entry and ignore subsequent options,
5ed20adc 41267 add handling for the new options, support multiple disks.
41268
41269 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
41270
29c18915 412712008-08-23 Bean <bean123ch@gmail.com>
41272
41273 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
41274
41275 * genfslist.sh: Ignore kernel.mod.
41276
41277 * genpartmaplist.sh: Likewise.
41278
8415f261 412792008-08-23 Robert Millan <rmh@aybabtu.com>
41280
41281 * util/getroot.c (find_root_device): Skip anything that starts with
41282 a dot, not just directories. This avoids things like /dev/.tmp.md0.
41283
d5a7dc5b 412842008-08-22 Felix Zielcke <fzielcke@z-51.de>
81a06771 41285
d5a7dc5b 41286 * util/update-grub.in (GRUB_GFXMODE): Export variable.
41287 * util/grub.d/00_header.in: Allow the administrator to change default
41288 gfxmode via ${GRUB_GFXMODE}.
41289
380cfbb4 412902008-08-21 Felix Zielcke <fzielcke@z-51.de>
41291
41292 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
41293
c9baafe7 412942008-08-21 Robert Millan <rmh@aybabtu.com>
41295
41296 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
41297 loader.
41298 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
41299 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
41300
e290bef2 413012008-08-20 Carles Pina i Estany <carles@pina.cat>
41302
41303 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
41304 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
41305
f9dbfc96 413062008-08-19 Robert Millan <rmh@aybabtu.com>
41307
41308 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
41309 (struct grub_virtual_screen): Remove `cursor_color'.
41310 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
41311 initialization.
41312 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
41313
dd6bd6ab 413142008-08-18 Robert Millan <rmh@aybabtu.com>
41315
41316 Unify (identical) linux_normal.c files.
41317 * loader/i386/efi/linux_normal.c: Move from here ...
41318 * loader/linux_normal.c: ... to here. Update all users.
41319 * loader/i386/pc/linux_normal.c: Delete. Update all users.
41320 * loader/i386/ieee1275/linux_normal.c: Likewise.
41321
7f42f83e 413222008-08-18 Robert Millan <rmh@aybabtu.com>
41323
41324 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
41325 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
41326 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
41327 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
41328 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
41329 New macros.
41330 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
41331 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
41332 (GRUB_LINUX_CL_END_OFFSET): ... to here.
41333 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
41334 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
41335 (GRUB_EFI_CL_END_OFFSET): Rename to ...
41336 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
41337 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
41338 Initialize `params->video_cursor_x' and `params->video_cursor_y'
41339 portably using grub_getxy().
41340 Replace `-EFI' with `-bzImage' in boot message.
41341
38487ddb 413422008-08-17 Robert Millan <rmh@aybabtu.com>
41343
41344 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
41345
deceb3ec 413462008-08-17 Robert Millan <rmh@aybabtu.com>
41347
41348 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
41349
41350 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
41351 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
41352 (grub_machine_mmap_iterate): New function declaration.
41353 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
41354 structure.
41355 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
41356 macros.
41357
41358 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
41359 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
41360 Move e820 parsing from here ...
41361 * kern/i386/pc/mmap.c: New file.
41362 (grub_machine_mmap_iterate): ... to here.
41363
41364 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
41365 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
41366 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
41367 (grub_available_iterate): Redeclare to return `void', and redeclare
41368 its hook to use grub_uint64_t as addr and size parameters, and rename
41369 to ...
41370 (grub_machine_mmap_iterate): ... this. Update all users.
41371
41372 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
41373 to make it more readable. Rename to ...
41374 (grub_machine_mmap_iterate): ... this.
41375
41376 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
41377 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
41378 (grub_multiboot): Allocate an extra region after the payload, and fill
41379 it with a Multiboot memory map. Adjust a.out loader to calculate size
41380 with the extra space.
41381 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
41382 with the extra space.
41383
f8aa0f43 413842008-08-17 Carles Pina i Estany <carles@pina.cat>
41385
9807deb9 41386 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
f8aa0f43 41387
605f5bb6 413882008-08-17 Felix Zielcke <fzielcke@z-51.de>
41389
41390 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
41391 mdate-sh to the list `find' searches for.
41392 * DISTLIST: Regenerated.
41393
210db6c6 413942008-08-16 Felix Zielcke <fzielcke@z-51.de>
41395
41396 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
41397 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
48cdbfd4 41398 genmoddep.awk, gensymlist.sh.in.
41399 (DISTDIRS): Add bus, docs, hook, lib.
210db6c6 41400 * DISTLIST: Regenerated.
48cdbfd4 41401 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
210db6c6 41402
1082b929 414032008-08-16 Robert Millan <rmh@aybabtu.com>
41404
41405 * disk/raid.c (grub_raid_init): Handle/report errors set by
41406 grub_device_iterate().
41407 * disk/lvm.c (grub_lvm_init): Likewise.
41408
42ce5170 414092008-08-15 Bean <bean123ch@gmail.com>
41410
41411 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
41412 and datehook.mod.
41413 (datetime_mod_SOURCES): New macro.
41414 (datetime_mod_CFLAGS): Likewise.
41415 (datetime_mod_LDFLAGS): Likewise.
41416 (date_mod_SOURCES): Likewise.
41417 (date_mod_CFLAGS): Likewise.
41418 (date_mod_LDFLAGS): Likewise.
41419 (datehook_mod_SOURCES): Likewise.
41420 (datehook_mod_CFLAGS): Likewise.
41421 (datehook_mod_LDFLAGS): Likewise.
41422
41423 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
41424 and datehook.mod.
41425 (datetime_mod_SOURCES): New macro.
41426 (datetime_mod_CFLAGS): Likewise.
41427 (datetime_mod_LDFLAGS): Likewise.
41428 (date_mod_SOURCES): Likewise.
41429 (date_mod_CFLAGS): Likewise.
41430 (date_mod_LDFLAGS): Likewise.
41431 (datehook_mod_SOURCES): Likewise.
41432 (datehook_mod_CFLAGS): Likewise.
41433 (datehook_mod_LDFLAGS): Likewise.
41434
41435 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
41436 and datehook.mod.
41437 (datetime_mod_SOURCES): New macro.
41438 (datetime_mod_CFLAGS): Likewise.
41439 (datetime_mod_LDFLAGS): Likewise.
41440 (date_mod_SOURCES): Likewise.
41441 (date_mod_CFLAGS): Likewise.
41442 (date_mod_LDFLAGS): Likewise.
41443 (datehook_mod_SOURCES): Likewise.
41444 (datehook_mod_CFLAGS): Likewise.
41445 (datehook_mod_LDFLAGS): Likewise.
41446
41447 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
41448 and datehook.mod.
41449 (datetime_mod_SOURCES): New macro.
41450 (datetime_mod_CFLAGS): Likewise.
41451 (datetime_mod_LDFLAGS): Likewise.
41452 (date_mod_SOURCES): Likewise.
41453 (date_mod_CFLAGS): Likewise.
41454 (date_mod_LDFLAGS): Likewise.
41455 (datehook_mod_SOURCES): Likewise.
41456 (datehook_mod_CFLAGS): Likewise.
41457 (datehook_mod_LDFLAGS): Likewise.
41458
41459 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
41460 and datehook.mod.
41461 (datetime_mod_SOURCES): New macro.
41462 (datetime_mod_CFLAGS): Likewise.
41463 (datetime_mod_LDFLAGS): Likewise.
41464 (date_mod_SOURCES): Likewise.
41465 (date_mod_CFLAGS): Likewise.
41466 (date_mod_LDFLAGS): Likewise.
41467 (datehook_mod_SOURCES): Likewise.
41468 (datehook_mod_CFLAGS): Likewise.
41469 (datehook_mod_LDFLAGS): Likewise.
41470
41471 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
41472
41473 * commands/date.c: New file.
41474
41475 * hook/datehook.c: Likewise.
41476
41477 * include/grub/lib/datetime.h: Likewise.
41478
41479 * include/grub/i386/cmos.h: Likewise.
41480
41481 * lib/datetime.c: Likewise.
41482
41483 * lib/i386/datetime.c: Likewise.
41484
41485 * lib/efi/datetime.c: Likewise.
41486
0e9242da 414872008-08-14 Robert Millan <rmh@aybabtu.com>
41488
41489 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
41490 (grub_mkelfimage_SOURCES): New variable.
41491 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
41492
41493 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
41494 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
41495 * conf/powerpc-ieee1275.rmk: Likewise.
41496 * conf/i386-ieee1275.rmk: Likewise.
41497
41498 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
41499 * kern/i386/coreboot/init.c: Likewise.
41500
41501 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
41502 with `<grub/cpu/kernel.h>'.
41503 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
41504 to ...
41505 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
41506 * kern/i386/coreboot/startup.S: Likewise.
41507
41508 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
41509 (GRUB_MOD_GAP): Remove.
41510 * include/grub/powerpc/kernel.h: New file.
41511 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
41512 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
41513 * include/grub/i386/kernel.h: New file.
41514 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
41515 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
41516 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
41517
41518 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
41519 `grub-mkelfimage'.
41520 Use --directory when invoking grub_mkimage.
41521
41522 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
41523 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
41524 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
41525 and GRUB_KERNEL_CPU_PREFIX.
41526
b86408f8 415272008-08-14 Felix Zielcke <fzielcke@z-51.de>
41528
d5e619ca 41529 * include/grub/err.h (grub_err_printf): New function prototype.
41530 * util/misc.c (grub_err_printf): New function.
41531 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
41532 grub_printf.
41533 * kern/err.c (grub_print_error): Use grub_err_printf.
b86408f8 41534
7161f0e0 415352008-08-13 Robert Millan <rmh@aybabtu.com>
41536
41537 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
41538
a1967522 415392008-08-13 Robert Millan <rmh@aybabtu.com>
41540
41541 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
41542 boot entry.
41543
371458b5 415442008-08-12 Robert Millan <rmh@aybabtu.com>
41545
41546 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
41547 of the relocation code from here ...
41548 (grub_multiboot): ... to here.
41549 (forward_relocator, backward_relocator): Move from here ...
41550 * kern/i386/loader.S (grub_multiboot_forward_relocator)
41551 (grub_multiboot_backward_relocator): ... to here.
41552 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
41553 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
41554 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
41555 (grub_multiboot_forward_relocator_end)
41556 (grub_multiboot_backward_relocator)
41557 (grub_multiboot_backward_relocator_end): New variables.
41558
05f9452b 415592008-08-12 Bean <bean123ch@gmail.com>
41560
41561 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
41562
20024ab0 415632008-08-11 Robert Millan <rmh@aybabtu.com>
41564
41565 * kern/i386/linuxbios/startup.S: Move from here ...
41566 * kern/i386/coreboot/startup.S: ... to here.
41567
41568 * kern/i386/linuxbios/init.c: Move from here ...
41569 * kern/i386/coreboot/init.c: ... to here.
41570
41571 * kern/i386/linuxbios/table.c: Move from here ...
41572 * kern/i386/coreboot/mmap.c: ... to here.
41573
41574 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
41575
e352e9cd 415762008-08-11 Robert Millan <rmh@aybabtu.com>
41577
41578 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
41579 errors. Leave it to the upper layer to handle them.
41580
2d05bc6a 415812008-08-09 Christian Franke <franke@computer.org>
41582
41583 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
41584 * conf/common.rmk: Install `grub-pe2elf' only if requested.
41585 Install `grub.d/10_windows' only on Cygwin.
41586 * configure.ac: Add subst of `target_os'.
41587 Check `target_os' also before setting TARGET_OBJ2ELF.
41588 Add `--enable-grub-pe2elf'.
41589
042bd419 415902008-08-08 Robert Millan <rmh@aybabtu.com>
41591
41592 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
41593 (grub_last_time): Change type to grub_uint64_t.
41594 (grub_disk_open): Migrate code from to using grub_get_time_ms().
41595 (grub_disk_close): Likewise.
41596
41597 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
41598 (run_menu): Migrate code from to using grub_get_time_ms().
41599
41600 * util/misc.c (grub_get_time_ms): New function.
41601
7f280db5 416022008-08-08 Marco Gerards <marco@gnu.org>
41603
41604 * disk/ata.c (grub_ata_regget): Change return type to
41605 `grub_uint8_t'.
41606 (grub_ata_regget2): Likewise.
41607 (grub_ata_wait_status): New function.
41608 (grub_ata_wait_busy): Removed function, updated all users to use
41609 `grub_ata_wait_status'.
41610 (grub_ata_wait_drq): Likewise.
41611 (grub_ata_cmd): New function.
41612 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
41613 error handling.
41614 (grub_ata_pio_write): Add error handling.
41615 (grub_atapi_identify): Likewise.
41616 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
41617 handling.
41618 (grub_ata_identify): Use `grub_ata_cmd' and improve error
41619 handling. Actually use the detected registers. Reorder the
41620 detection logic such that it is easier to read.
41621 (grub_ata_pciinit): Do not assign the same ID to each controller.
41622 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
41623 handling.
41624 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
41625
41626 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
41627
1fbc5e66 416282008-08-08 Marco Gerards <marco@gnu.org>
41629
41630 * NEWS: Update.
41631
819ce6c0 416322008-08-07 Bean <bean123ch@gmail.com>
41633
41634 * include/grub/x86_64/pci.h: New file.
41635
5c41d44d 416362008-08-07 Christian Franke <franke@computer.org>
41637
41638 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
41639 (TIMER2_GATE): Likewise.
41640 (grub_pit_wait): Add enable/disable of the timer2 gate
41641 bit of port 0x61. This fixes a possible infinite loop.
41642
5ebc275d 416432008-08-07 Bean <bean123ch@gmail.com>
41644
41645 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
41646 kern/i386/tsc.c and kern/i386/pit.c.
41647
41648 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
41649 x86_64 platform.
41650
41651 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
41652 <grub/i386/tsc.h>.
41653
41654 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
41655
e383b3d0 416562008-08-07 Bean <bean123ch@gmail.com>
41657
41658 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
41659
41660 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
41661
41662 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
41663 multiple inclusion. Add #include <grub/types.h>.
41664
1cbb58ac 416652008-08-06 Christian Franke <franke@computer.org>
41666
41667 * conf/common.rmk: Build and install `10_windows'.
41668 * util/grub.d/10_windows.in: New script.
41669
337f5a1e 416702008-08-06 Pavel Roskin <proski@gnu.org>
41671
41672 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
41673
057bc4ac 416742008-08-06 Robert Millan <rmh@aybabtu.com>
41675
41676 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
41677 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
41678
2b99f123 416792008-08-06 Bean <bean123ch@gmail.com>
41680
41681 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
41682 (grub_pxefs_fs_int): Remove dummy definition.
41683 (grub_pxefs_open): Use data->block_size to store the current block
41684 size setting.
41685 (grub_pxefs_read): Use block size stored in data->block_size. As the
41686 value of grub_pxe_blksize can be changed after the file is opened.
41687
9f0234cb 416882008-08-06 Bean <bean123ch@gmail.com>
41689
41690 * fs/i386/pc/pxe.c (curr_file): new variable.
41691 (grub_pxefs_open): Simply the handling of pxe file system. Don't
41692 require the dummy internal file system anymore.
41693 (grub_pxefs_read): Removed.
41694 (grub_pxefs_close): Likewise.
41695 (grub_pxefs_fs_int): Likewise.
41696 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
41697 connection when we switch file.
41698 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
41699
a55d42e0 417002008-08-06 Robert Millan <rmh@aybabtu.com>
41701
41702 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
41703 `halt.mod'.
41704 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
41705 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
41706
41707 * kern/i386/halt.c: New file.
41708 * kern/i386/reboot.c: Likewise.
41709 * include/grub/i386/reboot.h: Likewise.
41710 * include/grub/i386/halt.h: Likewise.
41711
41712 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
41713 Include `<grub/cpu/halt.h>'.
41714 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
41715 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
41716
41717 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
41718 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
41719 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
41720 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
41721 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
41722 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
41723 from here ...
41724 * include/grub/i386/at_keyboard.h: ... to here.
41725
24371d26 417262008-08-05 Robert Millan <rmh@aybabtu.com>
41727
41728 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
41729 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
41730 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
41731 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
41732 `kern/generic/millisleep.c'.
41733
41734 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
41735 instead of grub_get_rtc().
41736 (grub_tsc_init): Initialize `tsc_boot_time'.
41737
41738 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
41739 (grub_machine_init): Use grub_tsc_init() rather than
41740 installing an RTC-based handler via grub_install_get_time_ms().
41741
41742 * kern/i386/pit.c: New file.
41743 * include/grub/i386/pit.h: Likewise.
41744
9e7007b3 417452008-08-05 Bean <bean123ch@gmail.com>
41746
41747 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
41748
41749 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
41750 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
41751 (pxe_mod_SOURCES): New macro.
41752 (pxe_mod_CFLAGS): Likewise.
41753 (pxe_mod_LDFLAGS): Likewise.
41754 (pxecmd_mod_SOURCES): Likewise.
41755 (pxecmd_mod_CFLAGS): Likewise.
41756 (pxecmd_mod_LDFLAGS): Likewise.
41757
41758 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
41759 (grub_pxe_call): Likewise.
41760
41761 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
41762
41763 * commands/i386/pc/pxecmd.c: New file.
41764
9f0234cb 41765 * fs/i386/pc/pxe.c: Likewise.
9e7007b3 41766
41767 * include/grub/i386/pc/pxe.h: Likewise.
41768
6977d49f 417692008-08-05 Bean <bean123ch@gmail.com>
41770
41771 * util/console.c (grub_console_cur_color): New variable.
41772 (grub_console_standard_color): Likewise.
41773 (grub_console_normal_color): Likewise.
41774 (grub_console_highlight_color): Likewise.
41775 (color_map): Likewise.
41776 (use_color): Likewise.
41777 (NUM_COLORS): New macro.
41778 (grub_ncurses_setcolorstate): Handle color properly.
41779 (grub_ncurses_setcolor): Don't change color here, just remember the
41780 settings, color will be set in grub_ncurses_setcolorstate.
41781 (grub_ncurses_getcolor): New function.
41782 (grub_ncurses_init): Initialize color pairs.
41783 (grub_ncurses_term): New member grub_ncurses_getcolor.
41784
9c2ff3ee 417852008-08-05 Colin D Bennett <colin@gibibit.com>
337f5a1e 41786
9c2ff3ee 41787 High resolution timer support. Implemented for x86 CPUs using TSC.
41788 Extracted generic grub_millisleep() so it's linked in only as needed.
41789 This requires a Pentium compatible CPU; if the RDTSC instruction is
41790 not supported, then it falls back on the generic grub_get_time_ms()
41791 implementation that uses the machine's RTC.
41792
41793 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
41794 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
41795 `kern/generic/millisleep.c'.
41796
41797 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
41798 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
41799
41800 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
41801 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
41802
41803 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
41804
41805 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
41806 `kern/generic/millisleep.c'.
41807
41808 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
41809
41810 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
41811
41812 * kern/generic/rtc_get_time_ms.c: New file.
41813
41814 * kern/generic/millisleep.c: New file.
337f5a1e 41815
9c2ff3ee 41816 * kern/misc.c: Don't include
41817 <kern/time.h> anymore.
41818 (grub_millisleep_generic): Removed.
41819
41820 * commands/sleep.c (grub_interruptible_millisleep): Uses
41821 grub_get_time_ms() instead of grub_get_rtc().
41822
41823 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
41824 function.
41825 (grub_cpu_is_cpuid_supported): New inline function.
41826 (grub_cpu_is_tsc_supported): New inline function.
41827 (grub_tsc_init): New function prototype.
41828 (grub_tsc_get_time_ms): New function prototype.
41829
41830 * kern/i386/tsc.c (grub_get_time_ms): New file.
41831
41832 * include/grub/time.h: Include <grub/types.h.
41833 (grub_millisleep_generic): Removed.
41834 (grub_get_time_ms): New prototype.
41835 (grub_install_get_time_ms): New prototype.
41836 (grub_rtc_get_time_ms): New prototype.
41837
41838 * kern/time.c (grub_get_time_ms): New function.
41839 (grub_install_get_time_ms): New function.
41840
41841 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
41842 <grub/time.h> anymore.
41843 (grub_millisleep): Removed.
41844 (grub_machine_init): Call grub_tsc_init.
41845
41846 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
41847 get_time_ms() implementation.
41848
41849 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
41850 (ieee1275_get_time_ms): New function.
41851 (grub_machine_init): Install get_time_ms() implementation.
41852
41853 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
41854 (grub_machine_init): Call grub_tsc_init().
41855 (grub_millisleep): Removed.
bf06a93f 41856
9c2ff3ee 41857 * kern/ieee1275/init.c (grub_millisleep): Removed.
41858 (grub_machine_init): Install ieee1275_get_time_ms()
41859 implementation.
41860 (ieee1275_get_time_ms): New function.
41861 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
41862 real work.
41863
9ec92aaf 418642008-08-05 Marco Gerards <marco@gnu.org>
41865
41866 * disk/ata.c: Include <grub/pci.h>.
41867 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
41868 (grub_ata_initialize): Rewritten.
41869 (grub_ata_device_initialize): New function.
41870
8d23f507 418712008-08-04 Pavel Roskin <proski@gnu.org>
41872
41873 * kern/main.c: Include grub/mm.h.
41874
5e15ee3d 418752008-08-04 Robert Millan <rmh@aybabtu.com>
41876
41877 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
41878 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
41879 corruption problem).
41880
a9053f8f 418812008-08-04 Robert Millan <rmh@aybabtu.com>
41882
41883 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
41884 warnings introduced in my last commit.
41885
dd19c7d7 418862008-08-03 Robert Millan <rmh@aybabtu.com>
41887
41888 Make PCI available on all i386 architectures.
41889
41890 * include/grub/i386/pc/pci.h: Move from here ...
41891 * include/grub/i386/pci.h: ... to here.
41892
41893 * include/grub/i386/pc/pci.h: Remove.
41894 * include/grub/i386/efi/pci.h: Remove.
41895 * include/grub/x86_64/efi/pci.h: Remove.
41896
41897 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
41898 `<grub/cpu/pci.h>'.
41899
41900 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
41901 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
41902 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
41903
41904 * conf/i386-ieee1275.rmk: Likewise.
41905
e14a6184 419062008-08-03 Robert Millan <rmh@aybabtu.com>
41907
41908 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
41909 (grub_console_setcursor): Make it possible to set cursor off.
41910
52768e37 419112008-08-03 Robert Millan <rmh@aybabtu.com>
41912
41913 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
41914 of modules instead of assuming which platform provides what.
41915 * util/update-grub.in: Likewise.
41916
2d52f57f 419172008-08-03 Robert Millan <rmh@aybabtu.com>
41918
41919 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
41920 instead of `grub_install_dos_part' to determine whether a drive needs
41921 to be prepended to prefix (`grub_install_dos_part' is not reliable,
825aa57a 41922 because it can be overridden when loading GRUB via Multiboot).
2d52f57f 41923
2a5cd121 419242008-08-02 Robert Millan <rmh@aybabtu.com>
41925
41926 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
41927
93808428 419282008-08-02 Robert Millan <rmh@aybabtu.com>
41929
41930 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
41931 of informational grub_dprintf() calls.
41932
3bd0a12a 419332008-08-02 Robert Millan <rmh@aybabtu.com>
41934
41935 * disk/memdisk.c (memdisk_size): Don't initialize.
41936 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
41937
41938 * include/grub/i386/pc/kernel.h
41939 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
41940 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
41941 (grub_memdisk_image_size, grub_arch_memdisk_addr)
41942 (grub_arch_memdisk_size): Remove.
41943
41944 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
41945 field (was only used to transfer a constant). Add `type' field to
41946 support multiple module types.
41947 (grub_module_iterate): New function.
41948
41949 * kern/device.c (grub_device_open): Do not hide error messages
41950 when grub_disk_open() fails. Use grub_print_error() instead.
41951
41952 * kern/i386/pc/init.c (grub_arch_modules_addr)
41953 (grub_arch_memdisk_size): Remove functions.
41954 (grub_arch_modules_addr): Return the module address in high memory
41955 (now that it isn't copied anymore).
41956
41957 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
41958 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
41959 decompression routine (grub_total_module_size already includes that
41960 now). Don't copy modules back to low memory.
41961
41962 * kern/main.c: Include `<grub/mm.h>'.
41963 (grub_load_modules): Split out (and use) ...
41964 (grub_module_iterate): ... this function, which iterates through
41965 module objects and runs a hook.
41966 Comment out grub_mm_init_region() call, as it would cause non-ELF
41967 modules to be overwritten.
41968
41969 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
41970 the memdisk image in its own region, make it part of the module list.
41971 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
41972 (main): Parse --memdisk|-m option, and pass user-provided path as
41973 parameter to generate_image().
41974 (add_segments): Pass `memdisk_path' down to load_modules().
41975 (load_modules): Embed memdisk image in module section when requested.
41976 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
41977 `header.type' instead of `header.offset'.
41978
41979 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
41980 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
41981 (memdisk_mod_LDFLAGS): New variables.
41982 * conf/i386-coreboot.rmk: Likewise.
41983 * conf/i386-ieee1275.rmk: Likewise.
41984
a927cc73 419852008-08-02 Robert Millan <rmh@aybabtu.com>
41986
41987 * loader/i386/pc/multiboot.c (playground, forward_relocator)
41988 (backward_relocator): New variables. Used to allocate and relocate
41989 the payload, respectively.
41990 (grub_multiboot_load_elf32): Load into heap instead of requested
825aa57a 41991 address, install the appropriate relocator code in each bound of
a927cc73 41992 the payload, and set the entry point such that
41993 grub_multiboot_real_boot() will jump to one of them.
41994
41995 * kern/i386/loader.S (grub_multiboot_payload_size)
41996 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
41997 (grub_multiboot_payload_entry_offset): New variables.
41998 (grub_multiboot_real_boot): Set cpu context to what the relocator
41999 expects, and jump to the relocator instead of the payload.
42000
42001 * include/grub/i386/loader.h (grub_multiboot_payload_size)
42002 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
42003 (grub_multiboot_payload_entry_offset): Export.
42004
b15d8a0c 420052008-08-01 Bean <bean123ch@gmail.com>
42006
42007 * normal/menu_entry.c (editor_getline): Don't return the original
42008 string as result, as it will be released by lexer once it has done
42009 using it.
42010
cdfb3d22 420112008-08-01 Robert Millan <rmh@aybabtu.com>
42012
42013 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
42014 within menuentries, not before them.
42015 util/grub.d/10_hurd.in: Likewise.
42016
9175e93d 420172008-08-01 Bean <bean123ch@gmail.com>
42018
42019 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
42020 (bufio_mod_SOURCES): New macro.
42021 (bufio_mod_CFLAGS): Likewise.
42022 (bufio_mod_LDFLAGS): Likewise.
42023
42024 * include/grub/bufio.h: New file.
42025
42026 * io/bufio.c: Likewise.
42027
42028 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
42029 (grub_video_reader_png): Use grub_buffile_open to open file.
42030
42031 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
42032 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
42033
42034 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
42035 (grub_video_reader_tga): Use grub_buffile_open to open file.
42036
42037 * font/manager.c: Include <grub/bufio.h>.
42038 (add_font): Use grub_buffile_open to open file.
42039
3d8383e7 420402008-07-31 Robert Millan <rmh@aybabtu.com>
42041
42042 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
42043 ELF segments, use a macro for arbitrarily accessing any of them instead
42044 of preparing a pointer that allows access to one at a time.
42045 (grub_multiboot_load_elf64): Likewise.
42046
16e641b6 420472008-07-31 Bean <bean123ch@gmail.com>
42048
42049 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
42050 GRUB_KERNEL_MACHINE_DATA_END.
42051
59198b72 420522008-07-30 Robert Millan <rmh@aybabtu.com>
42053
42054 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
42055 Increase from 0x50 to 0x60.
42056 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
42057 use UUIDs to identify the root drive for them. If that's not
42058 possible, abort.
42059 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
42060 check, for cross-disk installs.
42061
ae88bca3 420622008-07-30 Robert Millan <rmh@aybabtu.com>
42063
42064 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
42065 is non-empty, use it to set the `prefix' environment variable instead
42066 of the usual approach.
42067 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
42068 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
42069 environment variable instead of dummy make_install_device().
42070
42071 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
42072 (start): Insert a data section, with `grub_prefix' variable.
825aa57a 42073 * kern/i386/linuxbios/startup.S: Likewise.
ae88bca3 42074
42075 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
42076 New variable reference.
42077 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
42078 New macro. Defines offset of `grub_prefix' within startup.S (relative
42079 to `start').
42080 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
42081 section within startup.S (relative to `start').
42082 * include/grub/i386/coreboot/kernel.h: Likewise.
42083
42084 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
42085 Overwrite grub_prefix with its contents, at the beginning of the
42086 first segment.
42087 (main): Understand -p|--prefix.
42088
14f41dd1 420892008-07-30 Robert Millan <rmh@aybabtu.com>
42090
42091 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
42092
4ca049a3 420932008-07-30 Robert Millan <rmh@aybabtu.com>
42094
42095 * term/i386/pc/vga_text.c (grub_console_cls): Use
42096 grub_console_gotoxy() to go back to beginning of the screen.
42097 Found by Patrick Georgi <patrick.georgi@coresystems.de>
42098
2921d337 420992008-07-29 Christian Franke <franke@computer.org>
42100
42101 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
42102 Add conversion of emulated mount points on Cygwin.
42103
b609876d 421042008-07-29 Christian Franke <franke@computer.org>
42105
42106 * util/update-grub.in: Add a check for admin
42107 group on Cygwin.
42108 Remove old `grub.cfg.new' before creation.
42109 Add `-f' to `mv' to handle the different filesystem
42110 semantics of Windows.
42111
e93e4679 421122008-07-29 Bean <bean123ch@gmail.com>
42113
42114 * normal/main.c (get_line): Fix buffer overflow bug.
42115
41694fd0 421162008-07-28 Robert Millan <rmh@aybabtu.com>
42117
42118 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
42119 (struct grub_apple_header): New struct. Describes the layout of
42120 the partmap header.
42121 (apple_partition_map_iterate): Check the header magic as well as the
42122 partition magic (which was already being checked).
42123
cfd0b4e6 421242008-07-28 Pavel Roskin <proski@gnu.org>
42125
42126 * genmk.rb: Add a warning to the beginning of the output that
42127 it's a generated file and should not be edited.
42128
93cce016 421292008-07-28 Robert Millan <rmh@aybabtu.com>
42130
42131 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
42132 with the same number are found, just use issue a warning with
42133 grub_dprintf(), as this error has been reported to be non-fatal.
c298def0 42134
cd1df915 421352008-07-27 Robert Millan <rmh@aybabtu.com>
42136
42137 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
42138 information.
42139
b70a8427 421402008-07-27 Bean <bean123ch@gmail.com>
42141
42142 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
42143 (grub_fat_find_dir): Ignore case when comparing filename.
42144
8f5e379f 421452008-07-27 Bean <bean123ch@gmail.com>
42146
42147 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
42148 smallino, as it's more descriptive, and i8count can be confused with
42149 the other field count.
42150 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
42151 inode type.
42152
a85cd5a0 421532008-07-27 Bean <bean123ch@gmail.com>
42154
42155 * commands/crc.c: New file.
42156
42157 * lib/crc.c: Likewise.
42158
42159 * include/grub/lib/crc.h: Likewise.
42160
42161 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
42162
42163 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
42164 (hexdump): Move this function to ...
42165
42166 * lib/hexdump.c: ... here.
42167
42168 * include/grub/hexdump.h: Renamed to ...
42169
42170 * include/grub/lib/hexdump.h: ... this.
42171
42172 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
42173
42174 * util/grub-editenv.c: Likewise.
42175
42176 * include/envblk.h: Renamed to ...
42177
42178 * include/lib/envblk.h: ... this.
42179
42180 * util/envblk.c: Renamed to ...
42181
42182 * lib/envblk.c: ... this.
42183
42184 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
42185 lib/hexdump.c.
42186 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
42187 (pkglib_MODULES): Add crc.mod.
42188 (hexdump_mod_SOURCES): Add lib/hexdump.c.
42189 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
42190 (crc_mod_SOURCES): New macro.
42191 (crc_mod_CFLAGS): Likewise.
42192 (crc_mod_LDFLAGS): Likewise.
42193
42194 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
42195
42196 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42197
42198 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
42199
42200 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42201
42202 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
42203
c298def0 422042008-07-27 Felix Zielcke <fzielcke@z-51.de>
8749e9e5 42205
42206 * commands/help.c: Include <grub/term.h>.
42207 (TERM_WIDTH): Removed. Updated all users.
42208
cc349fb3 422092008-07-27 Pavel Roskin <proski@gnu.org>
42210
42211 * util/getroot.c (find_root_device): Rephrase a comment to avoid
42212 spurious warnings about a comment within a comment.
42213
9051607e 422142008-07-25 Robert Millan <rmh@aybabtu.com>
42215
42216 * util/getroot.c (find_root_device): Skip devices that match
42217 /dev/dm-[0-9]. This lets the real device be found for any type of
42218 abstraction (LVM, EVMS, RAID..).
42219 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
42220 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
42221 device is found first, find_root_device() will now skip it.
42222
01453bfc 422232008-07-24 Pavel Roskin <proski@gnu.org>
42224
42225 * include/grub/types.h: Use __builtin_bswap32() and
42226 __builtin_bswap64() with gcc 4.3 and newer.
42227
6af9849f 422282008-07-24 Christian Franke <franke@computer.org>
42229
3a0fa256 42230 * util/i386/pc/grub-install.in: If `--debug' is specified,
42231 pass `--verbose' to grub-setup.
42232 Abort script if make_system_path_relative_to_its_root() fails.
42233
7810e747 422342008-07-24 Bean <bean123ch@gmail.com>
42235
42236 * configure.ac: Fixed a bug caused by the previous cygwin patch,
42237 variable `target_platform' should be `platform'.
42238
42290e17 422392008-07-24 Bean <bean123ch@gmail.com>
42240
51cc5193 42241 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
42290e17 42242 (grub_png_init_fixed_block): New function.
42243 (grub_png_decode_image_data): Handle fixed huffman code compression.
42244
2a8a80e4 422452008-07-24 Bean <bean123ch@gmail.com>
42246
42247 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
42248 (grub_pe2elf_SOURCES): New macro.
42249 (CLEANFILES): Add grub-pe2elf.
42250
42251 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
42252 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
42253 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
42254 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
42255 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
42256 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
42257 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
42258 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
42259 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
42260 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
42261 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
42262 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
42263 (GRUB_PE32_DT_FUNCTION): Likewise.
42264 (GRUB_PE32_REL_I386_DIR32): Likewise.
42265 (GRUB_PE32_REL_I386_REL32): Likewise.
42266 (grub_pe32_symbol): New structure.
42267 (grub_pe32_reloc): Likewise.
42268
42269 * util/grub-pe2elf.c: New file.
42270
42271 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
42272 start symbol in non pc platform.
42273
42274 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
42275
42276 The following patches are from Christian Franke.
42277
42278 * include/grub/dl.h: Remove .previous, gas supports this only
42279 for ELF format.
42280
42281 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
42282 Remove .type, gas supports this only for ELF format.
42283
42284 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
42285 nullbytes in symbol table. This fixes an infinite loop if table is
42286 zero filled.
42287
42288 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
42289 TARGET_IMG_LDFLAGS and EXEEXT.
42290
42291 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
42292 TARGET_IMG_LDFLAGS_AC.
42293 (grub_CHECK_STACK_ARG_PROBE): New function.
42294
42295 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
42296
42297 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
42298
42299 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
42300 to set TARGET_IMG_LD* accordingly.
42301 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
42302 Add call to grub_CHECK_STACK_ARG_PROBE.
42303 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
42304
42305 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
42306
42307 * genmk.rb: Add EXEEXT to CLEANFILES.
42308
12ccdb75 423092008-07-23 Robert Millan <rmh@aybabtu.com>
42310
42311 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
42312 define the codes for arrows and lines used for the menu).
42313 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
42314 as well.
42315
42316 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
42317 fonts, because the latter are too slow.
42318
18eeaf04 423192008-07-21 Bean <bean123ch@gmail.com>
42320
42321 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
42322 a20. Run keyboard test last, as it will cause macbook to halt.
42323
b095e2ad 423242008-07-18 Pavel Roskin <proski@gnu.org>
42325
42326 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
42327 load foreign architecture modules correctly anyway. Keep
42328 support for loading host architecture modules, whether we
42329 compile them or not.
42330
737feb35 423312008-07-17 Pavel Roskin <proski@gnu.org>
42332
3f4ce737 42333 * configure.ac: Use -m32 or -m64 regardless of whether we had to
42334 change target_cpu. The compiler default can mismatch target_cpu
42335 in any case.
42336
4ad2d049 42337 * disk/efi/efidisk.c: Fix format warnings on x86_64.
42338 * kern/efi/efi.c: Likewise.
42339
f6130a12 42340 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
42341 target compiler is functional.
42342 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
42343 are set up.
42344
58393a2d 42345 * configure.ac: Default to efi platform for x86_64-apple. Allow
42346 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
42347 adjustments from the rest, only do them if target is not
42348 explicitly given. Merge other adjustments with the final sanity
42349 check. Remove an extraneous check for supported CPU. Be
42350 specific which CPU and which platform is not supported.
42351
737feb35 42352 * configure.ac: Default to pc platform for x86_64.
42353
546f966a 423542008-07-17 Robert Millan <rmh@aybabtu.com>
42355
42356 Partial LinuxBIOS -> Coreboot rename.
42357
42358 * conf/i386-linuxbios.rmk: Renamed to ...
42359 * conf/i386-coreboot.rmk: ... this.
42360 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
42361 * configure.ac: Accept "coreboot" as input platform (but maintain
42362 compatibility with "linuxbios").
42363 * include/grub/i386/linuxbios: Renamed to ...
42364 * include/grub/i386/coreboot: ... this.
42365
20011694 423662008-07-17 Bean <bean123ch@gmail.com>
42367
42368 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
c11f6d16 42369 (appleldr_mod_SOURCE): New variable.
20011694 42370 (appleldr_mod_CFLAGS): Likewise.
42371 (appleldr_mod_LDFLAGS): Likewise.
42372 (pci_mod_SOURCES): Likewise.
42373 (pci_mod_CFLAGS): Likewise.
42374 (pci_mod_LDFLAGS): Likewise.
42375 (lspci_mod_SOURCES): Likewise.
42376 (lspci_mod_CFLAGS): Likewise.
42377 (lspci_mod_LDFLAGS): Likewise.
42378
42379 * conf/x86_64-efi.rmk: New file.
42380
42381 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
42382 macro.
42383 (grub_efidisk_write): Likewise.
42384
42385 * include/efi/api.h (efi_call_0): New macro.
42386 (efi_call_1): Likewise.
42387 (efi_call_2): Likewise.
42388 (efi_call_3): Likewise.
42389 (efi_call_4): Likewise.
42390 (efi_call_5): Likewise.
42391 (efi_call_6): Likewise.
42392
42393 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
42394 grub_rescue_cmd_chainloader.
42395
42396 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
42397 (grub_pe32_optional_header): Change some fields based on i386 or
42398 x86_64 platform.
42399 (GRUB_PE32_PE32_MAGIC): Likewise.
42400
42401 * include/grub/efi/uga_draw.h: New file.
42402
42403 * include/grub/elf.h (STN_ABS): New constant.
42404 (R_X86_64_NONE): Relocation constant for x86_64.
42405 (R_X86_64_64): Likewise.
42406 (R_X86_64_PC32): Likewise.
42407 (R_X86_64_GOT32): Likewise.
42408 (R_X86_64_PLT32): Likewise.
42409 (R_X86_64_COPY): Likewise.
42410 (R_X86_64_GLOB_DAT): Likewise.
42411 (R_X86_64_JUMP_SLOT): Likewise.
42412 (R_X86_64_RELATIVE): Likewise.
42413 (R_X86_64_GOTPCREL): Likewise.
42414 (R_X86_64_32): Likewise.
42415 (R_X86_64_32S): Likewise.
42416 (R_X86_64_16): Likewise.
42417 (R_X86_64_PC16): Likewise.
42418 (R_X86_64_8): Likewise.
42419 (R_X86_64_PC8): Likewise.
42420
42421 * include/grub/i386/efi/pci.h: New file.
42422
42423 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
42424 Change it value based on platform.
42425 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
42426 (GRUB_E820_RAM): Likewise.
42427 (GRUB_E820_RESERVED): Likewise.
42428 (GRUB_E820_ACPI): Likewise.
42429 (GRUB_E820_NVS): Likewise.
42430 (GRUB_E820_EXEC_CODE): Likewise.
42431 (GRUB_E820_MAX_ENTRY): Likewise.
42432 (grub_e820_mmap): New structure.
42433 (linux_kernel_header): Change the efi field according to different
42434 kernel version, also field from linux_kernel_header.
42435
42436 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
42437
42438 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
42439 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
42440 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
42441 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
42442 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
42443 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
42444 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
42445 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
42446 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
42447 (GRUB_PCI_ADDR_IO_MASK): Likewise.
42448
42449 * include/grub/x86_64/efi/kernel.h: New file.
42450
42451 * include/grub/x86_64/efi/loader.h: Likewise.
42452
42453 * include/grub/x86_64/efi/machine.h: Likewise.
42454
42455 * include/grub/x86_64/efi/pci.h: Likewise.
42456
42457 * include/grub/x86_64/efi/time.h: Likewise.
42458
42459 * include/grub/x86_64/linux.h: Likewise.
42460
42461 * include/grub/x86_64/setjmp.h: Likewise.
42462
42463 * include/grub/x86_64/time.h: Likewise.
42464
42465 * include/grub/x86_64/types.h: Likewise.
42466
42467 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
42468 GRUB_TARGET_SIZEOF_VOID_P.
42469
42470 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
42471 (grub_efi_locate_handle): Likewise.
42472 (grub_efi_open_protocol): Likewise.
42473 (grub_efi_set_text_mode): Likewise.
42474 (grub_efi_stall): Likewise.
42475 (grub_exit): Likewise.
42476 (grub_reboot): Likewise.
42477 (grub_halt): Likewise.
42478 (grub_efi_exit_boot_services): Likewise.
42479 (grub_get_rtc): Likewise.
42480
42481 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
42482 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
42483 (grub_efi_allocate_pages): Wrap efi calls.
42484 (grub_efi_free_pages): Wrap efi calls.
42485 (grub_efi_get_memory_map): Wrap efi calls.
42486
42487 * kern/x86_64/dl.c: New file.
42488
42489 * kern/x86_64/efi/callwrap.S: Likewise.
42490
42491 * kern/x86_64/efi/startup.S: Likewise.
42492
42493 * loader/efi/appleloader.c: Likewise.
42494
42495 * loader/efi/chainloader.c (cmdline): New variable.
42496 (grub_chainloader_unload): Wrap efi calls.
42497 (grub_chainloader_boot): Likewise.
42498 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
42499 command line.
42500
42501 * loader/efi/chainloader_normal.c (chainloader_command):
42502 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
42503 command line.
42504
42505 * loader/i386/efi/linux.c (allocate_pages): Change allocation
42506 method.
42507 (grub_e820_add_region): New function.
42508 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
42509 booting.
42510 (grub_find_video_card): New function.
42511 (grub_linux_setup_video): New function.
42512 (grub_rescue_cmd_linux): Probe for video information.
42513
42514 * normal/x86_64/setjmp.S: New file.
42515
42516 * term/efi/console.c (map_char): New function.
42517 (grub_console_putchar): Map unicode char.
42518 (grub_console_checkkey): Wrap efi calls.
42519 (grub_console_getkey): Likewise.
42520 (grub_console_getwh): Likewise.
42521 (grub_console_gotoxy): Likewise.
42522 (grub_console_cls): Likewise.
42523 (grub_console_setcolorstate): Likewise.
42524 (grub_console_setcursor): Likewise.
42525
42526 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
42527
59652a20 425282008-07-16 Pavel Roskin <proski@gnu.org>
42529
ef294055 42530 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
42531 format strings.
42532
59652a20 42533 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
42534 pointer, not an integer. This fixes a warning and prevents
42535 precision loss on 64-bit systems.
42536 (relocate_addresses): Remove unneeded cast.
42537
afc3b5d7 425382008-07-15 Pavel Roskin <proski@gnu.org>
42539
506b2b3e 42540 * kern/i386/ieee1275/init.c: Include grub/cache.h.
42541
62ead89c 42542 * term/ieee1275/ofconsole.c: Disable code unused on i386.
42543
c4cd51d7 42544 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
42545 Fix comparison between signed and unsigned.
42546
0d3d8f28 42547 * include/grub/i386/ieee1275/console.h: Declare
42548 grub_console_init() and grub_console_fini().
42549
8804b286 42550 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
42551 It's empty and unused.
42552
ee01cf35 42553 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
42554 beginning to avoid warnings with some compilers.
42555
afc3b5d7 42556 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
42557 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
42558
e4e8eaa5 425592008-07-14 Pavel Roskin <proski@gnu.org>
42560
407aceb4 42561 * kern/env.c (grub_register_variable_hook): Don't copy empty
42562 string, it leaks memory. Pass "" to grub_env_set(), it should
42563 handle constant strings.
42564
e4e8eaa5 42565 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
42566 * commands/cmp.c (grub_cmd_cmp): Likewise.
42567 * kern/dl.c (grub_dl_flush_cache): Likewise.
42568 (grub_dl_load_core): Likewise.
42569 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
42570 (grub_elf64_load_phdrs): Likewise.
42571
d4e2dad3 425722008-07-13 Pavel Roskin <proski@gnu.org>
42573
42574 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
42575 between signed and unsigned.
42576 (LzmaEnc_Finish): Fix warning about an unused parameter.
42577
aa24b516 425782008-07-13 Bean <bean123ch@gmail.com>
42579
42580 * Makefile.in (enable_lzo): New rule.
42581
42582 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
42583
42584 * configure.ac (ENABLE_LZO): New option --enable-lzo.
42585
42586 * boot/i386/pc/lnxboot.S: #include <config.h>.
42587
42588 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
fe987087 42589 its value according to the compression algorithm used, lzo or lzma.
aa24b516 42590
42591 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
42592 compression algorithm according to configure macro.
42593
42594 * kern/i386/pc/startup.S (codestart): Likewise.
42595
42596 * kern/i386/pc/lzma_decode.S: New file.
42597
42598 * include/grub/lib/LzFind.h: Likewise.
42599
42600 * include/grub/lib/LzHash.h: Likewise.
42601
42602 * include/grub/lib/LzmaDec.h: Likewise.
42603
42604 * include/grub/lib/LzmaEnc.h: Likewise.
42605
42606 * include/grub/lib/LzmaTypes.h: Likewise.
42607
42608 * lib/LzFind.c: Likewise.
42609
42610 * lib/LzmaDec.c: Likewise.
42611
42612 * lib/LzmaEnc.c: Likewise.
42613
4ae821ac 426142008-07-13 Bean <bean123ch@gmail.com>
42615
42616 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
42617 (grub_ext4_extent_header): New structure.
42618 (grub_ext4_extent): Likewise.
42619 (grub_ext4_extent_idx): Likewise.
42620 (grub_ext4_find_leaf): New function.
42621 (grub_ext2_read_block): Handle extents.
42622
9a745147 426232008-07-12 Robert Millan <rmh@aybabtu.com>
42624
42625 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
42626
d49a4cf6 426272008-07-11 Robert Millan <rmh@aybabtu.com>
42628
42629 * util/grub.d/40_custom.in: New file. Example on how to add custom
42630 entries to /etc/grub.d.
42631 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
42632 40_custom (implicitly, by merging all the grub.d rules).
42633
947414b4 426342008-07-11 Pavel Roskin <proski@gnu.org>
42635
0059cf6f 42636 * commands/read.c (grub_getline): Fix invalid memory access.
42637 Don't add newline to the variable value.
42638
947414b4 42639 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
42640 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
42641 (serial_hw_get_port): Check validity of the port number.
42642 (grub_cmd_serial): Check return value of serial_hw_get_port().
42643
62a02d00 426442008-07-07 Pavel Roskin <proski@gnu.org>
42645
42646 * boot/i386/pc/diskboot.S (notification_string): Replace
42647 "Loading kernel" with just "loading". This is shorter, less
42648 confusing and saves a few bytes for possible future changes.
42649
3e5581b0 426502008-07-05 Pavel Roskin <proski@gnu.org>
42651
ea387a48 42652 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
42653 size for ATAPI devices, they are undefined. Output sector
42654 number in decimal form.
42655
3e5581b0 42656 * disk/ata.c: Use named constants for status bits.
42657
fdecb8fd 426582008-07-04 Pavel Roskin <proski@gnu.org>
42659
bcd35b90 42660 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
42661 grub_addr_t before casting it to the void pointer to fix a
42662 warning. Non-addressable regions are discarded earlier.
42663 (grub_arch_modules_addr): Cast _end to grub_addr_t.
42664 * kern/i386/linuxbios/table.c: Include grub/misc.h.
42665 (check_signature): Don't shadow table_header.
42666 (grub_linuxbios_table_iterate): Cast numeric constants to
42667 grub_linuxbios_table_header_t.
42668 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
42669 grub_stop().
42670
af58ab3d 42671 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
42672 prevent warnings.
42673
1759aa57 42674 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
42675 pointer, which can cause warnings. Support 64-bit addresses.
42676
fdecb8fd 42677 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
42678 of sizeof(long). This fixes PowerPC image generation on x86_64.
42679
8516d2a8 426802008-07-04 Robert Millan <rmh@aybabtu.com>
42681
42682 This fixes a performance issue when pc & gpt partmap iterators
42683 didn't abort iteration even after our hook found what it was
fe987087 42684 looking for (often causing expensive probes of non-existent drives).
8516d2a8 42685
42686 Some callers relied on previous buggy behaviour, since they would
34c44600 42687 raise an error when their own hooks caused early abortion of its
8516d2a8 42688 iteration.
42689
42690 * kern/device.c (grub_device_open): Improve error message.
42691 * disk/lvm.c (grub_lvm_open): Likewise.
42692 * disk/raid.c (grub_raid_open): Likewise.
42693
42694 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
42695 when hook requests it, independently of grub_errno.
42696 (pc_partition_map_probe): Do not fail when find_func() caused
42697 early abortion of pc_partition_map_iterate().
42698
42699 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
42700 when hook requests it, independently of grub_errno.
42701 (gpt_partition_map_probe): Do not fail when find_func() caused
42702 early abortion of gpt_partition_map_iterate().
42703
42704 * kern/partition.c (grub_partition_iterate): Abort parent iteration
42705 when hook requests it, independently of grub_errno. Do not fail when
42706 part_map_iterate_hook() caused early abortion of p->iterate().
42707
42708 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
42709 when grub_partition_iterate() returned with non-zero.
42710
277d0de9 427112008-07-03 Pavel Roskin <proski@gnu.org>
42712
42713 * disk/ata.c (grub_ata_pio_write): Check status before writing,
42714 like we do in grub_ata_pio_read().
42715 (grub_ata_readwrite): Always write individual sectors. Fix the
42716 sector count for the remainder.
42717 (grub_ata_write): Enable writing to ATA devices. Correctly
42718 report error for ATAPI devices.
42719
d4c9b428 427202008-07-02 Pavel Roskin <proski@gnu.org>
42721
e43fc690 42722 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
42723 warning.
42724
f707af42 42725 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
42726 for every read sector, we already increment it for the whole
42727 batch. This fixes reading more than 256 sectors at once.
42728
11e16b15 42729 * util/grub-editenv.c (cmd_info): Cast argument to long
42730 explicitly. ptrdiff_t reduces to int on i386.
42731
cbabfdd4 42732 * util/grub-editenv.c (main): Be specific which parameter is
42733 missing.
42734
b8fbce0a 42735 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
42736 (memdisk): Make memdisk_orig_addr a pointer.
42737
c9c8e606 42738 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
42739 for file offsets, use grub_off_t instead. Fix printf format
42740 warnings.
42741
ca62e598 42742 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
42743 there. Real unexpected warnings should not drown in the noise
42744 about known problems.
42745
ce8d1766 42746 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
42747 grub_disk_addr_t for memory addresses.
42748
00c7a56a 42749 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
42750 explicitly to fix a warning.
42751
08d3ef09 42752 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
42753
cb71ba20 42754 * Makefile.in (MODULE_LDFLAGS): New variable.
42755 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
42756 the linker accepts --build-id=none.
42757 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
42758 MODULE_LDFLAGS.
42759 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
42760
d4c9b428 42761 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
42762 those in Linux XFS code. Provide a way to access 64-bit parent
42763 inode.
42764 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
42765 the end of struct grub_xfs_dir_header.
42766
d4156eee 427672008-07-02 Bean <bean123ch@gmail.com>
42768
42769 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
42770 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
42771 and GRUB_IEEE1275_FLAG_NO_ANSI.
42772
42773 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
42774 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
42775 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
42776
42777 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
42778 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
42779
42780 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
42781 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
42782
42783 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
42784 esc sequence on non ANSI terminal.
42785 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
42786
42787 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
42788 beginning of file.
42789
2270f77b 427902008-07-02 Bean <bean123ch@gmail.com>
42791
42792 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
42793 (grub_editenv_SOURCES): New variable.
42794 (pkglib_MODULES): Add loadenv.mod.
42795 (loadenv_mod_SOURCES): New variable.
42796 (loadenv_mod_CFLAGS): Likewise.
42797 (loadenv_mod_LDFLAGS): Likewise.
42798
42799 * include/grub/envblk.h: New file.
42800
42801 * util/envblk.c: New file.
42802
42803 * util/grub-editenv.c: New file.
42804
42805 * commands/loadenv.c: New file.
42806
0e9e51ec 428072008-07-01 Pavel Roskin <proski@gnu.org>
42808
d89b7634 42809 * include/multiboot2.h (struct multiboot_tag_module): Use char,
42810 not unsigned char. This fixes warnings and is consistent with
42811 other tags.
42812
bf1835b1 42813 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
42814
8222a04b 42815 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
42816
6a42d99d 42817 * term/tparm.c (analyze): Always set *popcount.
42818
10b159d1 42819 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
42820 cast to fix a warning.
42821
b8789f6c 42822 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
42823 cast to suppress a warning.
42824
29d7e38a 42825 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
42826 grub_fshelp_read_file() expects.
42827
f341f669 42828 * fs/fat.c: Fix UUID calculation on big-endian systems. We
42829 write uuid as a 32-bit value in CPU byte order, so declare and
42830 use it as such.
42831
0e9e51ec 42832 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
42833 long if the format specifier expects it.
42834 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
42835 * partmap/pc.c (pc_partition_map_iterate): Likewise.
42836 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
42837 long to fix a warning.
42838 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
42839 grub_dprintf() arguments to fix warnings.
42840
3aefa857 428412008-06-30 Pavel Roskin <proski@gnu.org>
42842
56c7668b 42843 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
42844 install_bsd_part immediately before core.img is embedded or
42845 modified on disk. This fixes core.img verification if core.img
42846 cannot be embedded.
42847
3aefa857 42848 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
42849 core_path to calculate the blocklist.
42850 Patch from Javier Martín <lordhabbit@gmail.com>
42851
5444088d 428522008-06-29 Robert Millan <rmh@aybabtu.com>
42853
42854 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
42855 block to disk block.
42856 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
42857 Patch from Niels Böhm <bitbucket@arcor.de>
42858
674835c8 428592008-06-29 Robert Millan <rmh@aybabtu.com>
42860
42861 * util/update-grub_lib.in (font_path): Search for fonts in
42862 /boot/grub first, which is more likely to be readable (we aren't
42863 deciding where fonts live, just looking for them).
42864
f527dbc8 428652008-06-26 Pavel Roskin <proski@gnu.org>
42866
6c2d8df6 42867 * util/biosdisk.c (read_device_map): Don't leave dead map
42868 entries for devices failing stat() check.
42869
f527dbc8 42870 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
42871 core_path_dev for the core.img path on the target device.
42872
aebe3d13 428732008-06-26 Robert Millan <rmh@aybabtu.com>
42874
42875 * disk/fs_uuid.c: New file.
42876 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
42877 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
42878 (fs_uuid_mod_LDFLAGS): New variables.
42879 * include/grub/disk.h (grub_disk_dev_id): Add
42880 `GRUB_DISK_DEVICE_UUID_ID'.
42881 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
42882 implement iterate().
42883
37aaf354 428842008-06-26 Robert Millan <rmh@aybabtu.com>
42885
42886 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
42887 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
42888 Linux image includes no initrd.
42889
25ff262a 428902008-06-21 Javier Martín <lordhabbit@gmail.com>
42891
42892 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
42893 call to resolve the core image location that effectively appended the
42894 name twice.
42895
76a2bd44 428962008-06-21 Robert Millan <rmh@aybabtu.com>
42897
42898 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
42899 call from here ...
42900
42901 * util/grub.d/10_hurd.in: ... to here ...
42902 * util/grub.d/10_linux.in: ... and here.
42903
650e1c79 429042008-06-19 Robert Millan <rmh@aybabtu.com>
42905
fe987087 42906 * kern/main.c (grub_main): Export `prefix' variable immediately
650e1c79 42907 after it has been set by grub_machine_set_prefix().
42908
6ce63911 429092008-06-19 Robert Millan <rmh@aybabtu.com>
42910
42911 * commands/search.c (search_label, search_fs_uuid, search_file): Print
42912 search result when not saving to variable, not the other way around.
42913 When saving to variable, abort iteration as soon as a match is found.
42914
73940cec 429152008-06-19 Robert Millan <rmh@aybabtu.com>
42916
42917 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
42918 check for partition that provides /boot/grub. Its logic is flawed,
42919 as it prevents prepare_grub_to_access_device() from being called
42920 multiple times.
42921
3c62a39d 429222008-06-19 Robert Millan <rmh@aybabtu.com>
42923
42924 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
42925 "insmod" command directly when abstraction modules are needed,
fe987087 42926 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
3c62a39d 42927 since it had already been processed).
42928
47395a42 429292008-06-19 Pavel Roskin <proski@gnu.org>
42930
42931 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
42932 changed. This is needed in case GRUB_LIBDIR changes.
42933 * conf/i386-ieee1275.rmk: Likewise.
42934 * conf/i386-linuxbios.rmk: Likewise.
42935 * conf/i386-pc.rmk: Likewise.
42936 * conf/powerpc-ieee1275.rmk: Likewise.
42937
a145ac2d 429382008-06-18 Pavel Roskin <proski@gnu.org>
42939
42940 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
42941 kernel_elf_symlist.c to symlist.c for consistency with other
42942 architectures. Update all users.
42943 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
42944
7847c51e 429452008-06-18 Robert Millan <rmh@aybabtu.com>
42946
42947 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
42948 it in prefix.
42949
42950 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
42951 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
42952 a RAID device, run setup() for all members independently on whether
42953 LVM abstraction is being used.
42954 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
42955 If grub-mkimage has set `*install_dos_part == -2', don't override this
42956 value.
42957 Perform *install_dos_part adjustments independently on whether
42958 we're embedding or not.
42959 Clarify error message when image is too big for embedding.
42960 Remove duplicate *install_dos_part stanza.
42961
b23e5644 429622008-06-17 Robert Millan <rmh@aybabtu.com>
42963
42964 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
42965 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
42966 variables.
42967 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
42968 values in grub_ofconsole_normal_color and
42969 grub_ofconsole_highlight_color (they're not directly related to
42970 background and foreground).
42971 (grub_ofconsole_setcolorstate): Extract background and foreground
42972 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
42973
0aac2f79 429742008-06-17 Robert Millan <rmh@aybabtu.com>
42975
42976 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
42977 /boot/grub for the check in last commit, not /boot (they could be
42978 different partitions).
42979
3cca7ef3 429802008-06-16 Robert Millan <rmh@aybabtu.com>
42981
42982 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
42983 asked to setup access for the same partition that provides /boot,
42984 don't bother using UUIDs since our root already has the value we
42985 want.
42986
347396d8 429872008-06-16 Robert Millan <rmh@aybabtu.com>
42988
42989 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
42990 I2O devices.
42991 Patch from Sven Mueller <sven@debian.org>.
42992
991477f8 429932008-06-16 Robert Millan <rmh@aybabtu.com>
42994
42995 * util/update-grub.in: Check for $EUID instead of $UID.
42996 Reported by Vincent Zweije.
42997
d31a32a1 429982008-06-16 Bean <bean123ch@gmail.com>
42999
fe987087 43000 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
d31a32a1 43001 (grub_ext2_read_block): Likewise.
43002 (grub_ext2_read_inode): Likewise.
43003 (grub_ext2_mount): Likewise.
43004 (grub_ext2_close): Likewise.
43005 (grub_ext3_get_journal): Removed.
43006
fe987087 43007 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
d31a32a1 43008 (grub_reiserfs_read_symlink): Likewise.
43009 (grub_reiserfs_mount): Likewise.
43010 (grub_reiserfs_open): Likewise.
43011 (grub_reiserfs_read): Likewise.
43012 (grub_reiserfs_close): Likewise.
43013 (grub_reiserfs_get_journal): Removed.
43014
43015 * fs/fshelp.c (grub_fshelp_read): Removed.
43016 (grub_fshelp_map_block): Likewise.
43017
43018 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
43019 (grub_fshelp_journal): Likewise.
43020 (grub_fshelp_read): Likewise.
43021 (grub_fshelp_map_block): Likewise.
43022
3540a760 430232008-06-16 Pavel Roskin <proski@gnu.org>
43024
43025 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
43026 floating point anymore.
43027 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
43028
95614c84 430292008-06-15 Pavel Roskin <proski@gnu.org>
43030
43031 * commands/ls.c (grub_ls_list_files): Use integer calculations
43032 for human readable format, avoid floating point use.
43033 * kern/misc.c (grub_ftoa): Remove.
43034 (grub_vsprintf): Remove floating point support.
43035
50465dd6 430362008-06-15 Robert Millan <rmh@aybabtu.com>
43037
fe6b695a 43038 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
50465dd6 43039 devices.
43040 Reported by Max Vozeler.
43041
a9207284 430422008-06-15 Robert Millan <rmh@aybabtu.com>
43043
43044 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
43045 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
43046 skipped later.
43047 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
43048 the beginning of the prefix.
43049
43050 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
43051 It is assumed that if we have a memdisk, grub-mkimage has set
43052 grub_prefix to include the "(memdisk)" drive in it.
43053
a7cbd45a 430542008-06-15 Robert Millan <rmh@aybabtu.com>
43055
43056 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
43057 Initialize keyboard controller after registering the terminal, so that
43058 grub_printf() can be called from grub_keyboard_controller_init().
43059
21cf716a 430602008-06-15 Robert Millan <rmh@aybabtu.com>
43061
43062 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
43063 extent-btree which is written as big endian on disk.
43064 Reported by Alain Greppin <al@chilibi.org>.
43065
23a64d8e 430662008-06-14 Robert Millan <rmh@aybabtu.com>
43067
43068 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
43069 * util/i386/pc/grub-install.in (modules): Likewise.
43070
d687651c 430712008-06-13 Pavel Roskin <proski@gnu.org>
43072
43073 * commands/ls.c (grub_ls_list_files): Fix format warnings.
43074
dfe9ddd4 430752008-06-13 Bean <bean123ch@gmail.com>
43076
43077 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
43078
43079 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
43080
43081 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
43082 to indicate sparse block.
43083
16ae7781 430842008-06-12 Pavel Roskin <proski@gnu.org>
43085
e6d1a308 43086 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
43087 number, grub_fshelp_read() does it for us.
43088
16ae7781 43089 * fs/fshelp.c (grub_fshelp_read): New function. Implement
43090 linear disk read with journal translation.
43091 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
43092 * include/grub/fshelp.h: Declare grub_fshelp_read().
43093
40fd3a2b 430942008-06-09 Pavel Roskin <proski@gnu.org>
43095
43096 * fs/minix.c (grub_minix_mount): Handle error reading
43097 superblock.
43098
f5679726 430992008-06-08 Robert Millan <rmh@aybabtu.com>
43100
43101 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
43102 don't append the RAID prefix afterwards.
43103 Reported by Clint Adams.
43104
ce525529 431052008-06-08 Robert Millan <rmh@aybabtu.com>
43106
43107 Based on description from Pavel:
43108 * kern/disk.c (grub_disk_check_range): Rename to ...
43109 (grub_disk_adjust_range): ... this. Add a comment explaining the
43110 tasks performed by this function.
43111
ad4936a0 431122008-06-08 Robert Millan <rmh@aybabtu.com>
43113
43114 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
43115 `num_serial' (for consistency with other variables).
43116 (struct grub_ntfs_data): Add `uuid' member.
43117 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
43118 (grub_ntfs_uuid): New function.
43119 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
43120
dc20b0f9 431212008-06-07 Pavel Roskin <proski@gnu.org>
43122
43123 * util/biosdisk.c (open_device): Revert last change to the
43124 function, it broke installation. The sector needs to be
43125 different dependent on which device is opened.
43126
c5e3cfba 431272008-06-06 Robert Millan <rmh@aybabtu.com>
43128
43129 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
43130 rest of GRUB, and breakage doesn't happen if its value were modified.
43131
43132 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
43133 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
43134 a constant (same value).
43135 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
43136 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
43137
26a1f8c4 431382008-06-06 Robert Millan <rmh@aybabtu.com>
43139
43140 * util/biosdisk.c (open_device): Do not modify sector offset when
43141 accessing a partition. kern/disk.c already handles this for us.
43142
25d6b327 431432008-06-06 Robert Millan <rmh@aybabtu.com>
43144
43145 * util/grub-emu.c (grub_machine_init): Move code in this function from
43146 here ...
43147 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
43148 segfault in case grub_printf() is called).
43149
43150 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
43151 grub_probe. Update all users not to explicitly add it again.
43152 (grub_device): New variable; contains corresponding device for grubdir.
43153 (fs_module, partmap_module, devabstraction_module): Pass
43154 `--device ${grub_device}' to grub_probe to avoid traversing /dev
43155 every time.
43156
9ece62fb 431572008-06-05 Robert Millan <rmh@aybabtu.com>
43158
43159 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
43160 is found, print it (same layout as with labels).
43161
1ad36d37 431622008-06-04 Robert Millan <rmh@aybabtu.com>
43163
43164 * util/biosdisk.c (get_drive): Rename to ...
43165 (find_grub_drive): ... this. Update all users.
43166
43167 (get_os_disk): Rename to ...
43168 (convert_system_partition_to_system_disk): ... this. Update all users.
43169
43170 (find_drive): Rename to ...
43171 (find_system_device): ... this. Update all users.
43172
e6a30859 431732008-06-04 Robert Millan <rmh@aybabtu.com>
43174
43175 * util/biosdisk.c (get_os_disk): Handle IDA devices.
43176 * util/grub-mkdevicemap.c (get_mmc_disk_name)
43177 (make_device_map): Likewise.
43178
00c108a4 431792008-06-01 Robert Millan <rmh@aybabtu.com>
43180
43181 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
43182 before dereferencing it.
43183
43184 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
43185 union with fat12/fat16-specific ones. Add some new fields, including
43186 `num_serial' for both versions.
43187 (struct grub_fat_data): Add `uuid' member.
43188 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
43189 names. Initialize `data->uuid' using `num_serial'.
43190 (grub_fat_uuid): New function.
43191 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
43192
43193 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
43194 (grub_reiserfs_uuid): New function.
43195 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
43196 member.
43197
43198 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
43199 (grub_xfs_uuid): New function.
43200 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
43201
1385c5bb 432022008-06-01 Robert Millan <rmh@aybabtu.com>
43203
43204 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
43205 code that is backward compatible with pre-uuid search command.
43206
c682dfd7 432072008-05-31 Robert Millan <rmh@aybabtu.com>
43208
43209 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
43210 floppies after everything else, to ensure floppy drive isn't accessed
43211 unnecessarily (patch from Bean).
43212
b7db5d47 432132008-05-31 Robert Millan <rmh@aybabtu.com>
43214
43215 * commands/search.c (search_label, search_fs_uuid, search_file): Do
43216 not print device names when we were asked to set a variable.
43217
6e037aa9 432182008-05-31 Robert Millan <rmh@aybabtu.com>
43219
43220 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
43221 using "cursor-on" and "cursor-off" commands (understood at least by
43222 the Open Firmware flavour on OLPC).
43223
41305bc8 432242008-05-31 Michael Gorven <michael@gorven.za.net>
43225
43226 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
43227 on and off sequences.
43228
69ba137e 432292008-05-31 Robert Millan <rmh@aybabtu.com>
43230
43231 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
43232 * util/update-grub.in: Likewise.
43233
520ae21b 432342008-05-30 Pavel Roskin <proski@gnu.org>
43235
43236 * util/biosdisk.c (linux_find_partition): Simplify logic and
43237 make the code more universal. Keep special processing for
43238 devfs, but use a simple rule for all other devices. If the
43239 device ends with a number, append 'p' and the partition number.
43240 Otherwise, append only the partition number.
43241
5786569b 432422008-05-30 Robert Millan <rmh@aybabtu.com>
43243
43244 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
43245 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
43246 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
43247 the `root' parameter to Linux.
43248
51500452 432492008-05-30 Robert Millan <rmh@aybabtu.com>
43250
43251 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
43252 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
43253 --fs_uuid with --fs-uuid.
43254 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
43255 all filesystems support them).
43256
811d3878 432572008-05-30 Robert Millan <rmh@aybabtu.com>
43258
43259 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
f19dbdb7 43260 grub_printf() flags, since we're printing in units of 2 bytes.
811d3878 43261
cab63c95 432622008-05-30 Robert Millan <rmh@aybabtu.com>
43263
43264 * util/grub.d/00_header.in: Remove obsolete comment referencing
43265 convert_system_path_to_grub_path().
43266 * util/update-grub.in: Likewise.
43267 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
43268 (convert_system_path_to_grub_path): Add a warning message explaining
43269 that this function is deprecated. Rely on is_path_readable_by_grub()
43270 for the readability checks.
43271 (font_path): Use is_path_readable_by_grub() for the readability
43272 check rather than convert_system_path_to_grub_path().
43273
972e2f7a 432742008-05-30 Robert Millan <rmh@aybabtu.com>
43275
43276 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
43277 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
43278 converting it first.
43279 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
43280 grub.cfg for access to font file, and afterwards call it again to set
43281 the root device.
43282
62191274 432832008-05-30 Robert Millan <rmh@aybabtu.com>
43284
43285 * commands/search.c (options): Add --fs_uuid option.
43286 (search_fs_uuid): New function.
43287 (grub_cmd_search): Fix --set argument passing.
43288 Use search_fs_uuid() when requested via --fs_uuid.
43289 (grub_search_init): Update help message.
43290 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
43291 and redeclare it as an array of 16-bit words.
43292 (grub_ext2_uuid): New function.
43293 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
43294 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
43295 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
43296 (GRUB_DEVICE_BOOT_UUID): New variables.
43297 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
43298 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
43299 whenever possible.
43300 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
43301 just assume `root' variable has the right value.
43302 * util/grub.d/10_linux.in: Likewise.
43303 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
43304 via PRINT_FS_UUID.
43305 (main): Recognise `-t fs_uuid' argument.
43306
01b73ec8 433072008-05-30 Robert Millan <rmh@aybabtu.com>
43308
43309 * util/biosdisk.c (map): Redefine structure to hold information
43310 about GRUB drive name.
fe6b695a 43311 (get_drive): Reimplement without assuming (and verifying) BIOS-like
01b73ec8 43312 drive names.
43313 (call_hook): Remove.
43314 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
43315 member. Assume drive has partitions.
43316 (grub_util_biosdisk_open): Access device names via `.device' struct
43317 member.
43318 (open_device): Likewise.
43319 (find_drive): Likewise.
43320 (read_device_map): Adjust map[] usage to match the new struct
43321 definition. Don't check for duplicates (still possible, but not cheap
43322 anymore).
43323 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
43324 (make_device_name): Remove assumption of BIOS-like drive names.
43325
22f16596 433262008-05-30 Pavel Roskin <proski@gnu.org>
43327
43328 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
43329 compiling execute.c doesn't need grub_script.tab.h anymore.
43330 (normal/command.c_DEPENDENCIES): Likewise.
43331 (normal/function.c_DEPENDENCIES): Likewise.
43332 * conf/i386-ieee1275.rmk: Likewise.
43333 * conf/i386-linuxbios.rmk: Likewise.
43334 * conf/i386-pc.rmk: Likewise.
43335 * conf/powerpc-ieee1275.rmk: Likewise.
43336 * conf/sparc64-ieee1275.rmk: Likewise.
43337
528ad8f2 433382008-05-29 Pavel Roskin <proski@gnu.org>
43339
d1dff95d 43340 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
43341 when scanning metadata for volume group name.
43342
528ad8f2 43343 * include/grub/script.h: Don't include grub_script.tab.h. It's
43344 a generated file, which may only be included from the files with
43345 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
43346 use union YYSTYPE, as the later allows forward declaration.
43347 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
43348
47248e08 433492008-05-29 Robert Millan <rmh@aybabtu.com>
43350
43351 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
43352 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
43353 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
43354 (grub_console_checkkey): Add grub_dprintf() call to report unknown
43355 scan codes.
43356
ee632529 433572008-05-29 Robert Millan <rmh@aybabtu.com>
43358
43359 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
43360 control key combinations.
43361
eee96e08 433622008-05-29 Robert Millan <rmh@aybabtu.com>
43363
43364 * util/powerpc/ieee1275/grub-install.in: Move from here ...
43365 * util/ieee1275/grub-install.in: ... to here.
43366 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
43367 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
43368 (grub_install_SOURCES): Likewise.
43369
da9a6a94 433702008-05-29 Robert Millan <rmh@aybabtu.com>
43371
43372 * fs/affs.c: Update copyright year.
43373 * fs/ext2.c: Likewise.
43374 * fs/fshelp.c: Likewise.
43375 * fs/hfsplus.c: Likewise.
43376 * fs/ntfs.c: Likewise.
43377 * fs/xfs.c: Likewise.
43378 * include/grub/fshelp.h: Likewise.
43379 * util/grub-mkdevicemap.c: Likewise.
43380
12e65f3a 433812008-05-28 Robert Millan <rmh@aybabtu.com>
43382
43383 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
43384 might need to be fatfs to support some firmware implementations
43385 (e.g. OFW or EFI).
43386
23023641 433872008-05-28 Robert Millan <rmh@aybabtu.com>
43388
43389 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
43390 devices.
43391 * util/grub-mkdevicemap.c (get_mmc_disk_name)
43392 (make_device_map): Likewise.
43393
887d2619 433942008-05-20 Bean <bean123ch@gmail.com>
43395
43396 * fs/fshelp.c (grub_fshelp_map_block): New function.
43397 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
43398 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
43399
43400 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
43401 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
43402 (grub_fshelp_journal): New structure.
43403 (grub_fshelp_map_block): New function prototype.
43404 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
43405 (grub_fshelp_map_block): Likewise.
43406
43407 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
43408 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
43409 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
43410 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
43411 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
43412 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
43413 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
43414 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
43415 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
43416 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
43417 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
43418 (grub_ext2_sblock): New members for journal support.
43419 (grub_ext3_journal_header): New structure.
43420 (grub_ext3_journal_revoke_header): Likewise.
43421 (grub_ext3_journal_block_tag): Likewise.
43422 (grub_ext3_journal_sblock): Likewise.
43423 (grub_fshelp_node): New members logfile and journal.
43424 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
43425 grub_fshelp_map_block to get real block number.
43426 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
43427 number.
43428 (grub_ext2_read_inode): Likewise.
43429 (grub_ext3_get_journal): New function.
43430 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
43431 (grub_ext2_close): Release memory used by journal.
43432
43433 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
43434 (REISERFS_MAGIC_DESC_BLOCK): New macro.
43435 (grub_reiserfs_transaction_header): Renamed to
43436 grub_reiserfs_description_block, replace field data with real_blocks.
43437 (grub_reiserfs_commit_block): New structure.
43438 (grub_reiserfs_data): New member journal.
43439 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
43440 number.
43441 (grub_reiserfs_read_symlink): Likewise.
43442 (grub_reiserfs_iterate_dir): Likewise.
43443 (grub_reiserfs_open): Likewise.
43444 (grub_reiserfs_read): Likewise.
43445 (grub_reiserfs_get_journal): New function.
43446 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
43447 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
43448 using grub_reiserfs_get_journal.
43449 (grub_reiserfs_close): Release memory used by journal.
43450
43451 * fs/affs.c (grub_affs_read_block): Change block type to
43452 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
43453
43454 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
43455
43456 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
43457
43458 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
43459
43460 * fs/udf.c (grub_udf_read_block): Change block type to
43461 grub_disk_addr_t. Use type cast to avoid warning.
43462
43463 * fs/xfs.c (grub_xfs_read_block): Likewise.
43464
b7c6bed5 434652008-05-16 Christian Franke <franke@computer.org>
43466
43467 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
43468 to ensure that break with ESC will always work.
43469 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
43470 Remove ESC from keyboard queue.
43471
eedf167f 434722008-05-16 Christian Franke <franke@computer.org>
43473
43474 * util/biosdisk.c: [__CYGWIN__] Add includes.
43475 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
43476 (get_os_disk): Move variable declarations to OS specific
43477 parts to avoid warning.
43478 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
43479 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
43480 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
43481 Cygwin.
43482 * util/getroot.c: [__CYGWIN__] Add includes.
43483 (strip_extra_slashes): Fix "/" case.
43484 [__CYGWIN__] (get_win32_path): New function.
43485 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
43486 [__CYGWIN__] (find_root_device): Disable.
43487 [__CYGWIN__] (get_bootsec_serial): New function.
43488 [__CYGWIN__] (find_cygwin_root_device): Likewise.
43489 [__linux__] (grub_guess_root_device): Add early returns to simplify
43490 structure.
43491 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
43492 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
43493 check for Linux only.
43494
a079699e 434952008-05-15 Bean <bean123ch@gmail.com>
43496
43497 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
43498 keyboard hang problem in apple's intel mac.
43499
1cf4059a 435002008-05-09 Robert Millan <rmh@aybabtu.com>
43501
43502 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
43503 devices.
43504 * util/grub-mkdevicemap.c (get_virtio_disk_name)
43505 (make_device_map): Likewise.
43506 Reported by Aurelien Jarno <aurel32@debian.org>
43507
ed759390 435082008-05-07 Ian Campbell <ijc@hellion.org.uk>
43509
43510 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
43511 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
43512 (make_device_map): Output entries for xvd type disks.
43513
b56c4eaa 435142008-05-07 Robert Millan <rmh@aybabtu.com>
43515
43516 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
43517 devices.
43518 * util/grub-mkdevicemap.c (get_cciss_disk_name)
43519 (make_device_map): Likewise.
43520 Reported by Roland Dreier <rdreier@cisco.com>
43521
7f8866ed 435222008-05-07 Robert Millan <rmh@aybabtu.com>
43523
43524 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
43525 grub_strstr() call. Correct a few mistakes in failure path handling.
43526
b0346e0f 435272008-05-06 Robert Millan <rmh@aybabtu.com>
43528
43529 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
43530 Do not print a trailing slash (therefore, the root directory is an
43531 empty string).
43532 (convert_system_path_to_grub_path): Do not remove trailing slash
43533 from make_system_path_relative_to_its_root() output.
43534
43535 * util/i386/pc/grub-install.in: Add trailing slash to output from
43536 make_system_path_relative_to_its_root().
43537
6cf12cbd 435382008-05-06 Robert Millan <rmh@aybabtu.com>
43539
43540 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
43541 ensures that output lines aren't intermangled with those sent to
43542 stderr (via grub_util_info()).
43543 * util/grub-probe.c (grub_refresh): Likewise.
43544 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
43545
0fbb3117 435462008-05-05 Christian Franke <franke@computer.org>
43547
43548 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
43549 Add Cygwin device names.
43550 (get_ide_disk_name) [__CYGWIN__]: Likewise.
43551 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
43552 (check_device): Return error instead of success on empty name.
43553 (make_device_map): Move label inside linux specific code to
43554 prevent compiler warning.
43555
8124cdb7 435562008-04-30 Robert Millan <rmh@aybabtu.com>
43557
43558 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
43559 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
43560 first boot option.
43561 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
43562
094c01d0 435632008-04-29 Robert Millan <rmh@aybabtu.com>
43564
43565 * docs/grub.cfg: New file (example GRUB configuration).
43566
f4b1fc02 435672008-04-26 Robert Millan <rmh@aybabtu.com>
43568
329ce2a5 43569 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
43570 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
43571 and `disk/ieee1275/nand.c'.
f4b1fc02 43572
25f16ec1 435732008-04-25 Bean <bean123ch@gmail.com>
f19dbdb7 43574
25f16ec1 43575 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
43576 i386-linuxbios.
43577
43578 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
43579 change the buffer size to 4096 for cdrom device.
43580
43581 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
43582 and nand.mod.
43583 (_linux_mod_SOURCES): New variable.
43584 (_linux_mod_CFLAGS): Likewise.
43585 (_linux_mod_LDFLAGS): Likewise.
43586 (linux_mod_SOURCES): Likewise.
43587 (linux_mod_CFLAGS): Likewise.
43588 (linux_mod_LDFLAGS): Likewise.
43589 (nand_mod_SOURCES): Likewise.
43590 (nand_mod_CFLAGS): Likewise.
43591 (nand_mod_LDFLAGS): Likewise.
43592
43593 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
43594 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
43595 type property. (nand device in olpc don't have this property)
43596
43597 * include/grub/disk.h (grub_disk_dev_id): New macro
43598 GRUB_DISK_DEVICE_NAND_ID.
43599
43600 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
43601 function prototype.
43602 (grub_rescue_cmd_initrd): Likewise.
43603
43604 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
43605 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
43606 ofw_cif_handler and ofw_idt, adjust padding number.
f19dbdb7 43607
25f16ec1 43608 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
43609 GRUB_MACHINE_IEEE1275 is defined.
43610
43611 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
43612 Use NESTED_FUNC_ATTR attribute on the hook parameter.
43613
43614 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
43615 on nested function heap_init.
43616 (grub_upper_mem): New variable for i386-ieee1275.
43617 (grub_get_extended_memory): New function for i386-ieee1275.
43618 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
43619
43620 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
43621 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
43622 property.
f19dbdb7 43623
25f16ec1 43624 * loader/i386/ieee1275/linux.c: New file.
43625
43626 * loader/i386/ieee1275/linux_normal.c: New file.
43627
43628 * disk/ieee1275/nand.c: New file.
43629
e89d61e9 436302008-04-18 Thomas Schwinge <tschwinge@gnu.org>
43631
43632 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
43633 value.
43634 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
43635
602566f6 436362008-04-18 Robert Millan <rmh@aybabtu.com>
43637
43638 Restructures early code path on ieee1275 to unify grub_main() as
43639 the first C function that is executed in every platform.
43640
43641 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
43642 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
43643 cmain().
43644 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
43645 * kern/ieee1275/cmain.c (cmain): Rename to ...
43646 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
43647 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
43648 at the beginning.
43649
57490c2b 436502008-04-18 Robert Millan <rmh@aybabtu.com>
43651
43652 * util/update-grub.in: Fix syntax error when setting
43653 `GRUB_PRELOAD_MODULES'.
43654 Reported by Stephane Chazelas <stephane@artesyncp.com>
43655
1977517d 436562008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
43657
43658 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
43659 section into account, newer toolchains generate unique build ids
43660 * configure.ac: remove the test for --build-id=none acceptance,
e0c5dacb 43661 we want build ids to be preserved
1977517d 43662 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
43663 far from other sections don't cause the raw binary images grow
43664 size
43665
bfb1f1a2 436662008-04-15 Robert Millan <rmh@aybabtu.com>
43667
43668 * disk/lvm.c: Update copyright year.
43669 * kern/misc.c: Likewise.
43670
01979850 436712008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
43672
43673 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
f19dbdb7 43674 there is no memory left for physical volume name.
01979850 43675
0a1150e2 436762008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
43677
43678 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
43679 volume name mapping to support bigger than 9 character names properly.
43680
82ead3fe 436812008-04-13 Robert Millan <rmh@aybabtu.com>
43682
43683 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
43684 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
43685
e54a72f5 436862008-04-13 Christian Franke <franke@computer.org>
43687
43688 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
43689 to create a floppy emulation boot CD when non emulation mode
43690 does not work.
43691 Enable Joliet CD filesystem extension.
43692
9fe86034 436932008-04-13 Robert Millan <rmh@aybabtu.com>
43694
43695 * kern/misc.c (grub_strncat): Fix off-by-one error.
43696 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
43697
43698 * kern/env.c (grub_env_context_close): Clear current context, not
43699 previous one.
43700 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
43701
43702 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
43703
7ceeee39 437042008-04-13 Robert Millan <rmh@aybabtu.com>
43705
43706 Improve robustness when handling LVM.
43707
43708 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
f19dbdb7 43709 (and leave `*p' unmodified).
7ceeee39 43710 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
43711 through it.
43712 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
43713 iterating through it.
43714 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
43715 through it.
fe6b695a 43716 (grub_lvm_scan_device): Check the return value (and fail gracefully
7ceeee39 43717 when due) on each grub_lvm_getvalue() or grub_strstr() call.
43718 Don't assume `vg->pvs != NULL' when iterating through it.
43719
58cd3d85 437202008-04-13 Robert Millan <rmh@aybabtu.com>
43721
43722 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
43723 * genmk.rb (partmap): New variable.
43724 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
43725 (#{partmap}): New target rule.
43726 * genpartmaplist.sh: New file.
43727 * Makefile.in (pkglib_DATA): Add partmap.lst.
43728 (partmap.lst): New target rule.
43729 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
43730 modules (including all partition maps), instead of preloading them.
43731
78b51059 437322007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
43733
43734 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
43735 `linux-boot-prober' (if installed) to detect other operating
43736 systems which are installed on the computer and add them to
43737 the boot menu.
43738 * conf/common.rmk: Build and install 30_os-prober.
43739
a91627b4 437402008-04-12 Robert Millan <rmh@aybabtu.com>
43741
43742 * kern/powerpc/ieee1275/init.c: Move from here ...
43743 * kern/ieee1275/init.c: ... to here. Update all users.
43744
43745 * kern/powerpc/ieee1275/cmain.c: Move from here ...
43746 * kern/ieee1275/cmain.c: ... to here. Update all users.
43747
43748 * kern/powerpc/ieee1275/openfw.c: Move from here ...
43749 * kern/ieee1275/openfw.c: ... to here. Update all users.
43750
43751 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
43752 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
43753
322562ea 437542008-04-10 Pavel Roskin <proski@gnu.org>
43755
43756 * configure.ac: Always use "_cv_" in cache variables for
43757 compatibility with Autoconf 2.62.
43758
a02a73c5 437592008-04-07 Robert Millan <rmh@aybabtu.com>
43760
43761 Revert grub/machine/init.h addition by Pavel (since it breaks on
43762 i386-ieee1275 and others):
43763 * util/i386/pc/misc.c: Remove grub/machine/init.h.
43764 * util/powerpc/ieee1275/misc.c: Likewise.
43765
25c024b1 437662008-04-07 Robert Millan <rmh@aybabtu.com>
43767
43768 * util/grub-probe.c (probe): Improve error message.
43769
3cbd2f98 437702008-04-07 Robert Millan <rmh@aybabtu.com>
43771
43772 * util/biosdisk.c (read_device_map): Skip devices that don't exist
43773 (this prevents the presence of a bogus entry from ruining the whole
43774 thing).
43775
87a297bf 437762008-04-06 Pavel Roskin <proski@gnu.org>
43777
36747a62 43778 * util/biosdisk.c: Include grub/util/biosdisk.h.
43779 * util/grub-fstest.c (execute_command): Make static.
43780 * util/grub-mkdevicemap.c (check_device): Likewise.
43781 * util/i386/pc/misc.c: Include grub/machine/init.h.
43782 * util/powerpc/ieee1275/misc.c: Likewise.
43783 * util/lvm.c: Include grub/util/lvm.h.
43784 * util/misc.c: Include grub/kernel.h, grub/misc.h and
43785 grub/cache.h.
43786 * util/raid.c: Include grub/util/raid.h.
43787 (grub_util_getdiskname): Make static.
43788
87a297bf 43789 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
43790 grub_hostfs_fini(), as they are called from grub_init_all() and
43791 grub_fini_all() respectively. This fixes an infinite loop in
43792 grub-fstest due to double registration of hostfs.
43793 Reported by Christian Franke <Christian.Franke@t-online.de>
43794
f6ce7629 437952008-04-05 Pavel Roskin <proski@gnu.org>
43796
43797 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
43798 all 8 functions. Otherwise, probe function 0 only.
43799
070e49e4 438002008-04-04 Pavel Roskin <proski@gnu.org>
43801
8b088a4c 43802 * commands/lspci.c (grub_lspci_iter): Print the bus number
43803 correctly.
43804
4f657021 43805 * commands/lspci.c (grub_pci_classes): Fix typos.
43806 (grub_lspci_iter): Don't print func twice. Print vendor ID
43807 before device ID, as it's normally done.
43808
070e49e4 43809 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
43810 Fix signedness warnings.
43811 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
43812 Likewise.
43813 * util/ieee1275/get_disk_name.c: Include config.h so that
43814 _GNU_SOURCE is defined and getline() is declared. Mark an
43815 unused argument as such. Fix a signedness warning.
43816
ba7328dc 438172008-04-02 Pavel Roskin <proski@gnu.org>
43818
26887f22 43819 * genkernsyms.sh.in: Use more robust assignments for CC and
43820 srcdir. Quote srcdir.
43821 * gensymlist.sh.in: Likewise. Assert at the compile time that
43822 the symbol table is not empty.
43823
ba7328dc 43824 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
43825 * fs/cpio.c (grub_cpio_read): Likewise.
43826
0f582c6b 438272008-04-01 Pavel Roskin <proski@gnu.org>
43828
4b6e1995 43829 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
43830 * disk/host.c (grub_host_open): Likewise.
43831 * disk/loopback.c (grub_loopback_open): Likewise.
43832 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
43833 disk->id as in disk/host.c, not a multi-character constant.
43834
828a2768 43835 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
43836 later is obsolete, potentially dangerous and sets a bad example.
43837 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
43838 * util/misc.c (grub_util_get_image_size): Likewise.
43839
2bb4fb47 43840 * disk/loopback.c (options): Improve help for "--partitions".
43841
0f582c6b 43842 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
43843 options to align them with the short options, e.g. "echo -e".
43844
a33224e0 438452008-03-31 Bean <bean123ch@gmail.com>
43846
43847 * video/reader/png.c (grub_png_data): New member is_16bit and
43848 image_data.
43849 (grub_png_decode_image_header): Detect 16 bit png image.
43850 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
43851 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
43852 (grub_video_reader_png): Release memory occupied by image_data.
43853
43854 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
43855 4096 bytes.
43856 (grub_nfs_mount): Skip the test for sector per cluster.
43857
43858 * include/grub/ntfs.h (MAX_SPC): Removed.
43859
86cb4f54 438602008-03-31 Bean <bean123ch@gmail.com>
43861
43862 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
43863 (grub_probe_SOURCES): Add fs/afs.c.
43864 (grub_fstest_SOURCES): Likewise.
43865 (afs_mod_SOURCES): New variable.
43866 (afs_mod_CFLAGS): Likewise.
43867 (afs_mod_LDFLAGS): Likewise.
43868
43869 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
43870 (grub_emu_SOURCES): Likewise.
43871
43872 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43873
43874 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43875
43876 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
43877
43878 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43879
43880 * fs/afs.c: New file.
43881
17c74c21 438822008-03-30 Pavel Roskin <proski@gnu.org>
43883
4cb68e89 43884 * disk/host.c: Include grub/misc.h to fix a warning.
43885 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
43886 warnings about implicit declarations.
43887
8790bb04 43888 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
43889 variable.
43890 * include/grub/i386/loader.h: Change declaration of
43891 grub_linux_boot() to match what grub_loader_set() expects.
43892 * util/getroot.c (grub_guess_root_device): Return const char* to
43893 fix a warning.
43894 * util/grub-probe.c (probe): Fix a warning about uninitialized
43895 abstraction_name variable.
43896 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
43897 second argument as unused to fix a warning.
43898
9a3f3296 43899 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
43900 missing grub_error() call.
43901
0ecef90d 43902 * util/update-grub_lib.in: Define datarootdir, since Autoconf
43903 2.60 and newer uses it to define datadir.
43904
0bf6d401 43905 * commands/sleep.c: Fix warning about implicit declaration.
43906 * disk/memdisk.c: Likewise.
43907 * loader/aout.c: Likewise.
43908 * loader/i386/bsd_normal.c: Likewise.
43909 * util/grub-probe.c: Likewise.
43910
7cdacf97 43911 * commands/i386/cpuid.c (has_longmode): Make static.
43912 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
43913 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
43914
17c74c21 43915 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
43916 GDT. This is more robust, as %ds can change.
43917 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
43918 calling real_to_prot().
43919 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
43920
80a3e68b 439212008-03-28 Pavel Roskin <proski@gnu.org>
43922
43923 * kern/i386/pc/startup.S: Assert that uncompressed functions
43924 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
43925 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
43926 code, as they push parts of the code (error handlers) beyond
43927 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
43928 code as correctness and size.
43929
77bcd272 439302008-03-28 Pavel Roskin <proski@gnu.org>
43931
43932 * kern/i386/pc/startup.S
43933 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
43934 data block address to the real mode, keep offset minimal. This
43935 works around a bug in AWARD BIOS on old Athlon systems, which
43936 makes CD detection hang.
43937
c5dfd43b 439382008-03-26 Pavel Roskin <proski@gnu.org>
43939
43940 * normal/color.c (grub_parse_color_name_pair): Make `name' a
43941 const.
43942 * include/grub/normal.h: Add grub_parse_color_name_pair()
43943 declaration.
43944
bf962df2 439452008-03-24 Bean <bean123ch@gmail.com>
43946
43947 * disk/i386/pc/biosdisk.c (cd_start): Removed.
43948 (cd_count): Removed.
43949 (cd_drive): New variable.
43950 (grub_biosdisk_get_drive): Don't check for (cdN) device.
43951 (grub_biosdisk_call_hook): Likewise.
43952 (grub_biosdisk_iterate): Change cdrom detection method.
43953 (grub_biosdisk_open): Replace cd_start with cd_drive.
43954 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
43955 detect cdrom device.
43956
43957 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
43958 Removed.
43959 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
43960 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
43961 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
43962 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
43963 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
43964 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
43965 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
43966 (grub_biosdisk_cdrp): New structure.
43967 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
43968
43969 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
43970
43971 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
43972 device.
43973
43974 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
43975 New function.
43976
68e7fc7a 439772008-03-20 Robert Millan <rmh@aybabtu.com>
43978
43979 Remove 2 TiB limit in ata.mod.
43980 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
43981 (grub_ata_dumpinfo): Print sector count with 0x%llx.
43982 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
43983 grub_uint64_t instead of grub_uint32_t.
43984
38ad2cf5 439852008-03-05 Bean <bean123ch@gmail.com>
43986
43987 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
43988 (grub_multiboot): Set boot device.
43989
43990 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
43991
2b89344e 439922008-03-02 Bean <bean123ch@gmail.com>
43993
43994 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
43995 symlink_buffer.
43996
87a95d1f 439972008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
43998
43999 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
44000 texinfo.tex.
44001
44002 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
44003 modified.
44004
44005 * docs/fdl.texi: New file.
f19dbdb7 44006
87a95d1f 44007 * docs/mdate-sh: New file. Copied from gnulib.
44008 * docs/texinfo.tex: Likewise.
44009
44010 * config.guess: Updated from gnulib.
44011 * install-sh: Likewise.
44012
7dc15d8e 440132008-02-28 Robert Millan <rmh@aybabtu.com>
44014
44015 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
44016 (aout_mod_SOURCES): New variable.
44017 (aout_mod_CFLAGS): Likewise.
44018 (aout_mod_LDFLAGS): Likewise.
44019
44020 * conf/i386-ieee1275.rmk: Likewise.
44021
b00ab696 440222008-02-28 Robert Millan <rmh@aybabtu.com>
44023
44024 * util/update-grub.in: Reorganise terminal validity check. Accept
44025 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
44026 Based on suggestion by Franklin PIAT.
44027
79ca2d78 440282008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
44029
44030 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
44031 function.
44032 * util/getroot.c (grub_util_check_block_device): New function that
44033 returns the given argument if it is a block device and returns NULL else.
44034 * util/grub-probe.c (argument_is_device): New variable.
44035 (probe): Promote device_name from a variable to an argument. Receive
44036 device_name from grub_util_check_block_device() if path is NULL and from
44037 grub_guess_root_device() else. Do not free() device_name anymore.
f19dbdb7 44038 (options): Introduce new parameter '-d, --device'.
79ca2d78 44039 (main): Add description of the new parameter to the help screen.
44040 Rename path variable to argument. Set argument_is_device if the '-d'
44041 option is given. Pass argument to probe() depending on
44042 argument_is_device.
44043
0d16e571 440442008-02-24 Bean <bean123ch@gmail.com>
44045
44046 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
44047 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
44048 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
44049 (GRUB_ISO9660_VOLDESC_PART): Likewise.
44050 (GRUB_ISO9660_VOLDESC_END): Likewise.
44051 (grub_iso9660_primary_voldesc): New member escape.
44052 (grub_iso9660_data): New member joliet.
44053 (grub_iso9660_convert_string): New function.
44054 (grub_iso9660_mount): Detect joliet extension.
44055 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
44056 (grub_iso9660_iso9660_label): Likewise.
44057
44058 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
44059 (grub_setup_SOURCES): Add fs/udf.c.
44060 (grub_fstest_SOURCES): Likewise.
44061 (udf_mod_SOURCES): New variable.
44062 (udf_mod_CFLAGS): Likewise.
44063 (udf_mod_LDFLAGS): Likewise.
44064
44065 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
44066 (grub_emu_SOURCES): Likewise.
44067
44068 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
44069
44070 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44071
44072 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
44073
44074 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44075
44076 * fs/udf.c: New file.
44077
8a594a17 440782008-02-24 Robert Millan <rmh@aybabtu.com>
44079
44080 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
44081 (normal/lexer.c_DEPENDENCIES): New variables.
44082 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
44083 (normal/lexer.c_DEPENDENCIES): Likewise.
44084 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
44085 (normal/lexer.c_DEPENDENCIES): Likewise.
44086 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
44087 (normal/lexer.c_DEPENDENCIES): Likewise.
44088 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
44089 (normal/lexer.c_DEPENDENCIES): Likewise.
44090 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
44091 (normal/lexer.c_DEPENDENCIES): Likewise.
44092
2dc33c03 440932008-02-23 Robert Millan <rmh@aybabtu.com>
44094
44095 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
44096 since they were intended to be in hex. This didn't break previously
44097 because of a bug in gpt_partition_map_iterate() (see below).
44098
44099 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
44100 when checking the validity of GPT header.
44101 Remove `partno', since it always provides the same information as `i'.
44102
f6f4cfb0 441032008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
44104
44105 * include/grub/efi/time.h: Fix a wrong comment.
44106
79ff665f 441072008-02-19 Pavel Roskin <proski@gnu.org>
44108
44109 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
44110 message.
44111
d38e24c2 441122008-02-19 Bean <bean123ch@gmail.com>
44113
44114 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
44115 (aout_mod_SOURCES): New variable.
44116 (aout_mod_CFLAGS): Likewise.
44117 (aout_mod_LDFLAGS): Likewise.
44118 (_bsd_mod_SOURCES): New variable.
44119 (_bsd_mod_CFLAGS): Likewise.
44120 (_bsd_mod_LDFLAGS): Likewise.
44121 (bsd_mod_SOURCES): New variable.
44122 (bsd_mod_CFLAGS): Likewise.
44123 (bsd_mod_LDFLAGS): Likewise.
44124
44125 * include/grub/aout.h: New file.
44126
44127 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
44128
44129 * include/grub/i386/bsd.h: New file.
44130
44131 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
44132 to make it public.
44133
44134 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
44135 function is called, so that it's possible to change it inside the hook.
44136 (grub_elf64_load): Likewise.
44137 (grub_elf_file): Don't close the file if elf header is not found.
44138 (grub_elf_close): Close the file if grub_elf_file fails (The new
44139 grub_elf_file won't close it).
44140 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
44141 (grub_elf64_size): Likewise.
44142
44143 * kern/i386/loader.S (grub_unix_real_boot): New function.
44144
44145 * loader/aout.c: New file.
44146
44147 * loader/i386/bsd.c: New file.
44148
44149 * loader/i386/bsd_normal.c: New file.
44150
44151 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
44152
44153 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
fe987087 44154 can test other formats.
d38e24c2 44155
b93bdb0f 441562008-02-19 Robert Millan <rmh@aybabtu.com>
44157
44158 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
44159 (grub_gpt_partition_type_empty): Redefine with macro from
44160 `<grub/gpt_partition.h>'.
44161 (gpt_partition_map_iterate): Adjust partition type comparison.
44162
44163 Export `entry' as partmap-specific `part.data' struct.
44164 (grub_gpt_header, grub_gpt_partentry): Move from here ...
44165
44166 * include/grub/gpt_partition.h (grub_gpt_header)
44167 (grub_gpt_partentry): ... to here (new file).
44168
44169 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
44170
44171 (grub_gpt_partition_type_bios_boot): New const variable, defined
44172 with macro from `<grub/gpt_partition.h>'.
44173
44174 (setup): Replace `first_start' with `embed_region', which keeps
44175 track of the embed region (and is partmap-agnostic).
44176
44177 Replace find_first_partition_start() with find_usable_region(),
44178 which finds a usable region for embedding using partmap-specific
44179 knowledge (supports PC/MSDOS and GPT).
44180
44181 Fix all assumptions that the embed region start at sector 1, using
44182 `embed_region.start' from now on. Similarly, use `embed_region.end'
44183 rather than `first_start' to calculate available size.
44184
44185 In grub_util_info() message, replace "into after the MBR" with an
44186 indication of the specific sector our embed region starts at.
44187
66cb40f6 441882008-02-19 Robert Millan <rmh@aybabtu.com>
44189
44190 * DISTLIST: Replace `commands/ieee1275/halt.c' and
44191 `commands/ieee1275/reboot.c' with `commands/halt.c' and
44192 `commands/reboot.c'.
44193 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
44194 (halt_mod_SOURCES): Likewise.
44195 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
44196 (halt_mod_SOURCES): Likewise.
44197
b7202015 441982008-02-17 Christian Franke <franke@computer.org>
44199
44200 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
44201
32b0fc49 442022008-02-17 Robert Millan <rmh@aybabtu.com>
44203
44204 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
44205 set `first_start' to 0 for non-PC/MSDOS partition maps.
44206
aca63502 442072008-02-16 Robert Millan <rmh@aybabtu.com>
44208
44209 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
44210 do not assume partition map is PC/MSDOS before performing checks that
44211 are specific to that layout.
44212
0de8be86 442132008-02-13 Robert Millan <rmh@aybabtu.com>
44214
44215 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
44216 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
44217 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
44218
c3db8364 442192008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
44220
44221 * configure.ac: Only a cosmetic change on the handling of
44222 -fno-stack-protector.
44223
f714229e 442242008-02-12 Alexandre Boeglin <alex@boeglin.org>
44225
c3db8364 44226 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
44227 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
44228 reboot.c.
f714229e 44229 (grub_install_SOURCES): Add halt.mod and reboot.mod.
44230 (halt_mod_SOURCES): New variable.
44231 (halt_mod_CFLAGS): Likewise.
44232 (halt_mod_LDFLAGS): Likewise.
44233 (reboot_mod_SOURCES): Likewise.
44234 (reboot_mod_CFLAGS): Likewise.
44235 (reboot_mod_LDFLAGS): Likewise.
44236
c3db8364 44237 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
44238 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
44239 reboot.c.
f714229e 44240 (halt_mod_SOURCES): Likewise.
44241 (reboot_mod_SOURCES): Likewise.
44242
c3db8364 44243 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
44244 commands/i386/pc/reboot.c by commands/reboot.c.
f714229e 44245 (reboot_mod_SOURCES): Likewise.
44246
44247 * commands/i386/pc/reboot.c: merge this file ...
44248
44249 * commands/ieee1275/reboot.c: ... and this file ...
44250
44251 * commands/reboot.c: ... to this file.
c3db8364 44252 Add some precompiler directive to include the correct header for
44253 each machine.
f714229e 44254
44255 * commands/ieee1275/halt.c: move this file ...
44256
44257 * commands/halt.c: ... to here.
c3db8364 44258 Add some precompiler directive to include the correct header for
44259 each machine.
f714229e 44260
44261 * include/grub/efi/efi.h (grub_reboot): New function declaration.
44262 (grub_halt): Likewise.
44263
44264 * kern/efi/efi.c (grub_reboot): New function.
44265 (grub_halt): Likewise.
44266
c74493e0 442672008-02-12 Robert Millan <rmh@aybabtu.com>
44268
44269 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
44270 /dev (like it is done for /dev/mapper). This doesn't provide support
44271 for EVMS, but at least it is now easy to identify the problem when it
44272 arises.
44273
d0db4b04 442742008-02-11 Robert Millan <rmh@aybabtu.com>
44275
44276 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
44277 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
44278 comparing it with -1, not 0.
44279
bf748642 442802008-02-10 Robert Millan <rmh@aybabtu.com>
44281
44282 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
44283 `disk/lvm.c'.
44284 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44285 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
44286
44287 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
44288 `disk/lvm.c' to the end of the list.
44289 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
44290 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
44291
b5db202a 442922008-02-10 Robert Millan <rmh@aybabtu.com>
44293
44294 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
44295 grub_print_error() instead. This will let user know why we're entering
44296 rescue mode.
44297 Based on suggestions from Sam Morris.
44298
83abee31 442992008-02-10 Alexandre Boeglin <alex@boeglin.org>
44300
44301 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
44302 on remaining N args, instead of "--" arg N times.
44303
78d5a08b 443042008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
44305
44306 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
44307 (fill_with_default_glyph): Changed to use unknown_glyph for fill
44308 pattern for unknown glyphs.
44309
68807e5f 443102008-02-09 Robert Millan <rmh@aybabtu.com>
44311
44312 * configure.ac: Probe for `help2man'.
44313 * Makefile.in (builddir): New variable.
44314 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
44315 or otherwise add a few flags/options to it.
44316 (install-local): For every executable utility or script that is
44317 installed, invoke $(HELP2MAN) to install a manpage based on --help
44318 output.
44319
44320 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
44321 that it doesn't prevent --help from working in build tree.
44322
44323 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
44324 with `bug-grub@gnu.org'.
44325 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
44326 * util/update-grub.in (usage): New function.
44327 Implement proper argument check, with support for --help and --version
44328 (as well as existing -y).
44329
443302008-02-09 Christian Franke <franke@computer.org>
0d9ff7f0 44331
44332 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
44333 avoid overwriting previous output.
44334 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
44335
c1962162 443362008-02-09 Robert Millan <rmh@aybabtu.com>
44337
44338 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
44339 drawing the menu.
44340
3dac2e3f 443412008-02-09 Robert Millan <rmh@aybabtu.com>
44342
44343 * commands/sleep.c: New file.
44344 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
44345 (sleep_mod_SOURCES): New variable.
44346 (sleep_mod_CFLAGS): Likewise.
44347 (sleep_mod_LDFLAGS): Likewise.
44348
7a634e08 443492008-02-09 Robert Millan <rmh@aybabtu.com>
44350
44351 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
44352 situations in which we can deduce the RAID size and the superblock
44353 doesn't match it.
44354
b92f0c18 443552008-02-09 Robert Millan <rmh@aybabtu.com>
44356
44357 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
44358 and return a grub_diskmemberlist_t composed of LVM physical volumes.
44359 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
44360
44361 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
44362 and return a grub_diskmemberlist_t composed of physical array members.
44363 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
44364
44365 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
44366 prototype.
44367 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
44368 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
44369 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
44370
44371 * util/grub-probe.c (probe): Move partmap probing code from here ...
44372 (probe_partmap): ... to here.
44373 (probe): Use probe_partmap() once for the disk we're probing, and
44374 additionally, when such disk contains a memberlist() struct member,
44375 once for each disk that is contained in the structure returned by
44376 memberlist().
44377
91a4bf68 443782008-02-09 Robert Millan <rmh@aybabtu.com>
44379
44380 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
44381 environment variable to 'all' in order to obtain debug output from
44382 non-util/ code.
44383 * util/i386/pc/grub-setup.c (main): Likewise.
44384
a96f9caa 443852008-02-08 Robert Millan <rmh@aybabtu.com>
44386
44387 * disk/raid.c (grub_raid_scan_device): Check for
44388 `array->device[sb.this_disk.number]' rather than for
44389 `array->device[sb.this_disk.number]->name', since the latter is not
fe6b695a 44390 guaranteed to be accessible.
a96f9caa 44391
b37a9222 443922008-02-08 Robert Millan <rmh@aybabtu.com>
44393
44394 * disk/raid.c: Update copyright.
44395 * fs/cpio.c: Likewise.
44396 * include/grub/raid.h: Likewise.
44397 * loader/i386/pc/multiboot.c: Likewise.
44398 * util/hostfs.c: Likewise.
44399
5626aee1 444002008-02-08 Robert Millan <rmh@aybabtu.com>
44401
44402 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
44403 to a grub_disk_t array.
44404 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
44405 `device[x]'.
44406 (grub_raid_scan_device): Replace `device[x].name' accesses with
44407 `device[x]->name'. Simplify initialization of `array->device[x]'.
44408
554f0187 444092008-02-08 Robert Millan <rmh@aybabtu.com>
44410
44411 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
44412 grub_dprintf() calls.
44413 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
44414 error message.
44415
1ec8425d 444162008-02-07 Christian Franke <franke@computer.org>
44417
44418 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
44419 instead of fseek and ftell to support large files.
44420 (grub_hostfs_read): Likewise.
44421
f2156fda 444222008-02-07 Robert Millan <rmh@aybabtu.com>
44423
44424 Patch from Jeroen Dekkers.
44425 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
fe6b695a 44426 failure, since successfully reading all array members might not be
f2156fda 44427 required.
44428
9216e0e7 444292008-02-06 Robert Millan <rmh@aybabtu.com>
44430
44431 * util/grub-probe.c (probe): Simplify partmap probing (with the
44432 assumption that the first word up to the underscore equals to
44433 the module name).
44434
b0dfd29a 444352008-02-06 Christian Franke <franke@computer.org>
44436
44437 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
44438 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
44439 last block of a cpio or tar stream.
44440 Check for "TRAILER!!!" instead of any empty data
44441 block to detect last block of a cpio stream.
44442 (grub_cpio_dir): Fix constness of variable np.
44443 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
44444 cpio or tar trailer is detected. This fixes a crash
44445 on open of a non existing file.
44446
c32865bf 444472008-02-05 Bean <bean123ch@gmail.com>
44448
44449 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
44450 address of entry.
44451 (grub_multiboot_load_elf64): Likewise.
44452 (grub_multiboot): Initialize mbi structure.
44453
44454 * util/grub-fstest.c: Don't include unused header file script.h.
44455
fe6b695a 44456 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
c32865bf 44457 of file.
44458 (grub_fstest_SOURCES): Likewise.
44459
409480b7 444602008-02-05 Robert Millan <rmh@aybabtu.com>
44461
44462 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
44463 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
44464 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
44465 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
44466
44467 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
44468 (translation_table): Replace hardcoded values with macros
44469 provided by `<grub/term.h>'.
44470
44471 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
44472 (keyboard_map): Correct/add a few values, with macros provided
44473 by `<grub/term.h>'.
44474 (keyboard_map_shift): Zero values that don't differ from their
44475 `keyboard_map' equivalents.
44476 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
44477 Discard the second scan code that is always sent by Caps lock.
44478 Only use `keyboard_map_shift' when it provides a non-zero value,
44479 otherwise fallback to `keyboard_map'.
44480
99fadbaa 444812008-02-04 Bean <bean123ch@gmail.com>
44482
44483 * Makefile.in (enable_grub_fstest): New variable.
44484
44485 * conf/common.rmk (grub_fstest_init.lst): New rule.
44486 (grub_fstest_init.h): Likewise.
44487 (grub_fstest_init.c): Likewise.
44488 (util/grub-fstest.c_DEPENDENCIES): New variable.
44489 (grub_fstest_SOURCES): Likewise.
44490
44491 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
44492
44493 * util/grub-fstest.c: New file.
44494
bf567c50 444952008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
44496
44497 Make grub-setup handle a separate root device.
f19dbdb7 44498
bf567c50 44499 * util/i386/pc/grub-setup.c (setup): Always open the root device,
44500 so that the root device can be compared with the destination
44501 device.
44502 When embedding the core image, if the root and destination devices
44503 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
44504 0xFF.
44505 When not embedding, set ROOT_DRIVE to 0xFF.
f19dbdb7 44506
9be6b98b 445072008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
44508
44509 Add support for having a grub directory in a different drive. This
44510 is still only the data handling part.
f19dbdb7 44511
9be6b98b 44512 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
44513 (codestart): Save %dh in GRUB_ROOT_DRIVE.
44514 (grub_root_drive): New variable.
44515
44516 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
44517 instead of GRUB_BOOT_DRIVE to construct a device name. Set
44518 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
44519 as it was.
44520
44521 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
44522
44523 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
44524 macro.
44525 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
44526
44527 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
44528 is bogus, because PXE booting does not specify any drive
44529 correctly.
44530
44531 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
44532 am not sure if this is really correct.
44533
44534 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
44535 is always identical to the boot drive when booting from a CD.
44536
44537 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
44538 longer.
44539 (root_drive): New variable.
44540 (real_start): Unconditionally set %dh to ROOT_DRIVE.
44541 (setup_sectors): Push %dx right after popping it, because %dh will
44542 be modified later.
44543 (copy_buffer): Restore %dx.
44544
e0ca0677 445452008-02-03 Robert Millan <rmh@aybabtu.com>
44546
44547 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
44548 use `cdboot.img' for cdrom images.
44549
3b3f6629 445502008-02-03 Robert Millan <rmh@aybabtu.com>
44551
44552 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
44553 only setup gfxterm when `font' command has succeeded.
44554
d42b3672 445552008-02-03 Robert Millan <rmh@aybabtu.com>
44556
44557 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
44558 (grub_rescue_cmd_multiboot_loader)
44559 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
44560
fa370ea6 445612008-02-03 Pavel Roskin <proski@gnu.org>
44562
e0c5dacb 44563 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
fa370ea6 44564 %edx and %esi from stack only after grub_gate_a20() is called.
44565 grub_gate_a20() clobbers %edx.
44566
f2a76e1d 445672008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
44568
44569 * configure.ac (AC_INIT): Bumped to 1.96.
44570
44571 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
44572 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
44573 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
44574 video/readers/png.c.
44575
90fd32d1 445762008-02-03 Bean <bean123ch@gmail.com>
9be665dd 44577
44578 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
44579 (cdboot_img_SOURCES): New variable.
44580 (cdboot_img_ASFLAGS): New variable.
44581 (cdboot_img_LDFLAGS): New variable.
44582
44583 * boot/i386/pc/cdboot.S: New file.
44584
44585 * disk/i386/pc/biosdisk.c (cd_start): New variable.
44586 (cd_count): Likewise.
44587 (grub_biosdisk_get_drive): Add support for cd device.
44588 (grub_biosdisk_call_hook): Likewise.
44589 (grub_biosdisk_iterate): Likewise.
44590 (grub_biosdisk_open): Likewise.
44591 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
44592 (grub_biosdisk_rw): Support reading from cd device.
44593 (GRUB_MOD_INIT): Iterate cd devices.
44594
44595 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
44596 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
44597 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
44598
44599 * kern/i386/pc/init.c (make_install_device): Check for cd device.
44600
4020aa53 446012008-02-02 Robert Millan <rmh@aybabtu.com>
44602
44603 * commands/read.c: New file.
44604 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
44605 (read_mod_SOURCES): New variable.
44606 (read_mod_CFLAGS): Likewise.
44607 (read_mod_LDFLAGS): Likewise.
44608
e03a1132 446092008-02-02 Robert Millan <rmh@aybabtu.com>
44610
44611 * normal/main.c (grub_normal_execute): Check for `menu->size' when
44612 determining whether menu has to be displayed.
44613
58c69220 446142008-02-02 Marco Gerards <marco@gnu.org>
44615
44616 * bus/pci.c: New file.
44617
44618 * include/grub/pci.h: Likewise.
44619
44620 * include/grub/i386/pc/pci.h: Likewise.
44621
44622 * commands/lspci.c: Likewise.
44623
44624 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
44625 `lspci.mod'.
44626 (pci_mod_SOURCES): New variable.
44627 (pci_mod_CFLAGS): Likewise.
44628 (pci_mod_LDFLAGS): Likewise.
44629 (lspci_mod_SOURCES): Likewise.
44630 (lspci_mod_CFLAGS): Likewise.
f19dbdb7 44631 (lspci_mod_LDFLAGS): Likewise.
58c69220 44632
c004e1b4 446332008-02-02 Bean <bean123ch@gmail.com>
44634
44635 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
44636 (grub_ufs_get_file_block): Fix indirect block calculation problem.
44637
44638 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
44639 (grub_xfs_btree_node): New structure.
44640 (grub_xfs_btree_root): New structure.
44641 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
44642 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
44643 (GRUB_XFS_EXTENT_BLOCK): Likewise.
44644 (GRUB_XFS_EXTENT_SIZE): Likewise.
44645 (grub_xfs_read_block): Support btree format type.
44646 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
44647 Use directory block as basic unit.
44648
44649 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
44650
44651 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
44652 __attribute__ ((__regparm__ (1))).
44653
f95562bf 446542008-02-01 Robert Millan <rmh@aybabtu.com>
44655
44656 Correct a mistake in previous commit.
44657
44658 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
44659 top.
44660 (normal/command.c_DEPENDENCIES): New variable.
44661
7d31f41f 446622008-02-01 Robert Millan <rmh@aybabtu.com>
44663
44664 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
44665 top.
44666 (normal/command.c_DEPENDENCIES): New variable.
44667 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
44668 * conf/i386-ieee1275.rmk: Likewise.
44669 * conf/i386-linuxbios.rmk: Likewise.
44670 * conf/i386-pc.rmk: Likewise.
44671 * conf/sparc64-ieee1275.rmk: Likewise.
44672 * conf/powerpc-ieee1275.rmk: Likewise.
44673 (grub_emu_SOURCES): Add `fs/fshelp.c'.
44674
44675 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
44676
60b6be74 446772008-02-01 Robert Millan <rmh@aybabtu.com>
44678
44679 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
44680 call at beginning of function.
44681
078522ab 446822008-01-31 Pavel Roskin <proski@gnu.org>
44683
44684 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
d2c11005 44685 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
44686 (grub_mkrescue_SOURCES): Likewise.
078522ab 44687 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
44688
ccaa8a5f 446892008-01-30 Robert Millan <rmh@aybabtu.com>
44690
44691 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
44692 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
44693 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
44694 (grub_probe_SOURCES): ... to here.
44695
44696 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
44697 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
44698 * conf/i386-ieee1275.rmk: Likewise.
44699 * conf/i386-linuxbios.rmk: Likewise.
44700 * conf/powerpc-ieee1275.rmk: Likewise.
44701
ae5a9cd7 447022008-01-30 Tristan Gingold <gingold@free.fr>
44703
44704 * kern/rescue.c: Silently accept empty lines.
44705
70bc2ef2 447062008-01-29 Bean <bean123ch@gmail.com>
44707
44708 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
44709 (real_code_2): Code cleanup and change comment style.
44710 (move_memory): Avoid using 32-bit address mode.
44711
6a4d50ea 447122008-01-29 Bean <bean123ch@gmail.com>
44713
44714 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
44715 (png_mod_SOURCES): New variable.
44716 (png_mod_CFLAGS): Likewise.
44717 (png_mod_LDFLAGS): Likewise.
44718
44719 * video/readers/png.c: New file.
44720
11cc30ac 447212008-01-28 Robert Millan <rmh@aybabtu.com>
44722
44723 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
44724 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
44725 `ifndef GRUB_MOD_GAP' hack.
44726 * util/elf/grub-mkimage.c (add_segments): Likewise.
44727
3abc589f 447282008-01-27 Robert Millan <rmh@aybabtu.com>
44729
44730 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
44731 `GRUB_MOD_GAP' for platforms in which it's not defined.
962ca133 44732 * util/elf/grub-mkimage.c (add_segments): Likewise.
3abc589f 44733
e1907778 447342008-01-27 Robert Millan <rmh@aybabtu.com>
44735
44736 Get grub-emu to build again (including parallel builds).
44737
44738 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
44739 Split into ...
44740 (util/grub-emu.c_DEPENDENCIES): ... this, ...
44741 (normal/execute.c_DEPENDENCIES): ... this, ...
44742 (grub-emu_DEPENDENCIES): ... and this.
44743
44744 * conf/i386-efi.rmk: Likewise.
44745 * conf/i386-linuxbios.rmk: Likewise.
44746 * conf/i386-ieee1275.rmk: Likewise.
44747 * conf/powerpc-ieee1275.rmk: Likewise.
44748 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
44749
2216b101 447502008-01-27 Robert Millan <rmh@aybabtu.com>
44751
44752 * NEWS: Add a few items.
44753
f75172d9 447542008-01-27 Robert Millan <rmh@aybabtu.com>
44755
44756 Fix parallel builds with grub-emu. Based on earlier commit for
44757 grub-probe and grub-setup.
44758
44759 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
44760 (util/grub-emu.c_DEPENDENCIES): ... this.
44761 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
44762 (util/grub-emu.c_DEPENDENCIES): ... this.
44763 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
44764 (util/grub-emu.c_DEPENDENCIES): ... this.
44765 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
44766 (util/grub-emu.c_DEPENDENCIES): ... this.
44767 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
44768 (util/grub-emu.c_DEPENDENCIES): ... this.
44769
3f51de77 447702008-01-27 Pavel Roskin <proski@gnu.org>
44771
44772 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
44773 to create a gap between _end and the modules added to the image
44774 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
44775 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
44776 * util/elf/grub-mkimage.c (add_segments): Likewise.
44777
2033f53e 447782008-01-26 Pavel Roskin <proski@gnu.org>
44779
44780 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
44781 just return an error.
44782
22da1f6f 447832008-01-26 Bean <bean123ch@gmail.com>
44784
44785 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
44786 (grub_reiserfs_get_item): Save offset of the next item.
44787 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
44788
2a9525e6 447892008-01-25 Robert Millan <rmh@aybabtu.com>
44790
44791 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
44792 make all filesystem sources appear together (possibly fixing omissions
44793 while at it).
44794 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
44795 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44796 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
44797 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44798
44799 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
44800 add `kern/file.c'.
44801 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
44802 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
44803 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
44804 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
44805
44806 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
44807 (probe): Add a sanity check to make sure of our ability to read
44808 requested files when probing for filesystem type.
44809
44810 * genmk.rb: Update copyright year (2007).
44811
44812 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
44813 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
44814 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
44815 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
44816 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
44817 : Remove function prototypes.
44818
b95f71b5 448192008-01-25 Robert Millan <rmh@aybabtu.com>
44820
44821 Revert my previous commits (based on wrong assumption of how grub_errno
44822 works).
44823
fe6b695a 44824 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
b95f71b5 44825 * kern/file.c (grub_file_open): Likewise.
44826
d08bbb49 448272008-01-24 Pavel Roskin <proski@gnu.org>
44828
44829 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
44830 that hang if GRUB tries to setup colors.
44831 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
44832 colors for firmwares that don't support it.
44833 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
44834 Recognize Open Hack'Ware, set flags to work around its
44835 limitations.
44836
605e36ed 448372008-01-24 Robert Millan <rmh@aybabtu.com>
44838
44839 * kern/file.c (grub_file_open): Do not account previous failures of
44840 unrelated functions when grub_errno is checked for.
44841 Reported by Oleg Strikov.
44842
bac332a1 448432008-01-24 Bean <bean123ch@gmail.com>
44844
44845 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
44846 (grub_ufs_sblock): New member volume name.
44847 (grub_ufs_find_file): Fix string copy bug.
44848 (grub_ufs_label): Implement this function properly.
44849
44850 * fs/hfs.c (grub_hfs_cnid_type): New enum.
44851 (grub_hfs_iterate_records): Use the correct file number for extents
44852 and catalog file. Fix problem in next index calculation.
44853 (grub_hfs_find_node): Replace recursive function call with loop.
44854 (grub_hfs_iterate_dir): Replace recursive function call with loop.
44855
15c80c09 448562008-01-23 Robert Millan <rmh@aybabtu.com>
44857
44858 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
44859 `<grub/symbol.h>' and `<grub/multiboot.h>'.
44860 (grub_multiboot2_real_boot): New function prototype.
44861
44862 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
44863 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
44864
44865 * kern/i386/ieee1275/init.c (grub_os_area_addr)
44866 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
44867
305338fd 448682008-01-23 Robert Millan <rmh@aybabtu.com>
44869
44870 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
44871 #ifdef'ed out grub_printf().
44872
3ea52685 448732008-01-23 Robert Millan <rmh@aybabtu.com>
44874
44875 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
44876 grub_dprintf calls, since they make "debug=all" mode unusable.
44877 (grub_console_checkkey): Likewise.
44878
5882ae4b 448792008-01-23 Robert Millan <rmh@aybabtu.com>
44880
44881 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
44882 `term/i386/pc/at_keyboard.c'.
44883 (pkglib_MODULES): Add `serial.mod'.
44884 (serial_mod_SOURCES): New variable.
44885 (serial_mod_CFLAGS): Likewise.
44886 (serial_mod_LDFLAGS): Likewise.
44887
44888 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
44889 `<grub/powerpc/ieee1275/console.h>'.
44890 (grub_keyboard_controller_init): New function prototype.
44891 (grub_console_checkkey): Likewise.
44892 (grub_console_getkey): Likewise.
44893
44894 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
44895 keyboard on i386.
44896
44897 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
44898 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
44899
06ab5303 449002008-01-23 Robert Millan <rmh@aybabtu.com>
44901
44902 * kern/i386/pc/init.c (make_install_device): When memdisk image is
44903 present, "(memdisk)/boot/grub" becomes the default prefix.
44904
44905 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
44906 a memdisk tarball with all the modules. Add --overlay=DIR option that
44907 allows users to overlay additional files into the image.
44908
dbb475a4 449092008-01-23 Robert Millan <rmh@aybabtu.com>
44910
44911 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
44912 and `machine/memory.h'.
44913 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
44914 (_multiboot_mod_SOURCES): New variable.
44915 (_multiboot_mod_CFLAGS): Likewise.
44916 (_multiboot_mod_LDFLAGS): Likewise.
44917 (multiboot_mod_SOURCES): Likewise.
44918 (multiboot_mod_CFLAGS): Likewise.
44919 (multiboot_mod_LDFLAGS): Likewise.
44920
44921 * include/grub/i386/ieee1275/loader.h: New file.
44922
44923 * include/grub/i386/ieee1275/machine.h: Likewise.
44924
44925 * include/grub/i386/ieee1275/memory.h: Likewise.
44926
44927 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
44928 variable declaration.
44929 (grub_os_area_size): Likewise.
44930
44931 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
44932 (grub_lower_mem, grub_upper_mem): New variables.
44933 (grub_stop_floppy): New function (just to make
44934 grub_multiboot2_real_boot() happy).
44935
44936 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
44937 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
44938 (grub_stop): New function.
44939 Include `"../realmode.S"' and `"../loader.S"'.
44940
44941 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
44942 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
44943
44944 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
44945 rely on grub_multiboot2_real_boot() for final boot.
44946
25638629 449472008-01-22 Robert Millan <rmh@aybabtu.com>
44948
44949 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
44950 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
44951 device that doesn't look like an SD card.
44952 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
44953 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
44954 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
44955 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
44956 found.
44957
9dad816d 449582008-01-22 Robert Millan <rmh@aybabtu.com>
44959
44960 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
44961 avoid claiming over our own code.
44962
34842f2d 449632008-01-22 Bean <bean123ch@gmail.com>
44964
44965 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
44966 (jpeg_mod_SOURCES): New variable.
44967 (jpeg_mod_CFLAGS): Likewise.
44968 (jpeg_mod_LDFLAGS): Likewise.
44969
44970 * video/readers/jpeg.c : New file.
44971
44023a28 449722008-01-22 Bean <bean123ch@gmail.com>
44973
44974 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
44975 there are no more items.
44976
bc2d8ac6 449772008-01-21 Robert Millan <rmh@aybabtu.com>
44978
44979 * kern/mm.c (grub_mm_init_region): Improve debug message.
44980
261bd4bc 449812008-01-21 Robert Millan <rmh@aybabtu.com>
44982
44983 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
44984 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
44985 address.
44986 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
44987 a C macro.
44988 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
44989 Indicates start of upper memory.
44990 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
44991 (generate_image): Abort when image size is big enough to corrupt
44992 upper memory.
44993
44994 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
44995 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
44996 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
44997 instead of hardcoding 0xA0000.
44998 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
44999 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
45000 instead of hardcoding 0xA0000.
45001
f970b55e 450022008-01-21 Robert Millan <rmh@aybabtu.com>
45003
45004 * disk/memdisk.c (memdisk_size): New variable.
45005 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
45006 `memdisk_size'.
45007 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
45008 image to dynamic memory.
45009 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
45010 `memdisk_size'. Free memdisk block.
45011
1a8b0526 450122008-01-21 Robert Millan <rmh@aybabtu.com>
45013
45014 Fix detection of very small filesystems (like tar).
45015
45016 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
45017 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
45018 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
45019 a problem with this disk).
45020
6e9b4aab 450212008-01-21 Robert Millan <rmh@aybabtu.com>
45022
45023 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
45024 on grub_biosdisk_rw_standard() error.
45025
0d8837b2 450262008-01-21 Robert Millan <rmh@aybabtu.com>
45027
45028 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
45029 recent changes.
45030 * kern/elf.c: Likewise.
45031 * kern/ieee1275/ieee1275.c: Likewise.
45032 * kern/powerpc/ieee1275/openfw.c: Likewise.
45033 * term/ieee1275/ofconsole.c: Likewise.
45034
ffd36e34 450352008-01-21 Robert Millan <rmh@aybabtu.com>
45036
45037 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
45038
3f0093d0 45039 * include/grub/kernel.h (grub_arch_memdisk_addr)
45040 (grub_arch_memdisk_size): Moved from here ...
ffd36e34 45041
3f0093d0 45042 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
45043 (grub_arch_memdisk_size): ... to here.
ffd36e34 45044
6c391b21 450452008-01-21 Robert Millan <rmh@aybabtu.com>
45046
45047 Mostly based on bugfix from Bean.
45048
45049 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
45050 attribute with hook() parameter.
45051 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
45052 declaration.
45053 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
45054 attribute with hook() parameter.
45055 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
45056 declaration.
45057
55a581dc 450582008-01-21 Robert Millan <rmh@aybabtu.com>
45059
45060 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
45061 (pkglib_MODULES): Add `memdisk.mod'.
45062 (memdisk_mod_SOURCES): New variable.
45063 (memdisk_mod_CFLAGS): Likewise.
45064 (memdisk_mod_LDFLAGS): Likewise.
45065
45066 * disk/memdisk.c: New file.
45067
45068 * include/grub/disk.h (grub_disk_dev_id): Add
45069 `GRUB_DISK_DEVICE_MEMDISK_ID'.
45070
45071 * include/grub/i386/pc/kernel.h
45072 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
45073 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
45074 (grub_kernel_image_size): New variable declaration.
45075 (grub_total_module_size): Likewise.
45076 (grub_memdisk_image_size): Likewise.
45077
45078 * include/grub/i386/pc/memory.h
45079 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
45080
45081 * include/grub/kernel.h: Include `<grub/symbol.h>'.
45082 (grub_arch_memdisk_addr): New variable declaration.
45083 (grub_arch_memdisk_size): Likewise.
45084
45085 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
45086 (grub_arch_memdisk_size): Likewise.
45087
45088 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
45089 (codestart): Replace hardcoded `0x100000' with
45090 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
45091
45092 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
45093 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
45094 not NULL, append the contents of the file it refers to, at the end of
45095 the compressed kernel image. Initialize `grub_memdisk_image_size'
45096 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
45097 (options): Add "memdisk"|'m' option.
45098 (main): Parse --memdisk|-m option, and pass user-provided path as
45099 parameter to generate_image().
45100
3d7f54c9 451012008-01-20 Robert Millan <rmh@aybabtu.com>
45102
45103 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
45104 grub_dprintf() calls from here ...
45105 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
45106
0bf74728 451072008-01-20 Robert Millan <rmh@aybabtu.com>
45108
45109 Fix detection of "real mode" when /options/real-mode? doesn't exist.
45110
45111 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
45112 declaration.
45113 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
45114 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
45115 `GRUB_IEEE1275_FLAG_REAL_MODE'.
fe6b695a 45116 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
0bf74728 45117 property).
45118 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
45119 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
45120
33bf70a7 451212008-01-19 Robert Millan <rmh@aybabtu.com>
45122
fe6b695a 45123 Get rid of confusing function (superseded by
33bf70a7 45124 `grub_ieee1275_get_integer_property')
45125 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
45126 prototype.
45127 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
45128 function.
45129 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
45130 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
fe987087 45131 in native endianness from grub_ieee1275_get_integer_property().
33bf70a7 45132
e2da7d26 451332008-01-19 Robert Millan <rmh@aybabtu.com>
45134
45135 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
45136 command after "shut-down", since implementations differ on which
45137 the command for halt is.
45138
59f1fd8d 451392008-01-19 Robert Millan <rmh@aybabtu.com>
45140
45141 * include/grub/i386/linuxbios/console.h: Add header protection.
45142 (grub_keyboard_controller_init): New function prototype.
45143 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
45144 (KEYBOARD_COMMAND_READ): Likewise.
45145 (KEYBOARD_COMMAND_WRITE): Likewise.
45146 (KEYBOARD_SCANCODE_SET1): Likewise.
45147 (grub_keyboard_controller_write): New function.
45148 (grub_keyboard_controller_read): Likewise.
45149 (grub_keyboard_controller_init): Likewise.
45150
45151 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
45152 (grub_console_init): On coreboot/LinuxBIOS, call
45153 grub_keyboard_controller_init().
45154
5f5a7c15 451552008-01-19 Robert Millan <rmh@aybabtu.com>
45156
45157 PowerPC changes provided by Pavel Roskin.
45158
45159 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
45160 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
45161 don't rely on cmain() doing it.
45162 * kern/i386/ieee1275/startup.S (_start): Store %eax in
45163 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
45164
1210e168 451652008-01-16 Robert Millan <rmh@aybabtu.com>
45166
45167 * include/grub/i386/linuxbios/memory.h
45168 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
45169 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
45170 receive `table_header' as argument. Instead, probe for it in the
45171 known memory ranges where it can be present.
45172 (grub_available_iterate): Do not pass a fixed `table_header' address
45173 to grub_linuxbios_table_iterate().
45174
3d04eab8 451752008-01-15 Robert Millan <rmh@aybabtu.com>
45176
45177 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
45178 * conf/i386-ieee1275.rmk: New file.
45179 * include/grub/i386/ieee1275/console.h: Likewise.
45180 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
45181 * include/grub/i386/ieee1275/kernel.h: Likewise.
45182 * include/grub/i386/ieee1275/time.h: Likewise.
45183 * kern/i386/ieee1275/init.c: Likewise.
45184 * kern/i386/ieee1275/startup.S: Likewise.
45185
d1bc1b73 451862008-01-15 Robert Millan <rmh@aybabtu.com>
45187
45188 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
45189 when pointers are 32-bit (but still do set it to one when they are
45190 64-bit).
45191
66a65807 451922008-01-15 Robert Millan <rmh@aybabtu.com>
45193
45194 * include/grub/ieee1275/ieee1275.h
45195 (grub_ieee1275_get_integer_property): New function prototype.
45196
45197 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
45198 (grub_ieee1275_get_integer_property): New function. Wraps around
fe987087 45199 grub_ieee1275_get_property() to handle endianness.
66a65807 45200
45201 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
45202 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
fe6b695a 45203 where appropriate.
66a65807 45204 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
45205 (grub_map): Likewise.
45206 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
45207
a83ccafd 452082008-01-15 Bean <bean123ch@gmail.com>
45209
45210 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
45211 (grub_script_execute_cmdline): Reset grub_errno.
45212
45213 * normal/main.c (read_config_file): Reset grub_errno.
45214
45215 * normal/parse.y (script_init): New.
45216 (script): Move function and menuentry here.
45217 (delimiter): New.
45218 (command): Add delimiter at the end of command.
45219 (commands): Adjust to match the new command.
45220 (commandblock): Remove grub_script_lexer_record_start.
f19dbdb7 45221 (menuentry): Add grub_script_lexer_record_start, use the new commands.
a83ccafd 45222 (if): Use the new commands.
45223
45224 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
45225
df6ecfc6 452262008-01-15 Robert Millan <rmh@aybabtu.com>
45227
45228 * normal/menu.c (run_menu): Move timeout message from here ...
45229 (print_timeout): ... to here.
45230 (run_menu): Use print_timeout() once during initial draw to print
45231 the whole message, and again in every clock tick to update only
45232 the number of seconds.
45233
87ae25eb 452342008-01-15 Robert Millan <rmh@aybabtu.com>
45235
45236 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
45237 actual size of `available' from grub_ieee1275_get_property(), and
45238 restrict parsing to that bound.
45239
47bf09a4 452402008-01-15 Christian Franke <franke@computer.org>
45241
45242 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
45243 (argp_program_version): Remove variable.
45244 (argp_program_bug_address): Likewise.
45245 (options): Convert from struct argp_option to struct option.
45246 (struct arguments): Remove.
45247 (parse_opt): Remove.
45248 (usage): New function.
45249 (main): Replace struct args members by simple variables.
45250 Replace argp_parse() by getopt_long().
45251 Add switch to evaluate options.
45252 Add missing "(...)" around root_dev in prefix string.
45253
c86f1469 452542008-01-14 Robert Millan <rmh@aybabtu.com>
45255
45256 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
45257 for grub_ieee1275_exit(), in order to improve portability.
45258
e622c559 452592008-01-14 Robert Millan <rmh@aybabtu.com>
45260
45261 * util/grub.d/10_linux.in (prefix): Define.
45262 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
45263
44cb1ec8 452642008-01-13 Pavel Roskin <proski@gnu.org>
45265
45266 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
45267 grub_errno if no errors have been detected.
45268
1eb8c802 452692008-01-12 Robert Millan <rmh@aybabtu.com>
45270
45271 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
45272 (grub_util_get_dev_abstraction): New function prototype.
45273
45274 * util/getroot.c: Include `<grub/util/getroot.h>'
45275 (grub_util_get_grub_dev): Move detection of abstraction type to ...
45276 (grub_util_get_dev_abstraction): ... here (new function).
45277
45278 * util/grub-probe.c: Convert PRINT_* to an enum. Add
45279 `PRINT_ABSTRACTION'.
45280 (probe): Probe for abstraction type when requested.
45281 (main): Understand `--target=abstraction'.
45282
45283 * util/i386/efi/grub-install.in: Add abstraction module to core
45284 image when it is found to be necessary.
45285 * util/i386/pc/grub-install.in: Likewise.
45286 * util/powerpc/ieee1275/grub-install.in: Likewise.
45287
45288 * util/update-grub_lib.in (font_path): Return system path without
45289 converting to GRUB path.
45290 * util/update-grub.in: Convert system path returned by font_path()
45291 to a GRUB path. Use `grub-probe -t abstraction' to determine what
45292 abstraction module is needed for loading fonts (if any). Export
45293 that as `GRUB_PRELOAD_MODULES'.
45294 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
45295 insmod commands).
45296
52bd3de9 452972008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
45298
45299 Remove some unused code from reiserfs.
f19dbdb7 45300
52bd3de9 45301 * fs/reiserfs.c (struct grub_reiserfs_key)
45302 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
45303 (struct grub_reiserfs_node_body): Removed.
45304 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
45305 Likewise.
45306 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
45307 Likewise.
45308 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
45309 Likewise.
45310 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
45311 Likewise.
45312 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
45313 Likewise.
45314 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
45315 Likewise.
45316 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
45317 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
45318 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
45319
2f80039d 453202008-01-10 Robert Millan <rmh@aybabtu.com>
45321
45322 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
45323 Determines if a file is garbage left by packaging systems, etc.
45324 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
45325 for processing /etc/grub.d scripts.
45326 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
45327 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
45328 as a condition for processing Linux images.
45329
87888032 453302008-01-10 Pavel Roskin <proski@gnu.org>
45331
45332 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
45333 to compile reiserfs.c on PowerPC.
45334
7e54fced 453352008-01-10 Robert Millan <rmh@aybabtu.com>
de9993e0 45336
45337 * kern/device.c (grub_device_iterate): Do not abort device iteration
45338 when one of the devices cannot be opened.
45339 * kern/disk.c (grub_disk_open): Do not account previous failures of
45340 unrelated functions when grub_errno is checked for.
45341
5aa541e6 453422008-01-08 Robert Millan <rmh@aybabtu.com>
45343
45344 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
45345 `! grub_linux_is_bzimage', change order of address comparison to make
45346 it more intuitive, and improve "too big zImage" error message.
45347
7076340d 453482008-01-08 Robert Millan <rmh@aybabtu.com>
45349
45350 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
45351 `$(update-grub_DATA)'.
45352 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
45353 targets.
45354
9ca70333 453552008-01-07 Robert Millan <rmh@aybabtu.com>
45356
45357 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
45358 which instruction is modified by grub-setup during installation
45359 (since it wasn't obvious by only looking at this file).
45360
38ccf575 453612008-01-07 Robert Millan <rmh@aybabtu.com>
45362
45363 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
45364 listing actual TODO items.
45365
f5db4291 453662008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
45367
868967cf 45368 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
45369 correctly.
45370 (grub_reiserfs_get_key_offset): Likewise.
45371 (grub_reiserfs_set_key_offset): Likewise.
45372 (grub_reiserfs_set_key_type): Likewise.
fe6b695a 45373 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
868967cf 45374
45375 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
45376 better to remove the bitfield version completely.
f19dbdb7 45377
868967cf 453782008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 45379
f5db4291 45380 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
45381 allocated from the heap, due to the fshelp implementation.
45382 (grub_reiserfs_dir): Free NODE, due to the same reason.
45383
492e6d9d 453842008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
45385
45386 Mostly from Vincent Pelletier:
f19dbdb7 45387
492e6d9d 45388 * fs/reiserfs.c: New file.
f19dbdb7 45389
492e6d9d 45390 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
45391 (reiserfs_mod_SOURCES): New variable.
45392 (reiserfs_mod_CFLAGS): Likewise.
45393 (reiserfs_mod_LDFLAGS): Likewise.
45394
45395 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
45396 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
45397 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
45398 normal/color.c.
45399
9ce3e7c1 454002008-01-06 Robert Millan <rmh@aybabtu.com>
45401
45402 * normal/color.c: Remove `<grub/env.h>'.
45403
f3b58148 454042008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
45405
45406 * include/grub/normal.h: Include <grub/env.h>.
45407
7ac3bcfa 454082008-01-05 Robert Millan <rmh@aybabtu.com>
45409
45410 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
45411 usage example with `(hd0,1)'.
fb358190 45412 Reported by Samuel Thibault.
7ac3bcfa 45413
c8ee99d7 454142008-01-05 Robert Millan <rmh@aybabtu.com>
45415
45416 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
45417 (grub_linux_boot_zimage): Rename to ...
45418 (grub_linux_boot): ... this.
45419 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
45420 (grub_linux_boot_zimage): Conditionalize zImage copy.
45421
45422 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
45423 (grub_linux_boot_bzimage): Remove prototype.
45424 (grub_linux_boot_zimage): Rename to ...
45425 (grub_linux_boot): ... this.
45426
45427 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
45428 (grub_linux_boot): Remove function.
45429
0ece25b1 454302008-01-05 Robert Millan <rmh@aybabtu.com>
45431
45432 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
45433 (grub_env_write_color_highlight): Likewise.
45434 (grub_wait_after_message): Likewise.
45435
45436 * normal/color.c: New file.
45437
45438 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
45439 (normal_mod_DEPENDENCIES): Likewise.
45440
45441 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
45442 (normal_mod_DEPENDENCIES): Likewise.
45443
45444 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
45445 (normal_mod_DEPENDENCIES): Likewise.
45446
45447 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
45448 (normal_mod_DEPENDENCIES): Likewise.
45449
45450 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
45451 for waiting after a message is printed.
45452 * normal/main.c (read_config_file): Likewise.
45453 (grub_normal_init): Register grub_env_write_color_normal() and
45454 grub_env_write_color_highlight() hooks. Mark `color_normal' and
45455 `color_highlight' variables as global.
45456
45457 * normal/menu.c (grub_wait_after_message): New function.
45458 (grub_color_menu_normal): New variable. Replaces ...
45459 (GRUB_COLOR_MENU_NORMAL): ... this macro.
45460 (grub_color_menu_highlight): New variable. Replaces ...
45461 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
45462 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
45463 `GRUB_TERM_COLOR_STANDARD'.
45464 (print_message): Use `grub_setcolorstate' to reload colors. Rename
45465 `normal_code' and `highlight_code' to `old_color_normal' and
45466 `old_color_highlight', respectively.
45467 (grub_menu_init_page): Update colors when drawing the menu, based on
45468 `menu_color_normal' and `menu_color_highlight' variables.
45469 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
45470 a message is printed.
45471
182dd4e5 454722008-01-05 Robert Millan <rmh@aybabtu.com>
45473
45474 * kern/env.c (grub_env_context_open): Propagate hooks for global
45475 variables to new context.
45476
45477 * kern/main.c (grub_set_root_dev): Export `root' variable.
45478
ddf8f6ad 454792008-01-05 Robert Millan <rmh@aybabtu.com>
45480
45481 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
fe6b695a 45482 discs unconditionally, since udev and others have options to provide
ddf8f6ad 45483 them.
45484
d8b43d9b 454852008-01-05 Robert Millan <rmh@aybabtu.com>
45486
45487 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
45488
2bff2de3 454892008-01-04 Christian Franke <franke@computer.org>
45490
45491 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
45492 of eisa_mmap.
45493
97eab917 454942008-01-03 Pavel Roskin <proski@gnu.org>
45495
45496 * kern/i386/linuxbios/init.c: Put "void" to all function
45497 declarations with no arguments.
45498 * kern/powerpc/ieee1275/init.c: Likewise.
45499 * term/i386/pc/at_keyboard.c: Likewise.
45500 * term/i386/pc/vga_text.c: Likewise.
45501 * util/grub-mkdevicemap.c: Likewise.
45502
b9416d00 455032008-01-02 Robert Millan <rmh@aybabtu.com>
45504
45505 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
45506 message when loaded image is out of bounds.
45507 (grub_multiboot_load_elf64): Likewise.
45508
92695df9 455092008-01-02 Pavel Roskin <proski@gnu.org>
45510
45511 * util/grub.d/10_linux.in: Try version without ".old" when
45512 looking for initrd. It's better to use initrd from the newer
45513 kernel of the same version than no initrd at all.
45514
d98d9cad 455152008-01-01 Robert Millan <rmh@aybabtu.com>
45516
45517 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
45518
dbfdce36 455192008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
45520
f19dbdb7 45521 * include/grub/video.h: Added grub_video_unmap_color and
dbfdce36 45522 grub_video_get_active_render_target.
45523 (grub_video_adapter): Added unmap_color and get_active_render_target.
45524
f19dbdb7 45525 * video/video.c: Added grub_video_unmap_color and
dbfdce36 45526 grub_video_get_active_render_target.
45527 (grub_video_get_info): Changed method to accept NULL pointer as an
45528 argument to allow detection of active video adapter.
45529
45530 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
45531 grub_video_vbe_unmap_color_int.
45532 Added grub_video_vbe_unmap_color and
45533 grub_video_vbe_get_active_render_target.
45534 (grub_video_vbe_adapter): Added unmap_color and
45535 get_active_render_target.
45536
f19dbdb7 45537 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
dbfdce36 45538 with grub_video_vbe_unmap_color_int.
45539
45540 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
45541 (DEFAULT_NORMAL_COLOR): Likewise.
45542 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
45543 (DEFAULT_FG_COLOR): Removed.
45544 (DEFAULT_BG_COLOR): Likewise.
45545 (DEFAULT_CURSOR_COLOR): Changed value.
45546 (grub_virtual_screen): Added standard_color_setting,
45547 normal_color_setting, highlight_color_setting and term_color.
45548 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
45549 (bitmap_width): Added.
45550 (bitmap_height): Likewise.
45551 (bitmap): Likewise.
45552 (set_term_color): Likewise.
45553 (grub_virtual_screen_setup): Changed to use new terminal coloring
45554 settings.
45555 (grub_gfxterm_init): Added init for bitmap.
45556 (grub_gfxterm_fini): Added destroy for bitmap.
45557 (redraw_screen_rect): Updated to use background bitmap and new
45558 terminal coloring.
45559 (scroll_up): Added optimization for case when there is no bitmap.
45560 (grub_gfxterm_cls): Fixed to use correct background color.
45561 (grub_virtual_screen_setcolorstate): Changed to use new terminal
45562 coloring.
45563 (grub_virtual_screen_setcolor): Likewise.
45564 (grub_virtual_screen_getcolor): Added.
45565 (grub_gfxterm_background_image_cmd): Likewise.
45566 (grub_video_term): Added setcolor and getcolor.
45567 (MOD_INIT): Added registration of background_image command.
45568 (MOD_TERM): Added unregistration for background_image command.
45569
c3c20931 455702007-12-30 Pavel Roskin <proski@gnu.org>
45571
45572 * loader/multiboot_loader.c: Fix multiboot command
45573 unregistration. Fix all typos in the word "multiboot".
45574
df266716 455752007-12-29 Pavel Roskin <proski@gnu.org>
94239199 45576
45577 * util/grub.d/10_linux.in: Refactor search for initrd. Add
45578 support for initrd names used in Fedora.
45579
fc6e896c 455802007-12-26 Bean <bean123ch@gmail.com>
45581
45582 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
45583 (cpio_mod_SOURCES): New variable.
45584 (cpio_mod_CFLAGS): Likewise.
45585 (cpio_mod_LDFLAGS): Likewise.
45586
45587 * fs/cpio.c: New file.
45588
45589 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
45590
45591 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45592
45593 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45594
45595 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45596
533110ad 455972007-12-25 Robert Millan <rmh@aybabtu.com>
45598
45599 * include/grub/term.h (struct grub_term): Add `getcolor' function.
45600 (grub_getcolor): New function.
45601
45602 * kern/term.c (grub_getcolor): New function.
45603 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
45604 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
45605 (print_entry): Set normal and highlight colors to
45606 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
45607 respectively, before printing and restore them to old
45608 values afterwards.
45609 (grub_menu_init_page): Likewise. Fill an additional colored space
45610 that would otherwise be left blank.
45611
45612 * term/efi/console.c (grub_console_getcolor): New function.
45613 (struct grub_console_term.getcolor): New variable.
45614 * term/i386/pc/console.c (grub_console_getcolor): New function.
45615 (struct grub_console_term.getcolor): New variable.
45616 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
45617 (struct grub_console_term.getcolor): New variable.
45618
45619 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
45620 (struct grub_console_term.setcolor): Remove variable.
45621 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
45622 (struct grub_console_term.setcolor): Remove variable.
45623 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
45624 (struct grub_console_term.setcolor): Remove variable.
45625 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
45626 (struct grub_console_term.setcolor): Remove variable.
45627
4931827f 456282007-12-25 Robert Millan <rmh@aybabtu.com>
45629
45630 * configure.ac: Search for possible unifont.hex locations, and
45631 define UNIFONT_HEX if found.
45632
45633 * Makefile.in (UNIFONT_HEX): Define variable.
45634 (DATA): Rename to ...
45635 (PKGLIB): ... this. Update all users.
45636 (PKGDATA): New variable.
45637 (pkgdata_IMAGES): Rename to ...
45638 (pkglib_IMAGES): ... this. Update all users.
45639 (pkgdata_MODULES): Rename to ...
45640 (pkglib_MODULES): ... this. Update all users.
45641 (pkgdata_PROGRAMS): Rename to ...
45642 (pkglib_PROGRAMS): ... this. Update all users.
45643 (pkgdata_DATA): Rename to ...
45644 (pkglib_DATA): ... this. Update all users.
45645 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
45646 (unicode.pff, ascii.pff): New rules.
45647 (all-local): Add `$(PKGDATA)' dependency.
45648 (install-local): Process `$(PKGDATA)'.
45649
45650 * util/update-grub_lib.in (font_path): Search for *.pff files in
45651 a few more locations, including `${pkgdata}'.
45652
57e57e31 456532007-12-23 Robert Millan <rmh@aybabtu.com>
45654
45655 Patch from Bean <bean123ch@gmail.com>:
45656 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
45657 `size'.
45658
4bc72aa9 456592007-12-21 Bean <bean123ch@gmail.com>
45660
45661 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
45662 (ntfscomp_mod_SOURCES): New variable.
45663 (ntfscomp_mod_CFLAGS): Likewise.
45664 (ntfscomp_mod_LDFLAGS): Likewise.
45665
45666 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
45667 (grub_probe_SOURCES): Likewise.
45668 (grub_emu_SOURCES): Likewise.
45669
45670 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
45671 (grub_emu_SOURCES): Likewise.
45672
45673 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
45674 (grub_emu_SOURCES): Likewise.
45675
45676 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
45677 (grub_emu_SOURCES): Likewise.
45678
45679 * fs/ntfs.c (grub_ntfscomp_func): New variable.
45680 (read_run_list): Renamed to grub_ntfs_read_run_list.
45681 (decomp_nextvcn): Moved to ntfscomp.c.
45682 (decomp_getch): Likewise.
45683 (decomp_get16): Likewise.
45684 (decomp_block): Likewise.
45685 (read_block): Likewise.
45686 (read_data): Partially moved to ntfscomp.c.
45687 (fixup): Change unsigned to grub_uint16_t.
45688 (read_mft): Change unsigned long to grub_uint32_t.
45689 (read_attr): Likewise.
45690 (read_data): Likewise.
45691 (read_run_data): Likewise.
45692 (read_run_list): Likewise.
45693 (read_mft): Likewise.
45694
45695 * fs/ntfscomp.c: New file.
45696
45697 * include/grub/ntfs.h: New file.
45698
af680a87 456992007-12-16 Robert Millan <rmh@aybabtu.com>
45700
45701 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
45702 IDE disk check, since Linux is known to support 20 IDE disks.
45703 Reported by Colin Watson.
45704
84be7599 457052007-12-15 Bean <bean123ch@gmail.com>
45706
45707 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
45708 (lnxboot_img_SOURCES): New variable.
45709 (lnxboot_img_ASFLAGS): Likewise.
45710 (lnxboot_img_LDFLAGS): Likewise.
45711
45712 * boot/i386/pc/lnxboot.S: New file.
45713
6af9db01 457142007-11-24 Pavel Roskin <proski@gnu.org>
45715
45716 * configure.ac: Test if '--build-id=none' is supported by the
45717 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
45718 objcopy to generate incorrect binary files (binutils
45719 2.17.50.0.18-1 as shipped by Fedora 8).
45720 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
45721 linking, so that build ID doesn't break the test.
45722
7361cfe6 457232007-11-24 Pavel Roskin <proski@gnu.org>
45724
45725 * include/grub/i386/time.h: use "void" in the argument list
45726 of grub_cpu_idle().
45727 * include/grub/powerpc/time.h: Likewise.
45728 * include/grub/sparc64/time.h: Likewise.
45729
1593e10c 457302007-11-18 Christian Franke <franke@computer.org>
45731
45732 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
45733 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
45734 This fixes the problem that function keys did not work in grub-emu.
45735
3b8db1a8 457362007-11-18 Christian Franke <franke@computer.org>
45737
45738 * disk/host.c (grub_host_open): Remove attribute unused from
45739 name parameter. Add check for "host". This fixes the problem
45740 that grub-emu does not find partitions.
45741
2e29408d 457422007-11-18 Christian Franke <franke@computer.org>
45743
45744 * util/hostfs.c (is_dir): New function.
45745 (grub_hostfs_dir): Handle missing dirent.d_type case.
45746 (grub_hostfs_read): Add missing fseek().
45747 (grub_hostfs_label): Clear label pointer. This fixes a crash
45748 of grub-emu on "ls (host)".
45749
398cd047 457502007-11-18 Christian Franke <franke@computer.org>
45751
45752 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
45753 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
45754 to 64 bit boundary by default.
45755
c405c391 457562007-11-18 Bean <bean123ch@gmail.com>
45757
45758 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
45759 (hexdump_mod_SOURCES): New variable.
45760 (hexdump_mod_CFLAGS): Likewise.
45761 (hexdump_mod_LDFLAGS): Likewise.
f19dbdb7 45762
c405c391 45763 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
45764
45765 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
45766
45767 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
45768
45769 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
45770
45771 * include/grub/hexdump.h: New file.
45772
45773 * commands/hexdump.c: New file.
45774
5cced7fd 457752007-11-10 Robert Millan <rmh@aybabtu.com>
45776
45777 * commands/i386/pc/play.c (beep_off): Switch order of arguments
45778 in grub_outb() calls.
45779 (beep_on): Likewise.
45780
8b714eb0 457812007-11-10 Christian Franke <franke@computer.org>
45782
45783 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
45784 (grub_menu_run): Likewise.
45785
ce0f1839 457862007-11-10 Robert Millan <rmh@aybabtu.com>
45787
45788 * include/grub/i386/efi/machine.h: New file.
45789 * include/grub/i386/linuxbios/machine.h: Likewise.
45790 * include/grub/i386/pc/machine.h: Likewise.
45791 * include/grub/powerpc/ieee1275/machine.h: Likewise.
45792 * include/grub/sparc64/ieee1275/machine.h: Likewise.
45793
45794 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
45795 (serial_hw_io_addr): New variable.
45796 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
45797 instead of `(unsigned short *) 0x400'.
45798
270c237d 457992007-11-10 Bean <bean123ch@gmail.com>
45800
45801 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
45802
a87783bf 458032007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
45804
45805 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
45806 (vga_mod_SOURCES): Added.
45807 (vga_mod_CFLAGS): Likewise.
45808 (vga_mod_LDFLAGS): Likewise.
45809
45810 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
45811 grub_outb() calls.
45812 (set_map_mask): Likewise.
45813 (set_read_map): Likewise.
45814 (set_read_address): Likewise.
45815 (vga_font): Removed variable.
45816 (get_vga_glyph): Removed function.
45817 (invalidate_char): Likewise.
45818 (write_char): Changed to use grub_font_get_glyph() for font
45819 information.
45820 (grub_vga_putchar): Likewise.
45821 (grub_vga_getcharwidth): Likewise.
45822
6433b448 458232007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
45824
45825 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
45826 flags.
45827 (pxeboot_img_LDFLAGS): Likewise.
45828 (diskboot_img_LDFLAGS): Likewise.
45829 (kernel_img_LDFLAGS): Likewise.
45830
49178511 458312007-11-06 Robert Millan <rmh@aybabtu.com>
45832
45833 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
45834 in grub_outb() calls.
45835 (serial_hw_init): Likewise.
45836
53b052de 458372007-11-05 Robert Millan <rmh@aybabtu.com>
45838
45839 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
45840 spaces. Skip non-regular files.
45841
5ab33bba 458422007-11-05 Robert Millan <rmh@aybabtu.com>
45843
45844 * kern/disk.c (grub_disk_firmware_fini)
45845 (grub_disk_firmware_is_tainted): New variables.
45846
45847 * include/grub/disk.h (grub_disk_firmware_fini)
45848 (grub_disk_firmware_is_tainted): Likewise.
45849
45850 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
45851 (grub_disk_biosdisk_fini): ... to here.
45852 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
45853 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
45854 is set. Register grub_disk_biosdisk_fini() in
45855 `grub_disk_firmware_fini'.
45856
45857 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
45858 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
45859 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
45860 to finish existing firmware disk interface.
45861
45862 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
45863 (ata_mod_SOURCES): New variable.
45864 (ata_mod_CFLAGS): Likewise.
45865 (ata_mod_LDFLAGS): Likewise.
45866
0149ab7c 458672007-11-05 Robert Millan <rmh@aybabtu.com>
45868
45869 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
45870 (grub_ata_wait): Reimplement using grub_millisleep().
45871
45872 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
45873 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
45874
be7ac41e 458752007-11-03 Marco Gerards <marco@gnu.org>
45876
45877 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
45878 (CRTC_ADDR_PORT): New macro.
45879 (CRTC_DATA_PORT): Likewise.
45880 (CRTC_CURSOR): Likewise.
45881 (CRTC_CURSOR_ADDR_HIGH): Likewise.
45882 (CRTC_CURSOR_ADDR_LOW): Likewise.
45883 (update_cursor): New function.
45884 (grub_console_real_putchar): Call `update_cursor'.
45885 (grub_console_gotoxy): Likewise.
45886 (grub_console_cls): Set the default color when clearing the
45887 screen.
45888 (grub_console_setcursor): Implemented.
45889
bb06ab2e 458902007-11-03 Marco Gerards <marco@gnu.org>
45891
45892 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
45893 become activate.
45894 (grub_ata_pio_write): Likewise.
45895
45896 (grub_atapi_identify): Wait after issuing an ATA command.
45897 (grub_atapi_packet): Likewise.
45898 (grub_ata_identify): Likewise.
45899 (grub_ata_readwrite): Likewise.
45900
cf8f780b 459012007-11-03 Marco Gerards <marco@gnu.org>
45902
45903 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
45904 (grub_ata_pio_write): Likewise.
45905 (grub_ata_readwrite): Use `grub_error', instead of
45906 returning `grub_errno'.
45907
ed649e54 459082007-11-03 Marco Gerards <marco@gnu.org>
45909
45910 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
45911 grub_ata_pio_write once for every single sector, instead of for
45912 multiple sectors.
45913
ca25d8f0 459142007-10-31 Robert Millan <rmh@aybabtu.com>
45915
45916 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
45917
45918 * conf/i386-linuxbios.rmk: New file.
45919
45920 * kern/i386/pc/hardware.c: Likewise.
45921 * term/i386/pc/at_keyboard.c: Likewise.
45922 * term/i386/pc/vga_text.c: Likewise.
45923
45924 * include/grub/i386/linuxbios/boot.h: Likewise.
45925 * include/grub/i386/linuxbios/console.h: Likewise.
45926 * include/grub/i386/linuxbios/init.h: Likewise.
45927 * include/grub/i386/linuxbios/kernel.h: Likewise.
45928 * include/grub/i386/linuxbios/loader.h: Likewise.
45929 * include/grub/i386/linuxbios/memory.h: Likewise.
45930 * include/grub/i386/linuxbios/serial.h: Likewise.
45931 * include/grub/i386/linuxbios/time.h: Likewise.
45932
45933 * kern/i386/linuxbios/init.c: Likewise.
45934 * kern/i386/linuxbios/startup.S: Likewise.
45935 * kern/i386/linuxbios/table.c: Likewise.
45936
e911ecc1 459372007-10-31 Marco Gerards <marco@gnu.org>
45938
45939 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
45940 (ata_mod_SOURCES): New variable.
45941 (ata_mod_CFLAGS): Likewise.
45942 (ata_mod_LDFLAGS): Likewise.
45943
45944 * disk/ata.c: New file.
45945
45946 * include/grub/disk.h (grub_disk_dev_id): Add
45947 `GRUB_DISK_DEV_ATA_ID'.
f19dbdb7 45948
7f66d0e0 459492007-10-31 Robert Millan <rmh@aybabtu.com>
45950
45951 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
45952 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
45953
45954 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
45955 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
45956
45957 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
45958 `<grub/types.h>'.
45959
45960 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
45961
5cd7dd46 459622007-10-27 Robert Millan <rmh@aybabtu.com>
45963
3236ca65 45964 * include/grub/types.h (ULONG_MAX): Define macro.
5cd7dd46 45965
2ebfc90f 459662007-10-22 Robert Millan <rmh@aybabtu.com>
45967
45968 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
45969 `"../realmode.S"'.
45970 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
45971
73fcb0f3 459722007-10-22 Robert Millan <rmh@aybabtu.com>
45973
45974 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
45975 (pkgdata_MODULES): Add `biosdisk.mod'.
45976 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
45977 variables.
45978
45979 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
45980 (grub_biosdisk_init): Replace with ...
45981 (GRUB_MOD_INIT(biosdisk)): ... this.
45982 (grub_biosdisk_fini): Replace with ...
45983 (GRUB_MOD_FINI(biosdisk)): ... this.
45984
45985 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
45986 (grub_machine_init): Remove call to grub_biosdisk_init().
45987 (grub_machine_fini): Remove call to grub_machine_fini().
45988
45989 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
45990
3381d274 459912007-10-22 Robert Millan <rmh@aybabtu.com>
45992
45993 * include/grub/time.h: New file.
45994 * include/grub/i386/time.h: Likewise.
45995 * include/grub/powerpc/time.h: Likewise.
45996 * include/grub/sparc64/time.h: Likewise.
45997
45998 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
45999 instances to ...
46000 (KERNEL_MACHINE_TIME_HEADER): ... this.
46001 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
46002 instances to ...
46003 (KERNEL_MACHINE_TIME_HEADER): ... this.
46004 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
46005 instances to ...
46006 (KERNEL_MACHINE_TIME_HEADER): ... this.
46007
46008 * kern/i386/efi/init.c: Include `<grub/time.h>'.
46009 (grub_millisleep): New function.
46010 * kern/i386/pc/init.c: Include `<grub/time.h>'.
46011 (grub_millisleep): New function.
46012 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
46013 Remove `grub/machine/time.h' include.
46014 (grub_millisleep): New function.
46015 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
46016 Remove `grub/machine/time.h' include.
46017 (grub_millisleep): New function.
46018
46019 * include/grub/misc.h (grub_div_roundup): New function.
46020
46021 * kern/misc.c: Include `<grub/time.h>'.
46022 (grub_millisleep_generic): New function.
46023
46024 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
46025 Add `time.h'.
46026 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
46027 Add `time.h'.
46028 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
46029 `machine/time.h'. Add `time.h'.
46030 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
46031
a39a0312 460322007-10-21 Robert Millan <rmh@aybabtu.com>
46033
46034 * include/grub/misc.h (grub_max): New function.
46035
2aad70e2 460362007-10-21 Robert Millan <rmh@aybabtu.com>
46037
46038 * util/misc.c (grub_util_info): Call fflush() before returning.
46039
54b71c4b 460402007-10-20 Robert Millan <rmh@aybabtu.com>
46041
46042 * genmk.rb (Image): Copy `extra_flags' from here ...
46043 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
46044
46045 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
46046 to `argc' and `args' arguments.
46047
a979f513 460482007-10-17 Robert Millan <rmh@aybabtu.com>
46049
46050 * kern/i386/loader.S: New file.
46051
46052 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
46053 * kern/i386/loader.S (grub_linux_prot_size)... to here.
46054 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
46055 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
46056 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
46057 * kern/i386/loader.S (grub_linux_real_addr)... to here.
46058 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
46059 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
46060 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
46061 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
46062 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
46063 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
46064 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
46065 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
46066
46067 * kern/i386/realmode.S: New file.
46068
46069 * kern/i386/pc/startup.S (protstack): Moved from here ...
46070 * kern/i386/realmode.S (protstack)... to here.
46071 * kern/i386/pc/startup.S (gdt): Moved from here ...
46072 * kern/i386/realmode.S (gdt)... to here.
46073 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
46074 * kern/i386/realmode.S (prot_to_real)... to here.
46075
46076 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
46077 `kern/i386/realmode.S'.
46078
825fc8fd 460792007-10-17 Robert Millan <rmh@aybabtu.com>
46080
46081 * include/grub/i386/loader.h: New file.
46082
46083 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
46084 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
46085 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
46086 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
46087 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
46088 * include/grub/i386/loader.h (grub_linux_prot_size)
46089 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
46090 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
46091 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
46092 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
46093
46094 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
46095
e179b2f4 460962007-10-15 Robert Millan <rmh@aybabtu.com>
46097
46098 * normal/misc.c (grub_normal_print_device_info): Do not probe for
46099 filesystem when dev->disk is unset.
46100 Do probe for filesystem even when dev->disk->has_partitions is set.
46101 In case a filesystem is found, always report it.
46102 In case it isn't, if dev->disk->has_partitions is set, report that
46103 a partition table was found instead of reporting that no filesystem
46104 could be identified.
46105
5db82af6 461062007-10-12 Robert Millan <rmh@aybabtu.com>
46107
46108 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
46109 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
46110
68f6ac74 46111 * include/grub/types.h (grub_host_to_target16): New macro.
46112 (grub_host_to_target32): Likewise.
46113 (grub_host_to_target64): Likewise.
46114 (grub_target_to_host16): Likewise.
46115 (grub_target_to_host32): Likewise.
46116 (grub_target_to_host64): Likewise.
5db82af6 46117
46118 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
46119 Renamed from to ...
46120 (GRUB_MOD_ALIGN): ...this. Update all users.
46121
68f6ac74 46122 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
46123 grub_host_to_target32.
46124 Replace grub_be_to_cpu32 with grub_target_to_host32.
46125 (load_modules): Likewise.
46126 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
46127 Replace grub_be_to_cpu32 with grub_target_to_host32.
46128 Replace grub_cpu_to_be16 with grub_host_to_target16.
46129 Replace grub_cpu_to_be32 grub_host_to_target32.
5db82af6 46130
3cf497cc 461312007-10-12 Robert Millan <rmh@aybabtu.com>
46132
46133 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
46134 * util/elf/grub-mkimage.c: ... here.
46135
46136 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
46137 `util/powerpc/ieee1275/grub-mkimage.c'.
46138
c8cc3692 461392007-10-07 Robert Millan <rmh@aybabtu.com>
adbc4c9d 46140
c8cc3692 46141 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
46142 and make it easier to figure out.
46143 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
46144 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
46145 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
46146 leave us with less than HEAP_MIN_SIZE total heap.
46147 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
adbc4c9d 46148
5c58b791 461492007-10-03 Robert Millan <rmh@aybabtu.com>
46150
46151 * include/grub/i386/io.h: New file.
46152 * commands/i386/pc/play.c (inb): Removed.
46153 (outb): Removed.
46154 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
46155 with grub_outb().
afcd2ef8 46156 * term/i386/pc/serial.c (inb): Removed.
46157 (outb): Removed.
46158 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
46159 with grub_outb().
46160 * term/i386/pc/vga.c (inb): Removed.
46161 (outb): Removed.
46162 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
46163 with grub_outb().
5c58b791 46164
1a477ed6 461652007-10-02 Robert Millan <rmh@aybabtu.com>
46166
46167 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
46168 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46169 Reported by Marcin Kurek.
46170
6b5d80fa 461712007-09-07 Robert Millan <rmh@aybabtu.com>
46172
46173 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
46174 SmartFirmware version updates (as released by Sven Luther), and avoid
46175 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
46176 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
46177 known broken.
46178
5618afbf 461792007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
46180
46181 From Hitoshi Ozeki:
46182 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
46183 when merging two regions.
46184
6139dcd9 461852007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
46186
508e39ee 46187 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
46188 * normal/completion.c (grub_normal_do_completion): Likewise.
46189 Reported by Hitoshi Ozeki.
46190
461912007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 46192
6139dcd9 46193 Do not use devices at boot in chainloading.
f19dbdb7 46194
6139dcd9 46195 * loader/i386/pc/chainloader.c (boot_drive): New variable.
46196 (boot_part_addr): Likewise.
46197 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
46198 with BOOT_DRIVE and BOOT_PART_ADDR.
46199 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
46200 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
46201
38da6516 462022007-08-29 Robert Millan <rmh@aybabtu.com>
46203
46204 Patch from Simon Peter <dn.tlp@gmx.net>:
46205 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
46206 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
46207 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
46208 util/i386/pc/grub-setup.c_DEPENDENCIES.
46209 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
46210 util/grub-probe.c_DEPENDENCIES.
46211 * conf/powerpc-ieee1275.rmk: Likewise.
46212
29d0928c 462132007-08-28 Robert Millan <rmh@aybabtu.com>
46214
46215 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
46216 to tell grub-mkdevicemap how to name devices.
46217 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
46218 feature).
46219
46220 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
46221 util/i386/get_disk_name.c.
46222 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
46223 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
46224 util/ieee1275/get_disk_name.c.
46225
46226 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
46227
46228 * DISTLIST: Add util/i386/get_disk_name.c and
46229 util/ieee1275/get_disk_name.c.
46230
46231 * util/grub-mkdevicemap.c: Replace device naming logic with
46232 grub_util_get_disk_name() calls.
46233
5a0d3cca 462342007-08-20 Robert Millan <rmh@aybabtu.com>
46235
46236 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
46237 (so that it works for both plural and singular quantities).
46238
8b72db2f 462392007-08-05 Robert Millan <rmh@aybabtu.com>
46240
46241 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
46242 so that [xz] isn't taken into account when determining order.
46243
352466bf 462442007-08-02 Marco Gerards <marco@gnu.org>
46245
46246 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
46247 `include/multiboot2.h', `include/grub/elfload.h',
46248 `include/multiboot.h', `include/grub/multiboot.h',
46249 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
46250 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
46251 `kern/elf.c', `loader/multiboot_loader.c',
46252 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
46253 `loader/i386/pc/multiboot2.c',
46254 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
46255 `util/i386/pc/grub-mkrescue.in'. Remove
46256 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
46257 `include/grub/i386/pc/util/biosdisk.h' and
46258 `include/grub/powerpc/ieee1275/multiboot.h'.
46259
8f096014 462602007-08-02 Bean <bean123ch@gmail.com>
46261
46262 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
46263 (ntfs_mod_SOURCES): New variable.
46264 (ntfs_mod_CFLAGS): Likewise.
46265 (ntfs_mod_LDFLAGS): Likewise.
46266
46267 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
46268 (grub_probe_SOURCES): Likewise.
46269 (grub_emu_SOURCES): Likewise.
46270
46271 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
46272 (grub_emu_SOURCES): Likewise.
46273
46274 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
46275 (grub_emu_SOURCES): Likewise.
f19dbdb7 46276
8f096014 46277 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
46278
46279 * fs/ntfs.c: New file.
46280
9959f7db 462812007-08-02 Bean <bean123ch@gmail.com>
46282
46283 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
46284
46285 * file.h (grub_file): Likewise.
46286
46287 * fshelp.h (grub_fshelp_read_file): Likewise.
46288
46289 * util/i386/pc/grub-setup.c (setup): Likewise.
46290 (save_first_sector): Likewise.
46291 (save_blocklists): Likewise.
f19dbdb7 46292
9959f7db 46293 * fs/affs.c (grub_affs_read_file): Likewise.
46294
46295 * fs/ext2.c (grub_ext2_read_file): Likewise.
46296
46297 * fs/fat.c (grub_fat_read_data): Likewise.
46298
46299 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
46300
46301 * fs/hfs.c (grub_hfs_read_file): Likewise.
46302
46303 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
46304
46305 * fs/jfs.c (grub_jfs_read_file): Likewise.
46306
46307 * fs/minix.c (grub_minix_read_file): Likewise.
46308
46309 * fs/sfs.c (grub_sfs_read_file): Likewise.
46310
46311 * fs/ufs.c (grub_ufs_read_file): Likewise.
f19dbdb7 46312
9959f7db 46313 * fs/xfs.c (grub_xfs_read_file): Likewise.
46314
46315 * command/blocklist.c (read_blocklist): Likewise.
46316 (print_blocklist): Likewise.
46317
0a203f83 463182007-08-02 Marco Gerards <marco@gnu.org>
46319
46320 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
46321 `util/hostfs.c'.
46322
46323 * disk/host.c: New file.
46324
46325 * util/hostfs.c: Likewise.
46326
46327 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
46328 return `GRUB_ERR_BAD_FS'.
46329 * fs/sfs.c (grub_sfs_mount): Likewise.
46330 * fs/xfs.c (grub_xfs_mount): Likewise.
46331
46332 * include/grub/disk.h (enum grub_disk_dev_id): Add
46333 `GRUB_DISK_DEVICE_HOST_ID'.
46334
46335 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
46336
e5dfe777 463372007-07-24 Jerone Young <jerone@gmail.com>
46338
f19dbdb7 46339 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
e5dfe777 46340 modules for compilation.
46341 * conf/powerpc-ieee1275.rmk: Likewise.
46342
46343 * include/multiboot.h: Move multiboot definitions to one file. Rename
46344 many definitions to not get grub specific.
46345 * include/multiboot2.h: Create header with multiboot 2 definitions.
46346 * include/grub/multiboot.h: Header for grub specific function
46347 prototypes and definitions.
46348 * include/grub/multiboot2.h: Likewise.
46349 * include/grub/multiboot_loader.h: Likewise.
46350 * include/grub/i386/pc/multiboot.h: Removed.
46351 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
46352
46353 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
46354 and 2 to allow for one multiboot and module commands.
46355 * loader/multiboot2.c: Add multiboot2 functionality.
46356 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
46357 and definition names.
46358 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
46359 2 functions.
46360 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
46361 ieee1275 specific multiboot2 code.
46362
46363 * kern/i386/pc/startup.S: Change headers and definition names for
46364 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
46365
daf0f0ba 463662007-07-22 Robert Millan <rmh@aybabtu.com>
46367
46368 * geninitheader.sh: Process file specified in first parameter rather
46369 than hardcoding grub_modules_init.lst.
fe6b695a 46370 * geninit.sh: Likewise. Also, construct header name dynamically rather
daf0f0ba 46371 than hardcoding grub_modules_init.h.
46372
46373 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
46374 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
46375 grub_probe_init.[ch] and grub_setup_init.[ch].
46376
46377 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
46378 grub_modules_init.h with grub_emu_init.h.
46379 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
46380 grub_probe_init.[ch] files.
46381 * conf/i386-efi.rmk: Likewise.
46382 * conf/i386-pc.rmk: Likewise.
46383 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
46384 grub_setup_init.[ch] files.
46385
46386 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
46387 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
46388 to initialize modules rather than a list of hardcoded functions.
46389 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
46390 grub_init_all() to initialize modules rather than a list of hardcoded
46391 functions.
46392
54cdc1cc 463932007-07-22 Robert Millan <rmh@aybabtu.com>
46394
46395 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
46396 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
46397
ad0686cc 463982007-07-22 Robert Millan <rmh@aybabtu.com>
46399
46400 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
46401 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
46402 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
46403 flag when running on SmartFirmware.
46404 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
46405 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
46406 was set.
46407
46408 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
46409 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
46410 rather than decreasing it.
46411
46412 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
46413 there's not enough space to do it, fail in the same way as when it
46414 can't be done because there are no partitions.
46415
46416 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
46417 when nvsetenv failed.
46418
969c02ec 464192007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
46420
46421 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
46422 because this rule is automatically generated.
46423 (grub-mkrescue): Removed for the same reason as above.
46424
5a79f472 464252007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
46426
46427 Migrate to GNU General Public License Version 3.
f19dbdb7 46428
5a79f472 46429 * COPYING: Replaced with the plain text version of GPLv3.
46430
46431 * config.guess: Updated from gnulib.
46432 * config.sub: Likewise.
46433
46434 * geninit.sh: Output a GPLv3 copyright notice.
46435 * geninitheader.sh: Likewise.
46436 * genmodsrc.sh: Likewise.
46437 * gensymlist.sh.in: Likewise.
46438
46439 * boot/i386/pc/boot.S: Upgraded to GPLv3.
46440 * boot/i386/pc/diskboot.S: Likewise.
46441 * boot/i386/pc/pxeboot.S: Likewise.
46442 * commands/blocklist.c: Likewise.
46443 * commands/boot.c: Likewise.
46444 * commands/cat.c: Likewise.
46445 * commands/cmp.c: Likewise.
46446 * commands/configfile.c: Likewise.
46447 * commands/echo.c: Likewise.
46448 * commands/help.c: Likewise.
46449 * commands/ls.c: Likewise.
46450 * commands/search.c: Likewise.
46451 * commands/terminal.c: Likewise.
46452 * commands/test.c: Likewise.
46453 * commands/videotest.c: Likewise.
46454 * commands/i386/cpuid.c: Likewise.
46455 * commands/i386/pc/halt.c: Likewise.
46456 * commands/i386/pc/play.c: Likewise.
46457 * commands/i386/pc/reboot.c: Likewise.
46458 * commands/i386/pc/vbeinfo.c: Likewise.
46459 * commands/i386/pc/vbetest.c: Likewise.
46460 * commands/ieee1275/halt.c: Likewise.
46461 * commands/ieee1275/reboot.c: Likewise.
46462 * commands/ieee1275/suspend.c: Likewise.
46463 * disk/loopback.c: Likewise.
46464 * disk/lvm.c: Likewise.
46465 * disk/raid.c: Likewise.
46466 * disk/efi/efidisk.c: Likewise.
46467 * disk/i386/pc/biosdisk.c: Likewise.
46468 * disk/ieee1275/ofdisk.c: Likewise.
46469 * font/manager.c: Likewise.
46470 * fs/affs.c: Likewise.
46471 * fs/ext2.c: Likewise.
46472 * fs/fat.c: Likewise.
46473 * fs/fshelp.c: Likewise.
46474 * fs/hfs.c: Likewise.
46475 * fs/hfsplus.c: Likewise.
46476 * fs/iso9660.c: Likewise.
46477 * fs/jfs.c: Likewise.
46478 * fs/minix.c: Likewise.
46479 * fs/sfs.c: Likewise.
46480 * fs/ufs.c: Likewise.
46481 * fs/xfs.c: Likewise.
46482 * hello/hello.c: Likewise.
46483 * include/grub/acorn_filecore.h: Likewise.
46484 * include/grub/arg.h: Likewise.
46485 * include/grub/bitmap.h: Likewise.
46486 * include/grub/boot.h: Likewise.
46487 * include/grub/cache.h: Likewise.
46488 * include/grub/device.h: Likewise.
46489 * include/grub/disk.h: Likewise.
46490 * include/grub/dl.h: Likewise.
46491 * include/grub/elfload.h: Likewise.
46492 * include/grub/env.h: Likewise.
46493 * include/grub/err.h: Likewise.
46494 * include/grub/file.h: Likewise.
46495 * include/grub/font.h: Likewise.
46496 * include/grub/fs.h: Likewise.
46497 * include/grub/fshelp.h: Likewise.
46498 * include/grub/gzio.h: Likewise.
46499 * include/grub/hfs.h: Likewise.
46500 * include/grub/kernel.h: Likewise.
46501 * include/grub/loader.h: Likewise.
46502 * include/grub/lvm.h: Likewise.
46503 * include/grub/misc.h: Likewise.
46504 * include/grub/mm.h: Likewise.
46505 * include/grub/net.h: Likewise.
46506 * include/grub/normal.h: Likewise.
46507 * include/grub/parser.h: Likewise.
46508 * include/grub/partition.h: Likewise.
46509 * include/grub/pc_partition.h: Likewise.
46510 * include/grub/raid.h: Likewise.
46511 * include/grub/rescue.h: Likewise.
46512 * include/grub/script.h: Likewise.
46513 * include/grub/setjmp.h: Likewise.
46514 * include/grub/symbol.h: Likewise.
46515 * include/grub/term.h: Likewise.
46516 * include/grub/terminfo.h: Likewise.
46517 * include/grub/tparm.h: Likewise.
46518 * include/grub/types.h: Likewise.
46519 * include/grub/video.h: Likewise.
46520 * include/grub/efi/api.h: Likewise.
46521 * include/grub/efi/chainloader.h: Likewise.
46522 * include/grub/efi/console.h: Likewise.
46523 * include/grub/efi/console_control.h: Likewise.
46524 * include/grub/efi/disk.h: Likewise.
46525 * include/grub/efi/efi.h: Likewise.
46526 * include/grub/efi/pe32.h: Likewise.
46527 * include/grub/efi/time.h: Likewise.
46528 * include/grub/i386/linux.h: Likewise.
46529 * include/grub/i386/setjmp.h: Likewise.
46530 * include/grub/i386/types.h: Likewise.
46531 * include/grub/i386/efi/kernel.h: Likewise.
46532 * include/grub/i386/efi/loader.h: Likewise.
46533 * include/grub/i386/efi/time.h: Likewise.
46534 * include/grub/i386/pc/biosdisk.h: Likewise.
46535 * include/grub/i386/pc/boot.h: Likewise.
46536 * include/grub/i386/pc/chainloader.h: Likewise.
46537 * include/grub/i386/pc/console.h: Likewise.
46538 * include/grub/i386/pc/init.h: Likewise.
46539 * include/grub/i386/pc/kernel.h: Likewise.
46540 * include/grub/i386/pc/loader.h: Likewise.
46541 * include/grub/i386/pc/memory.h: Likewise.
46542 * include/grub/i386/pc/multiboot.h: Likewise.
46543 * include/grub/i386/pc/serial.h: Likewise.
46544 * include/grub/i386/pc/time.h: Likewise.
46545 * include/grub/i386/pc/vbe.h: Likewise.
46546 * include/grub/i386/pc/vbeblit.h: Likewise.
46547 * include/grub/i386/pc/vbefill.h: Likewise.
46548 * include/grub/i386/pc/vbeutil.h: Likewise.
46549 * include/grub/i386/pc/vga.h: Likewise.
46550 * include/grub/ieee1275/ieee1275.h: Likewise.
46551 * include/grub/ieee1275/ofdisk.h: Likewise.
46552 * include/grub/powerpc/libgcc.h: Likewise.
46553 * include/grub/powerpc/setjmp.h: Likewise.
46554 * include/grub/powerpc/types.h: Likewise.
46555 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
46556 * include/grub/powerpc/ieee1275/console.h: Likewise.
46557 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
46558 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
46559 * include/grub/powerpc/ieee1275/loader.h: Likewise.
46560 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
46561 * include/grub/powerpc/ieee1275/time.h: Likewise.
46562 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
46563 * include/grub/sparc64/libgcc.h: Likewise.
46564 * include/grub/sparc64/setjmp.h: Likewise.
46565 * include/grub/sparc64/types.h: Likewise.
46566 * include/grub/sparc64/ieee1275/console.h: Likewise.
46567 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
46568 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
46569 * include/grub/sparc64/ieee1275/time.h: Likewise.
46570 * include/grub/util/biosdisk.h: Likewise.
46571 * include/grub/util/getroot.h: Likewise.
46572 * include/grub/util/lvm.h: Likewise.
46573 * include/grub/util/misc.h: Likewise.
46574 * include/grub/util/raid.h: Likewise.
46575 * include/grub/util/resolve.h: Likewise.
46576 * io/gzio.c: Likewise.
46577 * kern/device.c: Likewise.
46578 * kern/disk.c: Likewise.
46579 * kern/dl.c: Likewise.
46580 * kern/elf.c: Likewise.
46581 * kern/env.c: Likewise.
46582 * kern/err.c: Likewise.
46583 * kern/file.c: Likewise.
46584 * kern/fs.c: Likewise.
46585 * kern/loader.c: Likewise.
46586 * kern/main.c: Likewise.
46587 * kern/misc.c: Likewise.
46588 * kern/mm.c: Likewise.
46589 * kern/parser.c: Likewise.
46590 * kern/partition.c: Likewise.
46591 * kern/rescue.c: Likewise.
46592 * kern/term.c: Likewise.
46593 * kern/efi/efi.c: Likewise.
46594 * kern/efi/init.c: Likewise.
46595 * kern/efi/mm.c: Likewise.
46596 * kern/i386/dl.c: Likewise.
46597 * kern/i386/efi/init.c: Likewise.
46598 * kern/i386/efi/startup.S: Likewise.
46599 * kern/i386/pc/init.c: Likewise.
46600 * kern/i386/pc/lzo1x.S: Likewise.
46601 * kern/i386/pc/startup.S: Likewise.
46602 * kern/ieee1275/ieee1275.c: Likewise.
46603 * kern/powerpc/cache.S: Likewise.
46604 * kern/powerpc/dl.c: Likewise.
46605 * kern/powerpc/ieee1275/cmain.c: Likewise.
46606 * kern/powerpc/ieee1275/crt0.S: Likewise.
46607 * kern/powerpc/ieee1275/init.c: Likewise.
46608 * kern/powerpc/ieee1275/openfw.c: Likewise.
46609 * kern/sparc64/cache.S: Likewise.
46610 * kern/sparc64/dl.c: Likewise.
46611 * kern/sparc64/ieee1275/init.c: Likewise.
46612 * kern/sparc64/ieee1275/openfw.c: Likewise.
46613 * loader/efi/chainloader.c: Likewise.
46614 * loader/efi/chainloader_normal.c: Likewise.
46615 * loader/i386/efi/linux.c: Likewise.
46616 * loader/i386/efi/linux_normal.c: Likewise.
46617 * loader/i386/pc/chainloader.c: Likewise.
46618 * loader/i386/pc/chainloader_normal.c: Likewise.
46619 * loader/i386/pc/linux.c: Likewise.
46620 * loader/i386/pc/linux_normal.c: Likewise.
46621 * loader/i386/pc/multiboot.c: Likewise.
46622 * loader/i386/pc/multiboot_normal.c: Likewise.
46623 * loader/powerpc/ieee1275/linux.c: Likewise.
46624 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
46625 * normal/arg.c: Likewise.
46626 * normal/cmdline.c: Likewise.
46627 * normal/command.c: Likewise.
46628 * normal/completion.c: Likewise.
46629 * normal/execute.c: Likewise.
46630 * normal/function.c: Likewise.
46631 * normal/lexer.c: Likewise.
46632 * normal/main.c: Likewise.
46633 * normal/menu.c: Likewise.
46634 * normal/menu_entry.c: Likewise.
46635 * normal/misc.c: Likewise.
46636 * normal/parser.y: Likewise.
46637 * normal/script.c: Likewise.
46638 * normal/i386/setjmp.S: Likewise.
46639 * normal/powerpc/setjmp.S: Likewise.
46640 * normal/sparc64/setjmp.S: Likewise.
46641 * partmap/acorn.c: Likewise.
46642 * partmap/amiga.c: Likewise.
46643 * partmap/apple.c: Likewise.
46644 * partmap/gpt.c: Likewise.
46645 * partmap/pc.c: Likewise.
46646 * partmap/sun.c: Likewise.
46647 * term/gfxterm.c: Likewise.
46648 * term/terminfo.c: Likewise.
46649 * term/efi/console.c: Likewise.
46650 * term/i386/pc/console.c: Likewise.
46651 * term/i386/pc/serial.c: Likewise.
46652 * term/i386/pc/vesafb.c: Likewise.
46653 * term/i386/pc/vga.c: Likewise.
46654 * term/ieee1275/ofconsole.c: Likewise.
46655 * util/biosdisk.c: Likewise.
46656 * util/console.c: Likewise.
46657 * util/genmoddep.c: Likewise.
46658 * util/getroot.c: Likewise.
46659 * util/grub-emu.c: Likewise.
46660 * util/grub-mkdevicemap.c: Likewise.
46661 * util/grub-probe.c: Likewise.
46662 * util/lvm.c: Likewise.
46663 * util/misc.c: Likewise.
46664 * util/raid.c: Likewise.
46665 * util/resolve.c: Likewise.
46666 * util/update-grub.in: Likewise.
46667 * util/update-grub_lib.in: Likewise.
46668 * util/grub.d/00_header.in: Likewise.
46669 * util/grub.d/10_hurd.in: Likewise.
46670 * util/grub.d/10_linux.in: Likewise.
46671 * util/i386/efi/grub-install.in: Likewise.
46672 * util/i386/efi/grub-mkimage.c: Likewise.
46673 * util/i386/pc/grub-install.in: Likewise.
46674 * util/i386/pc/grub-mkimage.c: Likewise.
46675 * util/i386/pc/grub-mkrescue.in: Likewise.
46676 * util/i386/pc/grub-setup.c: Likewise.
46677 * util/i386/pc/misc.c: Likewise.
46678 * util/powerpc/ieee1275/grub-install.in: Likewise.
46679 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
46680 * util/powerpc/ieee1275/misc.c: Likewise.
46681 * video/bitmap.c: Likewise.
46682 * video/video.c: Likewise.
46683 * video/i386/pc/vbe.c: Likewise.
46684 * video/i386/pc/vbeblit.c: Likewise.
46685 * video/i386/pc/vbefill.c: Likewise.
46686 * video/i386/pc/vbeutil.c: Likewise.
46687 * video/readers/tga.c: Likewise.
46688
3572d015 466892007-07-02 Robert Millan <rmh@aybabtu.com>
46690
46691 * conf/i386-efi.rmk: Replace obsolete reference to
46692 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
46693 with util/getroot.c.
46694 * conf/powerpc-ieee1275.rmk: Likewise.
46695 * conf/sparc64-ieee1275.rmk: Likewise.
46696
46697 * util/grub-emu.c (main): Fix unchecked pointer handling.
46698
2c2a681b 466992007-07-02 Robert Millan <rmh@aybabtu.com>
46700
46701 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
46702 invocation to fail, in order to support partition-less media.
46703
46704 * util/i386/pc/grub-install.in: Likewise.
46705
46706 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
46707 which fs or partmap modules are needed (akin to its sister scripts).
46708
46709 Also use grub-probe to get rid of unportable /proc/mounts check.
46710
46711 Print the same informational message that the other scripts do, before
fe6b695a 46712 exiting.
2c2a681b 46713
6193defe 467142007-06-23 Robert Millan <rmh@aybabtu.com>
46715
fe6b695a 46716 * util/update-grub_lib.in (font_path): New function. Determine whether
6193defe 46717 a font file can be found and, if so, echo the GRUB path to it.
46718
46719 * util/update-grub.in: Handle multiple terminals depending on user
46720 input, platform availability and font file presence. Propagate
46721 variables of our findings to /etc/grub.d/ children.
46722
46723 * util/grub.d/00_header.in: Handle multiple terminals, based on
46724 environment setup by update-grub.
46725
eface1dc 467262007-06-23 Robert Millan <rmh@aybabtu.com>
46727
ba50d28f 46728 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
eface1dc 46729
bf697e28 467302007-06-21 Robert Millan <rmh@aybabtu.com>
46731
46732 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
46733 indicate end of data section in kernel image.
46734 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
46735 GRUB_KERNEL_MACHINE_DATA_END.
46736
46737 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
46738 space for it.
46739 * kern/i386/efi/startup.S: Likewise.
46740
46741 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
46742 during image generation. Implement --prefix option to override this
46743 patch.
46744 * util/i386/efi/grub-mkimage.c: Likewise.
46745
46746 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
46747 code to make path relative to its root into a separate function.
46748
46749 * util/i386/pc/grub-install.in: Use newly provided
46750 make_system_path_relative_to_its_root() to convert ${grubdir}, then
46751 pass the result to grub-install --prefix.
46752
baa574b4 467532007-06-13 Robert Millan <rmh@aybabtu.com>
46754
46755 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
46756 DEFAULT_DEVICE_MAP.
46757 * util/grub-emu.c: Use above definitions from misc.h instead of
46758 defining them.
46759 * util/grub-mkdevicemap.c: Likewise.
46760 * util/i386/pc/grub-setup.c: Likewise.
46761 * util/grub-probe.c: Likewise.
46762 (probe): Abort with grub_util_error() when either
46763 grub_guess_root_device or grub_util_get_grub_dev fails.
46764
0215dcbf 467652007-06-12 Robert Millan <rmh@aybabtu.com>
46766
46767 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
46768 "pager" assignment.
46769 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
46770 "pcdata".
46771 * util/grub-probe.c (probe): Likewise for "drive_name".
46772
8af2ab7b 467732007-06-11 Robert Millan <rmh@aybabtu.com>
46774
46775 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
46776 not just the cdrom one.
46777
59d31694 467782007-06-11 Robert Millan <rmh@aybabtu.com>
46779
46780 * util/i386/pc/grub-mkrescue.in: Add "set -e".
46781 Add --pkglibdir=DIR option to override pkglibdir.
46782 Mention --image-type=TYPE in help output.
46783 Fix --grub-mkimage (it was a no-op).
fe6b695a 46784 Abort gracefully when no parameter is given.
59d31694 46785
7ee367e4 467862007-06-11 Robert Millan <rmh@aybabtu.com>
46787
46788 * util/i386/pc/grub-mkrescue.in: New file.
46789 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
46790 * Makefile.in: Handle bin_SCRIPTS.
46791
29b0ed46 467922007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
46793
46794 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
46795 list of video modes.
46796
c0f90770 467972007-06-06 Robert Millan <rmh@aybabtu.com>
46798
46799 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
46800 file doesn't exist, or if it is in a filesystem grub can't read.
46801
46802 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
46803 not abort if GRUB_DRIVE could not be defined. Rearrange generated
46804 header comment to fit in 80 columns when the variables are resolved.
46805
46806 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
46807 could be identified by update-grub. Remove redundant check for
fe6b695a 46808 unifont.pff existence (since convert_system_path_to_grub_path now
c0f90770 46809 handles that).
46810
fb36dc26 468112007-06-04 Robert Millan <rmh@aybabtu.com>
46812
46813 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
46814
46815 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
46816
46817 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
46818
0c68c93e 468192007-06-04 Robert Millan <rmh@aybabtu.com>
46820
46821 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
46822
46823 * include/grub/partition.h: Declare grub_apple_partition_map_init and
46824 grub_apple_partition_map_fini.
46825
46826 * util/biosdisk.c
46827 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
46828 to access >2 TiB disks).
46829
46830 Print disk->total_sectors with %llu instead of %lu, since this
46831 variable is always 64-bit (prevents wrong disk size from being displayed
46832 on either >2 TiB disk or big-endian CPU).
46833
46834 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
46835 into a generic case that supports all (sane) partition maps.
46836
46837 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
46838 breaks big-endian.
46839
46840 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
46841 and grub_apple_partition_map_fini() after that.
46842
0f23eb74 468432007-06-01 Robert Millan <rmh@aybabtu.com>
46844
46845 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
46846
46847 * util/grub.d/00_header.in: Only enable gfxterm when
46848 convert_system_path_to_grub_path() succeeds.
46849
42c71976 468502007-05-20 Robert Millan <rmh@aybabtu.com>
46851
46852 * util/update-grub_lib.in: New file.
46853 * DISTLIST: Add update-grub_lib.in.
46854 * conf/common.rmk: Generate update-grub_lib and install it in
46855 $(lib_DATA).
46856 * Makefile.in: Add install routine for $(lib_DATA).
46857
46858 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
46859 function provided by update-grub_lib to support arbitrary paths of
46860 unifont.pff.
46861 * util/update-grub.in: Use convert_system_path_to_grub_path() to
46862 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
46863
5beb2291 468642007-05-19 Robert Millan <rmh@aybabtu.com>
46865
46866 * commands/i386/cpuid.c: New module.
46867 * DISTLIST: Add it.
46868 * conf/i386-efi.rmk: Enable cpuid.mod.
46869 * conf/i386-pc.rmk: Likewise.
46870
7262eca1 468712007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
46872
46873 * kern/disk.c (grub_disk_read): Check return value of
46874 grub_realloc().
46875
260ba823 468762007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
46877
46878 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
46879 arrays.
46880 * disk/raid.c (grub_raid_open): Likewise.
46881
1ecb6cf2 468822007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
46883
46884 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
46885 stack instead of on the heap.
46886
46887 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
46888 before doing a read on it.
46889
46890 * configure.ac: Only use -fno-stack-protector for the target
46891 environment.
f19dbdb7 46892
21c8cbb1 468932007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
46894
46895 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
46896 __attribute_ ((unused)) to mode_type argument.
46897
46898 * util/getroot.c (grub_guess_root_device): Fix #endif.
f19dbdb7 46899
21c8cbb1 46900 * kern/misc.c (memcmp): Fix prototype.
46901
46902 * include/grub/partition.h [GRUB_UTIL]
46903 (grub_gpt_partition_map_init): Add prototype.
46904 (grub_gpt_partition_map_fini): Likewise.
46905
46906 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
46907 at the right place.
46908
46909 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
46910 (grub_fat_read_data): Likewise.
46911 (grub_fat_find_dir): Likewise.
46912
46913 * font/manager.c (find_glyph): Make table a const.
46914 (grub_font_get_glyph): Remove bitmap from if statement.
f19dbdb7 46915
849d55d3 469162007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
46917
46918 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
46919 code, first search for device in /dev/mapper, then in /dev.
46920 (grub_util_get_grub_dev): New function.
46921 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
46922 prototype.
46923 * util/grub-probe.c (probe): Remove check for RAID, call
46924 grub_util_get_grub_dev() instead of
46925 grub_util_biosdisk_get_grub_dev().
46926 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
46927 grub_util_biosdisk_get_grub_dev().
46928 * util/i386/pc/grub-setup.c (main): Likewise.
46929
8fff7c2f 469302007-05-16 Robert Millan <rmh@aybabtu.com>
46931
46932 * DISTLIST: Update for the latest changes.
46933 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
46934 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
46935 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
46936 grub/util/biosdisk.h.
46937 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
46938 grub/util/biosdisk.h.
46939
48e12b52 469402007-05-16 Robert Millan <rmh@aybabtu.com>
46941
46942 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
46943
46b9d128 469442007-05-16 Robert Millan <rmh@aybabtu.com>
46945
46946 * util/i386/efi/grub-install.in: New.
46947 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
46948 newly added grub-install.
46949 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
46950 include.
46951 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
46952 grub/util/biosdisk.h.
46953 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
46954 grub/util/biosdisk.h.
46955
2d1a40a9 469562007-05-16 Robert Millan <rmh@aybabtu.com>
46957
46958 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
46959 * include/grub/util/biosdisk.h: ... here.
46960 * util/i386/pc/biosdisk.c: Moved to ...
46961 * util/biosdisk.c: ... here.
46962 * util/i386/pc/getroot.c: Moved to ...
46963 * util/getroot.c: ... here.
46964 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
46965 * util/grub-mkdevicemap.c: ... here.
46966 * util/i386/pc/grub-probe.c: Moved to ...
46967 * util/grub-probe.c: ... here.
46968
9e26e3bc 469692007-05-15 Robert Millan <rmh@aybabtu.com>
46970
46971 * util/update-grub.in: Remove duplicated line in grub.cfg header
46972 message.
46973
57f96397 469742007-05-13 Robert Millan <rmh@aybabtu.com>
46975
46976 * util/update-grub.in: Fix a few assumptions about the devices holding
46977 /, /boot and /boot/grub being the same.
46978 * util/grub.d/00_header.in: Likewise.
46979 * util/grub.d/10_hurd.in: Likewise.
46980 * util/grub.d/10_linux.in: Likewise.
46981
46982 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
46983 patterns. Use that to define the `.old' suffix as older than `'.
46984
46985 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
46986
46987 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
46988 the grub.cfg header message.
46989
2e610d62 469902007-05-11 Robert Millan <rmh@aybabtu.com>
46991
46992 * util/update-grub.in: Create device.map if it doesn't already exist,
46993 before attempting to run grub-probe.
46994 Check for grub-probe and grub-mkdevicemap with the same code
46995 grub-install is using.
46996 Remove test mode.
46997
3f6a10ef 469982007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
46999
47000 * Makefile.in: Add the datarootdir autoconf variable.
47001
02e7b75e 470022007-05-09 Robert Millan <rmh@aybabtu.com>
47003
47004 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
f19dbdb7 47005 fail gracefully if dev->disk->partition == NULL.
02e7b75e 47006
75f396cc 470072007-05-07 Robert Millan <rmh@aybabtu.com>
47008
47009 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
47010 determine partition map module.
47011 * util/i386/pc/grub-install.in: Use this feature to decide which
47012 partition module to load, instead of hardcoding pc and gpt.
47013
da65cb36 470142007-05-07 Robert Millan <rmh@aybabtu.com>
47015
47016 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
47017 source directory differs from build directory.
47018
b57d6a91 470192007-05-05 Robert Millan <rmh@aybabtu.com>
47020
47021 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
47022 initialisation.
47023
509d00f1 470242007-05-05 Robert Millan <rmh@aybabtu.com>
47025
47026 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
47027
c48f23ef 470282007-05-05 Robert Millan <rmh@aybabtu.com>
47029
47030 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
47031 command-line arguments via ${GRUB_CMDLINE_LINUX}.
47032
20b97658 470332007-05-05 Robert Millan <rmh@aybabtu.com>
47034
47035 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
47036 (grub_probe_SOURCES): Likewise.
47037 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
47038 GPT and initialize dos_part and bsd_part accordingly.
47039 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
47040 install_bsd_part.
47041 (main): Activate gpt module for use during partition identification,
47042 and deactivate it afterwards.
47043 * util/i386/pc/grub-install.in: Add gpt module to core.img.
47044 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
47045 partition identification, and deactivate it afterwards.
47046
99123174 470472007-05-05 Robert Millan <rmh@aybabtu.com>
47048
47049 * term/i386/pc/console.c (grub_console_fini): Call
47050 grub_term_set_current() before grub_term_unregister().
47051
ebd97f6e 470522007-05-04 Robert Millan <rmh@aybabtu.com>
47053
47054 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
47055 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
47056 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
47057 and update-grub_DATA.
47058 * conf/common.rmk: Build and install update-grub components.
47059 * conf/common.mk: Regenerate.
47060 * util/update-grub.in: New. Core of update-grub.
47061 * util/grub.d/00_header.in: New. Generates grub.cfg header.
47062 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
47063 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
47064 * util/grub.d/README: New. Document grub.d directory layout.
47065
b06a264d 470662007-05-01 Robert Millan <rmh@aybabtu.com>
47067
47068 * util/grub-emu.c: Move initialization functions
47069 grub_util_biosdisk_init() and grub_init_all() before
47070 grub_util_biosdisk_get_grub_dev(), which relies on them.
47071
41f0050e 470722007-04-19 Robert Millan <rmh@aybabtu.com>
47073
47074 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
47075 it is used later.
47076
04582bb3 470772007-04-18 Jerone Young <jerone@gmail.com>
47078
f19dbdb7 47079 * kernel/elf.c: Add missing parenthesis for conditional statement
04582bb3 47080 stanza.
47081
08db4632 470822007-04-10 Jerone Young <jerone@gmail.com>
49892fdf 47083
08db4632 47084 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
47085 continue on and look for device node with real device name.
47086
801b76be 470872007-04-10 Jerone Young <jerone@gmail.com>
f19dbdb7 47088
fe6b695a 47089 * configure.ac: Add argument for autoconf to use transformation
1d543c3e 47090 ability.
47091 * Makefile.in: Add autoconf package transformation code.
47092 * util/i386/pc/grub-install.in: Likewise.
47093 * util/powerpc/ieee1275/grub-install.in: Likewise.
47094
6795c4e1 470952007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
47096
47097 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
47098 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
47099 (EXT2_REVISION): Likewise.
47100 (EXT2_INODE_SIZE): Likewise.
47101 (struct grub_ext2_block_group): Added a missing member
47102 "used_dirs".
47103 (grub_ext2_read_inode): Divide by the inode size in a superblock
47104 instead of 128 to obtain INODES_PER_BLOCK.
47105 Use the macro EXT2_INODE_SIZE instead of directly using
47106 SBLOCK->INODE_SIZE.
47107
d70af616 471082007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
47109
47110 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
47111 superblock instead of the structure size to compute an
47112 offset. This fixes the problem that GRUB could not read a
47113 filesystem when inode size is different from 128-byte.
47114
3b801603 471152007-03-05 Marco Gerards <marco@gnu.org>
47116
47117 * normal/main.c (read_config_file): When "menu" is not set, create
47118 an initial context.
47119
4785bfe4 471202007-02-21 Hollis Blanchard <hollis@penguinppc.org>
47121
47122 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
47123 (HEAP_LIMIT): New macro.
47124 (grub_claim_heap): Claim memory up to `heaplimit'.
47125
a0cbb023 471262007-02-21 Hollis Blanchard <hollis@penguinppc.org>
47127
47128 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
47129 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
47130 (_start): Likewise.
47131 (grub_arch_modules_addr): Return address after `_end'.
47132 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
47133 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
47134 (add_segments): Calculate `_end' from phdr size and location.
47135 (ALIGN_UP): Moved to ...
47136 * include/grub/misc.h: here.
47137 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
47138 New macro.
47139 (GRUB_IEEE1275_MODULE_BASE): Removed.
47140
fd7d8eba 471412007-02-20 Hollis Blanchard <hollis@penguinppc.org>
47142
47143 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
47144 loop boundary.
47145
9b09e6fc 471462007-02-20 Hollis Blanchard <hollis@penguinppc.org>
47147
47148 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
47149 All users updated.
47150 (grub_elf64_load_hook_t): Likewise.
47151 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
47152 debug output.
47153
3ce27299 471542007-02-20 Hollis Blanchard <hollis@penguinppc.org>
47155
47156 * kern/mm.c: Update copyright.
47157 (grub_mm_debug): Correct syntax error.
47158 (grub_mm_dump_free): New function.
47159 (grub_debug_free): Call `grub_free'.
47160 * include/grub/mm.h: Update copyright.
47161 (grub_mm_dump_free): Add declaration.
47162
077d5fee 471632007-02-12 Hollis Blanchard <hollis@penguinppc.org>
47164
47165 * include/grub/ieee1275/ieee1275.h: Update copyright.
47166 * kern/powerpc/ieee1275/init.c: Likewise.
47167 * kern/powerpc/ieee1275/openfw.c: Likewise.
47168
47169 * loader/powerpc/ieee1275/linux.c: Likewise.
47170 * include/grub/elfload.h: Likewise.
47171 * kern/elf.c: Likewise.
47172 (grub_elf32_load): Pass `base' and `size' parameters. Update all
47173 callers.
47174 (grub_elf64_load): Likewise.
47175 (grub_elf32_load_segment): Move to a nested function.
47176 (grub_elf64_load_segment): Likewise.
47177
dc946850 471782007-02-12 Hollis Blanchard <hollis@penguinppc.org>
47179
47180 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
47181 prototype.
47182 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
47183 (grub_heap_len): Likewise.
47184 (HEAP_SIZE): New macro.
47185 (grub_claim_heap): New function.
47186 (grub_machine_init): Don't claim heap directly. Call
47187 `grub_claim_heap'.
47188 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
47189 (grub_available_iterate): New function.
47190
baa2a121 471912007-02-03 Thomas Schwinge <tschwinge@gnu.org>
47192
47193 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
47194 * configure.ac: Use it for testing the HOST and TARGET compilers.
47195
4fe9862e 471962006-12-13 Thomas Schwinge <tschwinge@gnu.org>
47197
47198 * Makefile.in (enable_grub_emu): New variable.
47199 * configure.ac (--enable-grub-emu): New option.
47200 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
47201 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
47202 * conf/i386-pc.rmk: Likewise.
47203 * conf/powerpc-ieee1275.rmk: Likewise.
47204 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
47205
a8aa5762 472062006-12-12 Marco Gerards <marco@gnu.org>
47207
47208 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
47209
47210 * kern/env.c (grub_env_unset): Don't free the member `value' when
47211 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
47212 pointer.
47213
47214 * normal/main.c (current_menu): Removed.
47215 (free_menu): Unset the `menu' environment variable.
47216 (grub_normal_menu_addentry): Make use of the environment variable
47217 `menu', instead of using the global `current_menu'. Allocate
47218 memory for the sourcecode of this entry.
47219 (read_config_file): New argument `nested', changed all callers.
47220 Only in the case of a new context, initialize a new menu. Set the
47221 `menu' environment variable.
47222 (grub_normal_execute): Don't set and unset the environment
47223 variable `menu' here anymore. Only free the menu when leaving the
47224 context.
47225
47226 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
47227 leak.
47228
957b3a3e 472292006-12-11 Marco Gerards <marco@gnu.org>
47230
47231 * normal/menu_entry.c (run): Fix off by one bug so the last line
47232 is executed. Move the loader check to outside the loop.
47233
ef875714 472342006-12-08 Hollis Blanchard <hollis@penguinppc.org>
47235
47236 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
47237
4e739985 472382006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
47239
47240 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
47241 the number of sectors. Reported by Andrey Shuvikov
47242 <mr_hyro@yahoo.com>.
f19dbdb7 47243
790707f2 472442006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
47245
47246 * kern/disk.c (grub_disk_read): When there is a read error, always
47247 try to read only the necessary data.
f19dbdb7 47248
790707f2 47249 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
47250 disk/raid.c.
47251 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
47252 prototype.
47253 [GRUB_UTIL] (grub_raid_fini): Likewise.
47254 [GRUB_UTIL] (grub_lvm_init): Likewise.
f19dbdb7 47255 [GRUB_UTIL] (grub_lvm_fini): Likewise.
790707f2 47256 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
47257 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
47258 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
47259 and grub_raid_fini().
f19dbdb7 47260
03e58196 472612006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
47262
47263 * include/grub/types.h (__unused): Rename to UNUSED.
47264 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
47265 (grub_elf64_size): Likewise.
f19dbdb7 47266
ae4f23bf 472672006-11-03 Hollis Blanchard <hollis@penguinppc.org>
47268
47269 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
47270 grub_error_push and grub_error_pop in the error-handling path.
47271 (grub_elf32_load_segment): Only call grub_file_read with non-zero
47272 length.
47273
2166cc83 472742006-11-03 Hollis Blanchard <hollis@penguinppc.org>
47275
47276 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
47277 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
47278 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47279 (kernel_elf_SOURCES): Likewise.
47280 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
47281 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
47282 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
47283 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
47284 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
47285 (elf_mod_SOURCES): New variable.
47286 (elf_mod_CFLAGS): Likewise.
47287 (elf_mod_LDFLAGS): Likewise.
47288 * include/grub/types.h (__unused): New macro.
47289 * include/grub/elfload.h: New file.
47290 * kern/elf.c: Likewise.
47291 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
47292 (ELF32_LOADMASK): New macro.
47293 (ELF64_LOADMASK): Likewise.
47294 (vmlinux): Removed.
47295 (grub_linux_load32): New function.
47296 (grub_linux_load64): Likewise.
47297 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
47298 Use grub_elf_t instead of grub_file_t.
47299
a09d5aa5 473002006-11-02 Hollis Blanchard <hollis@penguinppc.org>
47301
47302 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
47303 `catch_result' to struct set_color_args.
47304
d976fc51 473052006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
47306
47307 * normal/menu.c: Include grub/script.h.
47308 * normal/menu_entry.c: Likewise.
47309 * include/grub/normal.h: Do not include grub/script.h.
47310
67507549 473112006-10-27 Hollis Blanchard <hollis@penguinppc.org>
47312
47313 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
47314
69203a99 473152006-10-27 Hollis Blanchard <hollis@penguinppc.org>
47316
47317 * kern/disk.c (grub_disk_open): Print debug messages when opening a
47318 disk.
47319 (grub_disk_close): Print debug messages when closing a disk.
47320 (grub_disk_read): Print debug messages when disk read fails.
47321 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
47322 filesystem type.
47323 * kern/partition.c: Include misc.h.
47324 (grub_partition_iterate): Print debug messages when detecting
47325 partition type.
47326
e2b8278c 473272006-10-27 Hollis Blanchard <hollis@penguinppc.org>
47328
47329 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
47330 is negative.
47331 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
47332
97b2f2ff 473332006-10-26 Hollis Blanchard <hollis@penguinppc.org>
47334
47335 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
47336 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
47337
6555d655 473382006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
47339
47340 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
47341 instead of sizeof(lv). Patch by Michael Guntsche.
47342
4d42b77f 473432006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
47344
47345 * disk/lvm.c: Rename VGS to VG_LIST.
47346 (grub_lvm_iterate): Change VGS->LV to VG-LV.
47347 (grub_lvm_open): Likewise.
47348 Thanks to Michael Guntsche for finding this bug.
47349
5d74d927 473502006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
47351
47352 * configure.ac (AC_INIT): Bumped to 1.95.
47353
a1bb27e4 473542006-10-14 Robert Millan <rmh@aybabtu.com>
47355
47356 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
47357 with "/dev/.static/dev/md".
47358
e0994b8b 473592006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
47360
47361 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
47362 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
47363 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
47364 DRIVE_NAME are always freed.
47365
47366 * util/i386/pc/biosdisk.c (make_device_name): Add one into
47367 DOS_PART, as a DOS partition is counted from one instead of zero
47368 now. Reported by Robert Millan.
47369
ddd5cee9 473702006-10-14 Robert Millan <rmh@aybabtu.com>
47371
47372 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
47373 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
47374 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
47375 string returned by grub_guess_root_device.
47376 * util/i386/pc/grub-setup.c: Likewise.
47377 * util/i386/pc/grub-probefs.c: Likewise.
47378
47379 * util/i386/pc/grub-probefs.c: Rename to ...
47380 * util/i386/pc/grub-probe.c: ... this.
47381 * DISTLIST: Remove grub-probefs, add grub-probe.
47382 * conf/i386-efi.rmk: Likewise.
47383 * conf/i386-pc.rmk: Likewise.
47384 * util/i386/pc/grub-install.in: Likewise.
47385
47386 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
47387 choose which information we want to print.
47388
2b002173 473892006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
47390
47391 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
47392 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
47393 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
47394 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
47395 video/readers/tga.c and video/i386/pc/vbeutil.c.
47396
473972006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
47398
47399 Added support for RAID and LVM.
f19dbdb7 47400
2b002173 47401 * disk/lvm.c: New file.
47402 * disk/raid.c: Likewise.
47403 * include/grub/lvm.h: Likewise.
f19dbdb7 47404 * include/grub/raid.h: Likewise.
2b002173 47405 * include/grub/util/lvm.h: Likewise.
47406 * include/grub/util/raid.h: Likewise.
47407 * util/lvm.c: Likewise.
47408 * util/raid.c: Likewise.
47409
47410 * include/grub/disk.h (grub_disk_dev_id): Add
47411 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
47412 (grub_disk_get_size): New prototype.
47413 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
47414 returns a partition.
47415 (grub_disk_get_size): New function.
f19dbdb7 47416
2b002173 47417 * kern/i386/pc/init.c (make_install_device): Copy the prefix
47418 verbatim if grub_install_dos_part is -2.
47419
47420 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
47421 and LVM devices.
47422
47423 * util/i386/pc/grub-setup.c (setup): New argument
47424 MUST_EMBED. Force embedding of GRUB when the argument is
47425 true. Close FILE before returning.
47426 (main): Add support for RAID and LVM.
f19dbdb7 47427
2b002173 47428 * conf/common.rmk: Add RAID and LVM modules.
47429 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
47430 util/lvm.c.
47431 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
47432
47433 * kern/misc.c (grub_strstr): New function.
47434 * include/grub/misc.h (grub_strstr): New prototype.
47435
050548d0 474362006-10-10 Tristan Gingold <tristan.gingold@bull.net>
47437
47438 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
47439
da849d2d 474402006-10-05 Tristan Gingold <tristan.gingold@bull.net>
47441
47442 * kern/misc.c (grub_strtoull): Guess the base only if not
47443 specified.
47444
97b2f2ff 474452006-10-01 Hollis Blanchard <hollis@penguinppc.org>
4f0acd39 47446
47447 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
47448 PowerMac support.
47449
97b2f2ff 474502006-10-01 Hollis Blanchard <hollis@penguinppc.org>
fba51f48 47451
47452 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
47453
47454 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
47455 Remove `flags' argument. All callers changed.
47456 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
47457 (IEEE1275_IHANDLE_INVALID): New variable.
47458 (IEEE1275_CELL_INVALID): New variable.
47459 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
47460 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
47461 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
47462 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
47463 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
47464 codes from Open Firmware. All callers updated.
47465 (grub_ieee1275_next_property): Directly return Open Firmware return
47466 code.
47467 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
47468 Standardize error checking from `grub_ieee1275_get_property'.
47469 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
47470 `devalias' to `aliases'. Correct comments. Consolidate error paths.
47471
97b2f2ff 474722006-10-01 Hollis Blanchard <hollis@penguinppc.org>
cc6d3df3 47473
47474 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
47475 `instance_to_package_args' to `instance_to_path_args'.
47476
47477 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
47478 `grub_ieee1275_chosen'.
47479
47480 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
47481 `grub_ieee1275_interpret'.
47482
97b2f2ff 474832006-09-25 Hollis Blanchard <hollis@penguinppc.org>
02bb8acc 47484
47485 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
47486
97b2f2ff 474872006-09-25 Hollis Blanchard <hollis@penguinppc.org>
663b72f0 47488
47489 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
47490 (__cmpdi): Likewise.
47491
47492 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
47493 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
47494 `grub_ssize_t'.
47495
02bb8acc 47496 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
663b72f0 47497
47498 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
47499 to type `grub_ssize_t'.
47500 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
47501
7f9a8531 475022006-09-22 Marco Gerards <marco@gnu.org>
47503
47504 * normal/script.c (grub_script_create_cmdmenu): Skip leading
47505 newlines.
47506
b5ef1102 475072006-09-22 Marco Gerards <marco@gnu.org>
47508
47509 * commands/echo.c: New file.
47510
47511 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
47512
47513 * conf/common.rmk (echo_mod_SOURCES): New variable.
47514 (echo_mod_CFLAGS): Likewise.
47515 (echo_mod_LDFLAGS): Likewise.
47516
2cff3677 475172006-09-22 Marco Gerards <marco@gnu.org>
47518
47519 * normal/main.c (get_line): Malloc memory instead of using
47520 preallocated memory. Removed the arguments `cmdline' and
47521 `max_len'. Updated all callers.
47522
6ba4688b 475232006-09-22 Marco Gerards <marco@gnu.org>
47524
47525 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
47526 (normal_mod_DEPENDENCIES): Likewise.
47527
47528 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
47529 (normal_mod_DEPENDENCIES): Likewise.
47530
47531 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
47532
e02ac02c 475332006-09-22 Johan Rydberg <jrydberg@gnu.org>
47534
47535 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
47536 programs.
47537 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
47538 (normal_mod_DEPENDENCIES): Likewise.
47539 * conf/i386-pc.mk: Regenerate.
47540 * conf/i386-efi.mk: Likewise
47541 * conf/common.mk: Likewise.
47542 * conf/powerpc-ieee1275.mk: Likewise.
47543 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 47544
8d252e44 475452006-09-22 Robert Millan <rmh@aybabtu.com>
47546
47547 Sync with i386 version.
47548 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
47549 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
47550
209bf7ac 475512006-09-21 Robert Millan <rmh@aybabtu.com>
47552
47553 Import from GRUB Legacy (lib/device.c):
47554 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
47555 (init_device_map) [__linux__]: Add support for I2O devices.
47556
6b146090 475572006-09-14 Marco Gerards <marco@gnu.org>
47558
47559 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
47560 `-melf_i386'.
47561
e38600a8 475622006-09-14 Robert Millan <rmh@aybabtu.com>
2952da5d 47563
47564 * util/i386/pc/grub-install.in: Skip menu.lst when removing
47565 /boot/grub/*.lst.
78fa1790 47566
2952da5d 47567 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
6b146090 47568
2952da5d 47569 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
47570 before adding it to device.map.
47571
01b82a64 475722006-08-15 Johan Rydberg <jrydberg@gnu.org>
47573
fe6b695a 47574 * genmk.rb: Let GCC generate dependencies the first time it
01b82a64 47575 compiles a file; using the -MD option.
47576 * conf/common.mk: Regenerate.
47577 * conf/i386-pc.mk: Likewise.
47578 * conf/i386-efi.mk: Likewise.
47579 * conf/powerpc-ieee1275.mk: Likewise.
47580 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 47581
1064790d 475822006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
47583
47584 Move the prototypes of grub_setjmp and grub_longjmp to
47585 cpu/setjmp.h, so that each architecture may specify different
47586 attributes.
f19dbdb7 47587
1064790d 47588 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
47589 (grub_longjmp): Likewise.
47590 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
47591 (grub_longjmp): Likewise.
47592 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
47593 (grub_longjmp): Likewise.
47594
47595 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
47596 [!GRUB_UTIL] (grub_longjmp): Removed.
47597
29dda3ed 475982006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
47599
47600 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
47601 "color!" method does not return any value.
47602
ad2a06ed 476032006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
47604
47605 * include/grub/bitmap.h: New file.
47606
47607 * include/grub/i386/pc/vbeutil.h: Likewise.
47608
47609 * video/bitmap.c: Likewise.
47610
47611 * video/readers/tga.c: Likewise.
47612
47613 * video/i386/pc/vbeutil.c: Likewise.
47614
47615 * commands/videotest.c: Code cleanup and updated to reflect to new
47616 video API.
47617
47618 * term/gfxterm.c: Likewise.
47619
47620 * video/video.c: Likewise.
47621
47622 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
47623 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
47624 (bitmap_mod_SOURCES): New entry.
47625 (bitmap_mod_CFLAGS): Likewise.
47626 (bitmap_mod_LDFLAGS): Likewise.
47627 (tga_mod_SOURCES): Likewise.
47628 (tga_mod_CFLAGS): Likewise.
47629 (tga_mod_LDFLAGS): Likewise.
47630
47631 * include/grub/video.h (grub_video_blit_operators): New enum type.
47632 (grub_video_render_target): Changed as forward declaration and moved
47633 actual definition to be video driver specific.
47634 (grub_video_adapter.blit_bitmap): Added blitting operator.
47635 (grub_video_adapter.blit_render_target): Likewise.
47636 (grub_video_blit_bitmap): Likewise.
47637 (grub_video_blit_render_target): Likewise.
47638
47639 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
47640 driver specific render target definition.
47641 (grub_video_vbe_map_rgba): Added driver internal helper.
47642 (grub_video_vbe_unmap_color): Updated to use
47643 grub_video_i386_vbeblit_info.
47644 (grub_video_vbe_get_video_ptr): Likewise.
47645
47646 * include/grub/i386/pc/vbeblit.h
47647 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
47648 grub_video_i386_vbeblit_info.
47649 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
47650 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
47651 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
47652 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
47653 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
47654 (grub_video_i386_vbeblit_index_index): Likewise.
47655 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
47656 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
47657 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
47658 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
47659 operator.
47660 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
47661 operator.
47662
47663 * video/i386/pc/vbeblit.c: Updated to reflect changes on
47664 include/grub/i386/pc/vbeblit.h.
47665
47666 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
47667 Updated to use grub_video_i386_vbeblit_info.
47668 (grub_video_i386_vbefill_R8G8B8): Likewise.
47669 (grub_video_i386_vbefill_index): Likewise.
47670 (grub_video_i386_vbefill): Added generic filler.
47671
47672 * video/i386/pc/vbefill.c: Updated to reflect changes on
47673 include/grub/i386/pc/vbefill.h.
47674
47675 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
47676 grub_video_i386_vbeblit_info.
47677 (grub_video_vbe_unmap_color): Likewise.
47678 (grub_video_vbe_blit_glyph): Likewise.
47679 (grub_video_vbe_scroll): Likewise.
47680 (grub_video_vbe_draw_pixel): Removed function.
47681 (grub_video_vbe_get_pixel): Likewise.
47682 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
47683 updated code to use it.
47684 (common_blitter): Added common blitter for render target and bitmap.
47685 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
47686 (grub_video_vbe_blit_render_target): Likewise.
47687
bc8c036d 476882006-07-30 Johan Rydberg <jrydberg@gnu.org>
47689
47690 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
47691 is in text mode if there is no console control protocol instance
47692 available.
47693
684a8eff 476942006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
47695
47696 * include/grub/video.h: Code cleanup.
47697
47698 * include/grub/i386/pc/vbe.h: Likewise.
47699
47700 * video/i386/pc/vbe.c: Likewise.
47701
47702 * video/i386/pc/vbeblit.c: Likewise.
47703
47704 * video/i386/pc/vbefill.c: Likewise.
47705
47706 * video/video.c: Likewise. Also added more comments.
47707
5915059b 477082006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
47709
47710 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
47711 (struct grub_biosdisk_dap): Likewise.
47712
47713 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
47714 linkage settings for all functions.
47715
90ce5d56 477162006-07-12 Marco Gerards <marco@gnu.org>
47717
47718 * configure.ac (--enable-mm-debug): Fix typo.
47719
47720 * genkernsyms.sh.in: Use proper quoting for `CC'.
47721
43e7f879 477222006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
47723
47724 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
47725 (normal_mod_ASFLAGS): Remove "-m32".
47726
4889bdec 477272006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
47728
47729 * util/misc.c: Include config.h.
47730 [!HAVE_MEMALIGN]: Do not include malloc.h.
47731 (grub_memalign): Use posix_memalign, if present. Then, use
47732 memalign, if present. Otherwise, emit an error.
47733
47734 * util/grub-emu.c: Do not include malloc.h.
47735
47736 * include/grub/util/misc.h: Include unistd.h. This is required for
47737 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
47738 D. Eades III <hde@foobar-qux.org>.
47739
47740 * configure.ac (AC_GNU_SOURCE): Added.
47741 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
47742 type.
47743
fd39d4da 477442006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
47745
47746 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
47747 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
47748
b786f3b5 477492006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
47750
47751 * include/grub/types.h (grub_host_addr_t): Rename to
47752 grub_target_addr_t.
47753 (grub_host_off_t): Rename to grub_target_off_t.
47754 (grub_host_size_t): Rename to grub_target_size_t.
47755 (grub_host_ssize_t): Rename to grub_target_ssize_t.
47756 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
47757
47758 * include/grub/kernel.h (struct grub_module_header): Change type
47759 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
47760 (grub_module_info): Likewise.
f19dbdb7 47761
051988bb 477622006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
47763
47764 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
47765 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
47766 Velazquez <jesus.velazquez@gmail.com>.
47767
deae281b 477682006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
47769
47770 Count partitions from 1 instead of 0 in the string representation
47771 of partitions. Still use 0-based internally.
f19dbdb7 47772
deae281b 47773 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
47774 (sun_partition_map_iterate): Use grub_partition_t instead of
47775 struct grub_partition *. Cast DESC->START_CYLINDER to
47776 grub_uint64_t after converting the endian.
47777 (sun_partition_map_probe): Subtract 1 for PARTNUM.
47778 (sun_partition_map_get_name): Add 1 to P->INDEX.
47779
47780 * partmap/pc.c (grub_partition_parse): Subtract 1 for
47781 PCDATA->DOS_PART.
47782 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
47783
47784 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
47785 zero instead of one.
47786 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
47787 (gpt_partition_map_get_name): Add 1 into P->INDEX.
47788
47789 * partmap/apple.c (apple_partition_map_iterate): Change the type
47790 of POS to unsigned.
47791 (apple_partition_map_probe): Subtract 1 for PARTNUM.
47792 (apple_partition_map_get_name): Add 1 into P->INDEX.
47793
47794 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
47795 of POS to unsigned.
47796 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
47797 calculate the offset of a partition.
47798 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
47799 (amiga_partition_map_get_name): Add 1 into P->INDEX.
47800
47801 * partmap/acorn.c (acorn_partition_map_find): Change the type of
47802 SECTOR to grub_disk_addr_t.
47803 (acorn_partition_map_iterate): Likewise.
47804 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
47805 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
47806 top.
47807 (acorn_partition_map_get_name): Add 1 into P->INDEX.
47808
47809 * kern/i386/pc/init.c (make_install_device): Add 1 into
47810 GRUB_INSTALL_DOS_PART.
47811
47812 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
47813 conditional.
47814
524a1e6a 478152006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
47816
47817 Clean up the code to support 64-bit addressing in disks and
47818 files. This change is not enough for filesystems yet.
f19dbdb7 47819
524a1e6a 47820 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
47821 type of "start" to grub_uint64_t.
47822 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
47823 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
47824 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
47825 convert addresses.
47826
47827 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
47828 to grub_disk_addr_t.
47829
47830 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
47831 string.
47832
47833 * partmap/pc.c (pc_partition_map_iterate): Likewise.
47834
47835 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
47836 to char *.
47837
47838 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
47839
47840 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
47841
47842 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
47843
47844 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
47845 to grub_off_t, to detect an error from grub_file_seek.
47846 (grub_multiboot_load_elf32): Likewise.
47847
47848 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
47849 maximum unsigned long value when an overflow is detected.
47850 (grub_strtoull): New function.
47851 (grub_divmod64): Likewise.
47852 (grub_lltoa): use grub_divmod64.
47853
47854 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
47855 grub_disk_addr_t.
47856 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
47857 the pointer to next character. Use grub_strtoull instead of
47858 grub_strtoul.
47859 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
47860 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
47861 respectively.
47862
fe6b695a 47863 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
524a1e6a 47864 return value is signed.
47865 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
47866 test if OFFSET is less than zero, as OFFSET is unsigned now.
47867
47868 * kern/disk.c (struct grub_disk_cache): Change the type of
47869 "sector" to grub_disk_addr_t.
47870 (grub_disk_cache_get_index): Change the type of SECTOR to
47871 grub_disk_addr_t. Calculate the hash with SECTOR casted to
47872 unsigned after shifting.
47873 (grub_disk_cache_invalidate): Change the type of SECTOR to
47874 grub_disk_addr_t.
47875 (grub_disk_cache_unlock): Likewise.
47876 (grub_disk_cache_store): Likewise.
47877 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
47878 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
47879 grub_disk_addr_t and grub_uint64_t, respectively.
47880 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
47881 body, as the value of OFFSET is tweaked by
47882 grub_disk_check_range. Change the types of START_SECTOR, LEN and
47883 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
47884 respectively.
47885 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
47886 body, as the value of OFFSET is tweaked by
47887 grub_disk_check_range. Change the types of LEN and N to
47888 grub_size_t.
47889
47890 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
47891 and "saved_offset" to grub_off_t.
47892 (test_header): Cast BUF to char *.
47893 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
47894 to char *.
47895 (grub_gzio_read): Change the types of OFFSET and SIZE to
47896 grub_off_t and grub_size_t, respectively.
47897
47898 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
47899 Removed.
47900 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
47901 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
47902 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
47903 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
47904 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
47905
47906 * include/grub/types.h (grub_off_t): Unconditionally set to
47907 grub_uint64_t.
47908 (grub_disk_addr_t): Changed to grub_uint64_t.
47909
47910 * include/grub/partition.h (struct grub_partition): Change the
47911 types of "start", "len" and "offset" to grub_disk_addr_t,
47912 grub_uint64_t and grub_disk_addr_t, respectively.
47913 (grub_partition_get_start): Return grub_disk_addr_t.
47914 (grub_partition_get_len): Return grub_uint64_t.
47915
47916 * include/grub/misc.h (grub_strtoull): New prototype.
47917 (grub_divmod64): Likewise.
47918
47919 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
47920 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
47921 grub_off_t, respectively.
47922 All callers and references changed.
47923
47924 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
47925 grub_size_t in "read".
47926 All callers and references changed.
47927
47928 * include/grub/file.h (struct grub_file): Change the types of
47929 "offset" and "size" to grub_off_t and grub_off_t,
47930 respectively. Change the type of SECTOR to grub_disk_addr_t in
47931 "read_hook".
47932 (grub_file_read): Change the type of LEN to grub_size_t.
47933 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
47934 grub_off_t.
47935 (grub_file_size): Return grub_off_t.
47936 (grub_file_tell): Likewise.
47937 All callers and references changed.
47938
47939 * include/grub/disk.h (struct grub_disk_dev): Change the types of
47940 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
47941 "write".
47942 (struct grub_disk): Change the type of "total_sectors" to
47943 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
f19dbdb7 47944 "read_hook".
524a1e6a 47945 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
47946 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
47947 (grub_disk_write): Likewise.
47948 All callers and references changed.
47949
47950 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
47951 char * for grub_strncmp to silence gcc.
47952 (grub_iso9660_mount): Likewise.
47953 (grub_iso9660_mount): Likewise.
47954 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
47955 return statement.
47956 (grub_iso9660_iterate_dir): Likewise.
47957 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
47958
47959 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
47960 LEN to grub_disk_addr_t and grub_size_t, respectively.
47961
47962 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
47963
47964 * fs/jfs.c (grub_jfs_read_file): Likewise.
47965
47966 * fs/minix.c (grub_jfs_read_file): Likewise.
47967
47968 * fs/sfs.c (grub_jfs_read_file): Likewise.
47969
47970 * fs/ufs.c (grub_jfs_read_file): Likewise.
47971
47972 * fs/xfs.c (grub_jfs_read_file): Likewise.
47973
47974 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
47975 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
47976 respectively.
47977
47978 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
47979 BLKNR to -1 instead of returning GRUB_ERRNO.
47980 (grub_ext2_read_file): Change the types of SECTOR and
47981 LEN to grub_disk_addr_t and grub_size_t, respectively.
47982
47983 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
47984 LEN to grub_disk_addr_t and grub_size_t, respectively.
47985
47986 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
47987 grub_file_read.
47988
47989 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
47990 string. Do not cast SECTOR explicitly.
47991
47992 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
47993 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
47994 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
47995 grub_disk_addr_t and grub_size_t, respectively. If the sector is
47996 over 2TB and LBA mode is not supported, raise an error.
47997 (get_safe_sectors): New function.
47998 (grub_biosdisk_read): Use get_safe_sectors.
47999 (grub_biosdisk_write): Likewise.
48000
48001 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
48002 (grub_efidisk_write): Likewise.
48003
48004 * disk/loopback.c (delete_loopback): Cosmetic changes.
48005 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
48006 correctly.
48007 (grub_loopback_open): Likewise.
48008 (grub_loopback_read): Likewise. Also, change the type of POS to
48009 grub_off_t, and fix the usage of grub_memset.
48010
48011 * commands/i386/pc/play.c: Include grub/machine/time.h.
48012
48013 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
48014 print FILE->SIZE.
48015
48016 * commands/configfile.c: Include grub/env.h.
48017
48018 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
48019 GRUB_ERRNO directly instead. Change the type of POS to
48020 grub_off_t. Follow the coding standard.
48021
48022 * commands/blocklist.c: Include grub/partition.h.
48023 (grub_cmd_blocklist): Return an error if the underlying device is
48024 not a disk. Take the starting sector of a partition into account,
48025 if a partition is used.
48026
48027 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
48028 a length field.
48029 (lba_mode): Support 64-bit addresses.
48030 (chs_mode): Likewise.
48031 (copy_buffer): Adapted to the new offsets of a length field and a
48032 segment field.
48033 (blocklist_default_start): Allocate 64-bit space.
48034
48035 * boot/i386/pc/boot.S (force_lba): Removed.
48036 (boot_drive): Moved to under KERNEL_SECTOR.
fe987087 48037 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
524a1e6a 48038 space.
48039 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
48040 is useless.
48041 (lba_mode): Refactored to support a 64-bit address. More size
48042 optimization.
48043 (setup_sectors): Likewise.
48044
53af98ad 480452006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
48046
48047 * DISTLIST: Added include/grub/i386/linux.h. Removed
48048 include/grub/i386/pc/linux.h
48049
48050 * configure.ac (AC_INIT): Bumped to 1.94.
48051
48052 * config.guess: Updated from gnulib.
48053 * config.sub: Likewise.
48054 * install-sh: Likewise.
48055 * mkinstalldirs: Likewise.
48056
b4c1940a 480572006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
48058
48059 * conf/common.rmk (grub_modules_init.lst): Depended on
48060 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
48061 MODSRCFILES.
48062
48063 * genmk.rb (PModule::rule): Reverted the previous change.
48064
cfca1cfd 480652006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
48066
48067 * conf/common.rmk (grub_modules_init.lst): Depends on
48068 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
48069 that the target does not exist before producing.
48070 (grub_modules_init.h): Remove the target before generating.
48071 (grub_emu_init.c): Likewise.
48072
48073 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
48074
aa6d7826 480752006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
48076
48077 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
48078 for the target-specific tests. Make sure that we also have the
48079 up-to-date target variables for those tests.
48080
26c607b9 480812006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
48082
48083 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
48084 (PModule::rule): Likewise.
48085
0162321a 480862006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
48087
48088 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
48089 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
48090 target-specific flags should be prefixed.
48091 (PModule::rule): Likewise.
48092
6c826348 480932006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
48094
48095 * configure.ac (CMP): Check if cmp is available explicitly.
48096
b977bf01 480972006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
48098
48099 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
48100 (target_cpu): New variable.
48101 (pkglibdir): Use target_cpu instead of host_cpu.
f19dbdb7 48102
b977bf01 48103 * util/i386/pc/grub-install.in (host_cpu): Removed.
48104 (target_cpu): New variable.
48105 (pkglibdir): Use target_cpu instead of host_cpu.
48106
48107 * util/genmoddep.c: Removed.
f19dbdb7 48108
b977bf01 48109 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
48110 instead of GRUB_HOST_SIZEOF_VOID_P.
48111 * kern/dl.c: Likewise.
48112
48113 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
48114 ...
48115 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
48116 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
48117 (GRUB_TARGET_SIZEOF_LONG): ... this.
48118 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
48119 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
48120 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
48121 to ...
48122 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
48123 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
48124 (GRUB_TARGET_SIZEOF_LONG): ... this.
48125 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
48126 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
48127 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
48128 to ...
48129 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
48130 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
48131 (GRUB_TARGET_SIZEOF_LONG): ... this.
48132 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
48133 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
48134
48135 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
48136 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
48137 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
48138 instead of GRUB_HOST_SIZEOF_LONG.
48139 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
48140 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
48141 GRUB_CPU_WORDS_BIGENDIAN.
48142 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
48143 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
48144 grub_host_ssize_t.
48145
48146 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
48147 (genmoddep_SOURCES): Likewise.
48148 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
48149 (genmoddep_SOURCES): Likewise.
48150 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
48151 (genmoddep_SOURCES): Likewise.
48152 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
48153 Likewise.
48154 (genmoddep_SOURCES): Likewise.
48155
48156 * genmoddep.awk: New file.
48157
48158 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
48159 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
48160 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
48161 (PModule::rule): Likewise.
48162 (Program::rule): Likewise.
48163 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
48164 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
48165 respectively.
48166
48167 * configure.ac: Rewritten intensively to use host and target
48168 instead of build and host, respectively.
48169
48170 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
48171 (host_cpu): Removed.
48172 (target_cpu): New variable.
48173 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
48174 (BUILD_CC): Removed.
48175 (BUILD_CFLAGS): Likewise.
48176 (BUILD_CPPFLAGS): Likewise.
48177 (TARGET_CC): New variable.
48178 (TARGET_CFLAGS): Likewise.
48179 (TARGET_CPPFLAGS): Likewise.
48180 (TARGET_LDFLAGS): Likewise.
48181 (AWK): Likewise.
48182 (include): Use target_cpu instead of host_cpu.
48183 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
f19dbdb7 48184
b977bf01 48185 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
48186
f09771a1 481872006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
48188
48189 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
48190 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
48191 field 'false' to 'exec_on_false'.
48192 (grub_script_create_cmdif): Renamed argument names to reflect above
48193 changes.
48194
48195 * normal/execute.c (grub_script_execute_cmdif): Likewise.
48196
48197 * normal/script.c (grub_script_create_cmdif): Likewise.
48198
118f4fb3 481992006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
48200
48201 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
48202 top.
48203 (grub_hfsplus_btree_recptr): Likewise.
48204 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
48205 FILEBLOCK both to pass a block number and store next block
48206 number.
48207 (grub_hfsplus_read_block): Rewritten heavily to support an extent
48208 overflow file correctly. Specify errors appropriately, because
48209 fshelp expects that GRUB_ERRNO is set when fails. Reuse
48210 grub_hfsplus_btree_recptr to get the pointer to a found key.
48211 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
48212 is found.
48213
48214 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
48215 linux.mod.
48216 (_linux_mod_SOURCES): New variable.
48217 (_linux_mod_CFLAGS): Likewise.
48218 (_linux_mod_LDFLAGS): Likewise.
48219 (linux_mod_SOURCES): Likewise.
48220 (linux_mod_CFLAGS): Likewise.
48221 (linux_mod_LDFLAGS): Likewise.
48222
48223 * DISTLIST: Added loader/i386/efi/linux.c,
48224 loader/i386/efi/linux_normal.c and
48225 include/grub/i386/efi/loader.h.
48226
48227 * loader/i386/efi/linux.c: New file.
48228 * loader/i386/efi/linux_normal.c: Likewise.
48229 * include/grub/i386/efi/loader.h: Likewise.
48230
89a7d726 482312006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
48232
48233 * commands/blocklist.c: New file.
48234
48235 * DISTLIST: Added commands/blocklist.c.
48236
48237 * term/efi/console.c (grub_console_highlight_color): Use a lighter
43b553ad 48238 color for the background, and a darker color for the foreground.
89a7d726 48239 (grub_console_checkkey): Return READ_KEY.
48240 (grub_console_cls): Set the background to
48241 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
48242
48243 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
48244
48245 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
48246 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
48247
48248 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
48249 prototype.
48250
48251 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
48252 BG. The spec is wrong again.
48253
48254 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
48255 prototype.
48256 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
48257
48258 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
48259 commands/blocklist.c.
48260 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
f19dbdb7 48261
89a7d726 48262 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
48263 (blocklist_mod_SOURCES): New variable.
48264 (blocklist_mod_CFLAGS): Likewise.
48265 (blocklist_mod_LDFLAGS): Likewise.
48266
75c8f258 482672006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
48268
48269 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
48270 duplication.
48271 (lba_mode): Use %eax more intensively to reduce the code size.
48272
da2eb181 482732006-05-20 Marco Gerards <marco@gnu.org>
48274
48275 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
48276
48277 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
48278 for `menuentry'.
48279 (script): Accept leading newlines.
48280 (newlines): New rule to describe 0 or more newlines.
48281 (commands): Accept `command' with trailing newline. Fixed the
48282 order in which arguments were passed to `grub_script_add_cmd'.
48283 Accept commands separated by newlines.
48284 (function): Changed to accept newlines.
48285 (menuentry) Rewritten.
48286
48287 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
48288 front of the list, instead of to the end.
48289
577b4050 482902006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
48291
48292 * util/i386/pc/grub-install.in (bindir): New variable.
48293 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
48294 Shaver <lbgwjl@gmail.com>.
48295
0d6e1189 482962006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
48297
48298 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
48299 grub/machine/linux.h
48300 * loader/i386/pc/linux.c: Likewise.
48301
48302 * include/grub/i386/pc/linux.h: Moved to ...
48303 * include/grub/i386/linux.h: ... here.
48304
48305 * include/grub/i386/linux.h (struct linux_kernel_params): New
48306 struct.
f19dbdb7 48307
31b86e9f 483082006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
48309
48310 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
48311 checking.
48312 (grub_video_vbe_blit_glyph): Likewise.
48313 (grub_video_vbe_blit_bitmap): Likewise.
48314 (grub_video_vbe_blit_render_target): Likewise.
48315
83b984de 483162006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
48317
48318 * configure.ac (--with-platform): Properly quote the square
48319 brackets.
48320
5f0413bd 483212006-05-08 Marco Gerards <marco@gnu.org>
48322
48323 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
48324 this...
48325 (kernel_elf_HEADERS): ...to this. Updated all users.
48326 (grubof_symlist.c): Renamed from this...
48327 (kernel_elf_symlist.c): ...to this. Updated all users.
48328 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
48329 (grubof_SOURCES): Renamed from this...
48330 (kernel_elf_SOURCES): ...to this.
48331 (grubof_HEADERS): Renamed from this...
48332 (kernel_elf_HEADERS): ...to this.
48333 (grubof_CFLAGS): Renamed from this...
48334 (kernel_elf_CFLAGS): ...to this.
48335 (grubof_ASFLAGS): Renamed from this...
48336 (kernel_elf_ASFLAGS): ...to this.
48337 (grubof_LDFLAGS): Renamed from this...
48338 (kernel_elf_LDFLAGS): ...to this.
48339
48340 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
48341 this...
48342 (kernel_elf_HEADERS): ...to this. Updated all users.
48343 (grubof_symlist.c): Renamed from this...
48344 (kernel_elf_symlist.c): ...to this. Updated all users.
48345 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
48346 (grubof_SOURCES): Renamed from this...
48347 (kernel_elf_SOURCES): ...to this.
48348 (grubof_HEADERS): Renamed from this...
48349 (kernel_elf_HEADERS): ...to this.
48350 (grubof_CFLAGS): Renamed from this...
48351 (kernel_elf_CFLAGS): ...to this.
48352 (grubof_ASFLAGS): Renamed from this...
48353 (kernel_elf_ASFLAGS): ...to this.
48354 (grubof_LDFLAGS): Renamed from this...
48355 (kernel_elf_LDFLAGS): ...to this.
48356
48357 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
48358 `kernel.elf' instead of `grubof'.
48359
05568c2e 483602006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
48361
48362 Add --with-platform to configure. Use pkglibdir instead of
48363 pkgdatadir. This is reported by Roger Leigh.
48364
48365 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
48366 (host_vendor): Likewise.
48367 (host_os): Likewise.
48368 (pkgdatadir): Likewise.
48369 (platform): New variable.
48370 (pkglibdir): Likewise.
48371 Use PKGLIBDIR instead of PKGDATADIR.
f19dbdb7 48372
05568c2e 48373 * util/i386/pc/grub-install.in (datadir): Removed.
48374 (host_vendor): Likewise.
48375 (host_os): Likewise.
48376 (pkgdatadir): Likewise.
48377 (platform): New variable.
48378 (pkglibdir): Likewise.
48379 Use PKGLIBDIR instead of PKGDATADIR.
48380
48381 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
48382 instead of GRUB_DATADIR.
48383 (main): Likewise.
48384 * util/i386/pc/grub-mkimage.c (usage): Likewise.
48385 (main): Likewise.
48386 * util/i386/efi/grub-mkimage.c (usage): Likewise.
48387 (main): Likewise.
48388
48389 * configure.ac (--with-platform): New option.
48390 Use PLATFORM instead of HOST_VENDOR to specify a platform.
48391
48392 * Makefile.in: Include a makefile based on PLATFORM instead of
48393 HOST_VENDOR.
48394 (pkgdatadir): Not appended by the machine type.
48395 (pkglibdir): Appended by the machine type.
48396 (host_vendor): Removed.
48397 (platform): New variable.
48398 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
48399 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
48400 (uninstall): Likewise.
48401
4e93851c 484022006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
48403
48404 Use the environment context in the menu. Remove the commands
48405 "default" and "timeout", and use variables instead.
f19dbdb7 48406
4e93851c 48407 * normal/menu.c: Include grub/env.h.
48408 (print_entry): Cast TITLE to silence gcc.
48409 (get_timeout): New function.
48410 (set_timeout): Likewise.
48411 (get_entry_number): Likewise.
48412 (run_menu): Use a default entry, a fallback entry and a timeout
48413 in the environment variables "default", "fallback" and
48414 "timeout". Also, tweak the default entry if it is not within the
48415 current menu entries.
48416 (grub_menu_run): Use a fallback entry in the environment variable
48417 "fallback".
48418
48419 * normal/main.c (read_config_file): Do not initialize
48420 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
48421 NEWMENU->TIMEOUT.
48422 (grub_normal_execute): Use a data slot to store the menu.
48423
48424 * include/grub/normal.h (struct grub_menu): Removed default_entry,
48425 fallback_entry and timeout.
48426 (struct grub_menu_list): Removed.
48427 (grub_menu_list_t): Likewise.
48428 (struct grub_context): Likewise.
48429 (grub_context_t): Likewise.
48430 (grub_context_get): Likewise.
48431 (grub_context_get_current_menu): Likewise.
48432 (grub_context_push_menu): Likewise.
48433 (grub_context_pop_menu): Likewise.
48434 (grub_default_init): Likewise.
48435 (grub_default_fini): Likewise.
48436 (grub_timeout_init): Likewise.
48437 (grub_timeout_fini): Likewise.
48438
48439 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
48440 and timeout.mod.
48441 (normal_mod_SOURCES): Removed normal/context.c.
48442
48443 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
48444 commands/default.c, commands/timeout.c and normal/context.c.
48445 (normal_mod_SOURCES): Removed normal/context.c.
48446
48447 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
48448 commands/timeout.c and normal/context.c.
48449 (normal_mod_SOURCES): Removed normal/context.c.
48450
48451 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
48452 commands/default.c, commands/timeout.c and normal/context.c.
48453 (normal_mod_SOURCES): Removed normal/context.c.
48454
48455 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
48456 timeout.mod.
48457 (default_mod_SOURCES): Removed.
48458 (default_mod_CFLAGS): Likewise.
48459 (default_mod_LDFLAGS): Likewise.
48460 (timeout_mod_SOURCES): Removed.
48461 (timeout_mod_CFLAGS): Likewise.
48462 (timeout_mod_LDFLAGS): Likewise.
48463
48464 * DISTLIST: Removed commands/default.c, commands/timeout.c and
48465 normal/context.c.
48466
48467 * commands/default.c: Removed.
48468 * commands/timeout.c: Likewise.
48469 * normal/context.c: Likewise.
48470
1eb9cc1d 484712006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
48472
48473 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
48474
385bd9c1 484752006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
48476
48477 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
48478 "next" to "prev" for readability.
48479 (struct grub_env_sorted_var): New struct.
48480 (grub_env_context): Renamed to ...
48481 (initial_context): ... this.
48482 (grub_env_var_context): Renamed to ...
48483 (current_context): ... this.
48484 (grub_env_find): Look only at CURRENT_CONTEXT.
48485 (grub_env_context_open): Rewritten to copy exported variables from
48486 previous context.
48487 (grub_env_context_close): Rewritten according to the new
48488 scheme. Also, add an assertion to prevent the initial context from
48489 removed.
48490 (grub_env_insert): Removed the code for the sorted list.
48491 (grub_env_remove): Likewise.
48492 (grub_env_export): Simply mark the variable with
48493 GRUB_ENV_VAR_GLOBAL.
48494 (grub_env_set): A cosmetic change for naming consistency.
48495 (grub_env_get): Likewise.
48496 (grub_env_unset): Likewise.
48497 (grub_env_iterate): Rewritten to sort variables within this
48498 function.
48499 (grub_register_variable_hook): Fixed for naming consistency. Call
48500 grub_env_find again, only if NAME is not found at the first time.
48501 (mangle_data_slot_name): New function.
48502 (grub_env_set_data_slot): Likewise.
48503 (grub_env_get_data_slot): Likewise.
48504 (grub_env_unset_data_slot): Likewise.
48505
48506 * include/grub/env.h (grub_env_var_type): New enum.
48507 (GRUB_ENV_VAR_LOCAL): New constant.
48508 (GRUB_ENV_VAR_GLOBAL): Likewise.
48509 (GRUB_ENV_VAR_DATA): Likewise.
48510 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
48511 "type".
48512 (grub_env_set): Replace VAR with NAME for consistency.
48513 (grub_register_variable_hook): Likewise.
48514 (grub_env_export): Specify the name of the argument.
48515 (grub_env_set_data_slot): New prototype.
48516 (grub_env_get_data_slot): Likewise.
48517 (grub_env_unset_data_slot): Likewise.
48518
7f362539 485192006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
48520
48521 Extend the loader so that GRUB can accept a loader which comes
48522 back to GRUB when a loaded image exits. Also, this change adds
48523 support for a chainloader on EFI.
f19dbdb7 48524
7f362539 48525 * term/efi/console.c: Include grub/misc.h.
48526 (grub_console_checkkey): Display a scan code on the top for
48527 debugging. This will be removed once the EFI port gets stable.
48528 Correct the scan code mapping.
48529
48530 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
48531 allocate memory from larger regions, in order to reduce the number
48532 of allocated regions. Otherwise, the MacOSX loader panics.
48533 (filter_memory_map): Avoid less than 1MB for compatibility with
48534 other loaders.
48535 (add_memory_regions): Allocate from the tail of a region, if
48536 possible, to avoid allocating a region near to 1MB, for the MacOSX
48537 loader.
48538
48539 * kern/efi/init.c (grub_efi_set_prefix): Specify
48540 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
48541
48542 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
48543 argument IMAGE_HANDLE and specify it to get a loaded image.
48544 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
48545 grub_efi_get_loaded_image.
fe6b695a 48546 (grub_efi_get_filename): Divide the length by the size of
7f362539 48547 grub_efi_char16_t.
48548 (grub_efi_get_device_path): New function.
48549 (grub_efi_print_device_path): Print End Device Path nodes. Divide
48550 the length by the size of grub_efi_char16_t for a file path device
48551 path node.
48552
48553 * kern/loader.c (grub_loader_noreturn): New variable.
48554 (grub_loader_set): Accept a new argument NORETURN. Set
48555 GRUB_LOADER_NORETURN to NORETURN.
48556 All callers changed.
48557 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
48558 grub_machine_fini.
48559
48560 * include/grub/efi/efi.h (grub_efi_get_device_path): New
48561 prototype.
48562 (grub_efi_get_loaded_image): Take an argument to specify an image
48563 handle.
48564
48565 * include/grub/loader.h (grub_loader_set): Added one more argument
48566 NORETURN.
48567
48568 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
48569 instead of grub_efi_open_protocol.
48570 (grub_efidisk_get_device_name): Likewise.
48571 (grub_efidisk_close): Print a newline.
48572 (grub_efidisk_get_device_handle): Fixed to use
48573 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
48574 GRUB_EFI_DEVICE_PATH_TYPE.
48575
48576 * disk/efi/efidisk.c (device_path_guid): Moved to ...
48577 * kern/efi/efi.c (device_path_guid): ... here.
48578
48579 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
48580 chain.mod.
48581 (kernel_mod_HEADERS): Added efi/disk.h.
48582 (_chain_mod_SOURCES): New variable.
48583 (_chain_mod_CFLAGS): Likewise.
48584 (_chain_mod_LDFLAGS): Likewise.
48585 (chain_mod_SOURCES): Likewise.
48586 (chain_mod_CFLAGS): Likewise.
48587 (chain_mod_LDFLAGS): Likewise.
48588
48589 * DISTLIST: Added include/grub/efi/chainloader.h,
48590 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
48591
48592 * include/grub/efi/chainloader.h: New file.
48593 * loader/efi/chainloader.c: Likewise.
48594 * loader/efi/chainloader_normal.c: Likewise.
48595
c0111d6e 485962006-04-30 Marco Gerards <marco@gnu.org>
48597
48598 * commands/configfile.c (grub_cmd_source): New function.
48599 (GRUB_MOD_INIT): Register the commands `source' and `.'.
48600 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
48601
df5341da 486022006-04-30 Marco Gerards <marco@gnu.org>
48603
48604 * normal/execute.c (grub_script_execute_cmd): Change the return
48605 type to `grub_err_t'. Correctly return the error.
48606 (grub_script_execute_cmdline): In case a command line is not a
48607 command or a function, try to interpret it as an assignment.
48608
f85934bd 486092006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
48610
48611 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
48612 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
48613 skip a node whose name is obviously invalid as UTF-16,
48614 i.e. contains a NUL character. Stop the iteration when the last
48615 directory entry is found. Instead of using the return value of
48616 grub_hfsplus_btree_iterate_node, store the value in RET and use
48617 it, because the iterator can be stopped by the last directory
48618 entry.
48619
8f8a2cf8 486202006-04-30 Marco Gerards <marco@gnu.org>
48621
48622 * include/grub/env.h (grub_env_export): New prototype. Reported
48623 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
48624
a27e84ce 486252006-04-30 Marco Gerards <marco@gnu.org>
48626
48627 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
48628 size of the extents in a catalog file record.
48629
eaef0553 486302006-04-29 Marco Gerards <marco@gnu.org>
48631
48632 * commands/configfile.c (grub_cmd_configfile): Execute the
48633 configfile within its own context.
48634
48635 * include/grub/env.h (grub_env_context_open): New prototype.
48636 (grub_env_context_close): Likewise.
48637
48638 * kern/env.c (grub_env): Removed.
48639 (grub_env_sorted): Likewise.
48640 (grub_env_context): New variable.
48641 (grub_env_var_context): Likewise.
48642 (grub_env_find): Search both the active context and the global
48643 context.
48644 (grub_env_context_open): New function.
48645 (grub_env_context_close): Likewise.
48646 (grub_env_insert): Likewise.
48647 (grub_env_remove): Likewise.
48648 (grub_env_export): Likewise.
48649 (grub_env_set): Changed to use helper functions to avoid code
48650 duplication.
48651 (grub_env_iterate): Rewritten so both the current context and the
48652 global context are being used.
48653
48654 * normal/command.c (export_command): New function.
48655 (grub_command_init): Register the `export' function.
48656
7b455f4d 486572006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
48658
48659 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
48660 explicitly to suppress gcc's warnings.
48661 * fs/fat.c (grub_fat_find_dir): Likewise.
48662 (grub_fat_label): Likewise.
48663 * fs/xfs.c (grub_xfs_read_inode): Likewise.
48664 (grub_xfs_mount): Likewise.
48665 (grub_xfs_label): Likewise.
48666 * fs/affs.c (grub_affs_mount): Likewise.
48667 (grub_affs_label): Likewise.
48668 (grub_affs_iterate_dir): Likewise.
48669 * fs/sfs.c (grub_sfs_mount): Likewise.
48670 (grub_sfs_iterate_dir): Likewise.
48671 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
48672 * fs/hfs.c (grub_hfs_mount): Likewise.
48673 (grub_hfs_cmp_catkeys): Likewise.
48674 (grub_hfs_find_dir): Likewise.
48675 (grub_hfs_dir): Likewise.
48676 (grub_hfs_label): Likewise.
48677 * fs/jfs.c (grub_jfs_mount): Likewise.
48678 (grub_jfs_opendir): Likewise.
48679 (grub_jfs_getent): Likewise.
48680 (grub_jfs_lookup_symlink): Likewise.
48681 (grub_jfs_label): Likewise.
48682 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
48683 (grub_hfsplus_iterate_dir): Likewise.
48684 (grub_hfsplus_btree_iterate_node): Made static.
48685
48686 * util/grub-emu.c (prefix): New variable.
48687 (grub_machine_set_prefix): New function.
48688 (main): Do not set the environment variable "prefix" here. Only
48689 set PREFIX, which is used later by grub_machine_set_prefix.
48690
48691 * include/grub/video.h: Do not include grub/symbol.h.
48692 (grub_video_register): Not exported. This symbol is not defined in
48693 the kernel.
48694 (grub_video_unregister): Likewise.
48695 (grub_video_iterate): Likewise.
48696 (grub_video_setup): Likewise.
48697 (grub_video_restore): Likewise.
48698 (grub_video_get_info): Likewise.
48699 (grub_video_get_blit_format): Likewise.
48700 (grub_video_set_palette): Likewise.
48701 (grub_video_get_palette): Likewise.
48702 (grub_video_set_viewport): Likewise.
48703 (grub_video_get_viewport): Likewise.
48704 (grub_video_map_color): Likewise.
48705 (grub_video_map_rgb): Likewise.
48706 (grub_video_map_rgba): Likewise.
48707 (grub_video_fill_rect): Likewise.
48708 (grub_video_blit_glyph): Likewise.
48709 (grub_video_blit_bitmap): Likewise.
48710 (grub_video_blit_render_target): Likewise.
48711 (grub_video_scroll): Likewise.
48712 (grub_video_swap_buffers): Likewise.
48713 (grub_video_create_render_target): Likewise.
48714 (grub_video_delete_render_target): Likewise.
48715 (grub_video_set_active_render_target): Likewise.
48716
48717 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
48718 Undefined.
48719 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
48720
48721 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
48722 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
48723 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
48724 instead of $(srcdir)/genkernsyms.sh.
48725
48726 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
48727 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
48728 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
48729 instead of $(srcdir)/genkernsyms.sh.
48730
48731 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
48732 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
48733 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
48734 instead of $(srcdir)/genkernsyms.sh.
48735
48736 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
48737 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
48738 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
48739 instead of $(srcdir)/genkernsyms.sh.
48740
48741 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
48742 genkernsyms.sh.
48743
48744 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
48745 genkernsyms.sh.
48746 (gensymlist.sh): New target.
48747 (genkernsyms.sh): Likewise.
48748
48749 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
48750 genkernsyms.sh.in and gensymlist.sh.in.
48751
48752 * genkernsyms.sh: Removed.
48753 * gensymlist.sh: Likewise.
f19dbdb7 48754
7b455f4d 48755 * genkernsyms.sh.in: New file.
48756 * gensymlist.sh.in: Likewise.
48757
1885bb27 487582006-04-25 Hollis Blanchard <hollis@penguinppc.org>
48759
48760 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
48761 clobber "prefix", since we may have already set it manually.
48762
71538dff 487632006-04-25 Hollis Blanchard <hollis@penguinppc.org>
48764
48765 * kern/misc.c (abort): New alias for grub_abort.
48766
2965c7cc 487672006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
48768
48769 A new machine-specific function "grub_machine_set_prefix" is
48770 defined. This is called after loading modules, so that a prefix
48771 initialization can use modules. Also, this change adds an
48772 intensive debugging feature for the memory manager via the
48773 configure option "--enable-mm-debug".
f19dbdb7 48774
2965c7cc 48775 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
48776 PART.LEN.
48777
48778 * kern/sparc64/ieee1275/init.c (abort): Removed.
48779 (grub_stop): Likewise.
48780 (grub_exit): New function.
48781 (grub_set_prefix): Renamed to ...
48782 (grub_machine_set_prefix): ... this.
48783 (grub_machine_init): Do not call grub_set_prefix.
48784
48785 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
48786 (grub_machine_set_prefix): ... this.
48787 (grub_machine_init): Do not call grub_set_prefix.
48788
48789 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
48790 (grub_machine_init): Do not set the prefix here.
48791
48792 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
48793
48794 * kern/efi/init.c: Include grub/mm.h.
48795 (grub_efi_set_prefix): New function.
48796
48797 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
48798 (grub_efi_get_filename): New function.
48799 (grub_print_device_path): Renamed to ...
48800 (grub_efi_print_device_path): ... this.
48801
48802 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
48803 [MM_DEBUG] (grub_realloc): Likewise.
48804 [MM_DEBUG] (grub_free): Likewise.
48805 [MM_DEBUG] (grub_memalign): Likewise.
48806 [MM_DEBUG] (grub_mm_debug): New variable.
48807 [MM_DEBUG] (grub_debug_malloc): New function.
48808 [MM_DEBUG] (grub_debug_free): New function.
48809 [MM_DEBUG] (grub_debug_realloc): New function.
48810 [MM_DEBUG] (grub_debug_memalign): New function.
48811
48812 * kern/misc.c (grub_abort): Print a newline to distinguish
48813 the message.
48814
48815 * kern/main.c (grub_main): Call grub_machine_set_prefix and
48816 grub_set_root_dev after loading modules. This is necessary when
48817 setting a prefix depends on modules.
48818
48819 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
48820 (grub_efi_print_device_path): ... this.
48821 (grub_efi_get_filename): New prototype.
48822 (grub_efi_set_prefix): Likewise.
48823
48824 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
48825 and grub/disk.h.
48826 (grub_efidisk_get_device_handle): New prototype.
48827 (grub_efidisk_get_device_name): Likewise.
48828
48829 * include/grub/mm.h: Include config.h.
48830 (MM_DEBUG): Removed.
48831 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
48832 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
48833 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
48834 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
48835 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
48836 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
48837 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
48838 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
48839 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
48840
48841 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
48842
48843 * disk/efi/efidisk.c: Include grub/partition.h.
48844 (iterate_child_devices): New function.
48845 (add_device): First, compare only last device path nodes, so that
48846 devices are sorted by the types.
48847 (grub_efidisk_get_device_handle): New function.
48848 (grub_efidisk_get_device_name): Likewise.
48849
48850 * configure.ac (--enable-mm-debug): New option to enable the
48851 memory manager debugging feature. This makes the binary much
48852 bigger, so is disabled by default.
48853
9cacaa17 488542006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
48855
48856 Use grub_abort instead of grub_stop, and grub_exit must be
48857 define in each architecture now. Also, this change adds support
48858 for EFI disks.
f19dbdb7 48859
9cacaa17 48860 * util/i386/pc/grub-probefs.c: Include grub/term.h.
48861 (grub_getkey): New function.
48862 (grub_term_get_current): Likewise.
48863
48864 * util/i386/pc/grub-setup.c: Include grub/term.h.
48865 (grub_getkey): New function.
48866 (grub_term_get_current): Likewise.
48867
48868 * util/misc.c (grub_stop): Renamed to ...
48869 (grub_exit): ... this.
48870
48871 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
48872 (grub_exit): ... this.
48873 (grub_machine_init): Use grub_abort instead of abort.
48874 (grub_stop): Removed.
48875
48876 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
48877 abort.
48878
48879 * kern/i386/pc/startup.S (grub_exit): New function.
48880 (cold_reboot): New label.
48881
48882 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
48883 (grub_efi_init): Call grub_efidisk_init.
48884 (grub_efi_fini): Call grub_efidisk_fini.
48885
48886 * kern/efi/efi.c: Include grub/mm.h.
48887 (grub_efi_console_control_guid): Renamed to ...
48888 (console_control_guid): ... this.
48889 (grub_efi_loaded_image_guid): Renamed to ...
48890 (loaded_image_guid): ... this.
48891 (grub_efi_locate_handle): New function.
48892 (grub_efi_open_protocol): Likewise.
48893 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
48894 GRUB_EFI_CONSOLE_CONTROL_GUID.
48895 (grub_efi_exit): Removed.
48896 (grub_stop): Likewise.
48897 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
48898 (grub_exit): New function.
48899 (grub_print_device_path): Likewise.
48900
48901 * kern/rescue.c (grub_rescue_cmd_exit): New function.
48902 (grub_enter_rescue_mode): Register "exit".
48903
48904 * kern/misc.c (grub_real_dprintf): A cosmetic change.
48905 (grub_abort): New function.
48906
48907 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
48908
48909 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
48910
48911 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
48912
48913 * include/grub/efi/efi.h (grub_efi_exit): Removed.
48914 (grub_print_device_path): New prototype.
48915 (grub_efi_locate_handle): Likewise.
48916 (grub_efi_open_protocol): Likewise.
48917
48918 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
48919 * disk/efi/efidisk.c: Likewise.
48920
48921 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
48922
48923 * include/grub/efi/console_control.h
48924 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
48925
48926 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
48927 last 8 bytes as an array.
48928 (GRUB_EFI_DISK_IO_GUID): New macro.
48929 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
48930 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
48931 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
48932 grub_uint8_t.
48933 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
48934 (struct grub_efi_device_path): Rename the member "sub_type" to
48935 "subtype".
48936 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
48937 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
48938 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
48939 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
48940 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
48941 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
48942 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
48943 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
48944 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
48945 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
48946 (struct grub_efi_pci_device_path): New structure.
48947 (grub_efi_pci_device_path_t): New type.
48948 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
48949 (struct grub_efi_pccard_device_path): New structure.
48950 (grub_efi_pccard_device_path_t): New type.
48951 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
48952 (struct grub_efi_memory_mapped_device_path): New structure.
48953 (grub_efi_memory_mapped_device_path_t): New type.
48954 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
48955 (struct grub_efi_vendor_device_path): New structure.
48956 (grub_efi_vendor_device_path_t): New type.
48957 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
48958 (struct grub_efi_controller_device_path): New structure.
48959 (grub_efi_controller_device_path_t): New type.
48960 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
48961 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
48962 (struct grub_efi_acpi_device_path): New structure.
48963 (grub_efi_acpi_device_path_t): New type.
48964 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
48965 (struct grub_efi_expanded_acpi_device_path): New structure.
48966 (grub_efi_expanded_acpi_device_path_t): New type.
48967 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
48968 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
48969 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
48970 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
48971 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
48972 (struct grub_efi_atapi_device_path): New structure.
48973 (grub_efi_atapi_device_path_t): New type.
48974 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
48975 (struct grub_efi_fibre_channel_device_path): New structure.
48976 (grub_efi_fibre_channel_device_path_t): New type.
48977 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
48978 (struct grub_efi_1394_device_path): New structure.
48979 (grub_efi_1394_device_path_t): New type.
48980 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
48981 (struct grub_efi_usb_device_path): New structure.
48982 (grub_efi_usb_device_path_t): New type.
48983 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
48984 (struct grub_efi_usb_class_device_path): New structure.
48985 (grub_efi_usb_class_device_path_t): New type.
48986 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
48987 (struct grub_efi_i2o_device_path): New structure.
48988 (grub_efi_i2o_device_path_t): New type.
48989 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
48990 (struct grub_efi_mac_address_device_path): New structure.
48991 (grub_efi_mac_address_device_path_t): New type.
48992 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
48993 (struct grub_efi_ipv4_device_path): New structure.
48994 (grub_efi_ipv4_device_path_t): New type.
48995 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
48996 (struct grub_efi_ipv6_device_path): New structure.
48997 (grub_efi_ipv6_device_path_t): New type.
48998 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
48999 (struct grub_efi_infiniband_device_path): New structure.
49000 (grub_efi_infiniband_device_path_t): New type.
49001 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
49002 (struct grub_efi_uart_device_path): New structure.
49003 (grub_efi_uart_device_path_t): New type.
49004 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
49005 (struct grub_efi_vendor_messaging_device_path): New structure.
49006 (grub_efi_vendor_messaging_device_path_t): New type.
49007 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
49008 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
49009 (struct grub_efi_hard_drive_device_path): New structure.
49010 (grub_efi_hard_drive_device_path_t): New type.
49011 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
49012 (struct grub_efi_cdrom_device_path): New structure.
49013 (grub_efi_cdrom_device_path_t): New type.
49014 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
49015 (struct grub_efi_vendor_media_device_path): New structure.
49016 (grub_efi_vendor_media_device_path_t): New type.
49017 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
49018 (struct grub_efi_file_path_device_path): New structure.
49019 (grub_efi_file_path_device_path_t): New type.
49020 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
49021 (struct grub_efi_protocol_device_path): New structure.
49022 (grub_efi_protocol_device_path_t): New type.
49023 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
49024 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
49025 (struct grub_efi_bios_device_path): New structure.
49026 (grub_efi_bios_device_path_t): New type.
49027 (struct grub_efi_disk_io): New structure.
49028 (grub_efi_disk_io_t): New type.
49029 (struct grub_efi_block_io_media): New structure.
49030 (grub_efi_block_io_media_t): New type.
49031 (struct grub_efi_block_io): New structure.
49032 (grub_efi_block_io_t): New type.
49033
49034 * include/grub/misc.h (grub_stop): Removed.
49035 (grub_exit): New prototype.
49036 (grub_abort): Likewise.
49037
49038 * include/grub/disk.h (enum grub_disk_dev_id): Added
49039 GRUB_DISK_DEVICE_EFIDISK_ID.
49040
49041 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
49042 disk/efi/efidisk.c.
49043 (kernel_syms.lst): Remove the target if an error occurs.
49044
49986a9f 490452006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
49046
49047 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
49048 as it was simply too buggy.
49049
970d3b8a 490502006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
49051
49052 * kern/misc.c (grub_lltoa): New function.
49053 (grub_vsprintf): Added support for the long long suffix,
49054 i.e. "ll".
49055
ff04ec24 490562006-04-20 Hollis Blanchard <hollis@penguinppc.org>
49057
49058 * Makefile.in (LDFLAGS): Add variable.
49059 (LD): Remove variable.
49060 * configure.ac: Add -m32 to LDFLAGS.
49061 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
49062 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
49063 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
49064 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
49065 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
49066 variables.
49067 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
49068 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
49069 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
49070
37e5e1a4 490712006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
49072
49073 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
49074 length for unknown glyph.
49075
c352d8dd 490762006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
49077
2eab1c0d 49078 Add support for pre-loaded modules into the EFI port.
f19dbdb7 49079
2eab1c0d 49080 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
49081 completely. Accept one more argument DIR. The caller has changed.
49082
49083 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
49084
49085 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
49086 (grub_efi_loaded_image_guid): New variable.
49087 (grub_efi_get_loaded_image): New function.
49088 (grub_arch_modules_addr): Likewise.
49089
49090 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
49091 prototype.
49092
49093 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
49094 (struct grub_efi_loaded_image): New structure.
49095 (grub_efi_loaded_image_t): New type.
49096
490972006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 49098
c352d8dd 49099 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
49100 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
49101 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
49102
6d01d6b4 491032006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
49104
49105 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
49106
976a4ea0 491072006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
49108
49109 * DISTLIST: Added include/grub/efi/console.h,
49110 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
49111 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
49112
49113 * include/grub/efi/console.h: New file.
49114 * include/grub/efi/time.h: Likewise.
49115 * include/grub/i386/efi/kernel.h: Likewise.
49116 * kern/efi/init.c: Likewise.
49117 * kern/efi/mm.c: Likewise.
49118 * term/efi/console.c: Likewise.
f19dbdb7 49119
976a4ea0 49120 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
49121 (grub_stop): Removed.
49122 (grub_get_rtc): Likewise.
49123 (grub_machine_init): Simply call grub_efi_init.
49124 (grub_machine_fini): Call grub_efi_fini.
49125
49126 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
49127 (grub_efi_output_string): Removed.
49128 (grub_efi_stall): New function.
49129 (grub_stop): Likewise.
49130 (grub_get_rtc): Likewise.
49131
49132 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
49133 (grub_efi_stall): New prototype.
49134 (grub_efi_allocate_pages): Likewise.
49135 (grub_efi_free_pages): Likewise.
49136 (grub_efi_get_memory_map): Likewise.
49137 (grub_efi_mm_init): Likewise.
49138 (grub_efi_mm_fini): Likewise.
49139 (grub_efi_init): Likewise.
49140 (grub_efi_fini): Likewise.
49141
49142 * include/grub/i386/efi/time.h: Do not include
49143 grub/symbol.h. Include grub/efi/time.h.
49144 (GRUB_TICKS_PER_SECOND): Removed.
49145 (grub_get_rtc): Likewise.
49146
49147 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
49148 Added padding. The EFI spec is buggy.
49149 (GRUB_EFI_BLACK): New macro.
49150 (GRUB_EFI_BLUE): Likewise.
49151 (GRUB_EFI_GREEN): Likewise.
49152 (GRUB_EFI_CYAN): Likewise.
49153 (GRUB_EFI_RED): Likewise.
49154 (GRUB_EFI_MAGENTA): Likewise.
49155 (GRUB_EFI_BROWN): Likewise.
49156 (GRUB_EFI_LIGHTGRAY): Likewise.
49157 (GRUB_EFI_BRIGHT): Likewise.
49158 (GRUB_EFI_DARKGRAY): Likewise.
49159 (GRUB_EFI_LIGHTBLUE): Likewise.
49160 (GRUB_EFI_LIGHTGREEN): Likewise.
49161 (GRUB_EFI_LIGHTCYAN): Likewise.
49162 (GRUB_EFI_LIGHTRED): Likewise.
49163 (GRUB_EFI_LIGHTMAGENTA): Likewise.
49164 (GRUB_EFI_YELLOW): Likewise.
49165 (GRUB_EFI_WHITE): Likewise.
49166 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
49167 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
49168 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
49169 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
49170 (GRUB_EFI_BACKGROUND_RED): Likewise.
49171 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
49172 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
49173 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
49174 (GRUB_EFI_TEXT_ATTR): Likewise.
49175
49176 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
49177 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
49178 (kernel_mod_HEADERS): Added efi/time.h.
49179
83709125 491802006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
49181
49182 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
49183 include/grub/efi/api.h, include/grub/efi/console_control.h,
49184 include/grub/efi/efi.h, include/grub/efi/pe32.h,
49185 include/grub/i386/efi/time.h, kern/efi/efi.c,
49186 kern/i386/efi/init.c, kern/i386/efi/startup.S,
49187 and util/i386/efi/grub-mkimage.c.
49188
49189 * Makefile.in (RMKFILES): Added i386-efi.rmk.
49190
49191 * genmk.rb (PModule#rule): Do not export symbols if
49192 #{prefix}_EXPORTS is set to "no".
49193
49194 * conf/i386-efi.mk: New file.
49195 * conf/i386-efi.rmk: Likewise.
49196 * include/grub/efi/api.h: Likewise.
49197 * include/grub/efi/console_control.h: Likewise.
49198 * include/grub/efi/efi.h: Likewise.
49199 * include/grub/efi/pe32.h: Likewise.
49200 * include/grub/i386/efi/time.h: Likewise.
49201 * kern/efi/efi.c: Likewise.
49202 * kern/i386/efi/init.c: Likewise.
49203 * kern/i386/efi/startup.S: Likewise.
49204 * util/i386/efi/grub-mkimage.c: Likewise.
49205
492062006-04-17 Marco Gerards <marco@gnu.org>
bfa2bd9e 49207
49208 * include/grub/script.h: Include <grub/parser.h> and
49209 "grub_script.tab.h".
49210 (struct grub_lexer_param): New struct.
49211 (struct grub_parser_param): Likewise.
49212 (grub_script_create_arglist): Pass the state in an argument.
49213 (grub_script_add_arglist): Likewise.
49214 (grub_script_create_cmdline): Likewise.
49215 (grub_script_create_cmdblock): Likewise.
49216 (grub_script_create_cmdif): Likewise.
49217 (grub_script_create_cmdmenu): Likewise.
49218 (grub_script_add_cmd): Likewise.
49219 (grub_script_arg_add): Likewise.
49220 (grub_script_lexer_ref): Likewise.
49221 (grub_script_lexer_deref): Likewise.
49222 (grub_script_lexer_record_start): Likewise.
49223 (grub_script_lexer_record_stop): Likewise.
49224 (grub_script_mem_record): Likewise.
49225 (grub_script_mem_record_stop): Likewise.
49226 (grub_script_malloc): Likewise.
49227 (grub_script_yylex): Likewise.
49228 (grub_script_yyparse): Likewise.
49229 (grub_script_yyerror): Likewise.
49230 (grub_script_yylex): Likewise.
49231 (grub_script_lexer_init): Return the state.
49232
49233 * normal/lexer.c (grub_script_lexer_state): Removed variable.
49234 (grub_script_lexer_done): Likewise.
49235 (grub_script_lexer_getline): Likewise.
49236 (grub_script_lexer_refs): Likewise.
49237 (script): Likewise.
49238 (newscript): Likewise.
49239 (record): Likewise.
49240 (recording): Likewise.
49241 (recordpos): Likewise.
49242 (recordlen): Likewise.
49243 (grub_script_lexer_init): Return the state instead of setting
49244 global variables.
49245 (grub_script_lexer_ref): Use the newly added argument for state
49246 instead of globals.
49247 (grub_script_lexer_deref): Likewise.
49248 (grub_script_lexer_record_start): Likewise.
49249 (grub_script_lexer_record_stop): Likewise.
49250 (recordchar): Likewise.
49251 (nextchar): Likewise.
49252 (grub_script_yylex2): Likewise.
49253 (grub_script_yylex): Likewise.
49254 (grub_script_yyerror): Likewise.
49255
49256 * normal/parser.y (func_mem): Removed variable.
49257 (menu_entry): Likewise.
49258 (err): Likewise.
49259 (%lex-param): New parser option.
49260 (%parse-param): Likewise.
49261 (script): Always return the AST.
49262 (argument): Pass the state around.
49263 (arguments): Likewise.
49264 (grubcmd): Likewise.
49265 (commands): Likewise.
49266 (function): Likewise.
49267 (menuentry): Likewise.
49268 (if_statement): Likewise.
49269 (if): Likewise.
49270
49271 * normal/script.c (grub_script_memused): Removed variable.
49272 (grub_script_parsed): Likewise.
49273 (grub_script_malloc): Added a state argument. Use that instead of
49274 global variables.
49275 (grub_script_mem_record): Likewise.
49276 (grub_script_mem_record_stop): Likewise.
49277 (grub_script_arg_add): Likewise.
49278 (grub_script_add_arglist): Likewise.
49279 (grub_script_create_cmdline): Likewise.
49280 (grub_script_create_cmdif): Likewise.
49281 (grub_script_create_cmdmenu): Likewise.
49282 (grub_script_add_cmd): Likewise.
49283 (grub_script_parse): Setup the state before calling the parser.
f19dbdb7 49284
e2a8c904 492852006-04-16 Marco Gerards <marco@gnu.org>
6de2ee99 49286
49287 * normal/command.c (grub_command_init): Remove the title command.
49288
49289 * normal/lexer.c (grub_script_yylex): Renamed from this...
49290 (grub_script_yylex2): ... to this.
49291 (grub_script_yylex): New function. Temporary
49292 introduced to filter some tokens.
49293 (grub_script_yyerror): Print a newline.
49294
49295 * normal/main.c (read_config_file): Output information about the
49296 lines that contain errors. Wait for a key after all lines have
49297 been processed. Don't return an empty menu.
49298
49299 * normal/parser.y (func_mem): Don't initialize.
49300 (menu_entry): Likewise.
49301 (err): New variable.
49302 (script): Don't return anything when an error was encountered.
49303 (ws, returns): Removed rules.
49304 (argument): Disabled concatenated variable support.
49305 (arguments): Remove explicit separators.
49306 (grubcmd): Likewise.
49307 (function): Likewise.
49308 (menuentry): Likewise.
49309 (if): Likewise.
49310 (commands): Likewise. Add error handling.
49311
49312 * normal/script.c (grub_script_create_cmdline): If
49313 `grub_script_parsed' is 0, assume the parser encountered an error.
49314
c9a86192 493152006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
49316
49317 * configure.ac: Add support for EFI. Fix the typo
49318 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
49319
70f3b243 493202006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
49321
49322 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
49323 foreign multibyte characters should be shown correctly.
49324
65f201ad 493252006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
49326
49327 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
49328 calculation.
49329 (read_config_file): Made it to close file before returning.
49330
b4b93674 493312006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
49332
49333 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
49334 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
49335 video/i386/pc/vbefill.c.
49336
49337 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
49338 video/i386/pc/vbefill.c.
49339
49340 * include/grub/video.h (grub_video_blit_format): New enum.
49341 (grub_video_mode_info): Added new member blit_format.
49342 (grub_video_get_blit_format): New function prototype.
49343
49344 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
49345 function prototype.
49346 (grub_video_vbe_map_rgb): Likewise.
49347 (grub_video_vbe_unmap_color): Likewise.
49348
49349 * include/grub/i386/pc/vbeblit.h: New file.
49350
49351 * include/grub/i386/pc/vbefill.h: New file.
49352
49353 * video/video.c (grub_video_get_blit_format): New function.
49354 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
49355 (grub_video_vbe_map_rgb): Likewise.
49356 (grub_video_vbe_unmap_color): Likewise.
49357
49358 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
49359 optimized fills.
49360 (grub_video_vbe_blit_render_target): Changed to use more optimized
49361 blits.
49362 (grub_video_vbe_setup): Added detection for optimized settings.
49363 (grub_video_vbe_create_render_target): Likewise.
49364
49365 * video/i386/pc/vbeblit.c: New file.
49366
49367 * video/i386/pc/vbefill.c: New file.
49368
c2379b9c 493692006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
49370
49371 * font/manager.c (grub_font_get_glyph): Removed font fixup from
49372 here...
49373
49374 * util/unifont2pff.rb: ... and moved it to here. Improved argument
49375 parsing to support both hex and dec ranges. If filename was missing
49376 show usage information.
49377
bd0d7896 493782006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
49379
49380 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
49381 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
49382
49383 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
49384 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
49385 (video_mod_SOURCES): Added.
49386 (video_mod_CFLAGS): Likewise.
49387 (video_mod_LDFLAGS): Likewise.
49388 (gfxterm_mod_SOURCES): Likewise.
49389 (gfxterm_mod_CFLAGS): Likewise.
49390 (gfxterm_mod_LDFLAGS): Likewise.
49391 (videotest_mod_SOURCES): Likewise.
49392 (videotest_mod_CFLAGS): Likewise.
49393 (videotest_mod_LDFLAGS): Likewise.
49394 (vesafb_mod_SOURCES): Removed.
49395 (vesafb_mod_CFLAGS): Likewise.
49396 (vesafb_mod_LDFLAGS): Likewise.
49397 (vga_mod_SOURCES): Likewise.
49398 (vga_mod_CFLAGS): Likewise.
49399 (vga_mod_LDFLAGS): Likewise.
49400
49401 * commands/videotest.c: New file.
49402
49403 * font/manager.c (fill_with_default_glyph): Modified to use
49404 grub_font_glyph.
49405 (grub_font_get_glyph): Likewise.
49406 (fontmanager): Renamed from this...
49407 (font_manager): ... to this.
49408
49409 * include/grub/font.h (grub_font_glyph): Added new structure.
49410 (grub_font_get_glyph): Modified to use grub_font_glyph.
49411
49412 * include/grub/misc.h (grub_abs): Added as inline function.
49413
49414 * include/grub/video.h: New file.
49415
49416 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
49417 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
49418 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
49419 (grub_vbe_get_controller_info): Renamed from this...
49420 (grub_vbe_bios_get_controller_info): ... to this.
49421 (grub_vbe_get_mode_info): Renamed from this...
49422 (grub_vbe_bios_get_mode_info): ... to this.
49423 (grub_vbe_set_mode): Renamed from this...
49424 (grub_vbe_bios_set_mode): ... to this.
49425 (grub_vbe_get_mode): Renamed from this...
49426 (grub_vbe_bios_get_mode): ... to this.
49427 (grub_vbe_set_memory_window): Renamed from this...
49428 (grub_vbe_bios_set_memory_window): ... to this.
49429 (grub_vbe_get_memory_window): Renamed from this...
49430 (grub_vbe_bios_get_memory_window): ... to this.
49431 (grub_vbe_set_scanline_length): Renamed from this...
49432 (grub_vbe_set_scanline_length): ... to this.
49433 (grub_vbe_get_scanline_length): Renamed from this...
49434 (grub_vbe_bios_get_scanline_length): ... to this.
49435 (grub_vbe_set_display_start): Renamed from this...
49436 (grub_vbe_bios_set_display_start): ... to this.
49437 (grub_vbe_get_display_start): Renamed from this...
49438 (grub_vbe_bios_get_display_start): ... to this.
49439 (grub_vbe_set_palette_data): Renamed from this...
49440 (grub_vbe_bios_set_palette_data): ... to this.
49441 (grub_vbe_set_pixel_rgb): Removed.
49442 (grub_vbe_set_pixel_index): Likewise.
49443
49444 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
49445 from this...
49446 (grub_vbe_bios_get_controller_info): ... to this.
49447 (grub_vbe_get_mode_info): Renamed from this...
49448 (grub_vbe_bios_get_mode_info): ... to this.
49449 (grub_vbe_set_mode): Renamed from this...
49450 (grub_vbe_bios_set_mode): ... to this.
49451 (grub_vbe_get_mode): Renamed from this...
49452 (grub_vbe_bios_get_mode): ... to this.
49453 (grub_vbe_set_memory_window): Renamed from this...
49454 (grub_vbe_bios_set_memory_window): ... to this.
49455 (grub_vbe_get_memory_window): Renamed from this...
49456 (grub_vbe_bios_get_memory_window): ... to this.
49457 (grub_vbe_set_scanline_length): Renamed from this...
49458 (grub_vbe_set_scanline_length): ... to this.
49459 (grub_vbe_get_scanline_length): Renamed from this...
49460 (grub_vbe_bios_get_scanline_length): ... to this.
49461 (grub_vbe_set_display_start): Renamed from this...
49462 (grub_vbe_bios_set_display_start): ... to this.
49463 (grub_vbe_get_display_start): Renamed from this...
49464 (grub_vbe_bios_get_display_start): ... to this.
49465 (grub_vbe_set_palette_data): Renamed from this...
49466 (grub_vbe_bios_set_palette_data): ... to this.
49467 (grub_vbe_bios_get_controller_info): Fixed problem with registers
49468 getting corrupted after calling it. Added more pushes and pops.
49469 (grub_vbe_bios_set_mode): Likewise.
49470 (grub_vbe_bios_get_mode): Likewise.
49471 (grub_vbe_bios_get_memory_window): Likewise.
49472 (grub_vbe_bios_set_scanline_length): Likewise.
49473 (grub_vbe_bios_get_scanline_length): Likewise.
49474 (grub_vbe_bios_get_display_start): Likewise.
49475 (grub_vbe_bios_set_palette_data): Likewise.
49476
49477 * normal/cmdline.c (cl_set_pos): Refresh the screen.
49478 (cl_insert): Likewise.
49479 (cl_delete): Likewise.
49480
49481 * term/gfxterm.c: New file.
49482
49483 * term/i386/pc/vesafb.c: Removed file.
49484
49485 * video/video.c: New file.
49486
49487 * video/i386/pc/vbe.c (real2pm): Added new function.
49488 (grub_video_vbe_draw_pixel): Likewise.
49489 (grub_video_vbe_get_video_ptr): Likewise.
49490 (grub_video_vbe_get_pixel): Likewise
49491 (grub_video_vbe_init): Likewise.
49492 (grub_video_vbe_fini): Likewise.
49493 (grub_video_vbe_setup): Likewise.
49494 (grub_video_vbe_get_info): Likewise.
49495 (grub_video_vbe_set_palette): Likewise.
49496 (grub_video_vbe_get_palette): Likewise.
49497 (grub_video_vbe_set_viewport): Likewise.
49498 (grub_video_vbe_get_viewport): Likewise.
49499 (grub_video_vbe_map_color): Likewise.
49500 (grub_video_vbe_map_rgb): Likewise.
49501 (grub_video_vbe_map_rgba): Likewise.
49502 (grub_video_vbe_unmap_color): Likewise.
49503 (grub_video_vbe_fill_rect): Likewise.
49504 (grub_video_vbe_blit_glyph): Likewise.
49505 (grub_video_vbe_blit_bitmap): Likewise.
49506 (grub_video_vbe_blit_render_target): Likewise.
49507 (grub_video_vbe_scroll): Likewise.
49508 (grub_video_vbe_swap_buffers): Likewise.
49509 (grub_video_vbe_create_render_target): Likewise.
49510 (grub_video_vbe_delete_render_target): Likewise.
49511 (grub_video_vbe_set_active_render_target): Likewise.
49512 (grub_vbe_set_pixel_rgb): Remove function.
49513 (grub_vbe_set_pixel_index): Likewise.
49514 (index_color_mode): Remove static variable.
49515 (active_mode): Likewise.
49516 (framebuffer): Likewise.
49517 (bytes_per_scan_line): Likewise.
49518 (grub_video_vbe_adapter): Added new static variable.
49519 (framebuffer): Likewise.
49520 (render_target): Likewise.
49521 (initial_mode): Likewise.
49522 (mode_in_use): Likewise.
49523 (mode_list): Likewise.
49524
5f97350b 495252006-03-10 Marco Gerards <marco@gnu.org>
49526
49527 * configure.ac (AC_INIT): Bumped to 1.93.
49528
49529 * DISTLIST: Added `include/grub/hfs.h'.
49530
a3c5c6f8 495312006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
49532
49533 * boot/i386/pc/boot.S (general_error): Before looping, try INT
49534 18H, which might help the BIOS falling back to next boot media.
49535
6de53d26 495362006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
49537
49538 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
49539 Poe Chen <poe.poechen@gmail.com>.
49540
77c4a393 495412006-01-17 Marco Gerards <marco@gnu.org>
49542
49543 * include/grub/normal.h: Include <grub/script.h>.
49544 (grub_command_list): Removed struct.
49545 (grub_command_list_t): Removed type.
49546 (grub_menu_entry): Remove members `num' and `command_list'. Add
49547 members `commands' and `sourcecode'.
49548 * include/grub/script.h: Add inclusion guards.
49549 (grub_script_cmd_menuentry): New struct.
49550 (grub_script_execute_menuentry): New prototype.
49551 (grub_script_lexer_record_start): Likewise.
49552 (grub_script_lexer_record_stop): Likewise.
49553 * normal/execute.c (grub_script_execute_menuentry): New function.
49554 * normal/lexer.c (record, recording, recordpos, recordlen): New
49555 variables.
49556 (grub_script_lexer_record_start): New function.
49557 (grub_script_lexer_record_stop): Likewise.
49558 (recordchar): Likewise.
49559 (nextchar): Likewise.
49560 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
49561 2048 as the buffer size. Add the tokens `menuentry' and `@'.
49562 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
49563 (current_menu): New variable.
49564 (free_menu): Mainly rewritten.
49565 (grub_normal_menu_addentry): New function.
49566 (read_config_file): Rewritten.
49567 * normal/menu.c (run_menu_entry): Mainly rewritten.
fe987087 49568 * normal/menu_entry.c (make_screen): Rewritten the code to insert
77c4a393 49569 the menu entry.
49570 (run): Mainly rewritten.
49571 * normal/parser.y (menu_entry): New variable.
49572 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
49573 (menuentry): New rule.
49574 (command): Add `menuentry'.
49575 (if_statement): Allow additional returns before `fi'.
49576 * normal/script.c (grub_script_create_cmdmenu): New function.
49577
144f1f98 495782006-01-03 Marco Gerards <marco@gnu.org>
49579
49580 * INSTALL: GNU Bison is required.
49581 * configure.ac: Rewritten the test to detect Bison.
49582 * Makefile.in (YACC): New variable. Reported by Xun Sun
49583 <xun.sun.cn@gmail.com>.
49584
af4b2d89 495852006-01-03 Marco Gerards <marco@gnu.org>
49586
49587 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
49588 the HFS+ filesystem to filesystem blocks.
49589 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
49590 GCC warning is silenced.
49591
15643b71 495922006-01-03 Marco Gerards <marco@gnu.org>
49593
49594 * partmap/apple.c (apple_partition_map_iterate): Convert the data
49595 read from disk from big endian to host byte order.
49596
00905879 495972006-01-03 Hollis Blanchard <hollis@penguinppc.org>
49598
49599 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
49600 documentation.
49601 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
49602 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
49603 embedded HFS+ filesystem.
49604 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
49605 (grub_hfs_sblock): Move from here...
49606 * include/grub/hfs.h: To here... New file.
49607 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
49608 documentation.
49609 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
49610 New macros.
49611 (grub_hfsplus_volheader): Change type of member `magic' to
49612 `grub_uint16_t'.
49613 (grub_hfsplus_data): Add new member `embedded_offset'.
49614 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
49615 returned block.
49616 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
49617 Calculate the offset.
49618
8899bc3e 496192005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
49620
49621 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
49622 Removed.
49623 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
49624
ae8c0277 496252005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
49626
49627 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
49628 ENV->NAME is NULL after allocating ENV->VALUE.
49629
07084456 496302005-12-25 Marco Gerards <marco@gnu.org>
49631
49632 * kern/env.c (grub_env_set): Rewritten the error handling code.
49633
4750f5f1 496342005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
49635
49636 * geninit.sh: Made more robust, and more portable.
49637
50214199 496382005-12-25 Marco Gerards <marco@gnu.org>
49639
49640 Add support for Apple HFS+ filesystems.
f19dbdb7 49641
50214199 49642 * fs/hfsplus.c: New file.
49643
49644 * DISTLIST: Added `fs/hfsplus.c'.
49645
49646 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
49647 (hfsplus_mod_SOURCES): New variable.
49648 (hfsplus_mod_CFLAGS): Likewise.
49649 (hfsplus_mod_LDFLAGS): Likewise.
49650 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
49651 (grub_setup_SOURCES): Likewise.
49652 (grub_mkdevicemap_SOURCES): Likewise.
49653 (grub_emu_SOURCES): Likewise.
49654 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
49655
49656 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
49657
49658 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
49659
befaed6c 496602005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
49661
49662 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
49663 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
49664 include/grub/parser.h, include/grub/script.h, kern/parser.c,
49665 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
49666 normal/lexer.c, normal/parser.y, normal/script.c, and
49667 partmap/gpt.c.
49668 Removed kern/sparc64/cache.c.
49669
49670 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
49671 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
49672 grub_emu_init.c.
49673
49674 * configure.ac (AC_INIT): Bumped to 1.92.
49675
6a124103 496762005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
49677
49678 * kern/err.c (grub_error_push): Added new function to support error
49679 stacks.
49680 (grub_error_pop): Likewise.
49681 (grub_error_stack_items): New local variable to support error stacks.
49682 (grub_error_stack_pos): Likewise.
49683 (grub_error_stack_assert): Likewise.
49684 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
49685 stack depth.
49686 (grub_print_error): Added support to print errors from error stack.
49687
49688 * include/grub/err.h (grub_error_push): Added function prototype.
49689 (grub_error_pop): Likewise.
49690
be973c1b 496912005-12-09 Hollis Blanchard <hollis@penguinppc.org>
49692
49693 * configure.ac: Accept `powerpc64' as host_cpu.
49694 (amd64): Rename to `biarch32'.
49695
49696 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
49697 non-cacheline-aligned addresses.
49698
49699 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
49700 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
49701 if `size' is non-zero.
49702
b04216ab 497032005-12-03 Marco Gerards <mgerards@xs4all.nl>
49704
49705 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
49706 and `cd' to make sure the filename is not prefixed with a
49707 directory name.
49708 (pkgdata_MODULES): Add `gpt.mod'.
49709 (gpt_mod_SOURCES): New variable.
49710 (gpt_mod_CFLAGS): Likewise.
49711 (gpt_mod_LDFLAGS): Likewise.
49712
49713 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
49714
49715 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
49716 New macro.
49717
49718 * partmap/gpt.c: New file.
49719
49720 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
49721 GPT partition map is detected.
49722
41730ed9 497232005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
49724
49725 * commands/i386/pc/play.c: New file.
49726 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
49727 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
49728 macros.
f19dbdb7 49729
95dc3643 497302005-11-27 Marco Gerards <mgerards@xs4all.nl>
49731
49732 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
49733 ((unused))' to silence gcc warning.
49734
1569ec51 497352005-11-26 Hollis Blanchard <hollis@penguinppc.org>
49736
49737 * configure.ac: Correct `AC_PROG_YACC' test.
49738
9abde152 497392005-11-22 Hollis Blanchard <hollis@penguinppc.org>
49740
49741 * util/powerpc/ieee1275/grub-install.in: Run the mount point
49742 check before installing files.
49743
44b83271 497442005-11-22 Mike Small <smallm@panix.com>
49745
49746 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
49747 number regex so multidigit numbers are recognized correctly.
49748
497492005-11-22 Mike Small <smallm@panix.com>
49750
49751 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
49752 debugging message before attempting to claim memory.
49753 (grub_rescue_cmd_initrd): Add a claim debugging message and try
49754 multiple addresses in case of failure.
49755
9c12956b 497562005-11-22 Hollis Blanchard <hollis@penguinppc.org>
49757
49758 * term/tparm.c (get_space): Remove empty `if' statement.
49759
49760 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
49761
49762 * kern/parser.c (check_varstate): Rename `state' to 's'.
49763
aeaf81d9 497642005-11-22 Hollis Blanchard <hollis@penguinppc.org>
49765
49766 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
49767 variable definitions to the beginning of each function. Sort stack
49768 variables by size.
49769 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
49770 `buf' argument to `char *'.
49771
79bbb63f 497722005-11-22 Hollis Blanchard <hollis@penguinppc.org>
49773
49774 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
49775 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 49776 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
79bbb63f 49777 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
49778 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
49779 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
49780 configfile.mod, search.mod, gzio.mod and test.mod.
49781 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
49782 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
49783 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
49784 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
49785 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
49786 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
49787 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
49788 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
49789 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
49790 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
49791 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
49792 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
49793 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
49794 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
49795 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
49796 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
49797 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
49798 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
49799 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
49800 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
49801 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
49802 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
49803 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
49804
49805 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
49806 `grep --include'.
49807 (pkgdata_MODULES): Add test.mod.
49808
233b1628 498092005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
49810
49811 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
49812 appending to variables with "+=".
49813 (PModule): Use full pathname to generate *.lst filenames.
49814
49815 * Makefile.in: Fixed list rules moved from genmk.rb.
49816 (.DELETE_ON_ERROR): New special target.
49817 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
49818
49819 * conf/i386-pc.rmk: Include conf/common.mk.
49820 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 49821 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
233b1628 49822 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
49823 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
49824 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
49825 configfile.mod, search.mod, gzio.mod and test.mod.
49826 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
49827 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
49828 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
49829 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
49830 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
49831 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
49832 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
49833 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
49834 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
49835 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
49836 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
49837 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
49838 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
49839 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
49840 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
49841 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
49842 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
49843 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
49844 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
49845 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
49846 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
49847 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
49848 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
49849 here...
49850 * conf/common.rmk: ... to here. New file.
49851
49852 * conf/common.mk: New file.
49853
16f820c8 498542005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
49855
49856 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
49857 (grub_script.tab.c): ... here.
49858
49859 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
49860 (grub_script.tab.c): ... here.
49861
49862 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
49863 (grub_script.tab.c): ... here.
49864
49865 * normal/command.c (grub_command_find): Fixed a memory leak of
49866 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
49867
63ba1554 498682005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
49869
49870 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
49871 "@" which marks the start of a comment on ARM.
49872 (VARIABLE): Likewise.
49873
7f67dc13 498742005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
49875
79bbb63f 49876 Add support for Linux/ADFS partition tables.
7f67dc13 49877
49878 * partmap/acorn.c: New file.
49879
49880 * include/grub/acorn_filecore.h: Likewise.
49881
49882 * DISTLIST: Added `partmap/acorn.c' and
49883 `include/grub/acorn_filecore.h'.
f19dbdb7 49884
7f67dc13 49885 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
49886 `partmap/acorn.c'.
49887 (pkgdata_MODULES): Add `acorn.mod'.
49888 (acorn_mod_SOURCES): New variable.
49889 (acorn_mod_CFLAGS): Likewise.
49890
49891 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
49892 `partmap/acorn.c'.
49893 (pkgdata_MODULES): Add `acorn.mod'.
49894 (acorn_mod_SOURCES): New variable.
49895 (acorn_mod_CFLAGS): Likewise.
49896
49897 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
49898 (pkgdata_MODULES): Add `acorn.mod'.
49899 (acorn_mod_SOURCES): New variable.
49900 (acorn_mod_CFLAGS): Likewise.
49901 (acorn_mod_LDFLAGS): Likewise.
49902
49903 * include/types.h (grub_disk_addr_t): New typedef.
49904
6d099807 499052005-11-13 Marco Gerards <mgerards@xs4all.nl>
49906
49907 * geninit.sh: New file.
49908
49909 * geninitheader.sh: Likewise.
49910
49911 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
49912 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
49913 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
49914 * commands/configfile.c (grub_configfile_init)
49915 (grub_configfile_fini): Likewise.
49916 * commands/default.c (grub_default_init, grub_default_fini):
49917 Likewise.
49918 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
49919 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
49920 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
49921 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
49922 Likewise.
49923 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
49924 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
49925 Likewise.
49926 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
fe6b695a 49927 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
6d099807 49928 Likewise.
49929 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
49930 Likewise.
fe6b695a 49931 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
6d099807 49932 Likewise.
49933 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
49934 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
49935 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
49936 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
49937 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
49938 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
49939 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
49940 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
49941 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
49942 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
49943 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
49944 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
49945 * partmap/amiga.c (grub_amiga_partition_map_init)
49946 (grub_amiga_partition_map_fini): Likewise.
49947 * partmap/apple.c (grub_apple_partition_map_init)
49948 (grub_apple_partition_map_fini): Likewise.
49949 * partmap/pc.c (grub_pc_partition_map_init)
49950 (grub_pc_partition_map_fini): Likewise.
49951 * partmap/sun.c (grub_sun_partition_map_init,
49952 grub_sun_partition_map_fini): Likewise.
49953 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
49954 Likewise.
49955
49956 * util/grub-emu.c: Include <grub_modules_init.h>.
49957 (main): Don't initialize and de-initialize any modules directly,
49958 use `grub_init_all' and `grub_fini_all' instead.
49959
49960 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
49961 `grub_vesafb_mod_init'.
49962 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
49963 all users.
49964 * term/i386/pc/vga.c (grub_vga_init): Renamed to
49965 `grub_vga_mod_init'. Updated all users.
49966 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
f19dbdb7 49967
6d099807 49968 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
49969 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
49970 rules.
49971
49972 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
49973 Generate a function to initialize the module in utilities.
49974 Updated all callers.
49975 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
49976 initialize the module in utilities. Updated all callers.
49977
9046bcf0 499782005-11-09 Hollis Blanchard <hollis@penguinppc.org>
49979
49980 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
49981 escape sequence and a literal ^L to clear the screen.
49982
49983 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
49984 when returning from Open Firmware.
49985
d13ea639 499862005-11-09 Hollis Blanchard <hollis@penguinppc.org>
49987
49988 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
49989 (grub_ofconsole_height): Likewise.
49990 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
49991 manually insert a '\n'.
49992 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
49993 `grub_ofconsole_height'. Return early if these are already set.
49994
a8fcf206 499952005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
49996
49997 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
49998 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
49999 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
50000 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
50001 and `normal/script.c'.
50002 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
50003 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
50004 (test_mod_SOURCES): New variable.
50005 (test_mod_CFLAGS): Likewise.
50006 (test_mod_LDFLAGS): Likewise.
50007 (pkgdata_MODULES): Add `test.mod'.
50008 (grub_script.tab.c): New rule.
50009 (grub_script.tab.h): Likewise.
50010
b6b32745 500112005-11-07 Marco Gerards <mgerards@xs4all.nl>
50012
50013 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
50014 `commands/test.c', `normal/execute.c', `normal/lexer.c',
50015 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
50016 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
50017 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
50018 (test_mod_SOURCES): New variable.
50019 (test_mod_CFLAGS): Likewise.
50020 (pkgdata_MODULES): Add `test.mod'.
50021 (grub_script.tab.c): New rule.
50022 (grub_script.tab.h): Likewise.
50023
daac212a 500242005-11-06 Marco Gerards <mgerards@xs4all.nl>
50025
50026 Add initial scripting support.
50027
50028 * commands/test.c: New file.
50029 * include/grub/script.h: Likewise.
50030 * normal/execute.c: Likewise.
50031 * normal/function.c: Likewise.
50032 * normal/lexer.c: Likewise.
50033 * normal/parser.y: Likewise.
50034 * normal/script.c: Likewise.
50035
50036 * configure.ac: Add `AC_PROG_YACC' test.
f19dbdb7 50037
daac212a 50038 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
50039 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
50040 `normal/function.c' and `normal/script.c'.
50041 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
50042 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
b6b32745 50043 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
50044 variables.
daac212a 50045 (pkgdata_MODULES): Add `test.mod'.
50046 (grub_script.tab.c): New rule.
50047 (grub_script.tab.h): Likewise.
50048
50049 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
50050
50051 * include/grub/normal.h (grub_test_init): New prototype.
50052 (grub_test_fini): Likewise.
f19dbdb7 50053
daac212a 50054 * normal/command.c: Include <grub/script.h>.
50055 (grub_command_execute): Rewritten.
f19dbdb7 50056
daac212a 50057 * util/grub-emu.c (main): Call `grub_test_init' and
50058 `grub_test_fini'.
50059
77500b2b 500602005-11-03 Hollis Blanchard <hollis@penguinppc.org>
50061
50062 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
50063 to 0.
50064 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
50065 there are no pending characters.
50066
e45deb9e 500672005-11-03 Hollis Blanchard <hollis@penguinppc.org>
50068
50069 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
50070 `grub_strndup' to drop device arguments. Replace unnecessary
50071 `grub_strndup' with `grub_strdup'.
50072
4ce32619 500732005-11-03 Hollis Blanchard <hollis@penguinppc.org>
50074
50075 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
50076 `debug' environment variable has been set.
50077
500782005-11-02 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 50079
4ce32619 50080 * Makefile.in (install-local): Use $(DATA).
50081 (uninstall): Likewise.
50082 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
50083 (sbin_UTILITIES): ... to here.
50084 (sbin_SCRIPTS): New variable.
50085 (grub_install_SOURCES): New variable.
50086 * util/powerpc/ieee1275/grub-install.in: New file.
50087 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
50088 variable.
50089 (add_segments): Call `grub_util_get_path'.
50090
25fe6f03 500912005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
50092
50093 From Timothy Baldwin:
50094 * commands/ls.c (grub_ls_list_files): Close FILE with
50095 grub_file_close.
50096 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
50097
04ccf3ec 500982005-10-24 Marco Gerards <mgerards@xs4all.nl>
50099
50100 * include/grub/parser.h: New file.
50101
50102 * kern/parser.c: Likewise.
50103
50104 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
50105 (grub_setup_SOURCES): Likewise.
50106 (grub_probefs_SOURCES): Likewise.
50107 (grub_emu_SOURCES): Likewise.
50108 (kernel_img_HEADERS): Add `parser.h'.
50109
50110 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
50111 (grub_emu_SOURCES): Add `kern/parser.c'.
50112 (grubof_SOURCES): Likewise.
50113
50114 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
50115 (grubof_SOURCES): Add `kern/parser.c'.
50116
50117 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
50118
50119 * kern/misc.c (grub_split_cmdline): Removed function.
50120
50121 * kern/rescue.c: Include <grub/parser.h>.
50122 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
50123 of `grub_split_cmdline'.
50124
50125 * normal/command.c: Include <grub/parser.h>.
50126 (grub_command_execute): Use `grub_parser_split_cmdline' instead
50127 of `grub_split_cmdline'.
50128
50129 * normal/completion.c: Include <grub/parser.h>.
50130 (cmdline_state): New variable.
50131 (iterate_dir): End the filename with a quote depending on the
50132 command line state.
50133 (get_state): new function.
50134 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
50135 split the arguments and determine the current argument. When the
50136 argument string is not quoted, escape all spaces.
50137
6d8f4b0e 501382005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
50139
50140 * normal/sparc64/setjmp.S: New file.
50141
15cf03ed 501422005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
50143
50144 * include/grub/sparc64/libgcc.h: New file.
50145 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
50146 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
50147 normal/sparc64/setjmp.c.
50148
03e8661a 501492005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
50150
50151 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
50152 * kern/sparc64/cache.S: New file.
50153 * kern/sparc64/cache.c: Removed.
50154 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
50155 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
50156 -mtune=ultrasparc.
50157 (COMMON_LDFLAGS): Add -melf64_sparc.
50158 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
50159 (grubof_SOURCES): Use cache.S instead of cache.c.
50160 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
50161 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
50162 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
50163 commented though.
50164 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
50165 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
50166 (linux_mod_CFLAGS): Commented out.
50167 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
50168 out because module isn't built.
50169 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
50170 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
50171 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
50172 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
50173 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
50174 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
50175 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
50176 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
50177 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
50178 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
50179 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
50180 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
50181 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
50182 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
50183
34eeec8a 501842005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
50185
50186 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
50187 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
50188 longer, because HFS should not be used on PC.
50189
708367a3 501902005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
50191
50192 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
50193 consistently within the loop.
50194
6fa1251a 501952005-10-15 Marco Gerards <mgerards@xs4all.nl>
50196
50197 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
50198 directory can not be read.
50199
4801580b 502002005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
50201
50202 * configure.ac (AC_INIT): Increase the version number to 1.91.
50203
50204 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
50205 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
50206 term/i386/pc/serial.c.
50207
219ad426 502082005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
50209
50210 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
50211 file size must be permitted.
50212
50213 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
50214 between %ah and %al.
50215
688e5699 502162005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
50217
50218 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
50219 grub_uint64_t.
50220 Call the hook with a NUL-terminated filename.
50221 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
50222 grub_cpu_to_be32.
50223
50224 * kern/term.c (cursor_state): New variable.
50225 (grub_term_set_current): Reset the cursor state on a new
50226 terminal.
50227 (grub_setcursor): Rewritten to use CURSOR_STATE.
50228 (grub_getcursor): New function.
50229
50230 * include/grub/term.h (grub_getcursor): New prototype.
50231
50232 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
50233 integers on ARM. Reported by Timothy Baldwin
50234 <T.E.Baldwin99@members.leeds.ac.uk>.
50235
bb34586c 502362005-10-11 Marco Gerards <mgerards@xs4all.nl>
50237
50238 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
50239 allocated.
50240 (grub_sfs_dir): Likewise.
50241
9a909877 502422005-10-09 Marco Gerards <mgerards@xs4all.nl>
50243
50244 Add support for the SFS filesystem.
50245
50246 * fs/sfs.c: New file.
50247
50248 * DISTLIST: Added `fs/sfs.c'.
50249
50250 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
50251 (grub_probefs_SOURCES): Likewise.
50252 (grub_emu_SOURCES): Likewise.
50253 (pkgdata_MODULES): Add `sfs.mod'.
50254 (sfs_mod_SOURCES): New variable.
50255 (sfs_mod_CFLAGS): Likewise.
50256 (sfs_mod_LDFLAGS): Likewise.
50257
50258 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
50259 (pkgdata_MODULES): Add `sfs.mod'.
50260 (sfs_mod_SOURCES): New variable.
50261 (sfs_mod_CFLAGS): Likewise.
50262
50263 * util/grub-emu.c (main): Call `grub_sfs_init' and
50264 `grub_sfs_fini'.
50265
50266 * include/grub/fs.h (grub_sfs_init): New prototype.
50267 (grub_sfs_fini): Likewise.
50268
57bdbde3 502692005-10-07 Marco Gerards <mgerards@xs4all.nl>
50270
50271 Add support for the AFFS filesystem.
50272
50273 * fs/affs.c: New file.
50274
50275 * DISTLIST: Added `fs/affs.c'.
50276
50277 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
50278 (grub_probefs_SOURCES): Likewise.
50279 (grub_emu_SOURCES): Likewise.
50280 (pkgdata_MODULES): Add `affs.mod'.
50281 (affs_mod_SOURCES): New variable.
50282 (affs_mod_CFLAGS): Likewise.
50283 (affs_mod_LDFLAGS): Likewise.
50284
50285 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
50286 (pkgdata_MODULES): Add `affs.mod'.
50287 (affs_mod_SOURCES): New variable.
50288 (affs_mod_CFLAGS): Likewise.
50289
50290 * util/grub-emu.c (main): Call `grub_affs_init' and
50291 `grub_affs_fini'.
50292
50293 * include/grub/fs.h (grub_affs_init): New prototype.
50294 (grub_affs_fini): Likewise.
50295
047b67e0 502962005-10-01 Marco Gerards <mgerards@xs4all.nl>
50297
50298 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
50299
59b8208a 503002005-10-01 Marco Gerards <mgerards@xs4all.nl>
50301
50302 * configure.ac: Accept `x86_64' as host_cpu. In that case add
50303 `-m32' to CFLAGS.
50304
50305 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
50306 linking.
f19dbdb7 50307
59b8208a 50308 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
50309 (COMMON_LDFLAGS): New variable.
50310 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
50311 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
50312 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
50313 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
50314 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
50315 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
50316 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
50317 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
50318 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
50319 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
50320 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
50321 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
50322 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
50323 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
50324 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
50325 variables.
50326 (normal_mod_ASFLAGS): Add `-m32'.
50327
50328 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
50329 (grub_host_size_t, grub_host_ssize_t): New types.
50330 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
fe6b695a 50331 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
59b8208a 50332 `GRUB_HOST_SIZEOF_VOID_P'.
50333
50334 * include/grub/kernel.h (struct grub_module_header): Type of
50335 member offset changed to `grub_host_off_t'. Type of member size
50336 changed to `grub_host_size_t'.
50337 (struct grub_module_info): Type of member offset changed to
50338 `grub_host_off_t'. Type of member size changed to
50339 `grub_host_size_t'.
50340
b4093103 503412005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
50342
50343 Make GRUB's kernel compliant to Multiboot Specification.
f19dbdb7 50344
b4093103 50345 * kern/i386/pc/startup.S (multiboot_header): New label.
50346 (multiboot_entry): Likewise.
50347 (multiboot_trampoline): Likewise.
50348
50349 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
50350 Increased to 0x4A0.
50351
50352 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
50353 put parentheses after a question mark.
50354 [!GRUB_UTIL] (my_mod): New variable.
50355
50356 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
50357
b2499b29 503582005-09-28 Marco Gerards <mgerards@xs4all.nl>
50359
50360 Adds support for the XFS filesystem. Btrees are not supported
50361 yet.
50362
50363 * fs/xfs.c: New file.
50364
50365 * DISTLIST: Added `fs/xfs.c'.
50366
50367 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
50368 (grub_probefs_SOURCES): Likewise.
50369 (grub_emu_SOURCES): Likewise.
50370 (pkgdata_MODULES): Add `xfs.mod'.
50371 (xfs_mod_SOURCES): New variable.
50372 (xfs_mod_CFLAGS): Likewise.
50373
50374 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
50375 (pkgdata_MODULES): Add `xfs.mod'.
50376 (xfs_mod_SOURCES): New variable.
50377 (xfs_mod_CFLAGS): Likewise.
50378
50379 * util/grub-emu.c (main): Call `grub_xfs_init' and
50380 `grub_xfs_fini'.
50381
50382 * include/grub/fs.h (grub_xfs_init): New prototype.
50383 (grub_xfs_fini): Likewise.
50384
f19dbdb7 50385
83d37a62 503862005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
50387
50388 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
50389 color modes, allow greater than 16 colors to be configured as
50390 a default palette.
50391
47d2d65e 503922005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
50393
50394 * normal/completion.c (complete_arguments): Add the qualifier
50395 const into OPTIONS.
50396
50397 From Omniflux <omniflux+lists@omniflux.com>:
50398 * include/grub/terminfo.h: New file.
50399 * include/grub/tparm.h: Likewise.
50400 * include/grub/i386/pc/serial.h: Likewise.
50401 * term/terminfo.c: Likewise.
50402 * term/tparm.c: Likewise.
50403 * term/i386/pc/serial.c: Likewise.
50404 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
50405 serial.mod.
50406 (terminfo_mod_SOURCES): New variable.
50407 (terminfo_mod_CFLAGS): Likewise.
50408 (serial_mod_SOURCES): Likewise.
50409 (serial_mod_CFLAGS): Likewise.
50410
48b671ff 504112005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
50412
50413 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
50414 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
50415 and kern/powerpc/ieee1275/cmain.c, respectively.
50416
50417 * boot/powerpc/ieee1275/crt0.S: Moved to ...
50418 * kern/powerpc/ieee1275/crt0.S: ... here.
50419
50420 * boot/powerpc/ieee1275/cmain.c: Moved to ...
50421 * kern/powerpc/ieee1275/cmain.c: ... here.
f19dbdb7 50422
48b671ff 50423 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
50424 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
50425 instead of boot/powerpc/ieee1275/crt0.S and
50426 boot/powerpc/ieee1275/cmain.c, respectively.
50427
50428 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
50429 sectors. It was not used anyway.
50430
09fc77a7 504312005-08-30 Hollis Blanchard <hollis@penguinppc.org>
50432
50433 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
50434 `unused parameter' warning.
50435
003789c7 504362005-08-30 Hollis Blanchard <hollis@penguinppc.org>
50437
50438 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
50439 function.
50440 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
50441 getcharwidth.
50442
67f44c86 504432005-08-28 Marco Gerards <metgerards@student.han.nl>
50444
50445 * include/grub/normal.h (enum grub_completion_type): Added
50446 `GRUB_COMPLETION_TYPE_ARGUMENT'.
50447
50448 * normal/cmdline.c (print_completion): Handle
50449 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
50450 * normal/menu_entry.c (store_completion): Likewise.
50451
50452 * normal/completion.c (complete_arguments): New function.
50453 (grub_normal_do_completion): Call `complete_arguments' when the
50454 current words start with a dash.
50455
0b5abe02 504562005-08-27 Marco Gerards <metgerards@student.han.nl>
50457
50458 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
50459 `gzio.mod' instead of `io.mod').
50460
d9864ee1 504612005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
50462
50463 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
50464 (DISTDIRS): Added io and video.
50465 Rewrite the search routine to make an output consistently.
50466
50467 * DISTLIST: Added conf/sparc64-ieee1275.mk,
50468 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
50469 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
50470 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
50471 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
50472 util/powerpc/ieee1275/misc.c.
f19dbdb7 50473
d9864ee1 50474 * include/grub/gzio.h: New file.
50475 * io/gzio.c: Likewise.
f19dbdb7 50476
d9864ee1 50477 * kern/file.c (grub_file_close): Call grub_device_close only if
50478 FILE->DEVICE is not NULL.
50479
50480 * include/grub/mm.h [!NULL] (NULL): New macro.
50481
50482 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
50483
50484 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
50485 (pkgdata_MODULES): Added gzio.mod.
50486 (gzio_mod_SOURCES): New variable.
50487 (gzio_mod_CFLAGS): Likewise.
50488
50489 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
50490 (pkgdata_MODULES): Added gzio.mod.
50491 (gzio_mod_SOURCES): New variable.
50492 (gzio_mod_CFLAGS): Likewise.
50493
50494 * commands/cat.c: Include grub/gzio.h.
50495 (grub_cmd_cat): Use grub_gzfile_open instead of
50496 grub_file_open.
f19dbdb7 50497
d9864ee1 50498 * commands/cmp.c: Include grub/gzio.h.
50499 (grub_cmd_cmp): Use grub_gzfile_open instead of
50500 grub_file_open.
50501
50502 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
50503 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
50504 grub_file_open.
50505 (grub_rescue_cmd_module): Likewise.
50506
fa46f4b5 505072005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
50508
50509 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
50510 kern/sparc64/ieee1275/init.c because it contains _start.
50511 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
50512
e9211b5d 505132005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
50514
50515 * configure.ac: Add support for sparc64 host with ieee1275
50516 firmware.
50517 * configure: Generated from configure.ac.
50518 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
50519 instead of int.
50520 (grub_ofdisk_read): Likewise.
50521 (grub_ofdisk_open): Use %p to print pointer values, and cast the
50522 pointers as (void *) to remove a warning.
50523 (grub_ofdisk_close): Likewise.
50524 (grub_ofdisk_read): Likewise.
50525 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
50526 returns, so make it return void to remove a warning.
50527 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
50528 Corresponding prototype change.
50529 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
50530 values, and cast the pointers as (void *) to remove a warning.
50531 (grub_mm_dump): Likewise.
50532 * conf/sparc64-ieee1275.mk: New file.
50533 * conf/sparc64-ieee1275.rmk: Likewise.
50534 * include/grub/sparc64/setjmp.h: Likewise.
50535 * include/grub/sparc64/types.h: Likewise.
50536 * include/grub/sparc64/ieee1275/console.h: Likewise.
50537 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
50538 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
50539 * include/grub/sparc64/ieee1275/time.h: Likewise.
50540 * kern/sparc64/cache.c: Likewise.
50541 * kern/sparc64/dl.c: Likewise.
50542 * kern/sparc64/ieee1275/init.c: Likewise.
50543 * kern/sparc64/ieee1275/openfw.c: Likewise.
50544
385c6a92 505452005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
50546
50547 * util/console.c (grub_ncurses_putchar): If C is greater than
50548 0x7f, set C to a question mark.
50549 (grub_ncurses_getcharwidth): New function.
50550 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
50551 getcharwidth.
50552
50553 * normal/menu.c (print_entry): Made aware of Unicode. First,
50554 convert TITLE to UCS-4, and predict the cursor position by
50555 grub_getcharwidth.
50556
50557 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
50558 const to SRC.
50559 * kern/misc.c (grub_utf16_to_utf8): Likewise.
50560
16ccb8b1 505612005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
50562
50563 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
50564 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
50565 grub_strcat.
50566
50567 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
50568 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
50569 grub_strcpy and grub_strlen. Take it into account that a space
50570 character is inserted as a delimiter.
50571
6a85ce79 505722005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
50573
50574 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
fe6b695a 50575 invalid magic in the error.
6a85ce79 50576
50577 * commands/search.c: New file.
f19dbdb7 50578
6a85ce79 50579 * util/grub-emu.c (main): Call grub_search_init and
50580 grub_search_fini.
50581
50582 * kern/rescue.c (grub_rescue_print_disks): Removed.
50583 (grub_rescue_print_devices): New function.
50584 (grub_rescue_cmd_ls): Use grub_device_iterate with
50585 grub_rescue_print_devices instead of grub_disk_dev_iterate with
50586 grub_rescue_print_disks.
50587
50588 * kern/partition.c (grub_partition_iterate): Return the result of
50589 PARTMAP->ITERATE instead of GRUB_ERRNO.
50590
50591 * kern/device.c: Include grub/partition.h.
50592 (grub_device_iterate): New function.
50593
50594 * include/grub/partition.h (grub_partition_iterate): Return int
50595 instead of grub_err_t.
50596
50597 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
50598 prototype.
50599 [GRUB_UTIL] (grub_search_fini): Likewise.
50600
50601 * include/grub/device.h (grub_device_iterate): New prototype.
50602
50603 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
50604 commands/search.c.
50605 (pkgdata_MODULES): Added search.mod.
50606 (search_mod_SOURCES): New variable.
50607 (search_mod_CFLAGS): Likewise.
50608
50609 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
50610 (pkgdata_MODULES): Added search.mod.
50611 (search_mod_SOURCES): New variable.
50612 (search_mod_CFLAGS): Likewise.
50613
50614 * commands/ls.c (grub_ls_list_disks): Renamed to ...
50615 (grub_ls_list_devices): ... this, and use grub_device_iterate.
50616 All callers changed.
50617
50618 * DISTLIST: Added commands/search.c.
50619
ef095434 506202005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
50621
50622 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
50623 conversion.
50624 (grub_getcharwidth): New function.
50625
50626 * kern/misc.c (grub_utf8_to_ucs4): New function.
50627
50628 * include/grub/term.h (struct grub_term): Added a new member
50629 "getcharwidth".
50630 (grub_getcharwidth): New prototype.
50631
50632 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
50633
50634 * term/i386/pc/console.c (map_char): New function. Segregated from
50635 grub_console_putchar.
50636 (grub_console_putchar): Use map_char.
50637 (grub_console_getcharwidth): New function.
50638 (grub_console_term): Specified grub_console_getcharwidth as
50639 getcharwidth.
50640
50641 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
50642 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
50643
50644 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
50645 GRUB_ERRNO.
50646 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
50647 on grub_strtoul completely.
50648 (write_char): Declare local variables in the beginning of the
50649 function.
50650 (grub_vesafb_getcharwidth): New function.
50651 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
50652 getcharwidth.
50653
1f0a95e4 506542005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
50655
50656 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
50657 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
50658 commands/i386/pc/vbetest.c.
50659
50660 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
50661 call grub_vbe_get_controller_info again, because the returned
50662 information is volatile.
50663 (grub_vbe_set_video_mode): Mostly rewritten.
50664 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
50665 grub_vbe_status_t correctly.
50666 (grub_vbe_get_video_mode_info): Likewise.
50667 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
50668 several if statements.
50669
50670 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
50671 * commands/i386/pc/vbeinfo.c: ... this.
50672
50673 * commands/i386/pc/vbe_test.c: Renamed to ...
50674 * commands/i386/pc/vbetest.c: ... this.
50675
50676 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
50677 ...
50678 (grub_cmd_vbeinfo): ... this. Save video modes before
50679 iterating. Skip a video mode, if it is not available, not enough
50680 information is given or it is monochrome. Show the memory
50681 model. Leave the interpretation of MODEVAR to grub_strtoul
50682 completely.
50683 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
50684 (GRUB_MOD_FINI): Likewise.
50685
50686 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
50687 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
50688 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
50689 duplicated grub_env_get. Leave the interpretation of MODEVAR to
50690 grub_strtoul completely.
50691 (real2pm): Removed.
50692 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
50693 (GRUB_MOD_FINI): Likewise.
50694
50695 * normal/misc.c: Include grub/mm.h.
50696
50697 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
50698 vbe_list_modes with vbetest.mod and vbeinfo.mod.
50699 (vbe_list_modes_mod_SOURCES): Removed.
50700 (vbe_list_modes_mod_CFLAGS): Likewise.
50701 (vbe_test_mod_SOURCES): Likewise.
50702 (vbe_test_mod_CFLAGS): Likewise.
50703 (vbeinfo_mod_SOURCES): New variable.
50704 (vbeinfo_mod_CFLAGS): Likewise.
50705 (vbetest_mod_SOURCES): Likewise.
50706 (vbetest_mod_CFLAGS): Likewise.
50707
992ffbbe 507082005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
50709
50710 * normal/misc.c: New file.
50711
50712 * DISTLIST: Added normal/misc.c.
f19dbdb7 50713
992ffbbe 50714 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
50715 DISK to HOOK. Call HOOK with DISK.
50716 * partmap/apple.c (apple_partition_map_iterate): Likewise.
50717 * partmap/pc.c (pc_partition_map_iterate): Likewise.
50718 * partmap/sun.c (sun_partition_map_iterate): Likewise.
50719
50720 * normal/menu_entry.c (struct screen): Added a new member
50721 "completion_shown".
50722 (completion_buffer): New global variable.
50723 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
50724 (store_completion): New function.
50725 (complete): Likewise.
50726 (clear_completions): Likewise.
50727 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
50728 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
50729 a tab, call complete.
50730
50731 * normal/completion.c (disk_dev): Removed.
50732 (print_simple_completion): Likewise.
50733 (print_partition_completion): Likewise.
50734 (print_func): New global variable.
50735 (add_completion): Do not take the arguments WHAT or PRINT any
50736 longer. Added a new argument TYPE. Instead of printing directly,
50737 call PRINT_FUNC if not NULL.
50738 All callers changed.
50739 (complete_device): Use a local variable DEV instead of
50740 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
50741 (grub_normal_do_completion): Take a new argument HOOK. Do not
50742 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
50743 empty string, return NULL instead.
50744 All callers changed.
50745
50746 * normal/cmdline.c (print_completion): New function.
50747
50748 * kern/partition.c (grub_partition_iterate): Add an argument DISK
50749 to HOOK.
50750 All callers changed.
50751
50752 * kern/disk.c (grub_print_partinfo): Removed.
50753
50754 * include/grub/partition.h (struct grub_partition_map): Add a new
50755 argument DISK into HOOK of ITERATE.
50756 (grub_partition_iterate): Add a new argument DISK to HOOK.
50757
50758 * include/grub/normal.h (enum grub_completion_type): New enum.
50759 (grub_completion_type_t): New type.
50760 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
50761 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
50762 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
50763 (GRUB_COMPLETION_TYPE_FILE): Likewise.
50764 (grub_normal_do_completion): Added a new argument HOOK.
50765 (grub_normal_print_device_info): New prototype.
50766
50767 * include/grub/disk.h (grub_print_partinfo): Removed.
50768
50769 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
50770 (normal_mod_SOURCES): Likewise.
50771 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
50772 (normal_mod_SOURCES): Likewise.
50773
50774 * commands/ls.c (grub_ls_list_disks): Use
50775 grub_normal_print_device_info instead of grub_print_partinfo. Free
50776 PNAME.
50777 (grub_ls_list_files): Use grub_normal_print_device_info instead of
50778 duplicating the code.
50779
0bd41162 507802005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
50781
50782 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
f19dbdb7 50783 follow GCS more precisely.
50784 * commands/i386/pc/vbe_test.c: Likewise.
50785 * include/grub/i386/pc/vbe.h: Likewise.
50786 * term/i386/pc/vesafb.c: Likewise.
50787 * video/i386/pc/vbe.c: Likewise.
0bd41162 50788
6323696a 507892005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
50790
50791 * DISTLIST: Added term/i386/pc/vesafb.c
50792 DISTLIST: Added video/i386/pc/vbe.c
50793 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
50794 DISTLIST: Added commands/i386/pc/vbe_test.c.
50795 * commands/i386/pc/vbe_list_modes.c: New file.
50796 * commands/i386/pc/vbe_test.c: Likewise.
50797 * term/i386/pc/vesafb.c: Likewise.
50798 * video/i386/pc/vbe.c: Likewise.
50799 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
50800 (grub_vbe_probe) Added prototype.
50801 (grub_vbe_set_video_mode) Likewise.
50802 (grub_vbe_get_video_mode) Likewise.
50803 (grub_vbe_get_video_mode_info) Likewise.
50804 (grub_vbe_set_pixel_rgb) Likewise.
50805 (grub_vbe_set_pixel_index) Likewise.
50806 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
50807 (pkgdata_MODULES): Added vesafb.mod.
50808 (pkgdata_MODULES): Added vbe_list_modes.mod.
50809 (pkgdata_MODULES): Added vbe_test.mod.
50810 (vbe_mod_SOURCES): Added.
50811 (vbe_mod_CFLAGS): Likewise.
50812 (vesafb_mod_SOURCES): Likewise.
50813 (vesafb_mod_CFLAGS): Likewise.
50814 (vbe_list_modes_mod_SOURCES): Likewise.
50815 (vbe_list_modes_mod_CFLAGS): Likewise.
50816 (vbe_test_mod_SOURCES): Likewise.
50817 (vbe_test_mod_CFLAGS): Likewise.
50818
0a74e62f 508192005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
50820
0a74e62f 50821 * normal/command.c (grub_command_execute): If INTERACTIVE is
50822 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
50823 CMDLINE. Disable the pager if INTERACTIVE is true.
50824 All callers are changed.
50825
50826 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
50827 before reading a config file.
50828 * normal/main.c (read_config_file): Even if a command is not
50829 found, register it if it is within an entry.
50830
50831 * util/grub-emu.c: Include sys/types.h and unistd.h.
50832 (options): Added --hold.
50833 (struct arguments): Added a new member "hold".
50834 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
50835 missing.
50836 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
50837 cleared by a debugger, if it is not zero.
50838
50839 * include/grub/normal.h (grub_command_execute): Add an argument
50840 INTERACTIVE.
50841
e51f85ae 508422005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
50843
50844 * DISTLIST: Added include/grub/i386/pc/vbe.h.
50845
e9c6f39b 508462005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
50847
50848 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
50849 program with another one, because the old one didn't detect a bug
50850 in gcc-3.4. Always use regparm 2, because the new test is still
50851 not enough for gcc-4.0. Someone must investigate a simple test
50852 case which detects a bug in gcc-4.0.
50853
8de3495c 508542005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
50855
50856 * DISTLIST: Added normal/completion.c.
50857
50858 * normal/completion.c: New file.
f19dbdb7 50859
8de3495c 50860 * term/i386/pc/console.c (grub_console_getwh): New function.
50861 (grub_console_term): Assign grub_console_getwh to getwh.
50862
50863 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
50864 function is defined in normal/completion.c as
50865 grub_normal_do_completion.
50866 (grub_cmdline_get): Use grub_normal_do_completion instead of
50867 grub_tab_complete.
50868
50869 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
50870 returns non-zero, otherwise return 0.
50871 (grub_partition_iterate): First, probe the partition map. Then,
50872 call ITERATE only for this partition map.
50873
50874 * kern/misc.c (grub_strncmp): Rewritten.
50875
50876 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
50877 returns non-zero. Otherwise return 0.
50878
50879 * include/grub/partition.h (grub_partition_map_iterate): Return
50880 int instead of void.
50881
50882 * include/grub/normal.h (grub_normal_do_completion): New prototype.
50883
50884 * include/grub/misc.h (grub_strncmp): Change the type of N to
50885 grub_size_t.
50886
50887 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
50888 of void.
50889
50890 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
fe6b695a 50891 unsigned explicitly before comparing it with I.
8de3495c 50892
50893 * kern/main.c (grub_env_write_root): Add the attribute unused into
50894 VAR.
50895
50896 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
50897 normal/completion.c.
50898 (normal_mod_SOURCES): Likewise.
50899 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
50900 (normal_mod_SOURCES): Likewise.
50901
50902 * normal/command.c (grub_iterate_commands): If ITERATE returns
50903 non-zero, return one immediately.
50904
e85e144b 509052005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
50906
50907 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
50908 * kern/i386/pc/startup.S: Updated Global Descriptor table's
50909 descriptions.
50910 (grub_vbe_get_controller_info): New function.
50911 (grub_vbe_get_mode_info): Likewise.
50912 (grub_vbe_set_mode): Likewise.
50913 (grub_vbe_get_mode): Likewise.
50914 (grub_vbe_set_memory_window): Likewise.
50915 (grub_vbe_get_memory_window): Likewise.
50916 (grub_vbe_set_scanline_length): Likewise.
50917 (grub_vbe_get_scanline_length): Likewise.
50918 (grub_vbe_set_display_start): Likewise.
50919 (grub_vbe_get_display_start): Likewise.
50920 (grub_vbe_set_palette_data): Likewise.
50921 * include/grub/i386/pc/vbe.h: New file.
50922
c46153d2 509232005-08-08 Hollis Blanchard <hollis@penguinppc.org>
50924
50925 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
50926 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
50927 * DISTLIST: Likewise.
50928 * kern/ieee1275/of.c: Moved to ...
50929 * kern/ieee1275/ieee1275.c: ... here.
50930
0cb90c45 509312005-08-08 Hollis Blanchard <hollis@penguinppc.org>
50932
50933 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
50934 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
50935 Pass 0 as `end' parameter to grub_strtoul().
50936
a19fb360 509372005-08-08 Hollis Blanchard <hollis@penguinppc.org>
50938
50939 * include/grub/powerpc/ieee1275/console.h: Do not include
50940 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
50941 ifdef.
50942 (grub_console_cur_color): Remove i386-specific prototype.
50943 (grub_console_real_putchar): Likewise.
50944 (grub_console_checkkey): Likewise.
50945 (grub_console_getkey): Likewise.
50946 (grub_console_getxy): Likewise.
50947 (grub_console_gotoxy): Likewise.
50948 (grub_console_cls): Likewise.
50949 (grub_console_setcursor): Likewise.
50950 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
50951 Include <grub/machine/console.h>.
50952 * term/ieee1275/ofconsole.c: Likewise.
50953
4ac9bd04 509542005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
50955
50956 * Makefile.in (LIBLZO): New variable.
50957
50958 * configure.ac: Check for LZO version 2.
50959
50960 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
50961 lzo/lzo1x.h instead of lzo1x.h.
50962
50963 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
50964 of -llzo.
50965
50966 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
50967 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
50968
50969 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
50970 copying the data from PARTITION to P.
50971
f4917dfd 509722005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
50973
50974 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
50975 negative, unload the module.
50976
50977 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
50978 map is "pc_partition_map" but not "pc".
50979 (usage): Fix the description. The options are --boot-image and
50980 --core-image but not --boot-file or --core-file.
50981 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
50982 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
50983 DEFAULT_DIRECTORY.
50984
50985 * util/i386/pc/grub-install.in: Do not specify --boot-file or
50986 --core-file. Specify INSTALL_DEVICE as an argument.
50987
50988 * util/console.c: Include config.h.
50989 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
50990 [HAVE_NCURSES_H]: Include ncurses.h.
50991 [HAVE_CURSES_H]: Include curses.h.
50992 [!A_NORMAL] (A_NORMAL): Defined as zero.
50993 [!A_STANDOUT] (A_STANDOUT): Likewise.
50994
50995 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
50996 -lncurses.
50997 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
50998
50999 * configure.ac: Check for curses libraries and headers.
51000
51001 * Makefile.in (LIBCURSES): New variable.
51002
51003 * genmk.rb (Script::rule): Set the executable bits.
51004
51005 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
51006 name of the PC partition map is "pc_partition_map" but not "pc".
51007
0e143073 510082005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
51009
51010 * util/i386/pc/grub-install.in (grub_probefs): New variable.
51011 (modules): Likewise.
51012 (usage): Added descriptions for --modules and --grub-probefs.
51013 Handle --modules and --grub-probefs. Save the arguments in MODULES
51014 and GRUB_PROBEFS, respectively.
51015 Auto-detect a filesystem module against GRUBDIR. If the result is
51016 empty and modules are not specified explicitly, abort the
51017 installation. Add the result to MODULES.
51018
51019 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
51020 disk/powerpc/ieee1275/ofdisk.c,
51021 include/grub/powerpc/ieee1275/init.h and
51022 term/powerpc/ieee1275/ofconsole.c.
51023 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
51024 term/ieee1275/ofconsole.c.
51025
51026 * include/grub/powerpc/ieee1275/console.h: Resurrected.
51027
51028 * COPYING: Upgraded to the latest version. Only the address of the
51029 FSF office has changed.
f19dbdb7 51030
efd6e6d5 510312005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
51032
51033 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
51034 kern/ieee1275.c with kern/ieee1275/of.c.
51035
51036 * kern/ieee1275.c: Moved to ...
51037 * kern/ieee1275/of.c: ... here.
51038
8ceafda2 510392005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
51040
51041 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
fe6b695a 51042 readability.
8ceafda2 51043
51044 * config.guess: Updated to the latest version from gnulib.
51045 * config.sub: Likewise.
51046 * install.sh: Likewise.
51047 * mkinstalldirs: Likewise.
51048
51049 * include/grub/console.h: Removed. This file is arch-specific. Do
51050 not put this in include/grub.
51051
51052 * include/grub/i386/pc/console.h: Resurrected.
51053
51054 * util/console.c: Include grub/machine/console.h instead of
51055 grub/console.h.
51056 * util/grub-emu.c: Likewise.
51057
267f6cd9 510582005-08-04 Marco Gerards <metgerards@student.han.nl>
51059
51060 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
51061 hardcoded value.
f19dbdb7 51062
267f6cd9 51063 From Vincent Pelletier <subdino2004@yahoo.fr>
51064 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
51065 Redefined to use grub_getwh.
51066 (grub_term): New member named getwh.
51067 (grub_getwh): New prototype.
51068 * kern/term.c (grub_getwh): New function.
51069 * term/i386/pc/console.c (grub_console_getwh): New function.
51070 (grub_console_term): New member `getwh'.
51071 * term/i386/pc/vga.c (grub_vga_getwh): New function.
51072 (grub_vga_term): New member `getwh'.
0b5abe02 51073 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
267f6cd9 51074 grub_ssize_t.
51075 (grub_ofconsole_getw): New function.
51076 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
51077 (grub_ofconsole_term): New field named getwh and new initial
51078 value.
51079
3be7266d 510802005-08-03 Hollis Blanchard <hollis@penguinppc.org>
51081
51082 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
51083 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
51084 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
51085 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
51086 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
51087 of <grub/machine/ieee1275.h>.
51088 * commands/ieee1275/reboot.c: Likewise.
51089 * boot/powerpc/ieee1275/ieee1275.c: Move ...
51090 * kern/ieee1275.c: ... to here. All users updated. Change all
51091 parameter structs to use new type `grub_ieee1275_cell_t'.
51092 * term/powerpc/ieee1275/ofconsole.c: Move ...
51093 * term/ieee1275/ofconsole.c: ... to here. All users updated.
51094 * disk/powerpc/ieee1275/ofdisk.c: Move ...
51095 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
51096 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
51097 to return int.
51098 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
51099 Remove unused prototypes. All users updated.
51100 * include/grub/powerpc/ieee1275/console.h: Removed.
51101 * include/grub/powerpc/ieee1275/ieee1275.h: Define
51102 `grub_ieee1275_cell_t'.
51103 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
51104 Cast comparisons with -1 to the correct type.
51105 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
51106 type to match `grub_ieee1275_entry_fn'.
51107
8b5f3938 511082005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
51109
51110 * DISTLIST: Added util/i386/pc/grub-probefs.c.
51111
51112 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
51113 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
51114 partmap/sun.c.
51115 (grub_probefs_SOURCES): New variable.
51116
51117 * util/i386/pc/grub-probefs.c: New file.
51118
51119 * util/i386/pc/grub-setup.c (main): Call
51120 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
51121 grub_hfs_init and grub_jfs_init to initialize the system. Call
51122 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
51123 grub_pc_partition_map_fini to finish the system.
51124
ea409713 511252005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
51126
51127 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
51128 function.
51129 (grub_multiboot_load_elf32): Likewise.
51130 (grub_multiboot_is_elf64): Likewise.
51131 (grub_multiboot_load_elf64): Likewise.
51132 (grub_multiboot_load_elf): Likewise.
51133 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
51134 an ELF32 or ELF64 file.
51135 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
51136
51137 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
51138 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
51139 NULL before calling FS->LABEL.
51140 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
51141 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
51142 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
51143 before calling FS->LABEL.
51144
141a288b 511452005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
51146
51147 * util/i386/pc/grub-install.in (datadir): New variable.
51148 (libdir): Removed.
51149 (pkgdatadir): New variable.
51150 (pkglibdir): Removed.
51151
0d5f8a54 511522005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
51153
51154 * DISTLIST: Added util/i386/pc/grub-install.in.
51155
51156 * util/i386/pc/grub-install.in: New file.
51157
51158 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
51159 (grub_install_SOURCES): Likewise.
51160
51161 * genmk.rb: Added support for scripts.
51162 (Script): New class.
51163 (scripts): New variable.
51164
51165 * Makefile.in (install-local): Install sbin_SCRIPTS by
51166 INSTALL_SCRIPT.
51167 (uninstall): Remove sbin_SCRIPTS.
51168
51169 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
51170 device, try to get a GRUB device by
51171 grub_util_biosdisk_get_grub_dev.
51172 Free DEST_DEV.
51173
51174 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
51175 description for --device-map.
51176
5f968e1e 511772005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
51178
51179 Change the semantics of variable hooks. They now return strings
51180 instead of error values.
f19dbdb7 51181
5f968e1e 51182 * util/i386/pc/grub-setup.c: Include grub/env.h.
51183 (setup): Use grub_device_set_root instead of grub_env_set.
51184
51185 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
51186 grub_env_get instead of grub_device_set_root and
51187 grub_device_get_root, respectively.
51188
51189 * kern/main.c (grub_env_write_root): New function.
51190 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
51191 grub_env_set instead of grub_device_set_root.
51192
51193 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
51194 many variables.
51195 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
51196 rather than calling ENV->WRITE_HOOK afterwards.
51197 (grub_env_get): Return the result of ENV->READ_HOOK rather than
51198 passing a pointer of a pointer.
51199 (grub_register_variable_hook): Change the types of "read_hook" and
51200 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
51201 respectively.
51202 Allocate the default empty string on the heap, because this string
51203 may be freed later.
51204
51205 * kern/device.c: Include grub/env.h.
51206 (grub_device_set_root): Removed.
51207 (grub_device_get_root): Likewise.
51208 (grub_device_open): Use grub_env_get instead of
51209 grub_device_get_root.
51210
51211 * include/grub/env.h (grub_env_read_hook_t): New type.
51212 (grub_env_write_hook_t): Likewise.
51213 (grub_env_var): Change the types of "read_hook" and "write_hook"
51214 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
51215 (grub_register_variable_hook): Likewise.
51216
51217 * include/grub/device.h (grub_device_set_root): Removed.
51218 (grub_device_set_root): Likewise.
51219
51220 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
51221 make sure that DIRNAME terminates with '/', so that
51222 grub_fat_find_dir will fail if PATH is not a directory.
51223
51224 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
51225 from DIRNAME.
51226 Use the qualifier auto for print_files and print_files_long.
51227 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
51228 as a regular file.
51229 Put a newline only if there is no error.
51230 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
51231 used.
51232
896f0afd 512332005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
51234
51235 * kern/partition.c (grub_partition_probe): Initialize PART to
51236 NULL. Otherwise, when no partition map is registered, this returns
51237 a garbage.
51238
b28b81b2 512392005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
51240
51241 * partmap/apple.c (apple_partition_map_iterate): Check if POS
51242 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
51243 valid.
51244
5f3607e0 512452005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
51246
51247 * commands/ls.c (grub_ls_list_disks): Print the filesystem
51248 information on each device, if it does not have partitions. Print
51249 "Device" instead of "Disk", because this function is not specific
51250 to disk devices.
51251
51252 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
51253 static to ensure that it is put on the memory rather than a
51254 register.
51255
502c87e8 512562005-07-17 Yoshinori Okuji <okuji@enbug.org>
51257
51258 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
51259 (grub_cat_init): Likewise.
51260 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
51261 (options): Likewise.
51262 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
51263 (grub_configfile_init): Likewise.
51264 * font/manager.c (GRUB_MOD_INIT): Likewise.
51265 * commands/help.c (GRUB_MOD_INIT): Likewise.
51266 (grub_help_init): Likewise.
51267 * normal/command.c (grub_command_init): Likewise.
51268 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
51269 * disk/loopback.c (grub_loop_init): Likewise.
51270 (GRUB_MOD_INIT): Likewise.
51271 * commands/ls.c (grub_ls_init): Likewise.
51272 (GRUB_MOD_INIT): Likewise.
51273 (options): Likewise.
51274 * commands/boot.c (grub_boot_init): Likewise.
51275 (GRUB_MOD_INIT): Likewise.
51276 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
51277 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
51278 (GRUB_MOD_INIT): Likewise.
51279 * commands/cmp.c (grub_cmp_init): Likewise.
51280 (GRUB_MOD_INIT): Likewise.
51281
51282 * normal/arg.c: Use <> instead of "" to include header files.
51283 (SHORT_ARG_HELP): New macro.
51284 (SHORT_ARG_USAGE): Likewise.
51285 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
51286 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
51287 descriptions.
51288 (find_short): Check if C is 'h' or 'u' explicitly.
51289 (grub_arg_show_help): Use space characters instead of tabs. Treat
51290 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
51291 are shown with --help and --usage only if they are not used for
51292 the command itself.
51293 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
51294 'h' and 'u'.
51295
51296 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
51297 const into "longarg". Change the type of "shortarg" to int.
51298
f806d18e 512992005-07-17 Yoshinori Okuji <okuji@enbug.org>
51300
51301 * boot/i386/pc/boot.S (boot_drive_check): New label.
51302
51303 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
51304 macro.
51305
51306 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
51307 which do not pass a boot drive correctly. Copied from GRUB Legacy.
51308
e293232b 513092005-07-17 Yoshinori Okuji <okuji@enbug.org>
51310
51311 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
51312 When turning off Gate A20, skip the check and return immediately,
51313 because this is not fatal usually.
51314
ebedfd00 513152005-07-17 Yoshinori Okuji <okuji@enbug.org>
51316
51317 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
51318 be 0x7C00 instead of 0x8000.
51319
51320 * boot/i386/pc/pxeboot.S: Rewritten.
51321
51322 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
51323 EXT_C.
51324 (gate_a20_check_state): Read a byte from 0x108000. Invert the
51325 result.
51326
654fc59f 513272005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
51328
51329 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
51330 robustness. This routine now supports a BIOS call and System
51331 Control Port A to modify the gate A20.
51332
51333 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
51334 Increased to 0x440.
51335
09f9923f 513362005-07-12 Hollis Blanchard <hollis@penguinppc.org>
51337
51338 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
51339 device path and resulting ihandle.
51340 (grub_ofdisk_close): dprintf the ihandle being closed.
51341 (grub_ofdisk_read): dprintf function parameters.
51342 * kern/mm.c (grub_mm_init_region): Likewise.
51343 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
51344 (grub_linux_boot): dprintf the Linux entry point, initrd address and
51345 size, and boot arguments.
51346 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
51347 before loading into memory.
51348 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
51349 before loading into memory.
51350
7ef504d8 513512005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
51352
51353 * kern/mm.c: Added much documentation.
51354 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
51355 8, set to 5 instead of 8.
51356
e0f050c2 513572005-07-10 Yoshinori Okuji <okuji@enbug.org>
51358
51359 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
51360
51361 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
51362 (grub_mkdevicemap_SOURCES): New variable.
51363
51364 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
51365 lib/device.c of GRUB Legacy.
51366
7224189a 513672005-07-10 Yoshinori Okuji <okuji@enbug.org>
51368
51369 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
51370 instead of PATH is NULL.
51371
68c864eb 513722005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
51373
51374 * commands/cmp.c (BUFFER_SIZE): New macro.
51375 (grub_cmd_cmp): Close the right file at the right time. Compare
51376 only data just read. Don't report files of different size as
51377 identical. Dynamically allocate buffers. Move variable
51378 declarations at the beginning of function.
51379
e6f3e614 513802005-07-09 Yoshinori Okuji <okuji@enbug.org>
51381
51382 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
51383 reverse.
51384
f8f1559a 513852004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
51386
51387 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
51388 when backspace is pressed at beginning of line.
51389
39c9d41d 513902005-07-03 Yoshinori Okuji <okuji@enbug.org>
51391
51392 * DISTLIST: Added genfslist.sh.
51393
51394 * normal/main.c (fs_module_list): New variable.
51395 (autoload_fs_module): New function.
51396 (read_fs_list): Likewise.
51397 (grub_normal_execute): Call read_fs_list.
51398
51399 * kern/fs.c (grub_fs_autoload_hook): New variable.
51400 (grub_fs_probe): Added support for auto-loading.
51401
51402 * include/grub/normal.h (struct grub_fs_module_list): New struct.
51403 (grub_fs_module_list_t): New type.
51404
51405 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
51406 (grub_fs_autoload_hook): New prototype.
51407
51408 * genfslist.sh: New file.
f19dbdb7 51409
39c9d41d 51410 * genmk.rb: Added a rule to generate a filesystem list.
51411
121c1d83 514122005-06-30 Marco Gerards <metgerards@student.han.nl>
51413
51414 * configure.ac: Fix the test for cross-compiling.
51415
51416 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
51417 define GRUB_UTIL anymore.
51418
51419 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
51420 so this function works on other systems than just big endian.
51421 (load_modules): Likewise.
51422 (add_segments): Likewise.
51423
e75d76e1 514242005-06-23 Hollis Blanchard <hollis@penguinppc.org>
51425
51426 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
51427 contains `l' modifier, get a long from va_arg().
51428
50b5a0a7 514292005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
51430
51431 * kern/mm.c (grub_free): If the next free block which is being
51432 merged is the first free block, set the first block to the block
51433 being freed.
51434 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
51435
89371b20 514362005-05-08 Hollis Blanchard <hollis@penguinppc.org>
51437
51438 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
51439 `grub_ieee1275_chosen'.
51440
168d6e58 514412005-05-08 Hollis Blanchard <hollis@penguinppc.org>
51442
51443 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
51444 (grub_ieee1275_chosen): New variable.
51445 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
51446 `chosen'.
51447 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
51448 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
51449 Rename first argument to `phandle' for consistency.
51450 (grub_ieee1275_get_property_length): Likewise.
51451 (grub_ieee1275_next_property): Likewise. Change type of first argument
51452 to grub_ieee1275_phandle_t.
51453 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
51454 Move export next to declaration.
51455 (grub_ieee1275_chosen): New variable.
51456 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
51457 Correct cosmetic typo.
51458 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
51459 `grub_ieee1275_chosen'.
51460 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
51461 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
51462 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
51463 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
51464 `grub_ieee1275_chosen'.
51465
ca5baa3f 514662005-05-10 Hollis Blanchard <hollis@penguinppc.org>
51467
51468 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
51469 /chosen/bootargs.
51470 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
51471 /chosen/bootargs as "variable=value" pairs.
51472
708b345f 514732005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
51474
51475 * include/grub/misc.h (grub_dprintf): New macro.
51476 (grub_real_dprintf): New prototype.
51477 (grub_strword): Likewise.
51478 (grub_iswordseparator): Likewise.
51479 * kern/misc.c (grub_real_dprintf): New function.
51480 (grub_strword): Likewise.
51481 (grub_iswordseparator): Likewise.
51482
f4c5e67c 514832005-04-30 Hollis Blanchard <hollis@penguinppc.org>
51484
51485 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
51486 (roundup): Remove macro.
51487 (grub_ieee1275_flags): Make static.
51488 (grub_ieee1275_realmode): Remove.
51489 (grub_ieee1275_test_flag): New function.
51490 (grub_ieee1275_set_flag): Likewise.
51491 (find_options): Rename to `grub_ieee1275_find_options'; update
51492 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
51493 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
51494 (cmain): New prototype.
51495 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
51496 `grub_ieee1275_flags' directly.
51497 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
51498 machine/biosdisk.h.
51499 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
51500 Don't include grub/machine/init.h.
51501 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
51502 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
51503 Remove prototype.
51504 (grub_ieee1275_realmode): Likewise.
51505 (grub_ieee1275_flag): New enum.
51506 (grub_ieee1275_test_flag): New prototype.
51507 (grub_ieee1275_set_flag): New prototype.
51508 * include/grub/powerpc/ieee1275/init.h: Remove file.
51509 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
51510 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
51511 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
51512 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
51513 comment.
51514 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
51515 `grub_ieee1275_test_flag'.
51516 (grub_ieee1275_encode_devname): Likewise.
51517
ed16607e 515182005-04-21 Hollis Blanchard <hollis@penguinppc.org>
51519
51520 * include/grub/powerpc/ieee1275/ieee1275.h
51521 (grub_ieee1275_encode_devname): New prototype.
51522 (grub_ieee1275_get_filename): Likewise.
51523 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
51524 function.
51525 (grub_set_prefix): Likewise.
51526 (grub_machine_init): Call grub_set_prefix.
51527 * kern/powerpc/ieee1275/openfw.c: Fix typos.
51528 (grub_parse_type): New enum.
51529 (grub_ieee1275_get_devargs): New function.
51530 (grub_ieee1275_get_devname): Likewise.
51531 (grub_ieee1275_parse_args): Likewise.
51532 (grub_ieee1275_get_filename): Likewise.
51533 (grub_ieee1275_encode_devname): Likewise.
51534
be369920 515352005-03-30 Marco Gerards <metgerards@student.han.nl>
51536
51537 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
51538 `grub_loader_unset'.
51539
a5ce3a4a 515402005-03-26 Hollis Blanchard <hollis@penguinppc.org>
51541
51542 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
51543 instead of grub_ieee1275_interpret.
51544 (grub_halt_init): New function.
51545 (grub_halt_fini): Likewise.
51546 (GRUB_MOD_INIT): Correct message grammar.
51547 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
51548 instead of grub_ieee1275_interpret.
51549 (grub_reboot_init): New function.
51550 (grub_reboot_fini): Likewise.
51551 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
51552 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
51553 util/i386/pc/misc.c with commands/ieee1275/halt.c,
51554 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
51555 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
51556 function.
51557 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
51558 Add prototype.
51559 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
51560 prototype.
51561 (grub_halt): Likewise.
51562 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
51563 (cmain): Remove __attribute__((unused)).
51564 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
51565 (grub_heap_len): Likewise.
51566 (grub_machine_fini): New function.
51567 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
51568 (grub_halt): Likewise.
51569 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
51570 function.
51571 * util/powerpc/ieee1275/misc.c: New file.
51572
0058f771 515732005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
51574
51575 * DISTLIST: New file.
51576 * gendistlist.sh: Likewise.
f19dbdb7 51577
0058f771 51578 * Makefile.in (COMMON_DISTFILES): Removed.
51579 (BOOT_DISTFILES): Likewise.
51580 (CONF_DISTFILES): Likewise.
51581 (DISK_DISTFILES): Likewise.
51582 (FS_DISTFILES): Likewise.
51583 (INCLUDE_DISTFILES): Likewise.
51584 (KERN_DISTFILES): Likewise.
51585 (LOADER_DISTFILES): Likewise.
51586 (TERM_DISTFILES): Likewise.
51587 (UTIL_DISTFILES): Likewise.
51588 (DISTFILES): Likewise.
51589 (uninstall): Uninstall files in $(pkgdata_DATA).
51590 (DISTLIST): New target.
51591 (distdir): Use the contents of the file DISTLIST to get a list of
51592 distributed files.
51593
46b3b8a5 515942005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
51595
51596 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
51597 descriptor. This is ported from GRUB Legacy.
51598
51599 * gencmdlist.sh: Added an extra semicolon to make it work with
51600 old sed versions. Reported by Robert Bihlmeyer
51601 <robbe@orcus.priv.at>.
51602
5822ff87 516032005-03-08 Yoshinori Okuji <okuji@enbug.org>
51604
51605 Automatic loading of commands is supported.
f19dbdb7 51606
5822ff87 51607 * normal/main.c (read_command_list): New function.
51608 (grub_normal_execute): Call read_command_list.
51609
51610 * normal/command.c (grub_register_command): Return zero or CMD.
51611 Allocate CMD->NAME from the heap.
51612 Initialize CMD->MODULE_NAME to zero.
51613 Find the same name as well. If the same command is found and it is
51614 a dummy command, overwrite members. If it is not a dummy command,
51615 return zero.
51616 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
51617 (grub_command_find): If a dummy command is found, load a module
51618 and retry to find a command only once.
51619
51620 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
51621 make sure that each command is loaded.
51622
51623 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
51624 macro.
51625 (struct grub_command): Remove const from the member `name'.
51626 Add a new member `module_name'.
51627 (grub_register_command): Return grub_command_t.
51628
51629 * commands/help.c (grub_cmd_help): Call grub_command_find to make
51630 sure that each command is loaded.
51631
51632 * genmk.rb (PModule::rule): Specify a module name without the
51633 suffix ".mod" to gencmdlist.sh.
51634
7b1f4b57 516352005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
51636
51637 * gencmdlist.sh: New file.
f19dbdb7 51638
7b1f4b57 51639 * genmk.rb (PModule::rule): Generate a rule for a command list.
51640 Clean command.lst.
51641 Generate command.lst from $(COMMANDFILES).
51642
51643 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
51644 (DATA): Added $(pkgdata_DATA).
51645 (install-local): Install files in $(pkgdata_DATA).
51646
062aaf39 516472005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
51648
51649 * term/i386/pc/vga.c (debug_command): Removed.
51650 (GRUB_MOD_INIT): Do not register the command "debug".
51651
51652 From Hollis Blanchard:
51653 * commands/configfile.c: New file.
51654 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
51655 commands/configfile.c.
51656 (pkgdata_MODULES): Added configfile.mod.
51657 (configfile_mod_SOURCES): New variable.
51658 (configfile_mod_CFLAGS): Likewise.
51659 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
51660 commands/configfile.c.
51661 (pkgdata_MODULES): Added configfile.mod.
51662 (configfile_mod_SOURCES): New variable.
51663 (configfile_mod_CFLAGS): Likewise.
51664 * util/grub-emu.c (main): Call grub_configfile_init and
51665 grub_configfile_fini.
51666 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
51667 prototype.
51668 [GRUB_UTIL] (grub_configfile_fini): Likewise.
f19dbdb7 51669
cee01aa6 516702005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
51671
51672 * normal/arg.c (grub_arg_show_help): Do not show the bug report
51673 address.
51674
51675 * commands/help.c (grub_cmd_help): Do not print newlines after
51676 the last command in print_command_help.
51677
93f3a1d8 516782005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
51679
51680 * commands/default.h: New file.
51681 * commands/timeout.h: Likewise.
51682 * normal/context.c: Likewise.
f19dbdb7 51683
93f3a1d8 51684 * util/misc.c: Do not include sys/times.h.
51685 Include sys/time.h and grub/machine/time.h.
51686 (grub_get_rtc): Rewritten with gettimeofday.
51687
51688 * util/grub-emu.c (main): Call grub_default_init and
51689 grub_timeout_init before grub_normal_init, and call
51690 grub_timeout_fini and grub_default_fini after grub_main.
51691
51692 * util/console.c (grub_ncurses_checkkey): Return the read
51693 character or -1.
51694
51695 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
51696 timeouts.
51697
51698 * normal/main.c (read_config_file): Push MENU. If this fails,
51699 print an error and wait for a user input.
51700 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
51701 If a menu is empty or an error occurs, pop MENU.
51702 (grub_normal_execute): Pop and free MENU after grub_menu_run
51703 returns.
51704
51705 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
51706
51707 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
51708 include time.h.
51709 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
51710 without GRUB_UTIL.
51711 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
51712 time.h.
51713 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
51714 without GRUB_UTIL.
51715
51716 * include/grub/normal.h (struct grub_menu_list): New struct.
51717 (grub_menu_list_t): New type.
51718 (struct grub_context): New struct.
51719 (grub_context_t): New type.
51720 (grub_register_command): Got rid of EXPORT_FUNC.
51721 (grub_unregister_command): Likewise.
51722 (grub_context_get): New prototype.
51723 (grub_context_get_current_menu): Likewise.
51724 (grub_context_push_menu): Likewise.
51725 (grub_context_pop_menu): Likewise.
51726 [GRUB_UTIL] (grub_default_init): Likewise.
51727 [GRUB_UTIL] (grub_default_fini): Likewise.
51728 [GRUB_UTIL] (grub_timeout_init): Likewise.
51729 [GRUB_UTIL] (grub_timeout_fini): Likewise.
51730
51731 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
51732 commands/timeout.c and normal/context.c.
51733 (pkgdata_MODULES): Added default.mod and timeout.mod.
51734 (normal_mod_SOURCES): Added normal/context.c.
51735 (default_mod_SOURCES): New variable.
51736 (default_mod_CFLAGS): Likewise.
51737 (timeout_mod_SOURCES): Likewise.
51738 (timeout_mod_CFLAGS): Likewise.
51739 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
51740 conf/i386-pc.rmk.
51741 (pkgdata_MODULES): Added default.mod and timeout.mod.
51742 (normal_mod_SOURCES): Added normal/context.c.
51743 (default_mod_SOURCES): New variable.
51744 (default_mod_CFLAGS): Likewise.
51745 (timeout_mod_SOURCES): Likewise.
51746 (timeout_mod_CFLAGS): Likewise.
51747
51748 * Makefile.in (all-local): Added $(MKFILES).
51749
4ed2e1dd 517502005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
51751
51752 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
51753 (grub_emu_SOURCES): Likewise.
51754 (pkgdata_MODULES): Add `sun.mod'.
51755 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
51756 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51757 `partmap/sun.c'.
51758 (pkgdata_MODULES): Add `sun.mod'.
51759 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
51760 * include/grub/partition.h (grub_sun_partition_map_init): New
51761 prototype.
51762 (grub_sun_partition_map_fini): Likewise.
51763 * partmap/sun.c: New file.
51764 * util/grub-emu.c (main): Initialize and de-initialize the sun
51765 partitionmap support.
51766
4d4e372e 517672005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
51768
51769 This implements an Emacs-like menu entry editor.
f19dbdb7 51770
4d4e372e 51771 * normal/menu_entry.c: New file.
f19dbdb7 51772
4d4e372e 51773 * util/console.c (grub_ncurses_putchar): Translate some Unicode
51774 characters to ASCII.
51775 (saved_char): New variable.
51776 (grub_ncurses_checkkey): Rewritten completely.
51777 (grub_ncurses_getkey): Likewise.
51778 (grub_ncurses_init): Call raw instead of cbreak.
51779
51780 * normal/menu.c (print_entry): Do not put a space.
51781 (init_page): Renamed to ...
51782 (grub_menu_init_page): ... this. All callers changed.
51783 (edit_menu_entry): Removed.
51784 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
51785
51786 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
51787
51788 * kern/misc.c (grub_vprintf): Call grub_refresh.
51789
51790 * normal/menu.c (DISP_LEFT): Renamed to ...
51791 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
51792 * normal/menu.c (DISP_UP): Renamed to ...
51793 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
51794 * normal/menu.c (DISP_RIGHT): Renamed to ...
51795 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
51796 * normal/menu.c (DISP_DOWN): Renamed to ...
51797 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
51798 * normal/menu.c (DISP_HLINE): Renamed to ...
51799 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
51800 * normal/menu.c (DISP_VLINE): Renamed to ...
51801 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
51802 * normal/menu.c (DISP_UL): Renamed to ...
51803 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
51804 * normal/menu.c (DISP_UR): Renamed to ...
51805 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
51806 * normal/menu.c (DISP_LL): Renamed to ...
51807 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
51808 * normal/menu.c (DISP_LR): Renamed to ...
51809 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
51810 * normal/menu.c (TERM_WIDTH): Renamed to ...
51811 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
51812 * normal/menu.c (TERM_HEIGHT): Renamed to ...
51813 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
51814 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
51815 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
51816 * normal/menu.c (TERM_MARGIN): Renamed to ...
51817 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
51818 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
51819 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
51820 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
51821 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
51822 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
51823 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
51824 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
51825 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
51826 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
51827 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
51828 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
51829 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
51830 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
51831 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
51832 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
51833 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
51834 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
51835 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
51836 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
51837 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
51838 All callers changed.
51839
51840 * include/grub/normal.h: New prototype.
51841
51842 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
51843 normal/menu_entry.c.
51844 (normal_mod_SOURCES): Likewise.
51845 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
51846 (normal_mod_SOURCES): Likewise.
51847
e6b92c8a 518482005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
51849
51850 * include/grub/normal.h (grub_halt_init): New prototype.
51851 (grub_halt_fini): Likewise.
51852 (grub_reboot_init): Likewise.
51853 (grub_reboot_fini): Likewise.
51854
51855 * util/grub-emu.c: Include signal.h.
51856 (main_env): New global variable.
51857 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
51858 catch C-c.
51859 (grub_machine_fini): New function.
51860 (main): Call grub_halt_init and grub_reboot_init before
51861 grub_main, and grub_reboot_fini and grub_halt_fini after it.
51862 Call setjmp with MAIN_ENV to go back afterwards.
51863 Call grub_machine_fini right before return.
51864
51865 * include/grub/util/misc.h: Include setjmp.h.
51866 (main_env): New prototype.
51867
51868 * include/grub/kernel.h (grub_machine_fini): New prototype.
51869 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
51870 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
51871
51872 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
51873 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
51874 * term/i386/pc/console.c (grub_console_fini): Likewise.
f19dbdb7 51875
e6b92c8a 51876 * util/i386/pc/misc.c: New file.
f19dbdb7 51877
e6b92c8a 51878 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
51879 util/i386/pc/misc.c, commands/i386/pc/halt.c and
51880 commands/i386/pc/reboot.c.
51881
c642636f 518822005-02-14 Guillem Jover <guillem@hadrons.org>
51883
51884 * include/grub/dl.h (grub_dl_check_header): New prototype.
51885 (grub_arch_dl_check_header): Change return type to grub_err_t,
51886 remove size parameter and export function. Update all callers.
51887 * kern/dl.c (grub_dl_check_header): New function.
51888 (grub_dl_load_core): Use `grub_dl_check_header' instead of
51889 `grub_arch_dl_check_header'. Check ELF type. Check if sections
51890 are inside the core.
51891 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
51892 independent ELF header checks.
51893 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
51894 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
51895 `grub_dl_check_header' instead of explicit checks. Check for the
51896 ELF type.
51897 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
51898 `grub_dl_check_header' instead of explicit checks. Remove arch
51899 specific ELF header checks.
51900
e6b92c8a 51901 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
51902 argument SIZE.
51903
5eabe94b 519042005-02-13 Hollis Blanchard <hollis@penguinppc.org>
51905
51906 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
51907 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
51908
1b14a681 519092005-02-12 Hollis Blanchard <hollis@penguinppc.org>
51910
51911 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
f19dbdb7 51912 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
1b14a681 51913 (part_map_iterate): Clear `grub_errno' and return 0 if
f19dbdb7 51914 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
1b14a681 51915 * partmap/amiga.c (amiga_partition_map_iterate): Return
51916 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
51917 * partmap/apple.c (apple_partition_map_iterate): Likewise.
51918
aca108aa 519192005-02-01 Guillem Jover <guillem@hadrons.org>
51920
51921 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
51922 help info.
51923
c9f9c556 519242005-01-31 Marco Gerards <metgerards@student.han.nl>
51925
51926 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
51927 Removed prototype.
51928 (grub_rescue_cmd_linux): New prototype.
51929 (grub_rescue_cmd_initrd): Likewise.
51930 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
51931 `bi_rec'.
51932 (grub_linux_release_mem): Release the memory for the initrd.
51933 (grub_load_linux): Renamed from this...
51934 (grub_rescue_cmd_linux): ...To this. Changed all callers.
51935 Changed `entry' not to be static. Loop over memory regions to
51936 find another one when the default fails.
51937 (grub_rescue_cmd_initrd): New function.
51938 (grub_linux_init): Remove function.
51939 (grub_linux_fini): Likewise.
51940 (GRUB_MOD_INIT): Register `initrd'.
51941 (GRUB_MOD_FINI): Unregister `initrd'.
51942 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
51943 Function removed.
51944 (grub_linux_normal_fini): Likewise.
51945 (GRUB_MOD_INIT): Register `initrd'.
51946 (GRUB_MOD_FINI): Unregister `initrd'.
51947
990cf3aa 519482005-01-31 Marco Gerards <metgerards@student.han.nl>
51949
51950 * commands/help.c: New file.
51951 * normal/arg.c (show_help): Renamed to...
51952 (grub_arg_show_help): ... this.
51953 * commands/i386/pc/halt.c: New file.
51954 * commands/i386/pc/reboot.c: Likewise.
51955 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
51956 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
51957 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
51958 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
51959 variables.
51960 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51961 `commands/help.c'.
51962 (pkgdata_MODULES): Add `help.mod'.
51963 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
51964 * grub/i386/pc/init.h (grub_reboot): New prototype.
51965 (grub_halt): Likewise.
51966 * include/grub/normal.h (grub_arg_show_help): New prototype.
51967 (grub_help_init): Likewise.
51968 (grub_help_fini): Likewise.
51969 * util/grub-emu.c (main): Initialize and deinitialize the help
51970 command.
51971
51972 * normal/cmdline.c (grub_cmdline_get): Doc fix.
51973
51974 * normal/command.c (grub_command_init): Fixed the description of
51975 the `set' and `unset' commands.
51976
519772005-01-31 Marco Gerards <metgerards@student.han.nl>
0f79cdc1 51978
51979 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
51980 function.
51981 * commands/ieee1275/halt.c: New file.
51982 * commands/ieee1275/reboot.c: Likewise.
51983 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
51984 `__attribute__ ((unused))'. Some GCS related fixed.
51985 (grub_suspend_init) [GRUB_UTIL]: Function removed.
51986 (grub_suspend_fini): Likewise.
51987 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
51988 and `halt.mod'.
51989 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
51990 (halt_mod_CFLAGS): New variables.
51991 * include/grub/powerpc/ieee1275/ieee1275.h
51992 (grub_ieee1275_interpret): New prototype.
51993
1ab09cc7 519942005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
51995
51996 * include/grub/misc.h (memmove): New prototype.
51997 (memcpy): Likewise.
51998
8b8cbdb2 519992005-01-22 Hollis Blanchard <hollis@penguinppc.org>
52000
52001 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
52002 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
52003
e3741a27 520042005-01-22 Marco Gerards <metgerards@student.han.nl>
52005
52006 * kern/misc.c (grub_strndup): Function rewritten.
52007
776bd780 520082005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
52009
52010 * normal/menu.c (TERM_WIDTH): Macro redefined.
52011 (TERM_TOP_BORDER_Y): Likewise.
52012 (draw_border): Replaced while-loop by a for-loop. Make the number
52013 of lines consistent with the number of lines displayed in
52014 print_entries. Added a margin below the rectangle.
52015 (print_entry): Make the entry fit in the rectangle.
52016 (print_entries): Display the scroll arrows next to the right
52017 border.
52018
78026bce 520192005-01-21 Marco Gerards <metgerards@student.han.nl>
52020
52021 * fs/minix.c (grub_minix_find_file): Reserve more space for
52022 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
52023 `grub_strncpy' to copy `path' into it.
52024
67bbaf0f 520252005-01-21 Marco Gerards <metgerards@student.han.nl>
52026
52027 Add the loopback device, a device via which files can be accessed
52028 as devices.
f19dbdb7 52029
67bbaf0f 52030 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
52031 (pkgdata_MODULES): Add loopback.mod.
52032 (loopback_mod_SOURCES): New variable.
52033 (loopback_mod_CFLAGS): Likewise.
52034 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
52035 `disk/loopback.c'.
52036 (pkgdata_MODULES): Add loopback.mod.
52037 (loopback_mod_SOURCES): New variable.
52038 (loopback_mod_CFLAGS): Likewise.
52039 * disk/loopback.c: new file.
52040 * include/grub/normal.h (grub_loop_init): New prototype.
52041 (grub_loop_fini): New prototype.
52042 * util/grub-emu.c (main): Initialize and de-initialize loopback
52043 support.
52044 * include/grub/disk.h (grub_disk_dev_id): Add
52045 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
52046
6f1c18bd 520472005-01-20 Hollis Blanchard <hollis@penguinppc.org>
52048
52049 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
52050 function.
52051 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
52052 (suspend_mod_SOURCES): New variable.
52053 (suspend_mod_CFLAGS): Likewise.
52054 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
52055 New prototype.
52056 * commands/ieee1275/suspend.c: New file.
52057
b38551da 520582005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
52059
52060 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
f19dbdb7 52061 ((unused))' to `__attribute__ ((used))'.
b38551da 52062 (GRUB_MOD_FINI): Likewise.
52063 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
52064 * genmk.rb (PModule): Assign space to common symbols when linking
52065 modules.
52066
777aff39 520672005-01-20 Marco Gerards <metgerards@student.han.nl>
52068
52069 * include/grub/mm.h (grub_mm_init_region): Change the type of the
52070 `unsigned' arguments to `grub_size_t'.
52071 (grub_malloc): Likewise.
52072 (grub_realloc): Likewise.
52073 (grub_memalign): Likewise.
52074 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
52075 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
52076 * util/misc.c (grub_malloc): Likewise.
52077 (grub_realloc): Likewise.
52078 * kern/mm.c (get_header_from_pointer): Change the casts to
52079 `unsigned' into a cast to `grub_size_t'.
52080
52081 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
52082 point to `currnode' when `currnode' is changed.
52083
52084 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
52085 Schottelius <nico-linux@schottelius.org>.
52086
d0ff18e1 520872005-01-09 Hollis Blanchard <hollis@penguinppc.org>
52088
52089 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
52090 (note_path): Remove variable.
52091 (GRUB_IEEE1275_NOTE_NAME): New macro.
52092 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
52093 (grub_ieee1275_note_hdr): New structure.
52094 (grub_ieee1275_note_desc): Likewise.
52095 (grub_ieee1275_note): Likewise.
52096 (load_note): Remove `dir' argument. All callers updated. Remove
52097 `note_img' and `path'. Do not load a file from `note_path'.
52098 Initialize a struct grub_ieee1275_note and write that to `out'.
52099 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
52100
4ca7004c 521012005-01-05 Marco Gerards <metgerards@student.han.nl>
52102
52103 * util/misc.c (grub_util_read_image): Revert last change. It
52104 called `grub_util_read_at', which seeks from the beginning of the
52105 file.
52106
0b412211 521072005-01-04 Hollis Blanchard <hollis@penguinppc.org>
52108
52109 * TODO: Add note about endianness in grub-mkimage.
52110 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
52111 section.
52112 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
52113 (grub_mkimage_SOURCES): New target.
52114 * include/grub/kernel.h (grub_start_addr): Remove variable.
52115 (grub_end_addr): Likewise.
52116 (grub_total_module_size): Likewise.
52117 (grub_kernel_image_size): Likewise.
52118 (GRUB_MODULE_MAGIC): New constant.
52119 (grub_module_info): New structure.
52120 (grub_arch_modules_addr): New prototype.
52121 (grub_get_end_addr): Remove prototype.
52122 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
52123 * include/grub/powerpc/ieee1275/kernel.h: New file.
52124 * include/grub/util/misc.h (grub_util_get_fp_size): New
52125 prototype.
52126 (grub_util_read_at): Likewise.
52127 (grub_util_write_image_at): Likewise.
52128 * kern/main.c (grub_get_end_addr): Remove function.
52129 (grub_load_modules): Call grub_arch_modules_addr instead of using
52130 grub_end_addr. Look for a grub_module_info struct in memory. Use
52131 the grub_module_info fields instead of calling grub_get_end_addr
52132 as loop conditions. Move grub_add_unused_region code here.
52133 (grub_add_unused_region): Remove function.
52134 * kern/i386/pc/init.c: Include grub/cache.h.
52135 (grub_machine_init): Remove call to grub_get_end_addr. Remove
52136 one call to add_mem_region.
52137 (grub_arch_modules_addr): New function.
52138 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
52139 (grub_total_module_size): Likewise.
52140 Include grub/machine/kernel.h.
52141 (grub_arch_modules_addr): New function.
52142 * util/grub-emu.c (grub_end_addr): Remove variable.
52143 (grub_total_module_size): Likewise.
52144 (grub_arch_modules_addr): New function.
52145 * util/misc.c: Include unistd.h.
52146 (grub_util_get_fp_size): New function.
52147 (grub_util_read_at): Likewise.
52148 (grub_util_write_image_at): Likewise.
52149 (grub_util_read_image): Call grub_util_read_at.
52150 (grub_util_write_image): Call grub_util_write_image_at.
52151 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
52152 additional memory in kernel_img for a struct grub_module_info.
52153 Fill in that grub_module_info.
52154 * util/powerpc/ieee1275/grub-mkimage.c: New file.
52155
458786f8 521562005-01-03 Hollis Blanchard <hollis@penguinppc.org>
52157
52158 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
52159 New function.
52160 * include/grub/powerpc/ieee1275/ieee1275.h
52161 (grub_ieee1275_milliseconds): New prototype.
52162 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
52163 Change to 1000.
52164 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
52165 grub_ieee1275_milliseconds.
52166
ac507d1b 521672005-01-03 Hollis Blanchard <hollis@penguinppc.org>
52168
52169 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
52170 variable.
52171 (find_options): New function.
52172 (cmain): Call find_options.
52173 * include/grub/powerpc/ieee1275/ieee1275.h
52174 (grub_ieee1275_realmode): New extern variable.
52175 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
52176 grub_map if grub_ieee1275_realmode is false.
52177
6b8fd1c4 521782004-12-29 Marco Gerards <metgerards@student.han.nl>
52179
52180 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
52181 lines are inserted and make it work like readline. Reported by
52182 Vincent Pelletier <subdino2004@yahoo.fr>.
52183
8514a1e0 521842004-12-28 Marco Gerards <metgerards@student.han.nl>
52185
52186 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
52187
52188 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
52189 `kern/powerpc/cache.S'.
52190
924b6140 521912004-12-27 Marco Gerards <metgerards@student.han.nl>
52192
52193 * genmk.rb: Handle the `Program' class in the main loop. Written
52194 by Johan Rydberg <jrydberg@gnu.org>.
52195 (Program): New class.
52196 (programs): New variable.
52197 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
52198 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
52199 instead of "grub/kernel.h". Include <grub/machine/init.h>.
52200 (help_arch): Function removed.
52201 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
52202 `powerpc/libgcc.h' and `loader.h'.
52203 (pkgdata_PROGRAMS): New variable.
52204 (sbin_UTILITIES): Variable removed.
52205 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
52206 (grubof_SOURCES): Variable re-defined so it only includes the
52207 core functionality.
52208 (grubof_CFLAGS): Remove `-DGRUBOF'.
52209 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
52210 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
52211 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
52212 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
52213 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
52214 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
52215 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
52216 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
52217 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
52218 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
52219 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
52220 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
52221 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
52222 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
52223 (pc_mod_CFLAGS): New variables.
52224 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
52225 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
52226 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
52227 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
52228 Moved from here...
52229 * include/grub/i386/pc/init.h (grub_os_area_addr)
52230 (rub_os_area_size): ... to here.
52231 * include/grub/powerpc/ieee1275/ieee1275.h
52232 (grub_ieee1275_entry_fn): Export symbol.
52233 * include/grub/powerpc/ieee1275/init.h: New file.
52234 * include/grub/powerpc/libgcc.h: Likewise.
52235 * include/grub/cache.h: Likewise.
52236 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
52237 <hollis@penguinppc.org>.
52238 * kern/dl.c: Include <grub/cache.h>.
52239 (grub_dl_flush_cache): New function.
52240 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
52241 for this module.
52242 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
52243 (grub_console_init): Removed prototypes.
52244 (grub_machine_init): Don't initialize the modules anymore.
52245 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
52246 static.
52247 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
52248 Macro undef removed.
52249 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
52250 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
52251 relocation `R_PPC_REL32'. Return an error when the relocation is
52252 unknown.
52253 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
52254 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
52255 * util/misc.c (grub_arch_sync_caches): Likewise.
52256
e4b47e0c 522572004-12-19 Marco Gerards <metgerards@student.han.nl>
52258
52259 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
52260 `symlist.c', add `grubof_symlist.c'.
52261 (symlist.c): Variable removed.
52262 (grubof_HEADERS): Variable added.
52263 (grubof_symlist.c): New target.
52264 (kernel_syms.lst): Use `grubof_HEADERS' instead of
52265 `kernel_img_HEADERS'.
52266 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
52267 * kern/powerpc/dl.c: New file.
52268 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
52269 Function removed.
52270 (grub_arch_dl_relocate_symbols): Likewise.
52271 (grub_register_exported_symbols): Likewise.
52272
4ceb3636 522732004-12-13 Marco Gerards <metgerards@student.han.nl>
52274
52275 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
52276 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
52277 to fail instead. Reported by Vincent Pelletier
52278 <subdino2004@yahoo.fr>.
52279
52280 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
52281 it is not allocated. Reported by Vincent Pelletier
52282 <subdino2004@yahoo.fr>.
52283
52284 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
52285 output so the output looks better.
f19dbdb7 52286
3f1578fe 522872004-12-04 Marco Gerards <metgerards@student.han.nl>
52288
52289 Modulize the partition map support and add support for the amiga
52290 partition map.
f19dbdb7 52291
3f1578fe 52292 * commands/ls.c: Include <grub/partition.h> instead of
52293 <grub/machine/partition.h>.
52294 * kern/disk.c: Likewise.
52295 * kern/rescue.c: Likewise.
52296 * loader/i386/pc/chainloader.c: Likewise.
52297 * normal/cmdline.c: Likewise.
52298 * kern/powerpc/ieee1275/init.c: Likewise.
52299 (grub_machine_init): Call `grub_pc_partition_map_init',
52300 `grub_amiga_partition_map_init' and
52301 `grub_apple_partition_map_init'.
52302 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
52303 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
52304 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
52305 `partition.h' and `pc_partition.h'.
52306 (grub_setup_SOURCES): Remove
52307 `disk/i386/pc/partition.c'. Add `kern/partition.c',
52308 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
52309 (grub_emu_SOURCES): Likewise.
52310 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
52311 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
52312 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
52313 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
52314 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
52315 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
52316 (grubof_SOURCES): Likewise.
52317 * disk/i386/pc/partition.c: File removed.
52318 * disk/powerpc/ieee1275/partition.c: Likewise.
52319 * include/grub/powerpc/ieee1275/partition.h: Likewise.
52320 * include/grub/i386/pc/partition.h: Likewise.
52321 * kern/partition.c: New file.
52322 * partmap/amiga.c: Likewise.
52323 * partmap/apple.c: Likewise.
52324 * partmap/pc.c: Likewise.
52325 * include/grub/partition.h: Likewise..
52326 * include/grub/pc_partition.h: Likewise.
52327 * util/grub-emu.c: Include <grub/partition.h> instead of
52328 <grub/machine/partition.h>.
52329 (main): Call `grub_pc_partition_map_init',
52330 `grub_amiga_partition_map_init' and
52331 `grub_apple_partition_map_init' and deinitialize afterwards.
52332 * util/i386/pc/biosdisk.c: Include `#include
52333 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
52334 `<grub/machine/partition.h>'.
52335 * util/i386/pc/grub-setup.c: Likewise.
52336 * util/i386/pc/biosdisk.c: Likewise.
52337 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
52338 partition information in case of a PC partition.
52339 * util/i386/pc/grub-setup.c: Include `#include
52340 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
52341 `<grub/machine/partition.h>'.
52342 (setup): Only access the PC specific partition information in case
52343 of a PC partition.
52344
0ef4ced9 523452004-11-17 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 52346
0ef4ced9 52347 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
52348 (grub_longjmp): Likewise.
52349 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
52350 20.
52351 * normal/powerpc/setjmp.S: New file.
52352 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
52353 `normal/powerpc/setjmp.S'.
52354 (grubof_CFLAGS): Add `-DGRUBOF'.
52355 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
52356 [GRUB_UTIL && !GRUBOF].
f19dbdb7 52357
19950e29 523582004-11-16 Marco Gerards <metgerards@student.han.nl>
52359
52360 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
52361 property named `name'. Correctly handle the error returned by
52362 `grub_ieee1275_finddevice' if a device can not be opened.
52363
a2fea427 523642004-11-02 Hollis Blanchard <hollis@penguinppc.org>
52365
52366 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
52367 `actual' for negativity.
52368 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
52369 kern/fshelp.c.
52370
41ea0ea3 523712004-11-01 Marco Gerards <metgerards@student.han.nl>
52372
52373 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
52374 (PAGE_OFFSET): New macro.
52375 (CRTC_ADDR_PORT): Likewise.
52376 (CRTC_DATA_PORT): Likewise.
52377 (START_ADDR_HIGH_REGISTER): Likewise.
52378 (START_ADDR_LOW_REGISTER): Likewise.
52379 (GRAPHICS_ADDR_PORT): Likewise.
52380 (GRAPHICS_DATA_PORT): Likewise.
52381 (READ_MAP_REGISTER): Likewise.
52382 (INPUT_STATUS1_REGISTER): Likewise.
52383 (INPUT_STATUS1_VERTR_BIT): Likewise.
52384 (page): New variable.
52385 (wait_vretrace): New function.
52386 (set_read_map): Likewise.
52387 (set_start_address): Likewise.
52388 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
52389 the right page.
52390 (check_vga_mem): Take the page into account.
52391 (write_char): Likewise.
52392 (write_cursor): Likewise.
52393 (scroll_up): Likewise. Copy the page to the page that is not
52394 shown and switch between both pages.
52395 (grub_vga_putchar): Fix off by one error.
52396 (grub_vga_cls): Wait for the vertical retrace. Take the page into
52397 account.
52398
ad0bd20b 523992004-11-01 Marco Gerards <metgerards@student.han.nl>
52400
52401 Add support for iso9660 (including rockridge).
f19dbdb7 52402
ad0bd20b 52403 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
52404 (iso9660_mod_SOURCES): New variable.
52405 (iso9660_mod_CFLAGS): Likewise.
52406 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
52407 * include/grub/fs.h (grub_iso9660_init): New prototype.
52408 * util/grub-emu.c (main): Call `grub_iso9660_init'.
52409 * fs/iso9660.c: New file.
52410
52411 * include/grub/misc.h (grub_strncat): New prototype.
52412 * kern/misc.c (grub_strncat): New function.
f19dbdb7 52413
ad0bd20b 52414 * fs/hfs.c (grub_hfs_mount): Translate the error
52415 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
52416 * fs/jfs.c (grub_jfs_mount): Likewise.
52417 * fs/ufs.c (grub_ufs_mount): Likewise.
52418
a5477a59 524192004-10-28 Hollis Blanchard <hollis@penguinppc.org>
52420
52421 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
52422 which initialized BAT registers.
52423 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
52424 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
52425 Move from here...
52426 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
52427 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
52428 ... to here.
52429 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
52430 (grub_mapclaim): Likewise.
52431 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
52432 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
52433 hand.
52434
9304c1f8 524352004-10-19 Hollis Blanchard <hollis@penguinppc.org>
52436
52437 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
52438 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
52439 -ffreestanding and -msoft-float.
52440
86f4ae25 524412004-10-15 Hollis Blanchard <hollis@penguinppc.org>
52442
52443 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
52444 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
52445 set in grub_ieee1275_flags.
52446
38912228 524472004-10-14 Hollis Blanchard <hollis@penguinppc.org>
52448
52449 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
52450 prototype.
52451 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
52452 grub_console_init first.
52453 Change the memory range used for grub_ieee1275_claim and
52454 grub_mm_init_region.
52455 Print an error message if the claim fails.
52456 Include <grub/misc.h>.
52457
d1923dc8 524582004-10-13 Hollis Blanchard <hollis@penguinppc.org>
52459
52460 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
52461 Call grub_children_iterate for device nodes of type `scsi',
52462 `ide', or `ata'.
52463 (grub_ofdisk_open): Remove manual device alias resolution.
52464 Fix memory leak when device cannot be opened.
f19dbdb7 52465 * include/grub/powerpc/ieee1275/ieee1275.h
d1923dc8 52466 (grub_children_iterate): New prototype.
52467 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
52468 New function.
52469 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
52470 Return -1 if args.size was -1.
52471
4512e4f3 524722004-10-11 Hollis Blanchard <hollis@penguinppc.org>
52473
52474 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
52475 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
52476 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
52477 Open Firmware's memory for it; claim memory from _start to _end.
52478 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
52479 (_end): New extern.
52480 (_start): Zero BSS from __bss_start to _end.
52481 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
52482 New extern.
52483 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
52484
4d61feb0 524852004-10-11 Hollis Blanchard <hollis@penguinppc.org>
52486
ad0bd20b 52487 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
52488 -1 if args.base was -1.
4d61feb0 52489
026fa2f9 524902004-10-08 Hollis Blanchard <hollis@penguinppc.org>
52491
52492 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
52493 escape sequence instead of a literal ^L. Also call
52494 grub_ofconsole_gotoxy.
52495
9f2220ef 524962004-10-03 Hollis Blanchard <hollis@penguinppc.org>
52497
52498 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
52499 void * arguments to grub_addr_t. All callers updated. Also make
52500 the `result' argument optional.
52501 (grub_ieee1275_release): change void * arguments to grub_addr_t.
52502 All callers updated.
52503
8a572cd7 525042004-09-22 Hollis Blanchard <hollis@penguinppc.org>
52505
52506 * commands/ls.c (grub_ls_list_files): Use the string following the
52507 initial ')', if present, as the filesystem path.
52508 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
52509
52510 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
52511
18aa81f2 525122004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
52513
52514 Make the source code of the menu interface more readable.
f19dbdb7 52515
18aa81f2 52516 * normal/menu.c: Include grub/mm.h.
52517 (TERM_WIDTH): New macro.
52518 (TERM_HEIGHT): Likewise.
52519 (TERM_INFO_HEIGHT): Likewise.
52520 (TERM_MARGIN): Likewise.
52521 (TERM_SCROLL_WIDTH): Likewise.
52522 (TERM_TOP_BORDER_Y): Likewise.
52523 (TERM_LEFT_BORDER_X): Likewise.
52524 (TERM_BORDER_WIDTH): Likewise.
52525 (TERM_MESSAGE_HEIGHT): Likewise.
52526 (TERM_BORDER_HEIGHT): Likewise.
52527 (TERM_NUM_ENTRIES): Likewise.
52528 (TERM_FIRST_ENTRY_Y): Likewise.
52529 (TERM_ENTRY_WIDTH): Likewise.
52530 (TERM_CURSOR_X): Likewise.
52531 (draw_border): Use macros instead of magic numbers.
52532 (print_entry): Likewise.
52533 (print_entries): Likewise.
52534 (run_menu): Likewise. Also, handle the key 'e'.
52535 (run_menu_entry): Ignore empty command lines.
52536 (print_message): Added a new argument EDIT. If EDIT is true,
52537 print a different message.
52538 (init_page): Likewise.
52539 (edit_menu_entry): New function. Not implemented yet.
52540
b47efe30 525412004-09-17 Marco Gerards <metgerards@student.han.nl>
52542
52543 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
52544 can be loaded from normal mode.
f19dbdb7 52545
b47efe30 52546 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
52547 `multiboot.mod'.
52548 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
52549 (multiboot_mod_CFLAGS): New variables.
52550 * loader/i386/pc/linux_normal.c: New file.
f19dbdb7 52551 * loader/i386/pc/multiboot_normal.c: Likewise.
52552
b47efe30 52553 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
52554 attribute `unused'.
f19dbdb7 52555
b47efe30 52556 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
52557 `fdiro' to read the mode information from instead of `diro'.
52558
52559 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
52560 looking up a symlink.
52561
52562 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
52563 macro.
52564 * normal/command.c (grub_command_execute): Don't parse the
52565 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
52566 flags of the command.
52567
52568 * normal/menu.c (grub_menu_run): Fix typo.
52569
da75ac71 525702004-09-14 Hollis Blanchard <hollis@penguinppc.org>
52571
52572 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
52573
52574 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
52575 `y + 1' instead of `y - 1'.
52576
52577 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
f19dbdb7 52578
062b24c2 525792004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
52580
52581 From Hollis Blanchard <hollis@penguinppc.org>:
52582 * kern/misc.c (memmove): New alias for grub_memmove.
52583 (memcmp): New alias for grub_memcmp.
52584 (memset): New alias for grub_memset.
f19dbdb7 52585 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
062b24c2 52586 Change "int handle" to "grub_ieee1275_phandle_t handle".
f19dbdb7 52587 * include/grub/powerpc/ieee1275/ieee1275.h
062b24c2 52588 (grub_ieee1275_get_property): Likewise.
f19dbdb7 52589
8ddad845 525902004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
52591
52592 Added normal mode command `chainloader' as module chain.mod, which
52593 depends on normal.mod and _chain.mod.
f19dbdb7 52594
8ddad845 52595 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
52596 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
52597 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
52598 Deleted prototype.
52599 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
52600 but arguments parsing moved to ...
52601 (grub_chainloader_cmd): ... here. New function.
52602 * include/grub/i386/pc/chainloader.h: New file.
52603 * loader/i386/pc/chainloader_normal.c: Likewise.
52604
2c1f4ce3 526052004-09-11 Marco Gerards <metgerards@student.han.nl>
52606
52607 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
52608 (grub_mkimage_LDFLAGS): Likewise.
52609 (grub_emu_SOURCES): Likewise.
52610 (kernel_img_HEADERS): Added fshelp.h.
52611 * fs/ext2.c: Include <grub/fshelp.h>.
52612 (FILETYPE_REG): New macro.
52613 (FILETYPE_INO_REG): Likewise.
52614 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
52615 Changed all users.
52616 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
52617 all users.
52618 (grub_fshelp_node): New struct.
52619 (grub_ext2_data): Added member `diropen'. Changed member `inode'
52620 to a pointer.
52621 (grub_ext2_get_file_block): Removed function.
52622 (grub_ext2_read_block): New function.
52623 (grub_ext2_read_file): Replaced parameter `data' by `node'.
52624 This function was written.
52625 (grub_ext2_mount): Read the root inode. Create a diropen struct.
52626 (grub_ext2_find_file): Removed function.
52627 (grub_ext2_read_symlink): New function.
52628 (grub_ext2_iterate_dir): Likewise.
52629 (grub_ext2_open): Rewritten.
52630 (grub_ext2_dir): Rewritten.
52631 * include/grub/fshelp.h: New file.
52632 * fs/fshelp.c: Likewise.
52633
3c52136a 526342004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
52635
52636 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
52637 (print_message): Add a missing newline.
52638 (run_menu): Added timeout support.
52639 (run_menu_entry): New local function.
52640 (grub_menu_run): Added support for booting.
52641
52642 * kern/loader.c (grub_loader_is_loaded): New function.
52643
52644 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
52645 (grub_get_rtc): Exported.
52646
52647 * include/grub/i386/pc/time.h: Include grub/symbol.h.
52648 (grub_get_rtc): Exported.
52649
52650 * include/grub/normal.h (struct grub_command_list): Remove
52651 constant from the member `command'.
52652
52653 * include/grub/loader.h (grub_loader_is_loaded): Declared.
52654
52655 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
52656
52657 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
52658
aa033560 526592004-08-28 Marco Gerards <metgerards@student.han.nl>
52660
52661 Add support for the JFS filesystem.
52662
52663 * fs/jfs.c: New file.
52664 * include/grub/fs.h (grub_jfs_init): New prototype.
52665 (grub_jfs_fini): New prototype.
52666 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
52667 (grub_emu_SOURCES): Likewise.
52668 (pkgdata_MODULES): Add jfs.mod.
52669 (jfs_mod_SOURCES): New variable.
52670 (jfs_mod_CFLAGS): Likewise.
52671 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
52672 (grubof_SOURCES): Likewise.
52673 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
52674
52675 * fs/fat.c (grub_fat_find_dir): Convert the filename little
52676 endian to the host endian.
52677 (grub_fat_utf16_to_utf8): Move function from there...
52678 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
fe987087 52679 the endianness of the source string anymore.
aa033560 52680 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
52681
94bc45af 526822004-08-24 Marco Gerards <metgerards@student.han.nl>
52683
52684 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
52685 (grub_boot_fini) [GRUB_UTIL]: Likewise.
52686 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
52687 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
f19dbdb7 52688
94bc45af 52689 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
52690 (grub_hfs_iterate_dir): Make the function static. Add prototypes
52691 for `node_found' and `it_dir'.
52692 (grub_hfs_dir): Add prototype for `dir_hook'.
52693
52694 * fs/minix.c (grub_minix_get_file_block): Add prototype for
52695 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
52696 and `indir32' to silence a gcc warning.
52697
52698 * include/grub/fs.h (grub_hfs_init): New prototype.
52699 (grub_hfs_fini): Likewise.
f19dbdb7 52700
52701
97543f08 527022004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
52703
52704 Each disk device has its own id now. This is useful to make use
52705 of multiple disk devices.
f19dbdb7 52706
97543f08 52707 * include/grub/disk.h (grub_disk_dev_id): New enum.
52708 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
52709 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
52710
52711 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
52712 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
52713
52714 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
52715 GRUB_DISK_DEVICE_OFDISK_ID as an id.
52716
52717 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
52718 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
52719
52720 * include/grub/disk.h (struct grub_disk_dev): Added a new member
52721 "id" which is used by the cache manager.
52722
52723 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
52724 of just "GRUB".
52725
64372eb4 527262004-08-18 Marco Gerards <metgerards@student.han.nl>
52727
52728 * fs/hfs.c: New file.
52729 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
52730 (grub_emu_SOURCES): Likewise.
52731 (pkgdata_MODULES): Add hfs.mod.
52732 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
52733 (grubof_SOURCES): Likewise.
52734 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
52735
52736 * include/grub/misc.h (grub_strncasecmp): Add prototype.
52737 * kern/misc.c (grub_strncasecmp): Add function.
52738
cc61b58f 527392004-08-14 Marco Gerards <metgerards@student.han.nl>
52740
52741 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
52742 with parentheses.
52743
52744 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
52745 (grub_ext2_dir): In case the directory entry type is unknown, read
52746 it from the inode.
52747
0ef123f6 527482004-08-02 Peter Bruin <pjbruin@dds.nl>
52749
52750 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
52751 grub_load_linux instead of grub_rescue_cmd_linux as second
52752 argument of grub_rescue_register_command.
52753
52754 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
52755
a447c5df 527562004-07-27 Marco Gerards <metgerards@student.han.nl>
52757
52758 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
52759 function.
52760 * commands/boot.c: Remove the check for `GRUB_UTIL'.
52761 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
52762 `loader/powerpc/ieee1275/linux.c',
52763 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
52764 * include/grub/powerpc/ieee1275/ieee1275.h
52765 (grub_ieee1275_release): New prototype.
52766 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
52767 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
52768 normal, boot, linux and linux_normal.
52769 * loader/powerpc/ieee1275/linux.c: New file.
52770 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
52771
5a9e3546 527722004-07-12 Marco Gerards <metgerards@student.han.nl>
52773
52774 * normal/arg.c (grub_arg_parse): Correct error handling after
52775 reallocating the argumentlist (check if `argl' is not null instead
52776 of checking if `args' is not null).
52777 * kern/mm.c (grub_realloc): Return the same pointer when using the
52778 same region, instead of returning the header address.
52779
e15199cb 527802004-07-11 Marco Gerards <metgerards@student.han.nl>
52781
52782 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
52783 one block instead of two when looking for the initial partition.
52784 (grub_partition_probe): Initialize the local variable `p' with 0.
52785 Use base 10 for the grub_strtoul call.
52786 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
52787 need for one local variable.
52788 (grub_strtoul): Don't add the new value to `num', instead of that
52789 just assign it.
52790
020616c2 527912004-07-11 Marco Gerards <metgerards@student.han.nl>
52792
52793 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
52794 (pxeboot_img_SOURCES): New variable.
52795 (pxeboot_img_ASFLAGS): Likewise.
52796 (pxeboot_img_LDFLAGS): Likewise.
52797 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
52798 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
52799 <lode_leroy@hotmail.com>.
52800
6c51eb64 528012004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
52802
52803 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
52804 there was no input.
52805
cfb12aff 528062004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
52807
52808 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
52809 the history buffer logic.
52810
6eabba74 528112004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
52812
52813 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
52814 (FILETYPE_INO_SYMLINK): New macros.
52815 (grub_ext2_find_file): Check if the node is a directory using the
52816 inode stat information instead of using the filetype in the
52817 dirent. Exclude the first character of an absolute symlink.
52818 (grub_ext2_dir): Mask out the filetype part of the mode member of
52819 the inode.
52820
66e19ef8 528212004-05-24 Marco Gerards <metgerards@student.han.nl>
52822
52823 Add support for UFS version 1 and 2. Add support for the minix
52824 filesystem version 1 and 2, both the variants with 14 and 30 long
52825 filenames.
f19dbdb7 52826
66e19ef8 52827 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
52828 fs/minix.c.
52829 (grub_emu_SOURCES): Likewise.
52830 (pkgdata_MODULES): Add ufs.mod and minix.mod.
52831 (ufs_mod_SOURCES): New variable.
52832 (ufs_mod_CFLAGS): Likewise.
52833 (minix_mod_SOURCES): Likewise.
52834 (minix_mod_CFLAGS): Likewise.
52835 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
52836 fs/minix.c.
52837 (grubof_SOURCES): Likewise.
52838 * fs/ufs.c: New file.
52839 * fs/minix.c: New file.
52840 * include/grub/fs.h (grub_ufs_init): New prototype.
52841 (grub_ufs_fini): Likewise.
52842 (grub_minix_init): Likewise.
52843 (grub_minix_fini): Likewise.
52844 * util/grub-emu.c (main): Initialize and deinitialize UFS and
52845 minix fs.
52846
cc2e748a 528472004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
52848
52849 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
52850 commands/ls.c, commands/terminal.c, commands/boot.c,
52851 commands/cmp.c and commands/cat.c.
52852 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
52853
52854 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
52855 "env.h"
52856
4b13b216 528572004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
52858
52859 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
52860 and grub_, respectively. Because the conversion is trivial and
52861 mechanical, I omit the details here. Please refer to the CVS
52862 if you need more information.
52863
6a142551 528642004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
52865
52866 * include/pupa: Renamed to ...
52867 * include/grub: ... this.
52868 * util/i386/pc/pupa-mkimage.c: Renamed to ...
52869 * util/i386/pc/grub-mkimage.c: ... this.
52870 * util/i386/pc/pupa-setup.c: Renamed to ...
52871 * util/i386/pc/grub-setup.c: ... this.
52872 * util/pupa-emu.c: Renamed to ...
52873 * util/grub-emu.c: ... this.
52874
e56cdf21 528752004-03-29 Marco Gerards <metgerards@student.han.nl>
52876
52877 Add support for the newworld apple macintosh (PPC). This has been
52878 tested on the powerbook 2000 only. It only adds support for
52879 generic ieee1275 functions, console and disk support. This should
52880 be easy to port to other architectures with support for Open
52881 Firmware.
f19dbdb7 52882
e56cdf21 52883 * configure.ac: Accept the powerpc as host_cpu. In the case of
52884 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
52885 specific tests are only executed while building for the i386.
52886 Inverse test for crosscompile.
52887 * genmk.rb (Utility): Allow assembler files.
52888 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
52889 * conf/powerpc-ieee1275.rmk: New file.
52890 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
52891 * disk/powerpc/ieee1275/partition.c: Likewise.
52892 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
52893 * include/pupa/powerpc/ieee1275/console.h: Likewise.
52894 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
52895 * include/pupa/powerpc/ieee1275/time.h: Likewise.
52896 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
52897 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
52898 * include/pupa/powerpc/ieee1275/loader.h
52899 * include/pupa/powerpc/setjmp.h: Likewise.
52900 * include/pupa/powerpc/types.h: Likewise.
52901 * kern/powerpc/ieee1275/init.c: Likewise.
52902 * kern/powerpc/ieee1275/openfw.c: Likewise.
52903 * term/powerpc/ieee1275/ofconsole.c: Likewise.
52904
52905 These files were written by Johan Rydberg
52906 (jrydberg@night.trouble.net) and I only modified them slightly.
f19dbdb7 52907
e56cdf21 52908 * boot/powerpc/ieee1275/cmain.c: New file.
52909 * boot/powerpc/ieee1275/crt0.S: Likewise.
52910 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
52911 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
52912
8c8cc205 529132004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
52914
52915 * Makefile.in: Update copyright.
52916 * genmodsrc.sh: Likewise.
52917 * gensymlist.sh: Likewise.
52918 * term/i386/pc/vga.c: Indent correctly.
52919
52920 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
52921 bugreporting address.
52922 * util/i386/pc/pupa-setup.c (usage): Likewise,
52923 (main): Call pupa_ext2_init and pupa_ext2_fini.
52924
f19dbdb7 52925 * fs/fat.c (log2): Renamed to ...
8c8cc205 52926 (fat_log2): ... this.
52927 All callers changed.
52928 * kern/misc.c (memcpy): Alias to pupa_memmove.
52929 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
52930 lvalue cast.
52931 * util/console.c (pupa_ncurses_fini): Return 0.
52932
52933 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
52934 Move fail label here.
52935 [__GNU__]: Don't warn when using stat.
52936 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
52937 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
52938 long int. Use strtol instead of strtoul.
f19dbdb7 52939
db1771cf 529402004-03-14 Marco Gerards <metgerards@student.han.nl>
52941
52942 * commands/boot.c: New file.
52943 * commands/cat.c: Likewise.
52944 * commands/cmp.c: Likewise.
52945 * commands/ls.c: Likewise.
52946 * commands/terminal.c: Likewise.
52947 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
52948 (pupa_register_command): Changed interface to match the new
52949 argument parser.
52950 (pupa_command_execute): Changed (almost rewritten) so it uses
52951 pupa_split_command. Added support for setting variables using the
52952 syntax `foo=bar'.
52953 (rescue_command): Changed to work with the new argument parser.
52954 (terminal_command): Moved from here to commands/terminal.c.
52955 (set_command): New function.
52956 (unset_command): New function.
52957 (insmod_command): New function.
52958 (rmmod_command): New function.
52959 (lsmod_command): New function.
52960 (pupa_command_init): Don't initialize the command terminal
52961 anymore. Initialize the commands set, unset, insmod, rmmod and
52962 lsmod.
52963 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
52964 (kernel_img_HEADERS): Add arg.h and env.h.
52965 (pupa_mkimage_LDFLAGS): Add kern/env.c.
52966 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
52967 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
52968 normal/arg.c.
52969 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
52970 terminal.mod.
52971 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
52972 (boot_mod_SOURCES): New variable.
52973 (terminal_mod_SOURCES): Likewise.
52974 (ls_mod_SOURCES): Likewise.
52975 (cmp_mod_SOURCES): Likewise.
52976 (cat_mod_SOURCES): Likewise.
52977
52978 * normal/arg.c: New file.
52979 * kern/env.c: Likewise.
52980 * include/pupa/arg.h: Likewise.
52981 * include/pupa/env.h: Likewise.
52982 * font/manager.c (font_command): Changed to match argument parsing
52983 interface changes.
52984 (PUPA_MOD_INIT): Likewise.
52985 * hello/hello.c (pupa_cmd_hello): Likewise.
52986 (PUPA_MOD_INIT): Likewise.
52987 * include/pupa/disk.h: Include <pupa/device.h>.
52988 (pupa_print_partinfo): New prototype.
52989 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
52990 (pupa_dl_get_prefix): Likewise.
52991 * include/pupa/misc.h: Include <pupa/err.h>.
52992 (pupa_isgraph): New prototype.
52993 (pupa_isdigit): Likewise.
52994 (pupa_split_cmdline): Likewise.
52995 * include/pupa/normal.h: Include <pupa/arg.h>.
52996 (pupa_command): Changed the prototype of the member `func' to
52997 match the argument parsing interface. Added member `options'.
52998 (pupa_register_command): Updated to match function.
52999 (pupa_arg_parse): New prototype.
53000 (pupa_hello_init) [PUPA_UTIL]: New prototype.
53001 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
53002 (pupa_ls_init) [PUPA_UTIL]: Likewise.
53003 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
53004 (pupa_cat_init) [PUPA_UTIL]: Likewise.
53005 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
53006 (pupa_boot_init) [PUPA_UTIL]: Likewise.
53007 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
53008 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
53009 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
53010 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
53011 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
53012 * kern/disk.c: Include <pupa/file.h>.
53013 (pupa_print_partinfo): New function.
53014 * kern/dl.c: Include <pupa/env.h>.
53015 (pupa_dl_dir): Variable removed.
53016 (pupa_dl_load): Use the environment variable `prefix' instead of
53017 the variable pupa_dl_dir.
53018 (pupa_dl_set_prefix): Function removed.
53019 (pupa_dl_get_prefix): Likewise.
53020 * kern/i386/pc/init.c: Include <pupa/env.h>.
53021 (pupa_machine_init): Use the environment variable `prefix' instead of
53022 using pupa_dl_set_prefix to set the prefix.
53023 * kern/main.c: Include <pupa/env.h>.
53024 (pupa_set_root_dev): Use the environment variable `prefix' instead of
53025 using pupa_dl_get_prefix to get the prefix.
53026 * kern/misc.c: Include <pupa/env.h>.
53027 (pupa_isdigit): New function.
53028 (pupa_isgraph): Likewise.
53029 (pupa_ftoa): Likewise.
53030 (pupa_vsprintf): Added support for printing values of the type
53031 `double'. Make it possible to format variable output when using
53032 formatting like `%1.2%f'.
53033 (pupa_split_cmdline): New function.
53034 * kern/rescue.c: Include <pupa/env.h>.
53035 (next_word): Removed function.
53036 (pupa_rescue_cmd_prefix): Likewise.
53037 (pupa_rescue_cmd_set): New function.
53038 (pupa_rescue_cmd_unset): New function.
53039 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
53040 split the command line instead of splitting it here. Added
53041 support for setting variables using the syntax `foo=bar'. Don't
53042 initialize the prefix command anymore. Initialized the set and
53043 unset commands.
53044 * normal/cmdline.c: Include <pupa/env.h>.
53045 (pupa_tab_complete): Added prototypes for print_simple_completion,
53046 print_partition_completion, add_completion, iterate_commands,
53047 iterate_dev, iterate_part and iterate_dir. Moved code to print
53048 partition information from here to kern/disk.c.
fe6b695a 53049 (pupa_cmdline_run): Don't check if the function exists anymore.
db1771cf 53050 * normal/main.c: Include <pupa/env.h>.
53051 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
53052 instead of using pupa_dl_get_prefix to get the prefix.
53053 * term/i386/pc/vga.c: Include <pupa/arg.h>.
53054 (check_vga_mem): Cast pointers to `void *' to silence a gcc
53055 warning.
53056 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
53057 (pupa_vga_setcolor): Declare unused variables with `__attribute__
53058 ((unused))' to silence a gcc warning.
53059 (pupa_vga_setcolor): Likewise.
53060 (debug_command): Changed to match argument parsing
53061 interface changes.
53062 * util/pupa-emu.c: Include <pupa/env.h>.
53063 (options): Added 0's for unused fields to silence a gcc warning.
53064 (argp): Likewise.
53065 (main): Use the environment variable `prefix' instead of using
53066 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
53067 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
53068 and terminal.
53069
53070 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
53071 * util/misc.c: Include <malloc.h>.
53072 (pupa_malloc): Rewritten so errors are correctly reported.
53073 (pupa_realloc): Likewise.
53074 (pupa_memalign): Likewise.
53075 (pupa_mm_init_region): Declare unused variables with
53076 `__attribute__ ((unused))' to silence a gcc warning.
53077 * normal/i386/setjmp.S: Remove tab at the end of the file to
53078 silence a gcc warning.
53079 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
53080 variables with `__attribute__ ((unused))' to silence a gcc
53081 warning.
53082 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
53083 local variable i unsigned to silence a gcc warning.
53084
53085 * kern/term.c: Include <pupa/misc.h>.
53086 (pupa_more_lines): New variable.
53087 (pupa_more): Likewise.
53088 (pupa_putcode): When the pager is active pause at the end of every
53089 screen.
53090 (pupa_set_more): New function.
53091 * include/pupa/term.h (pupa_set_more): New prototype.
53092
53093
3b1139cb 530942004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
53095
53096 Now this project is GRUB 2 rather than PUPA. The location of
53097 the CVS repository was moved to GRUB's.
f19dbdb7 53098
3b1139cb 53099 * configure.ac: Use bug-grub as the reporting address.
53100 Use GRUB instead of PUPA.
53101 Change the version number to 1.90.
53102
8367695c 531032004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
53104
53105 * genkernsyms.sh: Updated copyright information.
53106 * genmk.rb: Likewise.
53107 * genmodsrc.sh: Likewise.
53108 * gensymlist.sh: Likewise.
53109 * boot/i386/pc/boot.S: Likewise.
53110 * boot/i386/pc/diskboot.S: Likewise.
53111 * disk/i386/pc/biosdisk.c: Likewise.
53112 * disk/i386/pc/partition.c: Likewise.
53113 * font/manager.c: Likewise.
53114 * fs/ext2.c: Likewise.
53115 * fs/fat.c: Likewise.
53116 * include/pupa/boot.h: Likewise.
53117 * include/pupa/device.h: Likewise.
53118 * include/pupa/disk.h: Likewise.
53119 * include/pupa/dl.h: Likewise.
53120 * include/pupa/elf.h: Likewise.
53121 * include/pupa/err.h: Likewise.
53122 * include/pupa/file.h: Likewise.
53123 * include/pupa/font.h: Likewise.
53124 * include/pupa/fs.h: Likewise.
53125 * include/pupa/kernel.h: Likewise.
53126 * include/pupa/loader.h: Likewise.
53127 * include/pupa/misc.h: Likewise.
53128 * include/pupa/mm.h: Likewise.
53129 * include/pupa/net.h: Likewise.
53130 * include/pupa/normal.h: Likewise.
53131 * include/pupa/rescue.h: Likewise.
53132 * include/pupa/setjmp.h: Likewise.
53133 * include/pupa/symbol.h: Likewise.
53134 * include/pupa/term.h: Likewise.
53135 * include/pupa/types.h: Likewise.
53136 * include/pupa/i386/setjmp.h: Likewise.
53137 * include/pupa/i386/types.h: Likewise.
53138 * include/pupa/i386/pc/biosdisk.h: Likewise.
53139 * include/pupa/i386/pc/boot.h: Likewise.
53140 * include/pupa/i386/pc/console.h: Likewise.
53141 * include/pupa/i386/pc/init.h: Likewise.
53142 * include/pupa/i386/pc/kernel.h: Likewise.
53143 * include/pupa/i386/pc/linux.h: Likewise.
53144 * include/pupa/i386/pc/loader.h: Likewise.
53145 * include/pupa/i386/pc/memory.h: Likewise.
53146 * include/pupa/i386/pc/multiboot.h: Likewise.
53147 * include/pupa/i386/pc/partition.h: Likewise.
53148 * include/pupa/i386/pc/time.h: Likewise.
53149 * include/pupa/i386/pc/vga.h: Likewise.
53150 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
53151 * include/pupa/util/getroot.h: Likewise.
53152 * include/pupa/util/misc.h: Likewise.
53153 * include/pupa/util/resolve.h: Likewise.
53154 * kern/device.c: Likewise.
53155 * kern/disk.c: Likewise.
53156 * kern/dl.c: Likewise.
53157 * kern/err.c: Likewise.
53158 * kern/file.c: Likewise.
53159 * kern/fs.c: Likewise.
53160 * kern/loader.c: Likewise.
53161 * kern/main.c: Likewise.
53162 * kern/misc.c: Likewise.
53163 * kern/mm.c: Likewise.
53164 * kern/rescue.c: Likewise.
53165 * kern/term.c: Likewise.
53166 * kern/i386/dl.c: Likewise.
53167 * kern/i386/pc/init.c: Likewise.
53168 * kern/i386/pc/lzo1x.S: Likewise.
53169 * kern/i386/pc/startup.S: Likewise.
53170 * loader/i386/pc/chainloader.c: Likewise.
53171 * loader/i386/pc/linux.c: Likewise.
53172 * loader/i386/pc/multiboot.c: Likewise.
53173 * normal/cmdline.c: Likewise.
53174 * normal/command.c: Likewise.
53175 * normal/main.c: Likewise.
53176 * normal/menu.c: Likewise.
53177 * normal/i386/setjmp.S: Likewise.
53178 * term/i386/pc/console.c: Likewise.
53179 * term/i386/pc/vga.c: Likewise.
53180 * util/console.c: Likewise.
53181 * util/genmoddep.c: Likewise.
53182 * util/misc.c: Likewise.
53183 * util/pupa-emu.c: Likewise.
53184 * util/resolve.c: Likewise.
53185 * util/unifont2pff.rb: Likewise.
53186 * util/i386/pc/biosdisk.c: Likewise.
53187 * util/i386/pc/getroot.c: Likewise.
53188 * util/i386/pc/pupa-mkimage.c: Likewise.
53189 * util/i386/pc/pupa-setup.c: Likewise.
53190
e6eced71 531912004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
53192
53193 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
53194 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
53195 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
53196 reading and reset it after reading.
53197 (pupa_ext2_close): Return PUPA_ERR_NONE.
53198
53199 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
53200 Correct value.
53201 (struct linux_kernel_header): Add kernel_version and
53202 initrd_addr_max.
53203 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
53204 pupa_file_read succeeds.
53205 (pupa_rescue_cmd_initrd): Implement.
53206
5aded270 532072003-12-03 Marco Gerards <metgerards@student.han.nl>
53208
53209 * fs/ext2.c (pupa_ext2_label): New function.
53210 (pupa_ext2_fs): Added label.
53211 * fs/fat.c (pupa_fat_label): New function.
53212 (pupa_fat_fs): Added label.
53213 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
53214
53215 * kern/misc.c (pupa_strndup): New function.
53216 * include/pupa/misc.h (pupa_strndup): New prototype.
53217
53218 * include/pupa/normal.h: Include <pupa/err.h>.
53219 (pupa_set_history): New prototype.
53220 (pupa_iterate_commands): New prototype.
53221 * normal/cmdline.c: Include <pupa/machine/partition.h>,
53222 <pupa/disk.h>, <pupa/file.h>.
53223 (hist_size): New variable.
53224 (hist_lines): Likewise.
53225 (hist_end): Likewise.
53226 (hist_used): Likewise.
53227 (pupa_set_history): New function.
53228 (pupa_history_get): Likewise.
53229 (pupa_history_add): Likewise.
53230 (pupa_history_replace): Likewise.
53231 (pupa_tab_complete): Likewise.
53232 (pupa_cmdline_run): Added tab completion and history buffer. Tab
53233 completion shows partitionnames while completing partitions, this
53234 feature was suggested by Jeff Bailey.
53235 * normal/command.c (pupa_iterate_commands): New function.
53236 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
53237 (pupa_normal_init): Initialize history buffer.
53238 (PUPA_MOD_INIT): Likewise.
53239 (pupa_normal_fini): Free the history buffer.
53240 (PUPA_MOD_FINI): Likewise.
53241
53242 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
53243 key.
53244
53245 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
53246 * configure.ac [i386]: Check for regparam bug.
53247 (NESTED_FUNC_ATTR) [! i386]: Defined.
53248
1f7315a3 532492003-11-17 Marco Gerards <metgerards@student.han.nl>
53250
53251 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
53252 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
53253 (pupa_emu_SOURCES): New variable.
53254 (pupa_emu_LDFLAGS): Likewise.
53255 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
53256 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
53257 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
53258 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
53259 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
53260 (pupa_jmp_buf): New typedef.
53261 (pupa_setjmp) [PUPA_UTIL]: New macro.
53262 (pupa_longjmp) [PUPA_UTIL]: Likewise.
53263 * include/pupa/term.h (struct pupa_term): New member `refresh'.
53264 (pupa_refresh): New prototype.
53265 * include/pupa/util/getroot.h: New file.
53266 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
53267 it.
53268 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
53269 (pupa_rescue_cmd_cat): Likewise.
53270 (pupa_rescue_cmd_ls): Likewise.
53271 (pupa_rescue_cmd_testload): Likewise.
53272 (pupa_rescue_cmd_lsmod): Likewise.
53273 * normal/cmdline.c (pupa_cmdline_get): Likewise.
53274 * normal/menu.c (run_menu): Likewise.
53275 * kern/term.c (pupa_cls): Likewise.
53276 (pupa_refresh): New function.
53277 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
53278 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
53279 * util/console.c: New file.
f19dbdb7 53280
1f7315a3 53281 * util/i386/pc/getroot.c: New file.
53282 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
53283 (pupa_putchar): New function.
53284 (pupa_refresh): Likewise.
53285 (xgetcwd): Function moved to ...
53286 (strip_extra_slashes): Likewise.
53287 (get_prefix): Likewise.
f19dbdb7 53288 * util/i386/pc/getroot.c: ... here.
1f7315a3 53289 (find_root_device): Function moved and renamed to...
53290 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
53291 Changed all callers.
53292 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
53293 and renamed to...
53294 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
53295 Changed all callers.
53296 * util/misc.c (pupa_memalign): New function.
53297 (pupa_mm_init_region): Likewise.
53298 (pupa_register_exported_symbols): Likewise.
53299 (pupa_putchar): Function removed.
53300 * util/pupa-emu.c: New file.
53301
9a5c1ade 533022003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
53303
53304 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
53305 (_multiboot_mod_SOURCES): New variable.
53306 (_multiboot_mod_CFLAGS): Likewise.
53307 * loader/i386/pc/multiboot.c: New file.
53308 * include/pupa/i386/pc/multiboot.h: Likewise.
53309 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
53310 (pupa_multiboot_real_boot): New function.
53311 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
53312 (pupa_multiboot_real_boot): New prototype.
53313 (pupa_rescue_cmd_multiboot): Likewise
53314 (pupa_rescue_cmd_module): Likewise.
53315
53316 * kern/loader.c (pupa_loader_set): Continue when
53317 pupa_loader_unload_func() fails.
53318 (pupa_loader_unset): New function.
53319 * include/pupa/loader.h (pupa_loader_unset): New prototype.
53320
53321 * kern/misc.c (pupa_stpcpy): New function.
53322 * include/pupa/misc.h (pupa_stpcpy): New prototype.
53323
8e72a9c0 533242003-11-12 Marco Gerards <metgerards@student.han.nl>
53325
53326 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
53327 for available extensions.
53328
53329 * include/pupa/i386/pc/time.h: New file.
53330 * kern/disk.c: Include <pupa/machine/time.h>.
53331 (PUPA_CACHE_TIMEOUT): New macro.
53332 (pupa_last_time): New variable.
53333 (pupa_disk_open): Flush the cache when there was a timeout.
53334 (pupa_disk_close): Reset the timer.
53335 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
53336 pupa_currticks.
53337 * util/misc.c: Include <sys/times.h>
53338 (pupa_get_rtc): New function.
53339
c4adbd32 533402003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
53341
53342 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
53343 as blocks.
53344 (pupa_ext2_get_file_block): Use blocks member.
53345
53346 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
53347 first block. Return -1 instead of pupa_errno on error.
53348
bfd30f06 533492003-10-27 Marco Gerards <metgerards@student.han.nl>
53350
53351 * README: In the pupa-mkimage example use _chain instead of chain
53352 and ext2 instead of fat.
53353 * TODO: Replace ext2fs with jfs as an example. Add an item for
53354 adding journal playback for ext2fs.
53355 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
53356 (pkgdata_MODULES): Added ext2.mod.
53357 (ext2_mod_SOURCES): New variable.
53358 (ext2_mod_CFLAGS): Likewise.
53359 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
53360 * include/pupa/misc.h (pupa_strncpy): New prototype.
53361 (pupa_strcat): Likewise.
53362 (pupa_strncmp): Likewise.
53363 * kern/misc.c (pupa_strcat): Enable function.
53364 (pupa_strncpy): New function.
53365 (pupa_strncmp): Likewise.
53366 * fs/ext2.c: New file.
f19dbdb7 53367
bfd30f06 53368 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
53369 when the read failed before retrying.
53370 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
53371 (_FILE_OFFSET_BITS): Likewise.
53372 * configure.ac: Added AC_SYS_LARGEFILE.
53373
98d15063 533742003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
53375
53376 * genmk.rb (PModule#rule): Make sure to get only symbol names
53377 from the output of nm.
59cad637 53378 Reported by Robert Millan <rmh.grub@aybabtu.com>.
98d15063 53379
18d9c7cd 533802003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
53381
53382 I forgot to check in these changes for a long time. This adds
53383 incomplete support for VGA console, and this is still very
53384 buggy. Also, a lot of consideration is required for I18N,
53385 UNICODE, and VGA font issues. Therefore, assume that this is
53386 such that "better than nothing".
f19dbdb7 53387
18d9c7cd 53388 * font/manager.c: New file.
53389 * include/pupa/font.h: Likewise.
53390 * include/pupa/i386/pc/vga.h: Likewise.
53391 * term/i386/pc/vga.c: Likewise.
53392 * util/unifont2pff.rb: Likewise.
53393
53394 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
53395 (pkgdata_MODULES): Added vga.mod and font.mod.
53396 (vga_mod_SOURCES): New variables.
53397 (vga_mod_CFLAGS): Likewise.
53398 (font_mod_SOURCES): Likewise.
53399 (font_mod_CFLAGS): Likewise.
53400
53401 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
53402
53403 * include/pupa/term.h: Include pupa/err.h.
f19dbdb7 53404 (struct pupa_term): Added init and fini.
18d9c7cd 53405 Changed the argument of putchar to pupa_uint32_t.
53406
53407 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
53408 (pupa_console_real_putchar): New prototype.
53409 (pupa_console_putchar): Removed.
53410 (pupa_console_checkkey): Exported.
53411 (pupa_console_getkey): Likewise.
53412
53413 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
53414 characters.
53415
53416 * kern/term.c (pupa_term_set_current): Rewritten.
53417 (pupa_putchar): Likewise.
53418 (pupa_putcode): New function.
53419
53420 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
53421 (pupa_console_real_putchar): ... this.
53422 (pupa_vga_set_mode): New function.
53423 (pupa_vga_get_font): Likewise.
53424
53425 * normal/command.c: Include pupa/term.h.
53426 (terminal_command): New function.
53427 (pupa_command_init): Register the command "terminal".
53428
53429 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
53430 (DISP_UP): Likewise.
53431 (DISP_RIGHT): Likewise.
53432 (DISP_DOWN): Likewise.
53433 (DISP_HLINE): Likewise.
53434 (DISP_VLINE): Likewise.
53435 (DISP_UL): Likewise.
53436 (DISP_UR): Likewise.
53437 (DISP_LL): Likewise.
53438 (DISP_LR): Likewise.
53439
53440 * term/i386/pc/console.c (pupa_console_putchar): New function.
f19dbdb7 53441
977329f5 534422003-02-08 NIIBE Yutaka <gniibe@m17n.org>
53443
53444 * util/resolve.c (pupa_util_resolve_dependencies): BUG
53445 FIX. Reverse the path_list.
53446
53447 * include/pupa/normal.h: Export pupa_register_command and
53448 pupa_unregister_command.
53449
53450 * hello/hello.c (pupa_cmd_hello): New module.
53451 * conf/i386-pc.rmk: Added hello.mod.
53452
1f5ab428 534532003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
53454
53455 * kern/i386/pc/lzo1x.S: New file.
f19dbdb7 53456
1f5ab428 53457 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
53458 (compress_kernel): New variable.
53459 (generate_image): Heavily modified to support compressing a
53460 large part of the core image.
53461
53462 * util/misc.c (pupa_util_read_image): Fix a file descriptor
53463 leak.
53464 (pupa_util_load_image): New function.
53465
53466 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
53467 (pupa_compressed_size): New variable.
53468 (codestart): Enable Gate A20 here.
53469 Decompress the compressed part of the core image.
53470 Rearrange the code to put functions and variables which are
53471 required for initialization in the non-compressed part.
53472 Include lzo1x.S.
53473
53474 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
53475 here.
53476
53477 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
53478
f19dbdb7 53479 * include/pupa/i386/pc/kernel.h
1f5ab428 53480 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
53481 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
53482 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
53483 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
53484 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
53485
53486 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
53487
53488 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
53489 (Utility#rule): Likewise.
53490
53491 * configure.ac: Check if LZO is available.
53492
ce5bf700 534932003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
53494
53495 * include/pupa/normal.h: New file.
53496 * include/pupa/setjmp.h: Likewise.
53497 * include/pupa/i386/setjmp.h: Likewise.
53498 * normal/cmdline.c: Likewise.
53499 * normal/command.c: Likewise.
53500 * normal/main.c: Likewise.
53501 * normal/menu.c: Likewise.
53502 * normal/i386/setjmp.S: Likewise.
f19dbdb7 53503
ce5bf700 53504 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
53505 (pupa_rescue_cmd_initrd): Likewise.
53506
53507 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
53508 Likewise.
53509
53510 * kern/i386/pc/startup.S (translation_table): New variable.
53511 (translate_keycode): New function.
53512 (pupa_console_getkey): Call translate_keycode.
53513
53514 * kern/rescue.c (attempt_normal_mode): New function.
53515 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
53516 it failed, print a message.
53517
53518 * kern/mm.c (pupa_real_malloc): Print more information when a
53519 free magic is broken.
53520 (pupa_free): If the first free header is not free actually, set
53521 it to P.
53522
53523 * kern/main.c (pupa_load_normal_mode): Just load the module
53524 "normal".
53525 (pupa_main): Don't print the message
53526 "Entering into rescue mode..." here.
53527
53528 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
53529 Declared.
53530 (pupa_rescue_cmd_initrd): Likewise.
53531 (pupa_rescue_cmd_initrd): Likewise.
53532
53533 * include/pupa/symbol.h (FUNCTION): Specify the type.
53534 (VARIABLE): Likewise.
53535
53536 * include/pupa/err.h (pupa_err_t): Added
53537 PUPA_ERR_UNKNOWN_COMMAND.
53538
53539 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
53540 (pupa_dl_get_prefix): Likewise.
53541
53542 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
53543 Added _chain.mod and _linux.mod instead of chain.mod and
53544 linux.mod.
53545 (chain_mod_SOURCES): Renamed to ...
53546 (_chain_mod_SOURCES): ... this.
53547 (chain_mod_CFLAGS): Renamed to ...
53548 (_chain_mod_CFLAGS): ... this.
53549 (linux_mod_SOURCES): Renamed to ...
53550 (_linux_mod_SOURCES): ... this.
53551 (linux_mod_CFLAGS): Renamed to ...
53552 (_linux_mod_CFLAGS): ... this.
53553 (normal_mod_SOURCES): New variable.
53554 (normal_mod_CFLAGS): Likewise.
53555 (normal_mod_ASFLAGS): Likewise.
53556
535572003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
53558
53559 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
53560 possible.
53561
fe6b695a 53562 * kern/dl.c (pupa_dl_ref): Refer depending modules
ce5bf700 53563 recursively.
53564 (pupa_dl_unref): Unrefer depending modules recursively.
53565 Don't call pupa_dl_unload implicitly, because PUPA can crash if
53566 a module is unloaded before one depending on that module is
53567 unloaded.
53568 (pupa_dl_unload): Unload depending modules explicitly,
53569 if possible.
53570
c04da074 535712003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
53572
53573 * include/pupa/i386/pc/linux.h: New file.
53574 * loader/i386/pc/linux.c: Likewise.
f19dbdb7 53575
c04da074 53576 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
53577 Removed.
53578 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
53579 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
53580 of PUPA_CHAINLOADER_BOOT_SECTOR.
53581
53582 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
53583 (pupa_linux_prot_size): New variable.
53584 (pupa_linux_tmp_addr): Likewise.
53585 (pupa_linux_real_addr): Likewise.
53586 (pupa_linux_boot_zimage): New function.
53587 (pupa_linux_boot_bzimage): Likewise.
53588
53589 * kern/i386/pc/init.c (struct mem_region): New structure.
53590 (MAX_REGIONS): New macro.
53591 (mem_regions): New variable.
53592 (num_regions): Likewise.
53593 (pupa_os_area_addr): Likewise.
53594 (pupa_os_area_size): Likewise.
53595 (pupa_lower_mem): Likewise.
53596 (pupa_upper_mem): Likewise.
53597 (add_mem_region): New function.
53598 (compact_mem_regions): Likewise.
53599 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
53600 the size of the conventional memory and that of so-called upper
53601 memory (before the first memory hole).
53602 Instead of adding each found region to free memory, use
53603 add_mem_region and add them after removing overlaps.
53604 Also, add only 1/4 of the upper memory to free memory. The rest
53605 is used for loading OS images. Maybe this is ad hoc, but this
53606 makes it much easier to relocate OS images when booting.
53607
53608 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
53609 (pupa_enter_rescue_mode): Don't register initrd and module.
53610
53611 * kern/mm.c: Include pupa/dl.h.
53612
53613 * kern/main.c: Include pupa/file.h and pupa/device.h.
53614
53615 * kern/loader.c (pupa_loader_load_module_func): Removed.
53616 (pupa_loader_load_module): Likewise.
53617
53618 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
53619 ``.o''.
53620
53621 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
53622 (pupa_linux_tmp_addr): Likewise.
53623 (pupa_linux_real_addr): Likewise.
53624 (pupa_linux_boot_zimage): Likewise.
53625 (pupa_linux_boot_bzimage): Likewise.
53626
53627 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
53628 (pupa_upper_mem): Likewise.
53629 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
53630 module is too dangerous.
53631
53632 * include/pupa/loader.h (pupa_os_area_addr): Declared.
53633 (pupa_os_area_size): Likewise.
53634 (pupa_loader_set): Remove the first argument. Loader doesn't
53635 manage modules or initrd any longer.
53636 (pupa_loader_load_module): Removed.
53637
53638 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
53639 (linux_mod_SOURCES): New variable.
53640 (linux_mod_CFLAGS): Likewise.
53641
a13f9237 536422003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
53643
53644 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
53645 the length of a blocklist correctly.
53646
53647 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
53648 Use ioctl only if the OS file is a block device.
53649 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
53650 not very useful for normal files.
53651
53652 * kern/main.c (pupa_set_root_dev): New function.
53653 (pupa_load_normal_mode): Likewise.
53654 (pupa_main): Call those above.
53655
53656 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
53657 pupa_uint16_t.
53658
53659 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
53660
a5ffe966 536612003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
53662
53663 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
53664 (setup): Configure the installed partition information and the
53665 dl prefix.
53666
53667 * loader/i386/pc/chainloader.c (my_mod): New variable.
53668 (pupa_chainloader_unload): New function.
53669 (pupa_rescue_cmd_chainloader): Refer itself.
53670 (PUPA_MOD_INIT): Save its own module in MY_MOD.
53671
53672 * kern/i386/pc/startup.S (install_partition): Removed.
53673 (version_string): Likewise.
53674 (config_file): Likewise.
53675 (pupa_install_dos_part): New variable.
53676 (pupa_install_bsd_part): Likewise.
53677 (pupa_prefix): Likewise.
53678 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
53679
53680 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
53681 and pupa/misc.h.
53682 (make_install_device): New function.
53683 (pupa_machine_init): Set the dl prefix.
53684
53685 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
53686 (buf): Renamed to ...
53687 (linebuf): ... this.
53688 (pupa_rescue_cmd_prefix): New function.
53689 (pupa_rescue_cmd_insmod): Likewise.
53690 (pupa_rescue_cmd_rmmod): Likewise.
53691 (pupa_rescue_cmd_lsmod): Likewise.
53692 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
53693 rmmod and lsmod.
53694
53695 * kern/mm.c (pupa_memalign): If failed even after invalidating
53696 disk caches, unload unneeded modules and retry.
53697
53698 * kern/misc.c (pupa_memmove): New function.
53699 (pupa_memcpy): Removed.
53700 (pupa_strcpy): New function.
53701 (pupa_itoa): Made static.
53702
53703 * kern/dl.c (pupa_dl_iterate): New function.
53704 (pupa_dl_ref): Likewise.
53705 (pupa_dl_unref): Likewise.
53706 (pupa_dl_unload): Return if succeeded or not.
53707 (pupa_dl_unload_unneeded): New function.
53708 (pupa_dl_unload_all): Likewise.
53709 (pupa_dl_init): Renamed to ...
53710 (pupa_dl_set_prefix): ... this.
53711 (pupa_dl_get_prefix): New function.
53712
53713 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
53714 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
53715 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
53716 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
53717 (pupa_install_dos_part): Declared.
53718 (pupa_install_bsd_part): Likewise.
53719 (pupa_prefix): Likewise.
53720 (pupa_boot_drive): Likewise.
53721
53722 * include/pupa/types.h: Fix a typo.
53723
53724 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
53725 pupa_memmove.
53726 (pupa_memmove): Declared.
53727 (pupa_strcpy): Likewise.
53728
53729 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
53730 pupa_mod_init takes one argument, its own module.
53731 (pupa_dl_unload_unneeded): Declared.
53732 (pupa_dl_unload_all): Likewise.
53733 (pupa_dl_ref): Likewise.
53734 (pupa_dl_unref): Likewise.
53735 (pupa_dl_iterate): Likewise.
53736 (pupa_dl_init): Renamed to ...
53737 (pupa_dl_set_prefix): ... this.
53738 (pupa_dl_get_prefix): Declared.
53739
53740 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
f19dbdb7 53741 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
a5ffe966 53742 unloaded.
53743 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
53744 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
53745
53746 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
53747 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
53748
012d7999 537492003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
53750
53751 * util/i386/pc/pupa-setup.c (setup): Define the internal
53752 function find_first_partition_start at the top level, because GCC
53753 3.0.x cannot compile internal functions in deeper scopes
53754 correctly.
53755 (find_root_device): Use lstat instead of stat.
53756 Don't follow symbolic links.
53757 Fix the path-constructing code.
53758
53759 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
53760 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
53761 by a BLKGETSIZE ioctl first, because block devices don't fill
53762 the member st_mode of the structure stat on Linux.
53763 [__linux__] (linux_find_partition): Use a temporary buffer
53764 REAL_DEV for the working space. Copy it to DEV before returning.
53765 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
53766 buffer cache consistent.
53767 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
53768 strncmp. The previous value was merely wrong.
53769 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
53770
53771 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
53772 FAT size is 12. The previous value was merely wrong.
53773
53774 * kern/main.c (pupa_main): Don't split the starting message from
53775 newlines.
53776
53777 * kern/term.c (pupa_putchar): Put CR after LF instead of before
53778 LF, because BIOS goes crazy about character attributes in this
53779 case.
53780
1cc73a62 537812003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
53782
53783 * include/i386/pc/util/biosdisk.h: New file.
53784 * util/i386/pc/biosdisk.c: Likewise.
53785 * util/i386/pc/pupa-setup.c: Likewise.
f19dbdb7 53786
1cc73a62 53787 * Makefile.in (INCLUDE_DISTFILES): Added
53788 include/pupa/i386/pc/util/biosdisk.h.
53789 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
53790 directory util/i386/pc.
53791 (install-local): Added a rule for sbin_UTILITIES.
53792 (uninstall): Likewise.
53793
53794 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
53795
53796 * util/misc.c (xrealloc): New function.
53797 (pupa_malloc): Likewise.
53798 (pupa_free): Likewise.
53799 (pupa_realloc): Likewise.
53800 (pupa_stop): Likewise.
53801 (pupa_putchar): Likewise.
53802
53803 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
53804
53805 * include/pupa/util/misc.h (xrealloc): Declared.
53806
53807 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
53808 macro.
53809 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
53810 (PUPA_BOOT_MACHINE_BPB_END): ... this.
53811
53812 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
53813 [PUPA_UTIL] (pupa_fat_fini): Likewise.
53814
53815 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
53816 way should be implemented.
53817 [PUPA_UTIL] (pupa_fat_fini): Likewise.
53818
53819 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
53820 the size of NAME for safety.
53821 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
53822 0x88.
53823
53824 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
53825 (pupa_setup_SOURCES): Likewise.
53826
53827 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
53828
08b70fe8 538292002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
53830
53831 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
53832 bunch of pushl's from pusha, because this destroys the return
53833 value.
53834
62ddcc8f 538352002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
53836
53837 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
53838 This means that any missing prototypes could be fatal. Also, you
53839 must take care when writing assembly code. See the comments at
53840 the beginning of startup.S, for more details.
f19dbdb7 53841
62ddcc8f 53842 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
53843 compilation mechanism.
53844 (pupa_chainloader_real_boot): Likewise.
53845 (pupa_biosdisk_rw_int13_extensions): Likewise.
53846 (pupa_biosdisk_rw_standard): Likewise.
53847 (pupa_biosdisk_check_int13_extensions): Likewise.
53848 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
53849 (pupa_biosdisk_get_diskinfo_standard): Likewise.
53850 (pupa_get_memsize): Likewise.
53851 (pupa_get_mmap_entry): Likewise.
53852 (pupa_console_putchar): Likewise.
53853 (pupa_console_setcursor): Likewise.
53854 (pupa_getrtsecs): Use pushl instead of push.
53855
53856 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
53857 memory instead of the stack for a mmap entry, because some
53858 BIOSes may ignore the maximum size and overflow.
53859
53860 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
53861
53862 * genmk.rb (PModule#rule): Compile automatically generated
53863 sources with module-specific CFLAGS as well as other sources.
53864
9962ed99 538652002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
53866
53867 * configure.ac: Check ld.
53868 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
53869 respectively, before checking endianness and sizes.
53870
53871 * Makefile.in (LD): New variable.
f19dbdb7 53872
abdfc3c5 538732002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
53874
53875 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
53876
6a161fa9 538772002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
53878
53879 * Changelog: New file.
53880